@kong-ui-public/spec-renderer 2.0.38 → 2.0.39
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.
|
@@ -207,11 +207,11 @@ Use Chrome, Firefox or Internet Explorer 11`)}},4281:e=>{var t={};function r(i,m
|
|
|
207
207
|
`+ue}jr=v.default.createElement(Mt,{language:Vr,downloadable:!0,fileName:`${Ct}.json`,value:$t,getConfigs:qe,canCopy:!0})}else/xml/i.test(ve)?($t=(0,C0.default)(ue,{textNodesOnSameLine:!0,indentor:" "}),jr=v.default.createElement(Mt,{downloadable:!0,fileName:`${Ct}.xml`,value:$t,getConfigs:qe,canCopy:!0})):jr=(0,Ng.default)(ve)==="text/html"||/text\/plain/.test(ve)?v.default.createElement(Mt,{downloadable:!0,fileName:`${Ct}.html`,value:ue,getConfigs:qe,canCopy:!0}):(0,Ng.default)(ve)==="text/csv"||/text\/csv/.test(ve)?v.default.createElement(Mt,{downloadable:!0,fileName:`${Ct}.csv`,value:ue,getConfigs:qe,canCopy:!0}):/^image\//i.test(ve)?(0,Zr.default)(ve).call(ve,"svg")?v.default.createElement("div",null," ",ue," "):v.default.createElement("img",{src:ro.default.createObjectURL(ue)}):/^audio\//i.test(ve)?v.default.createElement("pre",{className:"microlight"},v.default.createElement("audio",{controls:!0,key:Se},v.default.createElement("source",{src:Se,type:ve}))):typeof ue=="string"?v.default.createElement(Mt,{downloadable:!0,fileName:`${Ct}.txt`,value:ue,getConfigs:qe,canCopy:!0}):ue.size>0?yt?v.default.createElement("div",null,v.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),v.default.createElement(Mt,{downloadable:!0,fileName:`${Ct}.txt`,value:yt,getConfigs:qe,canCopy:!0})):v.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return jr?v.default.createElement("div",null,v.default.createElement("h5",null,"Response body"),jr):null}}var P0=wo(374);class Na extends v.Component{constructor(ue){super(ue),(0,rr.default)(this,"onChange",(ve,Se,Ne)=>{let{specActions:{changeParamByIdentity:qe},onChangeKey:wt}=this.props;qe(wt,ve,Se,Ne)}),(0,rr.default)(this,"onChangeConsumesWrapper",ve=>{let{specActions:{changeConsumesValue:Se},onChangeKey:Ne}=this.props;Se(Ne,ve)}),(0,rr.default)(this,"toggleTab",ve=>ve==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):ve==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0),(0,rr.default)(this,"onChangeMediaType",ve=>{let{value:Se,pathMethod:Ne}=ve,{specActions:qe,oas3Selectors:wt,oas3Actions:yt}=this.props;const Mt=wt.hasUserEditedBody(...Ne),Ct=wt.shouldRetainRequestBodyValue(...Ne);yt.setRequestContentType({value:Se,pathMethod:Ne}),yt.initRequestBodyValidateError({pathMethod:Ne}),Mt||(Ct||yt.setRequestBodyValue({value:void 0,pathMethod:Ne}),qe.clearResponse(...Ne),qe.clearRequest(...Ne),qe.clearValidateParams(Ne))}),this.state={callbackVisible:!1,parametersVisible:!0}}render(){var ue;let{onTryoutClick:ve,onResetClick:Se,parameters:Ne,allowTryItOut:qe,tryItOutEnabled:wt,specPath:yt,fn:Mt,getComponent:Ct,getConfigs:$t,specSelectors:jr,specActions:Vr,pathMethod:Nr,oas3Actions:Lr,oas3Selectors:lo,operation:_o}=this.props;const To=Ct("parameterRow"),ca=Ct("TryItOutButton"),ja=Ct("contentType"),Ho=Ct("Callbacks",!0),Yo=Ct("RequestBody",!0),qo=wt&&qe,Sa=jr.isOAS3(),Bo=_o.get("requestBody"),Cn=(0,V.default)(ue=(0,P0.default)((0,V.default)(Ne).call(Ne,(Zo,Ba)=>{const en=Ba.get("in");return Zo[en]??(Zo[en]=[]),Zo[en].push(Ba),Zo},{}))).call(ue,(Zo,Ba)=>(0,J.default)(Zo).call(Zo,Ba),[]);return v.default.createElement("div",{className:"opblock-section"},v.default.createElement("div",{className:"opblock-section-header"},Sa?v.default.createElement("div",{className:"tab-header"},v.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},v.default.createElement("h4",{className:"opblock-title"},v.default.createElement("span",null,"Parameters"))),_o.get("callbacks")?v.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},v.default.createElement("h4",{className:"opblock-title"},v.default.createElement("span",null,"Callbacks"))):null):v.default.createElement("div",{className:"tab-header"},v.default.createElement("h4",{className:"opblock-title"},"Parameters")),qe?v.default.createElement(ca,{isOAS3:jr.isOAS3(),hasUserEditedBody:lo.hasUserEditedBody(...Nr),enabled:wt,onCancelClick:this.props.onCancelClick,onTryoutClick:ve,onResetClick:()=>Se(Nr)}):null),this.state.parametersVisible?v.default.createElement("div",{className:"parameters-container"},Cn.length?v.default.createElement("div",{className:"table-container"},v.default.createElement("table",{className:"parameters"},v.default.createElement("thead",null,v.default.createElement("tr",null,v.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),v.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),v.default.createElement("tbody",null,(0,K.default)(Cn).call(Cn,(Zo,Ba)=>v.default.createElement(To,{fn:Mt,specPath:yt.push(Ba.toString()),getComponent:Ct,getConfigs:$t,rawParam:Zo,param:jr.parameterWithMetaByIdentity(Nr,Zo),key:`${Zo.get("in")}.${Zo.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:jr,specActions:Vr,oas3Actions:Lr,oas3Selectors:lo,pathMethod:Nr,isExecute:qo}))))):v.default.createElement("div",{className:"opblock-description-wrapper"},v.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?v.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},v.default.createElement(Ho,{callbacks:(0,H.Map)(_o.get("callbacks")),specPath:(0,$.default)(yt).call(yt,0,-1).push("callbacks")})):null,Sa&&Bo&&this.state.parametersVisible&&v.default.createElement("div",{className:"opblock-section opblock-section-request-body"},v.default.createElement("div",{className:"opblock-section-header"},v.default.createElement("h4",{className:`opblock-title parameter__name ${Bo.get("required")&&"required"}`},"Request body"),v.default.createElement("label",null,v.default.createElement(ja,{value:lo.requestContentType(...Nr),contentTypes:Bo.get("content",(0,H.List)()).keySeq(),onChange:Zo=>{this.onChangeMediaType({value:Zo,pathMethod:Nr})},className:"body-param-content-type",ariaLabel:"Request content type"}))),v.default.createElement("div",{className:"opblock-description-wrapper"},v.default.createElement(Yo,{setRetainRequestBodyValueFlag:Zo=>Lr.setRetainRequestBodyValueFlag({value:Zo,pathMethod:Nr}),userHasEditedBody:lo.hasUserEditedBody(...Nr),specPath:(0,$.default)(yt).call(yt,0,-1).push("requestBody"),requestBody:Bo,requestBodyValue:lo.requestBodyValue(...Nr),requestBodyInclusionSetting:lo.requestBodyInclusionSetting(...Nr),requestBodyErrors:lo.requestBodyErrors(...Nr),isExecute:qo,getConfigs:$t,activeExamplesKey:lo.activeExamplesMember(...Nr,"requestBody","requestBody"),updateActiveExamplesKey:Zo=>{this.props.oas3Actions.setActiveExamplesMember({name:Zo,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(Zo,Ba)=>{if(Ba){const en=lo.requestBodyValue(...Nr),mn=H.Map.isMap(en)?en:(0,H.Map)();return Lr.setRequestBodyValue({pathMethod:Nr,value:mn.setIn(Ba,Zo)})}Lr.setRequestBodyValue({value:Zo,pathMethod:Nr})},onChangeIncludeEmpty:(Zo,Ba)=>{Lr.setRequestBodyInclusion({pathMethod:Nr,value:Ba,name:Zo})},contentType:lo.requestContentType(...Nr)}))))}}(0,rr.default)(Na,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});const Ra=Wt=>{let{xKey:ue,xVal:ve}=Wt;return v.default.createElement("div",{className:"parameter__extension"},ue,": ",String(ve))};class Sn extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"onCheckboxChange",ue=>{const{onChange:ve}=this.props;ve(ue.target.checked)})}componentDidMount(){const{isIncludedOptions:ue,onChange:ve}=this.props,{shouldDispatchInit:Se,defaultValue:Ne}=ue;Se&&ve(Ne)}render(){let{isIncluded:ue,isDisabled:ve}=this.props;return v.default.createElement("div",null,v.default.createElement("label",{className:(0,da.default)("parameter__empty_value_toggle",{disabled:ve})},v.default.createElement("input",{type:"checkbox",disabled:ve,checked:!ve&&ue,onChange:this.onCheckboxChange}),"Send empty value"))}}(0,rr.default)(Sn,"defaultProps",{onChange:()=>{},isIncludedOptions:{}});var pc=wo(9069);class Bg extends v.Component{constructor(ue,ve){var Se;super(ue,ve),Se=this,(0,rr.default)(this,"onChangeWrapper",function(Ne){let qe,wt=arguments.length>1&&arguments[1]!==void 0&&arguments[1],{onChange:yt,rawParam:Mt}=Se.props;return qe=Ne===""||Ne&&Ne.size===0?null:Ne,yt(Mt,qe,wt)}),(0,rr.default)(this,"_onExampleSelect",Ne=>{this.props.oas3Actions.setActiveExamplesMember({name:Ne,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})}),(0,rr.default)(this,"onChangeIncludeEmpty",Ne=>{let{specActions:qe,param:wt,pathMethod:yt}=this.props;const Mt=wt.get("name"),Ct=wt.get("in");return qe.updateEmptyParamInclusion(yt,Mt,Ct,Ne)}),(0,rr.default)(this,"setDefaultValue",()=>{let{specSelectors:Ne,pathMethod:qe,rawParam:wt,oas3Selectors:yt}=this.props;const Mt=Ne.parameterWithMetaByIdentity(qe,wt)||(0,H.Map)(),{schema:Ct}=(0,pc.Z)(Mt,{isOAS3:Ne.isOAS3()}),$t=Mt.get("content",(0,H.Map)()).keySeq().first(),jr=Ct?(0,Oe.xi)(Ct.toJS(),$t,{includeWriteOnly:!0}):null;if(Mt&&Mt.get("value")===void 0&&Mt.get("in")!=="body"){let Vr;if(Ne.isSwagger2())Vr=Mt.get("x-example")!==void 0?Mt.get("x-example"):Mt.getIn(["schema","example"])!==void 0?Mt.getIn(["schema","example"]):Ct&&Ct.getIn(["default"]);else if(Ne.isOAS3()){const Nr=yt.activeExamplesMember(...qe,"parameters",this.getParamKey());Vr=Mt.getIn(["examples",Nr,"value"])!==void 0?Mt.getIn(["examples",Nr,"value"]):Mt.getIn(["content",$t,"example"])!==void 0?Mt.getIn(["content",$t,"example"]):Mt.get("example")!==void 0?Mt.get("example"):(Ct&&Ct.get("example"))!==void 0?Ct&&Ct.get("example"):(Ct&&Ct.get("default"))!==void 0?Ct&&Ct.get("default"):Mt.get("default")}Vr===void 0||H.List.isList(Vr)||(Vr=(0,Oe.Pz)(Vr)),Vr!==void 0?this.onChangeWrapper(Vr):Ct&&Ct.get("type")==="object"&&jr&&!Mt.get("examples")&&this.onChangeWrapper(H.List.isList(jr)?jr:(0,Oe.Pz)(jr))}}),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(ue){let ve,{specSelectors:Se,pathMethod:Ne,rawParam:qe}=ue,wt=Se.isOAS3(),yt=Se.parameterWithMetaByIdentity(Ne,qe)||new H.Map;if(yt=yt.isEmpty()?qe:yt,wt){let{schema:$t}=(0,pc.Z)(yt,{isOAS3:wt});ve=$t?$t.get("enum"):void 0}else ve=yt?yt.get("enum"):void 0;let Mt,Ct=yt?yt.get("value"):void 0;Ct!==void 0?Mt=Ct:qe.get("required")&&ve&&ve.size&&(Mt=ve.first()),Mt!==void 0&&Mt!==Ct&&this.onChangeWrapper((0,Oe.D$)(Mt)),this.setDefaultValue()}getParamKey(){const{param:ue}=this.props;return ue?`${ue.get("name")}-${ue.get("in")}`:null}render(){var ue,ve;let{param:Se,rawParam:Ne,getComponent:qe,getConfigs:wt,isExecute:yt,fn:Mt,onChangeConsumes:Ct,specSelectors:$t,pathMethod:jr,specPath:Vr,oas3Selectors:Nr}=this.props,Lr=$t.isOAS3();const{showExtensions:lo,showCommonExtensions:_o}=wt();if(Se||(Se=Ne),!Ne)return null;const To=qe("JsonSchemaForm"),ca=qe("ParamBody");let ja=Se.get("in"),Ho=ja!=="body"?null:v.default.createElement(ca,{getComponent:qe,getConfigs:wt,fn:Mt,param:Se,consumes:$t.consumesOptionsFor(jr),consumesValue:$t.contentTypeValues(jr).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:Ct,isExecute:yt,specSelectors:$t,pathMethod:jr});const Yo=qe("modelExample"),qo=qe("Markdown",!0),Sa=qe("ParameterExt"),Bo=qe("ParameterIncludeEmpty"),Cn=qe("ExamplesSelectValueRetainer"),Zo=qe("Example");let Ba,en,mn,Fn,{schema:ln}=(0,pc.Z)(Se,{isOAS3:Lr}),li=$t.parameterWithMetaByIdentity(jr,Ne)||(0,H.Map)(),Hn=ln?ln.get("format"):null,Si=ln?ln.get("type"):null,Oi=ln?ln.getIn(["items","type"]):null,Ys=ja==="formData",dc="FormData"in je.Z,Zs=Se.get("required"),rs=li?li.get("value"):"",Qs=_o?(0,Oe.po)(ln):null,jc=lo?(0,Oe.nX)(Se):null,di=!1;return Se!==void 0&&ln&&(Ba=ln.get("items")),Ba!==void 0?(en=Ba.get("enum"),mn=Ba.get("default")):ln&&(en=ln.get("enum")),en&&en.size&&en.size>0&&(di=!0),Se!==void 0&&(ln&&(mn=ln.get("default")),mn===void 0&&(mn=Se.get("default")),Fn=Se.get("example"),Fn===void 0&&(Fn=Se.get("x-example"))),v.default.createElement("tr",{"data-param-name":Se.get("name"),"data-param-in":Se.get("in")},v.default.createElement("td",{className:"parameters-col_name"},v.default.createElement("div",{className:Zs?"parameter__name required":"parameter__name"},Se.get("name"),Zs?v.default.createElement("span",null," *"):null),v.default.createElement("div",{className:"parameter__type"},Si,Oi&&`[${Oi}]`,Hn&&v.default.createElement("span",{className:"prop-format"},"($",Hn,")")),v.default.createElement("div",{className:"parameter__deprecated"},Lr&&Se.get("deprecated")?"deprecated":null),v.default.createElement("div",{className:"parameter__in"},"(",Se.get("in"),")"),_o&&Qs.size?(0,K.default)(ue=Qs.entrySeq()).call(ue,hn=>{let[sn,yi]=hn;return v.default.createElement(Sa,{key:`${sn}-${yi}`,xKey:sn,xVal:yi})}):null,lo&&jc.size?(0,K.default)(ve=jc.entrySeq()).call(ve,hn=>{let[sn,yi]=hn;return v.default.createElement(Sa,{key:`${sn}-${yi}`,xKey:sn,xVal:yi})}):null),v.default.createElement("td",{className:"parameters-col_description"},Se.get("description")?v.default.createElement(qo,{source:Se.get("description")}):null,!Ho&&yt||!di?null:v.default.createElement(qo,{className:"parameter__enum",source:"<i>Available values</i> : "+(0,K.default)(en).call(en,function(hn){return hn}).toArray().join(", ")}),!Ho&&yt||mn===void 0?null:v.default.createElement(qo,{className:"parameter__default",source:"<i>Default value</i> : "+mn}),!Ho&&yt||Fn===void 0?null:v.default.createElement(qo,{source:"<i>Example</i> : "+Fn}),Ys&&!dc&&v.default.createElement("div",null,"Error: your browser does not support FormData"),Lr&&Se.get("examples")?v.default.createElement("section",{className:"parameter-controls"},v.default.createElement(Cn,{examples:Se.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:qe,defaultToFirstExample:!0,currentKey:Nr.activeExamplesMember(...jr,"parameters",this.getParamKey()),currentUserInputValue:rs})):null,Ho?null:v.default.createElement(To,{fn:Mt,getComponent:qe,value:rs,required:Zs,disabled:!yt,description:Se.get("name"),onChange:this.onChangeWrapper,errors:li.get("errors"),schema:ln}),Ho&&ln?v.default.createElement(Yo,{getComponent:qe,specPath:Vr.push("schema"),getConfigs:wt,isExecute:yt,specSelectors:$t,schema:ln,example:Ho,includeWriteOnly:!0}):null,!Ho&&yt&&Se.get("allowEmptyValue")?v.default.createElement(Bo,{onChange:this.onChangeIncludeEmpty,isIncluded:$t.parameterInclusionSettingFor(jr,Se.get("name"),Se.get("in")),isDisabled:!(0,Oe.O2)(rs)}):null,Lr&&Se.get("examples")?v.default.createElement(Zo,{example:Se.getIn(["examples",Nr.activeExamplesMember(...jr,"parameters",this.getParamKey())]),getComponent:qe,getConfigs:wt}):null))}}var Ip=wo(6235);class $d extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"handleValidateParameters",()=>{let{specSelectors:ue,specActions:ve,path:Se,method:Ne}=this.props;return ve.validateParams([Se,Ne]),ue.validateBeforeExecute([Se,Ne])}),(0,rr.default)(this,"handleValidateRequestBody",()=>{let{path:ue,method:ve,specSelectors:Se,oas3Selectors:Ne,oas3Actions:qe}=this.props,wt={missingBodyValue:!1,missingRequiredKeys:[]};qe.clearRequestBodyValidateError({path:ue,method:ve});let yt=Se.getOAS3RequiredRequestBodyContentType([ue,ve]),Mt=Ne.requestBodyValue(ue,ve),Ct=Ne.validateBeforeExecute([ue,ve]),$t=Ne.requestContentType(ue,ve);if(!Ct)return wt.missingBodyValue=!0,qe.setRequestBodyValidateError({path:ue,method:ve,validationErrors:wt}),!1;if(!yt)return!0;let jr=Ne.validateShallowRequired({oas3RequiredRequestBodyContentType:yt,oas3RequestContentType:$t,oas3RequestBodyValue:Mt});return!jr||jr.length<1||((0,En.default)(jr).call(jr,Vr=>{wt.missingRequiredKeys.push(Vr)}),qe.setRequestBodyValidateError({path:ue,method:ve,validationErrors:wt}),!1)}),(0,rr.default)(this,"handleValidationResultPass",()=>{let{specActions:ue,operation:ve,path:Se,method:Ne}=this.props;this.props.onExecute&&this.props.onExecute(),ue.execute({operation:ve,path:Se,method:Ne})}),(0,rr.default)(this,"handleValidationResultFail",()=>{let{specActions:ue,path:ve,method:Se}=this.props;ue.clearValidateParams([ve,Se]),(0,Ip.default)(()=>{ue.validateParams([ve,Se])},40)}),(0,rr.default)(this,"handleValidationResult",ue=>{ue?this.handleValidationResultPass():this.handleValidationResultFail()}),(0,rr.default)(this,"onClick",()=>{let ue=this.handleValidateParameters(),ve=this.handleValidateRequestBody(),Se=ue&&ve;this.handleValidationResult(Se)}),(0,rr.default)(this,"onChangeProducesWrapper",ue=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],ue))}render(){const{disabled:ue}=this.props;return v.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:ue},"Execute")}}class my extends v.default.Component{render(){var ue;let{headers:ve,getComponent:Se}=this.props;const Ne=Se("Property"),qe=Se("Markdown",!0);return ve&&ve.size?v.default.createElement("div",{className:"headers-wrapper"},v.default.createElement("h4",{className:"headers__title"},"Headers:"),v.default.createElement("table",{className:"headers"},v.default.createElement("thead",null,v.default.createElement("tr",{className:"header-row"},v.default.createElement("th",{className:"header-col"},"Name"),v.default.createElement("th",{className:"header-col"},"Description"),v.default.createElement("th",{className:"header-col"},"Type"))),v.default.createElement("tbody",null,(0,K.default)(ue=ve.entrySeq()).call(ue,wt=>{let[yt,Mt]=wt;if(!H.default.Map.isMap(Mt))return null;const Ct=Mt.get("description"),$t=Mt.getIn(["schema"])?Mt.getIn(["schema","type"]):Mt.getIn(["type"]),jr=Mt.getIn(["schema","example"]);return v.default.createElement("tr",{key:yt},v.default.createElement("td",{className:"header-col"},yt),v.default.createElement("td",{className:"header-col"},Ct?v.default.createElement(qe,{source:Ct}):null),v.default.createElement("td",{className:"header-col"},$t," ",jr?v.default.createElement(Ne,{propKey:"Example",propVal:jr,propClass:"header-example"}):null))}).toArray()))):null}}class Dg extends v.default.Component{render(){let{editorActions:ue,errSelectors:ve,layoutSelectors:Se,layoutActions:Ne,getComponent:qe}=this.props;const wt=qe("Collapse");if(ue&&ue.jumpToLine)var yt=ue.jumpToLine;let Mt=ve.allErrors(),Ct=(0,a.default)(Mt).call(Mt,Vr=>Vr.get("type")==="thrown"||Vr.get("level")==="error");if(!Ct||Ct.count()<1)return null;let $t=Se.isShown(["errorPane"],!0),jr=Ct.sortBy(Vr=>Vr.get("line"));return v.default.createElement("pre",{className:"errors-wrapper"},v.default.createElement("hgroup",{className:"error"},v.default.createElement("h4",{className:"errors__title"},"Errors"),v.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>Ne.show(["errorPane"],!$t)},$t?"Hide":"Show")),v.default.createElement(wt,{isOpened:$t,animated:!0},v.default.createElement("div",{className:"errors"},(0,K.default)(jr).call(jr,(Vr,Nr)=>{let Lr=Vr.get("type");return Lr==="thrown"||Lr==="auth"?v.default.createElement(o1,{key:Nr,error:Vr.get("error")||Vr,jumpToLine:yt}):Lr==="spec"?v.default.createElement(kC,{key:Nr,error:Vr,jumpToLine:yt}):void 0}))))}}const o1=Wt=>{let{error:ue,jumpToLine:ve}=Wt;if(!ue)return null;let Se=ue.get("line");return v.default.createElement("div",{className:"error-wrapper"},ue?v.default.createElement("div",null,v.default.createElement("h4",null,ue.get("source")&&ue.get("level")?a1(ue.get("source"))+" "+ue.get("level"):"",ue.get("path")?v.default.createElement("small",null," at ",ue.get("path")):null),v.default.createElement("span",{className:"message thrown"},ue.get("message")),v.default.createElement("div",{className:"error-line"},Se&&ve?v.default.createElement("a",{onClick:(0,I.default)(ve).call(ve,null,Se)},"Jump to line ",Se):null)):null)},kC=Wt=>{let{error:ue,jumpToLine:ve}=Wt,Se=null;return ue.get("path")?Se=H.List.isList(ue.get("path"))?v.default.createElement("small",null,"at ",ue.get("path").join(".")):v.default.createElement("small",null,"at ",ue.get("path")):ue.get("line")&&!ve&&(Se=v.default.createElement("small",null,"on line ",ue.get("line"))),v.default.createElement("div",{className:"error-wrapper"},ue?v.default.createElement("div",null,v.default.createElement("h4",null,a1(ue.get("source"))+" "+ue.get("level")," ",Se),v.default.createElement("span",{className:"message"},ue.get("message")),v.default.createElement("div",{className:"error-line"},ve?v.default.createElement("a",{onClick:(0,I.default)(ve).call(ve,null,ue.get("line"))},"Jump to line ",ue.get("line")):null)):null)};function a1(Wt){var ue;return(0,K.default)(ue=(Wt||"").split(" ")).call(ue,ve=>ve[0].toUpperCase()+(0,$.default)(ve).call(ve,1)).join(" ")}o1.defaultProps={jumpToLine:null};class n1 extends v.default.Component{constructor(){super(...arguments),(0,rr.default)(this,"onChangeWrapper",ue=>this.props.onChange(ue.target.value))}componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(ue){var ve;ue.contentTypes&&ue.contentTypes.size&&((0,Zr.default)(ve=ue.contentTypes).call(ve,ue.value)||ue.onChange(ue.contentTypes.first()))}render(){let{ariaControls:ue,ariaLabel:ve,className:Se,contentTypes:Ne,controlId:qe,value:wt}=this.props;return Ne&&Ne.size?v.default.createElement("div",{className:"content-type-wrapper "+(Se||"")},v.default.createElement("select",{"aria-controls":ue,"aria-label":ve,className:"content-type",id:qe,onChange:this.onChangeWrapper,value:wt||""},(0,K.default)(Ne).call(Ne,yt=>v.default.createElement("option",{key:yt,value:yt},yt)).toArray())):null}}(0,rr.default)(n1,"defaultProps",{onChange:()=>{},value:null,contentTypes:(0,H.fromJS)(["application/json"])});var Gs=wo(863),wC=wo(5942);function Mg(){for(var Wt,ue=arguments.length,ve=new Array(ue),Se=0;Se<ue;Se++)ve[Se]=arguments[Se];return(0,wC.default)(Wt=(0,a.default)(ve).call(ve,Ne=>!!Ne).join(" ")).call(Wt)}class xC extends v.default.Component{render(){let{fullscreen:ue,full:ve,...Se}=this.props;if(ue)return v.default.createElement("section",Se);let Ne="swagger-container"+(ve?"-full":"");return v.default.createElement("section",(0,Gs.default)({},Se,{className:Mg(Se.className,Ne)}))}}const by={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class EC extends v.default.Component{render(){const{hide:ue,keepContents:ve,mobile:Se,tablet:Ne,desktop:qe,large:wt,...yt}=this.props;if(ue&&!ve)return v.default.createElement("span",null);let Mt=[];for(let $t in by){if(!Object.prototype.hasOwnProperty.call(by,$t))continue;let jr=by[$t];if($t in this.props){let Vr=this.props[$t];if(Vr<1){Mt.push("none"+jr);continue}Mt.push("block"+jr),Mt.push("col-"+Vr+jr)}}ue&&Mt.push("hidden");let Ct=Mg(yt.className,...Mt);return v.default.createElement("section",(0,Gs.default)({},yt,{className:Ct}))}}class SC extends v.default.Component{render(){return v.default.createElement("div",(0,Gs.default)({},this.props,{className:Mg(this.props.className,"wrapper")}))}}class i1 extends v.default.Component{render(){return v.default.createElement("button",(0,Gs.default)({},this.props,{className:Mg(this.props.className,"button")}))}}(0,rr.default)(i1,"defaultProps",{className:""});const _C=Wt=>v.default.createElement("textarea",Wt),AC=Wt=>v.default.createElement("input",Wt);class s1 extends v.default.Component{constructor(ue,ve){let Se;super(ue,ve),(0,rr.default)(this,"onChange",Ne=>{let qe,{onChange:wt,multiple:yt}=this.props,Mt=(0,$.default)([]).call(Ne.target.options);var Ct;qe=yt?(0,K.default)(Ct=(0,a.default)(Mt).call(Mt,function($t){return $t.selected})).call(Ct,function($t){return $t.value}):Ne.target.value,this.setState({value:qe}),wt&&wt(qe)}),Se=ue.value?ue.value:ue.multiple?[""]:"",this.state={value:Se}}UNSAFE_componentWillReceiveProps(ue){ue.value!==this.props.value&&this.setState({value:ue.value})}render(){var ue,ve;let{allowedValues:Se,multiple:Ne,allowEmptyValue:qe,disabled:wt}=this.props,yt=((ue=this.state.value)===null||ue===void 0||(ve=ue.toJS)===null||ve===void 0?void 0:ve.call(ue))||this.state.value;return v.default.createElement("select",{className:this.props.className,multiple:Ne,value:yt,onChange:this.onChange,disabled:wt},qe?v.default.createElement("option",{value:""},"--"):null,(0,K.default)(Se).call(Se,function(Mt,Ct){return v.default.createElement("option",{key:Ct,value:String(Mt)},String(Mt))}))}}(0,rr.default)(s1,"defaultProps",{multiple:!1,allowEmptyValue:!0});class c1 extends v.default.Component{render(){return v.default.createElement("a",(0,Gs.default)({},this.props,{rel:"noopener noreferrer",className:Mg(this.props.className,"link")}))}}const l1=Wt=>{let{children:ue}=Wt;return v.default.createElement("div",{className:"no-margin"}," ",ue," ")};class u1 extends v.default.Component{renderNotAnimated(){return this.props.isOpened?v.default.createElement(l1,null,this.props.children):v.default.createElement("noscript",null)}render(){let{animated:ue,isOpened:ve,children:Se}=this.props;return ue?(Se=ve?Se:null,v.default.createElement(l1,null,Se)):this.renderNotAnimated()}}(0,rr.default)(u1,"defaultProps",{isOpened:!1,animated:!1});class OC extends v.default.Component{constructor(){var ue;super(...arguments),this.setTagShown=(0,I.default)(ue=this._setTagShown).call(ue,this)}_setTagShown(ue,ve){this.props.layoutActions.show(ue,ve)}showOp(ue,ve){let{layoutActions:Se}=this.props;Se.show(ue,ve)}render(){let{specSelectors:ue,layoutSelectors:ve,layoutActions:Se,getComponent:Ne}=this.props,qe=ue.taggedOperations();const wt=Ne("Collapse");return v.default.createElement("div",null,v.default.createElement("h4",{className:"overview-title"},"Overview"),(0,K.default)(qe).call(qe,(yt,Mt)=>{let Ct=yt.get("operations"),$t=["overview-tags",Mt],jr=ve.isShown($t,!0);return v.default.createElement("div",{key:"overview-"+Mt},v.default.createElement("h4",{onClick:()=>Se.show($t,!jr),className:"link overview-tag"}," ",jr?"-":"+",Mt),v.default.createElement(wt,{isOpened:jr,animated:!0},(0,K.default)(Ct).call(Ct,Vr=>{let{path:Nr,method:Lr,id:lo}=Vr.toObject(),_o="operations",To=lo,ca=ve.isShown([_o,To]);return v.default.createElement(jC,{key:lo,path:Nr,method:Lr,id:Nr+"-"+Lr,shown:ca,showOpId:To,showOpIdPrefix:_o,href:`#operation-${To}`,onClick:Se.show})}).toArray()))}).toArray(),qe.size<1&&v.default.createElement("h3",null," No operations defined in spec! "))}}class jC extends v.default.Component{constructor(ue){var ve;super(ue),this.onClick=(0,I.default)(ve=this._onClick).call(ve,this)}_onClick(){let{showOpId:ue,showOpIdPrefix:ve,onClick:Se,shown:Ne}=this.props;Se([ve,ue],!Ne)}render(){let{id:ue,method:ve,shown:Se,href:Ne}=this.props;return v.default.createElement(c1,{href:Ne,onClick:this.onClick,className:"block opblock-link "+(Se?"shown":"")},v.default.createElement("div",null,v.default.createElement("small",{className:`bold-label-${ve}`},ve.toUpperCase()),v.default.createElement("span",{className:"bold-label"},ue)))}}class CC extends v.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:ue,defaultValue:ve,initialValue:Se,...Ne}=this.props;return v.default.createElement("input",(0,Gs.default)({},Ne,{ref:qe=>this.inputRef=qe}))}}class PC extends v.default.Component{render(){let{host:ue,basePath:ve}=this.props;return v.default.createElement("pre",{className:"base-url"},"[ Base URL: ",ue,ve," ]")}}class IC extends v.default.Component{render(){let{data:ue,getComponent:ve,selectedServer:Se,url:Ne}=this.props,qe=ue.get("name")||"the developer",wt=$o(ue.get("url"),Ne,{selectedServer:Se}),yt=ue.get("email");const Mt=ve("Link");return v.default.createElement("div",{className:"info__contact"},wt&&v.default.createElement("div",null,v.default.createElement(Mt,{href:(0,Oe.Nm)(wt),target:"_blank"},qe," - Website")),yt&&v.default.createElement(Mt,{href:(0,Oe.Nm)(`mailto:${yt}`)},wt?`Send email to ${qe}`:`Contact ${qe}`))}}class TC extends v.default.Component{render(){let{license:ue,getComponent:ve,selectedServer:Se,url:Ne}=this.props;const qe=ve("Link");let wt=ue.get("name")||"License",yt=$o(ue.get("url"),Ne,{selectedServer:Se});return v.default.createElement("div",{className:"info__license"},yt?v.default.createElement(qe,{target:"_blank",href:(0,Oe.Nm)(yt)},wt):v.default.createElement("span",null,wt))}}class RC extends v.default.PureComponent{render(){const{url:ue,getComponent:ve}=this.props,Se=ve("Link");return v.default.createElement(Se,{target:"_blank",href:(0,Oe.Nm)(ue)},v.default.createElement("span",{className:"url"}," ",ue))}}class zC extends v.default.Component{render(){let{info:ue,url:ve,host:Se,basePath:Ne,getComponent:qe,externalDocs:wt,selectedServer:yt,url:Mt}=this.props,Ct=ue.get("version"),$t=ue.get("description"),jr=ue.get("title"),Vr=$o(ue.get("termsOfService"),Mt,{selectedServer:yt}),Nr=ue.get("contact"),Lr=ue.get("license"),lo=$o(wt&&wt.get("url"),Mt,{selectedServer:yt}),_o=wt&&wt.get("description");const To=qe("Markdown",!0),ca=qe("Link"),ja=qe("VersionStamp"),Ho=qe("InfoUrl"),Yo=qe("InfoBasePath");return v.default.createElement("div",{className:"info"},v.default.createElement("hgroup",{className:"main"},v.default.createElement("h2",{className:"title"},jr,Ct&&v.default.createElement(ja,{version:Ct})),Se||Ne?v.default.createElement(Yo,{host:Se,basePath:Ne}):null,ve&&v.default.createElement(Ho,{getComponent:qe,url:ve})),v.default.createElement("div",{className:"description"},v.default.createElement(To,{source:$t})),Vr&&v.default.createElement("div",{className:"info__tos"},v.default.createElement(ca,{target:"_blank",href:(0,Oe.Nm)(Vr)},"Terms of service")),Nr&&Nr.size?v.default.createElement(IC,{getComponent:qe,data:Nr,selectedServer:yt,url:ve}):null,Lr&&Lr.size?v.default.createElement(TC,{getComponent:qe,license:Lr,selectedServer:yt,url:ve}):null,lo?v.default.createElement(ca,{className:"info__extdocs",target:"_blank",href:(0,Oe.Nm)(lo)},_o||lo):null)}}class NC extends v.default.Component{render(){const{specSelectors:ue,getComponent:ve,oas3Selectors:Se}=this.props,Ne=ue.info(),qe=ue.url(),wt=ue.basePath(),yt=ue.host(),Mt=ue.externalDocs(),Ct=Se.selectedServer(),$t=ve("info");return v.default.createElement("div",null,Ne&&Ne.count()?v.default.createElement($t,{info:Ne,url:qe,host:yt,basePath:wt,externalDocs:Mt,getComponent:ve,selectedServer:Ct}):null)}}class BC extends v.default.Component{render(){return null}}class DC extends v.default.Component{render(){return v.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},v.default.createElement(Js.CopyToClipboard,{text:this.props.textToCopy},v.default.createElement("svg",{width:"15",height:"16"},v.default.createElement("use",{href:"#copy",xlinkHref:"#copy"}))))}}class MC extends v.default.Component{render(){return v.default.createElement("div",{className:"footer"})}}class LC extends v.default.Component{constructor(){super(...arguments),(0,rr.default)(this,"onFilterChange",ue=>{const{target:{value:ve}}=ue;this.props.layoutActions.updateFilter(ve)})}render(){const{specSelectors:ue,layoutSelectors:ve,getComponent:Se}=this.props,Ne=Se("Col"),qe=ue.loadingStatus()==="loading",wt=ue.loadingStatus()==="failed",yt=ve.currentFilter(),Mt=["operation-filter-input"];return wt&&Mt.push("failed"),qe&&Mt.push("loading"),v.default.createElement("div",null,yt===null||yt===!1||yt==="false"?null:v.default.createElement("div",{className:"filter-container"},v.default.createElement(Ne,{className:"filter wrapper",mobile:12},v.default.createElement("input",{className:Mt.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:yt===!0||yt==="true"?"":yt,disabled:qe}))))}}const vy=Function.prototype;class I0 extends v.PureComponent{constructor(ue,ve){super(ue,ve),(0,rr.default)(this,"updateValues",Se=>{let{param:Ne,isExecute:qe,consumesValue:wt=""}=Se,yt=/xml/i.test(wt),Mt=/json/i.test(wt),Ct=yt?Ne.get("value_xml"):Ne.get("value");if(Ct!==void 0){let $t=!Ct&&Mt?"{}":Ct;this.setState({value:$t}),this.onChange($t,{isXml:yt,isEditBox:qe})}else yt?this.onChange(this.sample("xml"),{isXml:yt,isEditBox:qe}):this.onChange(this.sample(),{isEditBox:qe})}),(0,rr.default)(this,"sample",Se=>{let{param:Ne,fn:{inferSchema:qe}}=this.props,wt=qe(Ne.toJS());return(0,Oe.xi)(wt,Se,{includeWriteOnly:!0})}),(0,rr.default)(this,"onChange",(Se,Ne)=>{let{isEditBox:qe,isXml:wt}=Ne;this.setState({value:Se,isEditBox:qe}),this._onChange(Se,wt)}),(0,rr.default)(this,"_onChange",(Se,Ne)=>{(this.props.onChange||vy)(Se,Ne)}),(0,rr.default)(this,"handleOnChange",Se=>{const{consumesValue:Ne}=this.props,qe=/xml/i.test(Ne),wt=Se.target.value;this.onChange(wt,{isXml:qe,isEditBox:this.state.isEditBox})}),(0,rr.default)(this,"toggleIsEditBox",()=>this.setState(Se=>({isEditBox:!Se.isEditBox}))),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(ue){this.updateValues.call(this,ue)}render(){let{onChangeConsumes:ue,param:ve,isExecute:Se,specSelectors:Ne,pathMethod:qe,getConfigs:wt,getComponent:yt}=this.props;const Mt=yt("Button"),Ct=yt("TextArea"),$t=yt("highlightCode"),jr=yt("contentType");let Vr=(Ne?Ne.parameterWithMetaByIdentity(qe,ve):ve).get("errors",(0,H.List)()),Nr=Ne.contentTypeValues(qe).get("requestContentType"),Lr=this.props.consumes&&this.props.consumes.size?this.props.consumes:I0.defaultProp.consumes,{value:lo,isEditBox:_o}=this.state,To=null;return(0,Fd.O)(lo)&&(To="json"),v.default.createElement("div",{className:"body-param","data-param-name":ve.get("name"),"data-param-in":ve.get("in")},_o&&Se?v.default.createElement(Ct,{className:"body-param__text"+(Vr.count()?" invalid":""),value:lo,onChange:this.handleOnChange}):lo&&v.default.createElement($t,{className:"body-param__example",language:To,getConfigs:wt,value:lo}),v.default.createElement("div",{className:"body-param-options"},Se?v.default.createElement("div",{className:"body-param-edit"},v.default.createElement(Mt,{className:_o?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},_o?"Cancel":"Edit")):null,v.default.createElement("label",{htmlFor:""},v.default.createElement("span",null,"Parameter content type"),v.default.createElement(jr,{value:Nr,contentTypes:Lr,onChange:ue,className:"body-param-content-type",ariaLabel:"Parameter content type"}))))}}(0,rr.default)(I0,"defaultProp",{consumes:(0,H.fromJS)(["application/json"]),param:(0,H.fromJS)({}),onChange:vy,onChangeConsumes:vy});var FC=wo(4624);class $C extends v.default.Component{render(){let{request:ue,getConfigs:ve}=this.props,Se=(0,FC.requestSnippetGenerator_curl_bash)(ue);const Ne=ve(),qe=(0,Oc.default)(Ne,"syntaxHighlight.activated")?v.default.createElement(yn.d3,{language:"bash",className:"curl microlight",style:(0,yn.C2)((0,Oc.default)(Ne,"syntaxHighlight.theme"))},Se):v.default.createElement("textarea",{readOnly:!0,className:"curl",value:Se});return v.default.createElement("div",{className:"curl-command"},v.default.createElement("h4",null,"Curl"),v.default.createElement("div",{className:"copy-to-clipboard"},v.default.createElement(Js.CopyToClipboard,{text:Se},v.default.createElement("button",null))),v.default.createElement("div",null,qe))}}class UC extends v.default.Component{constructor(){super(...arguments),(0,rr.default)(this,"onChange",ue=>{this.setScheme(ue.target.value)}),(0,rr.default)(this,"setScheme",ue=>{let{path:ve,method:Se,specActions:Ne}=this.props;Ne.setScheme(ue,ve,Se)})}UNSAFE_componentWillMount(){let{schemes:ue}=this.props;this.setScheme(ue.first())}UNSAFE_componentWillReceiveProps(ue){var ve;this.props.currentScheme&&(0,Zr.default)(ve=ue.schemes).call(ve,this.props.currentScheme)||this.setScheme(ue.schemes.first())}render(){var ue;let{schemes:ve,currentScheme:Se}=this.props;return v.default.createElement("label",{htmlFor:"schemes"},v.default.createElement("span",{className:"schemes-title"},"Schemes"),v.default.createElement("select",{onChange:this.onChange,value:Se},(0,K.default)(ue=ve.valueSeq()).call(ue,Ne=>v.default.createElement("option",{value:Ne,key:Ne},Ne)).toArray()))}}class qC extends v.default.Component{render(){const{specActions:ue,specSelectors:ve,getComponent:Se}=this.props,Ne=ve.operationScheme(),qe=ve.schemes(),wt=Se("schemes");return qe&&qe.size?v.default.createElement(wt,{currentScheme:Ne,schemes:qe,specActions:ue}):null}}class T0 extends v.Component{constructor(ue,ve){super(ue,ve),(0,rr.default)(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})}),(0,rr.default)(this,"onLoad",qe=>{if(qe&&this.props.layoutSelectors){const wt=this.props.layoutSelectors.getScrollToKey();H.default.is(wt,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,qe.parentElement)}});let{expanded:Se,collapsedContent:Ne}=this.props;this.state={expanded:Se,collapsedContent:Ne||T0.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:ue,expanded:ve,modelName:Se}=this.props;ue&&ve&&this.props.onToggle(Se,ve)}UNSAFE_componentWillReceiveProps(ue){this.props.expanded!==ue.expanded&&this.setState({expanded:ue.expanded})}render(){const{title:ue,classes:ve}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?v.default.createElement("span",{className:ve||""},this.props.children):v.default.createElement("span",{className:ve||"",ref:this.onLoad},v.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},ue&&v.default.createElement("span",{className:"pointer"},ue),v.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&v.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}(0,rr.default)(T0,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:H.default.List([])});var KC=wo(1798),R0=wo.n(KC);class HC extends v.default.Component{constructor(ue,ve){super(ue,ve),(0,rr.default)(this,"activeTab",yt=>{let{target:{dataset:{name:Mt}}}=yt;this.setState({activeTab:Mt})});let{getConfigs:Se,isExecute:Ne}=this.props,{defaultModelRendering:qe}=Se(),wt=qe;qe!=="example"&&qe!=="model"&&(wt="example"),Ne&&(wt="example"),this.state={activeTab:wt}}UNSAFE_componentWillReceiveProps(ue){ue.isExecute&&!this.props.isExecute&&this.props.example&&this.setState({activeTab:"example"})}render(){let{getComponent:ue,specSelectors:ve,schema:Se,example:Ne,isExecute:qe,getConfigs:wt,specPath:yt,includeReadOnly:Mt,includeWriteOnly:Ct}=this.props,{defaultModelExpandDepth:$t}=wt();const jr=ue("ModelWrapper"),Vr=ue("highlightCode"),Nr=R0()(5).toString("base64"),Lr=R0()(5).toString("base64"),lo=R0()(5).toString("base64"),_o=R0()(5).toString("base64");let To=ve.isOAS3();return v.default.createElement("div",{className:"model-example"},v.default.createElement("ul",{className:"tab",role:"tablist"},v.default.createElement("li",{className:(0,da.default)("tabitem",{active:this.state.activeTab==="example"}),role:"presentation"},v.default.createElement("button",{"aria-controls":Lr,"aria-selected":this.state.activeTab==="example",className:"tablinks","data-name":"example",id:Nr,onClick:this.activeTab,role:"tab"},qe?"Edit Value":"Example Value")),Se&&v.default.createElement("li",{className:(0,da.default)("tabitem",{active:this.state.activeTab==="model"}),role:"presentation"},v.default.createElement("button",{"aria-controls":_o,"aria-selected":this.state.activeTab==="model",className:(0,da.default)("tablinks",{inactive:qe}),"data-name":"model",id:lo,onClick:this.activeTab,role:"tab"},To?"Schema":"Model"))),this.state.activeTab==="example"&&v.default.createElement("div",{"aria-hidden":this.state.activeTab!=="example","aria-labelledby":Nr,"data-name":"examplePanel",id:Lr,role:"tabpanel",tabIndex:"0"},Ne||v.default.createElement(Vr,{value:"(no example available)",getConfigs:wt})),this.state.activeTab==="model"&&v.default.createElement("div",{"aria-hidden":this.state.activeTab==="example","aria-labelledby":lo,"data-name":"modelPanel",id:_o,role:"tabpanel",tabIndex:"0"},v.default.createElement(jr,{schema:Se,getComponent:ue,getConfigs:wt,specSelectors:ve,expandDepth:$t,specPath:yt,includeReadOnly:Mt,includeWriteOnly:Ct})))}}class VC extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"onToggle",(ue,ve)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,ve)})}render(){let{getComponent:ue,getConfigs:ve}=this.props;const Se=ue("Model");let Ne;return this.props.layoutSelectors&&(Ne=this.props.layoutSelectors.isShown(this.props.fullPath)),v.default.createElement("div",{className:"model-box"},v.default.createElement(Se,(0,Gs.default)({},this.props,{getConfigs:ve,expanded:Ne,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var WC=wo(1543);class JC extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]),(0,rr.default)(this,"getCollapsedContent",()=>" "),(0,rr.default)(this,"handleToggle",(ue,ve)=>{const{layoutActions:Se}=this.props;Se.show([...this.getSchemaBasePath(),ue],ve),ve&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),ue])}),(0,rr.default)(this,"onLoadModels",ue=>{ue&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),ue)}),(0,rr.default)(this,"onLoadModel",ue=>{if(ue){const ve=ue.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),ve],ue)}})}render(){var ue;let{specSelectors:ve,getComponent:Se,layoutSelectors:Ne,layoutActions:qe,getConfigs:wt}=this.props,yt=ve.definitions(),{docExpansion:Mt,defaultModelsExpandDepth:Ct}=wt();if(!yt.size||Ct<0)return null;const $t=this.getSchemaBasePath();let jr=Ne.isShown($t,Ct>0&&Mt!=="none");const Vr=ve.isOAS3(),Nr=Se("ModelWrapper"),Lr=Se("Collapse"),lo=Se("ModelCollapse"),_o=Se("JumpToPath",!0);return v.default.createElement("section",{className:jr?"models is-open":"models",ref:this.onLoadModels},v.default.createElement("h4",null,v.default.createElement("button",{"aria-expanded":jr,className:"models-control",onClick:()=>qe.show($t,!jr)},v.default.createElement("span",null,Vr?"Schemas":"Models"),v.default.createElement("svg",{width:"20",height:"20","aria-hidden":"true",focusable:"false"},v.default.createElement("use",{xlinkHref:jr?"#large-arrow-up":"#large-arrow-down"})))),v.default.createElement(Lr,{isOpened:jr},(0,K.default)(ue=yt.entrySeq()).call(ue,To=>{let[ca]=To;const ja=[...$t,ca],Ho=H.default.List(ja),Yo=ve.specResolvedSubtree(ja),qo=ve.specJson().getIn(ja),Sa=H.Map.isMap(Yo)?Yo:H.default.Map(),Bo=H.Map.isMap(qo)?qo:H.default.Map(),Cn=Sa.get("title")||Bo.get("title")||ca,Zo=Ne.isShown(ja,!1);Zo&&Sa.size===0&&Bo.size>0&&this.props.specActions.requestResolvedSubtree(ja);const Ba=v.default.createElement(Nr,{name:ca,expandDepth:Ct,schema:Sa||H.default.Map(),displayName:Cn,fullPath:ja,specPath:Ho,getComponent:Se,specSelectors:ve,getConfigs:wt,layoutSelectors:Ne,layoutActions:qe,includeReadOnly:!0,includeWriteOnly:!0}),en=v.default.createElement("span",{className:"model-box"},v.default.createElement("span",{className:"model model-title"},Cn));return v.default.createElement("div",{id:`model-${ca}`,className:"model-container",key:`models-section-${ca}`,"data-name":ca,ref:this.onLoadModel},v.default.createElement("span",{className:"models-jump-to-path"},v.default.createElement(_o,{specPath:Ho})),v.default.createElement(lo,{classes:"model-box",collapsedContent:this.getCollapsedContent(ca),onToggle:this.handleToggle,title:en,displayName:Cn,modelName:ca,specPath:Ho,layoutSelectors:Ne,layoutActions:qe,hideSelfOnExpand:!0,expanded:Ct>0&&Zo},Ba))}).toArray()))}}const GC=Wt=>{let{value:ue,getComponent:ve}=Wt,Se=ve("ModelCollapse"),Ne=v.default.createElement("span",null,"Array [ ",ue.count()," ]");return v.default.createElement("span",{className:"prop-enum"},"Enum:",v.default.createElement("br",null),v.default.createElement(Se,{collapsedContent:Ne},"[ ",ue.join(", ")," ]"))};class YC extends v.Component{render(){var ue,ve,Se,Ne;let{schema:qe,name:wt,displayName:yt,isRef:Mt,getComponent:Ct,getConfigs:$t,depth:jr,onToggle:Vr,expanded:Nr,specPath:Lr,...lo}=this.props,{specSelectors:_o,expandDepth:To,includeReadOnly:ca,includeWriteOnly:ja}=lo;const{isOAS3:Ho}=_o;if(!qe)return null;const{showExtensions:Yo}=$t();let qo=qe.get("description"),Sa=qe.get("properties"),Bo=qe.get("additionalProperties"),Cn=qe.get("title")||yt||wt,Zo=qe.get("required"),Ba=(0,a.default)(qe).call(qe,(hn,sn)=>{var yi;return(0,No.default)(yi=["maxProperties","minProperties","nullable","example"]).call(yi,sn)!==-1}),en=qe.get("deprecated"),mn=qe.getIn(["externalDocs","url"]),Fn=qe.getIn(["externalDocs","description"]);const ln=Ct("JumpToPath",!0),li=Ct("Markdown",!0),Hn=Ct("Model"),Si=Ct("ModelCollapse"),Oi=Ct("Property"),Ys=Ct("Link"),dc=()=>v.default.createElement("span",{className:"model-jump-to-path"},v.default.createElement(ln,{specPath:Lr})),Zs=v.default.createElement("span",null,v.default.createElement("span",null,"{"),"...",v.default.createElement("span",null,"}"),Mt?v.default.createElement(dc,null):""),rs=_o.isOAS3()?qe.get("anyOf"):null,Qs=_o.isOAS3()?qe.get("oneOf"):null,jc=_o.isOAS3()?qe.get("not"):null,di=Cn&&v.default.createElement("span",{className:"model-title"},Mt&&qe.get("$$ref")&&v.default.createElement("span",{className:"model-hint"},qe.get("$$ref")),v.default.createElement("span",{className:"model-title__text"},Cn));return v.default.createElement("span",{className:"model"},v.default.createElement(Si,{modelName:wt,title:di,onToggle:Vr,expanded:!!Nr||jr<=To,collapsedContent:Zs},v.default.createElement("span",{className:"brace-open object"},"{"),Mt?v.default.createElement(dc,null):null,v.default.createElement("span",{className:"inner-object"},v.default.createElement("table",{className:"model"},v.default.createElement("tbody",null,qo?v.default.createElement("tr",{className:"description"},v.default.createElement("td",null,"description:"),v.default.createElement("td",null,v.default.createElement(li,{source:qo}))):null,mn&&v.default.createElement("tr",{className:"external-docs"},v.default.createElement("td",null,"externalDocs:"),v.default.createElement("td",null,v.default.createElement(Ys,{target:"_blank",href:(0,Oe.Nm)(mn)},Fn||mn))),en?v.default.createElement("tr",{className:"property"},v.default.createElement("td",null,"deprecated:"),v.default.createElement("td",null,"true")):null,Sa&&Sa.size?(0,K.default)(ue=(0,a.default)(ve=Sa.entrySeq()).call(ve,hn=>{let[,sn]=hn;return(!sn.get("readOnly")||ca)&&(!sn.get("writeOnly")||ja)})).call(ue,hn=>{let[sn,yi]=hn,Lg=Ho()&&yi.get("deprecated"),Fg=H.List.isList(Zo)&&Zo.contains(sn),$g=["property-row"];return Lg&&$g.push("deprecated"),Fg&&$g.push("required"),v.default.createElement("tr",{key:sn,className:$g.join(" ")},v.default.createElement("td",null,sn,Fg&&v.default.createElement("span",{className:"star"},"*")),v.default.createElement("td",null,v.default.createElement(Hn,(0,Gs.default)({key:`object-${wt}-${sn}_${yi}`},lo,{required:Fg,getComponent:Ct,specPath:Lr.push("properties",sn),getConfigs:$t,schema:yi,depth:jr+1}))))}).toArray():null,Yo?v.default.createElement("tr",null,v.default.createElement("td",null," ")):null,Yo?(0,K.default)(Se=qe.entrySeq()).call(Se,hn=>{let[sn,yi]=hn;if((0,$.default)(sn).call(sn,0,2)!=="x-")return;const Lg=yi?yi.toJS?yi.toJS():yi:null;return v.default.createElement("tr",{key:sn,className:"extension"},v.default.createElement("td",null,sn),v.default.createElement("td",null,(0,m.default)(Lg)))}).toArray():null,Bo&&Bo.size?v.default.createElement("tr",null,v.default.createElement("td",null,"< * >:"),v.default.createElement("td",null,v.default.createElement(Hn,(0,Gs.default)({},lo,{required:!1,getComponent:Ct,specPath:Lr.push("additionalProperties"),getConfigs:$t,schema:Bo,depth:jr+1})))):null,rs?v.default.createElement("tr",null,v.default.createElement("td",null,"anyOf ->"),v.default.createElement("td",null,(0,K.default)(rs).call(rs,(hn,sn)=>v.default.createElement("div",{key:sn},v.default.createElement(Hn,(0,Gs.default)({},lo,{required:!1,getComponent:Ct,specPath:Lr.push("anyOf",sn),getConfigs:$t,schema:hn,depth:jr+1})))))):null,Qs?v.default.createElement("tr",null,v.default.createElement("td",null,"oneOf ->"),v.default.createElement("td",null,(0,K.default)(Qs).call(Qs,(hn,sn)=>v.default.createElement("div",{key:sn},v.default.createElement(Hn,(0,Gs.default)({},lo,{required:!1,getComponent:Ct,specPath:Lr.push("oneOf",sn),getConfigs:$t,schema:hn,depth:jr+1})))))):null,jc?v.default.createElement("tr",null,v.default.createElement("td",null,"not ->"),v.default.createElement("td",null,v.default.createElement("div",null,v.default.createElement(Hn,(0,Gs.default)({},lo,{required:!1,getComponent:Ct,specPath:Lr.push("not"),getConfigs:$t,schema:jc,depth:jr+1}))))):null))),v.default.createElement("span",{className:"brace-close"},"}")),Ba.size?(0,K.default)(Ne=Ba.entrySeq()).call(Ne,hn=>{let[sn,yi]=hn;return v.default.createElement(Oi,{key:`${sn}-${yi}`,propKey:sn,propVal:yi,propClass:"property"})}):null)}}class ZC extends v.Component{render(){var ue;let{getComponent:ve,getConfigs:Se,schema:Ne,depth:qe,expandDepth:wt,name:yt,displayName:Mt,specPath:Ct}=this.props,$t=Ne.get("description"),jr=Ne.get("items"),Vr=Ne.get("title")||Mt||yt,Nr=(0,a.default)(Ne).call(Ne,(qo,Sa)=>{var Bo;return(0,No.default)(Bo=["type","items","description","$$ref","externalDocs"]).call(Bo,Sa)===-1}),Lr=Ne.getIn(["externalDocs","url"]),lo=Ne.getIn(["externalDocs","description"]);const _o=ve("Markdown",!0),To=ve("ModelCollapse"),ca=ve("Model"),ja=ve("Property"),Ho=ve("Link"),Yo=Vr&&v.default.createElement("span",{className:"model-title"},v.default.createElement("span",{className:"model-title__text"},Vr));return v.default.createElement("span",{className:"model"},v.default.createElement(To,{title:Yo,expanded:qe<=wt,collapsedContent:"[...]"},"[",Nr.size?(0,K.default)(ue=Nr.entrySeq()).call(ue,qo=>{let[Sa,Bo]=qo;return v.default.createElement(ja,{key:`${Sa}-${Bo}`,propKey:Sa,propVal:Bo,propClass:"property"})}):null,$t?v.default.createElement(_o,{source:$t}):Nr.size?v.default.createElement("div",{className:"markdown"}):null,Lr&&v.default.createElement("div",{className:"external-docs"},v.default.createElement(Ho,{target:"_blank",href:(0,Oe.Nm)(Lr)},lo||Lr)),v.default.createElement("span",null,v.default.createElement(ca,(0,Gs.default)({},this.props,{getConfigs:Se,specPath:Ct.push("items"),name:null,schema:jr,required:!1,depth:qe+1}))),"]"))}}const z0="property primitive";class QC extends v.Component{render(){var ue,ve,Se;let{schema:Ne,getComponent:qe,getConfigs:wt,name:yt,displayName:Mt,depth:Ct,expandDepth:$t}=this.props;const{showExtensions:jr}=wt();if(!Ne||!Ne.get)return v.default.createElement("div",null);let Vr=Ne.get("type"),Nr=Ne.get("format"),Lr=Ne.get("xml"),lo=Ne.get("enum"),_o=Ne.get("title")||Mt||yt,To=Ne.get("description"),ca=(0,Oe.nX)(Ne),ja=(0,a.default)(Ne).call(Ne,(en,mn)=>{var Fn;return(0,No.default)(Fn=["enum","type","format","description","$$ref","externalDocs"]).call(Fn,mn)===-1}).filterNot((en,mn)=>ca.has(mn)),Ho=Ne.getIn(["externalDocs","url"]),Yo=Ne.getIn(["externalDocs","description"]);const qo=qe("Markdown",!0),Sa=qe("EnumModel"),Bo=qe("Property"),Cn=qe("ModelCollapse"),Zo=qe("Link"),Ba=_o&&v.default.createElement("span",{className:"model-title"},v.default.createElement("span",{className:"model-title__text"},_o));return v.default.createElement("span",{className:"model"},v.default.createElement(Cn,{title:Ba,expanded:Ct<=$t,collapsedContent:"[...]",hideSelfOnExpand:$t!==Ct},v.default.createElement("span",{className:"prop"},yt&&Ct>1&&v.default.createElement("span",{className:"prop-name"},_o),v.default.createElement("span",{className:"prop-type"},Vr),Nr&&v.default.createElement("span",{className:"prop-format"},"($",Nr,")"),ja.size?(0,K.default)(ue=ja.entrySeq()).call(ue,en=>{let[mn,Fn]=en;return v.default.createElement(Bo,{key:`${mn}-${Fn}`,propKey:mn,propVal:Fn,propClass:z0})}):null,jr&&ca.size?(0,K.default)(ve=ca.entrySeq()).call(ve,en=>{let[mn,Fn]=en;return v.default.createElement(Bo,{key:`${mn}-${Fn}`,propKey:mn,propVal:Fn,propClass:z0})}):null,To?v.default.createElement(qo,{source:To}):null,Ho&&v.default.createElement("div",{className:"external-docs"},v.default.createElement(Zo,{target:"_blank",href:(0,Oe.Nm)(Ho)},Yo||Ho)),Lr&&Lr.size?v.default.createElement("span",null,v.default.createElement("br",null),v.default.createElement("span",{className:z0},"xml:"),(0,K.default)(Se=Lr.entrySeq()).call(Se,en=>{let[mn,Fn]=en;return v.default.createElement("span",{key:`${mn}-${Fn}`,className:z0},v.default.createElement("br",null)," ",mn,": ",String(Fn))}).toArray()):null,lo&&v.default.createElement(Sa,{value:lo,getComponent:qe}))))}}const XC=Wt=>{let{propKey:ue,propVal:ve,propClass:Se}=Wt;return v.default.createElement("span",{className:Se},v.default.createElement("br",null),ue,": ",String(ve))};class p1 extends v.default.Component{render(){const{onTryoutClick:ue,onCancelClick:ve,onResetClick:Se,enabled:Ne,hasUserEditedBody:qe,isOAS3:wt}=this.props,yt=wt&&qe;return v.default.createElement("div",{className:yt?"try-out btn-group":"try-out"},Ne?v.default.createElement("button",{className:"btn try-out__btn cancel",onClick:ve},"Cancel"):v.default.createElement("button",{className:"btn try-out__btn",onClick:ue},"Try it out "),yt&&v.default.createElement("button",{className:"btn try-out__btn reset",onClick:Se},"Reset"))}}(0,rr.default)(p1,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class d1 extends v.default.PureComponent{render(){const{bypass:ue,isSwagger2:ve,isOAS3:Se,alsoShow:Ne}=this.props;return ue?v.default.createElement("div",null,this.props.children):ve&&Se?v.default.createElement("div",{className:"version-pragma"},Ne,v.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},v.default.createElement("div",null,v.default.createElement("h3",null,"Unable to render this definition"),v.default.createElement("p",null,v.default.createElement("code",null,"swagger")," and ",v.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),v.default.createElement("p",null,"Supported version fields are ",v.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",v.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",v.default.createElement("code",null,"openapi: 3.0.0"),").")))):ve||Se?v.default.createElement("div",null,this.props.children):v.default.createElement("div",{className:"version-pragma"},Ne,v.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},v.default.createElement("div",null,v.default.createElement("h3",null,"Unable to render this definition"),v.default.createElement("p",null,"The provided definition does not specify a valid version field."),v.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",v.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",v.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",v.default.createElement("code",null,"openapi: 3.0.0"),")."))))}}(0,rr.default)(d1,"defaultProps",{alsoShow:null,children:null,bypass:!1});const eP=Wt=>{let{version:ue}=Wt;return v.default.createElement("small",null,v.default.createElement("pre",{className:"version"}," ",ue," "))},tP=Wt=>{let{enabled:ue,path:ve,text:Se}=Wt;return v.default.createElement("a",{className:"nostyle",onClick:ue?Ne=>Ne.preventDefault():null,href:ue?`#/${ve}`:null},v.default.createElement("span",null,Se))},rP=()=>v.default.createElement("div",null,v.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},v.default.createElement("defs",null,v.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},v.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),v.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},v.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),v.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},v.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),v.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},v.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),v.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},v.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),v.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},v.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),v.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},v.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),v.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},v.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),v.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},v.default.createElement("g",{transform:"translate(2, -1)"},v.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));var oP=wo(5466);class aP extends v.default.Component{render(){let{errSelectors:ue,specSelectors:ve,getComponent:Se}=this.props,Ne=Se("SvgAssets"),qe=Se("InfoContainer",!0),wt=Se("VersionPragmaFilter"),yt=Se("operations",!0),Mt=Se("Models",!0),Ct=Se("Row"),$t=Se("Col"),jr=Se("errors",!0);const Vr=Se("ServersContainer",!0),Nr=Se("SchemesContainer",!0),Lr=Se("AuthorizeBtnContainer",!0),lo=Se("FilterContainer",!0);let _o=ve.isSwagger2(),To=ve.isOAS3();const ca=!ve.specStr(),ja=ve.loadingStatus();let Ho=null;if(ja==="loading"&&(Ho=v.default.createElement("div",{className:"info"},v.default.createElement("div",{className:"loading-container"},v.default.createElement("div",{className:"loading"})))),ja==="failed"&&(Ho=v.default.createElement("div",{className:"info"},v.default.createElement("div",{className:"loading-container"},v.default.createElement("h4",{className:"title"},"Failed to load API definition."),v.default.createElement(jr,null)))),ja==="failedConfig"){const Zo=ue.lastError(),Ba=Zo?Zo.get("message"):"";Ho=v.default.createElement("div",{className:"info failed-config"},v.default.createElement("div",{className:"loading-container"},v.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),v.default.createElement("p",null,Ba)))}if(!Ho&&ca&&(Ho=v.default.createElement("h4",null,"No API definition provided.")),Ho)return v.default.createElement("div",{className:"swagger-ui"},v.default.createElement("div",{className:"loading-container"},Ho));const Yo=ve.servers(),qo=ve.schemes(),Sa=Yo&&Yo.size,Bo=qo&&qo.size,Cn=!!ve.securityDefinitions();return v.default.createElement("div",{className:"swagger-ui"},v.default.createElement(Ne,null),v.default.createElement(wt,{isSwagger2:_o,isOAS3:To,alsoShow:v.default.createElement(jr,null)},v.default.createElement(jr,null),v.default.createElement(Ct,{className:"information-container"},v.default.createElement($t,{mobile:12},v.default.createElement(qe,null))),Sa||Bo||Cn?v.default.createElement("div",{className:"scheme-container"},v.default.createElement($t,{className:"schemes wrapper",mobile:12},Sa?v.default.createElement(Vr,null):null,Bo?v.default.createElement(Nr,null):null,Cn?v.default.createElement(Lr,null):null)):null,v.default.createElement(lo,null),v.default.createElement(Ct,null,v.default.createElement($t,{mobile:12,desktop:12},v.default.createElement(yt,null))),v.default.createElement(Ct,null,v.default.createElement($t,{mobile:12,desktop:12},v.default.createElement(Mt,null)))))}}const h1=(Wt=>{var ue={};return wo.d(ue,Wt),ue})({default:()=>p3()}),Tp={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,H.List)()};class g1 extends v.Component{componentDidMount(){const{dispatchInitialValue:ue,value:ve,onChange:Se}=this.props;ue?Se(ve):ue===!1&&Se("")}render(){let{schema:ue,errors:ve,value:Se,onChange:Ne,getComponent:qe,fn:wt,disabled:yt}=this.props;const Mt=ue&&ue.get?ue.get("format"):null,Ct=ue&&ue.get?ue.get("type"):null;let $t=Ct?(jr=>qe(jr,!1,{failSilently:!0}))(Mt?`JsonSchema_${Ct}_${Mt}`:`JsonSchema_${Ct}`):qe("JsonSchema_string");return $t||($t=qe("JsonSchema_string")),v.default.createElement($t,(0,Gs.default)({},this.props,{errors:ve,fn:wt,getComponent:qe,value:Se,onChange:Ne,schema:ue,disabled:yt}))}}(0,rr.default)(g1,"defaultProps",Tp);class f1 extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"onChange",ue=>{const ve=this.props.schema&&this.props.schema.get("type")==="file"?ue.target.files[0]:ue.target.value;this.props.onChange(ve,this.props.keyName)}),(0,rr.default)(this,"onEnumChange",ue=>this.props.onChange(ue))}render(){let{getComponent:ue,value:ve,schema:Se,errors:Ne,required:qe,description:wt,disabled:yt}=this.props;const Mt=Se&&Se.get?Se.get("enum"):null,Ct=Se&&Se.get?Se.get("format"):null,$t=Se&&Se.get?Se.get("type"):null,jr=Se&&Se.get?Se.get("in"):null;if(ve||(ve=""),Ne=Ne.toJS?Ne.toJS():[],Mt){const Lr=ue("Select");return v.default.createElement(Lr,{className:Ne.length?"invalid":"",title:Ne.length?Ne:"",allowedValues:[...Mt],value:ve,allowEmptyValue:!qe,disabled:yt,onChange:this.onEnumChange})}const Vr=yt||jr&&jr==="formData"&&!("FormData"in window),Nr=ue("Input");return $t&&$t==="file"?v.default.createElement(Nr,{type:"file",className:Ne.length?"invalid":"",title:Ne.length?Ne:"",onChange:this.onChange,disabled:Vr}):v.default.createElement(h1.default,{type:Ct&&Ct==="password"?"password":"text",className:Ne.length?"invalid":"",title:Ne.length?Ne:"",value:ve,minLength:0,debounceTimeout:350,placeholder:wt,onChange:this.onChange,disabled:Vr})}}(0,rr.default)(f1,"defaultProps",Tp);class m1 extends v.PureComponent{constructor(ue,ve){super(ue,ve),(0,rr.default)(this,"onChange",()=>{this.props.onChange(this.state.value)}),(0,rr.default)(this,"onItemChange",(Se,Ne)=>{this.setState(qe=>{let{value:wt}=qe;return{value:wt.set(Ne,Se)}},this.onChange)}),(0,rr.default)(this,"removeItem",Se=>{this.setState(Ne=>{let{value:qe}=Ne;return{value:qe.delete(Se)}},this.onChange)}),(0,rr.default)(this,"addItem",()=>{let Se=wy(this.state.value);this.setState(()=>({value:Se.push((0,Oe.xi)(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))}),this.onChange)}),(0,rr.default)(this,"onEnumChange",Se=>{this.setState(()=>({value:Se}),this.onChange)}),this.state={value:wy(ue.value),schema:ue.schema}}UNSAFE_componentWillReceiveProps(ue){const ve=wy(ue.value);ve!==this.state.value&&this.setState({value:ve}),ue.schema!==this.state.schema&&this.setState({schema:ue.schema})}render(){var ue;let{getComponent:ve,required:Se,schema:Ne,errors:qe,fn:wt,disabled:yt}=this.props;qe=qe.toJS?qe.toJS():(0,U.default)(qe)?qe:[];const Mt=(0,a.default)(qe).call(qe,Ho=>typeof Ho=="string"),Ct=(0,K.default)(ue=(0,a.default)(qe).call(qe,Ho=>Ho.needRemove!==void 0)).call(ue,Ho=>Ho.error),$t=this.state.value,jr=!!($t&&$t.count&&$t.count()>0),Vr=Ne.getIn(["items","enum"]),Nr=Ne.getIn(["items","type"]),Lr=Ne.getIn(["items","format"]),lo=Ne.get("items");let _o,To=!1,ca=Nr==="file"||Nr==="string"&&Lr==="binary";if(Nr&&Lr?_o=ve(`JsonSchema_${Nr}_${Lr}`):Nr!=="boolean"&&Nr!=="array"&&Nr!=="object"||(_o=ve(`JsonSchema_${Nr}`)),_o||ca||(To=!0),Vr){const Ho=ve("Select");return v.default.createElement(Ho,{className:qe.length?"invalid":"",title:qe.length?qe:"",multiple:!0,value:$t,disabled:yt,allowedValues:Vr,allowEmptyValue:!Se,onChange:this.onEnumChange})}const ja=ve("Button");return v.default.createElement("div",{className:"json-schema-array"},jr?(0,K.default)($t).call($t,(Ho,Yo)=>{var qo;const Sa=(0,H.fromJS)([...(0,K.default)(qo=(0,a.default)(qe).call(qe,Bo=>Bo.index===Yo)).call(qo,Bo=>Bo.error)]);return v.default.createElement("div",{key:Yo,className:"json-schema-form-item"},ca?v.default.createElement(ky,{value:Ho,onChange:Bo=>this.onItemChange(Bo,Yo),disabled:yt,errors:Sa,getComponent:ve}):To?v.default.createElement(yy,{value:Ho,onChange:Bo=>this.onItemChange(Bo,Yo),disabled:yt,errors:Sa}):v.default.createElement(_o,(0,Gs.default)({},this.props,{value:Ho,onChange:Bo=>this.onItemChange(Bo,Yo),disabled:yt,errors:Sa,schema:lo,getComponent:ve,fn:wt})),yt?null:v.default.createElement(ja,{className:`btn btn-sm json-schema-form-item-remove ${Ct.length?"invalid":null}`,title:Ct.length?Ct:"",onClick:()=>this.removeItem(Yo)}," - "))}):null,yt?null:v.default.createElement(ja,{className:`btn btn-sm json-schema-form-item-add ${Mt.length?"invalid":null}`,title:Mt.length?Mt:"",onClick:this.addItem},"Add ",Nr?`${Nr} `:"","item"))}}(0,rr.default)(m1,"defaultProps",Tp);class yy extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"onChange",ue=>{const ve=ue.target.value;this.props.onChange(ve,this.props.keyName)})}render(){let{value:ue,errors:ve,description:Se,disabled:Ne}=this.props;return ue||(ue=""),ve=ve.toJS?ve.toJS():[],v.default.createElement(h1.default,{type:"text",className:ve.length?"invalid":"",title:ve.length?ve:"",value:ue,minLength:0,debounceTimeout:350,placeholder:Se,onChange:this.onChange,disabled:Ne})}}(0,rr.default)(yy,"defaultProps",Tp);class ky extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"onFileChange",ue=>{const ve=ue.target.files[0];this.props.onChange(ve,this.props.keyName)})}render(){let{getComponent:ue,errors:ve,disabled:Se}=this.props;const Ne=ue("Input"),qe=Se||!("FormData"in window);return v.default.createElement(Ne,{type:"file",className:ve.length?"invalid":"",title:ve.length?ve:"",onChange:this.onFileChange,disabled:qe})}}(0,rr.default)(ky,"defaultProps",Tp);class b1 extends v.Component{constructor(){super(...arguments),(0,rr.default)(this,"onEnumChange",ue=>this.props.onChange(ue))}render(){let{getComponent:ue,value:ve,errors:Se,schema:Ne,required:qe,disabled:wt}=this.props;Se=Se.toJS?Se.toJS():[];let yt=Ne&&Ne.get?Ne.get("enum"):null,Mt=!yt||!qe,Ct=!yt&&["true","false"];const $t=ue("Select");return v.default.createElement($t,{className:Se.length?"invalid":"",title:Se.length?Se:"",value:String(ve),disabled:wt,allowedValues:yt?[...yt]:Ct,allowEmptyValue:Mt,onChange:this.onEnumChange})}}(0,rr.default)(b1,"defaultProps",Tp);const nP=Wt=>(0,K.default)(Wt).call(Wt,ue=>{const ve=ue.propKey!==void 0?ue.propKey:ue.index;let Se=typeof ue=="string"?ue:typeof ue.error=="string"?ue.error:null;if(!ve&&Se)return Se;let Ne=ue.error,qe=`/${ue.propKey}`;for(;typeof Ne=="object";){const wt=Ne.propKey!==void 0?Ne.propKey:Ne.index;if(wt===void 0||(qe+=`/${wt}`,!Ne.error))break;Ne=Ne.error}return`${qe}: ${Ne}`});class v1 extends v.PureComponent{constructor(){super(),(0,rr.default)(this,"onChange",ue=>{this.props.onChange(ue)}),(0,rr.default)(this,"handleOnChange",ue=>{const ve=ue.target.value;this.onChange(ve)})}render(){let{getComponent:ue,value:ve,errors:Se,disabled:Ne}=this.props;const qe=ue("TextArea");return Se=Se.toJS?Se.toJS():(0,U.default)(Se)?Se:[],v.default.createElement("div",null,v.default.createElement(qe,{className:(0,da.default)({invalid:Se.length}),title:Se.length?nP(Se).join(", "):"",value:(0,Oe.Pz)(ve),disabled:Ne,onChange:this.handleOnChange}))}}function wy(Wt){return H.List.isList(Wt)?Wt:(0,U.default)(Wt)?(0,H.fromJS)(Wt):(0,H.List)()}function iP(){let Wt={components:{App:pa,authorizationPopup:va,authorizeBtn:qa,AuthorizeBtnContainer:xa,authorizeOperationBtn:ie,auths:be,AuthItem:Be,authError:It,oauth2:Da,apiKeyAuth:Nt,basicAuth:er,clear:bi,liveResponse:Ya,InitializedInput:CC,info:zC,InfoContainer:NC,JumpToPath:BC,CopyToClipboardBtn:DC,onlineValidatorBadge:jn.Z,operations:Kr,operation:bt,OperationSummary:Ko,OperationSummaryMethod:Uo,OperationSummaryPath:Mo,highlightCode:A0,responses:Pp,response:O0,ResponseExtension:j0,responseBody:fy,parameters:Na,parameterRow:Bg,execute:$d,headers:my,errors:Dg,contentType:n1,overview:OC,footer:MC,FilterContainer:LC,ParamBody:I0,curl:$C,schemes:UC,SchemesContainer:qC,modelExample:HC,ModelWrapper:VC,ModelCollapse:T0,Model:WC.Z,Models:JC,EnumModel:GC,ObjectModel:YC,ArrayModel:ZC,PrimitiveModel:QC,Property:XC,TryItOutButton:p1,Markdown:oP.Z,BaseLayout:aP,VersionPragmaFilter:d1,VersionStamp:eP,OperationExt:vi,OperationExtRow:Ma,ParameterExt:Ra,ParameterIncludeEmpty:Sn,OperationTag:la,OperationContainer:ba,DeepLink:tP,InfoUrl:RC,InfoBasePath:PC,SvgAssets:rP,Example:Pr,ExamplesSelect:ya,ExamplesSelectValueRetainer:Ea}},ue={components:e},ve={components:t};return[mo.default,Ao.default,lr.default,Ut.default,Tt.default,br.default,Wr.default,tt.default,Wt,ue,Dr.default,ve,io.default,nr.default,ft.default,rt.default,Ir.default,Gt.default,(0,ho.default)()]}(0,rr.default)(v1,"defaultProps",Tp);var sP=wo(7451);function y1(){return[iP,sP.default]}var cP=wo(5308);const{GIT_DIRTY:lP,GIT_COMMIT:uP,PACKAGE_VERSION:pP,BUILD_TIME:dP}={PACKAGE_VERSION:"4.19.1",GIT_COMMIT:"g75a8f34",GIT_DIRTY:!0,BUILD_TIME:"Mon, 12 Jun 2023 16:31:01 GMT"};function xy(Wt){var ue;je.Z.versions=je.Z.versions||{},je.Z.versions.swaggerUi={version:pP,gitRevision:uP,gitDirty:lP,buildTimestamp:dP};const ve={dom_id:null,domNode:null,spec:{},url:"",urls:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:null,filter:null,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:`${window.location.protocol}//${window.location.host}${window.location.pathname.substring(0,(0,r.default)(ue=window.location.pathname).call(ue,"/"))}/oauth2-redirect.html`,persistAuthorization:!1,configs:{},custom:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:Vr=>Vr,responseInterceptor:Vr=>Vr,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:void 0,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[y1],plugins:[],pluginsOptions:{pluginLoadType:"legacy"},initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"}};let Se=Wt.queryConfigEnabled?(0,Oe.UG)():{};const Ne=Wt.domNode;delete Wt.domNode;const qe=x()({},ve,Wt,Se),wt={system:{configs:qe.configs},plugins:qe.presets,pluginsOptions:qe.pluginsOptions,state:x()({layout:{layout:qe.layout,filter:(0,a.default)(qe)},spec:{spec:"",url:qe.url},requestSnippets:qe.requestSnippets},qe.initialState)};if(qe.initialState)for(var yt in qe.initialState)Object.prototype.hasOwnProperty.call(qe.initialState,yt)&&qe.initialState[yt]===void 0&&delete wt.state[yt];var Mt=new Ze(wt);Mt.register([qe.plugins,()=>({fn:qe.fn,components:qe.components,state:qe.state})]);var Ct=Mt.getSystem();const $t=Vr=>{let Nr=Ct.specSelectors.getLocalConfig?Ct.specSelectors.getLocalConfig():{},Lr=x()({},Nr,qe,Vr||{},Se);if(Ne&&(Lr.domNode=Ne),Mt.setConfigs(Lr),Ct.configsActions.loaded(),Vr!==null&&(!Se.url&&typeof Lr.spec=="object"&&(0,i.default)(Lr.spec).length?(Ct.specActions.updateUrl(""),Ct.specActions.updateLoadingStatus("success"),Ct.specActions.updateSpec((0,m.default)(Lr.spec))):Ct.specActions.download&&Lr.url&&!Lr.urls&&(Ct.specActions.updateUrl(Lr.url),Ct.specActions.download(Lr.url))),Lr.domNode)Ct.render(Lr.domNode,"App");else if(Lr.dom_id){let lo=document.querySelector(Lr.dom_id);Ct.render(lo,"App")}else Lr.dom_id===null||Lr.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified");return Ct},jr=Se.config||qe.configUrl;return jr&&Ct.specActions&&Ct.specActions.getConfigByUrl?(Ct.specActions.getConfigByUrl({url:jr,loadRemoteConfig:!0,requestInterceptor:qe.requestInterceptor,responseInterceptor:qe.responseInterceptor},$t),Ct):$t()}xy.presets={apis:y1},xy.plugins=cP.default;const hP=xy})();var Df=jk.Z,h3=ut(77987),g3=ut(96307),wb=ut.n(g3),f3=ut(81437),xb=ut.n(f3),m3=ut(95484),Eb=ut.n(m3),b3=ut(77150),Sb=ut.n(b3),v3=ut(86420),_b=ut.n(v3),Mf=ut(98577),qh={};Mf.Z&&Mf.Z.locals&&(qh.locals=Mf.Z.locals);var Ab,Ob=0,wp={};wp.styleTagTransform=_b(),wp.setAttributes=Eb(),wp.insert=function(e,t){t.testId&&e.setAttribute("data-testid",t.testId),(t.target||document.head).appendChild(e)},wp.domAPI=xb(),wp.insertStyleElement=Sb(),qh.use=function(e){return wp.options=e||{},Ob++||(Ab=wb()(Mf.Z,wp)),qh},qh.unuse=function(){Ob>0&&!--Ob&&(Ab(),Ab=null)};const Ck=qh;var vr=ut(9305);class y3 extends vr.RP{constructor(t,r,a){super(t,r,a),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const Lf=y3;class k3 extends vr.RP{constructor(t,r,a){super(t,r,a),this.element="comment"}}const Ff=k3;class w3 extends vr.ON{constructor(t,r,a){super(t,r,a),this.element="parseResult"}get api(){return this.children.filter(t=>t.classes.contains("api")).first}get results(){return this.children.filter(t=>t.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(t=>t.element==="annotation")}get warnings(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("warning"))}get errors(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("error"))}get isEmpty(){return this.children.reject(t=>t.element==="annotation").isEmpty}replaceResult(t){const{result:r}=this;if(ic(r))return!1;const a=this.content.findIndex(i=>i===r);return a!==-1&&(this.content[a]=t,!0)}}const ul=w3;class x3 extends vr.ON{constructor(t,r,a){super(t,r,a),this.element="sourceMap"}get positionStart(){return this.children.filter(t=>t.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(t=>t.classes.contains("position")).get(1)}set position(t){if(t===null)return;const r=new vr.ON([t.start.row,t.start.column,t.start.char]),a=new vr.ON([t.end.row,t.end.column,t.end.char]);r.classes.push("position"),a.classes.push("position"),this.push(r).push(a)}}const $f=x3;var E3=Qi(function(e,t,r){var a,i={};for(a in r=r||{},t=t||{})Cs(a,t)&&(i[a]=Cs(a,r)?e(a,t[a],r[a]):t[a]);for(a in r)Cs(a,r)&&!Cs(a,i)&&(i[a]=r[a]);return i});const S3=E3;var _3=Qi(function e(t,r,a){return S3(function(i,m,A){return Vl(m)&&Vl(A)?e(t,m,A):t(i,m,A)},r,a)});const A3=_3,Pk=Jo(function(e,t){return A3(function(r,a,i){return i},e,t)}),O3=Au(0,-1);var j3=Jo(function(e,t){return e.apply(this,t)});const C3=j3,P3=Zl(Is),I3=Jo(function(e,t){return e&&t}),xp=Jo(function(e,t){return kc(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:sp(I3)(e,t)});var T3=Mn(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Al(e)?[]:zc(e)?"":Vl(e)?{}:Eu(e)?function(){return arguments}():function(t){var r=Object.prototype.toString.call(t);return r==="[object Uint8ClampedArray]"||r==="[object Int8Array]"||r==="[object Uint8Array]"||r==="[object Int16Array]"||r==="[object Uint16Array]"||r==="[object Int32Array]"||r==="[object Uint32Array]"||r==="[object Float32Array]"||r==="[object Float64Array]"||r==="[object BigInt64Array]"||r==="[object BigUint64Array]"}(e)?e.constructor.from(""):void 0});const R3=T3,Kh=Mn(function(e){return e!=null&&ys(e,R3(e))}),Ik=Gn(1,Is(Array.isArray)?Array.isArray:qi(Ps,Dc("Array"))),z3=xp(Ik,Kh);var N3=Gn(3,function(e,t,r){var a=vs(e,r),i=vs(O3(e),r);if(!P3(a)&&!z3(e)){var m=Xi(a,i);return C3(m,t)}});const Sd=N3;function Uf(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var B3=function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=Uf(this.xf["@@transducer/step"](t,!1))),t},e}();function D3(e){return function(t){return new B3(e,t)}}var M3=Jo(il(["all"],D3,function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}));const jb=M3,L3=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",F3=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,$3=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t&&typeof t.primitive=="function"&&t.primitive()===e,U3=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof vr.ON)&&t.classes.includes(e),Bu=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,ea=e=>e({hasMethod:L3,hasBasicElementProps:F3,primitiveEq:$3,isElementType:Bu,hasClass:U3}),ws=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vr.W_||e(r)&&t(void 0,r)),an=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vr.RP||e(r)&&t("string",r)),Cb=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vr.VL||e(r)&&t("number",r)),Pb=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vr.zr||e(r)&&t("null",r)),Hh=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vr.hh||e(r)&&t("boolean",r)),On=ea(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>a=>a instanceof vr.Sb||e(a)&&t("object",a)&&r("keys",a)&&r("values",a)&&r("items",a)),$c=ea(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>a=>a instanceof vr.ON&&!(a instanceof vr.Sb)||e(a)&&t("array",a)&&r("push",a)&&r("unshift",a)&&r("map",a)&&r("reduce",a)),Ac=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vr.c6||e(a)&&t("member",a)&&r(void 0,a)),Tk=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vr.EA||e(a)&&t("link",a)&&r(void 0,a)),Rk=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vr.tK||e(a)&&t("ref",a)&&r(void 0,a)),q3=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Lf||e(a)&&t("annotation",a)&&r("array",a)),K3=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Ff||e(a)&&t("comment",a)&&r("string",a)),zk=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ul||e(a)&&t("parseResult",a)&&r("array",a)),Nk=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof $f||e(a)&&t("sourceMap",a)&&r("array",a)),ru=e=>Bu("object",e)||Bu("array",e)||Bu("boolean",e)||Bu("number",e)||Bu("string",e)||Bu("null",e)||Bu("member",e),Ib=e=>Nk(e.meta.get("sourceMap")),H3=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return!!$c(r)&&jb(ud(r.toValue()),e)},Vh=(e,t)=>e.length===0||jb(ud(t.classes.toValue()),e),Tb=ys(null),Bk=Zl(Tb);function Rb(e){return Rb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rb(e)}const Dk=function(e){return Rb(e)==="object"},V3=Gn(1,xp(Bk,Dk));var W3=qi(Ps,Dc("Object")),J3=qi(Jl,ys(Jl(Object))),G3=rp(xp(Is,J3),["constructor"]);const qf=Gn(1,function(e){if(!V3(e)||!W3(e))return!1;var t=Object.getPrototypeOf(e);return!!Tb(t)||G3(t)});class Mk extends vr.lS{constructor(){super(),this.register("annotation",Lf),this.register("comment",Ff),this.register("parseResult",ul),this.register("sourceMap",$f)}}const Y3=new Mk,_d=e=>{const t=new Mk;return qf(e)&&t.use(e),t},Lk=Y3,Fk=()=>({predicates:{...y},namespace:Lk});var Zt=ut(7194);const zb=function(){return!1};var Z3=ut(80442);const Q3=class extends Z3{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:a}=r;this.cause=a,a instanceof Error&&"stack"in a&&(this.stack=`${this.stack}
|
|
208
208
|
CAUSE: ${a.stack}`)}}};class X3 extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Q3,t)}constructor(t,r){if(super(t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:a}=r;this.cause=a,a instanceof Error&&"stack"in a&&(this.stack=`${this.stack}
|
|
209
209
|
CAUSE: ${a.stack}`)}}}const Mi=X3,Wh=class extends Mi{constructor(e,t){if(super(e,t),t!=null&&typeof t=="object"){const{cause:r,...a}=t;Object.assign(this,a)}}},Nb=(e,t,r)=>{const a=e[t];if(a!=null){if(!r&&typeof a=="function")return a;const i=r?a.leave:a.enter;if(typeof i=="function")return i}else{const i=r?e.leave:e.enter;if(i!=null){if(typeof i=="function")return i;const m=i[t];if(typeof m=="function")return m}}return null},wa={},Kf=e=>e==null?void 0:e.type,$k=e=>typeof Kf(e)=="string",Bb=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Uk=(e,{visitFnGetter:t=Nb,nodeTypeGetter:r=Kf,breakSymbol:a=wa,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:m=!1,exposeEdits:A=!1}={})=>{const x=Symbol("skip"),I=new Array(e.length).fill(x);return{enter(L,...$){let U=L,V=!1;for(let K=0;K<e.length;K+=1)if(I[K]===x){const J=t(e[K],r(U),!1);if(typeof J=="function"){const v=J.call(e[K],U,...$);if(v===m)I[K]=L;else if(v===a)I[K]=a;else{if(v===i)return v;if(v!==void 0){if(!A)return v;U=v,V=!0}}}}return V?U:void 0},leave(L,...$){for(let U=0;U<e.length;U+=1)if(I[U]===x){const V=t(e[U],r(L),!0);if(typeof V=="function"){const K=V.call(e[U],L,...$);if(K===a)I[U]=a;else if(K!==void 0&&K!==m)return K}}else I[U]===L&&(I[U]=x)}}},Db=(e,t,{keyMap:r=null,state:a={},breakSymbol:i=wa,deleteNodeSymbol:m=null,skipVisitingNodeSymbol:A=!1,visitFnGetter:x=Nb,nodeTypeGetter:I=Kf,nodePredicate:L=$k,nodeCloneFn:$=Bb,detectCycles:U=!0}={})=>{const V=r||{};let K,J,v=Array.isArray(e),oe=[e],H=-1,ge=[],ce=e;const ye=[],Me=[];do{H+=1;const Oe=H===oe.length;let it;const Ze=Oe&&ge.length!==0;if(Oe){if(it=Me.length===0?void 0:ye.pop(),ce=J,J=Me.pop(),Ze)if(v){ce=ce.slice();let kt=0;for(const[Ht,Qt]of ge){const br=Ht-kt;Qt===m?(ce.splice(br,1),kt+=1):ce[br]=Qt}}else{ce=$(ce);for(const[kt,Ht]of ge)ce[kt]=Ht}H=K.index,oe=K.keys,ge=K.edits,v=K.inArray,K=K.prev}else if(J!==m&&J!==void 0){if(it=v?H:oe[H],ce=J[it],ce===m||ce===void 0)continue;ye.push(it)}let ct;if(!Array.isArray(ce)){if(!L(ce))throw new Wh(`Invalid AST Node: ${String(ce)}`,{node:ce});if(U&&Me.includes(ce)){ye.pop();continue}const kt=x(t,I(ce),Oe);if(kt){for(const[Ht,Qt]of Object.entries(a))t[Ht]=Qt;ct=kt.call(t,ce,it,J,ye,Me)}if(ct===i)break;if(ct===A){if(!Oe){ye.pop();continue}}else if(ct!==void 0&&(ge.push([it,ct]),!Oe)){if(!L(ct)){ye.pop();continue}ce=ct}}var je;ct===void 0&&Ze&&ge.push([it,ce]),!Oe&&(K={inArray:v,index:H,keys:oe,edits:ge,prev:K},v=Array.isArray(ce),oe=v?ce:(je=V[I(ce)])!==null&&je!==void 0?je:[],H=-1,ge=[],J!==m&&J!==void 0&&Me.push(J),J=ce)}while(K!==void 0);return ge.length!==0?ge[ge.length-1][1]:e};Db[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:a={},breakSymbol:i=wa,deleteNodeSymbol:m=null,skipVisitingNodeSymbol:A=!1,visitFnGetter:x=Nb,nodeTypeGetter:I=Kf,nodePredicate:L=$k,nodeCloneFn:$=Bb,detectCycles:U=!0}={})=>{const V=r||{};let K,J,v=Array.isArray(e),oe=[e],H=-1,ge=[],ce=e;const ye=[],Me=[];do{H+=1;const Oe=H===oe.length;let it;const Ze=Oe&&ge.length!==0;if(Oe){if(it=Me.length===0?void 0:ye.pop(),ce=J,J=Me.pop(),Ze)if(v){ce=ce.slice();let kt=0;for(const[Ht,Qt]of ge){const br=Ht-kt;Qt===m?(ce.splice(br,1),kt+=1):ce[br]=Qt}}else{ce=$(ce);for(const[kt,Ht]of ge)ce[kt]=Ht}H=K.index,oe=K.keys,ge=K.edits,v=K.inArray,K=K.prev}else if(J!==m&&J!==void 0){if(it=v?H:oe[H],ce=J[it],ce===m||ce===void 0)continue;ye.push(it)}let ct;if(!Array.isArray(ce)){if(!L(ce))throw new Wh(`Invalid AST Node: ${String(ce)}`,{node:ce});if(U&&Me.includes(ce)){ye.pop();continue}const kt=x(t,I(ce),Oe);if(kt){for(const[Ht,Qt]of Object.entries(a))t[Ht]=Qt;ct=await kt.call(t,ce,it,J,ye,Me)}if(ct===i)break;if(ct===A){if(!Oe){ye.pop();continue}}else if(ct!==void 0&&(ge.push([it,ct]),!Oe)){if(!L(ct)){ye.pop();continue}ce=ct}}var je;ct===void 0&&Ze&&ge.push([it,ce]),!Oe&&(K={inArray:v,index:H,keys:oe,edits:ge,prev:K},v=Array.isArray(ce),oe=v?ce:(je=V[I(ce)])!==null&&je!==void 0?je:[],H=-1,ge=[],J!==m&&J!==void 0&&Me.push(J),J=ce)}while(K!==void 0);return ge.length!==0?ge[ge.length-1][1]:e};const qk=class extends Wh{constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},e6=class extends qk{},t6=class extends qk{},fo=(e,t={})=>{const{visited:r=new WeakMap}=t,a={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof vr.KeyValuePair){const{key:i,value:m}=e,A=ws(i)?fo(i,a):i,x=ws(m)?fo(m,a):m,I=new vr.KeyValuePair(A,x);return r.set(e,I),I}if(e instanceof vr.rm){const i=x=>fo(x,a),m=[...e].map(i),A=new vr.rm(m);return r.set(e,A),A}if(e instanceof vr.O4){const i=x=>fo(x,a),m=[...e].map(i),A=new vr.O4(m);return r.set(e,A),A}if(ws(e)){const i=Ks(e);if(r.set(e,i),e.content)if(ws(e.content))i.content=fo(e.content,a);else if(e.content instanceof vr.KeyValuePair)i.content=fo(e.content,a);else if(Array.isArray(e.content)){const m=A=>fo(A,a);i.content=e.content.map(m)}else i.content=e.content;else i.content=e.content;return i}throw new e6("Value provided to cloneDeep function couldn't be cloned",{value:e})};fo.safe=e=>{try{return fo(e)}catch{return e}};const Kk=e=>{const{key:t,value:r}=e;return new vr.KeyValuePair(t,r)},Hk=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=fo(e.meta)),e.attributes.length>0&&(t._attributes=fo(e.attributes)),ws(e.content)){const r=e.content;t.content=Hk(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof vr.KeyValuePair?t.content=Kk(e.content):t.content=e.content;return t},Ks=e=>{if(e instanceof vr.KeyValuePair)return Kk(e);if(e instanceof vr.rm)return(t=>{const r=[...t];return new vr.rm(r)})(e);if(e instanceof vr.O4)return(t=>{const r=[...t];return new vr.O4(r)})(e);if(ws(e))return Hk(e);throw new t6("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ks.safe=e=>{try{return Ks(e)}catch{return e}};const Ad=e=>On(e)?"ObjectElement":$c(e)?"ArrayElement":Ac(e)?"MemberElement":an(e)?"StringElement":Hh(e)?"BooleanElement":Cb(e)?"NumberElement":Pb(e)?"NullElement":Tk(e)?"LinkElement":Rk(e)?"RefElement":void 0,Vk=e=>ws(e)?Ks(e):Bb(e),Wk=qi(Ad,sl),Od={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},Jk=Zt({props:{result:[],predicate:zb,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),xs=(e,t,{keyMap:r=Od,...a}={})=>Db(e,t,{keyMap:r,nodeTypeGetter:Ad,nodePredicate:Wk,nodeCloneFn:Vk,...a});xs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Od,...a}={})=>Db[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Ad,nodePredicate:Wk,nodeCloneFn:Vk,...a});const r6={toolboxCreator:Fk,visitorOptions:{nodeTypeGetter:Ad,exposeEdits:!0}},Jh=(e,t,r={})=>{if(t.length===0)return e;const a=Pk(r6,r),{toolboxCreator:i,visitorOptions:m}=a,A=i(),x=t.map($=>$(A)),I=Uk(x.map(cd({},"visitor")),{...m});x.forEach(Sd(["pre"],[]));const L=xs(e,I,m);return x.forEach(Sd(["post"],[])),L},o6=(e,{Type:t,plugins:r=[]})=>{const a=new t(e);return Jh(a,r,{toolboxCreator:Fk,visitorOptions:{nodeTypeGetter:Ad}})},Uc=e=>(t,r={})=>o6(t,{...r,Type:e});vr.Sb.refract=Uc(vr.Sb),vr.ON.refract=Uc(vr.ON),vr.RP.refract=Uc(vr.RP),vr.hh.refract=Uc(vr.hh),vr.zr.refract=Uc(vr.zr),vr.VL.refract=Uc(vr.VL),vr.EA.refract=Uc(vr.EA),vr.tK.refract=Uc(vr.tK),Lf.refract=Uc(Lf),Ff.refract=Uc(Ff),ul.refract=Uc(ul),$f.refract=Uc($f);const Hf=(e,t=new WeakMap)=>(Ac(e)?(t.set(e.key,e),Hf(e.key,t),t.set(e.value,e),Hf(e.value,t)):e.children.forEach(r=>{t.set(r,e),Hf(r,t)}),t),a6=Zt.init(function({element:e}){let t;this.transclude=function(r,a){var i;if(r===e)return a;if(r===a)return e;t=(i=t)!==null&&i!==void 0?i:Hf(e);const m=t.get(r);return ic(m)?void 0:(On(m)?((A,x,I)=>{const L=I.get(A);On(L)&&(L.content=L.map(($,U,V)=>V===A?(I.delete(A),I.set(x,L),x):V))})(r,a,t):$c(m)?((A,x,I)=>{const L=I.get(A);$c(L)&&(L.content=L.map($=>$===A?(I.delete(A),I.set(x,L),x):$))})(r,a,t):Ac(m)&&((A,x,I)=>{const L=I.get(A);Ac(L)&&(L.key===A&&(L.key=x,I.delete(A),I.set(x,L)),L.value===A&&(L.value=x,I.delete(A),I.set(x,L)))})(r,a,t),e)}}),n6=a6,ou=function(){return!0},Gk=e=>typeof(e==null?void 0:e.type)=="string"?e.type:Ad(e),Yk={EphemeralObject:["content"],EphemeralArray:["content"],...Od},Zk=(e,t,{keyMap:r=Yk,...a}={})=>xs(e,t,{keyMap:r,nodeTypeGetter:Gk,nodePredicate:ou,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...a});Zk[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Yk,...r}={})=>xs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Gk,nodePredicate:ou,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const i6=class{constructor(e){Za(this,"type","EphemeralArray");Za(this,"content",[]);Za(this,"reference");this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},s6=class{constructor(e){Za(this,"type","EphemeralObject");Za(this,"content",[]);Za(this,"reference");this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},c6=Zt.init(function(){const e=new WeakMap;this.BooleanElement=function(t){return t.toValue()},this.NumberElement=function(t){return t.toValue()},this.StringElement=function(t){return t.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new s6(t.content);return e.set(t,r),r}},this.EphemeralObject={leave:t=>t.toObject()},this.MemberElement={enter:t=>[t.key,t.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new i6(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:t=>t.toArray()}}),Gr=e=>ws(e)?an(e)||Cb(e)||Hh(e)||Pb(e)?e.toValue():Zk(e,c6()):e,l6=qi(wc(/~/g,"~0"),wc(/\//g,"~1"),encodeURIComponent),Mb=class extends Wh{},u6=class extends Mb{constructor(e,t){super(e,t),t!==void 0&&(this.tokens=[...t.tokens])}},p6=e=>{try{return e.length===0?"":`/${e.map(l6).join("/")}`}catch(t){throw new u6("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var d6=Jo(function(e,t){return Gn(Ol(Ja,0,zi("length",t)),function(){var r=arguments,a=this;return e.apply(a,al(function(i){return i.apply(a,r)},t))})});const h6=d6;function g6(e){return e}const f6=Mn(g6);var m6=xp(Gn(1,qi(Ps,Dc("Number"))),isFinite),b6=Gn(1,m6),v6=xp(Is(Number.isFinite)?Gn(1,Xi(Number.isFinite,Number)):b6,h6(ys,[Math.floor,f6])),y6=Gn(1,v6);const k6=Is(Number.isInteger)?Gn(1,Xi(Number.isInteger,Number)):y6;var w6=function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=Wl,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var a=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?Uf(a):a},e}();function x6(e){return function(t){return new w6(e,t)}}const E6=Jo(il(["take"],x6,function(e,t){return Au(0,e<0?1/0:e,t)}));var S6=Jo(function(e,t){return ys(E6(e.length,t),e)});const Qk=S6,Xk=ys("");var _6=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=Wl,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e}();function A6(e){return function(t){return new _6(e,t)}}const O6=Jo(il(["dropWhile"],A6,function(e,t){for(var r=0,a=t.length;r<a&&e(t[r]);)r+=1;return Au(r,1/0,t)})),Lb=ld(function(e,t){return qi(gh(""),O6(ud(e)),bh(""))(t)}),j6=qi(wc(/~1/g,"/"),wc(/~0/g,"~"),e=>{try{return decodeURIComponent(e)}catch{return e}}),Fb=class extends Mb{constructor(e,t){super(e,t),t!==void 0&&(this.pointer=t.pointer)}},zs=e=>{const t=(r=>{const a=r.indexOf("#");return a!==-1?r.substring(a):"#"})(e);return Lb("#",t)},C6=e=>{if(Xk(e))return[];if(!Qk("/",e))throw new Fb(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=qi(gh("/"),Ou(j6))(e);return sd(t)}catch(t){throw new Fb(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}},Gh=class extends Mb{constructor(e,t){super(e,t),t!==void 0&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},Hs=(e,t)=>{let r;try{r=C6(e)}catch(a){throw new Gh(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:fo(t),cause:a})}return r.reduce((a,i,m)=>{if(On(a)){if(!a.hasKey(i))throw new Gh(`JSON Pointer evaluation failed while evaluating token "${i}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:m,element:fo(a)});return a.get(i)}if($c(a)){if(!(i in a.content)||!k6(Number(i)))throw new Gh(`JSON Pointer evaluation failed while evaluating token "${i}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:m,element:fo(a)});return a.get(Number(i))}throw new Gh(`JSON Pointer evaluation failed while evaluating token "${i}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:m,element:fo(a)})},t)};class P6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="callback"}}const Yh=P6;class I6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="components"}get schemas(){return this.get("schemas")}set schemas(t){this.set("schemas",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get requestBodies(){return this.get("requestBodies")}set requestBodies(t){this.set("requestBodies",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(t){this.set("securitySchemes",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}}const Zh=I6;class T6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="contact"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}get email(){return this.get("email")}set email(t){this.set("email",t)}}const Qh=T6;class R6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(t){this.set("propertyName",t)}get mapping(){return this.get("mapping")}set mapping(t){this.set("mapping",t)}}const Vf=R6;class z6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(t){this.set("contentType",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(t){this.set("allowedReserved",t)}}const Wf=z6;class N6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="example"}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get value(){return this.get("value")}set value(t){this.set("value",t)}get externalValue(){return this.get("externalValue")}set externalValue(t){this.set("externalValue",t)}}const Xh=N6;class B6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="externalDocumentation"}get description(){return this.get("description")}set description(t){this.set("description",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}}const eg=B6;class ew extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new vr.hh(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vr.hh(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}}Object.defineProperty(ew.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const tg=ew;class D6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get termsOfService(){return this.get("termsOfService")}set termsOfService(t){this.set("termsOfService",t)}get contact(){return this.get("contact")}set contact(t){this.set("contact",t)}get license(){return this.get("license")}set license(t){this.set("license",t)}get version(){return this.get("version")}set version(t){this.set("version",t)}}const rg=D6;class M6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="license"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}}const og=M6;class L6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(t){this.set("operationRef",t)}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get operation(){var t,r;return an(this.operationRef)?(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation"):an(this.operationId)?(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation"):void 0}set operation(t){this.set("operation",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get server(){return this.get("server")}set server(t){this.set("server",t)}}const ag=L6;class F6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="mediaType"}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get encoding(){return this.get("encoding")}set encoding(t){this.set("encoding",t)}}const ng=F6;class $6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(t){this.set("authorizationUrl",t)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(t){this.set("tokenUrl",t)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(t){this.set("refreshUrl",t)}get scopes(){return this.get("scopes")}set scopes(t){this.set("scopes",t)}}const Jf=$6;class U6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(t){this.set("implicit",t)}get password(){return this.get("password")}set password(t){this.set("password",t)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(t){this.set("clientCredentials",t)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(t){this.set("authorizationCode",t)}}const Gf=U6;class q6 extends vr.RP{constructor(t,r,a){super(t,r,a),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const ig=q6;class K6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const Yf=K6;class H6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="operation"}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}set externalDocs(t){this.set("externalDocs",t)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vr.hh(!1)}set deprecated(t){this.set("deprecated",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get servers(){return this.get("severs")}set servers(t){this.set("servers",t)}}const sg=H6;class tw extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="parameter"}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get required(){return this.hasKey("required")?this.get("required"):new vr.hh(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vr.hh(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}}Object.defineProperty(tw.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const cg=tw;class V6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}}const lg=V6;class W6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="paths"}}const ug=W6;class J6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}const pg=J6;class G6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="requestBody"}get description(){return this.get("description")}set description(t){this.set("description",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get required(){return this.hasKey("required")?this.get("required"):new vr.hh(!1)}set required(t){this.set("required",t)}}const dg=G6;class Y6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="response"}get description(){return this.get("description")}set description(t){this.set("description",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}}const hg=Y6;class Z6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="responses"}get default(){return this.get("default")}set default(t){this.set("default",t)}}const gg=Z6,Es=class extends Mi{};class Q6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(t){this.set("id",t)}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get dependencies(){return this.get("dependencies")}set dependencies(t){this.set("dependencies",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){return this.get("definitions")}set definitions(t){this.set("definitions",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get base(){return this.get("base")}set base(t){this.set("base",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get media(){return this.get("media")}set media(t){this.set("media",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}}const fg=Q6;class X6 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}const Zf=X6;class e7 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(t){this.set("binaryEncoding",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}}const Qf=e7;class t7 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="linkDescription"}get href(){return this.get("href")}set href(t){this.set("href",t)}get rel(){return this.get("rel")}set rel(t){this.set("rel",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){return this.get("mediaType")}set mediaType(t){this.set("mediaType",t)}get method(){return this.get("method")}set method(t){this.set("method",t)}get encType(){return this.get("encType")}set encType(t){this.set("encType",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}const Xf=t7;var r7=Jo(function(e,t){return nl(function(r,a){return r[a]=e(t[a],a,t),r},{},Ri(t))});const o7=r7,em=Mn(function(e){return e==null}),a7=Jo(function(e,t){if(e.length===0||em(t))return!1;for(var r=t,a=0;a<e.length;){if(em(r)||!Cs(e[a],r))return!1;r=r[e[a]],a+=1}return!0});var n7=Jo(function(e,t){return a7([e],t)});const Ep=n7,i7=Qi(function(e,t,r){return e(Gl(t,r))}),tm=(e,t)=>{const r=jl(e,t);return o7(a=>{if(qf(a)&&Ep("$ref",a)&&i7(sl,"$ref",a)){const i=vs(["$ref"],a),m=Lb("#/",i);return vs(m.split("/"),r)}return qf(a)?tm(a,r):a},e)},s7=Zt({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ib(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),rw=s7,Wa=Zt(rw,{methods:{enter(e){return this.element=fo(e),wa}}}),jd=Oa(cp()),ow=Jo(function(e,t){for(var r={},a=0;a<e.length;)e[a]in t&&(r[e[a]]=t[e[a]]),a+=1;return r}),aw=e=>{if(ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},nw={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Od},c7=Zt(rw,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return ow(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=vs(["visitors",...e,"fixedFields"],this.specObj);return typeof t=="object"&&t!==null?Object.keys(t):[]},retrieveVisitor(e){return rp(Is,["visitors",...e],this.specObj)?vs(["visitors",...e],this.specObj):vs(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const a=this.retrieveVisitorInstance(e,r),i=Object.getPrototypeOf(a);return ic(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===i?fo(t):(xs(t,a,{keyMap:nw,nodeTypeGetter:aw,...r}),a.element)}}}),Du=c7,mg=Zt(Du,{props:{specPath:jd,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((a,i,m)=>{if(an(i)&&r.includes(Gr(i))&&!this.ignoredFields.includes(Gr(i))){const A=this.toRefractedElement([...t,"fixedFields",Gr(i)],a),x=new vr.c6(fo(i),A);this.copyMetaAndAttributes(m,x),x.classes.push("fixed-field"),this.element.content.push(x)}else this.ignoredFields.includes(Gr(i))||this.element.content.push(fo(m))}),this.copyMetaAndAttributes(e,this.element),wa}}}),l7=Zt(mg,Wa,{props:{specPath:Oa(["document","objects","JSONSchema"])},init(){this.element=new fg}}),u7=Wa,p7=Wa,d7=Wa,h7=Wa,g7=Wa,f7=Wa,m7=Wa,b7=Wa,v7=Wa,y7=Wa,au=Zt({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Nl=e=>On(e)&&e.hasKey("$ref"),k7=Zt(Du,au,Wa,{methods:{ObjectElement(e){const t=Nl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),wa},ArrayElement(e){return this.element=new vr.ON,this.element.classes.push("json-schema-items"),e.forEach(t=>{const r=Nl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),w7=Wa,x7=Wa,E7=Wa,S7=Wa,_7=Wa,A7=Zt(Wa,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-required"),wa}}}),O7=Mn(function(e){return Gn(Ol(Ja,0,zi("length",e)),function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})}),j7=Jo(function(e,t){return e||t}),C7=Zl(Gn(1,xp(Bk,Jo(function(e,t){return kc(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:sp(j7)(e,t)})(Dk,Is)))),iw=Zl(Kh),$b=O7([sl,C7,iw]),P7=Zt(Du,{props:{fieldPatternPredicate:zb,specPath:jd,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach((t,r,a)=>{if(!this.ignoredFields.includes(Gr(r))&&this.fieldPatternPredicate(Gr(r))){const i=this.specPath(t),m=this.toRefractedElement(i,t),A=new vr.c6(fo(r),m);this.copyMetaAndAttributes(a,A),A.classes.push("patterned-field"),this.element.content.push(A)}else this.ignoredFields.includes(Gr(r))||this.element.content.push(fo(a))}),this.copyMetaAndAttributes(e,this.element),wa}}}),rm=Zt(P7,{props:{fieldPatternPredicate:$b}}),I7=Zt(rm,au,Wa,{props:{specPath:e=>Nl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-properties")}}),T7=Zt(rm,au,Wa,{props:{specPath:e=>Nl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-patternProperties")}}),R7=Zt(rm,au,Wa,{props:{specPath:e=>Nl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-dependencies")}}),z7=Zt(Wa,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-enum"),wa}}}),N7=Zt(Wa,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("json-schema-type"),wa},ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-type"),wa}}}),B7=Zt(Du,au,Wa,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach(t=>{const r=Nl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),D7=Zt(Du,au,Wa,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach(t=>{const r=Nl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),M7=Zt(Du,au,Wa,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach(t=>{const r=Nl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),L7=Zt(rm,au,Wa,{props:{specPath:e=>Nl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-definitions")}}),F7=Wa,$7=Wa,U7=Wa,q7=Wa,K7=Wa,H7=Zt(Du,au,Wa,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach(t=>{const r=this.toRefractedElement(["document","objects","LinkDescription"],t);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),wa}}}),V7=Wa,W7=Zt(mg,Wa,{props:{specPath:Oa(["document","objects","JSONReference"])},init(){this.element=new Zf},methods:{ObjectElement(e){const t=mg.compose.methods.ObjectElement.call(this,e);return an(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),J7=Zt(Wa,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),Ub=Qi(function(e,t,r){return Gn(Math.max(e.length,t.length,r.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),G7=Mn(function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}});var Y7=Jo(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Z7=Y7,Q7=tp(0),X7=Mn(Uf),e8=Zl(em),t8=xp(Ik,iw);function r8(e){return function(t){if(Array.isArray(t))return qb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,r){if(t){if(typeof t=="string")return qb(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return qb(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
210
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var o8=qi(Z7(G7(function(e,t){return e.length>t.length})),Q7,Gl("length")),a8=ld(function(e,t,r){var a=r.apply(void 0,r8(e));return e8(a)?X7(a):t});const sw=Ub(t8,function(e){var t=o8(e);return Gn(t,function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Ol(a8(a),void 0,e)})},cp),n8=Zt(Du,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map(({predicate:a,specPath:i})=>Ub(a,Oa(i),cp)),r=sw(t)(e);return this.element=this.toRefractedElement(r,e),wa}}}),Cd=Zt(n8,{props:{alternator:[{predicate:Nl,specPath:["document","objects","JSONReference"]},{predicate:ou,specPath:["document","objects","JSONSchema"]}]}}),nu={visitors:{value:Wa,JSONSchemaOrJSONReferenceVisitor:Cd,document:{objects:{JSONSchema:{$visitor:l7,fixedFields:{id:u7,$schema:p7,multipleOf:d7,maximum:h7,exclusiveMaximum:g7,minimum:f7,exclusiveMinimum:m7,maxLength:b7,minLength:v7,pattern:y7,additionalItems:Cd,items:k7,maxItems:w7,minItems:x7,uniqueItems:E7,maxProperties:S7,minProperties:_7,required:A7,properties:I7,additionalProperties:Cd,patternProperties:T7,dependencies:R7,enum:z7,type:N7,allOf:B7,anyOf:D7,oneOf:M7,not:Cd,definitions:L7,title:F7,description:$7,default:U7,format:q7,base:K7,links:H7,media:{$ref:"#/visitors/document/objects/Media"},readOnly:V7}},JSONReference:{$visitor:W7,fixedFields:{$ref:J7}},Media:{$visitor:Zt(mg,Wa,{props:{specPath:Oa(["document","objects","Media"])},init(){this.element=new Qf}}),fixedFields:{binaryEncoding:Wa,type:Wa}},LinkDescription:{$visitor:Zt(mg,Wa,{props:{specPath:Oa(["document","objects","LinkDescription"])},init(){this.element=new Xf}}),fixedFields:{href:Wa,rel:Wa,title:Wa,targetSchema:Cd,mediaType:Wa,method:Wa,encType:Wa,schema:Cd}}}}}},i8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof fg||e(a)&&t("JSONSchemaDraft4",a)&&r("object",a)),s8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Zf||e(a)&&t("JSONReference",a)&&r("object",a)),c8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Qf||e(a)&&t("media",a)&&r("object",a)),l8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Xf||e(a)&&t("linkDescription",a)&&r("object",a)),u8={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",fg),t.register("jSONReference",Zf),t.register("media",Qf),t.register("linkDescription",Xf),t}},p8=u8,d8=()=>{const e=_d(p8);return{predicates:{...S,isStringElement:an},namespace:e}},h8=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:a=nu}={})=>{const i=(0,vr.Qc)(e),m=tm(a),A=Sd(t,[],m);return xs(i,A,{state:{specObj:m}}),Jh(A.element,r,{toolboxCreator:d8,visitorOptions:{keyMap:nw,nodeTypeGetter:aw}})},om=e=>(t,r={})=>h8(t,{specPath:e,...r});fg.refract=om(["visitors","document","objects","JSONSchema","$visitor"]),Zf.refract=om(["visitors","document","objects","JSONReference","$visitor"]),Qf.refract=om(["visitors","document","objects","Media","$visitor"]),Xf.refract=om(["visitors","document","objects","LinkDescription","$visitor"]);const am=class extends fg{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Es("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Es("idProp setter in Schema class is not not supported.")}get $schema(){throw new Es("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Es("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Es("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Es("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Es("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Es("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Es("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Es("definitions setter in Schema class is not not supported.")}get base(){throw new Es("base getter in Schema class is not not supported.")}set base(e){throw new Es("base setter in Schema class is not not supported.")}get links(){throw new Es("links getter in Schema class is not not supported.")}set links(e){throw new Es("links setter in Schema class is not not supported.")}get media(){throw new Es("media getter in Schema class is not not supported.")}set media(e){throw new Es("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class g8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="securityRequirement"}}const bg=g8;class f8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}}const nm=f8;class m8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}}const vg=m8;class b8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const yg=b8;class v8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const im=v8;class y8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}}const sm=y8,k8=Zt({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ib(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),cw=k8,lw=e=>{if(ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},uw={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Od},w8=Zt(cw,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return ow(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=vs(["visitors",...e,"fixedFields"],this.specObj);return typeof t=="object"&&t!==null?Object.keys(t):[]},retrieveVisitor(e){return rp(Is,["visitors",...e],this.specObj)?vs(["visitors",...e],this.specObj):vs(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const a=this.retrieveVisitorInstance(e,r),i=Object.getPrototypeOf(a);return ic(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===i?fo(t):(xs(t,a,{keyMap:uw,nodeTypeGetter:lw,...r}),a.element)}}}),Vs=w8,x8=e=>On(e)&&e.hasKey("openapi")&&e.hasKey("info"),E8=e=>On(e)&&e.hasKey("name")&&e.hasKey("in"),ii=e=>On(e)&&e.hasKey("$ref"),S8=e=>On(e)&&e.hasKey("content"),_8=e=>On(e)&&e.hasKey("description"),pw=On,dw=On,Kb=e=>an(e.key)&&Qk("x-",Gr(e.key)),pn=Zt(Vs,{props:{specPath:jd,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:Kb},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:a=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=a},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((a,i,m)=>{if(an(i)&&r.includes(Gr(i))&&!this.ignoredFields.includes(Gr(i))){const A=this.toRefractedElement([...t,"fixedFields",Gr(i)],a),x=new vr.c6(fo(i),A);this.copyMetaAndAttributes(m,x),x.classes.push("fixed-field"),this.element.content.push(x)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(m)){const A=this.toRefractedElement(["document","extension"],m);this.element.content.push(A)}else this.ignoredFields.includes(Gr(i))||this.element.content.push(fo(m))}),this.copyMetaAndAttributes(e,this.element),wa}}}),Kt=Zt(cw,{methods:{enter(e){return this.element=fo(e),wa}}}),A8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yf},methods:{ObjectElement(e){return this.unrefractedElement=e,pn.compose.methods.ObjectElement.call(this,e)}}}),O8=Zt(Vs,Kt,{methods:{StringElement(e){const t=new ig(Gr(e));return this.copyMetaAndAttributes(e,t),this.element=t,wa}}}),j8=Zt(Vs,{methods:{MemberElement(e){return this.element=fo(e),this.element.classes.push("specification-extension"),wa}}}),C8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new rg}}),P8=Kt,I8=Kt,T8=Kt,R8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("api-version"),this.element.classes.push("version"),wa}}}),z8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qh}}),N8=Kt,B8=Kt,D8=Kt,M8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new og}}),L8=Kt,F8=Kt,$8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new ag},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return(an(this.element.operationId)||an(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),U8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),q8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),Pd=Zt(Vs,{props:{fieldPatternPredicate:zb,specPath:jd,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:Kb},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:a=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=a},methods:{ObjectElement(e){return e.forEach((t,r,a)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const i=this.toRefractedElement(["document","extension"],a);this.element.content.push(i)}else if(!this.ignoredFields.includes(Gr(r))&&this.fieldPatternPredicate(Gr(r))){const i=this.specPath(t),m=this.toRefractedElement(i,t),A=new vr.c6(fo(r),m);this.copyMetaAndAttributes(a,A),A.classes.push("patterned-field"),this.element.content.push(A)}else this.ignoredFields.includes(Gr(r))||this.element.content.push(fo(a))}),this.copyMetaAndAttributes(e,this.element),wa}}}),Xa=Zt(Pd,{props:{fieldPatternPredicate:$b}}),qm=class qm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(qm.primaryClass)}};Za(qm,"primaryClass","link-parameters");let Hb=qm;const K8=Hb,H8=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new K8}}),V8=Kt,W8=Kt,J8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new vg}}),G8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("server-url"),wa}}}),Y8=Kt,Km=class Km extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(Km.primaryClass)}};Za(Km,"primaryClass","servers");let Vb=Km;const Wb=Vb,Jb=Zt(Vs,Kt,{init(){this.element=new Wb},methods:{ArrayElement(e){return e.forEach(t=>{const r=pw(t)?["document","objects","Server"]:["value"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),Z8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new yg}}),Q8=Kt,X8=Kt,eE=Kt,Hm=class Hm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Hm.primaryClass)}};Za(Hm,"primaryClass","server-variables");let Gb=Hm;const tE=Gb,rE=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","ServerVariable"])},init(){this.element=new tE}}),oE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new ng}}),Bl=Zt(Vs,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map(({predicate:a,specPath:i})=>Ub(a,Oa(i),cp)),r=sw(t)(e);return this.element=this.toRefractedElement(r,e),wa}}}),aE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Yh||e(a)&&t("callback",a)&&r("object",a)),nE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Zh||e(a)&&t("components",a)&&r("object",a)),iE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Qh||e(a)&&t("contact",a)&&r("object",a)),sE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Xh||e(a)&&t("example",a)&&r("object",a)),cE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof eg||e(a)&&t("externalDocumentation",a)&&r("object",a)),Id=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof tg||e(a)&&t("header",a)&&r("object",a)),lE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof rg||e(a)&&t("info",a)&&r("object",a)),uE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof og||e(a)&&t("license",a)&&r("object",a)),pE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ag||e(a)&&t("link",a)&&r("object",a)),dE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ig||e(a)&&t("openapi",a)&&r("string",a)),hE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:a})=>i=>i instanceof Yf||e(i)&&t("openApi3_0",i)&&r("object",i)&&a("api",i)),hw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof sg||e(a)&&t("operation",a)&&r("object",a)),gE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof cg||e(a)&&t("parameter",a)&&r("object",a)),Yb=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof lg||e(a)&&t("pathItem",a)&&r("object",a)),fE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ug||e(a)&&t("paths",a)&&r("object",a)),si=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof pg||e(a)&&t("reference",a)&&r("object",a)),mE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof dg||e(a)&&t("requestBody",a)&&r("object",a)),cm=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof hg||e(a)&&t("response",a)&&r("object",a)),bE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof gg||e(a)&&t("responses",a)&&r("object",a)),vE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof am||e(a)&&t("schema",a)&&r("object",a)),yE=e=>Hh(e)&&e.classes.includes("boolean-json-schema"),kE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof bg||e(a)&&t("securityRequirement",a)&&r("object",a)),wE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vg||e(a)&&t("server",a)&&r("object",a)),xE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof yg||e(a)&&t("serverVariable",a)&&r("object",a)),lm=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ng||e(a)&&t("mediaType",a)&&r("object",a)),gw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:a})=>i=>i instanceof Wb||e(i)&&t("array",i)&&r("array",i)&&a("servers",i)),EE=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),SE=Kt,Zb=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new vr.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","example")}),t}}}),Vm=class Vm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Vm.primaryClass),this.classes.push("examples")}};Za(Vm,"primaryClass","media-type-examples");let Qb=Vm;const _E=Qb,AE=Zt(Zb,{init(){this.element=new _E}}),Wm=class Wm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Wm.primaryClass)}};Za(Wm,"primaryClass","media-type-encoding");let Xb=Wm;const OE=Xb,jE=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","Encoding"])},init(){this.element=new OE}}),CE=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new bg}}),Jm=class Jm extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(Jm.primaryClass)}};Za(Jm,"primaryClass","security");let ev=Jm;const PE=ev,IE=Zt(Vs,Kt,{init(){this.element=new PE},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","SecurityRequirement"],t);this.element.push(r)}else this.element.push(fo(t))}),this.copyMetaAndAttributes(e,this.element),wa}}}),TE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zh}}),RE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new im}}),zE=Kt,NE=Kt,BE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new pg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return an(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),DE=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),ME=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new cg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.contentProp)&&this.element.contentProp.filter(lm).forEach((r,a)=>{r.setMetaProperty("media-type",Gr(a))}),t}}}),LE=Kt,FE=Kt,$E=Kt,UE=Kt,qE=Kt,KE=Kt,HE=Kt,VE=Kt,WE=Kt,JE=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),GE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new tg}}),YE=Kt,ZE=Kt,QE=Kt,XE=Kt,e9=Kt,t9=Kt,r9=Kt,o9=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),a9=Kt,Gm=class Gm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Gm.primaryClass),this.classes.push("examples")}};Za(Gm,"primaryClass","header-examples");let tv=Gm;const n9=tv,i9=Zt(Zb,{init(){this.element=new n9}}),um=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","MediaType"])},init(){this.element=new vr.Sb,this.element.classes.push("content")}}),Ym=class Ym extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Ym.primaryClass),this.classes.push("content")}};Za(Ym,"primaryClass","header-content");let rv=Ym;const s9=rv,c9=Zt(um,{init(){this.element=new s9}}),l9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new am}}),{allOf:fw}=nu.visitors.document.objects.JSONSchema.fixedFields,u9=Zt(fw,{methods:{ArrayElement(e){const t=fw.compose.methods.ArrayElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{anyOf:mw}=nu.visitors.document.objects.JSONSchema.fixedFields,p9=Zt(mw,{methods:{ArrayElement(e){const t=mw.compose.methods.ArrayElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{oneOf:bw}=nu.visitors.document.objects.JSONSchema.fixedFields,d9=Zt(bw,{methods:{ArrayElement(e){const t=bw.compose.methods.ArrayElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{items:vw}=nu.visitors.document.objects.JSONSchema.fixedFields,h9=Zt(vw,{methods:{ObjectElement(e){const t=vw.compose.methods.ObjectElement.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=fo(e),wa}}}),{properties:yw}=nu.visitors.document.objects.JSONSchema.fixedFields,g9=Zt(yw,{methods:{ObjectElement(e){const t=yw.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{type:f9}=nu.visitors.document.objects.JSONSchema.fixedFields,m9=Zt(f9,{methods:{ArrayElement(e){return this.element=fo(e),wa}}}),b9=Kt,v9=Kt,y9=Kt,k9=Kt,{JSONSchemaOrJSONReferenceVisitor:kw}=nu.visitors,ww=Zt(kw,{methods:{ObjectElement(e){const t=kw.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),w9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Vf}}),x9=Kt,Zm=class Zm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Zm.primaryClass)}};Za(Zm,"primaryClass","discriminator-mapping");let ov=Zm;const E9=ov,S9=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new E9}}),_9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new sm}}),A9=Kt,O9=Kt,j9=Kt,C9=Kt,P9=Kt,I9=Kt,Qm=class Qm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Qm.primaryClass),this.classes.push("examples")}};Za(Qm,"primaryClass","parameter-examples");let av=Qm;const T9=av,R9=Zt(Zb,{init(){this.element=new T9}}),Xm=class Xm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Xm.primaryClass),this.classes.push("content")}};Za(Xm,"primaryClass","parameter-content");let nv=Xm;const z9=nv,N9=Zt(um,{init(){this.element=new z9}}),e0=class e0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(e0.primaryClass)}};Za(e0,"primaryClass","components-schemas");let iv=e0;const xw=iv,B9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new xw},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),t0=class t0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(t0.primaryClass)}};Za(t0,"primaryClass","components-responses");let sv=t0;const D9=sv,M9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new D9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","response")}),this.element.filter(cm).forEach((r,a)=>{r.setMetaProperty("http-status-code",Gr(a))}),t}}}),r0=class r0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(r0.primaryClass),this.classes.push("parameters")}};Za(r0,"primaryClass","components-parameters");let cv=r0;const L9=cv,F9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new L9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","parameter")}),t}}}),o0=class o0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(o0.primaryClass),this.classes.push("examples")}};Za(o0,"primaryClass","components-examples");let lv=o0;const $9=lv,U9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new $9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","example")}),t}}}),a0=class a0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(a0.primaryClass)}};Za(a0,"primaryClass","components-request-bodies");let uv=a0;const q9=uv,K9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new q9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","requestBody")}),t}}}),n0=class n0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(n0.primaryClass)}};Za(n0,"primaryClass","components-headers");let pv=n0;const H9=pv,V9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new H9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","header")}),this.element.filter(Id).forEach((r,a)=>{r.setMetaProperty("header-name",Gr(a))}),t}}}),i0=class i0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(i0.primaryClass)}};Za(i0,"primaryClass","components-security-schemes");let dv=i0;const W9=dv,J9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new W9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","securityScheme")}),t}}}),s0=class s0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(s0.primaryClass)}};Za(s0,"primaryClass","components-links");let hv=s0;const G9=hv,Y9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new G9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","link")}),t}}}),c0=class c0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(c0.primaryClass)}};Za(c0,"primaryClass","components-callbacks");let gv=c0;const Z9=gv,Q9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Z9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","callback")}),t}}}),X9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xh},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return an(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),eS=Kt,tS=Kt,rS=Kt,oS=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),aS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new eg}}),nS=Kt,iS=Kt,sS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wf},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.headers)&&this.element.headers.filter(Id).forEach((r,a)=>{r.setMetaProperty("header-name",Gr(a))}),t}}}),cS=Kt,l0=class l0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(l0.primaryClass)}};Za(l0,"primaryClass","encoding-headers");let fv=l0;const lS=fv,uS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new lS},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","header")}),this.element.forEach((r,a)=>{if(!Id(r))return;const i=Gr(a);r.setMetaProperty("headerName",i)}),t}}}),pS=Kt,dS=Kt,hS=Kt,gS=Zt(Pd,Kt,{props:{fieldPatternPredicate:ou,specPath:Oa(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ug},methods:{ObjectElement(e){const t=Pd.compose.methods.ObjectElement.call(this,e);return this.element.filter(Yb).forEach((r,a)=>{a.classes.push("openapi-path-template"),a.classes.push("path-template"),r.setMetaProperty("path",fo(a))}),t}}}),fS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","RequestBody"])},init(){this.element=new dg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.contentProp)&&this.element.contentProp.filter(lm).forEach((r,a)=>{r.setMetaProperty("media-type",Gr(a))}),t}}}),mS=Kt,u0=class u0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(u0.primaryClass),this.classes.push("content")}};Za(u0,"primaryClass","request-body-content");let mv=u0;const bS=mv,vS=Zt(um,{init(){this.element=new bS}}),yS=Kt,kS=Zt(Pd,Kt,{props:{fieldPatternPredicate:lh(/{(?<expression>.*)}/),specPath:Oa(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yh},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Yb).forEach((r,a)=>{r.setMetaProperty("runtime-expression",Gr(a))}),t}}}),wS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Response"])},init(){this.element=new hg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.contentProp)&&this.element.contentProp.filter(lm).forEach((r,a)=>{r.setMetaProperty("media-type",Gr(a))}),On(this.element.headers)&&this.element.headers.filter(Id).forEach((r,a)=>{r.setMetaProperty("header-name",Gr(a))}),t}}}),xS=Kt,p0=class p0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(p0.primaryClass)}};Za(p0,"primaryClass","response-headers");let bv=p0;const ES=bv,SS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new ES},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","header")}),this.element.forEach((r,a)=>{if(!Id(r))return;const i=Gr(a);r.setMetaProperty("header-name",i)}),t}}}),d0=class d0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(d0.primaryClass),this.classes.push("content")}};Za(d0,"primaryClass","response-content");let vv=d0;const _S=vv,AS=Zt(um,{init(){this.element=new _S}}),h0=class h0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(h0.primaryClass)}};Za(h0,"primaryClass","response-links");let yv=h0;const OS=yv,jS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new OS},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","link")}),t}}});function Ew(e){return Object.prototype.toString.call(e)==="[object Number]"}var CS=Jo(function(e,t){if(!Ew(e)||!Ew(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],a=e;a<t;)r.push(a),a+=1;return r});const PS=CS;function Sw(e,t,r){var a,i=typeof e;switch(i){case"string":case"number":return e===0&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(a=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===a):r._nativeSet.has(e):i in r._items?e in r._items[i]||(t&&(r._items[i][e]=!0),!1):(t&&(r._items[i]={},r._items[i][e]=!0),!1);case"boolean":if(i in r._items){var m=e?1:0;return!!r._items[i][m]||(t&&(r._items[i][m]=!0),!1)}return t&&(r._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(a=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===a):r._nativeSet.has(e):i in r._items?!!$s(e,r._items[i])||(t&&r._items[i].push(e),!1):(t&&(r._items[i]=[e]),!1);case"undefined":return!!r._items[i]||(t&&(r._items[i]=!0),!1);case"object":if(e===null)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in r._items?!!$s(e,r._items[i])||(t&&r._items[i].push(e),!1):(t&&(r._items[i]=[e]),!1)}}const IS=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!Sw(t,!0,this)},e.prototype.has=function(t){return Sw(t,!1,this)},e}();var TS=Jo(function(e,t){for(var r=[],a=0,i=e.length,m=t.length,A=new IS,x=0;x<m;x+=1)A.add(t[x]);for(;a<i;)A.add(e[a])&&(r[r.length]=e[a]),a+=1;return r});const RS=TS,_w=Zt(pn,Pd,{props:{specPathFixedFields:jd,specPathPatternedFields:jd},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const a=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...RS(e.keys(),a)],pn.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=a,Pd.compose.methods.ObjectElement.call(this,e)}catch(a){throw this.specPath=t,a}return wa}}}),zS=Zt(_w,Kt,{props:{specPathFixedFields:Oa(["document","objects","Responses"]),specPathPatternedFields:e=>ii(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:lh(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${PS(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new gg},methods:{ObjectElement(e){const t=_w.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","response")}),this.element.filter(cm).forEach((r,a)=>{const i=fo(a);this.fieldPatternPredicate(Gr(i))&&r.setMetaProperty("http-status-code",i)}),t}}}),NS=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)?this.element.setMetaProperty("referenced-element","response"):cm(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),BS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Operation"])},init(){this.element=new sg}}),g0=class g0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(g0.primaryClass)}};Za(g0,"primaryClass","operation-tags");let kv=g0;const DS=kv,MS=Zt(Kt,{init(){this.element=new DS},methods:{ArrayElement(e){return this.element=this.element.concat(fo(e)),wa}}}),LS=Kt,FS=Kt,$S=Kt,f0=class f0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(f0.primaryClass),this.classes.push("parameters")}};Za(f0,"primaryClass","operation-parameters");let wv=f0;const Aw=wv,Ow=Zt(Vs,Kt,{init(){this.element=new vr.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach(t=>{const r=ii(t)?["document","objects","Reference"]:["document","objects","Parameter"],a=this.toRefractedElement(r,t);si(a)&&a.setMetaProperty("referenced-element","parameter"),this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),US=Zt(Ow,{init(){this.element=new Aw}}),qS=Zt(Bl,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}}),m0=class m0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(m0.primaryClass)}};Za(m0,"primaryClass","operation-callbacks");let xv=m0;const KS=xv,HS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new KS},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","callback")}),t}}}),VS=Kt,b0=class b0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(b0.primaryClass),this.classes.push("security")}};Za(b0,"primaryClass","operation-security");let Ev=b0;const jw=Ev,WS=Zt(Vs,Kt,{init(){this.element=new jw},methods:{ArrayElement(e){return e.forEach(t=>{const r=On(t)?["document","objects","SecurityRequirement"]:["value"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),v0=class v0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(v0.primaryClass),this.classes.push("servers")}};Za(v0,"primaryClass","operation-servers");let Sv=v0;const Cw=Sv,JS=Zt(Jb,{init(){this.element=new Cw}}),GS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","PathItem"])},init(){this.element=new lg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return this.element.filter(hw).forEach((r,a)=>{const i=fo(a);i.content=Gr(i).toUpperCase(),r.setMetaProperty("http-method",i)}),an(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),YS=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),ZS=Kt,QS=Kt,y0=class y0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(y0.primaryClass),this.classes.push("servers")}};Za(y0,"primaryClass","path-item-servers");let _v=y0;const Pw=_v,XS=Zt(Jb,{init(){this.element=new Pw}}),k0=class k0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(k0.primaryClass),this.classes.push("parameters")}};Za(k0,"primaryClass","path-item-parameters");let Av=k0;const e_=Av,t_=Zt(Ow,{init(){this.element=new e_}}),r_=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new nm}}),o_=Kt,a_=Kt,n_=Kt,i_=Kt,s_=Kt,c_=Kt,l_=Kt,u_=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Gf}}),p_=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jf}}),d_=Kt,h_=Kt,g_=Kt,w0=class w0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(w0.primaryClass)}};Za(w0,"primaryClass","oauth-flow-scopes");let Ov=w0;const f_=Ov,m_=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new f_}}),x0=class x0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(x0.primaryClass)}};Za(x0,"primaryClass","tags");let jv=x0;const b_=jv,v_=Zt(Vs,Kt,{init(){this.element=new b_},methods:{ArrayElement(e){return e.forEach(t=>{const r=dw(t)?["document","objects","Tag"]:["value"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),{fixedFields:ts}=nu.visitors.document.objects.JSONSchema,zr={visitors:{value:Kt,document:{objects:{OpenApi:{$visitor:A8,fixedFields:{openapi:O8,info:{$ref:"#/visitors/document/objects/Info"},servers:Jb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:IE,tags:v_,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:C8,fixedFields:{title:P8,description:I8,termsOfService:T8,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:R8}},Contact:{$visitor:z8,fixedFields:{name:N8,url:B8,email:D8}},License:{$visitor:M8,fixedFields:{name:L8,url:F8}},Server:{$visitor:J8,fixedFields:{url:G8,description:Y8,variables:rE}},ServerVariable:{$visitor:Z8,fixedFields:{enum:Q8,default:X8,description:eE}},Components:{$visitor:TE,fixedFields:{schemas:B9,responses:M9,parameters:F9,examples:U9,requestBodies:K9,headers:V9,securitySchemes:J9,links:Y9,callbacks:Q9}},Paths:{$visitor:gS},PathItem:{$visitor:GS,fixedFields:{$ref:YS,summary:ZS,description:QS,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:XS,parameters:t_}},Operation:{$visitor:BS,fixedFields:{tags:MS,summary:LS,description:FS,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:$S,parameters:US,requestBody:qS,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:HS,deprecated:VS,security:WS,servers:JS}},ExternalDocumentation:{$visitor:aS,fixedFields:{description:nS,url:iS}},Parameter:{$visitor:ME,fixedFields:{name:LE,in:FE,description:$E,required:UE,deprecated:qE,allowEmptyValue:KE,style:HE,explode:VE,allowReserved:WE,schema:JE,example:I9,examples:R9,content:N9}},RequestBody:{$visitor:fS,fixedFields:{description:mS,content:vS,required:yS}},MediaType:{$visitor:oE,fixedFields:{schema:EE,example:SE,examples:AE,encoding:jE}},Encoding:{$visitor:sS,fixedFields:{contentType:cS,headers:uS,style:pS,explode:dS,allowReserved:hS}},Responses:{$visitor:zS,fixedFields:{default:NS}},Response:{$visitor:wS,fixedFields:{description:xS,headers:SS,content:AS,links:jS}},Callback:{$visitor:kS},Example:{$visitor:X9,fixedFields:{summary:eS,description:tS,value:rS,externalValue:oS}},Link:{$visitor:$8,fixedFields:{operationRef:U8,operationId:q8,parameters:H8,requestBody:V8,description:W8,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:GE,fixedFields:{description:YE,required:ZE,deprecated:QE,allowEmptyValue:XE,style:e9,explode:t9,allowReserved:r9,schema:o9,example:a9,examples:i9,content:c9}},Tag:{$visitor:RE,fixedFields:{name:zE,description:NE,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:BE,fixedFields:{$ref:DE}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:l9,fixedFields:{title:ts.title,multipleOf:ts.multipleOf,maximum:ts.maximum,exclusiveMaximum:ts.exclusiveMaximum,minimum:ts.minimum,exclusiveMinimum:ts.exclusiveMinimum,maxLength:ts.maxLength,minLength:ts.minLength,pattern:ts.pattern,maxItems:ts.maxItems,minItems:ts.minItems,uniqueItems:ts.uniqueItems,maxProperties:ts.maxProperties,minProperties:ts.minProperties,required:ts.required,enum:ts.enum,type:m9,allOf:u9,anyOf:p9,oneOf:d9,not:ww,items:h9,properties:g9,additionalProperties:ww,description:ts.description,format:ts.format,default:ts.default,nullable:b9,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:v9,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:y9,deprecated:k9}},Discriminator:{$visitor:w9,fixedFields:{propertyName:x9,mapping:S9}},XML:{$visitor:_9,fixedFields:{name:A9,namespace:O9,prefix:j9,attribute:C9,wrapped:P9}},SecurityScheme:{$visitor:r_,fixedFields:{type:o_,description:a_,name:n_,in:i_,scheme:s_,bearerFormat:c_,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:l_}},OAuthFlows:{$visitor:u_,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:p_,fixedFields:{authorizationUrl:d_,tokenUrl:h_,refreshUrl:g_,scopes:m_}},SecurityRequirement:{$visitor:CE}},extension:{$visitor:j8}}}},y_={namespace:e=>{const{base:t}=e;return t.register("callback",Yh),t.register("components",Zh),t.register("contact",Qh),t.register("discriminator",Vf),t.register("encoding",Wf),t.register("example",Xh),t.register("externalDocumentation",eg),t.register("header",tg),t.register("info",rg),t.register("license",og),t.register("link",ag),t.register("mediaType",ng),t.register("oAuthFlow",Jf),t.register("oAuthFlows",Gf),t.register("openapi",ig),t.register("openApi3_0",Yf),t.register("operation",sg),t.register("parameter",cg),t.register("pathItem",lg),t.register("paths",ug),t.register("reference",pg),t.register("requestBody",dg),t.register("response",hg),t.register("responses",gg),t.register("schema",am),t.register("securityRequirement",bg),t.register("securityScheme",nm),t.register("server",vg),t.register("serverVariable",yg),t.register("tag",im),t.register("xml",sm),t}},k_=y_,w_=()=>{const e=_d(k_);return{predicates:{...w,...O,isStringElement:an},namespace:e}},x_=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const a=(0,vr.Qc)(e),i=tm(zr),m=Sd(t,[],i);return xs(a,m,{state:{specObj:i}}),Jh(m.element,r,{toolboxCreator:w_,visitorOptions:{keyMap:uw,nodeTypeGetter:lw}})},qn=e=>(t,r={})=>x_(t,{specPath:e,...r});Yh.refract=qn(["visitors","document","objects","Callback","$visitor"]),Zh.refract=qn(["visitors","document","objects","Components","$visitor"]),Qh.refract=qn(["visitors","document","objects","Contact","$visitor"]),Xh.refract=qn(["visitors","document","objects","Example","$visitor"]),Vf.refract=qn(["visitors","document","objects","Discriminator","$visitor"]),Wf.refract=qn(["visitors","document","objects","Encoding","$visitor"]),eg.refract=qn(["visitors","document","objects","ExternalDocumentation","$visitor"]),tg.refract=qn(["visitors","document","objects","Header","$visitor"]),rg.refract=qn(["visitors","document","objects","Info","$visitor"]),og.refract=qn(["visitors","document","objects","License","$visitor"]),ag.refract=qn(["visitors","document","objects","Link","$visitor"]),ng.refract=qn(["visitors","document","objects","MediaType","$visitor"]),Jf.refract=qn(["visitors","document","objects","OAuthFlow","$visitor"]),Gf.refract=qn(["visitors","document","objects","OAuthFlows","$visitor"]),ig.refract=qn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Yf.refract=qn(["visitors","document","objects","OpenApi","$visitor"]),sg.refract=qn(["visitors","document","objects","Operation","$visitor"]),cg.refract=qn(["visitors","document","objects","Parameter","$visitor"]),lg.refract=qn(["visitors","document","objects","PathItem","$visitor"]),ug.refract=qn(["visitors","document","objects","Paths","$visitor"]),pg.refract=qn(["visitors","document","objects","Reference","$visitor"]),dg.refract=qn(["visitors","document","objects","RequestBody","$visitor"]),hg.refract=qn(["visitors","document","objects","Response","$visitor"]),gg.refract=qn(["visitors","document","objects","Responses","$visitor"]),am.refract=qn(["visitors","document","objects","Schema","$visitor"]),bg.refract=qn(["visitors","document","objects","SecurityRequirement","$visitor"]),nm.refract=qn(["visitors","document","objects","SecurityScheme","$visitor"]),vg.refract=qn(["visitors","document","objects","Server","$visitor"]),yg.refract=qn(["visitors","document","objects","ServerVariable","$visitor"]),im.refract=qn(["visitors","document","objects","Tag","$visitor"]),sm.refract=qn(["visitors","document","objects","XML","$visitor"]);const pm=class extends Yh{},dm=class extends Zh{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},hm=class extends Qh{},Cv=class extends Vf{},Pv=class extends Wf{},gm=class extends Xh{},fm=class extends eg{},mm=class extends tg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},bm=class extends rg{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}},E0=class E0 extends vr.RP{constructor(t,r,a){super(t,r,a),this.element="jsonSchemaDialect"}};Za(E0,"default",new E0("https://spec.openapis.org/oas/3.1/dialect/base"));let Iv=E0;const kg=Iv,vm=class extends og{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},ym=class extends ag{},km=class extends ng{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Tv=class extends Jf{},Rv=class extends Gf{},zv=class extends ig{};class E_ extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}const Mu=E_,wg=class extends sg{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},wm=class extends cg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Dl=class extends lg{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},xm=class extends ug{};class Nv extends pg{}Object.defineProperty(Nv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Nv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Lu=Nv,Em=class extends dg{},Sm=class extends hg{},_m=class extends gg{};class S_ extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}const iu=S_,Am=class extends bg{},Bv=class extends nm{},Om=class extends vg{},jm=class extends yg{},Dv=class extends im{},Mv=class extends sm{},__=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mu,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,pn.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:A_}}}}}=zr,O_=Zt(A_,{init(){this.element=new bm}}),j_=Kt,{visitors:{document:{objects:{Contact:{$visitor:C_}}}}}=zr,P_=Zt(C_,{init(){this.element=new hm}}),{visitors:{document:{objects:{License:{$visitor:I_}}}}}=zr,T_=Zt(I_,{init(){this.element=new vm}}),R_=Kt,{visitors:{document:{objects:{Link:{$visitor:z_}}}}}=zr,N_=Zt(z_,{init(){this.element=new ym}}),B_=Zt(Vs,Kt,{methods:{StringElement(e){const t=new kg(Gr(e));return this.copyMetaAndAttributes(e,t),this.element=t,wa}}}),{visitors:{document:{objects:{Server:{$visitor:D_}}}}}=zr,M_=Zt(D_,{init(){this.element=new Om}}),{visitors:{document:{objects:{ServerVariable:{$visitor:L_}}}}}=zr,F_=Zt(L_,{init(){this.element=new jm}}),{visitors:{document:{objects:{MediaType:{$visitor:$_}}}}}=zr,U_=Zt($_,{init(){this.element=new km}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:q_}}}}}=zr,K_=Zt(q_,{init(){this.element=new Am}}),{visitors:{document:{objects:{Components:{$visitor:H_}}}}}=zr,V_=Zt(H_,{init(){this.element=new dm}}),{visitors:{document:{objects:{Tag:{$visitor:W_}}}}}=zr,J_=Zt(W_,{init(){this.element=new Dv}}),{visitors:{document:{objects:{Reference:{$visitor:G_}}}}}=zr,Y_=Zt(G_,{init(){this.element=new Lu}}),Z_=Kt,Q_=Kt,{visitors:{document:{objects:{Parameter:{$visitor:X_}}}}}=zr,eA=Zt(X_,{init(){this.element=new wm}}),{visitors:{document:{objects:{Header:{$visitor:tA}}}}}=zr,rA=Zt(tA,{init(){this.element=new mm}}),oA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof pm||e(a)&&t("callback",a)&&r("object",a)),aA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof dm||e(a)&&t("components",a)&&r("object",a)),nA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof hm||e(a)&&t("contact",a)&&r("object",a)),iA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof gm||e(a)&&t("example",a)&&r("object",a)),sA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof fm||e(a)&&t("externalDocumentation",a)&&r("object",a)),cA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof mm||e(a)&&t("header",a)&&r("object",a)),lA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof bm||e(a)&&t("info",a)&&r("object",a)),Iw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof kg||e(a)&&t("jsonSchemaDialect",a)&&r("string",a)),uA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vm||e(a)&&t("license",a)&&r("object",a)),pA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ym||e(a)&&t("link",a)&&r("object",a)),dA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof zv||e(a)&&t("openapi",a)&&r("string",a)),Lv=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:a})=>i=>i instanceof Mu||e(i)&&t("openApi3_1",i)&&r("object",i)&&a("api",i)),Tw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof wg||e(a)&&t("operation",a)&&r("object",a)),hA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof wm||e(a)&&t("parameter",a)&&r("object",a)),Cm=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Dl||e(a)&&t("pathItem",a)&&r("object",a)),Rw=e=>{if(!Cm(e)||!an(e.$ref))return!1;const t=Gr(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},gA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof xm||e(a)&&t("paths",a)&&r("object",a)),Td=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Lu||e(a)&&t("reference",a)&&r("object",a)),zw=e=>{if(!Td(e)||!an(e.$ref))return!1;const t=Gr(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},fA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Em||e(a)&&t("requestBody",a)&&r("object",a)),mA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Sm||e(a)&&t("response",a)&&r("object",a)),bA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof _m||e(a)&&t("responses",a)&&r("object",a)),Rd=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof iu||e(a)&&t("schema",a)&&r("object",a)),Fv=e=>Hh(e)&&e.classes.includes("boolean-json-schema"),vA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Am||e(a)&&t("securityRequirement",a)&&r("object",a)),yA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Om||e(a)&&t("server",a)&&r("object",a)),kA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof jm||e(a)&&t("serverVariable",a)&&r("object",a)),wA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof km||e(a)&&t("mediaType",a)&&r("object",a)),su=Zt({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),xA=Zt(pn,su,Kt,{props:{specPath:Oa(["document","objects","Schema"]),canSupportSpecificationExtensions:!0,jsonSchemaDefaultDialect:kg.default},init(){this.element=new iu;const e=()=>{let a;return a=this.openApiSemanticElement!==null&&Iw(this.openApiSemanticElement.jsonSchemaDialect)?Gr(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==null&&an(this.openApiGenericElement.get("jsonSchemaDialect"))?Gr(this.openApiGenericElement.get("jsonSchemaDialect")):Gr(this.jsonSchemaDefaultDialect),a},t=a=>{if(Tb(this.parent)&&!an(a.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(Rd(this.parent)&&!an(a.get("$schema"))){const i=jl(Gr(this.parent.meta.get("inherited$schema")),Gr(this.parent.$schema));this.element.setMetaProperty("inherited$schema",i)}},r=a=>{const i=this.parent!==null?fo(this.parent.getMetaProperty("inherited$id",[])):new vr.ON,m=Gr(a.get("$id"));$b(m)&&i.push(m),this.element.setMetaProperty("inherited$id",i)};this.ObjectElement=function(a){t(a),r(a),this.parent=this.element;const i=pn.compose.methods.ObjectElement.call(this,a);return an(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),i},this.BooleanElement=function(a){return this.element=fo(a),this.element.classes.push("boolean-json-schema"),wa}}}),EA=Kt,SA=Zt(Kt,{methods:{ObjectElement(e){return this.element=fo(e),this.element.classes.push("json-schema-$vocabulary"),wa}}}),_A=Kt,AA=Kt,OA=Kt,jA=Kt,CA=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),PA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-$defs")}}),IA=Kt,TA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),RA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),zA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),NA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),BA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),DA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-properties")}}),MA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-patternProperties")}}),LA=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("json-schema-type"),wa},ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-type"),wa}}}),FA=Zt(Kt,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-enum"),wa}}}),$A=Kt,UA=Kt,qA=Kt,KA=Kt,HA=Kt,VA=Kt,WA=Kt,JA=Kt,GA=Kt,YA=Kt,ZA=Kt,QA=Kt,XA=Kt,eO=Kt,tO=Kt,rO=Kt,oO=Zt(Kt,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-required"),wa}}}),aO=Zt(Kt,{methods:{ObjectElement(e){return this.element=fo(e),this.element.classes.push("json-schema-dependentRequired"),wa}}}),nO=Kt,iO=Kt,sO=Kt,cO=Kt,lO=Kt,uO=Kt,pO=Zt(Kt,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-examples"),wa}}}),dO=Kt,hO=Kt,gO=Kt,fO=Kt,{visitors:{document:{objects:{Discriminator:{$visitor:mO}}}}}=zr,bO=Zt(mO,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Cv}}),{visitors:{document:{objects:{XML:{$visitor:vO}}}}}=zr,yO=Zt(vO,{init(){this.element=new Mv}}),kO=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new xw}}),S0=class S0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(S0.primaryClass)}};Za(S0,"primaryClass","components-path-items");let $v=S0;const wO=$v,xO=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new wO},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Td).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),t}}}),{visitors:{document:{objects:{Example:{$visitor:EO}}}}}=zr,SO=Zt(EO,{init(){this.element=new gm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:_O}}}}}=zr,AO=Zt(_O,{init(){this.element=new fm}}),{visitors:{document:{objects:{Encoding:{$visitor:OO}}}}}=zr,jO=Zt(OO,{init(){this.element=new Pv}}),{visitors:{document:{objects:{Paths:{$visitor:CO}}}}}=zr,PO=Zt(CO,{init(){this.element=new xm}}),{visitors:{document:{objects:{RequestBody:{$visitor:IO}}}}}=zr,TO=Zt(IO,{init(){this.element=new Em}}),{visitors:{document:{objects:{Callback:{$visitor:Nw}}}}}=zr,RO=Zt(Nw,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new pm},methods:{ObjectElement(e){const t=Nw.compose.methods.ObjectElement.call(this,e);return this.element.filter(Td).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),t}}}),{visitors:{document:{objects:{Response:{$visitor:zO}}}}}=zr,NO=Zt(zO,{init(){this.element=new Sm}}),{visitors:{document:{objects:{Responses:{$visitor:BO}}}}}=zr,DO=Zt(BO,{init(){this.element=new _m}}),{visitors:{document:{objects:{Operation:{$visitor:MO}}}}}=zr,LO=Zt(MO,{init(){this.element=new wg}}),{visitors:{document:{objects:{PathItem:{$visitor:FO}}}}}=zr,$O=Zt(FO,{init(){this.element=new Dl}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:UO}}}}}=zr,qO=Zt(UO,{init(){this.element=new Bv}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:KO}}}}}=zr,HO=Zt(KO,{init(){this.element=new Rv}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:VO}}}}}=zr,WO=Zt(VO,{init(){this.element=new Tv}}),_0=class _0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(_0.primaryClass)}};Za(_0,"primaryClass","webhooks");let Uv=_0;const JO=Uv,GO=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new JO},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Td).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),this.element.filter(Cm).forEach((r,a)=>{r.setMetaProperty("webhook-name",Gr(a))}),t}}}),YO={visitors:{value:zr.visitors.value,document:{objects:{OpenApi:{$visitor:__,fixedFields:{openapi:zr.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:B_,servers:zr.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:GO,components:{$ref:"#/visitors/document/objects/Components"},security:zr.visitors.document.objects.OpenApi.fixedFields.security,tags:zr.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:O_,fixedFields:{title:zr.visitors.document.objects.Info.fixedFields.title,description:zr.visitors.document.objects.Info.fixedFields.description,summary:j_,termsOfService:zr.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:zr.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:P_,fixedFields:{name:zr.visitors.document.objects.Contact.fixedFields.name,url:zr.visitors.document.objects.Contact.fixedFields.url,email:zr.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:T_,fixedFields:{name:zr.visitors.document.objects.License.fixedFields.name,identifier:R_,url:zr.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:M_,fixedFields:{url:zr.visitors.document.objects.Server.fixedFields.url,description:zr.visitors.document.objects.Server.fixedFields.description,variables:zr.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:F_,fixedFields:{enum:zr.visitors.document.objects.ServerVariable.fixedFields.enum,default:zr.visitors.document.objects.ServerVariable.fixedFields.default,description:zr.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:V_,fixedFields:{schemas:kO,responses:zr.visitors.document.objects.Components.fixedFields.responses,parameters:zr.visitors.document.objects.Components.fixedFields.parameters,examples:zr.visitors.document.objects.Components.fixedFields.examples,requestBodies:zr.visitors.document.objects.Components.fixedFields.requestBodies,headers:zr.visitors.document.objects.Components.fixedFields.headers,securitySchemes:zr.visitors.document.objects.Components.fixedFields.securitySchemes,links:zr.visitors.document.objects.Components.fixedFields.links,callbacks:zr.visitors.document.objects.Components.fixedFields.callbacks,pathItems:xO}},Paths:{$visitor:PO},PathItem:{$visitor:$O,fixedFields:{$ref:zr.visitors.document.objects.PathItem.fixedFields.$ref,summary:zr.visitors.document.objects.PathItem.fixedFields.summary,description:zr.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:zr.visitors.document.objects.PathItem.fixedFields.servers,parameters:zr.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:LO,fixedFields:{tags:zr.visitors.document.objects.Operation.fixedFields.tags,summary:zr.visitors.document.objects.Operation.fixedFields.summary,description:zr.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:zr.visitors.document.objects.Operation.fixedFields.operationId,parameters:zr.visitors.document.objects.Operation.fixedFields.parameters,requestBody:zr.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:zr.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:zr.visitors.document.objects.Operation.fixedFields.deprecated,security:zr.visitors.document.objects.Operation.fixedFields.security,servers:zr.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:AO,fixedFields:{description:zr.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:zr.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:eA,fixedFields:{name:zr.visitors.document.objects.Parameter.fixedFields.name,in:zr.visitors.document.objects.Parameter.fixedFields.in,description:zr.visitors.document.objects.Parameter.fixedFields.description,required:zr.visitors.document.objects.Parameter.fixedFields.required,deprecated:zr.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:zr.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:zr.visitors.document.objects.Parameter.fixedFields.style,explode:zr.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:zr.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:zr.visitors.document.objects.Parameter.fixedFields.example,examples:zr.visitors.document.objects.Parameter.fixedFields.examples,content:zr.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:TO,fixedFields:{description:zr.visitors.document.objects.RequestBody.fixedFields.description,content:zr.visitors.document.objects.RequestBody.fixedFields.content,required:zr.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:U_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:zr.visitors.document.objects.MediaType.fixedFields.example,examples:zr.visitors.document.objects.MediaType.fixedFields.examples,encoding:zr.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:jO,fixedFields:{contentType:zr.visitors.document.objects.Encoding.fixedFields.contentType,headers:zr.visitors.document.objects.Encoding.fixedFields.headers,style:zr.visitors.document.objects.Encoding.fixedFields.style,explode:zr.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:zr.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:DO,fixedFields:{default:zr.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:NO,fixedFields:{description:zr.visitors.document.objects.Response.fixedFields.description,headers:zr.visitors.document.objects.Response.fixedFields.headers,content:zr.visitors.document.objects.Response.fixedFields.content,links:zr.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:RO},Example:{$visitor:SO,fixedFields:{summary:zr.visitors.document.objects.Example.fixedFields.summary,description:zr.visitors.document.objects.Example.fixedFields.description,value:zr.visitors.document.objects.Example.fixedFields.value,externalValue:zr.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:N_,fixedFields:{operationRef:zr.visitors.document.objects.Link.fixedFields.operationRef,operationId:zr.visitors.document.objects.Link.fixedFields.operationId,parameters:zr.visitors.document.objects.Link.fixedFields.parameters,requestBody:zr.visitors.document.objects.Link.fixedFields.requestBody,description:zr.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:rA,fixedFields:{description:zr.visitors.document.objects.Header.fixedFields.description,required:zr.visitors.document.objects.Header.fixedFields.required,deprecated:zr.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:zr.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:zr.visitors.document.objects.Header.fixedFields.style,explode:zr.visitors.document.objects.Header.fixedFields.explode,allowReserved:zr.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:zr.visitors.document.objects.Header.fixedFields.example,examples:zr.visitors.document.objects.Header.fixedFields.examples,content:zr.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:J_,fixedFields:{name:zr.visitors.document.objects.Tag.fixedFields.name,description:zr.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Y_,fixedFields:{$ref:zr.visitors.document.objects.Reference.fixedFields.$ref,summary:Z_,description:Q_}},Schema:{$visitor:xA,fixedFields:{$schema:EA,$vocabulary:SA,$id:_A,$anchor:AA,$dynamicAnchor:OA,$dynamicRef:jA,$ref:CA,$defs:PA,$comment:IA,allOf:TA,anyOf:RA,oneOf:zA,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:NA,prefixItems:BA,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:DA,patternProperties:MA,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:LA,enum:FA,const:$A,multipleOf:UA,maximum:qA,exclusiveMaximum:KA,minimum:HA,exclusiveMinimum:VA,maxLength:WA,minLength:JA,pattern:GA,maxItems:YA,minItems:ZA,uniqueItems:QA,maxContains:XA,minContains:eO,maxProperties:tO,minProperties:rO,required:oO,dependentRequired:aO,title:nO,description:iO,default:sO,deprecated:cO,readOnly:lO,writeOnly:uO,examples:pO,format:dO,contentEncoding:hO,contentMediaType:gO,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:fO}},Discriminator:{$visitor:bO,fixedFields:{propertyName:zr.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:zr.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:yO,fixedFields:{name:zr.visitors.document.objects.XML.fixedFields.name,namespace:zr.visitors.document.objects.XML.fixedFields.namespace,prefix:zr.visitors.document.objects.XML.fixedFields.prefix,attribute:zr.visitors.document.objects.XML.fixedFields.attribute,wrapped:zr.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:qO,fixedFields:{type:zr.visitors.document.objects.SecurityScheme.fixedFields.type,description:zr.visitors.document.objects.SecurityScheme.fixedFields.description,name:zr.visitors.document.objects.SecurityScheme.fixedFields.name,in:zr.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:zr.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:zr.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:zr.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:HO,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:WO,fixedFields:{authorizationUrl:zr.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:zr.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:zr.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:zr.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:K_}},extension:{$visitor:zr.visitors.document.extension.$visitor}}}},Ws=e=>{if(ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},uc={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Od},ZO={namespace:e=>{const{base:t}=e;return t.register("callback",pm),t.register("components",dm),t.register("contact",hm),t.register("discriminator",Cv),t.register("encoding",Pv),t.register("example",gm),t.register("externalDocumentation",fm),t.register("header",mm),t.register("info",bm),t.register("jsonSchemaDialect",kg),t.register("license",vm),t.register("link",ym),t.register("mediaType",km),t.register("oAuthFlow",Tv),t.register("oAuthFlows",Rv),t.register("openapi",zv),t.register("openApi3_1",Mu),t.register("operation",wg),t.register("parameter",wm),t.register("pathItem",Dl),t.register("paths",xm),t.register("reference",Lu),t.register("requestBody",Em),t.register("response",Sm),t.register("responses",_m),t.register("schema",iu),t.register("securityRequirement",Am),t.register("securityScheme",Bv),t.register("server",Om),t.register("serverVariable",jm),t.register("tag",Dv),t.register("xml",Mv),t}},Pm=ZO,Bw=()=>{const e=_d(Pm);return{predicates:{...T,isElement:ws,isStringElement:an,isArrayElement:$c,isObjectElement:On,isMemberElement:Ac,isServersElement:gw,includesClasses:Vh},namespace:e}},QO=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const a=(0,vr.Qc)(e),i=tm(YO),m=Sd(t,[],i);return xs(a,m,{state:{specObj:i}}),Jh(m.element,r,{toolboxCreator:Bw,visitorOptions:{keyMap:uc,nodeTypeGetter:Ws}})},Ln=e=>(t,r={})=>QO(t,{specPath:e,...r});pm.refract=Ln(["visitors","document","objects","Callback","$visitor"]),dm.refract=Ln(["visitors","document","objects","Components","$visitor"]),hm.refract=Ln(["visitors","document","objects","Contact","$visitor"]),gm.refract=Ln(["visitors","document","objects","Example","$visitor"]),Cv.refract=Ln(["visitors","document","objects","Discriminator","$visitor"]),Pv.refract=Ln(["visitors","document","objects","Encoding","$visitor"]),fm.refract=Ln(["visitors","document","objects","ExternalDocumentation","$visitor"]),mm.refract=Ln(["visitors","document","objects","Header","$visitor"]),bm.refract=Ln(["visitors","document","objects","Info","$visitor"]),kg.refract=Ln(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),vm.refract=Ln(["visitors","document","objects","License","$visitor"]),ym.refract=Ln(["visitors","document","objects","Link","$visitor"]),km.refract=Ln(["visitors","document","objects","MediaType","$visitor"]),Tv.refract=Ln(["visitors","document","objects","OAuthFlow","$visitor"]),Rv.refract=Ln(["visitors","document","objects","OAuthFlows","$visitor"]),zv.refract=Ln(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Mu.refract=Ln(["visitors","document","objects","OpenApi","$visitor"]),wg.refract=Ln(["visitors","document","objects","Operation","$visitor"]),wm.refract=Ln(["visitors","document","objects","Parameter","$visitor"]),Dl.refract=Ln(["visitors","document","objects","PathItem","$visitor"]),xm.refract=Ln(["visitors","document","objects","Paths","$visitor"]),Lu.refract=Ln(["visitors","document","objects","Reference","$visitor"]),Em.refract=Ln(["visitors","document","objects","RequestBody","$visitor"]),Sm.refract=Ln(["visitors","document","objects","Response","$visitor"]),_m.refract=Ln(["visitors","document","objects","Responses","$visitor"]),iu.refract=Ln(["visitors","document","objects","Schema","$visitor"]),Am.refract=Ln(["visitors","document","objects","SecurityRequirement","$visitor"]),Bv.refract=Ln(["visitors","document","objects","SecurityScheme","$visitor"]),Om.refract=Ln(["visitors","document","objects","Server","$visitor"]),jm.refract=Ln(["visitors","document","objects","ServerVariable","$visitor"]),Dv.refract=Ln(["visitors","document","objects","Tag","$visitor"]),Mv.refract=Ln(["visitors","document","objects","XML","$visitor"]);const Ml=class extends Es{},XO=class extends Array{constructor(){super(...arguments);Za(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Ml("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ml("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ml("latest method in MediaTypes class is not yet implemented.")}};class qv extends XO{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(a=>a.includes(r))}findBy(t="3.1.0",r="generic"){const a=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(i=>i.includes(a))||this.unknownMediaType}latest(t="generic"){return ip(this.filterByFormat(t))}}const Sp=new qv("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),zd=Zt({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:a=this.value}={}){this.uri=r,this.value=a,this.depth=e,this.refSet=t,this.errors=[]}}),Im=Qi(function(e,t,r){return ys(e,Gl(t,r))}),ej=Zt({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach(t=>this.add(t))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===null?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=sl(e)?e:e.uri;return pd(this.find(Im(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach(e=>{e.refSet=null}),this.refs=[]}}}),Tm=ej,tj={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},rj=Jo(function(e,t){return function(r){return function(a){return Ou(function(i){return t(i,a)},r(e(a)))}}});var oj=Qi(function e(t,r,a){if(t.length===0)return r;var i=t[0];if(t.length>1){var m=!em(a)&&Cs(i,a)&&typeof a[i]=="object"?a[i]:nc(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,m)}return function(A,x,I){if(nc(A)&&Al(I)){var L=[].concat(I);return L[A]=x,L}var $={};for(var U in I)$[U]=I[U];return $[A]=x,$}(i,r,a)});const aj=oj;var Dw=function(e){return{value:e,map:function(t){return Dw(t(e))}}},nj=Qi(function(e,t,r){return e(function(a){return Dw(t(a))})(r).value});const ij=nj,sj=rj(vs(["resolve","baseURI"]),aj(["resolve","baseURI"])),cj=e=>Xk(e)?Cu():e,_p=Zt({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:a=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=a},methods:{get extension(){return sl(this.uri)?ju(this.uri):""},toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Ps(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}}}),lj=class extends Mi{constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},Kv=async(e,t,r)=>{const a=await Promise.all(r.map(Sd([e],[t])));return r.filter((i,m)=>a[m])},Hv=async(e,t,r)=>{let a;for(const i of r)try{const m=await i[e].call(i,...t);return{plugin:i,result:m}}catch(m){a=new lj("Error while running plugin",{cause:m,plugin:i})}return Promise.reject(a)},Vv=class extends Mi{},uj=class extends Vv{},pj=async(e,t)=>{let r=e,a=!1;if(!zk(e)){const A=Ks(e);A.classes.push("result"),r=new ul([A]),a=!0}const i=_p({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),m=await Kv("canDereference",i,t.dereference.strategies);if(Kh(m))throw new uj(i.uri);try{const{result:A}=await Hv("dereference",[i,t],m);return a?A.get(0):A}catch(A){throw new Vv(`Error while dereferencing file "${i.uri}"`,{cause:A})}},dj=async(e,t={})=>{const r=((a,i)=>{const m=Pk(a,i);return ij(sj,cj,m)})(tj,t);return pj(e,r)},Wv=class extends Mi{},cu=class extends Wv{},hj=Zt({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:a=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=a},methods:{async canParse(){throw new Ml("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Ml("parse method in Parser stamp is not yet implemented.")}}}),xg=hj,gj=Zt(xg,{props:{name:"binary"},methods:{async canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),a=new ul;if(r.length!==0){const i=new vr.RP(r);i.classes.push("result"),a.push(i)}return a}catch(t){throw new cu(`Error parsing "${e.uri}"`,{cause:t})}}}}),fj=Zt({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Ml("resolve method in ResolveStrategy stamp is not yet implemented.")}}});var mj=Jo(function(e,t){return jb(ch(e),t)});const Jv=mj,bj=Mn(function(e){for(var t=Ri(e),r=t.length,a=[],i=0;i<r;)a[i]=e[t[i]],i+=1;return a}),vj=Gn(1,Xi(Promise.all,Promise)),lu=class extends Vv{},Gv=class extends Mi{},Mw=class extends Gv{},yj=class extends Mi{},Eg=class extends yj{},Lw=class extends Gv{},Fw=class extends Lw{},$w=async(e,t)=>{const r=_p({uri:Ts(Zn(e)),mediaType:t.parse.mediaType}),a=await(async(i,m)=>{const A=m.resolve.resolvers.map(I=>{const L=Object.create(I);return Object.assign(L,m.resolve.resolverOpts)}),x=await Kv("canRead",i,A);if(Kh(x))throw new Fw(i.uri);try{const{result:I}=await Hv("read",[i],x);return I}catch(I){throw new Gv(`Error while reading file "${i.uri}"`,{cause:I})}})(r,t);return(async(i,m)=>{const A=m.parse.parsers.map(I=>{const L=Object.create(I);return Object.assign(L,m.parse.parserOpts)}),x=await Kv("canParse",i,A);if(Kh(x))throw new Fw(i.uri);try{const{plugin:I,result:L}=await Hv("parse",[i],x);return!I.allowEmpty&&L.isEmpty?Promise.reject(new Wv(`Error while parsing file "${i.uri}". File is empty.`)):L}catch(I){throw new Wv(`Error while parsing file "${i.uri}"`,{cause:I})}})(_p({...r,data:a}),t)},kj=(e,t)=>{const r=Jk({predicate:e});return xs(t,r),new vr.O4(r.result)},Uw=Qi(function(e,t,r){return jl(e,vs(t,r))}),qw=(e,t)=>{const r=Jk({predicate:e,returnOnTrue:wa});return xs(t,r),Uw(void 0,[0],r.result)},Kw=class extends Mi{},wj=class extends Kw{},xj=class extends Kw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},Sg=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Fu=e=>{const t=xc(e);return Lb("#",t)},Rm=(e,t)=>{const r=(i=>{if(!Sg(i))throw new xj(i);return i})(e),a=qw(i=>Rd(i)&&Gr(i.$anchor)===r,t);if(ic(a))throw new wj(`Evaluation failed on token: "${r}"`);return a},zm=(e,t)=>{if(t.$ref===void 0)return;const r=xc(Gr(t.$ref)),a=Gr(t.meta.get("inherited$id"));return`${Ol((i,m)=>_i(i,Ts(Zn(m))),e,[...a,Gr(t.$ref)])}${r==="#"?"":r}`},_g=e=>{if(_g.cache.has(e))return _g.cache.get(e);const t=iu.refract(e);return _g.cache.set(e,t),t};_g.cache=new WeakMap;const qc=e=>ru(e)?_g(e):e,Ag=(e,t)=>{const{cache:r}=Ag,a=Zn(e),i=I=>Rd(I)&&I.$id!==void 0;if(!r.has(t)){const I=kj(i,t);r.set(t,Array.from(I))}const m=r.get(t).find(I=>((L,$)=>{if($.$id===void 0)return;const U=Gr($.meta.get("inherited$id"));return Ol((V,K)=>_i(V,Ts(Zn(K))),L,[...U,Gr($.$id)])})(a,I)===a);if(ic(m))throw new Eg(`Evaluation failed on URI: "${e}"`);let A,x;return Sg(Fu(e))?(A=Rm,x=Fu(e)):(A=Hs,x=zs(e)),A(x,m)};Ag.cache=new WeakMap;const Yv=xs[Symbol.for("nodejs.util.promisify.custom")],Nm=Zt({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:a=new WeakSet,options:i}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=a,this.options=i},methods:{toBaseURI(e){return _i(this.reference.uri,Ts(Zn(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Mw(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(Im(t,"uri"));const a=await $w(xi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),i=zd({uri:t,value:a,depth:this.reference.depth+1});return r.add(i),i},ReferenceElement(e){const t=Gr(e.$ref),r=this.toBaseURI(t);if(!this.options.resolve.external&&Zn(this.reference.uri)!==r)return!1;Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!an(e.$ref))return;const t=Gr(e.$ref),r=this.toBaseURI(t);(this.options.resolve.external||Zn(this.reference.uri)===r)&&(Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e))},LinkElement(e){if(!an(e.operationRef)&&!an(e.operationId))return;const t=Gr(e.operationRef),r=this.toBaseURI(t),a=Zn(this.reference.uri)!==r;if(this.options.resolve.external||!a){if(an(e.operationRef)&&an(e.operationId))throw new Mi("LinkElement operationRef and operationId are mutually exclusive.");a&&(Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))}},ExampleElement(e){if(!an(e.externalValue))return;if(e.hasKey("value")&&an(e.externalValue))throw new Mi("ExampleElement value and externalValue fields are mutually exclusive.");const t=Gr(e.externalValue),r=this.toBaseURI(t);(this.options.resolve.external||Zn(this.reference.uri)===r)&&(Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!an(e.$ref))return void this.visited.add(e);const t=await this.toReference(xi(this.reference.uri));let{uri:r}=t;const a=zm(r,e),i=Zn(a),m=_p({uri:i}),A=Jv(L=>L.canRead(m),this.options.resolve.resolvers),x=!A,I=L=>Zn(this.reference.uri)!==L;if(!Ep(i,this.crawlingMap))try{if(A||x)this.crawlingMap[i]=t;else{if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return void this.visited.add(e);this.crawlingMap[i]=this.toReference(xi(a))}}catch(L){if(!(x&&L instanceof Eg))throw L;if(r=this.toBaseURI(xi(a)),!this.options.resolve.external&&I(r))return void this.visited.add(e);this.crawlingMap[i]=this.toReference(xi(a))}this.crawledElements.push(e)},async crawlReferenceElement(e){const t=await this.toReference(Gr(e.$ref));this.indirections.push(e);const r=zs(Gr(e.$ref));let a=Hs(r,t.value.result);if(ru(a)){const m=Gr(e.meta.get("referenced-element"));ii(a)?(a=Lu.refract(a),a.setMetaProperty("referenced-element",m)):a=this.namespace.getElementClass(m).refract(a)}if(this.indirections.includes(a))throw new Mi("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Nm({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Yv(a,i,{keyMap:uc,nodeTypeGetter:Ws}),await i.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Gr(e.$ref));this.indirections.push(e);const r=zs(Gr(e.$ref));let a=Hs(r,t.value.result);if(ru(a)&&(a=Dl.refract(a)),this.indirections.includes(a))throw new Mi("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Nm({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Yv(a,i,{keyMap:uc,nodeTypeGetter:Ws}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(xi(this.reference.uri)),{uri:r}=t;const a=zm(r,e),i=Zn(a),m=_p({uri:i}),A=Jv(U=>U.canRead(m),this.options.resolve.resolvers),x=!A,I=U=>Zn(this.reference.uri)!==U;let L;this.indirections.push(e);try{if(A||x)L=Ag(a,qc(t.value.result));else{if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return;t=await this.toReference(xi(a));const U=zs(a);L=qc(Hs(U,t.value.result))}}catch(U){if(!(x&&U instanceof Eg))throw U;if(Sg(Fu(a))){if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return;t=await this.toReference(xi(a));const V=Fu(a);L=Rm(V,qc(t.value.result))}else{if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return;t=await this.toReference(xi(a));const V=zs(a);L=qc(Hs(V,t.value.result))}}if(this.visited.add(e),this.indirections.includes(L))throw new Mi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const $=Nm({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Yv(L,$,{keyMap:uc,nodeTypeGetter:Ws}),await $.crawl(),this.indirections.pop()},async crawl(){await qi(bj,vj)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)Td(e)?await this.crawlReferenceElement(e):Rd(e)?await this.crawlSchemaElement(e):Cm(e)&&await this.crawlPathItemElement(e)}}}),Ej=Nm,Sj=xs[Symbol.for("nodejs.util.promisify.custom")],_j=Zt(fj,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return e.mediaType!=="text/plain"?Sp.includes(e.mediaType):Lv((t=e.parseResult)===null||t===void 0?void 0:t.result)},async resolve(e,t){const r=_d(Pm),a=zd({uri:e.uri,value:e.parseResult}),i=Ej({reference:a,namespace:r,options:t}),m=Tm();return m.add(a),await Sj(m.rootRef.value,i,{keyMap:uc,nodeTypeGetter:Ws}),await i.crawl(),m}}}),Aj=_j;function Zv(e,t,r){if(r||(r=new Oj),function(i){var m=typeof i;return i==null||m!="object"&&m!="function"}(e))return e;var a=function(i){var m=r.get(e);if(m)return m;for(var A in r.set(e,i),e)Object.prototype.hasOwnProperty.call(e,A)&&(i[A]=t?Zv(e[A],!0,r):e[A]);return i};switch(Ps(e)){case"Object":return a(Object.create(Object.getPrototypeOf(e)));case"Array":return a([]);case"Date":return new Date(e.valueOf());case"RegExp":return op(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Oj=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){const a=this.hash(t);let i=this.map[a];i||(this.map[a]=i=[]),i.push([t,r]),this.length+=1},e.prototype.hash=function(t){let r=[];for(var a in t)r.push(Object.prototype.toString.call(t[a]));return r.join()},e.prototype.get=function(t){if(this.length<=180){for(const i in this.map){const m=this.map[i];for(let A=0;A<m.length;A+=1){const x=m[A];if(x[0]===t)return x[1]}}return}const r=this.hash(t),a=this.map[r];if(a)for(let i=0;i<a.length;i+=1){const m=a[i];if(m[0]===t)return m[1]}},e}(),jj=function(){function e(t,r,a,i){this.valueFn=t,this.valueAcc=r,this.keyFn=a,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(Cs(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var a=this.keyFn(r);return this.inputs[a]=this.inputs[a]||[a,Zv(this.valueAcc,!1)],this.inputs[a][1]=this.valueFn(this.inputs[a][1],r),t},e}();function Cj(e,t,r){return function(a){return new jj(e,t,r,a)}}var Pj=dh(4,[],il([],Cj,function(e,t,r,a){var i=uh(function(m,A){var x=r(A),I=e(Cs(x,m)?m[x]:Zv(t,!1),A);return I&&I["@@transducer/reduced"]?Uf(m):(m[x]=I,m)});return id(i,{},a)}));const Ij=Jo(np("groupBy",Pj(function(e,t){return e.push(t),e},[]))),Qv=e=>e.replace(/\s/g,""),Xv=e=>e.replace(/\W/gi,"_"),Tj=(e,t,r)=>{const a=Qv(e);return a.length>0?Xv(a):((i,m)=>`${Xv(Qv(m.toLowerCase()))}${Xv(Qv(i))}`)(t,r)},Rj=({operationIdNormalizer:e=Tj}={})=>({predicates:t,namespace:r})=>{const a=[],i=[],m=[];return{visitor:{OpenApi3_1Element:{leave(){const A=Ij(x=>Gr(x.operationId),i);Object.entries(A).forEach(([x,I])=>{Array.isArray(I)&&(I.length<=1||I.forEach((L,$)=>{const U=`${x}${$+1}`;L.operationId=new r.elements.String(U)}))}),m.forEach(x=>{if(x.operationId===void 0)return;const I=String(Gr(x.operationId)),L=i.find($=>Gr($.meta.get("originalOperationId"))===I);L!==void 0&&(x.operationId=fo.safe(L.operationId),x.meta.set("originalOperationId",I),x.set("__originalOperationId",I))}),i.length=0,m.length=0}},PathItemElement:{enter(A){const x=jl("path",Gr(A.meta.get("path")));a.push(x)},leave(){a.pop()}},OperationElement:{enter(A){if(A.operationId===void 0)return;const x=String(Gr(A.operationId)),I=ip(a),L=jl("method",Gr(A.meta.get("http-method"))),$=e(x,I,L);x!==$&&(A.operationId=new r.elements.String($),A.set("__originalOperationId",x),A.meta.set("originalOperationId",x),i.push(A))}},LinkElement:{leave(A){t.isLinkElement(A)&&A.operationId!==void 0&&m.push(A)}}}}};var zj=function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=Wl,e.prototype["@@transducer/step"]=function(t,r){return tl(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e}();function Nj(e){return function(t){return new zj(e,t)}}var Bj=Jo(il([],Nj,function(e,t){for(var r,a=0,i=t.length,m=[];a<i;)tl(e,r=t[a],m)||(m[m.length]=r),a+=1;return m}));const Dj=Bj,Mj=()=>({predicates:e})=>{const t=(a,i)=>!!e.isParameterElement(a)&&!!e.isParameterElement(i)&&!!e.isStringElement(a.name)&&!!e.isStringElement(a.in)&&!!e.isStringElement(i.name)&&!!e.isStringElement(i.in)&&Gr(a.name)===Gr(i.name)&&Gr(a.in)===Gr(i.in),r=[];return{visitor:{PathItemElement:{enter(a,i,m,A,x){if(x.some(e.isComponentsElement))return;const{parameters:I}=a;e.isArrayElement(I)?r.push([...I.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(a){const i=ip(r);if(!Array.isArray(i)||i.length===0)return;const m=Uw([],["parameters","content"],a),A=Dj(t,[...m,...i]);a.parameters=new Aw(A)}}}}},Lj=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,a,i,m,A){if(!A.some(e.isComponentsElement)){var x;r.security===void 0&&t!==void 0&&(r.security=new jw((x=t)===null||x===void 0?void 0:x.content))}}}}}},Fj=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const a=r.servers===void 0,i=e.isArrayElement(r.servers),m=i&&r.servers.length===0,A=t.elements.Server.refract({url:"/"});a||!i?r.servers=new Wb([A]):i&&m&&r.servers.push(A)},PathItemElement(r,a,i,m,A){if(A.some(e.isComponentsElement)||!A.some(e.isOpenApi3_1Element))return;const x=A.find(e.isOpenApi3_1Element),I=r.servers===void 0,L=e.isArrayElement(r.servers),$=L&&r.servers.length===0;if(e.isOpenApi3_1Element(x)){var U;const V=(U=x.servers)===null||U===void 0?void 0:U.content,K=V??[];I||!L?r.servers=new Pw(K):L&&$&&K.forEach(J=>{r.servers.push(J)})}},OperationElement(r,a,i,m,A){if(A.some(e.isComponentsElement)||!A.some(e.isOpenApi3_1Element))return;const x=[...A].reverse().find(e.isPathItemElement),I=r.servers===void 0,L=e.isArrayElement(r.servers),$=L&&r.servers.length===0;if(e.isPathItemElement(x)){var U;const V=(U=x.servers)===null||U===void 0?void 0:U.content,K=V??[];I||!L?r.servers=new Cw(K):L&&$&&K.forEach(J=>{r.servers.push(J)})}}}}),$j=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,a,i,m){var A,x;if(!m.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((A=t.schema)===null||A===void 0?void 0:A.example)!==void 0||((x=t.schema)===null||x===void 0?void 0:x.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const I=t.examples.map(L=>fo.safe(L.value));return t.schema.examples!==void 0&&t.schema.set("examples",I),void(t.schema.example!==void 0&&t.schema.set("example",I))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[fo(t.example)]),t.schema.example!==void 0&&t.schema.set("example",fo(t.example)))}}}}}),Uj=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,a,i,m){var A,x;if(!m.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((A=t.schema)===null||A===void 0?void 0:A.example)!==void 0||((x=t.schema)===null||x===void 0?void 0:x.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const I=t.examples.map(L=>fo.safe(L.value));return t.schema.examples!==void 0&&t.schema.set("examples",I),void(t.schema.example!==void 0&&t.schema.set("example",I))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[fo(t.example)]),t.schema.example!==void 0&&t.schema.set("example",fo(t.example)))}}}}}),Og=e=>t=>{if(t!=null&&t.$$normalized)return t;if(Og.cache.has(t))return Og.cache.get(t);const r=Mu.refract(t),a=e(r),i=Gr(a);return Og.cache.set(t,i),i};Og.cache=new WeakMap;const Hw=e=>{if(!On(e)||e.hasKey("$$normalized"))return e;const t=[Rj({operationIdNormalizer:(a,i,m)=>Ec({operationId:a},i,m,{v2OperationIdCompatibilityMode:!1})}),Mj(),Lj(),Fj(),$j(),Uj()],r=Jh(e,t,{toolboxCreator:Bw,visitorOptions:{keyMap:uc,nodeTypeGetter:Ws}});return r.set("$$normalized",!0),r},qj=Zt({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Ml("read method in Resolver stamp is not yet implemented.")}}}),Kj=Zt(qj,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>cl(e.uri),async read(){throw new Ml("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Ml("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),{AbortController:Hj,AbortSignal:Vj}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=Hj),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=Vj);const Wj=Kj.compose({props:{name:"http-swagger-client",swaggerHTTPClient:rc,swaggerHTTPClientConfig:{}},init({swaggerHTTPClient:e=this.swaggerHTTPClient}={}){this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:a}=r,i=setTimeout(()=>{r.abort()},this.timeout),m=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",A=this.redirects===0?"error":"follow",x=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:a,userFetch:async(L,$)=>{let U=await fetch(L,$);try{U.headers.delete("Content-Type")}catch{U=new Response(U.body,{...U,headers:new Headers(U.headers)}),U.headers.delete("Content-Type")}return U},credentials:m,redirect:A,follow:x,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(I){throw new Lw(`Error downloading "${e.uri}"`,{cause:I})}finally{clearTimeout(i)}}}}),Vw=Wj,Ww=(e,t=Lk)=>{if(sl(e))try{return t.fromRefract(JSON.parse(e))}catch{}return qf(e)&&Ep("element",e)?t.fromRefract(e):t.toElement(e)},Jw=xg.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const a=Ww(JSON.parse(r));return a.classes.push("result"),t.push(a),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Gw=xg.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Jn.load(e.toString(),{schema:Pc}),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();try{const a=Jn.load(r,{schema:Pc});if(this.allowEmpty&&a===void 0)return t;const i=Ww(a);return i.classes.push("result"),t.push(i),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Yw=xg.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new qv(...Sp.filterByFormat("generic"),...Sp.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const a=e.toString();return JSON.parse(a),this.detectionRegExp.test(a)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const a=JSON.parse(r),i=Mu.refract(a,this.refractorOpts);return i.classes.push("result"),t.push(i),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Zw=xg.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new qv(...Sp.filterByFormat("generic"),...Sp.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const a=e.toString();return Jn.load(a),this.detectionRegExp.test(a)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();try{const a=Jn.load(r,{schema:Pc});if(this.allowEmpty&&a===void 0)return t;const i=Mu.refract(a,this.refractorOpts);return i.classes.push("result"),t.push(i),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Jj=Zt({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Ml("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var Gj=ut(18996);const Yj=class extends Wh{constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},ey=Zt({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new Gj({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!ws(e))throw new Yj("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&an(e.meta.id)&&!e.meta.id.equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new vr.RP(this.generateId());return this.identityMap.set(e,t),t},forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)},generateId(){return this.uuid.randomUUID()}}});ey({length:6});class ty extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(a=>a.has(t))}findItem(t){for(const r of this)for(const a of r)if(ws(a)&&t(a))return a}}const ry=xs[Symbol.for("nodejs.util.promisify.custom")],jg=ey(),oy=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Gr(jg.identify(e))),Bm=Zt({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:a,ancestors:i=new ty}){this.indirections=e,this.namespace=r,this.reference=t,this.options=a,this.ancestors=new ty(...i)},methods:{toBaseURI(e){return _i(this.reference.uri,Ts(Zn(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Mw(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(Im(t,"uri"));const a=await $w(xi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),i=zd({uri:t,value:a,depth:this.reference.depth+1});return r.add(i),i},toAncestorLineage(e){const t=new Set(e.filter(ws));return[new ty(...this.ancestors,t),t]},async ReferenceElement(e,t,r,a,i){const[m,A]=this.toAncestorLineage([...i,r]);if(m.includesCycle(e))return!1;const x=this.toBaseURI(Gr(e.$ref));if(!this.options.resolve.external&&Zn(this.reference.uri)!==x)return!1;const I=await this.toReference(Gr(e.$ref)),L=_i(x,Gr(e.$ref));this.indirections.push(e);const $=zs(L);let U=Hs($,I.value.result);if(ru(U)){const v=Gr(e.meta.get("referenced-element"));ii(U)?(U=Lu.refract(U),U.setMetaProperty("referenced-element",v)):U=this.namespace.getElementClass(v).refract(U)}if(this.indirections.includes(U))throw new Mi("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);A.add(e);const V=Bm({reference:I,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:m});U=await ry(U,V,{keyMap:uc,nodeTypeGetter:Ws}),A.delete(e),this.indirections.pop();const K=v=>{const oe=Ks(v);return oe.setMetaProperty("ref-fields",{$ref:Gr(e.$ref),description:Gr(e.description),summary:Gr(e.summary)}),oe.setMetaProperty("ref-origin",I.uri),oe.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),On(v)&&(e.hasKey("description")&&"description"in v&&(oe.remove("description"),oe.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in v&&(oe.remove("summary"),oe.set("summary",e.get("summary")))),oe};if(m.includes(e)||m.includes(U)){var J;const v=(J=m.findItem(oy(e)))!==null&&J!==void 0?J:K(U);return Ac(r)?r.value=v:Array.isArray(r)&&(r[t]=v),!1}return K(U)},async PathItemElement(e,t,r,a,i){const[m,A]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(m.includesCycle(e))return!1;const x=this.toBaseURI(Gr(e.$ref));if(!this.options.resolve.external&&Zn(this.reference.uri)!==x)return;const I=await this.toReference(Gr(e.$ref)),L=_i(x,Gr(e.$ref));this.indirections.push(e);const $=zs(L);let U=Hs($,I.value.result);if(ru(U)&&(U=Dl.refract(U)),this.indirections.includes(U))throw new Mi("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);A.add(e);const V=Bm({reference:I,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:m});U=await ry(U,V,{keyMap:uc,nodeTypeGetter:Ws}),A.delete(e),this.indirections.pop();const K=v=>{const oe=new Dl([...v.content],fo(v.meta),fo(v.attributes));return e.forEach((H,ge,ce)=>{oe.remove(Gr(ge)),oe.content.push(ce)}),oe.remove("$ref"),oe.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),oe.setMetaProperty("ref-origin",I.uri),oe.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),oe};if(m.includes(e)||m.includes(U)){var J;const v=(J=m.findItem(oy(e)))!==null&&J!==void 0?J:K(U);return Ac(r)?r.value=v:Array.isArray(r)&&(r[t]=v),!1}return K(U)},async LinkElement(e){if(!an(e.operationRef)&&!an(e.operationId))return;if(an(e.operationRef)&&an(e.operationId))throw new Mi("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(an(e.operationRef)){var r;const i=zs(Gr(e.operationRef)),m=this.toBaseURI(Gr(e.operationRef));if(!this.options.resolve.external&&Zn(this.reference.uri)!==m)return;const A=await this.toReference(Gr(e.operationRef));t=Hs(i,A.value.result),ru(t)&&(t=wg.refract(t)),t=Ks(t),t.setMetaProperty("ref-origin",A.uri);const x=Ks(e);return(r=x.operationRef)===null||r===void 0||r.meta.set("operation",t),x}if(an(e.operationId)){var a;const i=Gr(e.operationId),m=await this.toReference(xi(this.reference.uri));if(t=qw(x=>Tw(x)&&ws(x.operationId)&&x.operationId.equals(i),m.value.result),ic(t))throw new Mi(`OperationElement(operationId=${i}) not found.`);const A=Ks(e);return(a=A.operationId)===null||a===void 0||a.meta.set("operation",t),A}},async ExampleElement(e,t,r,a,i){const[m]=this.toAncestorLineage([...i,r]);if(!an(e.externalValue))return;if(m.includesCycle(e))return!1;if(e.hasKey("value")&&an(e.externalValue))throw new Mi("ExampleElement value and externalValue fields are mutually exclusive.");const A=this.toBaseURI(Gr(e.externalValue));if(!this.options.resolve.external&&Zn(this.reference.uri)!==A)return;const x=await this.toReference(Gr(e.externalValue)),I=Ks(x.value.result);I.setMetaProperty("ref-origin",x.uri);const L=Ks(e);return L.value=I,L},async SchemaElement(e,t,r,a,i){const[m,A]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(m.includesCycle(e))return!1;let x=await this.toReference(xi(this.reference.uri)),{uri:I}=x;const L=zm(I,e),$=Zn(L),U=_p({uri:$}),V=Jv(ce=>ce.canRead(U),this.options.resolve.resolvers),K=!V,J=ce=>Zn(this.reference.uri)!==ce;let v;this.indirections.push(e);try{if(V||K)v=Ag(L,qc(x.value.result));else{if(I=this.toBaseURI(Gr(L)),!this.options.resolve.external&&J(I))return;x=await this.toReference(xi(L));const ce=zs(L);v=qc(Hs(ce,x.value.result))}}catch(ce){if(!(K&&ce instanceof Eg))throw ce;if(Sg(Fu(L))){if(I=this.toBaseURI(Gr(L)),!this.options.resolve.external&&J(I))return;x=await this.toReference(xi(L));const ye=Fu(L);v=Rm(ye,qc(x.value.result))}else{if(I=this.toBaseURI(Gr(L)),!this.options.resolve.external&&J(I))return;x=await this.toReference(xi(L));const ye=zs(L);v=qc(Hs(ye,x.value.result))}}if(this.indirections.includes(v))throw new Mi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);A.add(e);const oe=Bm({reference:x,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:m});if(v=await ry(v,oe,{keyMap:uc,nodeTypeGetter:Ws}),A.delete(e),this.indirections.pop(),Fv(v)){const ce=fo(v);return ce.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),ce.setMetaProperty("ref-origin",x.uri),ce.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),ce}const H=ce=>{const ye=new iu([...ce.content],fo(ce.meta),fo(ce.attributes));return e.forEach((Me,je,Oe)=>{ye.remove(Gr(je)),ye.content.push(Oe)}),ye.remove("$ref"),ye.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),ye.setMetaProperty("ref-origin",x.uri),ye.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),ye};if(m.includes(e)||m.includes(v)){var ge;const ce=(ge=m.findItem(oy(e)))!==null&&ge!==void 0?ge:H(v);return Ac(r)?r.value=ce:Array.isArray(r)&&(r[t]=ce),!1}return H(v)}}}),ay=Bm,Zj=xs[Symbol.for("nodejs.util.promisify.custom")],Qj=Zt(Jj,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return e.mediaType!=="text/plain"?Sp.includes(e.mediaType):Lv((t=e.parseResult)===null||t===void 0?void 0:t.result)},async dereference(e,t){const r=_d(Pm),a=jl(Tm(),t.dereference.refSet);let i;a.has(e.uri)?i=a.find(Im(e.uri,"uri")):(i=zd({uri:e.uri,value:e.parseResult}),a.add(i));const m=ay({reference:i,namespace:r,options:t}),A=await Zj(a.rootRef.value,m,{keyMap:uc,nodeTypeGetter:Ws});return t.dereference.refSet===null&&a.clean(),A}}}),Qw=Qj,pl=e=>{const t=(r=>r.slice(2))(e);return t.reduce((r,a,i)=>{if(Ac(a)){const m=String(Gr(a.key));r.push(m)}else if($c(t[i-2])){const m=t[i-2].content.indexOf(a);r.push(m)}return r},[])},Dm=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t},Xj=Xl("SchemaRefError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),{wrapError:ny}=jh,iy=xs[Symbol.for("nodejs.util.promisify.custom")],Cg=ey(),sy=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Gr(Cg.identify(e))),Mm=ay.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init({allowMetaPatches:e=this.allowMetaPatches,useCircularStructures:t=this.useCircularStructures,basePath:r=this.basePath}){this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r},methods:{async ReferenceElement(e,t,r,a,i){try{var m;const[$,U]=this.toAncestorLineage([...i,r]);if(Vh(["cycle"],e.$ref)||$.includesCycle(e)||!this.options.resolve.external&&zw(e))return!1;const V=await this.toReference(Gr(e.$ref)),{uri:K}=V,J=_i(K,Gr(e.$ref));this.indirections.push(e);const v=zs(J);let oe=Hs(v,V.value.result);if(ru(oe)){const ce=Gr(e.meta.get("referenced-element"));ii(oe)?(oe=Lu.refract(oe),oe.setMetaProperty("referenced-element",ce)):oe=this.namespace.getElementClass(ce).refract(oe)}if(this.indirections.includes(oe))throw new Mi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&$.includes(oe)){if(cl(K)||Lc(K)){const ce=new Lu({$ref:J},fo(e.meta),fo(e.attributes));return ce.get("$ref").classes.push("cycle"),ce}return!1}U.add(e);const H=Mm({reference:V,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:$,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"$ref"]});oe=await iy(oe,H,{keyMap:uc,nodeTypeGetter:Ws}),U.delete(e),this.indirections.pop();const ge=ce=>{const ye=Ks(ce);if(ye.setMetaProperty("ref-fields",{$ref:Gr(e.$ref),description:Gr(e.description),summary:Gr(e.summary)}),ye.setMetaProperty("ref-origin",V.uri),ye.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),On(ce)&&(e.hasKey("description")&&"description"in ce&&(ye.remove("description"),ye.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in ce&&(ye.remove("summary"),ye.set("summary",e.get("summary")))),this.allowMetaPatches&&On(ye)&&!ye.hasKey("$$ref")){const Me=_i(K,J);ye.set("$$ref",Me)}return ye};if($.includes(e)||$.includes(oe)){var A;const ce=(A=$.findItem(sy(e)))!==null&&A!==void 0?A:ge(oe);return Ac(r)?r.value=ce:Array.isArray(r)&&(r[t]=ce),!1}return ge(oe)}catch($){var x,I,L;const U=Dm($),V=ny(U,{baseDoc:this.reference.uri,$ref:Gr(e.$ref),pointer:zs(Gr(e.$ref)),fullPath:(x=this.basePath)!==null&&x!==void 0?x:[...pl([...i,r,e]),"$ref"]});return void((I=this.options.dereference.dereferenceOpts)===null||I===void 0||(I=I.errors)===null||I===void 0||(L=I.push)===null||L===void 0||L.call(I,V))}},async PathItemElement(e,t,r,a,i){try{var m;const[$,U]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(Vh(["cycle"],e.$ref)||$.includesCycle(e))return!1;if(!this.options.resolve.external&&Rw(e))return;const V=await this.toReference(Gr(e.$ref)),{uri:K}=V,J=_i(K,Gr(e.$ref));this.indirections.push(e);const v=zs(J);let oe=Hs(v,V.value.result);if(ru(oe)&&(oe=Dl.refract(oe)),this.indirections.includes(oe))throw new Mi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&$.includes(oe)){if(cl(K)||Lc(K)){const ce=new Dl({$ref:J},fo(e.meta),fo(e.attributes));return ce.get("$ref").classes.push("cycle"),ce}return!1}U.add(e);const H=Mm({reference:V,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:$,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"$ref"]});oe=await iy(oe,H,{keyMap:uc,nodeTypeGetter:Ws}),U.delete(e),this.indirections.pop();const ge=ce=>{const ye=new Dl([...ce.content],fo(ce.meta),fo(ce.attributes));if(e.forEach((Me,je,Oe)=>{ye.remove(Gr(je)),ye.content.push(Oe)}),ye.remove("$ref"),ye.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),ye.setMetaProperty("ref-origin",V.uri),ye.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),this.allowMetaPatches&&ye.get("$$ref")===void 0){const Me=_i(K,J);ye.set("$$ref",Me)}return ye};if($.includes(e)||$.includes(oe)){var A;const ce=(A=$.findItem(sy(e)))!==null&&A!==void 0?A:ge(oe);return Ac(r)?r.value=ce:Array.isArray(r)&&(r[t]=ce),!1}return ge(oe)}catch($){var x,I,L;const U=Dm($),V=ny(U,{baseDoc:this.reference.uri,$ref:Gr(e.$ref),pointer:zs(Gr(e.$ref)),fullPath:(x=this.basePath)!==null&&x!==void 0?x:[...pl([...i,r,e]),"$ref"]});return void((I=this.options.dereference.dereferenceOpts)===null||I===void 0||(I=I.errors)===null||I===void 0||(L=I.push)===null||L===void 0||L.call(I,V))}},async SchemaElement(e,t,r,a,i){try{var m;const[$,U]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(Vh(["cycle"],e.$ref)||$.includesCycle(e))return!1;let V=await this.toReference(xi(this.reference.uri)),{uri:K}=V;const J=zm(K,e),v=Zn(J),oe=_p({uri:v}),H=!this.options.resolve.resolvers.some(Oe=>Oe.canRead(oe)),ge=!H,ce=ge&&K!==v;if(!this.options.resolve.external&&ce)return;let ye;this.indirections.push(e);try{if(H||ge)ye=Ag(J,qc(V.value.result));else{V=await this.toReference(xi(J)),K=V.uri;const Oe=zs(J);ye=qc(Hs(Oe,V.value.result))}}catch(Oe){if(!(ge&&Oe instanceof Eg))throw Oe;if(Sg(Fu(J))){V=await this.toReference(xi(J)),K=V.uri;const it=Fu(J);ye=Rm(it,qc(V.value.result))}else{V=await this.toReference(xi(J)),K=V.uri;const it=zs(J);ye=qc(Hs(it,V.value.result))}}if(this.indirections.includes(ye))throw new Mi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&$.includes(ye)){if(cl(K)||Lc(K)){const Oe=_i(K,J),it=new iu({$ref:Oe},fo(e.meta),fo(e.attributes));return it.get("$ref").classes.push("cycle"),it}return!1}U.add(e);const Me=Mm({reference:V,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:$,basePath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"$ref"]});if(ye=await iy(ye,Me,{keyMap:uc,nodeTypeGetter:Ws}),U.delete(e),this.indirections.pop(),Fv(ye)){const Oe=fo(ye);return Oe.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),Oe.setMetaProperty("ref-origin",V.uri),Oe.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),Oe}const je=Oe=>{const it=new iu([...Oe.content],fo(Oe.meta),fo(Oe.attributes));if(e.forEach((Ze,ct,kt)=>{it.remove(Gr(ct)),it.content.push(kt)}),it.remove("$ref"),it.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),it.setMetaProperty("ref-origin",V.uri),it.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),this.allowMetaPatches&&it.get("$$ref")===void 0){const Ze=_i(K,J);it.set("$$ref",Ze)}return it};if($.includes(e)||$.includes(ye)){var A;const Oe=(A=$.findItem(sy(e)))!==null&&A!==void 0?A:je(ye);return Ac(r)?r.value=Oe:Array.isArray(r)&&(r[t]=Oe),!1}return je(ye)}catch($){var x,I,L;const U=Dm($),V=new Xj(`Could not resolve reference: ${U.message}`,{baseDoc:this.reference.uri,$ref:Gr(e.$ref),fullPath:(x=this.basePath)!==null&&x!==void 0?x:[...pl([...i,r,e]),"$ref"]},U);return void((I=this.options.dereference.dereferenceOpts)===null||I===void 0||(I=I.errors)===null||I===void 0||(L=I.push)===null||L===void 0||L.call(I,V))}},async LinkElement(){},async ExampleElement(e,t,r,a,i){try{return await ay.compose.methods.ExampleElement.call(this,e,t,r,a,i)}catch(I){var m,A,x;const L=Dm(I),$=ny(L,{baseDoc:this.reference.uri,externalValue:Gr(e.externalValue),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"externalValue"]});return void((A=this.options.dereference.dereferenceOpts)===null||A===void 0||(A=A.errors)===null||A===void 0||(x=A.push)===null||x===void 0||x.call(A,$))}}}}),eC=Mm,cy=Qw.compose.bind(),tC=cy({init({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,a,i){const m=this.macroOperation===null?null:Gr(this.macroOperation),A=Gr(e);try{const L=this.parameterMacro(m,A);e.set("default",L)}catch(L){var x,I;const $=new Error(L,{cause:L});$.fullPath=pl([...i,r]),(x=this.options.dereference.dereferenceOpts)===null||x===void 0||(x=x.errors)===null||x===void 0||(I=x.push)===null||I===void 0||I.call(x,$)}}}}}),rC=tC,oC=cy({init({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,a,i){e.properties!==void 0&&On(e.properties)&&e.properties.forEach(m=>{if(On(m))try{const I=this.modelPropertyMacro(Gr(m));m.set("default",I)}catch(I){var A,x;const L=new Error(I,{cause:I});L.fullPath=[...pl([...i,r,e]),"properties"],(A=this.options.dereference.dereferenceOpts)===null||A===void 0||(A=A.errors)===null||A===void 0||(x=A.push)===null||x===void 0||x.call(A,L)}})}}}}),aC=oC,Lm=e=>{const t=fo(e.meta),r=fo(e.attributes);return new e.constructor(void 0,t,r)},Fm=(e,t)=>t.clone&&t.isMergeableElement(e)?Nd(Lm(e),e,t):e,nC=(e,t,r)=>e.concat(t)["fantasy-land/map"](a=>Fm(a,r)),iC=(e,t,r)=>{const a=On(e)?Lm(e):Lm(t);return On(e)&&e.forEach((i,m,A)=>{const x=Ks(A);x.value=Fm(i,r),a.content.push(x)}),t.forEach((i,m,A)=>{const x=Gr(m);let I;if(On(e)&&e.hasKey(x)&&r.isMergeableElement(i)){const L=e.get(x);I=Ks(A),I.value=(($,U)=>{if(typeof U.customMerge!="function")return Nd;const V=U.customMerge($,U);return typeof V=="function"?V:Nd})(m,r)(L,i)}else I=Ks(A),I.value=Fm(i,r);a.remove(x),a.content.push(I)}),a};function Nd(e,t,r){var a,i,m;const A={clone:!0,isMergeableElement:L=>On(L)||$c(L),arrayElementMerge:nC,objectElementMerge:iC,customMerge:void 0},x={...A,...r};x.isMergeableElement=(a=x.isMergeableElement)!==null&&a!==void 0?a:A.isMergeableElement,x.arrayElementMerge=(i=x.arrayElementMerge)!==null&&i!==void 0?i:A.arrayElementMerge,x.objectElementMerge=(m=x.objectElementMerge)!==null&&m!==void 0?m:A.objectElementMerge;const I=$c(t);return I===$c(e)?I&&typeof x.arrayElementMerge=="function"?x.arrayElementMerge(e,t,x):x.objectElementMerge(e,t,x):Fm(t,x)}Nd.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new vr.Sb:e.reduce((r,a)=>Nd(r,a,t),Lm(e[0]))};const sC=cy({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,a,i){if(e.allOf===void 0)return;if(!$c(e.allOf)){var m,A;const $=new TypeError("allOf must be an array");return $.fullPath=[...pl([...i,r,e]),"allOf"],void((m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(A=m.push)===null||A===void 0||A.call(m,$))}if(e.allOf.isEmpty)return new iu(e.content.filter($=>Gr($.key)!=="allOf"),fo(e.meta),fo(e.attributes));if(!e.allOf.content.every(Rd)){var x,I;const $=new TypeError("Elements in allOf must be objects");return $.fullPath=[...pl([...i,r,e]),"allOf"],void((x=this.options.dereference.dereferenceOpts)===null||x===void 0||(x=x.errors)===null||x===void 0||(I=x.push)===null||I===void 0||I.call(x,$))}const L=Nd.all([...e.allOf.content,e]);return e.hasKey("$$ref")||L.remove("$$ref"),e.hasKey("example")&&(L.getMember("example").value=e.get("example")),e.hasKey("examples")&&(L.getMember("examples").value=e.get("examples")),L.remove("allOf"),L}}}}),cC=sC,lC=xs[Symbol.for("nodejs.util.promisify.custom")],uC=Qw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:a=this.modelPropertyMacro,mode:i=this.mode,ancestors:m=[]}={}){this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=a,this.mode=i,this.ancestors=[...m]},methods:{async dereference(e,t){var r;const a=[],i=_d(Pm),m=(r=t.dereference.refSet)!==null&&r!==void 0?r:Tm();let A;m.has(e.uri)?A=m.find($=>$.uri===e.uri):(A=zd({uri:e.uri,value:e.parseResult}),m.add(A));const x=eC({reference:A,namespace:i,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(a.push(x),typeof this.parameterMacro=="function"){const $=rC({parameterMacro:this.parameterMacro,options:t});a.push($)}if(typeof this.modelPropertyMacro=="function"){const $=aC({modelPropertyMacro:this.modelPropertyMacro,options:t});a.push($)}if(this.mode!=="strict"){const $=cC({options:t});a.push($)}const I=Uk(a,{nodeTypeGetter:Ws}),L=await lC(m.rootRef.value,I,{keyMap:uc,nodeTypeGetter:Ws});return t.dereference.refSet===null&&m.clean(),L}}}),Xw=uC,ly=async e=>{const{spec:t,timeout:r,redirects:a,requestInterceptor:i,responseInterceptor:m,pathDiscriminator:A=[],allowMetaPatches:x=!1,useCircularStructures:I=!1,skipNormalization:L=!1,parameterMacro:$=null,modelPropertyMacro:U=null,mode:V="non-strict"}=e;try{const{cache:K}=ly,J=cl(Cu())?Cu():co,v=ah(e),oe=_i(J,v);let H;K.has(t)?H=K.get(t):(H=Mu.refract(t),H.classes.push("result"),K.set(t,H));const ge=new ul([H]),ce=p6(A),ye=ce===""?"":`#${ce}`,Me=Hs(ce,H),je=zd({uri:oe,value:ge}),Oe=Tm({refs:[je]});ce!==""&&(Oe.rootRef=null);const it=[new Set([Me])],Ze=[],ct=((Ht,Qt,br)=>n6({element:br}).transclude(Ht,Qt))(Me,await dj(Me,{resolve:{baseURI:`${oe}${ye}`,resolvers:[Vw({timeout:r||1e4,redirects:a||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:m}},strategies:[Aj()]},parse:{mediaType:Sp.latest(),parsers:[Yw({allowEmpty:!1,sourceMap:!1}),Zw({allowEmpty:!1,sourceMap:!1}),Jw({allowEmpty:!1,sourceMap:!1}),Gw({allowEmpty:!1,sourceMap:!1}),gj({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Xw({allowMetaPatches:x,useCircularStructures:I,parameterMacro:$,modelPropertyMacro:U,mode:V,ancestors:it})],refSet:Oe,dereferenceOpts:{errors:Ze}}}),H),kt=L?ct:Hw(ct);return{spec:Gr(kt),errors:Ze}}catch(K){if(K instanceof Fb||K instanceof Gh)return{spec:null,errors:[]};throw K}};ly.cache=new WeakMap;const pC=ly,dC={name:"openapi-3-1-apidom",match:({spec:e})=>Dh(e),normalize:({spec:e})=>Og(Hw)(e),resolve:async e=>pC(e)},hC=dC,gC=()=>null,e1={mapTagOperations:function({spec:e,cb:t=gC,defaultTag:r="default",v2OperationIdCompatibilityMode:a}){const i={},m={};return Va(e,({pathName:A,method:x,operation:I})=>{var L;(I.tags?(L=I.tags,Array.isArray(L)?L:[L]):[r]).forEach($=>{if(typeof $!="string")return;m[$]=m[$]||{};const U=m[$],V=Ec(I,A,x,{v2OperationIdCompatibilityMode:a}),K=t({spec:e,pathName:A,method:x,operation:I,operationId:V});if(i[V])i[V]+=1,U[`${V}${i[V]}`]=K;else if(U[V]!==void 0){const J=i[V]||1;i[V]=J+1,U[`${V}${i[V]}`]=K;const v=U[V];delete U[V],U[`${V}${J}`]=v}else U[V]=K})}),m},makeExecute:function(e={}){return({pathName:t,method:r,operationId:a})=>(i,m={})=>{const{requestInterceptor:A,responseInterceptor:x,userFetch:I}=e;return e.execute({spec:e.spec,requestInterceptor:A,responseInterceptor:x,userFetch:I,pathName:t,method:r,parameters:i,operationId:a,...m})}}},{isHttpUrl:fC}=o,mC=fC;function Kn(e,t={}){if(typeof e=="string"?t.url=e:t=e,!(this instanceof Kn))return new Kn(t);Object.assign(this,t);const r=this.resolve().then(()=>(this.disableInterfaces||Object.assign(this,Kn.makeApisTagOperation(this)),this));return r.client=this,r}Kn.http=rc,Kn.makeHttp=Hp.bind(null,Kn.http),Kn.resolveStrategies={"openapi-3-1-apidom":hC,"openapi-3-0":wd,"openapi-2-0":tu,generic:Bh},Kn.resolve=Of({strategies:[Kn.resolveStrategies["openapi-3-1-apidom"],Kn.resolveStrategies["openapi-3-0"],Kn.resolveStrategies["openapi-2-0"],Kn.resolveStrategies.generic]}),Kn.resolveSubtree=Ta({strategies:[Kn.resolveStrategies["openapi-3-1-apidom"],Kn.resolveStrategies["openapi-3-0"],Kn.resolveStrategies["openapi-2-0"],Kn.resolveStrategies.generic]}),Kn.execute=no,Kn.serializeRes=Gu,Kn.serializeHeaders=Kp,Kn.clearCache=function(){Rs.refs.clearCache()},Kn.makeApisTagOperation=function(e={}){const t=e1.makeExecute(e);return{apis:e1.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},Kn.buildRequest=Ua,Kn.helpers={opId:Ec},Kn.getBaseUrl=on,Kn.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:Vw}},parse:{parsers:{JsonParser:Jw,YamlParser:Gw,OpenApiJson3_1Parser:Yw,OpenApiYaml3_1Parser:Zw}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Xw}}},Kn.prototype={http:rc,execute(e){return this.applyDefaults(),Kn.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return Kn.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then(t=>(this.originalSpec=this.spec,this.spec=t.spec,this.errors=t.errors,this))}},Kn.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(hp(e)&&mC(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(gp(e)){const r=Array.isArray(e.servers)&&e.servers.length===0;e.servers&&!r||(e.servers=[Ro])}};const{helpers:bC}=Kn,Pg=e=>e&&e.toLowerCase()==="true",uy=e=>["operations",e.tag?e.tag:"default",e.operationId?e.operationId:bC.opId(e,e.path,e.method)],vC=e=>CSS.escape((t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"")(e).replace(/%20/g,"_")),yC=e=>(t=>vC(t))(uy(e).join("-"));var $m=ut(16217),Ig={};$m.Z&&$m.Z.locals&&(Ig.locals=$m.Z.locals);var py,dy=0,Ap={};Ap.styleTagTransform=_b(),Ap.setAttributes=Eb(),Ap.insert=function(e,t){t.testId&&e.setAttribute("data-testid",t.testId),(t.target||document.head).appendChild(e)},Ap.domAPI=xb(),Ap.insertStyleElement=Sb(),Ig.use=function(e){return Ap.options=e||{},dy++||(py=wb()($m.Z,Ap)),Ig},Ig.unuse=function(){dy>0&&!--dy&&(py(),py=null)};const t1=Ig;var Um=ut(22796),Tg={};Um.Z&&Um.Z.locals&&(Tg.locals=Um.Z.locals);var hy,gy=0,Op={};Op.styleTagTransform=_b(),Op.setAttributes=Eb(),Op.insert=function(e,t){t.testId&&e.setAttribute("data-testid",t.testId),(t.target||document.head).appendChild(e)},Op.domAPI=xb(),Op.insertStyleElement=Sb(),Tg.use=function(e){return Op.options=e||{},gy++||(hy=wb()(Um.Z,Op)),Tg},Tg.unuse=function(){gy>0&&!--gy&&(hy(),hy=null)};const r1=Tg;class Rg extends HTMLElement{constructor(){super();dl(this,Bd,!0);dl(this,$u,void 0);dl(this,jp,null);dl(this,Uu,!0);dl(this,Cp,!1);dl(this,uu,!1);dl(this,Kc,null);dl(this,Dd,{});dl(this,Md,!1);dl(this,Ld,void 0);this.rootElement=document.createElement("div"),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(this.rootElement)}attributeChangedCallback(r,a,i){switch(r){case"spec":try{this.spec=i}catch(m){console.error('The "spec" attribute value has to be a valid JSON:',m)}break;case"url":this.url=i;break;case"auto-init":this.autoInit=i;break;case"has-sidebar":this.hasSidebar=i;break;case"relative-sidebar":this.relativeSidebar=i;break;case"essentials-only":this.essentialsOnly=i;break;case"application-registration-enabled":this.applicationRegistrationEnabled=i;break;case"current-version":this.currentVersion=i;break;case"theme-overrides":this.themeOverrides=JSON.parse(decodeURIComponent(i)),typeof this.themeOverrides!="object"&&(this.themeOverrides={},console.error('The "themeOverrides" attribute value has to be a valid object'))}}connectedCallback(){_n(this,Bd)&&this.init()}disconnectedCallback(){Ck.unuse(),t1.unuse(),_n(this,uu)&&r1.unuse()}init(){if(_n(this,Kc))throw new Error("SwaggerUI is already initialized");if(!this.isConnected)throw new Error("kong-swagger-ui is no longer connected");if(!_n(this,jp)&&!_n(this,$u))throw new Error("either `spec` or `url` has to be set to initialize SwaggerUI");if((this.relativeSidebar&&!_n(this,Uu)||_n(this,Cp)&&!_n(this,uu))&&console.warn('For correct positioning, you must enable the sidebar with `has-sidebar="true"` and should only display essentials with `essentials-only="true"`'),Ck.use({target:this.shadowRoot,testId:"default-styles"}),t1.use({target:this.shadowRoot,testId:"overrides-styles"}),_n(this,Uu)&&_n(this,uu)&&_n(this,Cp)){const a=document.createElement("style");a.innerHTML=`
|
|
210
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var o8=qi(Z7(G7(function(e,t){return e.length>t.length})),Q7,Gl("length")),a8=ld(function(e,t,r){var a=r.apply(void 0,r8(e));return e8(a)?X7(a):t});const sw=Ub(t8,function(e){var t=o8(e);return Gn(t,function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return Ol(a8(a),void 0,e)})},cp),n8=Zt(Du,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map(({predicate:a,specPath:i})=>Ub(a,Oa(i),cp)),r=sw(t)(e);return this.element=this.toRefractedElement(r,e),wa}}}),Cd=Zt(n8,{props:{alternator:[{predicate:Nl,specPath:["document","objects","JSONReference"]},{predicate:ou,specPath:["document","objects","JSONSchema"]}]}}),nu={visitors:{value:Wa,JSONSchemaOrJSONReferenceVisitor:Cd,document:{objects:{JSONSchema:{$visitor:l7,fixedFields:{id:u7,$schema:p7,multipleOf:d7,maximum:h7,exclusiveMaximum:g7,minimum:f7,exclusiveMinimum:m7,maxLength:b7,minLength:v7,pattern:y7,additionalItems:Cd,items:k7,maxItems:w7,minItems:x7,uniqueItems:E7,maxProperties:S7,minProperties:_7,required:A7,properties:I7,additionalProperties:Cd,patternProperties:T7,dependencies:R7,enum:z7,type:N7,allOf:B7,anyOf:D7,oneOf:M7,not:Cd,definitions:L7,title:F7,description:$7,default:U7,format:q7,base:K7,links:H7,media:{$ref:"#/visitors/document/objects/Media"},readOnly:V7}},JSONReference:{$visitor:W7,fixedFields:{$ref:J7}},Media:{$visitor:Zt(mg,Wa,{props:{specPath:Oa(["document","objects","Media"])},init(){this.element=new Qf}}),fixedFields:{binaryEncoding:Wa,type:Wa}},LinkDescription:{$visitor:Zt(mg,Wa,{props:{specPath:Oa(["document","objects","LinkDescription"])},init(){this.element=new Xf}}),fixedFields:{href:Wa,rel:Wa,title:Wa,targetSchema:Cd,mediaType:Wa,method:Wa,encType:Wa,schema:Cd}}}}}},i8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof fg||e(a)&&t("JSONSchemaDraft4",a)&&r("object",a)),s8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Zf||e(a)&&t("JSONReference",a)&&r("object",a)),c8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Qf||e(a)&&t("media",a)&&r("object",a)),l8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Xf||e(a)&&t("linkDescription",a)&&r("object",a)),u8={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",fg),t.register("jSONReference",Zf),t.register("media",Qf),t.register("linkDescription",Xf),t}},p8=u8,d8=()=>{const e=_d(p8);return{predicates:{...S,isStringElement:an},namespace:e}},h8=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:a=nu}={})=>{const i=(0,vr.Qc)(e),m=tm(a),A=Sd(t,[],m);return xs(i,A,{state:{specObj:m}}),Jh(A.element,r,{toolboxCreator:d8,visitorOptions:{keyMap:nw,nodeTypeGetter:aw}})},om=e=>(t,r={})=>h8(t,{specPath:e,...r});fg.refract=om(["visitors","document","objects","JSONSchema","$visitor"]),Zf.refract=om(["visitors","document","objects","JSONReference","$visitor"]),Qf.refract=om(["visitors","document","objects","Media","$visitor"]),Xf.refract=om(["visitors","document","objects","LinkDescription","$visitor"]);const am=class extends fg{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Es("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Es("idProp setter in Schema class is not not supported.")}get $schema(){throw new Es("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Es("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Es("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Es("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Es("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Es("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Es("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Es("definitions setter in Schema class is not not supported.")}get base(){throw new Es("base getter in Schema class is not not supported.")}set base(e){throw new Es("base setter in Schema class is not not supported.")}get links(){throw new Es("links getter in Schema class is not not supported.")}set links(e){throw new Es("links setter in Schema class is not not supported.")}get media(){throw new Es("media getter in Schema class is not not supported.")}set media(e){throw new Es("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class g8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="securityRequirement"}}const bg=g8;class f8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}}const nm=f8;class m8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}}const vg=m8;class b8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const yg=b8;class v8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const im=v8;class y8 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}}const sm=y8,k8=Zt({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ib(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),cw=k8,lw=e=>{if(ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},uw={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Od},w8=Zt(cw,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return ow(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=vs(["visitors",...e,"fixedFields"],this.specObj);return typeof t=="object"&&t!==null?Object.keys(t):[]},retrieveVisitor(e){return rp(Is,["visitors",...e],this.specObj)?vs(["visitors",...e],this.specObj):vs(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const a=this.retrieveVisitorInstance(e,r),i=Object.getPrototypeOf(a);return ic(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===i?fo(t):(xs(t,a,{keyMap:uw,nodeTypeGetter:lw,...r}),a.element)}}}),Vs=w8,x8=e=>On(e)&&e.hasKey("openapi")&&e.hasKey("info"),E8=e=>On(e)&&e.hasKey("name")&&e.hasKey("in"),ii=e=>On(e)&&e.hasKey("$ref"),S8=e=>On(e)&&e.hasKey("content"),_8=e=>On(e)&&e.hasKey("description"),pw=On,dw=On,Kb=e=>an(e.key)&&Qk("x-",Gr(e.key)),pn=Zt(Vs,{props:{specPath:jd,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:Kb},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:a=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=a},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((a,i,m)=>{if(an(i)&&r.includes(Gr(i))&&!this.ignoredFields.includes(Gr(i))){const A=this.toRefractedElement([...t,"fixedFields",Gr(i)],a),x=new vr.c6(fo(i),A);this.copyMetaAndAttributes(m,x),x.classes.push("fixed-field"),this.element.content.push(x)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(m)){const A=this.toRefractedElement(["document","extension"],m);this.element.content.push(A)}else this.ignoredFields.includes(Gr(i))||this.element.content.push(fo(m))}),this.copyMetaAndAttributes(e,this.element),wa}}}),Kt=Zt(cw,{methods:{enter(e){return this.element=fo(e),wa}}}),A8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yf},methods:{ObjectElement(e){return this.unrefractedElement=e,pn.compose.methods.ObjectElement.call(this,e)}}}),O8=Zt(Vs,Kt,{methods:{StringElement(e){const t=new ig(Gr(e));return this.copyMetaAndAttributes(e,t),this.element=t,wa}}}),j8=Zt(Vs,{methods:{MemberElement(e){return this.element=fo(e),this.element.classes.push("specification-extension"),wa}}}),C8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new rg}}),P8=Kt,I8=Kt,T8=Kt,R8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("api-version"),this.element.classes.push("version"),wa}}}),z8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qh}}),N8=Kt,B8=Kt,D8=Kt,M8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new og}}),L8=Kt,F8=Kt,$8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new ag},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return(an(this.element.operationId)||an(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),U8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),q8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),Pd=Zt(Vs,{props:{fieldPatternPredicate:zb,specPath:jd,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:Kb},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:a=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=a},methods:{ObjectElement(e){return e.forEach((t,r,a)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const i=this.toRefractedElement(["document","extension"],a);this.element.content.push(i)}else if(!this.ignoredFields.includes(Gr(r))&&this.fieldPatternPredicate(Gr(r))){const i=this.specPath(t),m=this.toRefractedElement(i,t),A=new vr.c6(fo(r),m);this.copyMetaAndAttributes(a,A),A.classes.push("patterned-field"),this.element.content.push(A)}else this.ignoredFields.includes(Gr(r))||this.element.content.push(fo(a))}),this.copyMetaAndAttributes(e,this.element),wa}}}),Xa=Zt(Pd,{props:{fieldPatternPredicate:$b}}),qm=class qm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(qm.primaryClass)}};Za(qm,"primaryClass","link-parameters");let Hb=qm;const K8=Hb,H8=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new K8}}),V8=Kt,W8=Kt,J8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new vg}}),G8=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("server-url"),wa}}}),Y8=Kt,Km=class Km extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(Km.primaryClass)}};Za(Km,"primaryClass","servers");let Vb=Km;const Wb=Vb,Jb=Zt(Vs,Kt,{init(){this.element=new Wb},methods:{ArrayElement(e){return e.forEach(t=>{const r=pw(t)?["document","objects","Server"]:["value"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),Z8=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new yg}}),Q8=Kt,X8=Kt,eE=Kt,Hm=class Hm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Hm.primaryClass)}};Za(Hm,"primaryClass","server-variables");let Gb=Hm;const tE=Gb,rE=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","ServerVariable"])},init(){this.element=new tE}}),oE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new ng}}),Bl=Zt(Vs,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map(({predicate:a,specPath:i})=>Ub(a,Oa(i),cp)),r=sw(t)(e);return this.element=this.toRefractedElement(r,e),wa}}}),aE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Yh||e(a)&&t("callback",a)&&r("object",a)),nE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Zh||e(a)&&t("components",a)&&r("object",a)),iE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Qh||e(a)&&t("contact",a)&&r("object",a)),sE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Xh||e(a)&&t("example",a)&&r("object",a)),cE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof eg||e(a)&&t("externalDocumentation",a)&&r("object",a)),Id=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof tg||e(a)&&t("header",a)&&r("object",a)),lE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof rg||e(a)&&t("info",a)&&r("object",a)),uE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof og||e(a)&&t("license",a)&&r("object",a)),pE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ag||e(a)&&t("link",a)&&r("object",a)),dE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ig||e(a)&&t("openapi",a)&&r("string",a)),hE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:a})=>i=>i instanceof Yf||e(i)&&t("openApi3_0",i)&&r("object",i)&&a("api",i)),hw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof sg||e(a)&&t("operation",a)&&r("object",a)),gE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof cg||e(a)&&t("parameter",a)&&r("object",a)),Yb=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof lg||e(a)&&t("pathItem",a)&&r("object",a)),fE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ug||e(a)&&t("paths",a)&&r("object",a)),si=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof pg||e(a)&&t("reference",a)&&r("object",a)),mE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof dg||e(a)&&t("requestBody",a)&&r("object",a)),cm=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof hg||e(a)&&t("response",a)&&r("object",a)),bE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof gg||e(a)&&t("responses",a)&&r("object",a)),vE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof am||e(a)&&t("schema",a)&&r("object",a)),yE=e=>Hh(e)&&e.classes.includes("boolean-json-schema"),kE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof bg||e(a)&&t("securityRequirement",a)&&r("object",a)),wE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vg||e(a)&&t("server",a)&&r("object",a)),xE=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof yg||e(a)&&t("serverVariable",a)&&r("object",a)),lm=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ng||e(a)&&t("mediaType",a)&&r("object",a)),gw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:a})=>i=>i instanceof Wb||e(i)&&t("array",i)&&r("array",i)&&a("servers",i)),EE=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),SE=Kt,Zb=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new vr.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","example")}),t}}}),Vm=class Vm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Vm.primaryClass),this.classes.push("examples")}};Za(Vm,"primaryClass","media-type-examples");let Qb=Vm;const _E=Qb,AE=Zt(Zb,{init(){this.element=new _E}}),Wm=class Wm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Wm.primaryClass)}};Za(Wm,"primaryClass","media-type-encoding");let Xb=Wm;const OE=Xb,jE=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","Encoding"])},init(){this.element=new OE}}),CE=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new bg}}),Jm=class Jm extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(Jm.primaryClass)}};Za(Jm,"primaryClass","security");let ev=Jm;const PE=ev,IE=Zt(Vs,Kt,{init(){this.element=new PE},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","SecurityRequirement"],t);this.element.push(r)}else this.element.push(fo(t))}),this.copyMetaAndAttributes(e,this.element),wa}}}),TE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zh}}),RE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new im}}),zE=Kt,NE=Kt,BE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new pg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return an(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),DE=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),ME=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new cg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.contentProp)&&this.element.contentProp.filter(lm).forEach((r,a)=>{r.setMetaProperty("media-type",Gr(a))}),t}}}),LE=Kt,FE=Kt,$E=Kt,UE=Kt,qE=Kt,KE=Kt,HE=Kt,VE=Kt,WE=Kt,JE=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),GE=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new tg}}),YE=Kt,ZE=Kt,QE=Kt,XE=Kt,e9=Kt,t9=Kt,r9=Kt,o9=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),a9=Kt,Gm=class Gm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Gm.primaryClass),this.classes.push("examples")}};Za(Gm,"primaryClass","header-examples");let tv=Gm;const n9=tv,i9=Zt(Zb,{init(){this.element=new n9}}),um=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","MediaType"])},init(){this.element=new vr.Sb,this.element.classes.push("content")}}),Ym=class Ym extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Ym.primaryClass),this.classes.push("content")}};Za(Ym,"primaryClass","header-content");let rv=Ym;const s9=rv,c9=Zt(um,{init(){this.element=new s9}}),l9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new am}}),{allOf:fw}=nu.visitors.document.objects.JSONSchema.fixedFields,u9=Zt(fw,{methods:{ArrayElement(e){const t=fw.compose.methods.ArrayElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{anyOf:mw}=nu.visitors.document.objects.JSONSchema.fixedFields,p9=Zt(mw,{methods:{ArrayElement(e){const t=mw.compose.methods.ArrayElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{oneOf:bw}=nu.visitors.document.objects.JSONSchema.fixedFields,d9=Zt(bw,{methods:{ArrayElement(e){const t=bw.compose.methods.ArrayElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{items:vw}=nu.visitors.document.objects.JSONSchema.fixedFields,h9=Zt(vw,{methods:{ObjectElement(e){const t=vw.compose.methods.ObjectElement.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=fo(e),wa}}}),{properties:yw}=nu.visitors.document.objects.JSONSchema.fixedFields,g9=Zt(yw,{methods:{ObjectElement(e){const t=yw.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{type:f9}=nu.visitors.document.objects.JSONSchema.fixedFields,m9=Zt(f9,{methods:{ArrayElement(e){return this.element=fo(e),wa}}}),b9=Kt,v9=Kt,y9=Kt,k9=Kt,{JSONSchemaOrJSONReferenceVisitor:kw}=nu.visitors,ww=Zt(kw,{methods:{ObjectElement(e){const t=kw.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),w9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Vf}}),x9=Kt,Zm=class Zm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Zm.primaryClass)}};Za(Zm,"primaryClass","discriminator-mapping");let ov=Zm;const E9=ov,S9=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new E9}}),_9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new sm}}),A9=Kt,O9=Kt,j9=Kt,C9=Kt,P9=Kt,I9=Kt,Qm=class Qm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Qm.primaryClass),this.classes.push("examples")}};Za(Qm,"primaryClass","parameter-examples");let av=Qm;const T9=av,R9=Zt(Zb,{init(){this.element=new T9}}),Xm=class Xm extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(Xm.primaryClass),this.classes.push("content")}};Za(Xm,"primaryClass","parameter-content");let nv=Xm;const z9=nv,N9=Zt(um,{init(){this.element=new z9}}),e0=class e0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(e0.primaryClass)}};Za(e0,"primaryClass","components-schemas");let iv=e0;const xw=iv,B9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new xw},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),t0=class t0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(t0.primaryClass)}};Za(t0,"primaryClass","components-responses");let sv=t0;const D9=sv,M9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new D9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","response")}),this.element.filter(cm).forEach((r,a)=>{r.setMetaProperty("http-status-code",Gr(a))}),t}}}),r0=class r0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(r0.primaryClass),this.classes.push("parameters")}};Za(r0,"primaryClass","components-parameters");let cv=r0;const L9=cv,F9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new L9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","parameter")}),t}}}),o0=class o0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(o0.primaryClass),this.classes.push("examples")}};Za(o0,"primaryClass","components-examples");let lv=o0;const $9=lv,U9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new $9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","example")}),t}}}),a0=class a0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(a0.primaryClass)}};Za(a0,"primaryClass","components-request-bodies");let uv=a0;const q9=uv,K9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new q9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","requestBody")}),t}}}),n0=class n0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(n0.primaryClass)}};Za(n0,"primaryClass","components-headers");let pv=n0;const H9=pv,V9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new H9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","header")}),this.element.filter(Id).forEach((r,a)=>{r.setMetaProperty("header-name",Gr(a))}),t}}}),i0=class i0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(i0.primaryClass)}};Za(i0,"primaryClass","components-security-schemes");let dv=i0;const W9=dv,J9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new W9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","securityScheme")}),t}}}),s0=class s0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(s0.primaryClass)}};Za(s0,"primaryClass","components-links");let hv=s0;const G9=hv,Y9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new G9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","link")}),t}}}),c0=class c0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(c0.primaryClass)}};Za(c0,"primaryClass","components-callbacks");let gv=c0;const Z9=gv,Q9=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Z9},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","callback")}),t}}}),X9=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xh},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return an(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),eS=Kt,tS=Kt,rS=Kt,oS=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),aS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new eg}}),nS=Kt,iS=Kt,sS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wf},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.headers)&&this.element.headers.filter(Id).forEach((r,a)=>{r.setMetaProperty("header-name",Gr(a))}),t}}}),cS=Kt,l0=class l0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(l0.primaryClass)}};Za(l0,"primaryClass","encoding-headers");let fv=l0;const lS=fv,uS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new lS},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","header")}),this.element.forEach((r,a)=>{if(!Id(r))return;const i=Gr(a);r.setMetaProperty("headerName",i)}),t}}}),pS=Kt,dS=Kt,hS=Kt,gS=Zt(Pd,Kt,{props:{fieldPatternPredicate:ou,specPath:Oa(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ug},methods:{ObjectElement(e){const t=Pd.compose.methods.ObjectElement.call(this,e);return this.element.filter(Yb).forEach((r,a)=>{a.classes.push("openapi-path-template"),a.classes.push("path-template"),r.setMetaProperty("path",fo(a))}),t}}}),fS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","RequestBody"])},init(){this.element=new dg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.contentProp)&&this.element.contentProp.filter(lm).forEach((r,a)=>{r.setMetaProperty("media-type",Gr(a))}),t}}}),mS=Kt,u0=class u0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(u0.primaryClass),this.classes.push("content")}};Za(u0,"primaryClass","request-body-content");let mv=u0;const bS=mv,vS=Zt(um,{init(){this.element=new bS}}),yS=Kt,kS=Zt(Pd,Kt,{props:{fieldPatternPredicate:lh(/{(?<expression>.*)}/),specPath:Oa(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yh},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Yb).forEach((r,a)=>{r.setMetaProperty("runtime-expression",Gr(a))}),t}}}),wS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Response"])},init(){this.element=new hg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return On(this.element.contentProp)&&this.element.contentProp.filter(lm).forEach((r,a)=>{r.setMetaProperty("media-type",Gr(a))}),On(this.element.headers)&&this.element.headers.filter(Id).forEach((r,a)=>{r.setMetaProperty("header-name",Gr(a))}),t}}}),xS=Kt,p0=class p0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(p0.primaryClass)}};Za(p0,"primaryClass","response-headers");let bv=p0;const ES=bv,SS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new ES},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","header")}),this.element.forEach((r,a)=>{if(!Id(r))return;const i=Gr(a);r.setMetaProperty("header-name",i)}),t}}}),d0=class d0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(d0.primaryClass),this.classes.push("content")}};Za(d0,"primaryClass","response-content");let vv=d0;const _S=vv,AS=Zt(um,{init(){this.element=new _S}}),h0=class h0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(h0.primaryClass)}};Za(h0,"primaryClass","response-links");let yv=h0;const OS=yv,jS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new OS},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","link")}),t}}});function Ew(e){return Object.prototype.toString.call(e)==="[object Number]"}var CS=Jo(function(e,t){if(!Ew(e)||!Ew(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],a=e;a<t;)r.push(a),a+=1;return r});const PS=CS;function Sw(e,t,r){var a,i=typeof e;switch(i){case"string":case"number":return e===0&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(a=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===a):r._nativeSet.has(e):i in r._items?e in r._items[i]||(t&&(r._items[i][e]=!0),!1):(t&&(r._items[i]={},r._items[i][e]=!0),!1);case"boolean":if(i in r._items){var m=e?1:0;return!!r._items[i][m]||(t&&(r._items[i][m]=!0),!1)}return t&&(r._items[i]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(a=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===a):r._nativeSet.has(e):i in r._items?!!$s(e,r._items[i])||(t&&r._items[i].push(e),!1):(t&&(r._items[i]=[e]),!1);case"undefined":return!!r._items[i]||(t&&(r._items[i]=!0),!1);case"object":if(e===null)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in r._items?!!$s(e,r._items[i])||(t&&r._items[i].push(e),!1):(t&&(r._items[i]=[e]),!1)}}const IS=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!Sw(t,!0,this)},e.prototype.has=function(t){return Sw(t,!1,this)},e}();var TS=Jo(function(e,t){for(var r=[],a=0,i=e.length,m=t.length,A=new IS,x=0;x<m;x+=1)A.add(t[x]);for(;a<i;)A.add(e[a])&&(r[r.length]=e[a]),a+=1;return r});const RS=TS,_w=Zt(pn,Pd,{props:{specPathFixedFields:jd,specPathPatternedFields:jd},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const a=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...RS(e.keys(),a)],pn.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=a,Pd.compose.methods.ObjectElement.call(this,e)}catch(a){throw this.specPath=t,a}return wa}}}),zS=Zt(_w,Kt,{props:{specPathFixedFields:Oa(["document","objects","Responses"]),specPathPatternedFields:e=>ii(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:lh(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${PS(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new gg},methods:{ObjectElement(e){const t=_w.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","response")}),this.element.filter(cm).forEach((r,a)=>{const i=fo(a);this.fieldPatternPredicate(Gr(i))&&r.setMetaProperty("http-status-code",i)}),t}}}),NS=Zt(Bl,Kt,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)?this.element.setMetaProperty("referenced-element","response"):cm(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),BS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","Operation"])},init(){this.element=new sg}}),g0=class g0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(g0.primaryClass)}};Za(g0,"primaryClass","operation-tags");let kv=g0;const DS=kv,MS=Zt(Kt,{init(){this.element=new DS},methods:{ArrayElement(e){return this.element=this.element.concat(fo(e)),wa}}}),LS=Kt,FS=Kt,$S=Kt,f0=class f0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(f0.primaryClass),this.classes.push("parameters")}};Za(f0,"primaryClass","operation-parameters");let wv=f0;const Aw=wv,Ow=Zt(Vs,Kt,{init(){this.element=new vr.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach(t=>{const r=ii(t)?["document","objects","Reference"]:["document","objects","Parameter"],a=this.toRefractedElement(r,t);si(a)&&a.setMetaProperty("referenced-element","parameter"),this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),US=Zt(Ow,{init(){this.element=new Aw}}),qS=Zt(Bl,{props:{alternator:[{predicate:ii,specPath:["document","objects","Reference"]},{predicate:ou,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Bl.compose.methods.enter.call(this,e);return si(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}}),m0=class m0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(m0.primaryClass)}};Za(m0,"primaryClass","operation-callbacks");let xv=m0;const KS=xv,HS=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new KS},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(si).forEach(r=>{r.setMetaProperty("referenced-element","callback")}),t}}}),VS=Kt,b0=class b0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(b0.primaryClass),this.classes.push("security")}};Za(b0,"primaryClass","operation-security");let Ev=b0;const jw=Ev,WS=Zt(Vs,Kt,{init(){this.element=new jw},methods:{ArrayElement(e){return e.forEach(t=>{const r=On(t)?["document","objects","SecurityRequirement"]:["value"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),v0=class v0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(v0.primaryClass),this.classes.push("servers")}};Za(v0,"primaryClass","operation-servers");let Sv=v0;const Cw=Sv,JS=Zt(Jb,{init(){this.element=new Cw}}),GS=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","PathItem"])},init(){this.element=new lg},methods:{ObjectElement(e){const t=pn.compose.methods.ObjectElement.call(this,e);return this.element.filter(hw).forEach((r,a)=>{const i=fo(a);i.content=Gr(i).toUpperCase(),r.setMetaProperty("http-method",i)}),an(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),YS=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),ZS=Kt,QS=Kt,y0=class y0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(y0.primaryClass),this.classes.push("servers")}};Za(y0,"primaryClass","path-item-servers");let _v=y0;const Pw=_v,XS=Zt(Jb,{init(){this.element=new Pw}}),k0=class k0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(k0.primaryClass),this.classes.push("parameters")}};Za(k0,"primaryClass","path-item-parameters");let Av=k0;const e_=Av,t_=Zt(Ow,{init(){this.element=new e_}}),r_=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new nm}}),o_=Kt,a_=Kt,n_=Kt,i_=Kt,s_=Kt,c_=Kt,l_=Kt,u_=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Gf}}),p_=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jf}}),d_=Kt,h_=Kt,g_=Kt,w0=class w0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(w0.primaryClass)}};Za(w0,"primaryClass","oauth-flow-scopes");let Ov=w0;const f_=Ov,m_=Zt(Xa,Kt,{props:{specPath:Oa(["value"])},init(){this.element=new f_}}),x0=class x0 extends vr.ON{constructor(t,r,a){super(t,r,a),this.classes.push(x0.primaryClass)}};Za(x0,"primaryClass","tags");let jv=x0;const b_=jv,v_=Zt(Vs,Kt,{init(){this.element=new b_},methods:{ArrayElement(e){return e.forEach(t=>{const r=dw(t)?["document","objects","Tag"]:["value"],a=this.toRefractedElement(r,t);this.element.push(a)}),this.copyMetaAndAttributes(e,this.element),wa}}}),{fixedFields:ts}=nu.visitors.document.objects.JSONSchema,zr={visitors:{value:Kt,document:{objects:{OpenApi:{$visitor:A8,fixedFields:{openapi:O8,info:{$ref:"#/visitors/document/objects/Info"},servers:Jb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:IE,tags:v_,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:C8,fixedFields:{title:P8,description:I8,termsOfService:T8,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:R8}},Contact:{$visitor:z8,fixedFields:{name:N8,url:B8,email:D8}},License:{$visitor:M8,fixedFields:{name:L8,url:F8}},Server:{$visitor:J8,fixedFields:{url:G8,description:Y8,variables:rE}},ServerVariable:{$visitor:Z8,fixedFields:{enum:Q8,default:X8,description:eE}},Components:{$visitor:TE,fixedFields:{schemas:B9,responses:M9,parameters:F9,examples:U9,requestBodies:K9,headers:V9,securitySchemes:J9,links:Y9,callbacks:Q9}},Paths:{$visitor:gS},PathItem:{$visitor:GS,fixedFields:{$ref:YS,summary:ZS,description:QS,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:XS,parameters:t_}},Operation:{$visitor:BS,fixedFields:{tags:MS,summary:LS,description:FS,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:$S,parameters:US,requestBody:qS,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:HS,deprecated:VS,security:WS,servers:JS}},ExternalDocumentation:{$visitor:aS,fixedFields:{description:nS,url:iS}},Parameter:{$visitor:ME,fixedFields:{name:LE,in:FE,description:$E,required:UE,deprecated:qE,allowEmptyValue:KE,style:HE,explode:VE,allowReserved:WE,schema:JE,example:I9,examples:R9,content:N9}},RequestBody:{$visitor:fS,fixedFields:{description:mS,content:vS,required:yS}},MediaType:{$visitor:oE,fixedFields:{schema:EE,example:SE,examples:AE,encoding:jE}},Encoding:{$visitor:sS,fixedFields:{contentType:cS,headers:uS,style:pS,explode:dS,allowReserved:hS}},Responses:{$visitor:zS,fixedFields:{default:NS}},Response:{$visitor:wS,fixedFields:{description:xS,headers:SS,content:AS,links:jS}},Callback:{$visitor:kS},Example:{$visitor:X9,fixedFields:{summary:eS,description:tS,value:rS,externalValue:oS}},Link:{$visitor:$8,fixedFields:{operationRef:U8,operationId:q8,parameters:H8,requestBody:V8,description:W8,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:GE,fixedFields:{description:YE,required:ZE,deprecated:QE,allowEmptyValue:XE,style:e9,explode:t9,allowReserved:r9,schema:o9,example:a9,examples:i9,content:c9}},Tag:{$visitor:RE,fixedFields:{name:zE,description:NE,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:BE,fixedFields:{$ref:DE}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:l9,fixedFields:{title:ts.title,multipleOf:ts.multipleOf,maximum:ts.maximum,exclusiveMaximum:ts.exclusiveMaximum,minimum:ts.minimum,exclusiveMinimum:ts.exclusiveMinimum,maxLength:ts.maxLength,minLength:ts.minLength,pattern:ts.pattern,maxItems:ts.maxItems,minItems:ts.minItems,uniqueItems:ts.uniqueItems,maxProperties:ts.maxProperties,minProperties:ts.minProperties,required:ts.required,enum:ts.enum,type:m9,allOf:u9,anyOf:p9,oneOf:d9,not:ww,items:h9,properties:g9,additionalProperties:ww,description:ts.description,format:ts.format,default:ts.default,nullable:b9,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:v9,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:y9,deprecated:k9}},Discriminator:{$visitor:w9,fixedFields:{propertyName:x9,mapping:S9}},XML:{$visitor:_9,fixedFields:{name:A9,namespace:O9,prefix:j9,attribute:C9,wrapped:P9}},SecurityScheme:{$visitor:r_,fixedFields:{type:o_,description:a_,name:n_,in:i_,scheme:s_,bearerFormat:c_,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:l_}},OAuthFlows:{$visitor:u_,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:p_,fixedFields:{authorizationUrl:d_,tokenUrl:h_,refreshUrl:g_,scopes:m_}},SecurityRequirement:{$visitor:CE}},extension:{$visitor:j8}}}},y_={namespace:e=>{const{base:t}=e;return t.register("callback",Yh),t.register("components",Zh),t.register("contact",Qh),t.register("discriminator",Vf),t.register("encoding",Wf),t.register("example",Xh),t.register("externalDocumentation",eg),t.register("header",tg),t.register("info",rg),t.register("license",og),t.register("link",ag),t.register("mediaType",ng),t.register("oAuthFlow",Jf),t.register("oAuthFlows",Gf),t.register("openapi",ig),t.register("openApi3_0",Yf),t.register("operation",sg),t.register("parameter",cg),t.register("pathItem",lg),t.register("paths",ug),t.register("reference",pg),t.register("requestBody",dg),t.register("response",hg),t.register("responses",gg),t.register("schema",am),t.register("securityRequirement",bg),t.register("securityScheme",nm),t.register("server",vg),t.register("serverVariable",yg),t.register("tag",im),t.register("xml",sm),t}},k_=y_,w_=()=>{const e=_d(k_);return{predicates:{...w,...O,isStringElement:an},namespace:e}},x_=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const a=(0,vr.Qc)(e),i=tm(zr),m=Sd(t,[],i);return xs(a,m,{state:{specObj:i}}),Jh(m.element,r,{toolboxCreator:w_,visitorOptions:{keyMap:uw,nodeTypeGetter:lw}})},qn=e=>(t,r={})=>x_(t,{specPath:e,...r});Yh.refract=qn(["visitors","document","objects","Callback","$visitor"]),Zh.refract=qn(["visitors","document","objects","Components","$visitor"]),Qh.refract=qn(["visitors","document","objects","Contact","$visitor"]),Xh.refract=qn(["visitors","document","objects","Example","$visitor"]),Vf.refract=qn(["visitors","document","objects","Discriminator","$visitor"]),Wf.refract=qn(["visitors","document","objects","Encoding","$visitor"]),eg.refract=qn(["visitors","document","objects","ExternalDocumentation","$visitor"]),tg.refract=qn(["visitors","document","objects","Header","$visitor"]),rg.refract=qn(["visitors","document","objects","Info","$visitor"]),og.refract=qn(["visitors","document","objects","License","$visitor"]),ag.refract=qn(["visitors","document","objects","Link","$visitor"]),ng.refract=qn(["visitors","document","objects","MediaType","$visitor"]),Jf.refract=qn(["visitors","document","objects","OAuthFlow","$visitor"]),Gf.refract=qn(["visitors","document","objects","OAuthFlows","$visitor"]),ig.refract=qn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Yf.refract=qn(["visitors","document","objects","OpenApi","$visitor"]),sg.refract=qn(["visitors","document","objects","Operation","$visitor"]),cg.refract=qn(["visitors","document","objects","Parameter","$visitor"]),lg.refract=qn(["visitors","document","objects","PathItem","$visitor"]),ug.refract=qn(["visitors","document","objects","Paths","$visitor"]),pg.refract=qn(["visitors","document","objects","Reference","$visitor"]),dg.refract=qn(["visitors","document","objects","RequestBody","$visitor"]),hg.refract=qn(["visitors","document","objects","Response","$visitor"]),gg.refract=qn(["visitors","document","objects","Responses","$visitor"]),am.refract=qn(["visitors","document","objects","Schema","$visitor"]),bg.refract=qn(["visitors","document","objects","SecurityRequirement","$visitor"]),nm.refract=qn(["visitors","document","objects","SecurityScheme","$visitor"]),vg.refract=qn(["visitors","document","objects","Server","$visitor"]),yg.refract=qn(["visitors","document","objects","ServerVariable","$visitor"]),im.refract=qn(["visitors","document","objects","Tag","$visitor"]),sm.refract=qn(["visitors","document","objects","XML","$visitor"]);const pm=class extends Yh{},dm=class extends Zh{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},hm=class extends Qh{},Cv=class extends Vf{},Pv=class extends Wf{},gm=class extends Xh{},fm=class extends eg{},mm=class extends tg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},bm=class extends rg{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}},E0=class E0 extends vr.RP{constructor(t,r,a){super(t,r,a),this.element="jsonSchemaDialect"}};Za(E0,"default",new E0("https://spec.openapis.org/oas/3.1/dialect/base"));let Iv=E0;const kg=Iv,vm=class extends og{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},ym=class extends ag{},km=class extends ng{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Tv=class extends Jf{},Rv=class extends Gf{},zv=class extends ig{};class E_ extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}const Mu=E_,wg=class extends sg{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},wm=class extends cg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Dl=class extends lg{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},xm=class extends ug{};class Nv extends pg{}Object.defineProperty(Nv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Nv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Lu=Nv,Em=class extends dg{},Sm=class extends hg{},_m=class extends gg{};class S_ extends vr.Sb{constructor(t,r,a){super(t,r,a),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}const iu=S_,Am=class extends bg{},Bv=class extends nm{},Om=class extends vg{},jm=class extends yg{},Dv=class extends im{},Mv=class extends sm{},__=Zt(pn,Kt,{props:{specPath:Oa(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mu,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,pn.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:A_}}}}}=zr,O_=Zt(A_,{init(){this.element=new bm}}),j_=Kt,{visitors:{document:{objects:{Contact:{$visitor:C_}}}}}=zr,P_=Zt(C_,{init(){this.element=new hm}}),{visitors:{document:{objects:{License:{$visitor:I_}}}}}=zr,T_=Zt(I_,{init(){this.element=new vm}}),R_=Kt,{visitors:{document:{objects:{Link:{$visitor:z_}}}}}=zr,N_=Zt(z_,{init(){this.element=new ym}}),B_=Zt(Vs,Kt,{methods:{StringElement(e){const t=new kg(Gr(e));return this.copyMetaAndAttributes(e,t),this.element=t,wa}}}),{visitors:{document:{objects:{Server:{$visitor:D_}}}}}=zr,M_=Zt(D_,{init(){this.element=new Om}}),{visitors:{document:{objects:{ServerVariable:{$visitor:L_}}}}}=zr,F_=Zt(L_,{init(){this.element=new jm}}),{visitors:{document:{objects:{MediaType:{$visitor:$_}}}}}=zr,U_=Zt($_,{init(){this.element=new km}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:q_}}}}}=zr,K_=Zt(q_,{init(){this.element=new Am}}),{visitors:{document:{objects:{Components:{$visitor:H_}}}}}=zr,V_=Zt(H_,{init(){this.element=new dm}}),{visitors:{document:{objects:{Tag:{$visitor:W_}}}}}=zr,J_=Zt(W_,{init(){this.element=new Dv}}),{visitors:{document:{objects:{Reference:{$visitor:G_}}}}}=zr,Y_=Zt(G_,{init(){this.element=new Lu}}),Z_=Kt,Q_=Kt,{visitors:{document:{objects:{Parameter:{$visitor:X_}}}}}=zr,eA=Zt(X_,{init(){this.element=new wm}}),{visitors:{document:{objects:{Header:{$visitor:tA}}}}}=zr,rA=Zt(tA,{init(){this.element=new mm}}),oA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof pm||e(a)&&t("callback",a)&&r("object",a)),aA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof dm||e(a)&&t("components",a)&&r("object",a)),nA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof hm||e(a)&&t("contact",a)&&r("object",a)),iA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof gm||e(a)&&t("example",a)&&r("object",a)),sA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof fm||e(a)&&t("externalDocumentation",a)&&r("object",a)),cA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof mm||e(a)&&t("header",a)&&r("object",a)),lA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof bm||e(a)&&t("info",a)&&r("object",a)),Iw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof kg||e(a)&&t("jsonSchemaDialect",a)&&r("string",a)),uA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof vm||e(a)&&t("license",a)&&r("object",a)),pA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof ym||e(a)&&t("link",a)&&r("object",a)),dA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof zv||e(a)&&t("openapi",a)&&r("string",a)),Lv=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:a})=>i=>i instanceof Mu||e(i)&&t("openApi3_1",i)&&r("object",i)&&a("api",i)),Tw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof wg||e(a)&&t("operation",a)&&r("object",a)),hA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof wm||e(a)&&t("parameter",a)&&r("object",a)),Cm=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Dl||e(a)&&t("pathItem",a)&&r("object",a)),Rw=e=>{if(!Cm(e)||!an(e.$ref))return!1;const t=Gr(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},gA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof xm||e(a)&&t("paths",a)&&r("object",a)),Td=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Lu||e(a)&&t("reference",a)&&r("object",a)),zw=e=>{if(!Td(e)||!an(e.$ref))return!1;const t=Gr(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},fA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Em||e(a)&&t("requestBody",a)&&r("object",a)),mA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Sm||e(a)&&t("response",a)&&r("object",a)),bA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof _m||e(a)&&t("responses",a)&&r("object",a)),Rd=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof iu||e(a)&&t("schema",a)&&r("object",a)),Fv=e=>Hh(e)&&e.classes.includes("boolean-json-schema"),vA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Am||e(a)&&t("securityRequirement",a)&&r("object",a)),yA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof Om||e(a)&&t("server",a)&&r("object",a)),kA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof jm||e(a)&&t("serverVariable",a)&&r("object",a)),wA=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>a=>a instanceof km||e(a)&&t("mediaType",a)&&r("object",a)),su=Zt({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),xA=Zt(pn,su,Kt,{props:{specPath:Oa(["document","objects","Schema"]),canSupportSpecificationExtensions:!0,jsonSchemaDefaultDialect:kg.default},init(){this.element=new iu;const e=()=>{let a;return a=this.openApiSemanticElement!==null&&Iw(this.openApiSemanticElement.jsonSchemaDialect)?Gr(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==null&&an(this.openApiGenericElement.get("jsonSchemaDialect"))?Gr(this.openApiGenericElement.get("jsonSchemaDialect")):Gr(this.jsonSchemaDefaultDialect),a},t=a=>{if(Tb(this.parent)&&!an(a.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(Rd(this.parent)&&!an(a.get("$schema"))){const i=jl(Gr(this.parent.meta.get("inherited$schema")),Gr(this.parent.$schema));this.element.setMetaProperty("inherited$schema",i)}},r=a=>{const i=this.parent!==null?fo(this.parent.getMetaProperty("inherited$id",[])):new vr.ON,m=Gr(a.get("$id"));$b(m)&&i.push(m),this.element.setMetaProperty("inherited$id",i)};this.ObjectElement=function(a){t(a),r(a),this.parent=this.element;const i=pn.compose.methods.ObjectElement.call(this,a);return an(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),i},this.BooleanElement=function(a){return this.element=fo(a),this.element.classes.push("boolean-json-schema"),wa}}}),EA=Kt,SA=Zt(Kt,{methods:{ObjectElement(e){return this.element=fo(e),this.element.classes.push("json-schema-$vocabulary"),wa}}}),_A=Kt,AA=Kt,OA=Kt,jA=Kt,CA=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("reference-value"),wa}}}),PA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-$defs")}}),IA=Kt,TA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),RA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),zA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),NA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),BA=Zt(Vs,su,Kt,{init(){this.element=new vr.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach(t=>{if(On(t)){const r=this.toRefractedElement(["document","objects","Schema"],t);this.element.push(r)}else{const r=fo(t);this.element.push(r)}}),this.copyMetaAndAttributes(e,this.element),wa}}}),DA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-properties")}}),MA=Zt(Xa,su,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new vr.Sb,this.element.classes.push("json-schema-patternProperties")}}),LA=Zt(Kt,{methods:{StringElement(e){return this.element=fo(e),this.element.classes.push("json-schema-type"),wa},ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-type"),wa}}}),FA=Zt(Kt,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-enum"),wa}}}),$A=Kt,UA=Kt,qA=Kt,KA=Kt,HA=Kt,VA=Kt,WA=Kt,JA=Kt,GA=Kt,YA=Kt,ZA=Kt,QA=Kt,XA=Kt,eO=Kt,tO=Kt,rO=Kt,oO=Zt(Kt,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-required"),wa}}}),aO=Zt(Kt,{methods:{ObjectElement(e){return this.element=fo(e),this.element.classes.push("json-schema-dependentRequired"),wa}}}),nO=Kt,iO=Kt,sO=Kt,cO=Kt,lO=Kt,uO=Kt,pO=Zt(Kt,{methods:{ArrayElement(e){return this.element=fo(e),this.element.classes.push("json-schema-examples"),wa}}}),dO=Kt,hO=Kt,gO=Kt,fO=Kt,{visitors:{document:{objects:{Discriminator:{$visitor:mO}}}}}=zr,bO=Zt(mO,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Cv}}),{visitors:{document:{objects:{XML:{$visitor:vO}}}}}=zr,yO=Zt(vO,{init(){this.element=new Mv}}),kO=Zt(Xa,Kt,{props:{specPath:Oa(["document","objects","Schema"])},init(){this.element=new xw}}),S0=class S0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(S0.primaryClass)}};Za(S0,"primaryClass","components-path-items");let $v=S0;const wO=$v,xO=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new wO},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Td).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),t}}}),{visitors:{document:{objects:{Example:{$visitor:EO}}}}}=zr,SO=Zt(EO,{init(){this.element=new gm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:_O}}}}}=zr,AO=Zt(_O,{init(){this.element=new fm}}),{visitors:{document:{objects:{Encoding:{$visitor:OO}}}}}=zr,jO=Zt(OO,{init(){this.element=new Pv}}),{visitors:{document:{objects:{Paths:{$visitor:CO}}}}}=zr,PO=Zt(CO,{init(){this.element=new xm}}),{visitors:{document:{objects:{RequestBody:{$visitor:IO}}}}}=zr,TO=Zt(IO,{init(){this.element=new Em}}),{visitors:{document:{objects:{Callback:{$visitor:Nw}}}}}=zr,RO=Zt(Nw,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new pm},methods:{ObjectElement(e){const t=Nw.compose.methods.ObjectElement.call(this,e);return this.element.filter(Td).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),t}}}),{visitors:{document:{objects:{Response:{$visitor:zO}}}}}=zr,NO=Zt(zO,{init(){this.element=new Sm}}),{visitors:{document:{objects:{Responses:{$visitor:BO}}}}}=zr,DO=Zt(BO,{init(){this.element=new _m}}),{visitors:{document:{objects:{Operation:{$visitor:MO}}}}}=zr,LO=Zt(MO,{init(){this.element=new wg}}),{visitors:{document:{objects:{PathItem:{$visitor:FO}}}}}=zr,$O=Zt(FO,{init(){this.element=new Dl}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:UO}}}}}=zr,qO=Zt(UO,{init(){this.element=new Bv}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:KO}}}}}=zr,HO=Zt(KO,{init(){this.element=new Rv}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:VO}}}}}=zr,WO=Zt(VO,{init(){this.element=new Tv}}),_0=class _0 extends vr.Sb{constructor(t,r,a){super(t,r,a),this.classes.push(_0.primaryClass)}};Za(_0,"primaryClass","webhooks");let Uv=_0;const JO=Uv,GO=Zt(Xa,Kt,{props:{specPath:e=>ii(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new JO},methods:{ObjectElement(e){const t=Xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Td).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),this.element.filter(Cm).forEach((r,a)=>{r.setMetaProperty("webhook-name",Gr(a))}),t}}}),YO={visitors:{value:zr.visitors.value,document:{objects:{OpenApi:{$visitor:__,fixedFields:{openapi:zr.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:B_,servers:zr.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:GO,components:{$ref:"#/visitors/document/objects/Components"},security:zr.visitors.document.objects.OpenApi.fixedFields.security,tags:zr.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:O_,fixedFields:{title:zr.visitors.document.objects.Info.fixedFields.title,description:zr.visitors.document.objects.Info.fixedFields.description,summary:j_,termsOfService:zr.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:zr.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:P_,fixedFields:{name:zr.visitors.document.objects.Contact.fixedFields.name,url:zr.visitors.document.objects.Contact.fixedFields.url,email:zr.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:T_,fixedFields:{name:zr.visitors.document.objects.License.fixedFields.name,identifier:R_,url:zr.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:M_,fixedFields:{url:zr.visitors.document.objects.Server.fixedFields.url,description:zr.visitors.document.objects.Server.fixedFields.description,variables:zr.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:F_,fixedFields:{enum:zr.visitors.document.objects.ServerVariable.fixedFields.enum,default:zr.visitors.document.objects.ServerVariable.fixedFields.default,description:zr.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:V_,fixedFields:{schemas:kO,responses:zr.visitors.document.objects.Components.fixedFields.responses,parameters:zr.visitors.document.objects.Components.fixedFields.parameters,examples:zr.visitors.document.objects.Components.fixedFields.examples,requestBodies:zr.visitors.document.objects.Components.fixedFields.requestBodies,headers:zr.visitors.document.objects.Components.fixedFields.headers,securitySchemes:zr.visitors.document.objects.Components.fixedFields.securitySchemes,links:zr.visitors.document.objects.Components.fixedFields.links,callbacks:zr.visitors.document.objects.Components.fixedFields.callbacks,pathItems:xO}},Paths:{$visitor:PO},PathItem:{$visitor:$O,fixedFields:{$ref:zr.visitors.document.objects.PathItem.fixedFields.$ref,summary:zr.visitors.document.objects.PathItem.fixedFields.summary,description:zr.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:zr.visitors.document.objects.PathItem.fixedFields.servers,parameters:zr.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:LO,fixedFields:{tags:zr.visitors.document.objects.Operation.fixedFields.tags,summary:zr.visitors.document.objects.Operation.fixedFields.summary,description:zr.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:zr.visitors.document.objects.Operation.fixedFields.operationId,parameters:zr.visitors.document.objects.Operation.fixedFields.parameters,requestBody:zr.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:zr.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:zr.visitors.document.objects.Operation.fixedFields.deprecated,security:zr.visitors.document.objects.Operation.fixedFields.security,servers:zr.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:AO,fixedFields:{description:zr.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:zr.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:eA,fixedFields:{name:zr.visitors.document.objects.Parameter.fixedFields.name,in:zr.visitors.document.objects.Parameter.fixedFields.in,description:zr.visitors.document.objects.Parameter.fixedFields.description,required:zr.visitors.document.objects.Parameter.fixedFields.required,deprecated:zr.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:zr.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:zr.visitors.document.objects.Parameter.fixedFields.style,explode:zr.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:zr.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:zr.visitors.document.objects.Parameter.fixedFields.example,examples:zr.visitors.document.objects.Parameter.fixedFields.examples,content:zr.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:TO,fixedFields:{description:zr.visitors.document.objects.RequestBody.fixedFields.description,content:zr.visitors.document.objects.RequestBody.fixedFields.content,required:zr.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:U_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:zr.visitors.document.objects.MediaType.fixedFields.example,examples:zr.visitors.document.objects.MediaType.fixedFields.examples,encoding:zr.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:jO,fixedFields:{contentType:zr.visitors.document.objects.Encoding.fixedFields.contentType,headers:zr.visitors.document.objects.Encoding.fixedFields.headers,style:zr.visitors.document.objects.Encoding.fixedFields.style,explode:zr.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:zr.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:DO,fixedFields:{default:zr.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:NO,fixedFields:{description:zr.visitors.document.objects.Response.fixedFields.description,headers:zr.visitors.document.objects.Response.fixedFields.headers,content:zr.visitors.document.objects.Response.fixedFields.content,links:zr.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:RO},Example:{$visitor:SO,fixedFields:{summary:zr.visitors.document.objects.Example.fixedFields.summary,description:zr.visitors.document.objects.Example.fixedFields.description,value:zr.visitors.document.objects.Example.fixedFields.value,externalValue:zr.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:N_,fixedFields:{operationRef:zr.visitors.document.objects.Link.fixedFields.operationRef,operationId:zr.visitors.document.objects.Link.fixedFields.operationId,parameters:zr.visitors.document.objects.Link.fixedFields.parameters,requestBody:zr.visitors.document.objects.Link.fixedFields.requestBody,description:zr.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:rA,fixedFields:{description:zr.visitors.document.objects.Header.fixedFields.description,required:zr.visitors.document.objects.Header.fixedFields.required,deprecated:zr.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:zr.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:zr.visitors.document.objects.Header.fixedFields.style,explode:zr.visitors.document.objects.Header.fixedFields.explode,allowReserved:zr.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:zr.visitors.document.objects.Header.fixedFields.example,examples:zr.visitors.document.objects.Header.fixedFields.examples,content:zr.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:J_,fixedFields:{name:zr.visitors.document.objects.Tag.fixedFields.name,description:zr.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Y_,fixedFields:{$ref:zr.visitors.document.objects.Reference.fixedFields.$ref,summary:Z_,description:Q_}},Schema:{$visitor:xA,fixedFields:{$schema:EA,$vocabulary:SA,$id:_A,$anchor:AA,$dynamicAnchor:OA,$dynamicRef:jA,$ref:CA,$defs:PA,$comment:IA,allOf:TA,anyOf:RA,oneOf:zA,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:NA,prefixItems:BA,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:DA,patternProperties:MA,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:LA,enum:FA,const:$A,multipleOf:UA,maximum:qA,exclusiveMaximum:KA,minimum:HA,exclusiveMinimum:VA,maxLength:WA,minLength:JA,pattern:GA,maxItems:YA,minItems:ZA,uniqueItems:QA,maxContains:XA,minContains:eO,maxProperties:tO,minProperties:rO,required:oO,dependentRequired:aO,title:nO,description:iO,default:sO,deprecated:cO,readOnly:lO,writeOnly:uO,examples:pO,format:dO,contentEncoding:hO,contentMediaType:gO,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:fO}},Discriminator:{$visitor:bO,fixedFields:{propertyName:zr.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:zr.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:yO,fixedFields:{name:zr.visitors.document.objects.XML.fixedFields.name,namespace:zr.visitors.document.objects.XML.fixedFields.namespace,prefix:zr.visitors.document.objects.XML.fixedFields.prefix,attribute:zr.visitors.document.objects.XML.fixedFields.attribute,wrapped:zr.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:qO,fixedFields:{type:zr.visitors.document.objects.SecurityScheme.fixedFields.type,description:zr.visitors.document.objects.SecurityScheme.fixedFields.description,name:zr.visitors.document.objects.SecurityScheme.fixedFields.name,in:zr.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:zr.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:zr.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:zr.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:HO,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:WO,fixedFields:{authorizationUrl:zr.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:zr.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:zr.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:zr.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:K_}},extension:{$visitor:zr.visitors.document.extension.$visitor}}}},Ws=e=>{if(ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},uc={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Od},ZO={namespace:e=>{const{base:t}=e;return t.register("callback",pm),t.register("components",dm),t.register("contact",hm),t.register("discriminator",Cv),t.register("encoding",Pv),t.register("example",gm),t.register("externalDocumentation",fm),t.register("header",mm),t.register("info",bm),t.register("jsonSchemaDialect",kg),t.register("license",vm),t.register("link",ym),t.register("mediaType",km),t.register("oAuthFlow",Tv),t.register("oAuthFlows",Rv),t.register("openapi",zv),t.register("openApi3_1",Mu),t.register("operation",wg),t.register("parameter",wm),t.register("pathItem",Dl),t.register("paths",xm),t.register("reference",Lu),t.register("requestBody",Em),t.register("response",Sm),t.register("responses",_m),t.register("schema",iu),t.register("securityRequirement",Am),t.register("securityScheme",Bv),t.register("server",Om),t.register("serverVariable",jm),t.register("tag",Dv),t.register("xml",Mv),t}},Pm=ZO,Bw=()=>{const e=_d(Pm);return{predicates:{...T,isElement:ws,isStringElement:an,isArrayElement:$c,isObjectElement:On,isMemberElement:Ac,isServersElement:gw,includesClasses:Vh},namespace:e}},QO=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const a=(0,vr.Qc)(e),i=tm(YO),m=Sd(t,[],i);return xs(a,m,{state:{specObj:i}}),Jh(m.element,r,{toolboxCreator:Bw,visitorOptions:{keyMap:uc,nodeTypeGetter:Ws}})},Ln=e=>(t,r={})=>QO(t,{specPath:e,...r});pm.refract=Ln(["visitors","document","objects","Callback","$visitor"]),dm.refract=Ln(["visitors","document","objects","Components","$visitor"]),hm.refract=Ln(["visitors","document","objects","Contact","$visitor"]),gm.refract=Ln(["visitors","document","objects","Example","$visitor"]),Cv.refract=Ln(["visitors","document","objects","Discriminator","$visitor"]),Pv.refract=Ln(["visitors","document","objects","Encoding","$visitor"]),fm.refract=Ln(["visitors","document","objects","ExternalDocumentation","$visitor"]),mm.refract=Ln(["visitors","document","objects","Header","$visitor"]),bm.refract=Ln(["visitors","document","objects","Info","$visitor"]),kg.refract=Ln(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),vm.refract=Ln(["visitors","document","objects","License","$visitor"]),ym.refract=Ln(["visitors","document","objects","Link","$visitor"]),km.refract=Ln(["visitors","document","objects","MediaType","$visitor"]),Tv.refract=Ln(["visitors","document","objects","OAuthFlow","$visitor"]),Rv.refract=Ln(["visitors","document","objects","OAuthFlows","$visitor"]),zv.refract=Ln(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Mu.refract=Ln(["visitors","document","objects","OpenApi","$visitor"]),wg.refract=Ln(["visitors","document","objects","Operation","$visitor"]),wm.refract=Ln(["visitors","document","objects","Parameter","$visitor"]),Dl.refract=Ln(["visitors","document","objects","PathItem","$visitor"]),xm.refract=Ln(["visitors","document","objects","Paths","$visitor"]),Lu.refract=Ln(["visitors","document","objects","Reference","$visitor"]),Em.refract=Ln(["visitors","document","objects","RequestBody","$visitor"]),Sm.refract=Ln(["visitors","document","objects","Response","$visitor"]),_m.refract=Ln(["visitors","document","objects","Responses","$visitor"]),iu.refract=Ln(["visitors","document","objects","Schema","$visitor"]),Am.refract=Ln(["visitors","document","objects","SecurityRequirement","$visitor"]),Bv.refract=Ln(["visitors","document","objects","SecurityScheme","$visitor"]),Om.refract=Ln(["visitors","document","objects","Server","$visitor"]),jm.refract=Ln(["visitors","document","objects","ServerVariable","$visitor"]),Dv.refract=Ln(["visitors","document","objects","Tag","$visitor"]),Mv.refract=Ln(["visitors","document","objects","XML","$visitor"]);const Ml=class extends Es{},XO=class extends Array{constructor(){super(...arguments);Za(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Ml("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ml("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ml("latest method in MediaTypes class is not yet implemented.")}};class qv extends XO{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(a=>a.includes(r))}findBy(t="3.1.0",r="generic"){const a=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(i=>i.includes(a))||this.unknownMediaType}latest(t="generic"){return ip(this.filterByFormat(t))}}const Sp=new qv("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),zd=Zt({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:a=this.value}={}){this.uri=r,this.value=a,this.depth=e,this.refSet=t,this.errors=[]}}),Im=Qi(function(e,t,r){return ys(e,Gl(t,r))}),ej=Zt({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach(t=>this.add(t))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===null?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=sl(e)?e:e.uri;return pd(this.find(Im(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach(e=>{e.refSet=null}),this.refs=[]}}}),Tm=ej,tj={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},rj=Jo(function(e,t){return function(r){return function(a){return Ou(function(i){return t(i,a)},r(e(a)))}}});var oj=Qi(function e(t,r,a){if(t.length===0)return r;var i=t[0];if(t.length>1){var m=!em(a)&&Cs(i,a)&&typeof a[i]=="object"?a[i]:nc(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,m)}return function(A,x,I){if(nc(A)&&Al(I)){var L=[].concat(I);return L[A]=x,L}var $={};for(var U in I)$[U]=I[U];return $[A]=x,$}(i,r,a)});const aj=oj;var Dw=function(e){return{value:e,map:function(t){return Dw(t(e))}}},nj=Qi(function(e,t,r){return e(function(a){return Dw(t(a))})(r).value});const ij=nj,sj=rj(vs(["resolve","baseURI"]),aj(["resolve","baseURI"])),cj=e=>Xk(e)?Cu():e,_p=Zt({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:a=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=a},methods:{get extension(){return sl(this.uri)?ju(this.uri):""},toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Ps(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}}}),lj=class extends Mi{constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},Kv=async(e,t,r)=>{const a=await Promise.all(r.map(Sd([e],[t])));return r.filter((i,m)=>a[m])},Hv=async(e,t,r)=>{let a;for(const i of r)try{const m=await i[e].call(i,...t);return{plugin:i,result:m}}catch(m){a=new lj("Error while running plugin",{cause:m,plugin:i})}return Promise.reject(a)},Vv=class extends Mi{},uj=class extends Vv{},pj=async(e,t)=>{let r=e,a=!1;if(!zk(e)){const A=Ks(e);A.classes.push("result"),r=new ul([A]),a=!0}const i=_p({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),m=await Kv("canDereference",i,t.dereference.strategies);if(Kh(m))throw new uj(i.uri);try{const{result:A}=await Hv("dereference",[i,t],m);return a?A.get(0):A}catch(A){throw new Vv(`Error while dereferencing file "${i.uri}"`,{cause:A})}},dj=async(e,t={})=>{const r=((a,i)=>{const m=Pk(a,i);return ij(sj,cj,m)})(tj,t);return pj(e,r)},Wv=class extends Mi{},cu=class extends Wv{},hj=Zt({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:a=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=a},methods:{async canParse(){throw new Ml("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Ml("parse method in Parser stamp is not yet implemented.")}}}),xg=hj,gj=Zt(xg,{props:{name:"binary"},methods:{async canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),a=new ul;if(r.length!==0){const i=new vr.RP(r);i.classes.push("result"),a.push(i)}return a}catch(t){throw new cu(`Error parsing "${e.uri}"`,{cause:t})}}}}),fj=Zt({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Ml("resolve method in ResolveStrategy stamp is not yet implemented.")}}});var mj=Jo(function(e,t){return jb(ch(e),t)});const Jv=mj,bj=Mn(function(e){for(var t=Ri(e),r=t.length,a=[],i=0;i<r;)a[i]=e[t[i]],i+=1;return a}),vj=Gn(1,Xi(Promise.all,Promise)),lu=class extends Vv{},Gv=class extends Mi{},Mw=class extends Gv{},yj=class extends Mi{},Eg=class extends yj{},Lw=class extends Gv{},Fw=class extends Lw{},$w=async(e,t)=>{const r=_p({uri:Ts(Zn(e)),mediaType:t.parse.mediaType}),a=await(async(i,m)=>{const A=m.resolve.resolvers.map(I=>{const L=Object.create(I);return Object.assign(L,m.resolve.resolverOpts)}),x=await Kv("canRead",i,A);if(Kh(x))throw new Fw(i.uri);try{const{result:I}=await Hv("read",[i],x);return I}catch(I){throw new Gv(`Error while reading file "${i.uri}"`,{cause:I})}})(r,t);return(async(i,m)=>{const A=m.parse.parsers.map(I=>{const L=Object.create(I);return Object.assign(L,m.parse.parserOpts)}),x=await Kv("canParse",i,A);if(Kh(x))throw new Fw(i.uri);try{const{plugin:I,result:L}=await Hv("parse",[i],x);return!I.allowEmpty&&L.isEmpty?Promise.reject(new Wv(`Error while parsing file "${i.uri}". File is empty.`)):L}catch(I){throw new Wv(`Error while parsing file "${i.uri}"`,{cause:I})}})(_p({...r,data:a}),t)},kj=(e,t)=>{const r=Jk({predicate:e});return xs(t,r),new vr.O4(r.result)},Uw=Qi(function(e,t,r){return jl(e,vs(t,r))}),qw=(e,t)=>{const r=Jk({predicate:e,returnOnTrue:wa});return xs(t,r),Uw(void 0,[0],r.result)},Kw=class extends Mi{},wj=class extends Kw{},xj=class extends Kw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},Sg=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Fu=e=>{const t=xc(e);return Lb("#",t)},Rm=(e,t)=>{const r=(i=>{if(!Sg(i))throw new xj(i);return i})(e),a=qw(i=>Rd(i)&&Gr(i.$anchor)===r,t);if(ic(a))throw new wj(`Evaluation failed on token: "${r}"`);return a},zm=(e,t)=>{if(t.$ref===void 0)return;const r=xc(Gr(t.$ref)),a=Gr(t.meta.get("inherited$id"));return`${Ol((i,m)=>_i(i,Ts(Zn(m))),e,[...a,Gr(t.$ref)])}${r==="#"?"":r}`},_g=e=>{if(_g.cache.has(e))return _g.cache.get(e);const t=iu.refract(e);return _g.cache.set(e,t),t};_g.cache=new WeakMap;const qc=e=>ru(e)?_g(e):e,Ag=(e,t)=>{const{cache:r}=Ag,a=Zn(e),i=I=>Rd(I)&&I.$id!==void 0;if(!r.has(t)){const I=kj(i,t);r.set(t,Array.from(I))}const m=r.get(t).find(I=>((L,$)=>{if($.$id===void 0)return;const U=Gr($.meta.get("inherited$id"));return Ol((V,K)=>_i(V,Ts(Zn(K))),L,[...U,Gr($.$id)])})(a,I)===a);if(ic(m))throw new Eg(`Evaluation failed on URI: "${e}"`);let A,x;return Sg(Fu(e))?(A=Rm,x=Fu(e)):(A=Hs,x=zs(e)),A(x,m)};Ag.cache=new WeakMap;const Yv=xs[Symbol.for("nodejs.util.promisify.custom")],Nm=Zt({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:a=new WeakSet,options:i}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=a,this.options=i},methods:{toBaseURI(e){return _i(this.reference.uri,Ts(Zn(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Mw(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(Im(t,"uri"));const a=await $w(xi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),i=zd({uri:t,value:a,depth:this.reference.depth+1});return r.add(i),i},ReferenceElement(e){const t=Gr(e.$ref),r=this.toBaseURI(t);if(!this.options.resolve.external&&Zn(this.reference.uri)!==r)return!1;Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!an(e.$ref))return;const t=Gr(e.$ref),r=this.toBaseURI(t);(this.options.resolve.external||Zn(this.reference.uri)===r)&&(Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e))},LinkElement(e){if(!an(e.operationRef)&&!an(e.operationId))return;const t=Gr(e.operationRef),r=this.toBaseURI(t),a=Zn(this.reference.uri)!==r;if(this.options.resolve.external||!a){if(an(e.operationRef)&&an(e.operationId))throw new Mi("LinkElement operationRef and operationId are mutually exclusive.");a&&(Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))}},ExampleElement(e){if(!an(e.externalValue))return;if(e.hasKey("value")&&an(e.externalValue))throw new Mi("ExampleElement value and externalValue fields are mutually exclusive.");const t=Gr(e.externalValue),r=this.toBaseURI(t);(this.options.resolve.external||Zn(this.reference.uri)===r)&&(Ep(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!an(e.$ref))return void this.visited.add(e);const t=await this.toReference(xi(this.reference.uri));let{uri:r}=t;const a=zm(r,e),i=Zn(a),m=_p({uri:i}),A=Jv(L=>L.canRead(m),this.options.resolve.resolvers),x=!A,I=L=>Zn(this.reference.uri)!==L;if(!Ep(i,this.crawlingMap))try{if(A||x)this.crawlingMap[i]=t;else{if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return void this.visited.add(e);this.crawlingMap[i]=this.toReference(xi(a))}}catch(L){if(!(x&&L instanceof Eg))throw L;if(r=this.toBaseURI(xi(a)),!this.options.resolve.external&&I(r))return void this.visited.add(e);this.crawlingMap[i]=this.toReference(xi(a))}this.crawledElements.push(e)},async crawlReferenceElement(e){const t=await this.toReference(Gr(e.$ref));this.indirections.push(e);const r=zs(Gr(e.$ref));let a=Hs(r,t.value.result);if(ru(a)){const m=Gr(e.meta.get("referenced-element"));ii(a)?(a=Lu.refract(a),a.setMetaProperty("referenced-element",m)):a=this.namespace.getElementClass(m).refract(a)}if(this.indirections.includes(a))throw new Mi("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Nm({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Yv(a,i,{keyMap:uc,nodeTypeGetter:Ws}),await i.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Gr(e.$ref));this.indirections.push(e);const r=zs(Gr(e.$ref));let a=Hs(r,t.value.result);if(ru(a)&&(a=Dl.refract(a)),this.indirections.includes(a))throw new Mi("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Nm({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Yv(a,i,{keyMap:uc,nodeTypeGetter:Ws}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(xi(this.reference.uri)),{uri:r}=t;const a=zm(r,e),i=Zn(a),m=_p({uri:i}),A=Jv(U=>U.canRead(m),this.options.resolve.resolvers),x=!A,I=U=>Zn(this.reference.uri)!==U;let L;this.indirections.push(e);try{if(A||x)L=Ag(a,qc(t.value.result));else{if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return;t=await this.toReference(xi(a));const U=zs(a);L=qc(Hs(U,t.value.result))}}catch(U){if(!(x&&U instanceof Eg))throw U;if(Sg(Fu(a))){if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return;t=await this.toReference(xi(a));const V=Fu(a);L=Rm(V,qc(t.value.result))}else{if(r=this.toBaseURI(Gr(a)),!this.options.resolve.external&&I(r))return;t=await this.toReference(xi(a));const V=zs(a);L=qc(Hs(V,t.value.result))}}if(this.visited.add(e),this.indirections.includes(L))throw new Mi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const $=Nm({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Yv(L,$,{keyMap:uc,nodeTypeGetter:Ws}),await $.crawl(),this.indirections.pop()},async crawl(){await qi(bj,vj)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)Td(e)?await this.crawlReferenceElement(e):Rd(e)?await this.crawlSchemaElement(e):Cm(e)&&await this.crawlPathItemElement(e)}}}),Ej=Nm,Sj=xs[Symbol.for("nodejs.util.promisify.custom")],_j=Zt(fj,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return e.mediaType!=="text/plain"?Sp.includes(e.mediaType):Lv((t=e.parseResult)===null||t===void 0?void 0:t.result)},async resolve(e,t){const r=_d(Pm),a=zd({uri:e.uri,value:e.parseResult}),i=Ej({reference:a,namespace:r,options:t}),m=Tm();return m.add(a),await Sj(m.rootRef.value,i,{keyMap:uc,nodeTypeGetter:Ws}),await i.crawl(),m}}}),Aj=_j;function Zv(e,t,r){if(r||(r=new Oj),function(i){var m=typeof i;return i==null||m!="object"&&m!="function"}(e))return e;var a=function(i){var m=r.get(e);if(m)return m;for(var A in r.set(e,i),e)Object.prototype.hasOwnProperty.call(e,A)&&(i[A]=t?Zv(e[A],!0,r):e[A]);return i};switch(Ps(e)){case"Object":return a(Object.create(Object.getPrototypeOf(e)));case"Array":return a([]);case"Date":return new Date(e.valueOf());case"RegExp":return op(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Oj=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){const a=this.hash(t);let i=this.map[a];i||(this.map[a]=i=[]),i.push([t,r]),this.length+=1},e.prototype.hash=function(t){let r=[];for(var a in t)r.push(Object.prototype.toString.call(t[a]));return r.join()},e.prototype.get=function(t){if(this.length<=180){for(const i in this.map){const m=this.map[i];for(let A=0;A<m.length;A+=1){const x=m[A];if(x[0]===t)return x[1]}}return}const r=this.hash(t),a=this.map[r];if(a)for(let i=0;i<a.length;i+=1){const m=a[i];if(m[0]===t)return m[1]}},e}(),jj=function(){function e(t,r,a,i){this.valueFn=t,this.valueAcc=r,this.keyFn=a,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(Cs(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var a=this.keyFn(r);return this.inputs[a]=this.inputs[a]||[a,Zv(this.valueAcc,!1)],this.inputs[a][1]=this.valueFn(this.inputs[a][1],r),t},e}();function Cj(e,t,r){return function(a){return new jj(e,t,r,a)}}var Pj=dh(4,[],il([],Cj,function(e,t,r,a){var i=uh(function(m,A){var x=r(A),I=e(Cs(x,m)?m[x]:Zv(t,!1),A);return I&&I["@@transducer/reduced"]?Uf(m):(m[x]=I,m)});return id(i,{},a)}));const Ij=Jo(np("groupBy",Pj(function(e,t){return e.push(t),e},[]))),Qv=e=>e.replace(/\s/g,""),Xv=e=>e.replace(/\W/gi,"_"),Tj=(e,t,r)=>{const a=Qv(e);return a.length>0?Xv(a):((i,m)=>`${Xv(Qv(m.toLowerCase()))}${Xv(Qv(i))}`)(t,r)},Rj=({operationIdNormalizer:e=Tj}={})=>({predicates:t,namespace:r})=>{const a=[],i=[],m=[];return{visitor:{OpenApi3_1Element:{leave(){const A=Ij(x=>Gr(x.operationId),i);Object.entries(A).forEach(([x,I])=>{Array.isArray(I)&&(I.length<=1||I.forEach((L,$)=>{const U=`${x}${$+1}`;L.operationId=new r.elements.String(U)}))}),m.forEach(x=>{if(x.operationId===void 0)return;const I=String(Gr(x.operationId)),L=i.find($=>Gr($.meta.get("originalOperationId"))===I);L!==void 0&&(x.operationId=fo.safe(L.operationId),x.meta.set("originalOperationId",I),x.set("__originalOperationId",I))}),i.length=0,m.length=0}},PathItemElement:{enter(A){const x=jl("path",Gr(A.meta.get("path")));a.push(x)},leave(){a.pop()}},OperationElement:{enter(A){if(A.operationId===void 0)return;const x=String(Gr(A.operationId)),I=ip(a),L=jl("method",Gr(A.meta.get("http-method"))),$=e(x,I,L);x!==$&&(A.operationId=new r.elements.String($),A.set("__originalOperationId",x),A.meta.set("originalOperationId",x),i.push(A))}},LinkElement:{leave(A){t.isLinkElement(A)&&A.operationId!==void 0&&m.push(A)}}}}};var zj=function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=Bc,e.prototype["@@transducer/result"]=Wl,e.prototype["@@transducer/step"]=function(t,r){return tl(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e}();function Nj(e){return function(t){return new zj(e,t)}}var Bj=Jo(il([],Nj,function(e,t){for(var r,a=0,i=t.length,m=[];a<i;)tl(e,r=t[a],m)||(m[m.length]=r),a+=1;return m}));const Dj=Bj,Mj=()=>({predicates:e})=>{const t=(a,i)=>!!e.isParameterElement(a)&&!!e.isParameterElement(i)&&!!e.isStringElement(a.name)&&!!e.isStringElement(a.in)&&!!e.isStringElement(i.name)&&!!e.isStringElement(i.in)&&Gr(a.name)===Gr(i.name)&&Gr(a.in)===Gr(i.in),r=[];return{visitor:{PathItemElement:{enter(a,i,m,A,x){if(x.some(e.isComponentsElement))return;const{parameters:I}=a;e.isArrayElement(I)?r.push([...I.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(a){const i=ip(r);if(!Array.isArray(i)||i.length===0)return;const m=Uw([],["parameters","content"],a),A=Dj(t,[...m,...i]);a.parameters=new Aw(A)}}}}},Lj=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,a,i,m,A){if(!A.some(e.isComponentsElement)){var x;r.security===void 0&&t!==void 0&&(r.security=new jw((x=t)===null||x===void 0?void 0:x.content))}}}}}},Fj=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const a=r.servers===void 0,i=e.isArrayElement(r.servers),m=i&&r.servers.length===0,A=t.elements.Server.refract({url:"/"});a||!i?r.servers=new Wb([A]):i&&m&&r.servers.push(A)},PathItemElement(r,a,i,m,A){if(A.some(e.isComponentsElement)||!A.some(e.isOpenApi3_1Element))return;const x=A.find(e.isOpenApi3_1Element),I=r.servers===void 0,L=e.isArrayElement(r.servers),$=L&&r.servers.length===0;if(e.isOpenApi3_1Element(x)){var U;const V=(U=x.servers)===null||U===void 0?void 0:U.content,K=V??[];I||!L?r.servers=new Pw(K):L&&$&&K.forEach(J=>{r.servers.push(J)})}},OperationElement(r,a,i,m,A){if(A.some(e.isComponentsElement)||!A.some(e.isOpenApi3_1Element))return;const x=[...A].reverse().find(e.isPathItemElement),I=r.servers===void 0,L=e.isArrayElement(r.servers),$=L&&r.servers.length===0;if(e.isPathItemElement(x)){var U;const V=(U=x.servers)===null||U===void 0?void 0:U.content,K=V??[];I||!L?r.servers=new Cw(K):L&&$&&K.forEach(J=>{r.servers.push(J)})}}}}),$j=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,a,i,m){var A,x;if(!m.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((A=t.schema)===null||A===void 0?void 0:A.example)!==void 0||((x=t.schema)===null||x===void 0?void 0:x.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const I=t.examples.map(L=>fo.safe(L.value));return t.schema.examples!==void 0&&t.schema.set("examples",I),void(t.schema.example!==void 0&&t.schema.set("example",I))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[fo(t.example)]),t.schema.example!==void 0&&t.schema.set("example",fo(t.example)))}}}}}),Uj=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,a,i,m){var A,x;if(!m.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((A=t.schema)===null||A===void 0?void 0:A.example)!==void 0||((x=t.schema)===null||x===void 0?void 0:x.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const I=t.examples.map(L=>fo.safe(L.value));return t.schema.examples!==void 0&&t.schema.set("examples",I),void(t.schema.example!==void 0&&t.schema.set("example",I))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[fo(t.example)]),t.schema.example!==void 0&&t.schema.set("example",fo(t.example)))}}}}}),Og=e=>t=>{if(t!=null&&t.$$normalized)return t;if(Og.cache.has(t))return Og.cache.get(t);const r=Mu.refract(t),a=e(r),i=Gr(a);return Og.cache.set(t,i),i};Og.cache=new WeakMap;const Hw=e=>{if(!On(e)||e.hasKey("$$normalized"))return e;const t=[Rj({operationIdNormalizer:(a,i,m)=>Ec({operationId:a},i,m,{v2OperationIdCompatibilityMode:!1})}),Mj(),Lj(),Fj(),$j(),Uj()],r=Jh(e,t,{toolboxCreator:Bw,visitorOptions:{keyMap:uc,nodeTypeGetter:Ws}});return r.set("$$normalized",!0),r},qj=Zt({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Ml("read method in Resolver stamp is not yet implemented.")}}}),Kj=Zt(qj,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>cl(e.uri),async read(){throw new Ml("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Ml("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),{AbortController:Hj,AbortSignal:Vj}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=Hj),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=Vj);const Wj=Kj.compose({props:{name:"http-swagger-client",swaggerHTTPClient:rc,swaggerHTTPClientConfig:{}},init({swaggerHTTPClient:e=this.swaggerHTTPClient}={}){this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:a}=r,i=setTimeout(()=>{r.abort()},this.timeout),m=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",A=this.redirects===0?"error":"follow",x=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:a,userFetch:async(L,$)=>{let U=await fetch(L,$);try{U.headers.delete("Content-Type")}catch{U=new Response(U.body,{...U,headers:new Headers(U.headers)}),U.headers.delete("Content-Type")}return U},credentials:m,redirect:A,follow:x,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(I){throw new Lw(`Error downloading "${e.uri}"`,{cause:I})}finally{clearTimeout(i)}}}}),Vw=Wj,Ww=(e,t=Lk)=>{if(sl(e))try{return t.fromRefract(JSON.parse(e))}catch{}return qf(e)&&Ep("element",e)?t.fromRefract(e):t.toElement(e)},Jw=xg.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const a=Ww(JSON.parse(r));return a.classes.push("result"),t.push(a),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Gw=xg.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Jn.load(e.toString(),{schema:Pc}),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();try{const a=Jn.load(r,{schema:Pc});if(this.allowEmpty&&a===void 0)return t;const i=Ww(a);return i.classes.push("result"),t.push(i),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Yw=xg.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new qv(...Sp.filterByFormat("generic"),...Sp.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const a=e.toString();return JSON.parse(a),this.detectionRegExp.test(a)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const a=JSON.parse(r),i=Mu.refract(a,this.refractorOpts);return i.classes.push("result"),t.push(i),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Zw=xg.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new qv(...Sp.filterByFormat("generic"),...Sp.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const a=e.toString();return Jn.load(a),this.detectionRegExp.test(a)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new cu("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new ul,r=e.toString();try{const a=Jn.load(r,{schema:Pc});if(this.allowEmpty&&a===void 0)return t;const i=Mu.refract(a,this.refractorOpts);return i.classes.push("result"),t.push(i),t}catch(a){throw new cu(`Error parsing "${e.uri}"`,{cause:a})}}}}),Jj=Zt({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Ml("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var Gj=ut(18996);const Yj=class extends Wh{constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},ey=Zt({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new Gj({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!ws(e))throw new Yj("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&an(e.meta.id)&&!e.meta.id.equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new vr.RP(this.generateId());return this.identityMap.set(e,t),t},forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)},generateId(){return this.uuid.randomUUID()}}});ey({length:6});class ty extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(a=>a.has(t))}findItem(t){for(const r of this)for(const a of r)if(ws(a)&&t(a))return a}}const ry=xs[Symbol.for("nodejs.util.promisify.custom")],jg=ey(),oy=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Gr(jg.identify(e))),Bm=Zt({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:a,ancestors:i=new ty}){this.indirections=e,this.namespace=r,this.reference=t,this.options=a,this.ancestors=new ty(...i)},methods:{toBaseURI(e){return _i(this.reference.uri,Ts(Zn(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Mw(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(Im(t,"uri"));const a=await $w(xi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),i=zd({uri:t,value:a,depth:this.reference.depth+1});return r.add(i),i},toAncestorLineage(e){const t=new Set(e.filter(ws));return[new ty(...this.ancestors,t),t]},async ReferenceElement(e,t,r,a,i){const[m,A]=this.toAncestorLineage([...i,r]);if(m.includesCycle(e))return!1;const x=this.toBaseURI(Gr(e.$ref));if(!this.options.resolve.external&&Zn(this.reference.uri)!==x)return!1;const I=await this.toReference(Gr(e.$ref)),L=_i(x,Gr(e.$ref));this.indirections.push(e);const $=zs(L);let U=Hs($,I.value.result);if(ru(U)){const v=Gr(e.meta.get("referenced-element"));ii(U)?(U=Lu.refract(U),U.setMetaProperty("referenced-element",v)):U=this.namespace.getElementClass(v).refract(U)}if(this.indirections.includes(U))throw new Mi("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);A.add(e);const V=Bm({reference:I,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:m});U=await ry(U,V,{keyMap:uc,nodeTypeGetter:Ws}),A.delete(e),this.indirections.pop();const K=v=>{const oe=Ks(v);return oe.setMetaProperty("ref-fields",{$ref:Gr(e.$ref),description:Gr(e.description),summary:Gr(e.summary)}),oe.setMetaProperty("ref-origin",I.uri),oe.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),On(v)&&(e.hasKey("description")&&"description"in v&&(oe.remove("description"),oe.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in v&&(oe.remove("summary"),oe.set("summary",e.get("summary")))),oe};if(m.includes(e)||m.includes(U)){var J;const v=(J=m.findItem(oy(e)))!==null&&J!==void 0?J:K(U);return Ac(r)?r.value=v:Array.isArray(r)&&(r[t]=v),!1}return K(U)},async PathItemElement(e,t,r,a,i){const[m,A]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(m.includesCycle(e))return!1;const x=this.toBaseURI(Gr(e.$ref));if(!this.options.resolve.external&&Zn(this.reference.uri)!==x)return;const I=await this.toReference(Gr(e.$ref)),L=_i(x,Gr(e.$ref));this.indirections.push(e);const $=zs(L);let U=Hs($,I.value.result);if(ru(U)&&(U=Dl.refract(U)),this.indirections.includes(U))throw new Mi("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);A.add(e);const V=Bm({reference:I,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:m});U=await ry(U,V,{keyMap:uc,nodeTypeGetter:Ws}),A.delete(e),this.indirections.pop();const K=v=>{const oe=new Dl([...v.content],fo(v.meta),fo(v.attributes));return e.forEach((H,ge,ce)=>{oe.remove(Gr(ge)),oe.content.push(ce)}),oe.remove("$ref"),oe.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),oe.setMetaProperty("ref-origin",I.uri),oe.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),oe};if(m.includes(e)||m.includes(U)){var J;const v=(J=m.findItem(oy(e)))!==null&&J!==void 0?J:K(U);return Ac(r)?r.value=v:Array.isArray(r)&&(r[t]=v),!1}return K(U)},async LinkElement(e){if(!an(e.operationRef)&&!an(e.operationId))return;if(an(e.operationRef)&&an(e.operationId))throw new Mi("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(an(e.operationRef)){var r;const i=zs(Gr(e.operationRef)),m=this.toBaseURI(Gr(e.operationRef));if(!this.options.resolve.external&&Zn(this.reference.uri)!==m)return;const A=await this.toReference(Gr(e.operationRef));t=Hs(i,A.value.result),ru(t)&&(t=wg.refract(t)),t=Ks(t),t.setMetaProperty("ref-origin",A.uri);const x=Ks(e);return(r=x.operationRef)===null||r===void 0||r.meta.set("operation",t),x}if(an(e.operationId)){var a;const i=Gr(e.operationId),m=await this.toReference(xi(this.reference.uri));if(t=qw(x=>Tw(x)&&ws(x.operationId)&&x.operationId.equals(i),m.value.result),ic(t))throw new Mi(`OperationElement(operationId=${i}) not found.`);const A=Ks(e);return(a=A.operationId)===null||a===void 0||a.meta.set("operation",t),A}},async ExampleElement(e,t,r,a,i){const[m]=this.toAncestorLineage([...i,r]);if(!an(e.externalValue))return;if(m.includesCycle(e))return!1;if(e.hasKey("value")&&an(e.externalValue))throw new Mi("ExampleElement value and externalValue fields are mutually exclusive.");const A=this.toBaseURI(Gr(e.externalValue));if(!this.options.resolve.external&&Zn(this.reference.uri)!==A)return;const x=await this.toReference(Gr(e.externalValue)),I=Ks(x.value.result);I.setMetaProperty("ref-origin",x.uri);const L=Ks(e);return L.value=I,L},async SchemaElement(e,t,r,a,i){const[m,A]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(m.includesCycle(e))return!1;let x=await this.toReference(xi(this.reference.uri)),{uri:I}=x;const L=zm(I,e),$=Zn(L),U=_p({uri:$}),V=Jv(ce=>ce.canRead(U),this.options.resolve.resolvers),K=!V,J=ce=>Zn(this.reference.uri)!==ce;let v;this.indirections.push(e);try{if(V||K)v=Ag(L,qc(x.value.result));else{if(I=this.toBaseURI(Gr(L)),!this.options.resolve.external&&J(I))return;x=await this.toReference(xi(L));const ce=zs(L);v=qc(Hs(ce,x.value.result))}}catch(ce){if(!(K&&ce instanceof Eg))throw ce;if(Sg(Fu(L))){if(I=this.toBaseURI(Gr(L)),!this.options.resolve.external&&J(I))return;x=await this.toReference(xi(L));const ye=Fu(L);v=Rm(ye,qc(x.value.result))}else{if(I=this.toBaseURI(Gr(L)),!this.options.resolve.external&&J(I))return;x=await this.toReference(xi(L));const ye=zs(L);v=qc(Hs(ye,x.value.result))}}if(this.indirections.includes(v))throw new Mi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);A.add(e);const oe=Bm({reference:x,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:m});if(v=await ry(v,oe,{keyMap:uc,nodeTypeGetter:Ws}),A.delete(e),this.indirections.pop(),Fv(v)){const ce=fo(v);return ce.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),ce.setMetaProperty("ref-origin",x.uri),ce.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),ce}const H=ce=>{const ye=new iu([...ce.content],fo(ce.meta),fo(ce.attributes));return e.forEach((Me,je,Oe)=>{ye.remove(Gr(je)),ye.content.push(Oe)}),ye.remove("$ref"),ye.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),ye.setMetaProperty("ref-origin",x.uri),ye.setMetaProperty("ref-referencing-element-id",fo(jg.identify(e))),ye};if(m.includes(e)||m.includes(v)){var ge;const ce=(ge=m.findItem(oy(e)))!==null&&ge!==void 0?ge:H(v);return Ac(r)?r.value=ce:Array.isArray(r)&&(r[t]=ce),!1}return H(v)}}}),ay=Bm,Zj=xs[Symbol.for("nodejs.util.promisify.custom")],Qj=Zt(Jj,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return e.mediaType!=="text/plain"?Sp.includes(e.mediaType):Lv((t=e.parseResult)===null||t===void 0?void 0:t.result)},async dereference(e,t){const r=_d(Pm),a=jl(Tm(),t.dereference.refSet);let i;a.has(e.uri)?i=a.find(Im(e.uri,"uri")):(i=zd({uri:e.uri,value:e.parseResult}),a.add(i));const m=ay({reference:i,namespace:r,options:t}),A=await Zj(a.rootRef.value,m,{keyMap:uc,nodeTypeGetter:Ws});return t.dereference.refSet===null&&a.clean(),A}}}),Qw=Qj,pl=e=>{const t=(r=>r.slice(2))(e);return t.reduce((r,a,i)=>{if(Ac(a)){const m=String(Gr(a.key));r.push(m)}else if($c(t[i-2])){const m=t[i-2].content.indexOf(a);r.push(m)}return r},[])},Dm=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t},Xj=Xl("SchemaRefError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),{wrapError:ny}=jh,iy=xs[Symbol.for("nodejs.util.promisify.custom")],Cg=ey(),sy=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Gr(Cg.identify(e))),Mm=ay.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init({allowMetaPatches:e=this.allowMetaPatches,useCircularStructures:t=this.useCircularStructures,basePath:r=this.basePath}){this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r},methods:{async ReferenceElement(e,t,r,a,i){try{var m;const[$,U]=this.toAncestorLineage([...i,r]);if(Vh(["cycle"],e.$ref)||$.includesCycle(e)||!this.options.resolve.external&&zw(e))return!1;const V=await this.toReference(Gr(e.$ref)),{uri:K}=V,J=_i(K,Gr(e.$ref));this.indirections.push(e);const v=zs(J);let oe=Hs(v,V.value.result);if(ru(oe)){const ce=Gr(e.meta.get("referenced-element"));ii(oe)?(oe=Lu.refract(oe),oe.setMetaProperty("referenced-element",ce)):oe=this.namespace.getElementClass(ce).refract(oe)}if(this.indirections.includes(oe))throw new Mi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&$.includes(oe)){if(cl(K)||Lc(K)){const ce=new Lu({$ref:J},fo(e.meta),fo(e.attributes));return ce.get("$ref").classes.push("cycle"),ce}return!1}U.add(e);const H=Mm({reference:V,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:$,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"$ref"]});oe=await iy(oe,H,{keyMap:uc,nodeTypeGetter:Ws}),U.delete(e),this.indirections.pop();const ge=ce=>{const ye=Ks(ce);if(ye.setMetaProperty("ref-fields",{$ref:Gr(e.$ref),description:Gr(e.description),summary:Gr(e.summary)}),ye.setMetaProperty("ref-origin",V.uri),ye.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),On(ce)&&(e.hasKey("description")&&"description"in ce&&(ye.remove("description"),ye.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in ce&&(ye.remove("summary"),ye.set("summary",e.get("summary")))),this.allowMetaPatches&&On(ye)&&!ye.hasKey("$$ref")){const Me=_i(K,J);ye.set("$$ref",Me)}return ye};if($.includes(e)||$.includes(oe)){var A;const ce=(A=$.findItem(sy(e)))!==null&&A!==void 0?A:ge(oe);return Ac(r)?r.value=ce:Array.isArray(r)&&(r[t]=ce),!1}return ge(oe)}catch($){var x,I,L;const U=Dm($),V=ny(U,{baseDoc:this.reference.uri,$ref:Gr(e.$ref),pointer:zs(Gr(e.$ref)),fullPath:(x=this.basePath)!==null&&x!==void 0?x:[...pl([...i,r,e]),"$ref"]});return void((I=this.options.dereference.dereferenceOpts)===null||I===void 0||(I=I.errors)===null||I===void 0||(L=I.push)===null||L===void 0||L.call(I,V))}},async PathItemElement(e,t,r,a,i){try{var m;const[$,U]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(Vh(["cycle"],e.$ref)||$.includesCycle(e))return!1;if(!this.options.resolve.external&&Rw(e))return;const V=await this.toReference(Gr(e.$ref)),{uri:K}=V,J=_i(K,Gr(e.$ref));this.indirections.push(e);const v=zs(J);let oe=Hs(v,V.value.result);if(ru(oe)&&(oe=Dl.refract(oe)),this.indirections.includes(oe))throw new Mi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&$.includes(oe)){if(cl(K)||Lc(K)){const ce=new Dl({$ref:J},fo(e.meta),fo(e.attributes));return ce.get("$ref").classes.push("cycle"),ce}return!1}U.add(e);const H=Mm({reference:V,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:$,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"$ref"]});oe=await iy(oe,H,{keyMap:uc,nodeTypeGetter:Ws}),U.delete(e),this.indirections.pop();const ge=ce=>{const ye=new Dl([...ce.content],fo(ce.meta),fo(ce.attributes));if(e.forEach((Me,je,Oe)=>{ye.remove(Gr(je)),ye.content.push(Oe)}),ye.remove("$ref"),ye.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),ye.setMetaProperty("ref-origin",V.uri),ye.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),this.allowMetaPatches&&ye.get("$$ref")===void 0){const Me=_i(K,J);ye.set("$$ref",Me)}return ye};if($.includes(e)||$.includes(oe)){var A;const ce=(A=$.findItem(sy(e)))!==null&&A!==void 0?A:ge(oe);return Ac(r)?r.value=ce:Array.isArray(r)&&(r[t]=ce),!1}return ge(oe)}catch($){var x,I,L;const U=Dm($),V=ny(U,{baseDoc:this.reference.uri,$ref:Gr(e.$ref),pointer:zs(Gr(e.$ref)),fullPath:(x=this.basePath)!==null&&x!==void 0?x:[...pl([...i,r,e]),"$ref"]});return void((I=this.options.dereference.dereferenceOpts)===null||I===void 0||(I=I.errors)===null||I===void 0||(L=I.push)===null||L===void 0||L.call(I,V))}},async SchemaElement(e,t,r,a,i){try{var m;const[$,U]=this.toAncestorLineage([...i,r]);if(!an(e.$ref))return;if(Vh(["cycle"],e.$ref)||$.includesCycle(e))return!1;let V=await this.toReference(xi(this.reference.uri)),{uri:K}=V;const J=zm(K,e),v=Zn(J),oe=_p({uri:v}),H=!this.options.resolve.resolvers.some(Oe=>Oe.canRead(oe)),ge=!H,ce=ge&&K!==v;if(!this.options.resolve.external&&ce)return;let ye;this.indirections.push(e);try{if(H||ge)ye=Ag(J,qc(V.value.result));else{V=await this.toReference(xi(J)),K=V.uri;const Oe=zs(J);ye=qc(Hs(Oe,V.value.result))}}catch(Oe){if(!(ge&&Oe instanceof Eg))throw Oe;if(Sg(Fu(J))){V=await this.toReference(xi(J)),K=V.uri;const it=Fu(J);ye=Rm(it,qc(V.value.result))}else{V=await this.toReference(xi(J)),K=V.uri;const it=zs(J);ye=qc(Hs(it,V.value.result))}}if(this.indirections.includes(ye))throw new Mi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lu(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&$.includes(ye)){if(cl(K)||Lc(K)){const Oe=_i(K,J),it=new iu({$ref:Oe},fo(e.meta),fo(e.attributes));return it.get("$ref").classes.push("cycle"),it}return!1}U.add(e);const Me=Mm({reference:V,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:$,basePath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"$ref"]});if(ye=await iy(ye,Me,{keyMap:uc,nodeTypeGetter:Ws}),U.delete(e),this.indirections.pop(),Fv(ye)){const Oe=fo(ye);return Oe.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),Oe.setMetaProperty("ref-origin",V.uri),Oe.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),Oe}const je=Oe=>{const it=new iu([...Oe.content],fo(Oe.meta),fo(Oe.attributes));if(e.forEach((Ze,ct,kt)=>{it.remove(Gr(ct)),it.content.push(kt)}),it.remove("$ref"),it.setMetaProperty("ref-fields",{$ref:Gr(e.$ref)}),it.setMetaProperty("ref-origin",V.uri),it.setMetaProperty("ref-referencing-element-id",fo(Cg.identify(e))),this.allowMetaPatches&&it.get("$$ref")===void 0){const Ze=_i(K,J);it.set("$$ref",Ze)}return it};if($.includes(e)||$.includes(ye)){var A;const Oe=(A=$.findItem(sy(e)))!==null&&A!==void 0?A:je(ye);return Ac(r)?r.value=Oe:Array.isArray(r)&&(r[t]=Oe),!1}return je(ye)}catch($){var x,I,L;const U=Dm($),V=new Xj(`Could not resolve reference: ${U.message}`,{baseDoc:this.reference.uri,$ref:Gr(e.$ref),fullPath:(x=this.basePath)!==null&&x!==void 0?x:[...pl([...i,r,e]),"$ref"]},U);return void((I=this.options.dereference.dereferenceOpts)===null||I===void 0||(I=I.errors)===null||I===void 0||(L=I.push)===null||L===void 0||L.call(I,V))}},async LinkElement(){},async ExampleElement(e,t,r,a,i){try{return await ay.compose.methods.ExampleElement.call(this,e,t,r,a,i)}catch(I){var m,A,x;const L=Dm(I),$=ny(L,{baseDoc:this.reference.uri,externalValue:Gr(e.externalValue),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...pl([...i,r,e]),"externalValue"]});return void((A=this.options.dereference.dereferenceOpts)===null||A===void 0||(A=A.errors)===null||A===void 0||(x=A.push)===null||x===void 0||x.call(A,$))}}}}),eC=Mm,cy=Qw.compose.bind(),tC=cy({init({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,a,i){const m=this.macroOperation===null?null:Gr(this.macroOperation),A=Gr(e);try{const L=this.parameterMacro(m,A);e.set("default",L)}catch(L){var x,I;const $=new Error(L,{cause:L});$.fullPath=pl([...i,r]),(x=this.options.dereference.dereferenceOpts)===null||x===void 0||(x=x.errors)===null||x===void 0||(I=x.push)===null||I===void 0||I.call(x,$)}}}}}),rC=tC,oC=cy({init({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,a,i){e.properties!==void 0&&On(e.properties)&&e.properties.forEach(m=>{if(On(m))try{const I=this.modelPropertyMacro(Gr(m));m.set("default",I)}catch(I){var A,x;const L=new Error(I,{cause:I});L.fullPath=[...pl([...i,r,e]),"properties"],(A=this.options.dereference.dereferenceOpts)===null||A===void 0||(A=A.errors)===null||A===void 0||(x=A.push)===null||x===void 0||x.call(A,L)}})}}}}),aC=oC,Lm=e=>{const t=fo(e.meta),r=fo(e.attributes);return new e.constructor(void 0,t,r)},Fm=(e,t)=>t.clone&&t.isMergeableElement(e)?Nd(Lm(e),e,t):e,nC=(e,t,r)=>e.concat(t)["fantasy-land/map"](a=>Fm(a,r)),iC=(e,t,r)=>{const a=On(e)?Lm(e):Lm(t);return On(e)&&e.forEach((i,m,A)=>{const x=Ks(A);x.value=Fm(i,r),a.content.push(x)}),t.forEach((i,m,A)=>{const x=Gr(m);let I;if(On(e)&&e.hasKey(x)&&r.isMergeableElement(i)){const L=e.get(x);I=Ks(A),I.value=(($,U)=>{if(typeof U.customMerge!="function")return Nd;const V=U.customMerge($,U);return typeof V=="function"?V:Nd})(m,r)(L,i)}else I=Ks(A),I.value=Fm(i,r);a.remove(x),a.content.push(I)}),a};function Nd(e,t,r){var a,i,m;const A={clone:!0,isMergeableElement:L=>On(L)||$c(L),arrayElementMerge:nC,objectElementMerge:iC,customMerge:void 0},x={...A,...r};x.isMergeableElement=(a=x.isMergeableElement)!==null&&a!==void 0?a:A.isMergeableElement,x.arrayElementMerge=(i=x.arrayElementMerge)!==null&&i!==void 0?i:A.arrayElementMerge,x.objectElementMerge=(m=x.objectElementMerge)!==null&&m!==void 0?m:A.objectElementMerge;const I=$c(t);return I===$c(e)?I&&typeof x.arrayElementMerge=="function"?x.arrayElementMerge(e,t,x):x.objectElementMerge(e,t,x):Fm(t,x)}Nd.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new vr.Sb:e.reduce((r,a)=>Nd(r,a,t),Lm(e[0]))};const sC=cy({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,a,i){if(e.allOf===void 0)return;if(!$c(e.allOf)){var m,A;const $=new TypeError("allOf must be an array");return $.fullPath=[...pl([...i,r,e]),"allOf"],void((m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(A=m.push)===null||A===void 0||A.call(m,$))}if(e.allOf.isEmpty)return new iu(e.content.filter($=>Gr($.key)!=="allOf"),fo(e.meta),fo(e.attributes));if(!e.allOf.content.every(Rd)){var x,I;const $=new TypeError("Elements in allOf must be objects");return $.fullPath=[...pl([...i,r,e]),"allOf"],void((x=this.options.dereference.dereferenceOpts)===null||x===void 0||(x=x.errors)===null||x===void 0||(I=x.push)===null||I===void 0||I.call(x,$))}const L=Nd.all([...e.allOf.content,e]);return e.hasKey("$$ref")||L.remove("$$ref"),e.hasKey("example")&&(L.getMember("example").value=e.get("example")),e.hasKey("examples")&&(L.getMember("examples").value=e.get("examples")),L.remove("allOf"),L}}}}),cC=sC,lC=xs[Symbol.for("nodejs.util.promisify.custom")],uC=Qw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:a=this.modelPropertyMacro,mode:i=this.mode,ancestors:m=[]}={}){this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=a,this.mode=i,this.ancestors=[...m]},methods:{async dereference(e,t){var r;const a=[],i=_d(Pm),m=(r=t.dereference.refSet)!==null&&r!==void 0?r:Tm();let A;m.has(e.uri)?A=m.find($=>$.uri===e.uri):(A=zd({uri:e.uri,value:e.parseResult}),m.add(A));const x=eC({reference:A,namespace:i,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(a.push(x),typeof this.parameterMacro=="function"){const $=rC({parameterMacro:this.parameterMacro,options:t});a.push($)}if(typeof this.modelPropertyMacro=="function"){const $=aC({modelPropertyMacro:this.modelPropertyMacro,options:t});a.push($)}if(this.mode!=="strict"){const $=cC({options:t});a.push($)}const I=Uk(a,{nodeTypeGetter:Ws}),L=await lC(m.rootRef.value,I,{keyMap:uc,nodeTypeGetter:Ws});return t.dereference.refSet===null&&m.clean(),L}}}),Xw=uC,ly=async e=>{const{spec:t,timeout:r,redirects:a,requestInterceptor:i,responseInterceptor:m,pathDiscriminator:A=[],allowMetaPatches:x=!1,useCircularStructures:I=!1,skipNormalization:L=!1,parameterMacro:$=null,modelPropertyMacro:U=null,mode:V="non-strict"}=e;try{const{cache:K}=ly,J=cl(Cu())?Cu():co,v=ah(e),oe=_i(J,v);let H;K.has(t)?H=K.get(t):(H=Mu.refract(t),H.classes.push("result"),K.set(t,H));const ge=new ul([H]),ce=p6(A),ye=ce===""?"":`#${ce}`,Me=Hs(ce,H),je=zd({uri:oe,value:ge}),Oe=Tm({refs:[je]});ce!==""&&(Oe.rootRef=null);const it=[new Set([Me])],Ze=[],ct=((Ht,Qt,br)=>n6({element:br}).transclude(Ht,Qt))(Me,await dj(Me,{resolve:{baseURI:`${oe}${ye}`,resolvers:[Vw({timeout:r||1e4,redirects:a||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:m}},strategies:[Aj()]},parse:{mediaType:Sp.latest(),parsers:[Yw({allowEmpty:!1,sourceMap:!1}),Zw({allowEmpty:!1,sourceMap:!1}),Jw({allowEmpty:!1,sourceMap:!1}),Gw({allowEmpty:!1,sourceMap:!1}),gj({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Xw({allowMetaPatches:x,useCircularStructures:I,parameterMacro:$,modelPropertyMacro:U,mode:V,ancestors:it})],refSet:Oe,dereferenceOpts:{errors:Ze}}}),H),kt=L?ct:Hw(ct);return{spec:Gr(kt),errors:Ze}}catch(K){if(K instanceof Fb||K instanceof Gh)return{spec:null,errors:[]};throw K}};ly.cache=new WeakMap;const pC=ly,dC={name:"openapi-3-1-apidom",match:({spec:e})=>Dh(e),normalize:({spec:e})=>Og(Hw)(e),resolve:async e=>pC(e)},hC=dC,gC=()=>null,e1={mapTagOperations:function({spec:e,cb:t=gC,defaultTag:r="default",v2OperationIdCompatibilityMode:a}){const i={},m={};return Va(e,({pathName:A,method:x,operation:I})=>{var L;(I.tags?(L=I.tags,Array.isArray(L)?L:[L]):[r]).forEach($=>{if(typeof $!="string")return;m[$]=m[$]||{};const U=m[$],V=Ec(I,A,x,{v2OperationIdCompatibilityMode:a}),K=t({spec:e,pathName:A,method:x,operation:I,operationId:V});if(i[V])i[V]+=1,U[`${V}${i[V]}`]=K;else if(U[V]!==void 0){const J=i[V]||1;i[V]=J+1,U[`${V}${i[V]}`]=K;const v=U[V];delete U[V],U[`${V}${J}`]=v}else U[V]=K})}),m},makeExecute:function(e={}){return({pathName:t,method:r,operationId:a})=>(i,m={})=>{const{requestInterceptor:A,responseInterceptor:x,userFetch:I}=e;return e.execute({spec:e.spec,requestInterceptor:A,responseInterceptor:x,userFetch:I,pathName:t,method:r,parameters:i,operationId:a,...m})}}},{isHttpUrl:fC}=o,mC=fC;function Kn(e,t={}){if(typeof e=="string"?t.url=e:t=e,!(this instanceof Kn))return new Kn(t);Object.assign(this,t);const r=this.resolve().then(()=>(this.disableInterfaces||Object.assign(this,Kn.makeApisTagOperation(this)),this));return r.client=this,r}Kn.http=rc,Kn.makeHttp=Hp.bind(null,Kn.http),Kn.resolveStrategies={"openapi-3-1-apidom":hC,"openapi-3-0":wd,"openapi-2-0":tu,generic:Bh},Kn.resolve=Of({strategies:[Kn.resolveStrategies["openapi-3-1-apidom"],Kn.resolveStrategies["openapi-3-0"],Kn.resolveStrategies["openapi-2-0"],Kn.resolveStrategies.generic]}),Kn.resolveSubtree=Ta({strategies:[Kn.resolveStrategies["openapi-3-1-apidom"],Kn.resolveStrategies["openapi-3-0"],Kn.resolveStrategies["openapi-2-0"],Kn.resolveStrategies.generic]}),Kn.execute=no,Kn.serializeRes=Gu,Kn.serializeHeaders=Kp,Kn.clearCache=function(){Rs.refs.clearCache()},Kn.makeApisTagOperation=function(e={}){const t=e1.makeExecute(e);return{apis:e1.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},Kn.buildRequest=Ua,Kn.helpers={opId:Ec},Kn.getBaseUrl=on,Kn.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:Vw}},parse:{parsers:{JsonParser:Jw,YamlParser:Gw,OpenApiJson3_1Parser:Yw,OpenApiYaml3_1Parser:Zw}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Xw}}},Kn.prototype={http:rc,execute(e){return this.applyDefaults(),Kn.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return Kn.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then(t=>(this.originalSpec=this.spec,this.spec=t.spec,this.errors=t.errors,this))}},Kn.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(hp(e)&&mC(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(gp(e)){const r=Array.isArray(e.servers)&&e.servers.length===0;e.servers&&!r||(e.servers=[Ro])}};const{helpers:bC}=Kn,Pg=e=>e&&e.toLowerCase()==="true",uy=e=>["operations",e.tag?e.tag:"default",e.operationId?e.operationId:bC.opId(e,e.path,e.method)],vC=e=>CSS.escape((t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"")(e).replace(/%20/g,"_")),yC=e=>(t=>vC(t))(uy(e).join("-"));var $m=ut(16217),Ig={};$m.Z&&$m.Z.locals&&(Ig.locals=$m.Z.locals);var py,dy=0,Ap={};Ap.styleTagTransform=_b(),Ap.setAttributes=Eb(),Ap.insert=function(e,t){t.testId&&e.setAttribute("data-testid",t.testId),(t.target||document.head).appendChild(e)},Ap.domAPI=xb(),Ap.insertStyleElement=Sb(),Ig.use=function(e){return Ap.options=e||{},dy++||(py=wb()($m.Z,Ap)),Ig},Ig.unuse=function(){dy>0&&!--dy&&(py(),py=null)};const t1=Ig;var Um=ut(22796),Tg={};Um.Z&&Um.Z.locals&&(Tg.locals=Um.Z.locals);var hy,gy=0,Op={};Op.styleTagTransform=_b(),Op.setAttributes=Eb(),Op.insert=function(e,t){t.testId&&e.setAttribute("data-testid",t.testId),(t.target||document.head).appendChild(e)},Op.domAPI=xb(),Op.insertStyleElement=Sb(),Tg.use=function(e){return Op.options=e||{},gy++||(hy=wb()(Um.Z,Op)),Tg},Tg.unuse=function(){gy>0&&!--gy&&(hy(),hy=null)};const r1=Tg;class Rg extends HTMLElement{constructor(){super();dl(this,Bd,!0);dl(this,$u,void 0);dl(this,jp,null);dl(this,Uu,!0);dl(this,Cp,!1);dl(this,uu,!1);dl(this,Kc,null);dl(this,Dd,{});dl(this,Md,!1);dl(this,Ld,void 0);this.rootElement=document.createElement("div"),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(this.rootElement)}attributeChangedCallback(r,a,i){switch(r){case"spec":try{this.spec=i}catch(m){console.error('The "spec" attribute value has to be a valid JSON:',m)}break;case"url":this.url=i;break;case"auto-init":this.autoInit=i;break;case"has-sidebar":this.hasSidebar=i;break;case"relative-sidebar":this.relativeSidebar=i;break;case"essentials-only":this.essentialsOnly=i;break;case"application-registration-enabled":this.applicationRegistrationEnabled=i;break;case"current-version":this.currentVersion=i;break;case"theme-overrides":this.themeOverrides=JSON.parse(decodeURIComponent(i)),typeof this.themeOverrides!="object"&&(this.themeOverrides={},console.error('The "themeOverrides" attribute value has to be a valid object'))}}connectedCallback(){_n(this,Bd)&&this.init()}disconnectedCallback(){Ck.unuse(),t1.unuse(),_n(this,uu)&&r1.unuse()}init(){if(_n(this,Kc))return void console.warn("SwaggerUI is already initialized");if(!this.isConnected)return void console.warn("kong-swagger-ui is no longer connected");if(!_n(this,jp)&&!_n(this,$u))return void console.warn("either `spec` or `url` has to be set to initialize SwaggerUI");if((this.relativeSidebar&&!_n(this,Uu)||_n(this,Cp)&&!_n(this,uu))&&console.warn('For correct positioning, you must enable the sidebar with `has-sidebar="true"` and should only display essentials with `essentials-only="true"`'),Ck.use({target:this.shadowRoot,testId:"default-styles"}),t1.use({target:this.shadowRoot,testId:"overrides-styles"}),_n(this,Uu)&&_n(this,uu)&&_n(this,Cp)){const a=document.createElement("style");a.innerHTML=`
|
|
211
211
|
/* relative sidebar styles */
|
|
212
212
|
div#sidebar {
|
|
213
213
|
position: relative;
|
|
214
214
|
top: unset;
|
|
215
215
|
left: unset;
|
|
216
216
|
}
|
|
217
|
-
`,a.setAttribute("data-testid","relative-sidebar-styles"),this.shadowRoot.appendChild(a)}_n(this,uu)&&r1.use({target:this.shadowRoot,testId:"hide-essentials-styles"});const r={hasSidebar:_n(this,Uu),applicationRegistrationEnabled:_n(this,Md),currentVersion:{version:_n(this,Ld)},onViewSpecClick:()=>{this.dispatchEvent(new CustomEvent("clicked-view-spec",{bubbles:!0}))},onRegisterClick:()=>{this.dispatchEvent(new CustomEvent("clicked-register",{bubbles:!0}))},..._n(this,Dd)};hl(this,Kc,Df({url:_n(this,jp),spec:_n(this,$u),domNode:this.rootElement,deepLinking:!0,filter:!0,presets:[Df.presets.apis,Df.SwaggerUIStandalonePreset],plugins:[Df.plugins.DownloadUrl,h3.SwaggerUIKongTheme],layout:"KongLayout",theme:r}))}showOperation(r){if(!_n(this,Kc))return!1;const a=uy(r);return _n(this,Kc).layoutActions.show(a,!0),!0}hideOperation(r){if(!_n(this,Kc))return!1;const a=uy(r);return _n(this,Kc).layoutActions.show(a,!1),!0}scrollToOperation(r){if(!_n(this,Kc))return!1;const a=yC(r);let i=this.shadowRoot.getElementById(a);if(!i){const x=this.shadowRoot.querySelector(`[data-tag='${r.tag}']`);if(!x||(x.click(),i=this.shadowRoot.getElementById(a),!i))return!1}const m=window.matchMedia("(prefers-reduced-motion: no-preference)");let A;m&&m.matches&&(A="smooth"),i.scrollIntoView({behavior:A})}get autoInit(){return _n(this,Bd)}set autoInit(r){hl(this,Bd,Pg(r))}get hasSidebar(){return _n(this,Uu)}set hasSidebar(r){hl(this,Uu,Pg(r))}get relativeSidebar(){return _n(this,Cp)}set relativeSidebar(r){hl(this,Cp,Pg(r))}get essentialsOnly(){return _n(this,uu)}set essentialsOnly(r){hl(this,uu,Pg(r))}get spec(){return _n(this,$u)}set spec(r){if(!r)throw new Error("Spec cannot be empty");let a;typeof r=="string"?a=JSON.parse(r):typeof r=="object"&&(a=r),hl(this,$u,a),_n(this,Kc)&&_n(this,Kc).getSystem().specActions.updateJsonSpec(_n(this,$u))}get url(){return _n(this,jp)}set url(r){hl(this,jp,r)}get themeOverrides(){return _n(this,Dd)}set themeOverrides(r){hl(this,Dd,r)}get applicationRegistrationEnabled(){return _n(this,Md)}set applicationRegistrationEnabled(r){hl(this,Md,Pg(r))}get currentVersion(){return _n(this,Ld)}set currentVersion(r){hl(this,Ld,r)}static get observedAttributes(){return["url","spec","auto-init","has-sidebar","relative-sidebar","essentials-only","application-registration-enabled","current-version","theme-overrides"]}}Bd=new WeakMap,$u=new WeakMap,jp=new WeakMap,Uu=new WeakMap,Cp=new WeakMap,uu=new WeakMap,Kc=new WeakMap,Dd=new WeakMap,Md=new WeakMap,Ld=new WeakMap,Za(Rg,"name","kong-swagger-ui"),customElements.get(Rg.name)?console.warn(`Cannot register ${Rg.name}. Element is already defined, ignoring`):customElements.define(Rg.name,Rg)})()})();const S1=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],_1={key:1,"data-testid":"kong-public-ui-spec-details-error"},A1=St.defineComponent({__name:"SpecDetails",props:{document:{type:Object,default:null},url:{type:String,default:""},hasSidebar:{type:Boolean,default:!1},relativeSidebar:{type:Boolean,default:!1},themeOverrides:{type:Object,default:null},essentialsOnly:{type:Boolean,default:!1},activeOperation:{type:Object,default:null},applicationRegistrationEnabled:{type:Boolean,default:!1},currentVersion:{type:String,default:()=>{}}},setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.ref(null),ut=St.computed(()=>!!(yo.document||yo.url)),b=St.ref(!1),j=()=>{if(!cn.value)return;const o={...yo.activeOperation};if(o&&o.tag){const u=decodeURIComponent(o.tag.trim().replaceAll(/\s/g,"%20"));o.tag=u}cn.value.showOperation(o),cn.value.scrollToOperation(o),b.value=!0};return St.onMounted(()=>{yo.activeOperation&&j()}),St.watch(()=>yo.activeOperation,()=>{yo.activeOperation&&j()}),(o,u)=>(St.openBlock(),St.createElementBlock("div",{class:St.normalizeClass(["kong-public-ui-spec-details",{"active-op-focused":b.value}])},[ut.value?(St.openBlock(),St.createElementBlock("kong-swagger-ui",{key:0,ref_key:"swaggerRef",ref:cn,"application-registration-enabled":ir.applicationRegistrationEnabled,"current-version":ir.currentVersion,"data-testid":"kong-public-ui-spec-details-swagger","essentials-only":ir.essentialsOnly,"has-sidebar":ir.hasSidebar,"relative-sidebar":ir.relativeSidebar,spec:ir.document,"theme-overrides":encodeURIComponent(JSON.stringify(ir.themeOverrides)),url:ir.url},null,8,S1)):(St.openBlock(),St.createElementBlock("div",_1,St.toDisplayString(St.unref(Lo).t("specDetails.error")),1))],2))}}),Ud=(ir,yo)=>{const Lo=ir.__vccOpts||ir;for(const[cn,ut]of yo)Lo[cn]=ut;return Lo},_y=Ud(A1,[["__scopeId","data-v-71bf6e29"]]);let qg;const O1=new Uint8Array(16);function j1(){if(!qg&&(qg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qg(O1)}const ds=[];for(let ir=0;ir<256;++ir)ds.push((ir+256).toString(16).slice(1));function C1(ir,yo=0){return ds[ir[yo+0]]+ds[ir[yo+1]]+ds[ir[yo+2]]+ds[ir[yo+3]]+"-"+ds[ir[yo+4]]+ds[ir[yo+5]]+"-"+ds[ir[yo+6]]+ds[ir[yo+7]]+"-"+ds[ir[yo+8]]+ds[ir[yo+9]]+"-"+ds[ir[yo+10]]+ds[ir[yo+11]]+ds[ir[yo+12]]+ds[ir[yo+13]]+ds[ir[yo+14]]+ds[ir[yo+15]]}let Ay,B0,D0=0,M0=0;function P1(ir,yo,Lo){let cn=yo&&Lo||0;const ut=yo||new Array(16);ir=ir||{};let b=ir.node||Ay,j=ir.clockseq!==void 0?ir.clockseq:B0;if(b==null||j==null){const O=ir.random||(ir.rng||j1)();b==null&&(b=Ay=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),j==null&&(j=B0=(O[6]<<8|O[7])&16383)}let o=ir.msecs!==void 0?ir.msecs:Date.now(),u=ir.nsecs!==void 0?ir.nsecs:M0+1;const y=o-D0+(u-M0)/1e4;if(y<0&&ir.clockseq===void 0&&(j=j+1&16383),(y<0||o>D0)&&ir.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");D0=o,M0=u,B0=j,o+=122192928e5;const S=((o&268435455)*1e4+u)%4294967296;ut[cn++]=S>>>24&255,ut[cn++]=S>>>16&255,ut[cn++]=S>>>8&255,ut[cn++]=S&255;const w=o/4294967296*1e4&268435455;ut[cn++]=w>>>8&255,ut[cn++]=w&255,ut[cn++]=w>>>24&15|16,ut[cn++]=w>>>16&255,ut[cn++]=j>>>8|128,ut[cn++]=j&255;for(let O=0;O<6;++O)ut[cn+O]=b[O];return yo||C1(ut)}var Kg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I1(ir){return ir&&ir.__esModule&&Object.prototype.hasOwnProperty.call(ir,"default")?ir.default:ir}var Hg={exports:{}};Hg.exports,function(ir,yo){var Lo=200,cn="__lodash_hash_undefined__",ut=9007199254740991,b="[object Arguments]",j="[object Array]",o="[object Boolean]",u="[object Date]",y="[object Error]",S="[object Function]",w="[object GeneratorFunction]",O="[object Map]",T="[object Number]",p="[object Object]",n="[object Promise]",l="[object RegExp]",d="[object Set]",s="[object String]",g="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",f="[object DataView]",_="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,Z=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,Q={};Q[b]=Q[j]=Q[E]=Q[f]=Q[o]=Q[u]=Q[_]=Q[P]=Q[R]=Q[D]=Q[F]=Q[O]=Q[T]=Q[p]=Q[l]=Q[d]=Q[s]=Q[g]=Q[M]=Q[N]=Q[q]=Q[W]=!0,Q[y]=Q[S]=Q[k]=!1;var fe=typeof Kg=="object"&&Kg&&Kg.Object===Object&&Kg,ne=typeof self=="object"&&self&&self.Object===Object&&self,ae=fe||ne||Function("return this")(),me=yo&&!yo.nodeType&&yo,Pe=me&&!0&&ir&&!ir.nodeType&&ir,Fe=Pe&&Pe.exports===me;function ze(We,or){return We.set(or[0],or[1]),We}function $e(We,or){return We.add(or),We}function Je(We,or){for(var Rr=-1,ko=We?We.length:0;++Rr<ko&&or(We[Rr],Rr,We)!==!1;);return We}function Te(We,or){for(var Rr=-1,ko=or.length,wn=We.length;++Rr<ko;)We[wn+Rr]=or[Rr];return We}function Ae(We,or,Rr,ko){var wn=-1,Vn=We?We.length:0;for(ko&&Vn&&(Rr=We[++wn]);++wn<Vn;)Rr=or(Rr,We[wn],wn,We);return Rr}function lt(We,or){for(var Rr=-1,ko=Array(We);++Rr<We;)ko[Rr]=or(Rr);return ko}function dt(We,or){return We==null?void 0:We[or]}function Pt(We){var or=!1;if(We!=null&&typeof We.toString!="function")try{or=!!(We+"")}catch{}return or}function Vt(We){var or=-1,Rr=Array(We.size);return We.forEach(function(ko,wn){Rr[++or]=[wn,ko]}),Rr}function yr(We,or){return function(Rr){return We(or(Rr))}}function Jt(We){var or=-1,Rr=Array(We.size);return We.forEach(function(ko){Rr[++or]=ko}),Rr}var Ar=Array.prototype,ur=Function.prototype,Or=Object.prototype,Br=ae["__core-js_shared__"],kr=function(){var We=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return We?"Symbol(src)_1."+We:""}(),Bt=ur.toString,De=Or.hasOwnProperty,et=Or.toString,At=RegExp("^"+Bt.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=Fe?ae.Buffer:void 0,Ye=ae.Symbol,jt=ae.Uint8Array,Dt=yr(Object.getPrototypeOf,Object),xr=Object.create,X=Or.propertyIsEnumerable,pe=Ar.splice,ke=Object.getOwnPropertySymbols,Ve=Ke?Ke.isBuffer:void 0,ot=yr(Object.keys,Object),pt=Bn(ae,"DataView"),Ge=Bn(ae,"Map"),Ot=Bn(ae,"Promise"),hr=Bn(ae,"Set"),_t=Bn(ae,"WeakMap"),Ie=Bn(Object,"create"),He=Xn(pt),Qe=Xn(Ge),vt=Xn(Ot),_r=Xn(hr),Sr=Xn(_t),Yr=Ye?Ye.prototype:void 0,Xr=Yr?Yr.valueOf:void 0;function bo(We){var or=-1,Rr=We?We.length:0;for(this.clear();++or<Rr;){var ko=We[or];this.set(ko[0],ko[1])}}function zt(){this.__data__=Ie?Ie(null):{}}function Er(We){return this.has(We)&&delete this.__data__[We]}function Jr(We){var or=this.__data__;if(Ie){var Rr=or[We];return Rr===cn?void 0:Rr}return De.call(or,We)?or[We]:void 0}function go(We){var or=this.__data__;return Ie?or[We]!==void 0:De.call(or,We)}function Po(We,or){var Rr=this.__data__;return Rr[We]=Ie&&or===void 0?cn:or,this}bo.prototype.clear=zt,bo.prototype.delete=Er,bo.prototype.get=Jr,bo.prototype.has=go,bo.prototype.set=Po;function so(We){var or=-1,Rr=We?We.length:0;for(this.clear();++or<Rr;){var ko=We[or];this.set(ko[0],ko[1])}}function Io(){this.__data__=[]}function Oo(We){var or=this.__data__,Rr=mt(or,We);if(Rr<0)return!1;var ko=or.length-1;return Rr==ko?or.pop():pe.call(or,Rr,1),!0}function Do(We){var or=this.__data__,Rr=mt(or,We);return Rr<0?void 0:or[Rr][1]}function _a(We){return mt(this.__data__,We)>-1}function bn(We,or){var Rr=this.__data__,ko=mt(Rr,We);return ko<0?Rr.push([We,or]):Rr[ko][1]=or,this}so.prototype.clear=Io,so.prototype.delete=Oo,so.prototype.get=Do,so.prototype.has=_a,so.prototype.set=bn;function aa(We){var or=-1,Rr=We?We.length:0;for(this.clear();++or<Rr;){var ko=We[or];this.set(ko[0],ko[1])}}function Wo(){this.__data__={hash:new bo,map:new(Ge||so),string:new bo}}function Pa(We){return ki(this,We).delete(We)}function La(We){return ki(this,We).get(We)}function tr(We){return ki(this,We).has(We)}function pr(We,or){return ki(this,We).set(We,or),this}aa.prototype.clear=Wo,aa.prototype.delete=Pa,aa.prototype.get=La,aa.prototype.has=tr,aa.prototype.set=pr;function ar(We){this.__data__=new so(We)}function Qr(){this.__data__=new so}function sr(We){return this.__data__.delete(We)}function ha(We){return this.__data__.get(We)}function ao(We){return this.__data__.has(We)}function st(We,or){var Rr=this.__data__;if(Rr instanceof so){var ko=Rr.__data__;if(!Ge||ko.length<Lo-1)return ko.push([We,or]),this;Rr=this.__data__=new aa(ko)}return Rr.set(We,or),this}ar.prototype.clear=Qr,ar.prototype.delete=sr,ar.prototype.get=ha,ar.prototype.has=ao,ar.prototype.set=st;function Ee(We,or){var Rr=ei(We)||Fi(We)?lt(We.length,String):[],ko=Rr.length,wn=!!ko;for(var Vn in We)(or||De.call(We,Vn))&&!(wn&&(Vn=="length"||Li(Vn,ko)))&&Rr.push(Vn);return Rr}function Ue(We,or,Rr){var ko=We[or];(!(De.call(We,or)&&Ki(ko,Rr))||Rr===void 0&&!(or in We))&&(We[or]=Rr)}function mt(We,or){for(var Rr=We.length;Rr--;)if(Ki(We[Rr][0],or))return Rr;return-1}function Ft(We,or){return We&&un(or,vo(or),We)}function wr(We,or,Rr,ko,wn,Vn,Wn){var ti;if(ko&&(ti=Vn?ko(We,wn,Vn,Wn):ko(We)),ti!==void 0)return ti;if(!xt(We))return We;var wi=ei(We);if(wi){if(ti=Ni(We),!or)return tn(We,ti)}else{var gi=hi(We),as=gi==S||gi==w;if(ji(We))return Ro(We,or);if(gi==p||gi==b||as&&!Vn){if(Pt(We))return Vn?We:{};if(ti=Un(as?{}:We),!or)return fa(We,Ft(ti,We))}else{if(!Q[gi])return Vn?We:{};ti=za(We,gi,wr,or)}}Wn||(Wn=new ar);var hc=Wn.get(We);if(hc)return hc;if(Wn.set(We,ti),!wi)var ns=Rr?Qn(We):vo(We);return Je(ns||We,function(rn,Xs){ns&&(Xs=rn,rn=We[Xs]),Ue(ti,Xs,wr(rn,or,Rr,ko,Xs,We,Wn))}),ti}function ht(We){return xt(We)?xr(We):{}}function Lt(We,or,Rr){var ko=or(We);return ei(We)?ko:Te(ko,Rr(We))}function Tr(We){return et.call(We)}function gr(We){if(!xt(We)||fn(We))return!1;var or=dn(We)||Pt(We)?At:Z;return or.test(Xn(We))}function co(We){if(!ui(We))return ot(We);var or=[];for(var Rr in Object(We))De.call(We,Rr)&&Rr!="constructor"&&or.push(Rr);return or}function Ro(We,or){if(or)return We.slice();var Rr=new We.constructor(We.length);return We.copy(Rr),Rr}function ga(We){var or=new We.constructor(We.byteLength);return new jt(or).set(new jt(We)),or}function ka(We,or){var Rr=or?ga(We.buffer):We.buffer;return new We.constructor(Rr,We.byteOffset,We.byteLength)}function Qa(We,or,Rr){var ko=or?Rr(Vt(We),!0):Vt(We);return Ae(ko,ze,new We.constructor)}function gn(We){var or=new We.constructor(We.source,re.exec(We));return or.lastIndex=We.lastIndex,or}function Ca(We,or,Rr){var ko=or?Rr(Jt(We),!0):Jt(We);return Ae(ko,$e,new We.constructor)}function Ia(We){return Xr?Object(Xr.call(We)):{}}function Ka(We,or){var Rr=or?ga(We.buffer):We.buffer;return new We.constructor(Rr,We.byteOffset,We.length)}function tn(We,or){var Rr=-1,ko=We.length;for(or||(or=Array(ko));++Rr<ko;)or[Rr]=We[Rr];return or}function un(We,or,Rr,ko){Rr||(Rr={});for(var wn=-1,Vn=or.length;++wn<Vn;){var Wn=or[wn],ti=ko?ko(Rr[Wn],We[Wn],Wn,Rr,We):void 0;Ue(Rr,Wn,ti===void 0?We[Wn]:ti)}return Rr}function fa(We,or){return un(We,ma(We),or)}function Qn(We){return Lt(We,vo,ma)}function ki(We,or){var Rr=We.__data__;return hs(or)?Rr[typeof or=="string"?"string":"hash"]:Rr.map}function Bn(We,or){var Rr=dt(We,or);return gr(Rr)?Rr:void 0}var ma=ke?yr(ke,Object):zo,hi=Tr;(pt&&hi(new pt(new ArrayBuffer(1)))!=f||Ge&&hi(new Ge)!=O||Ot&&hi(Ot.resolve())!=n||hr&&hi(new hr)!=d||_t&&hi(new _t)!=k)&&(hi=function(We){var or=et.call(We),Rr=or==p?We.constructor:void 0,ko=Rr?Xn(Rr):void 0;if(ko)switch(ko){case He:return f;case Qe:return O;case vt:return n;case _r:return d;case Sr:return k}return or});function Ni(We){var or=We.length,Rr=We.constructor(or);return or&&typeof We[0]=="string"&&De.call(We,"index")&&(Rr.index=We.index,Rr.input=We.input),Rr}function Un(We){return typeof We.constructor=="function"&&!ui(We)?ht(Dt(We)):{}}function za(We,or,Rr,ko){var wn=We.constructor;switch(or){case E:return ga(We);case o:case u:return new wn(+We);case f:return ka(We,ko);case _:case P:case R:case D:case F:case M:case N:case q:case W:return Ka(We,ko);case O:return Qa(We,ko,Rr);case T:case s:return new wn(We);case l:return gn(We);case d:return Ca(We,ko,Rr);case g:return Ia(We)}}function Li(We,or){return or=or??ut,!!or&&(typeof We=="number"||le.test(We))&&We>-1&&We%1==0&&We<or}function hs(We){var or=typeof We;return or=="string"||or=="number"||or=="symbol"||or=="boolean"?We!=="__proto__":We===null}function fn(We){return!!kr&&kr in We}function ui(We){var or=We&&We.constructor,Rr=typeof or=="function"&&or.prototype||Or;return We===Rr}function Xn(We){if(We!=null){try{return Bt.call(We)}catch{}try{return We+""}catch{}}return""}function os(We){return wr(We,!0,!0)}function Ki(We,or){return We===or||We!==We&&or!==or}function Fi(We){return $i(We)&&De.call(We,"callee")&&(!X.call(We,"callee")||et.call(We)==b)}var ei=Array.isArray;function Ha(We){return We!=null&&gs(We.length)&&!dn(We)}function $i(We){return oo(We)&&Ha(We)}var ji=Ve||kn;function dn(We){var or=xt(We)?et.call(We):"";return or==S||or==w}function gs(We){return typeof We=="number"&&We>-1&&We%1==0&&We<=ut}function xt(We){var or=typeof We;return!!We&&(or=="object"||or=="function")}function oo(We){return!!We&&typeof We=="object"}function vo(We){return Ha(We)?Ee(We):co(We)}function zo(){return[]}function kn(){return!1}ir.exports=os}(Hg,Hg.exports);var T1=Hg.exports;const L0=I1(T1),Rp="default",R1="#3a3f51",z1="#afb7c5",Oy="20px",zp="24px",F0=(ir,yo)=>{const Lo=ir.__vccOpts||ir;for(const[cn,ut]of yo)Lo[cn]=ut;return Lo},N1=ir=>(St.pushScopeId("data-v-98c34919"),ir=ir(),St.popScopeId(),ir),B1=["aria-hidden"],D1={key:0,"data-testid":"kui-icon-svg-title"},M1=N1(()=>St.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),L1=St.defineComponent({__name:"ChevronDownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:zp,validator:ir=>{if(typeof ir=="number"&&ir>0)return!0;if(typeof ir=="string"){const yo=String(ir).replace(/px/gi,""),Lo=Number(yo);if(Lo&&!isNaN(Lo)&&Number.isInteger(Lo)&&Lo>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(ir){const yo=ir,Lo=St.computed(()=>{if(typeof yo.size=="number"&&yo.size>0)return`${yo.size}px`;if(typeof yo.size=="string"){const ut=String(yo.size).replace(/px/gi,""),b=Number(ut);if(b&&!isNaN(b)&&Number.isInteger(b)&&b>0)return`${b}px`}return zp}),cn=St.computed(()=>({boxSizing:"border-box",color:yo.color,display:yo.display,height:Lo.value,lineHeight:"0",width:Lo.value}));return(ut,b)=>(St.openBlock(),St.createBlock(St.resolveDynamicComponent(ir.as),{"aria-hidden":ir.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:St.normalizeStyle(cn.value)},{default:St.withCtx(()=>[(St.openBlock(),St.createElementBlock("svg",{"aria-hidden":ir.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-down-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[ir.title?(St.openBlock(),St.createElementBlock("title",D1,St.toDisplayString(ir.title),1)):St.createCommentVNode("",!0),M1],8,B1))]),_:1},8,["aria-hidden","style"]))}}),F1=F0(L1,[["__scopeId","data-v-98c34919"]]),$1=ir=>(St.pushScopeId("data-v-35654a79"),ir=ir(),St.popScopeId(),ir),U1=["aria-hidden"],q1={key:0,"data-testid":"kui-icon-svg-title"},K1=$1(()=>St.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"currentColor"},null,-1)),H1=St.defineComponent({__name:"ChevronRightIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:zp,validator:ir=>{if(typeof ir=="number"&&ir>0)return!0;if(typeof ir=="string"){const yo=String(ir).replace(/px/gi,""),Lo=Number(yo);if(Lo&&!isNaN(Lo)&&Number.isInteger(Lo)&&Lo>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(ir){const yo=ir,Lo=St.computed(()=>{if(typeof yo.size=="number"&&yo.size>0)return`${yo.size}px`;if(typeof yo.size=="string"){const ut=String(yo.size).replace(/px/gi,""),b=Number(ut);if(b&&!isNaN(b)&&Number.isInteger(b)&&b>0)return`${b}px`}return zp}),cn=St.computed(()=>({boxSizing:"border-box",color:yo.color,display:yo.display,height:Lo.value,lineHeight:"0",width:Lo.value}));return(ut,b)=>(St.openBlock(),St.createBlock(St.resolveDynamicComponent(ir.as),{"aria-hidden":ir.decorative?"true":void 0,class:"kui-icon chevron-right-icon","data-testid":"kui-icon-wrapper-chevron-right-icon",style:St.normalizeStyle(cn.value)},{default:St.withCtx(()=>[(St.openBlock(),St.createElementBlock("svg",{"aria-hidden":ir.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-right-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[ir.title?(St.openBlock(),St.createElementBlock("title",q1,St.toDisplayString(ir.title),1)):St.createCommentVNode("",!0),K1],8,U1))]),_:1},8,["aria-hidden","style"]))}}),V1=F0(H1,[["__scopeId","data-v-35654a79"]]),W1=ir=>(St.pushScopeId("data-v-7cf6d1fd"),ir=ir(),St.popScopeId(),ir),J1=["aria-hidden"],G1={key:0,"data-testid":"kui-icon-svg-title"},Y1=W1(()=>St.createElementVNode("path",{d:"M10 18V16H14V18H10ZM6 13V11H18V13H6ZM3 8V6H21V8H3Z",fill:"currentColor"},null,-1)),Z1=St.defineComponent({__name:"FilterIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:zp,validator:ir=>{if(typeof ir=="number"&&ir>0)return!0;if(typeof ir=="string"){const yo=String(ir).replace(/px/gi,""),Lo=Number(yo);if(Lo&&!isNaN(Lo)&&Number.isInteger(Lo)&&Lo>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(ir){const yo=ir,Lo=St.computed(()=>{if(typeof yo.size=="number"&&yo.size>0)return`${yo.size}px`;if(typeof yo.size=="string"){const ut=String(yo.size).replace(/px/gi,""),b=Number(ut);if(b&&!isNaN(b)&&Number.isInteger(b)&&b>0)return`${b}px`}return zp}),cn=St.computed(()=>({boxSizing:"border-box",color:yo.color,display:yo.display,height:Lo.value,lineHeight:"0",width:Lo.value}));return(ut,b)=>(St.openBlock(),St.createBlock(St.resolveDynamicComponent(ir.as),{"aria-hidden":ir.decorative?"true":void 0,class:"kui-icon filter-icon","data-testid":"kui-icon-wrapper-filter-icon",style:St.normalizeStyle(cn.value)},{default:St.withCtx(()=>[(St.openBlock(),St.createElementBlock("svg",{"aria-hidden":ir.decorative?"true":void 0,"data-testid":"kui-icon-svg-filter-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[ir.title?(St.openBlock(),St.createElementBlock("title",G1,St.toDisplayString(ir.title),1)):St.createCommentVNode("",!0),Y1],8,J1))]),_:1},8,["aria-hidden","style"]))}}),Q1=F0(Z1,[["__scopeId","data-v-7cf6d1fd"]]),X1=["aria-controls","aria-expanded","aria-label"],ex={"aria-hidden":"true",class:"icon-wrapper"},tx={"aria-hidden":"true",class:"label truncated"},rx=["title"],jy=Ud(St.defineComponent({__name:"OperationsListSectionHeader",props:{isCollapsed:{type:Boolean,required:!0},name:{type:String,required:!0},description:{type:String,default:void 0},contentElementId:{type:String,required:!0}},emits:["toggle"],setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.computed(()=>yo.isCollapsed?Lo.t("specOperationsList.section.expandAriaLabel",{section:`"${yo.name}"`}):Lo.t("specOperationsList.section.collapseAriaLabel",{section:`"${yo.name}"`}));return(ut,b)=>(St.openBlock(),St.createElementBlock("button",{"aria-controls":ir.contentElementId,"aria-expanded":ir.isCollapsed?"false":"true","aria-label":cn.value,class:St.normalizeClass(["header",{"header--collapsed":ir.isCollapsed}]),type:"button",onClick:b[0]||(b[0]=j=>ut.$emit("toggle"))},[St.createElementVNode("div",ex,[ir.isCollapsed?(St.openBlock(),St.createBlock(St.unref(V1),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${St.unref(z1)})`,size:St.unref(Oy)},null,8,["color","size"])):(St.openBlock(),St.createBlock(St.unref(F1),{key:1,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-expanded, ${St.unref(R1)})`,icon:"chevronDown",size:St.unref(Oy)},null,8,["color","size"]))]),St.createElementVNode("h1",tx,St.toDisplayString(ir.name),1),St.createElementVNode("div",{class:"description truncated",title:ir.description},St.toDisplayString(ir.description),9,rx)],10,X1))}}),[["__scopeId","data-v-98e20a36"]]),ox=["data-testid"],ax=["title"],nx={class:"details"},ix=["aria-label","title"],Cy=Ud(St.defineComponent({__name:"OperationsListItem",props:{item:{type:Object,required:!0,validator:ir=>ir.method!==void 0&&ir.summary!==void 0&&ir.path!==void 0},isSelected:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1}},emits:["click"],setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.computed(()=>{var b,j;return`spec-operations-list-item-${(b=yo.item.method)==null?void 0:b.toLowerCase()}${(j=yo.item.path)==null?void 0:j.replaceAll("/","-")}-${yo.item.tag||"-"}`}),ut=St.computed(()=>yo.item.method||"");return(b,j)=>{const o=St.resolveComponent("KBadge");return St.openBlock(),St.createElementBlock("button",{class:St.normalizeClass(["spec-operations-list-item",{"item--selected":ir.isSelected,[`item--method-${ir.item.method}`]:!0,disabled:ir.disableSelection}]),"data-testid":cn.value,type:"button",onClick:j[0]||(j[0]=u=>b.$emit("click",ir.item))},[ir.item.summary?(St.openBlock(),St.createElementBlock("h2",{key:0,class:"summary truncated",title:ir.item.summary},St.toDisplayString(ir.item.summary),9,ax)):St.createCommentVNode("",!0),St.createElementVNode("div",nx,[St.createVNode(o,{appearance:"custom","aria-label":St.unref(Lo).t("specOperationsList.item.methodAriaLabel",{method:ut.value.toUpperCase()}),"background-color":"var(--kong-ui-spec-renderer-operations-list-item-method-background)",class:"method-badge",color:"var(--kong-ui-spec-renderer-operations-list-item-method-color)",tabindex:"-1"},{default:St.withCtx(()=>[St.createTextVNode(St.toDisplayString(ut.value.toUpperCase()),1)]),_:1},8,["aria-label"]),St.createElementVNode("span",{"aria-label":St.unref(Lo).t("specOperationsList.item.pathAriaLabel",{path:ir.item.path}),class:"path truncated",title:ir.item.path},St.toDisplayString(ir.item.path),9,ix)])],10,ox)}}}),[["__scopeId","data-v-5610ea54"]]),sx=["aria-label"],cx={key:0},lx={key:0,class:"filter-wrapper"},ux={key:1},px=["data-testid"],dx=["id"],hx={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},gx=["id"],fx={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},mx={class:"center"},bx={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:vx,hasRequiredProps:Py}=Ku.useUtilities(),Iy=Ud(St.defineComponent({__name:"SpecOperationsList",props:{operations:{type:Array,required:!0,validator:ir=>!ir.length||Py(ir,["method","path"])},tags:{type:Array,default:()=>[],validator:ir=>!ir.length||Py(ir,["name"])},isFilterable:{type:Boolean,default:!0},filterFunction:{type:Function,default:({items:ir,query:yo})=>(yo=yo.toLowerCase(),ir.filter(Lo=>Lo.tag&&Lo.tag.toLowerCase().includes(yo))),validator:ir=>!!ir&&typeof ir=="function"},deselect:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1},width:{type:String,default:"210"}},emits:["selected"],setup(ir,{emit:yo}){const Lo=ir,cn=yo,{i18n:ut}=Ku.useI18n(),b=St.computed(()=>P1()),j=St.ref(""),o=St.ref([]),u=St.ref(),y=St.ref([]),S=()=>{const k=o.value;if(!Lo.isFilterable){y.value=k;return}if(!Lo.filterFunction||typeof Lo.filterFunction!="function")throw new Error(`filterFunction property must be a function, got ${typeof Lo.filterFunction}`);y.value=Lo.filterFunction({items:k,query:j.value})},w=St.computed(()=>vx(Lo.width)),O=St.computed(()=>{const k=[];return y.value.forEach(E=>{E.tag&&!k.includes(E.tag)&&k.push(E.tag)}),k}),T=St.computed(()=>o.value.filter(k=>!k.tag)),p=k=>{if(!Lo.tags||!Array.isArray(Lo.tags))return"";const E=Lo.tags.find(f=>f.name===k);return(E==null?void 0:E.description)||""},n=k=>y.value.filter(E=>E.tag===k),l=k=>{const E=u.value;return!!E&&E.path===k.path&&E.method===k.method&&E.operationId===k.operationId&&E.tag===k.tag},d=k=>`${b.value}-section-${k.toLowerCase()}`,s=k=>{Lo.disableSelection||(u.value=k,cn("selected",k))},g=()=>{o.value=[],Lo.operations&&(Lo.operations.forEach(k=>{var f;const E=L0(k);(f=k.tags)!=null&&f.length?k.tags.forEach(_=>{delete E.tags,E.tag=_,o.value.push(L0(E))}):(delete E.tags,E.tag=null,o.value.push(L0(E)))}),S())};return St.watch(()=>Lo.deselect,()=>{Lo.deselect&&(u.value=void 0)}),St.watch(()=>Lo.operations,()=>g()),St.watch(j,()=>S()),St.onMounted(()=>{g()}),(k,E)=>{const f=St.resolveComponent("KInput"),_=St.resolveComponent("KCollapse");return St.openBlock(),St.createElementBlock("section",{"aria-label":St.unref(ut).t("specOperationsList.ariaLabel"),class:"kong-ui-public-spec-operations-list","data-testid":"kong-ui-public-spec-operations-list",role:"navigation",style:St.normalizeStyle({width:w.value})},[ir.operations?(St.openBlock(),St.createElementBlock("div",cx,[ir.isFilterable?(St.openBlock(),St.createElementBlock("div",lx,[St.createVNode(f,{modelValue:j.value,"onUpdate:modelValue":E[0]||(E[0]=P=>j.value=P),class:"filter-input","data-testid":"spec-operations-list-filter",placeholder:St.unref(ut).t("specOperationsList.filterPlaceholder")},{before:St.withCtx(()=>[St.createVNode(St.unref(Q1),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):St.createCommentVNode("",!0),y.value.length?(St.openBlock(),St.createElementBlock("div",ux,[(St.openBlock(!0),St.createElementBlock(St.Fragment,null,St.renderList(O.value,P=>(St.openBlock(),St.createElementBlock("div",{key:P,class:"section-wrapper","data-testid":`spec-operations-list-section-${P.toLowerCase().replaceAll(" ","-")}`},[St.createVNode(_,{"model-value":!1,"trigger-alignment":"leading"},{trigger:St.withCtx(({isCollapsed:R,toggle:D})=>[St.createVNode(jy,{"content-element-id":d(P),"data-testid":`spec-operations-list-section-${P.toLowerCase().replaceAll(" ","-")}-collapse-trigger`,description:p(P),"is-collapsed":R,name:P,onToggle:D},null,8,["content-element-id","data-testid","description","is-collapsed","name","onToggle"])]),default:St.withCtx(()=>[St.createElementVNode("div",{id:d(P)},[(St.openBlock(!0),St.createElementBlock(St.Fragment,null,St.renderList(n(P),R=>St.renderSlot(k.$slots,"item",{key:`${R.path}-${R.method}`,item:R,section:P,select:()=>s(R)},()=>[St.createVNode(Cy,{"disable-selection":ir.disableSelection,"is-selected":l(R),item:R,section:P,onClick:s},null,8,["disable-selection","is-selected","item","section"])],!0)),128))],8,dx)]),_:2},1024)],8,px))),128)),!ir.isFilterable||!j.value?(St.openBlock(),St.createElementBlock("div",hx,[St.createVNode(_,{"model-value":!1,"trigger-alignment":"leading"},{trigger:St.withCtx(({isCollapsed:P,toggle:R})=>[St.createVNode(jy,{"content-element-id":d(St.unref(Rp)),"data-testid":"spec-operations-list-section-untagged-collapse-trigger",description:p(St.unref(Rp)),"is-collapsed":P,name:St.unref(Rp),onToggle:R},null,8,["content-element-id","description","is-collapsed","name","onToggle"])]),default:St.withCtx(()=>[St.createElementVNode("div",{id:d(St.unref(Rp))},[(St.openBlock(!0),St.createElementBlock(St.Fragment,null,St.renderList(T.value,P=>St.renderSlot(k.$slots,"untagged-item",{key:`${P.path}-${P.method}`,item:P,section:St.unref(Rp),select:()=>s(P)},()=>[St.createVNode(Cy,{"disable-selection":ir.disableSelection,"is-selected":l(P),item:P,onClick:s},null,8,["disable-selection","is-selected","item"])],!0)),128))],8,gx)]),_:3})])):St.createCommentVNode("",!0)])):(St.openBlock(),St.createElementBlock("div",fx,[St.renderSlot(k.$slots,"empty-state",{},()=>[St.createElementVNode("div",mx,St.toDisplayString(St.unref(ut).t("specOperationsList.noResults")),1)],!0)]))])):(St.openBlock(),St.createElementBlock("div",bx,[St.renderSlot(k.$slots,"error-state",{},()=>[St.createTextVNode(St.toDisplayString(St.unref(ut).t("specOperationsList.error")),1)],!0)]))],12,sx)}}}),[["__scopeId","data-v-751da895"]]),yx={class:"kong-ui-public-spec-renderer"},kx={key:0,class:"spec-container"},wx={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},xx={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:Ty}=Ku.useUtilities(),Ex=Ud(St.defineComponent({__name:"SpecRenderer",props:{spec:{type:Object,required:!0},essentialsOnly:{type:Boolean,default:!1},operationsList:{type:Array,required:!0,validator:ir=>!ir.length||Ty(ir,["method","path"])},tags:{type:Array,default:()=>[],validator:ir=>!ir.length||Ty(ir,["name"])},navWidth:{type:String,default:"310"},deselect:{type:Boolean,default:!1}},setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.computed(()=>!!(yo.spec&&yo.operationsList)),ut=St.ref(),b=j=>{ut.value=j};return(j,o)=>{const u=St.resolveComponent("KEmptyState");return St.openBlock(),St.createElementBlock("div",yx,[cn.value?(St.openBlock(),St.createElementBlock("div",kx,[St.createVNode(Iy,{"data-testid":"spec-renderer-ops-list-content",deselect:ir.deselect,operations:ir.operationsList,tags:ir.tags,width:ir.navWidth,onSelected:b},{"empty-state":St.withCtx(()=>[St.createElementVNode("div",wx,[St.renderSlot(j.$slots,"ops-list-empty-state",{},void 0,!0)])]),_:3},8,["deselect","operations","tags","width"]),St.createVNode(_y,{"active-operation":ut.value,class:"spec-renderer-details","data-testid":"spec-renderer-details-content",document:ir.spec,"essentials-only":ir.essentialsOnly,"has-sidebar":!1},null,8,["active-operation","document","essentials-only"])])):(St.openBlock(),St.createElementBlock("div",xx,[St.renderSlot(j.$slots,"error-state",{},()=>[St.createVNode(u,{"cta-is-hidden":"","icon-size":"50","is-error":!0},{title:St.withCtx(()=>[St.createTextVNode(St.toDisplayString(St.unref(Lo).t("specRenderer.error")),1)]),_:1})],!0)]))])}}}),[["__scopeId","data-v-573e5489"]]);$n.DEFAULT_UNTAGGED_SECTION_NAME=Rp,$n.SpecDetails=_y,$n.SpecOperationsList=Iy,$n.SpecRenderer=Ex,Object.defineProperty($n,Symbol.toStringTag,{value:"Module"})});
|
|
217
|
+
`,a.setAttribute("data-testid","relative-sidebar-styles"),this.shadowRoot.appendChild(a)}_n(this,uu)&&r1.use({target:this.shadowRoot,testId:"hide-essentials-styles"});const r={hasSidebar:_n(this,Uu),applicationRegistrationEnabled:_n(this,Md),currentVersion:{version:_n(this,Ld)},onViewSpecClick:()=>{this.dispatchEvent(new CustomEvent("clicked-view-spec",{bubbles:!0}))},onRegisterClick:()=>{this.dispatchEvent(new CustomEvent("clicked-register",{bubbles:!0}))},..._n(this,Dd)};hl(this,Kc,Df({url:_n(this,jp),spec:_n(this,$u),domNode:this.rootElement,deepLinking:!0,filter:!0,presets:[Df.presets.apis,Df.SwaggerUIStandalonePreset],plugins:[Df.plugins.DownloadUrl,h3.SwaggerUIKongTheme],layout:"KongLayout",theme:r}))}showOperation(r){if(!_n(this,Kc))return!1;const a=uy(r);return _n(this,Kc).layoutActions.show(a,!0),!0}hideOperation(r){if(!_n(this,Kc))return!1;const a=uy(r);return _n(this,Kc).layoutActions.show(a,!1),!0}scrollToOperation(r){if(!_n(this,Kc))return!1;const a=yC(r);let i=this.shadowRoot.getElementById(a);if(!i){const x=this.shadowRoot.querySelector(`[data-tag='${r.tag}']`);if(!x||(x.click(),i=this.shadowRoot.getElementById(a),!i))return!1}const m=window.matchMedia("(prefers-reduced-motion: no-preference)");let A;m&&m.matches&&(A="smooth"),i.scrollIntoView({behavior:A})}get autoInit(){return _n(this,Bd)}set autoInit(r){hl(this,Bd,Pg(r))}get hasSidebar(){return _n(this,Uu)}set hasSidebar(r){hl(this,Uu,Pg(r))}get relativeSidebar(){return _n(this,Cp)}set relativeSidebar(r){hl(this,Cp,Pg(r))}get essentialsOnly(){return _n(this,uu)}set essentialsOnly(r){hl(this,uu,Pg(r))}get spec(){return _n(this,$u)}set spec(r){if(!r)return void console.warn("spec cannot be empty");let a;typeof r=="string"?a=JSON.parse(r):typeof r=="object"&&(a=r),hl(this,$u,a),_n(this,Kc)&&_n(this,Kc).getSystem().specActions.updateJsonSpec(_n(this,$u))}get url(){return _n(this,jp)}set url(r){hl(this,jp,r)}get themeOverrides(){return _n(this,Dd)}set themeOverrides(r){hl(this,Dd,r)}get applicationRegistrationEnabled(){return _n(this,Md)}set applicationRegistrationEnabled(r){hl(this,Md,Pg(r))}get currentVersion(){return _n(this,Ld)}set currentVersion(r){hl(this,Ld,r)}static get observedAttributes(){return["url","spec","auto-init","has-sidebar","relative-sidebar","essentials-only","application-registration-enabled","current-version","theme-overrides"]}}Bd=new WeakMap,$u=new WeakMap,jp=new WeakMap,Uu=new WeakMap,Cp=new WeakMap,uu=new WeakMap,Kc=new WeakMap,Dd=new WeakMap,Md=new WeakMap,Ld=new WeakMap,Za(Rg,"name","kong-swagger-ui"),customElements.get(Rg.name)?console.warn(`Cannot register ${Rg.name}. Element is already defined, ignoring`):customElements.define(Rg.name,Rg)})()})();const S1=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],_1={key:1,"data-testid":"kong-public-ui-spec-details-error"},A1=St.defineComponent({__name:"SpecDetails",props:{document:{type:Object,default:null},url:{type:String,default:""},hasSidebar:{type:Boolean,default:!1},relativeSidebar:{type:Boolean,default:!1},themeOverrides:{type:Object,default:null},essentialsOnly:{type:Boolean,default:!1},activeOperation:{type:Object,default:null},applicationRegistrationEnabled:{type:Boolean,default:!1},currentVersion:{type:String,default:()=>{}}},setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.ref(null),ut=St.computed(()=>!!(yo.document||yo.url)),b=St.ref(!1),j=()=>{if(!cn.value)return;const o={...yo.activeOperation};if(o&&o.tag){const u=decodeURIComponent(o.tag.trim().replaceAll(/\s/g,"%20"));o.tag=u}cn.value.showOperation(o),cn.value.scrollToOperation(o),b.value=!0};return St.onMounted(()=>{yo.activeOperation&&j()}),St.watch(()=>yo.activeOperation,()=>{yo.activeOperation&&j()}),(o,u)=>(St.openBlock(),St.createElementBlock("div",{class:St.normalizeClass(["kong-public-ui-spec-details",{"active-op-focused":b.value}])},[ut.value?(St.openBlock(),St.createElementBlock("kong-swagger-ui",{key:0,ref_key:"swaggerRef",ref:cn,"application-registration-enabled":ir.applicationRegistrationEnabled,"current-version":ir.currentVersion,"data-testid":"kong-public-ui-spec-details-swagger","essentials-only":ir.essentialsOnly,"has-sidebar":ir.hasSidebar,"relative-sidebar":ir.relativeSidebar,spec:ir.document,"theme-overrides":encodeURIComponent(JSON.stringify(ir.themeOverrides)),url:ir.url},null,8,S1)):(St.openBlock(),St.createElementBlock("div",_1,St.toDisplayString(St.unref(Lo).t("specDetails.error")),1))],2))}}),Ud=(ir,yo)=>{const Lo=ir.__vccOpts||ir;for(const[cn,ut]of yo)Lo[cn]=ut;return Lo},_y=Ud(A1,[["__scopeId","data-v-71bf6e29"]]);let qg;const O1=new Uint8Array(16);function j1(){if(!qg&&(qg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qg(O1)}const ds=[];for(let ir=0;ir<256;++ir)ds.push((ir+256).toString(16).slice(1));function C1(ir,yo=0){return ds[ir[yo+0]]+ds[ir[yo+1]]+ds[ir[yo+2]]+ds[ir[yo+3]]+"-"+ds[ir[yo+4]]+ds[ir[yo+5]]+"-"+ds[ir[yo+6]]+ds[ir[yo+7]]+"-"+ds[ir[yo+8]]+ds[ir[yo+9]]+"-"+ds[ir[yo+10]]+ds[ir[yo+11]]+ds[ir[yo+12]]+ds[ir[yo+13]]+ds[ir[yo+14]]+ds[ir[yo+15]]}let Ay,B0,D0=0,M0=0;function P1(ir,yo,Lo){let cn=yo&&Lo||0;const ut=yo||new Array(16);ir=ir||{};let b=ir.node||Ay,j=ir.clockseq!==void 0?ir.clockseq:B0;if(b==null||j==null){const O=ir.random||(ir.rng||j1)();b==null&&(b=Ay=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),j==null&&(j=B0=(O[6]<<8|O[7])&16383)}let o=ir.msecs!==void 0?ir.msecs:Date.now(),u=ir.nsecs!==void 0?ir.nsecs:M0+1;const y=o-D0+(u-M0)/1e4;if(y<0&&ir.clockseq===void 0&&(j=j+1&16383),(y<0||o>D0)&&ir.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");D0=o,M0=u,B0=j,o+=122192928e5;const S=((o&268435455)*1e4+u)%4294967296;ut[cn++]=S>>>24&255,ut[cn++]=S>>>16&255,ut[cn++]=S>>>8&255,ut[cn++]=S&255;const w=o/4294967296*1e4&268435455;ut[cn++]=w>>>8&255,ut[cn++]=w&255,ut[cn++]=w>>>24&15|16,ut[cn++]=w>>>16&255,ut[cn++]=j>>>8|128,ut[cn++]=j&255;for(let O=0;O<6;++O)ut[cn+O]=b[O];return yo||C1(ut)}var Kg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I1(ir){return ir&&ir.__esModule&&Object.prototype.hasOwnProperty.call(ir,"default")?ir.default:ir}var Hg={exports:{}};Hg.exports,function(ir,yo){var Lo=200,cn="__lodash_hash_undefined__",ut=9007199254740991,b="[object Arguments]",j="[object Array]",o="[object Boolean]",u="[object Date]",y="[object Error]",S="[object Function]",w="[object GeneratorFunction]",O="[object Map]",T="[object Number]",p="[object Object]",n="[object Promise]",l="[object RegExp]",d="[object Set]",s="[object String]",g="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",f="[object DataView]",_="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,Z=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,Q={};Q[b]=Q[j]=Q[E]=Q[f]=Q[o]=Q[u]=Q[_]=Q[P]=Q[R]=Q[D]=Q[F]=Q[O]=Q[T]=Q[p]=Q[l]=Q[d]=Q[s]=Q[g]=Q[M]=Q[N]=Q[q]=Q[W]=!0,Q[y]=Q[S]=Q[k]=!1;var fe=typeof Kg=="object"&&Kg&&Kg.Object===Object&&Kg,ne=typeof self=="object"&&self&&self.Object===Object&&self,ae=fe||ne||Function("return this")(),me=yo&&!yo.nodeType&&yo,Pe=me&&!0&&ir&&!ir.nodeType&&ir,Fe=Pe&&Pe.exports===me;function ze(We,or){return We.set(or[0],or[1]),We}function $e(We,or){return We.add(or),We}function Je(We,or){for(var Rr=-1,ko=We?We.length:0;++Rr<ko&&or(We[Rr],Rr,We)!==!1;);return We}function Te(We,or){for(var Rr=-1,ko=or.length,wn=We.length;++Rr<ko;)We[wn+Rr]=or[Rr];return We}function Ae(We,or,Rr,ko){var wn=-1,Vn=We?We.length:0;for(ko&&Vn&&(Rr=We[++wn]);++wn<Vn;)Rr=or(Rr,We[wn],wn,We);return Rr}function lt(We,or){for(var Rr=-1,ko=Array(We);++Rr<We;)ko[Rr]=or(Rr);return ko}function dt(We,or){return We==null?void 0:We[or]}function Pt(We){var or=!1;if(We!=null&&typeof We.toString!="function")try{or=!!(We+"")}catch{}return or}function Vt(We){var or=-1,Rr=Array(We.size);return We.forEach(function(ko,wn){Rr[++or]=[wn,ko]}),Rr}function yr(We,or){return function(Rr){return We(or(Rr))}}function Jt(We){var or=-1,Rr=Array(We.size);return We.forEach(function(ko){Rr[++or]=ko}),Rr}var Ar=Array.prototype,ur=Function.prototype,Or=Object.prototype,Br=ae["__core-js_shared__"],kr=function(){var We=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return We?"Symbol(src)_1."+We:""}(),Bt=ur.toString,De=Or.hasOwnProperty,et=Or.toString,At=RegExp("^"+Bt.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=Fe?ae.Buffer:void 0,Ye=ae.Symbol,jt=ae.Uint8Array,Dt=yr(Object.getPrototypeOf,Object),xr=Object.create,X=Or.propertyIsEnumerable,pe=Ar.splice,ke=Object.getOwnPropertySymbols,Ve=Ke?Ke.isBuffer:void 0,ot=yr(Object.keys,Object),pt=Bn(ae,"DataView"),Ge=Bn(ae,"Map"),Ot=Bn(ae,"Promise"),hr=Bn(ae,"Set"),_t=Bn(ae,"WeakMap"),Ie=Bn(Object,"create"),He=Xn(pt),Qe=Xn(Ge),vt=Xn(Ot),_r=Xn(hr),Sr=Xn(_t),Yr=Ye?Ye.prototype:void 0,Xr=Yr?Yr.valueOf:void 0;function bo(We){var or=-1,Rr=We?We.length:0;for(this.clear();++or<Rr;){var ko=We[or];this.set(ko[0],ko[1])}}function zt(){this.__data__=Ie?Ie(null):{}}function Er(We){return this.has(We)&&delete this.__data__[We]}function Jr(We){var or=this.__data__;if(Ie){var Rr=or[We];return Rr===cn?void 0:Rr}return De.call(or,We)?or[We]:void 0}function go(We){var or=this.__data__;return Ie?or[We]!==void 0:De.call(or,We)}function Po(We,or){var Rr=this.__data__;return Rr[We]=Ie&&or===void 0?cn:or,this}bo.prototype.clear=zt,bo.prototype.delete=Er,bo.prototype.get=Jr,bo.prototype.has=go,bo.prototype.set=Po;function so(We){var or=-1,Rr=We?We.length:0;for(this.clear();++or<Rr;){var ko=We[or];this.set(ko[0],ko[1])}}function Io(){this.__data__=[]}function Oo(We){var or=this.__data__,Rr=mt(or,We);if(Rr<0)return!1;var ko=or.length-1;return Rr==ko?or.pop():pe.call(or,Rr,1),!0}function Do(We){var or=this.__data__,Rr=mt(or,We);return Rr<0?void 0:or[Rr][1]}function _a(We){return mt(this.__data__,We)>-1}function bn(We,or){var Rr=this.__data__,ko=mt(Rr,We);return ko<0?Rr.push([We,or]):Rr[ko][1]=or,this}so.prototype.clear=Io,so.prototype.delete=Oo,so.prototype.get=Do,so.prototype.has=_a,so.prototype.set=bn;function aa(We){var or=-1,Rr=We?We.length:0;for(this.clear();++or<Rr;){var ko=We[or];this.set(ko[0],ko[1])}}function Wo(){this.__data__={hash:new bo,map:new(Ge||so),string:new bo}}function Pa(We){return ki(this,We).delete(We)}function La(We){return ki(this,We).get(We)}function tr(We){return ki(this,We).has(We)}function pr(We,or){return ki(this,We).set(We,or),this}aa.prototype.clear=Wo,aa.prototype.delete=Pa,aa.prototype.get=La,aa.prototype.has=tr,aa.prototype.set=pr;function ar(We){this.__data__=new so(We)}function Qr(){this.__data__=new so}function sr(We){return this.__data__.delete(We)}function ha(We){return this.__data__.get(We)}function ao(We){return this.__data__.has(We)}function st(We,or){var Rr=this.__data__;if(Rr instanceof so){var ko=Rr.__data__;if(!Ge||ko.length<Lo-1)return ko.push([We,or]),this;Rr=this.__data__=new aa(ko)}return Rr.set(We,or),this}ar.prototype.clear=Qr,ar.prototype.delete=sr,ar.prototype.get=ha,ar.prototype.has=ao,ar.prototype.set=st;function Ee(We,or){var Rr=ei(We)||Fi(We)?lt(We.length,String):[],ko=Rr.length,wn=!!ko;for(var Vn in We)(or||De.call(We,Vn))&&!(wn&&(Vn=="length"||Li(Vn,ko)))&&Rr.push(Vn);return Rr}function Ue(We,or,Rr){var ko=We[or];(!(De.call(We,or)&&Ki(ko,Rr))||Rr===void 0&&!(or in We))&&(We[or]=Rr)}function mt(We,or){for(var Rr=We.length;Rr--;)if(Ki(We[Rr][0],or))return Rr;return-1}function Ft(We,or){return We&&un(or,vo(or),We)}function wr(We,or,Rr,ko,wn,Vn,Wn){var ti;if(ko&&(ti=Vn?ko(We,wn,Vn,Wn):ko(We)),ti!==void 0)return ti;if(!xt(We))return We;var wi=ei(We);if(wi){if(ti=Ni(We),!or)return tn(We,ti)}else{var gi=hi(We),as=gi==S||gi==w;if(ji(We))return Ro(We,or);if(gi==p||gi==b||as&&!Vn){if(Pt(We))return Vn?We:{};if(ti=Un(as?{}:We),!or)return fa(We,Ft(ti,We))}else{if(!Q[gi])return Vn?We:{};ti=za(We,gi,wr,or)}}Wn||(Wn=new ar);var hc=Wn.get(We);if(hc)return hc;if(Wn.set(We,ti),!wi)var ns=Rr?Qn(We):vo(We);return Je(ns||We,function(rn,Xs){ns&&(Xs=rn,rn=We[Xs]),Ue(ti,Xs,wr(rn,or,Rr,ko,Xs,We,Wn))}),ti}function ht(We){return xt(We)?xr(We):{}}function Lt(We,or,Rr){var ko=or(We);return ei(We)?ko:Te(ko,Rr(We))}function Tr(We){return et.call(We)}function gr(We){if(!xt(We)||fn(We))return!1;var or=dn(We)||Pt(We)?At:Z;return or.test(Xn(We))}function co(We){if(!ui(We))return ot(We);var or=[];for(var Rr in Object(We))De.call(We,Rr)&&Rr!="constructor"&&or.push(Rr);return or}function Ro(We,or){if(or)return We.slice();var Rr=new We.constructor(We.length);return We.copy(Rr),Rr}function ga(We){var or=new We.constructor(We.byteLength);return new jt(or).set(new jt(We)),or}function ka(We,or){var Rr=or?ga(We.buffer):We.buffer;return new We.constructor(Rr,We.byteOffset,We.byteLength)}function Qa(We,or,Rr){var ko=or?Rr(Vt(We),!0):Vt(We);return Ae(ko,ze,new We.constructor)}function gn(We){var or=new We.constructor(We.source,re.exec(We));return or.lastIndex=We.lastIndex,or}function Ca(We,or,Rr){var ko=or?Rr(Jt(We),!0):Jt(We);return Ae(ko,$e,new We.constructor)}function Ia(We){return Xr?Object(Xr.call(We)):{}}function Ka(We,or){var Rr=or?ga(We.buffer):We.buffer;return new We.constructor(Rr,We.byteOffset,We.length)}function tn(We,or){var Rr=-1,ko=We.length;for(or||(or=Array(ko));++Rr<ko;)or[Rr]=We[Rr];return or}function un(We,or,Rr,ko){Rr||(Rr={});for(var wn=-1,Vn=or.length;++wn<Vn;){var Wn=or[wn],ti=ko?ko(Rr[Wn],We[Wn],Wn,Rr,We):void 0;Ue(Rr,Wn,ti===void 0?We[Wn]:ti)}return Rr}function fa(We,or){return un(We,ma(We),or)}function Qn(We){return Lt(We,vo,ma)}function ki(We,or){var Rr=We.__data__;return hs(or)?Rr[typeof or=="string"?"string":"hash"]:Rr.map}function Bn(We,or){var Rr=dt(We,or);return gr(Rr)?Rr:void 0}var ma=ke?yr(ke,Object):zo,hi=Tr;(pt&&hi(new pt(new ArrayBuffer(1)))!=f||Ge&&hi(new Ge)!=O||Ot&&hi(Ot.resolve())!=n||hr&&hi(new hr)!=d||_t&&hi(new _t)!=k)&&(hi=function(We){var or=et.call(We),Rr=or==p?We.constructor:void 0,ko=Rr?Xn(Rr):void 0;if(ko)switch(ko){case He:return f;case Qe:return O;case vt:return n;case _r:return d;case Sr:return k}return or});function Ni(We){var or=We.length,Rr=We.constructor(or);return or&&typeof We[0]=="string"&&De.call(We,"index")&&(Rr.index=We.index,Rr.input=We.input),Rr}function Un(We){return typeof We.constructor=="function"&&!ui(We)?ht(Dt(We)):{}}function za(We,or,Rr,ko){var wn=We.constructor;switch(or){case E:return ga(We);case o:case u:return new wn(+We);case f:return ka(We,ko);case _:case P:case R:case D:case F:case M:case N:case q:case W:return Ka(We,ko);case O:return Qa(We,ko,Rr);case T:case s:return new wn(We);case l:return gn(We);case d:return Ca(We,ko,Rr);case g:return Ia(We)}}function Li(We,or){return or=or??ut,!!or&&(typeof We=="number"||le.test(We))&&We>-1&&We%1==0&&We<or}function hs(We){var or=typeof We;return or=="string"||or=="number"||or=="symbol"||or=="boolean"?We!=="__proto__":We===null}function fn(We){return!!kr&&kr in We}function ui(We){var or=We&&We.constructor,Rr=typeof or=="function"&&or.prototype||Or;return We===Rr}function Xn(We){if(We!=null){try{return Bt.call(We)}catch{}try{return We+""}catch{}}return""}function os(We){return wr(We,!0,!0)}function Ki(We,or){return We===or||We!==We&&or!==or}function Fi(We){return $i(We)&&De.call(We,"callee")&&(!X.call(We,"callee")||et.call(We)==b)}var ei=Array.isArray;function Ha(We){return We!=null&&gs(We.length)&&!dn(We)}function $i(We){return oo(We)&&Ha(We)}var ji=Ve||kn;function dn(We){var or=xt(We)?et.call(We):"";return or==S||or==w}function gs(We){return typeof We=="number"&&We>-1&&We%1==0&&We<=ut}function xt(We){var or=typeof We;return!!We&&(or=="object"||or=="function")}function oo(We){return!!We&&typeof We=="object"}function vo(We){return Ha(We)?Ee(We):co(We)}function zo(){return[]}function kn(){return!1}ir.exports=os}(Hg,Hg.exports);var T1=Hg.exports;const L0=I1(T1),Rp="default",R1="#3a3f51",z1="#afb7c5",Oy="20px",zp="24px",F0=(ir,yo)=>{const Lo=ir.__vccOpts||ir;for(const[cn,ut]of yo)Lo[cn]=ut;return Lo},N1=ir=>(St.pushScopeId("data-v-98c34919"),ir=ir(),St.popScopeId(),ir),B1=["aria-hidden"],D1={key:0,"data-testid":"kui-icon-svg-title"},M1=N1(()=>St.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),L1=St.defineComponent({__name:"ChevronDownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:zp,validator:ir=>{if(typeof ir=="number"&&ir>0)return!0;if(typeof ir=="string"){const yo=String(ir).replace(/px/gi,""),Lo=Number(yo);if(Lo&&!isNaN(Lo)&&Number.isInteger(Lo)&&Lo>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(ir){const yo=ir,Lo=St.computed(()=>{if(typeof yo.size=="number"&&yo.size>0)return`${yo.size}px`;if(typeof yo.size=="string"){const ut=String(yo.size).replace(/px/gi,""),b=Number(ut);if(b&&!isNaN(b)&&Number.isInteger(b)&&b>0)return`${b}px`}return zp}),cn=St.computed(()=>({boxSizing:"border-box",color:yo.color,display:yo.display,height:Lo.value,lineHeight:"0",width:Lo.value}));return(ut,b)=>(St.openBlock(),St.createBlock(St.resolveDynamicComponent(ir.as),{"aria-hidden":ir.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:St.normalizeStyle(cn.value)},{default:St.withCtx(()=>[(St.openBlock(),St.createElementBlock("svg",{"aria-hidden":ir.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-down-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[ir.title?(St.openBlock(),St.createElementBlock("title",D1,St.toDisplayString(ir.title),1)):St.createCommentVNode("",!0),M1],8,B1))]),_:1},8,["aria-hidden","style"]))}}),F1=F0(L1,[["__scopeId","data-v-98c34919"]]),$1=ir=>(St.pushScopeId("data-v-35654a79"),ir=ir(),St.popScopeId(),ir),U1=["aria-hidden"],q1={key:0,"data-testid":"kui-icon-svg-title"},K1=$1(()=>St.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"currentColor"},null,-1)),H1=St.defineComponent({__name:"ChevronRightIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:zp,validator:ir=>{if(typeof ir=="number"&&ir>0)return!0;if(typeof ir=="string"){const yo=String(ir).replace(/px/gi,""),Lo=Number(yo);if(Lo&&!isNaN(Lo)&&Number.isInteger(Lo)&&Lo>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(ir){const yo=ir,Lo=St.computed(()=>{if(typeof yo.size=="number"&&yo.size>0)return`${yo.size}px`;if(typeof yo.size=="string"){const ut=String(yo.size).replace(/px/gi,""),b=Number(ut);if(b&&!isNaN(b)&&Number.isInteger(b)&&b>0)return`${b}px`}return zp}),cn=St.computed(()=>({boxSizing:"border-box",color:yo.color,display:yo.display,height:Lo.value,lineHeight:"0",width:Lo.value}));return(ut,b)=>(St.openBlock(),St.createBlock(St.resolveDynamicComponent(ir.as),{"aria-hidden":ir.decorative?"true":void 0,class:"kui-icon chevron-right-icon","data-testid":"kui-icon-wrapper-chevron-right-icon",style:St.normalizeStyle(cn.value)},{default:St.withCtx(()=>[(St.openBlock(),St.createElementBlock("svg",{"aria-hidden":ir.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-right-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[ir.title?(St.openBlock(),St.createElementBlock("title",q1,St.toDisplayString(ir.title),1)):St.createCommentVNode("",!0),K1],8,U1))]),_:1},8,["aria-hidden","style"]))}}),V1=F0(H1,[["__scopeId","data-v-35654a79"]]),W1=ir=>(St.pushScopeId("data-v-7cf6d1fd"),ir=ir(),St.popScopeId(),ir),J1=["aria-hidden"],G1={key:0,"data-testid":"kui-icon-svg-title"},Y1=W1(()=>St.createElementVNode("path",{d:"M10 18V16H14V18H10ZM6 13V11H18V13H6ZM3 8V6H21V8H3Z",fill:"currentColor"},null,-1)),Z1=St.defineComponent({__name:"FilterIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:zp,validator:ir=>{if(typeof ir=="number"&&ir>0)return!0;if(typeof ir=="string"){const yo=String(ir).replace(/px/gi,""),Lo=Number(yo);if(Lo&&!isNaN(Lo)&&Number.isInteger(Lo)&&Lo>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(ir){const yo=ir,Lo=St.computed(()=>{if(typeof yo.size=="number"&&yo.size>0)return`${yo.size}px`;if(typeof yo.size=="string"){const ut=String(yo.size).replace(/px/gi,""),b=Number(ut);if(b&&!isNaN(b)&&Number.isInteger(b)&&b>0)return`${b}px`}return zp}),cn=St.computed(()=>({boxSizing:"border-box",color:yo.color,display:yo.display,height:Lo.value,lineHeight:"0",width:Lo.value}));return(ut,b)=>(St.openBlock(),St.createBlock(St.resolveDynamicComponent(ir.as),{"aria-hidden":ir.decorative?"true":void 0,class:"kui-icon filter-icon","data-testid":"kui-icon-wrapper-filter-icon",style:St.normalizeStyle(cn.value)},{default:St.withCtx(()=>[(St.openBlock(),St.createElementBlock("svg",{"aria-hidden":ir.decorative?"true":void 0,"data-testid":"kui-icon-svg-filter-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[ir.title?(St.openBlock(),St.createElementBlock("title",G1,St.toDisplayString(ir.title),1)):St.createCommentVNode("",!0),Y1],8,J1))]),_:1},8,["aria-hidden","style"]))}}),Q1=F0(Z1,[["__scopeId","data-v-7cf6d1fd"]]),X1=["aria-controls","aria-expanded","aria-label"],ex={"aria-hidden":"true",class:"icon-wrapper"},tx={"aria-hidden":"true",class:"label truncated"},rx=["title"],jy=Ud(St.defineComponent({__name:"OperationsListSectionHeader",props:{isCollapsed:{type:Boolean,required:!0},name:{type:String,required:!0},description:{type:String,default:void 0},contentElementId:{type:String,required:!0}},emits:["toggle"],setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.computed(()=>yo.isCollapsed?Lo.t("specOperationsList.section.expandAriaLabel",{section:`"${yo.name}"`}):Lo.t("specOperationsList.section.collapseAriaLabel",{section:`"${yo.name}"`}));return(ut,b)=>(St.openBlock(),St.createElementBlock("button",{"aria-controls":ir.contentElementId,"aria-expanded":ir.isCollapsed?"false":"true","aria-label":cn.value,class:St.normalizeClass(["header",{"header--collapsed":ir.isCollapsed}]),type:"button",onClick:b[0]||(b[0]=j=>ut.$emit("toggle"))},[St.createElementVNode("div",ex,[ir.isCollapsed?(St.openBlock(),St.createBlock(St.unref(V1),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${St.unref(z1)})`,size:St.unref(Oy)},null,8,["color","size"])):(St.openBlock(),St.createBlock(St.unref(F1),{key:1,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-expanded, ${St.unref(R1)})`,icon:"chevronDown",size:St.unref(Oy)},null,8,["color","size"]))]),St.createElementVNode("h1",tx,St.toDisplayString(ir.name),1),St.createElementVNode("div",{class:"description truncated",title:ir.description},St.toDisplayString(ir.description),9,rx)],10,X1))}}),[["__scopeId","data-v-98e20a36"]]),ox=["data-testid"],ax=["title"],nx={class:"details"},ix=["aria-label","title"],Cy=Ud(St.defineComponent({__name:"OperationsListItem",props:{item:{type:Object,required:!0,validator:ir=>ir.method!==void 0&&ir.summary!==void 0&&ir.path!==void 0},isSelected:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1}},emits:["click"],setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.computed(()=>{var b,j;return`spec-operations-list-item-${(b=yo.item.method)==null?void 0:b.toLowerCase()}${(j=yo.item.path)==null?void 0:j.replaceAll("/","-")}-${yo.item.tag||"-"}`}),ut=St.computed(()=>yo.item.method||"");return(b,j)=>{const o=St.resolveComponent("KBadge");return St.openBlock(),St.createElementBlock("button",{class:St.normalizeClass(["spec-operations-list-item",{"item--selected":ir.isSelected,[`item--method-${ir.item.method}`]:!0,disabled:ir.disableSelection}]),"data-testid":cn.value,type:"button",onClick:j[0]||(j[0]=u=>b.$emit("click",ir.item))},[ir.item.summary?(St.openBlock(),St.createElementBlock("h2",{key:0,class:"summary truncated",title:ir.item.summary},St.toDisplayString(ir.item.summary),9,ax)):St.createCommentVNode("",!0),St.createElementVNode("div",nx,[St.createVNode(o,{appearance:"custom","aria-label":St.unref(Lo).t("specOperationsList.item.methodAriaLabel",{method:ut.value.toUpperCase()}),"background-color":"var(--kong-ui-spec-renderer-operations-list-item-method-background)",class:"method-badge",color:"var(--kong-ui-spec-renderer-operations-list-item-method-color)",tabindex:"-1"},{default:St.withCtx(()=>[St.createTextVNode(St.toDisplayString(ut.value.toUpperCase()),1)]),_:1},8,["aria-label"]),St.createElementVNode("span",{"aria-label":St.unref(Lo).t("specOperationsList.item.pathAriaLabel",{path:ir.item.path}),class:"path truncated",title:ir.item.path},St.toDisplayString(ir.item.path),9,ix)])],10,ox)}}}),[["__scopeId","data-v-5610ea54"]]),sx=["aria-label"],cx={key:0},lx={key:0,class:"filter-wrapper"},ux={key:1},px=["data-testid"],dx=["id"],hx={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},gx=["id"],fx={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},mx={class:"center"},bx={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:vx,hasRequiredProps:Py}=Ku.useUtilities(),Iy=Ud(St.defineComponent({__name:"SpecOperationsList",props:{operations:{type:Array,required:!0,validator:ir=>!ir.length||Py(ir,["method","path"])},tags:{type:Array,default:()=>[],validator:ir=>!ir.length||Py(ir,["name"])},isFilterable:{type:Boolean,default:!0},filterFunction:{type:Function,default:({items:ir,query:yo})=>(yo=yo.toLowerCase(),ir.filter(Lo=>Lo.tag&&Lo.tag.toLowerCase().includes(yo))),validator:ir=>!!ir&&typeof ir=="function"},deselect:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1},width:{type:String,default:"210"}},emits:["selected"],setup(ir,{emit:yo}){const Lo=ir,cn=yo,{i18n:ut}=Ku.useI18n(),b=St.computed(()=>P1()),j=St.ref(""),o=St.ref([]),u=St.ref(),y=St.ref([]),S=()=>{const k=o.value;if(!Lo.isFilterable){y.value=k;return}if(!Lo.filterFunction||typeof Lo.filterFunction!="function")throw new Error(`filterFunction property must be a function, got ${typeof Lo.filterFunction}`);y.value=Lo.filterFunction({items:k,query:j.value})},w=St.computed(()=>vx(Lo.width)),O=St.computed(()=>{const k=[];return y.value.forEach(E=>{E.tag&&!k.includes(E.tag)&&k.push(E.tag)}),k}),T=St.computed(()=>o.value.filter(k=>!k.tag)),p=k=>{if(!Lo.tags||!Array.isArray(Lo.tags))return"";const E=Lo.tags.find(f=>f.name===k);return(E==null?void 0:E.description)||""},n=k=>y.value.filter(E=>E.tag===k),l=k=>{const E=u.value;return!!E&&E.path===k.path&&E.method===k.method&&E.operationId===k.operationId&&E.tag===k.tag},d=k=>`${b.value}-section-${k.toLowerCase()}`,s=k=>{Lo.disableSelection||(u.value=k,cn("selected",k))},g=()=>{o.value=[],Lo.operations&&(Lo.operations.forEach(k=>{var f;const E=L0(k);(f=k.tags)!=null&&f.length?k.tags.forEach(_=>{delete E.tags,E.tag=_,o.value.push(L0(E))}):(delete E.tags,E.tag=null,o.value.push(L0(E)))}),S())};return St.watch(()=>Lo.deselect,()=>{Lo.deselect&&(u.value=void 0)}),St.watch(()=>Lo.operations,()=>g()),St.watch(j,()=>S()),St.onMounted(()=>{g()}),(k,E)=>{const f=St.resolveComponent("KInput"),_=St.resolveComponent("KCollapse");return St.openBlock(),St.createElementBlock("section",{"aria-label":St.unref(ut).t("specOperationsList.ariaLabel"),class:"kong-ui-public-spec-operations-list","data-testid":"kong-ui-public-spec-operations-list",role:"navigation",style:St.normalizeStyle({width:w.value})},[ir.operations?(St.openBlock(),St.createElementBlock("div",cx,[ir.isFilterable?(St.openBlock(),St.createElementBlock("div",lx,[St.createVNode(f,{modelValue:j.value,"onUpdate:modelValue":E[0]||(E[0]=P=>j.value=P),class:"filter-input","data-testid":"spec-operations-list-filter",placeholder:St.unref(ut).t("specOperationsList.filterPlaceholder")},{before:St.withCtx(()=>[St.createVNode(St.unref(Q1),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):St.createCommentVNode("",!0),y.value.length?(St.openBlock(),St.createElementBlock("div",ux,[(St.openBlock(!0),St.createElementBlock(St.Fragment,null,St.renderList(O.value,P=>(St.openBlock(),St.createElementBlock("div",{key:P,class:"section-wrapper","data-testid":`spec-operations-list-section-${P.toLowerCase().replaceAll(" ","-")}`},[St.createVNode(_,{"model-value":!1,"trigger-alignment":"leading"},{trigger:St.withCtx(({isCollapsed:R,toggle:D})=>[St.createVNode(jy,{"content-element-id":d(P),"data-testid":`spec-operations-list-section-${P.toLowerCase().replaceAll(" ","-")}-collapse-trigger`,description:p(P),"is-collapsed":R,name:P,onToggle:D},null,8,["content-element-id","data-testid","description","is-collapsed","name","onToggle"])]),default:St.withCtx(()=>[St.createElementVNode("div",{id:d(P)},[(St.openBlock(!0),St.createElementBlock(St.Fragment,null,St.renderList(n(P),R=>St.renderSlot(k.$slots,"item",{key:`${R.path}-${R.method}`,item:R,section:P,select:()=>s(R)},()=>[St.createVNode(Cy,{"disable-selection":ir.disableSelection,"is-selected":l(R),item:R,section:P,onClick:s},null,8,["disable-selection","is-selected","item","section"])],!0)),128))],8,dx)]),_:2},1024)],8,px))),128)),!ir.isFilterable||!j.value?(St.openBlock(),St.createElementBlock("div",hx,[St.createVNode(_,{"model-value":!1,"trigger-alignment":"leading"},{trigger:St.withCtx(({isCollapsed:P,toggle:R})=>[St.createVNode(jy,{"content-element-id":d(St.unref(Rp)),"data-testid":"spec-operations-list-section-untagged-collapse-trigger",description:p(St.unref(Rp)),"is-collapsed":P,name:St.unref(Rp),onToggle:R},null,8,["content-element-id","description","is-collapsed","name","onToggle"])]),default:St.withCtx(()=>[St.createElementVNode("div",{id:d(St.unref(Rp))},[(St.openBlock(!0),St.createElementBlock(St.Fragment,null,St.renderList(T.value,P=>St.renderSlot(k.$slots,"untagged-item",{key:`${P.path}-${P.method}`,item:P,section:St.unref(Rp),select:()=>s(P)},()=>[St.createVNode(Cy,{"disable-selection":ir.disableSelection,"is-selected":l(P),item:P,onClick:s},null,8,["disable-selection","is-selected","item"])],!0)),128))],8,gx)]),_:3})])):St.createCommentVNode("",!0)])):(St.openBlock(),St.createElementBlock("div",fx,[St.renderSlot(k.$slots,"empty-state",{},()=>[St.createElementVNode("div",mx,St.toDisplayString(St.unref(ut).t("specOperationsList.noResults")),1)],!0)]))])):(St.openBlock(),St.createElementBlock("div",bx,[St.renderSlot(k.$slots,"error-state",{},()=>[St.createTextVNode(St.toDisplayString(St.unref(ut).t("specOperationsList.error")),1)],!0)]))],12,sx)}}}),[["__scopeId","data-v-751da895"]]),yx={class:"kong-ui-public-spec-renderer"},kx={key:0,class:"spec-container"},wx={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},xx={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:Ty}=Ku.useUtilities(),Ex=Ud(St.defineComponent({__name:"SpecRenderer",props:{spec:{type:Object,required:!0},essentialsOnly:{type:Boolean,default:!1},operationsList:{type:Array,required:!0,validator:ir=>!ir.length||Ty(ir,["method","path"])},tags:{type:Array,default:()=>[],validator:ir=>!ir.length||Ty(ir,["name"])},navWidth:{type:String,default:"310"},deselect:{type:Boolean,default:!1}},setup(ir){const yo=ir,{i18n:Lo}=Ku.useI18n(),cn=St.computed(()=>!!(yo.spec&&yo.operationsList)),ut=St.ref(),b=j=>{ut.value=j};return(j,o)=>{const u=St.resolveComponent("KEmptyState");return St.openBlock(),St.createElementBlock("div",yx,[cn.value?(St.openBlock(),St.createElementBlock("div",kx,[St.createVNode(Iy,{"data-testid":"spec-renderer-ops-list-content",deselect:ir.deselect,operations:ir.operationsList,tags:ir.tags,width:ir.navWidth,onSelected:b},{"empty-state":St.withCtx(()=>[St.createElementVNode("div",wx,[St.renderSlot(j.$slots,"ops-list-empty-state",{},void 0,!0)])]),_:3},8,["deselect","operations","tags","width"]),St.createVNode(_y,{"active-operation":ut.value,class:"spec-renderer-details","data-testid":"spec-renderer-details-content",document:ir.spec,"essentials-only":ir.essentialsOnly,"has-sidebar":!1},null,8,["active-operation","document","essentials-only"])])):(St.openBlock(),St.createElementBlock("div",xx,[St.renderSlot(j.$slots,"error-state",{},()=>[St.createVNode(u,{"cta-is-hidden":"","icon-size":"50","is-error":!0},{title:St.withCtx(()=>[St.createTextVNode(St.toDisplayString(St.unref(Lo).t("specRenderer.error")),1)]),_:1})],!0)]))])}}}),[["__scopeId","data-v-573e5489"]]);$n.DEFAULT_UNTAGGED_SECTION_NAME=Rp,$n.SpecDetails=_y,$n.SpecOperationsList=Iy,$n.SpecRenderer=Ex,Object.defineProperty($n,Symbol.toStringTag,{value:"Module"})});
|