1097 | `;const pt=/[\s#:?&={}]/g,ut="_rapidoc_api_key";function dt(e){return new Promise((t=>setTimeout(t,e)))}function ht(e,t){const r=t.target,s=document.createElement("textarea");s.value=e,s.style.position="fixed",document.body.appendChild(s),s.focus(),s.select();try{document.execCommand("copy"),r.innerText="Copied",setTimeout((()=>{r.innerText="Copy"}),5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(s)}function mt(e,t,r=""){return`${t.method} ${t.path} ${t.summary||""} ${t.description||""} ${t.operationId||""} ${r}`.toLowerCase().includes(e.toLowerCase())}function ft(e,t=new Set){return e?(Object.keys(e).forEach((r=>{var s;if(t.add(r),e[r].properties)ft(e[r].properties,t);else if(null!==(s=e[r].items)&&void 0!==s&&s.properties){var n;ft(null===(n=e[r].items)||void 0===n?void 0:n.properties,t)}})),t):t}function gt(e,t){if(e){const r=document.createElement("a");document.body.appendChild(r),r.style="display: none",r.href=e,r.download=t,r.click(),r.remove()}}function yt(e){if(e){const t=document.createElement("a");document.body.appendChild(t),t.style="display: none",t.href=e,t.target="_blank",t.click(),t.remove()}}const vt=Object.freeze({url:"/"}),{fetch:bt,Response:xt,Headers:wt,Request:$t,FormData:St,File:Et,Blob:kt}=globalThis;function At(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function Ot(e,t){return Array.isArray(e)&&e.some((e=>At(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=bt),void 0===globalThis.Headers&&(globalThis.Headers=wt),void 0===globalThis.Request&&(globalThis.Request=$t),void 0===globalThis.Response&&(globalThis.Response=xt),void 0===globalThis.FormData&&(globalThis.FormData=St),void 0===globalThis.File&&(globalThis.File=Et),void 0===globalThis.Blob&&(globalThis.Blob=kt);class jt extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Tt(e,t="reserved"){return[...e].map((e=>{if((e=>/^[a-z0-9\-._~]+$/i.test(e))(e))return e;if((e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1)(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function Pt(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map((e=>Ct(e,n))).join(",");if("label"===r)return`.${t.map((e=>Ct(e,n))).join(".")}`;if("matrix"===r)return t.map((e=>Ct(e,n))).reduce(((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=s?`&${e}=`:",";return t.map((e=>Ct(e,n))).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>Ct(e,n))).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>Ct(e,n))).join(`|${r}`)}}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);return"simple"===r?i.reduce(((e,r)=>{const i=Ct(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`}),""):"label"===r?i.reduce(((e,r)=>{const i=Ct(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`}),""):"matrix"===r&&s?i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${Ct(t[r],n)}`),""):"matrix"===r?i.reduce(((r,s)=>{const i=Ct(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`}),""):"form"===r?i.reduce(((e,r)=>{const i=Ct(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`}),""):void 0}(e):function({key:e,value:t,style:r,escape:s}){return"simple"===r?Ct(t,s):"label"===r?`.${Ct(t,s)}`:"matrix"===r?`;${e}=${Ct(t,s)}`:"form"===r||"deepObject"===r?Ct(t,s):void 0}(e)}function Ct(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?Tt(e,t):e}const It={form:",",spaceDelimited:"%20",pipeDelimited:"|"},_t={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Rt(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,l=r?e=>e.toString():e=>encodeURIComponent(e),c=l(e);if(void 0===a&&n)return[[c,""]];if(At(a)||Ot(a))return[[c,a]];if(i)return Ft(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:s,allowReserved:n}=o;return Ft(e,a,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=l("string"==typeof a?a:JSON.stringify(a));return[[c,new jt(e,"blob",{type:o.contentType})]]}const e=l(String(a));return[[c,new jt(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[c,l(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[c,a.map(l).join(",")]]:[[c,l(JSON.stringify(a))]]}return"object"!=typeof a?[[c,l(a)]]:Array.isArray(a)?"multi"===s?[[c,a.map(l)]]:[[c,a.map(l).join(_t[s||"csv"])]]:[[c,""]]}function Ft(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),a=e=>Ct(e,o),l=r?e=>e:e=>a(e);return"object"!=typeof t?[[l(e),a(t)]]:Array.isArray(t)?i?[[l(e),t.map(a)]]:[[l(e),t.map(a).join(It[n])]]:"deepObject"===n?Object.keys(t).map((r=>[l(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[l(e),a(t[e])])):[[l(e),Object.keys(t).map((e=>[`${l(e)},${a(t[e])}`])).join(",")]]}function Mt(e){return((e,{encode:t=!0}={})=>{const r=(e,t,s)=>(null==s?e.append(t,""):Array.isArray(s)?s.reduce(((s,n)=>r(e,t,n)),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce(((s,[n,i])=>r(e,`${t}[${n}]`,i)),e):e.append(t,s),e),s=Object.entries(e).reduce(((e,[t,s])=>r(e,t,s)),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)})(Object.keys(e).reduce(((t,r)=>{for(const[s,n]of Rt(r,e[r]))t[s]=n instanceof jt?n.valueOf():n;return t}),{}),{encode:!1})}function Lt(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return At(t)||Ot(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce(((e,[t,r])=>{for(const[s,n]of Rt(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e}),new FormData));e.formdata=t,e.body=t}else e.body=Mt(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,Mt(r));e.url=s+o,delete e.query}return e}function Dt(e){return null==e}var Bt={isNothing:Dt,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Dt(e)?[]:[e]},repeat:function(e,t){var r,s="";for(r=0;r<t;r+=1)s+=e;return s},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,s,n,i;if(t)for(r=0,s=(i=Object.keys(t)).length;r<s;r+=1)e[n=i[r]]=t[n];return e}};function qt(e,t){var r="",s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),s+" "+r):s}function Nt(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=qt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Nt.prototype=Object.create(Error.prototype),Nt.prototype.constructor=Nt,Nt.prototype.toString=function(e){return this.name+": "+qt(this,e)};var Ut=Nt;function zt(e,t,r,s,n){var i="",o="",a=Math.floor(n/2)-1;return s-t>a&&(t=s-a+(i=" ... ").length),r-s>a&&(r=s+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function Ht(e,t){return Bt.repeat(" ",t-e.length)+e}var Vt=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,s=/\r?\n|\r|\0/g,n=[0],i=[],o=-1;r=s.exec(e.buffer);)i.push(r.index),n.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a,l,c="",p=Math.min(e.line+t.linesAfter,i.length).toString().length,u=t.maxLength-(t.indent+p+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)l=zt(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),u),c=Bt.repeat(" ",t.indent)+Ht((e.line-a+1).toString(),p)+" | "+l.str+"\n"+c;for(l=zt(e.buffer,n[o],i[o],e.position,u),c+=Bt.repeat(" ",t.indent)+Ht((e.line+1).toString(),p)+" | "+l.str+"\n",c+=Bt.repeat("-",t.indent+p+3+l.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)l=zt(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),u),c+=Bt.repeat(" ",t.indent)+Ht((e.line+a+1).toString(),p)+" | "+l.str+"\n";return c.replace(/\n$/,"")},Wt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Gt=["scalar","sequence","mapping"],Jt=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Wt.indexOf(t))throw new Ut('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===Gt.indexOf(this.kind))throw new Ut('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Kt(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)})),r[t]=e})),r}function Yt(e){return this.extend(e)}Yt.prototype.extend=function(e){var t=[],r=[];if(e instanceof Jt)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Ut("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof Jt))throw new Ut("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Ut("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Ut("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof Jt))throw new Ut("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(Yt.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=Kt(s,"implicit"),s.compiledExplicit=Kt(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(s);return r}(s.compiledImplicit,s.compiledExplicit),s};var Xt=Yt,Zt=new Jt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Qt=new Jt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),er=new Jt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),tr=new Xt({explicit:[Zt,Qt,er]}),rr=new Jt("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),sr=new Jt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function nr(e){return 48<=e&&e<=55}function ir(e){return 48<=e&&e<=57}var or=new Jt("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=e.length,n=0,i=!1;if(!s)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===s)return!0;if("b"===(t=e[++n])){for(n++;n<s;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!nr(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!ir(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,s=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(s=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return s*parseInt(r.slice(2),2);if("x"===r[1])return s*parseInt(r.slice(2),16);if("o"===r[1])return s*parseInt(r.slice(2),8)}return s*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!Bt.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ar=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),lr=/^[-+]?[0-9]+e/,cr=new Jt("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ar.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Bt.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Bt.isNegativeZero(e))return"-0.0";return r=e.toString(10),lr.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),pr=tr.extend({implicit:[rr,sr,or,cr]}),ur=pr,dr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),hr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),mr=new Jt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==dr.exec(e)||null!==hr.exec(e))},construct:function(e){var t,r,s,n,i,o,a,l,c=0,p=null;if(null===(t=dr.exec(e))&&(t=hr.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,s,n));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),l=new Date(Date.UTC(r,s,n,i,o,a,c)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),fr=new Jt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),gr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",yr=new Jt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=gr;for(r=0;r<n;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,r,s=e.replace(/[\r\n=]/g,""),n=s.length,i=gr,o=0,a=[];for(t=0;t<n;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(s.charAt(t));return 0==(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,s="",n=0,i=e.length,o=gr;for(t=0;t<i;t++)t%3==0&&t&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+e[t];return 0==(r=i%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}}),vr=Object.prototype.hasOwnProperty,br=Object.prototype.toString,xr=new Jt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(s=a[t],i=!1,"[object Object]"!==br.call(s))return!1;for(n in s)if(vr.call(s,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),wr=Object.prototype.toString,$r=new Jt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(s=o[t],"[object Object]"!==wr.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;i[t]=[n[0],s[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)s=o[t],n=Object.keys(s),i[t]=[n[0],s[n[0]]];return i}}),Sr=Object.prototype.hasOwnProperty,Er=new Jt("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Sr.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),kr=ur.extend({implicit:[mr,fr],explicit:[yr,xr,$r,Er]}),Ar=Object.prototype.hasOwnProperty,Or=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jr=/[\x85\u2028\u2029]/,Tr=/[,\[\]\{\}]/,Pr=/^(?:!|!!|![a-z\-]+!)$/i,Cr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ir(e){return Object.prototype.toString.call(e)}function _r(e){return 10===e||13===e}function Rr(e){return 9===e||32===e}function Fr(e){return 9===e||32===e||10===e||13===e}function Mr(e){return 44===e||91===e||93===e||123===e||125===e}function Lr(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Dr(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Br(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var qr=new Array(256),Nr=new Array(256),Ur=0;Ur<256;Ur++)qr[Ur]=Dr(Ur)?1:0,Nr[Ur]=Dr(Ur);function zr(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||kr,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Hr(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Vt(r),new Ut(t,r)}function Vr(e,t){throw Hr(e,t)}function Wr(e,t){e.onWarning&&e.onWarning.call(null,Hr(e,t))}var Gr={YAML:function(e,t,r){var s,n,i;null!==e.version&&Vr(e,"duplication of %YAML directive"),1!==r.length&&Vr(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Vr(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&Vr(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Wr(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&Vr(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Pr.test(s)||Vr(e,"ill-formed tag handle (first argument) of the TAG directive"),Ar.call(e.tagMap,s)&&Vr(e,'there is a previously declared suffix for "'+s+'" tag handle'),Cr.test(n)||Vr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){Vr(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function Jr(e,t,r,s){var n,i,o,a;if(t<r){if(a=e.input.slice(t,r),s)for(n=0,i=a.length;n<i;n+=1)9===(o=a.charCodeAt(n))||32<=o&&o<=1114111||Vr(e,"expected valid JSON character");else Or.test(a)&&Vr(e,"the stream contains non-printable characters");e.result+=a}}function Kr(e,t,r,s){var n,i,o,a;for(Bt.isObject(r)||Vr(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(n=Object.keys(r)).length;o<a;o+=1)i=n[o],Ar.call(t,i)||(t[i]=r[i],s[i]=!0)}function Yr(e,t,r,s,n,i,o,a,l){var c,p;if(Array.isArray(n))for(c=0,p=(n=Array.prototype.slice.call(n)).length;c<p;c+=1)Array.isArray(n[c])&&Vr(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Ir(n[c])&&(n[c]="[object Object]");if("object"==typeof n&&"[object Object]"===Ir(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(c=0,p=i.length;c<p;c+=1)Kr(e,t,i[c],r);else Kr(e,t,i,r);else e.json||Ar.call(r,n)||!Ar.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,Vr(e,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[n]=i,delete r[n];return t}function Xr(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Vr(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Zr(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;Rr(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!_r(n))break;for(Xr(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&Wr(e,"deficient indentation"),s}function Qr(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Fr(t)))}function es(e,t){1===t?e.result+=" ":t>1&&(e.result+=Bt.repeat("\n",t-1))}function ts(e,t){var r,s,n=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Vr(e,"tab characters must not be used in indentation")),45===s)&&Fr(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Zr(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,ns(e,t,3,!1,!0),o.push(e.result),Zr(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)Vr(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0)}function rs(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Vr(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(i=!0,n=e.input.charCodeAt(++e.position)):33===n?(o=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):Vr(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Fr(n);)33===n&&(o?Vr(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Pr.test(r)||Vr(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Tr.test(s)&&Vr(e,"tag suffix cannot contain flow indicator characters")}s&&!Cr.test(s)&&Vr(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){Vr(e,"tag name is malformed: "+s)}return i?e.tag=s:Ar.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:Vr(e,'undeclared tag handle "'+r+'"'),!0}function ss(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Vr(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Fr(r)&&!Mr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Vr(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ns(e,t,r,s,n){var i,o,a,l,c,p,u,d,h,m=1,f=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=4===r||3===r,s&&Zr(e,!0,-1)&&(f=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;rs(e)||ss(e);)Zr(e,!0,-1)?(f=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=f||n),1!==m&&4!==r||(d=1===r||2===r?t:t+1,h=e.position-e.lineStart,1===m?a&&(ts(e,h)||function(e,t,r){var s,n,i,o,a,l,c,p=e.tag,u=e.anchor,d={},h=Object.create(null),m=null,f=null,g=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Vr(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Fr(s)){if(o=e.line,a=e.lineStart,l=e.position,!ns(e,r,2,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Rr(c);)c=e.input.charCodeAt(++e.position);if(58===c)Fr(c=e.input.charCodeAt(++e.position))||Vr(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Yr(e,d,h,m,f,null,o,a,l),m=f=g=null),v=!0,y=!1,n=!1,m=e.tag,f=e.result;else{if(!v)return e.tag=p,e.anchor=u,!0;Vr(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=p,e.anchor=u,!0;Vr(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(Yr(e,d,h,m,f,null,o,a,l),m=f=g=null),v=!0,y=!0,n=!0):y?(y=!1,n=!0):Vr(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=s;if((e.line===i||e.lineIndent>t)&&(y&&(o=e.line,a=e.lineStart,l=e.position),ns(e,t,4,!0,n)&&(y?f=e.result:g=e.result),y||(Yr(e,d,h,m,f,g,o,a,l),m=f=g=null),Zr(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)Vr(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Yr(e,d,h,m,f,null,o,a,l),v&&(e.tag=p,e.anchor=u,e.kind="mapping",e.result=d),v}(e,h,d))||function(e,t){var r,s,n,i,o,a,l,c,p,u,d,h,m=!0,f=e.tag,g=e.anchor,y=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))o=93,c=!1,i=[];else{if(123!==h)return!1;o=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);0!==h;){if(Zr(e,!0,t),(h=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=i,!0;m?44===h&&Vr(e,"expected the node content, but found ','"):Vr(e,"missed comma between flow collection entries"),d=null,a=l=!1,63===h&&Fr(e.input.charCodeAt(e.position+1))&&(a=l=!0,e.position++,Zr(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,ns(e,t,1,!1,!0),u=e.tag,p=e.result,Zr(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==r||58!==h||(a=!0,h=e.input.charCodeAt(++e.position),Zr(e,!0,t),ns(e,t,1,!1,!0),d=e.result),c?Yr(e,i,y,u,p,d,r,s,n):a?i.push(Yr(e,null,y,u,p,d,r,s,n)):i.push(p),Zr(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(m=!0,h=e.input.charCodeAt(++e.position)):m=!1}Vr(e,"unexpected end of the stream within a flow collection")}(e,d)?g=!0:(o&&function(e,t){var r,s,n,i,o,a=1,l=!1,c=!1,p=t,u=0,d=!1;if(124===(i=e.input.charCodeAt(e.position)))s=!1;else{if(62!==i)return!1;s=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===a?a=43===i?3:2:Vr(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?Vr(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Vr(e,"repeat of an indentation width identifier"):(p=t+n-1,c=!0)}if(Rr(i)){do{i=e.input.charCodeAt(++e.position)}while(Rr(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!_r(i)&&0!==i)}for(;0!==i;){for(Xr(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<p)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>p&&(p=e.lineIndent),_r(i))u++;else{if(e.lineIndent<p){3===a?e.result+=Bt.repeat("\n",l?1+u:u):1===a&&l&&(e.result+="\n");break}for(s?Rr(i)?(d=!0,e.result+=Bt.repeat("\n",l?1+u:u)):d?(d=!1,e.result+=Bt.repeat("\n",u+1)):0===u?l&&(e.result+=" "):e.result+=Bt.repeat("\n",u):e.result+=Bt.repeat("\n",l?1+u:u),l=!0,c=!0,u=0,r=e.position;!_r(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Jr(e,r,e.position,!1)}}return!0}(e,d)||function(e,t){var r,s,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,s=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Jr(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else _r(r)?(Jr(e,s,n,!0),es(e,Zr(e,!1,t)),s=n=e.position):e.position===e.lineStart&&Qr(e)?Vr(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Vr(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,s,n,i,o,a,l;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Jr(e,r,e.position,!0),e.position++,!0;if(92===a){if(Jr(e,r,e.position,!0),_r(a=e.input.charCodeAt(++e.position)))Zr(e,!1,t);else if(a<256&&qr[a])e.result+=Nr[a],e.position++;else if((o=120===(l=a)?2:117===l?4:85===l?8:0)>0){for(n=o,i=0;n>0;n--)(o=Lr(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Vr(e,"expected hexadecimal character");e.result+=Br(i),e.position++}else Vr(e,"unknown escape sequence");r=s=e.position}else _r(a)?(Jr(e,r,s,!0),es(e,Zr(e,!1,t)),r=s=e.position):e.position===e.lineStart&&Qr(e)?Vr(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}Vr(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?g=!0:function(e){var t,r,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Fr(s)&&!Mr(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&Vr(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ar.call(e.anchorMap,r)||Vr(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Zr(e,!0,-1),!0}(e)?(g=!0,null===e.tag&&null===e.anchor||Vr(e,"alias node should not have any properties")):function(e,t,r){var s,n,i,o,a,l,c,p,u=e.kind,d=e.result;if(Fr(p=e.input.charCodeAt(e.position))||Mr(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(Fr(s=e.input.charCodeAt(e.position+1))||r&&Mr(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==p;){if(58===p){if(Fr(s=e.input.charCodeAt(e.position+1))||r&&Mr(s))break}else if(35===p){if(Fr(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Qr(e)||r&&Mr(p))break;if(_r(p)){if(a=e.line,l=e.lineStart,c=e.lineIndent,Zr(e,!1,-1),e.lineIndent>=t){o=!0,p=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=l,e.lineIndent=c;break}}o&&(Jr(e,n,i,!1),es(e,e.line-a),n=i=e.position,o=!1),Rr(p)||(i=e.position+1),p=e.input.charCodeAt(++e.position)}return Jr(e,n,i,!1),!!e.result||(e.kind=u,e.result=d,!1)}(e,d,1===r)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=a&&ts(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Vr(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((u=e.implicitTypes[l]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Ar.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else for(u=null,l=0,c=(p=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){u=p[l];break}u||Vr(e,"unknown tag !<"+e.tag+">"),null!==e.result&&u.kind!==e.kind&&Vr(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Vr(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function is(e){var t,r,s,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(Zr(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Fr(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&Vr(e,"directive name must not be less than one character in length");0!==n;){for(;Rr(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!_r(n));break}if(_r(n))break;for(t=e.position;0!==n&&!Fr(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&Xr(e),Ar.call(Gr,r)?Gr[r](e,r,s):Wr(e,'unknown document directive "'+r+'"')}Zr(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Zr(e,!0,-1)):o&&Vr(e,"directives end mark is expected"),ns(e,e.lineIndent-1,4,!1,!0),Zr(e,!0,-1),e.checkLineBreaks&&jr.test(e.input.slice(i,e.position))&&Wr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Qr(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Zr(e,!0,-1)):e.position<e.length-1&&Vr(e,"end of the stream or a document separator is expected")}function os(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new zr(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,Vr(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)is(r);return r.documents}var as=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=os(e,r);if("function"!=typeof t)return s;for(var n=0,i=s.length;n<i;n+=1)t(s[n])},ls=function(e,t){var r=os(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new Ut("expected a single document in the stream, but found more")}},cs=Object.prototype.toString,ps=Object.prototype.hasOwnProperty,us={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ds=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ms(e){var t,r,s;if(t=e.toString(16).toUpperCase(),e<=255)r="x",s=2;else if(e<=65535)r="u",s=4;else{if(!(e<=4294967295))throw new Ut("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+Bt.repeat("0",s-t.length)+t}function fs(e){this.schema=e.schema||kr,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Bt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,s,n,i,o,a,l;if(null===t)return{};for(r={},n=0,i=(s=Object.keys(t)).length;n<i;n+=1)o=s[n],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=e.compiledTypeMap.fallback[o])&&ps.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function gs(e,t){for(var r,s=Bt.repeat(" ",t),n=0,i=-1,o="",a=e.length;n<a;)-1===(i=e.indexOf("\n",n))?(r=e.slice(n),n=a):(r=e.slice(n,i+1),n=i+1),r.length&&"\n"!==r&&(o+=s),o+=r;return o}function ys(e,t){return"\n"+Bt.repeat(" ",e.indent*t)}function vs(e){return 32===e||9===e}function bs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function xs(e){return bs(e)&&65279!==e&&13!==e&&10!==e}function ws(e,t,r){var s=xs(e),n=s&&!vs(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||xs(t)&&!vs(t)&&35===e||58===t&&n}function $s(e,t){var r,s=e.charCodeAt(t);return s>=55296&&s<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(s-55296)+r-56320+65536:s}function Ss(e){return/^\n* /.test(e)}function Es(e,t,r,s,n){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ds.indexOf(t)||hs.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=s||e.flowLevel>-1&&r>=e.flowLevel;switch(function(e,t,r,s,n,i,o,a){var l,c,p=0,u=null,d=!1,h=!1,m=-1!==s,f=-1,g=bs(c=$s(e,0))&&65279!==c&&!vs(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&function(e){return!vs(e)&&58!==e}($s(e,e.length-1));if(t||o)for(l=0;l<e.length;p>=65536?l+=2:l++){if(!bs(p=$s(e,l)))return 5;g=g&&ws(p,u,a),u=p}else{for(l=0;l<e.length;p>=65536?l+=2:l++){if(10===(p=$s(e,l)))d=!0,m&&(h=h||l-f-1>s&&" "!==e[f+1],f=l);else if(!bs(p))return 5;g=g&&ws(p,u,a),u=p}h=h||m&&l-f-1>s&&" "!==e[f+1]}return d||h?r>9&&Ss(e)?5:o?2===i?5:2:h?4:3:!g||o||n(e)?2===i?5:2:1}(t,a,e.indent,o,(function(t){return function(e,t){var r,s;for(r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!s,n)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+ks(t,e.indent)+As(gs(t,i));case 4:return">"+ks(t,e.indent)+As(gs(function(e,t){for(var r,s,n,i=/(\n+)([^\n]*)/g,o=(n=-1!==(n=e.indexOf("\n"))?n:e.length,i.lastIndex=n,Os(e.slice(0,n),t)),a="\n"===e[0]||" "===e[0];s=i.exec(e);){var l=s[1],c=s[2];r=" "===c[0],o+=l+(a||r||""===c?"":"\n")+Os(c,t),a=r}return o}(t,o),i));case 5:return'"'+function(e){for(var t,r="",s=0,n=0;n<e.length;s>=65536?n+=2:n++)s=$s(e,n),!(t=us[s])&&bs(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||ms(s);return r}(t)+'"';default:throw new Ut("impossible error: invalid scalar style")}}()}function ks(e,t){var r=Ss(e)?String(t):"",s="\n"===e[e.length-1];return r+(!s||"\n"!==e[e.length-2]&&"\n"!==e?s?"":"-":"+")+"\n"}function As(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Os(e,t){if(""===e||" "===e[0])return e;for(var r,s,n=/ [^ ]/g,i=0,o=0,a=0,l="";r=n.exec(e);)(a=r.index)-i>t&&(s=o>i?o:a,l+="\n"+e.slice(i,s),i=s+1),o=a;return l+="\n",e.length-i>t&&o>i?l+=e.slice(i,o)+"\n"+e.slice(o+1):l+=e.slice(i),l.slice(1)}function js(e,t,r,s){var n,i,o,a="",l=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(Ps(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Ps(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=ys(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function Ts(e,t,r){var s,n,i,o,a,l;for(i=0,o=(n=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=n[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===cs.call(a.represent))s=a.represent(t,l);else{if(!ps.call(a.represent,l))throw new Ut("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');s=a.represent[l](t,l)}e.dump=s}return!0}return!1}function Ps(e,t,r,s,n,i,o){e.tag=null,e.dump=r,Ts(e,r,!1)||Ts(e,r,!0);var a,l=cs.call(e.dump),c=s;s&&(s=e.flowLevel<0||e.flowLevel>t);var p,u,d="[object Object]"===l||"[object Array]"===l;if(d&&(u=-1!==(p=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||u||2!==e.indent&&t>0)&&(n=!1),u&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&u&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===l)s&&0!==Object.keys(e.dump).length?(function(e,t,r,s){var n,i,o,a,l,c,p="",u=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new Ut("sortKeys must be a boolean or a function");for(n=0,i=d.length;n<i;n+=1)c="",s&&""===p||(c+=ys(e,t)),a=r[o=d[n]],e.replacer&&(a=e.replacer.call(r,o,a)),Ps(e,t+1,o,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=ys(e,t)),Ps(e,t+1,a,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",p+=c+=e.dump));e.tag=u,e.dump=p||"{}"}(e,t,e.dump,n),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,r){var s,n,i,o,a,l="",c=e.tag,p=Object.keys(r);for(s=0,n=p.length;s<n;s+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=p[s]],e.replacer&&(o=e.replacer.call(r,i,o)),Ps(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ps(e,t,o,!1,!1)&&(l+=a+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===l)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?js(e,t-1,e.dump,n):js(e,t,e.dump,n),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,r){var s,n,i,o="",a=e.tag;for(s=0,n=r.length;s<n;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(Ps(e,t,i,!1,!1)||void 0===i&&Ps(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new Ut("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&Es(e,e.dump,t,i,c)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Cs(e,t){var r,s,n=[],i=[];for(Is(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function Is(e,t,r){var s,n,i;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,i=e.length;n<i;n+=1)Is(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)Is(e[s[n]],t,r)}function _s(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Rs=Jt,Fs=Xt,Ms=tr,Ls=pr,Ds=ur,Bs=kr,qs=ls,Ns=as,Us=function(e,t){var r=new fs(t=t||{});r.noRefs||Cs(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),Ps(r,0,s,!0,!0)?r.dump+"\n":""},zs=Ut,Hs={binary:yr,float:cr,map:er,null:rr,pairs:$r,set:Er,timestamp:mr,bool:sr,int:or,merge:fr,omap:xr,seq:Qt,str:Zt},Vs=_s("safeLoad","load"),Ws=_s("safeLoadAll","loadAll"),Gs=_s("safeDump","dump"),Js={Type:Rs,Schema:Fs,FAILSAFE_SCHEMA:Ms,JSON_SCHEMA:Ls,CORE_SCHEMA:Ds,DEFAULT_SCHEMA:Bs,load:qs,loadAll:Ns,dump:Us,YAMLException:zs,types:Hs,safeLoad:Vs,safeLoadAll:Ws,safeDump:Gs};function Ks(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Ys(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Ks(e.headers)},n=s.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(n);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(s.text=e,s.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):Js.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function Xs(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=Lt(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await Ys(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function Zs(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:"application/json, application/yaml"},credentials:n}).then((e=>e.body))}const Qs=e=>{var t,r;const{baseDoc:s,url:n}=e,i=null!==(t=null!=s?s:n)&&void 0!==t?t:"";return"string"==typeof(null===(r=globalThis.document)||void 0===r?void 0:r.baseURI)?String(new URL(i,globalThis.document.baseURI)):i},en=e=>{const{fetch:t,http:r}=e;return t||r||Xs};var tn,rn=(tn=function(e,t){return tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},tn(e,t)},function(e,t){function r(){this.constructor=e}tn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sn=Object.prototype.hasOwnProperty;function nn(e,t){return sn.call(e,t)}function on(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var s=[];for(var n in e)nn(e,n)&&s.push(n);return s}function an(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function ln(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function cn(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function pn(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function un(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(un(e[t]))return!0}else if("object"==typeof e)for(var s=on(e),n=s.length,i=0;i<n;i++)if(un(e[s[i]]))return!0;return!1}function dn(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var hn=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,dn(t,{name:r,index:s,operation:n,tree:i}))||this;return a.name=r,a.index=s,a.operation=n,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=dn(t,{name:r,index:s,operation:n,tree:i}),a}return rn(t,e),t}(Error),mn=hn,fn=an,gn={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=vn(r,this.path);s&&(s=an(s));var n=bn(r,{op:"remove",path:this.from}).removed;return bn(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=vn(r,this.from);return bn(r,{op:"add",path:this.path,value:an(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Sn(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},yn={add:function(e,t,r){return ln(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:gn.move,copy:gn.copy,test:gn.test,_get:gn._get};function vn(e,t){if(""==t)return e;var r={op:"_get",path:t};return bn(e,r),r.value}function bn(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):wn(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=vn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Sn(e,t.value),!1===o.test)throw new mn("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new mn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=an(e));var a=(t.path||"").split("/"),l=e,c=1,p=a.length,u=void 0,d=void 0,h=void 0;for(h="function"==typeof r?r:wn;;){if((d=a[c])&&-1!=d.indexOf("~")&&(d=pn(d)),n&&("__proto__"==d||"prototype"==d&&c>0&&"constructor"==a[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===u&&(void 0===l[d]?u=a.slice(0,c).join("/"):c==p-1&&(u=t.path),void 0!==u&&h(t,0,e,u)),c++,Array.isArray(l)){if("-"===d)d=l.length;else{if(r&&!ln(d))throw new mn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);ln(d)&&(d=~~d)}if(c>=p){if(r&&"add"===t.op&&d>l.length)throw new mn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=yn[t.op].call(t,l,d,e)).test)throw new mn("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(c>=p){if(!1===(o=gn[t.op].call(t,l,d,e)).test)throw new mn("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(l=l[d],r&&c<p&&(!l||"object"!=typeof l))throw new mn("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function xn(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new mn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=an(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=bn(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function wn(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new mn("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!gn[e.op])throw new mn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new mn("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new mn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new mn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new mn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&un(e.value))throw new mn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new mn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==s)throw new mn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=$n([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new mn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function $n(e,t,r){try{if(!Array.isArray(e))throw new mn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)xn(an(t),an(e),r||!0);else{r=r||wn;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof mn)return e;throw e}}function Sn(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!Sn(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((s=a.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=s;0!=r--;)if(!Sn(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}const En=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:mn,_areEquals:Sn,applyOperation:bn,applyPatch:xn,applyReducer:function(e,t,r){var s=bn(e,t);if(!1===s.test)throw new mn("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument},deepClone:fn,getValueByPointer:vn,validate:$n,validator:wn},Symbol.toStringTag,{value:"Module"}));var kn=new WeakMap,An=function(e){this.observers=new Map,this.obj=e},On=function(e,t){this.callback=e,this.observer=t};function jn(e,t){void 0===t&&(t=!1);var r=kn.get(e.object);Tn(r.value,e.object,e.patches,"",t),e.patches.length&&xn(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Tn(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=on(t),o=on(e),a=!1,l=o.length-1;l>=0;l--){var c=e[u=o[l]];if(!nn(t,u)||void 0===t[u]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+cn(u),value:an(c)}),r.push({op:"remove",path:s+"/"+cn(u)}),a=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}));else{var p=t[u];"object"==typeof c&&null!=c&&"object"==typeof p&&null!=p&&Array.isArray(c)===Array.isArray(p)?Tn(c,p,r,s+"/"+cn(u),n):c!==p&&(n&&r.push({op:"test",path:s+"/"+cn(u),value:an(c)}),r.push({op:"replace",path:s+"/"+cn(u),value:an(p)}))}}if(a||i.length!=o.length)for(l=0;l<i.length;l++){var u;nn(e,u=i[l])||void 0===t[u]||r.push({op:"add",path:s+"/"+cn(u),value:an(t[u])})}}}const Pn=Object.freeze(Object.defineProperty({__proto__:null,compare:function(e,t,r){void 0===r&&(r=!1);var s=[];return Tn(e,t,s,"",r),s},generate:jn,observe:function(e,t){var r,s=function(e){return kn.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new An(e),kn.set(e,s);if(r)return r;if(r={},s.value=an(e),t){r.callback=t,r.next=null;var i=function(){jn(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){jn(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new On(t,r)),r},unobserve:function(e,t){t.unobserve()}},Symbol.toStringTag,{value:"Module"}));function Cn(e){return e&&e.t&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Object.assign({},En,Pn,{JsonPatchError:hn,deepClone:an,escapePathComponent:cn,unescapePathComponent:pn});var In=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_n}(e)}(e)},_n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Rn(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Dn((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Fn(e,t,r){return e.concat(t).map((function(e){return Rn(e,r)}))}function Mn(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ln(e,t){try{return t in e}catch(e){return!1}}function Dn(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Fn,r.isMergeableObject=r.isMergeableObject||In,r.cloneUnlessOtherwiseSpecified=Rn;var s=Array.isArray(t);return s===Array.isArray(e)?s?r.arrayMerge(e,t,r):function(e,t,r){var s={};return r.isMergeableObject(e)&&Mn(e).forEach((function(t){s[t]=Rn(e[t],r)})),Mn(t).forEach((function(n){(function(e,t){return Ln(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(Ln(e,n)&&r.isMergeableObject(t[n])?s[n]=function(e,t){if(!t.customMerge)return Dn;var r=t.customMerge(e);return"function"==typeof r?r:Dn}(n,r)(e[n],t[n],r):s[n]=Rn(t[n],r))})),s}(e,t,r):Rn(t,r)}Dn.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Dn(e,r,t)}),{})};const Bn=Cn(Dn),qn={add:function(e,t){return{op:"add",path:e,value:t}},replace:Un,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&Nn(t.path)}).op){const r=ti(e,t.path);Object.assign(r,t.value),xn(e,[Un(t.path,r)])}else if("mergeDeep"===t.op){const r=ti(e,t.path),s=Bn(r,t.value);e=xn(e,[Un(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&Kn(t.value)){const r=Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Nn(r)}`,value:t.value[r]}),e)),[]);xn(e,r)}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&Qn(t)&&(Array.isArray(t.value)||Kn(t.value))&&(s={...s,...t.meta}),e=s}else if(xn(e,[t]),r.allowMetaPatches&&t.meta&&Qn(t)&&(Array.isArray(t.value)||Kn(t.value))){const r={...ti(e,t.path),...t.meta};xn(e,[Un(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Gn,fullyNormalizeArray:function(e){return Jn(Gn(Wn(e)))},normalizeArray:Wn,isPromise:function(e){return Kn(e)&&Yn(e.then)},forEachNew:function(e,t){try{return zn(e,Vn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return zn(e,Hn,t)}catch(e){return e}},isJsonPatch:Xn,isContextPatch:function(e){return ei(e)&&"context"===e.type},isPatch:ei,isMutation:Zn,isAdditiveMutation:Qn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Yn,isObject:Kn,isError:function(e){return e instanceof Error}};function Nn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Un(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function zn(e,t,r){return Jn(Gn(e.filter(Qn).map((e=>t(e.value,r,e.path)))||[]))}function Hn(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>Hn(e,t,r.concat(s)))):Kn(e)?Object.keys(e).map((s=>Hn(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function Vn(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map(((e,s)=>Vn(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(Kn(e)){const n=Object.keys(e).map((s=>Vn(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Gn(s),s}function Wn(e){return Array.isArray(e)?e:[e]}function Gn(e){return[].concat(...e.map((e=>Array.isArray(e)?Gn(e):e)))}function Jn(e){return e.filter((e=>void 0!==e))}function Kn(e){return e&&"object"==typeof e}function Yn(e){return e&&"function"==typeof e}function Xn(e){if(ei(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Zn(e){return Xn(e)||ei(e)&&"mutation"===e.type}function Qn(e){return Zn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function ei(e){return e&&"object"==typeof e}function ti(e,t){try{return vn(e,t)}catch(e){return console.error(e),{}}}var ri=function(e){return e&&e.Math===Math&&e},si=ri("object"==typeof globalThis&&globalThis)||ri("object"==typeof window&&window)||ri("object"==typeof self&&self)||ri("object"==typeof global&&global)||ri(!1)||function(){return this}()||Function("return this")(),ni=function(e){try{return!!e()}catch(e){return!0}},ii=!ni((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),oi=ii,ai=Function.prototype,li=ai.apply,ci=ai.call,pi="object"==typeof Reflect&&Reflect.apply||(oi?ci.bind(li):function(){return ci.apply(li,arguments)}),ui=ii,di=Function.prototype,hi=di.call,mi=ui&&di.bind.bind(hi,hi),fi=ui?mi:function(e){return function(){return hi.apply(e,arguments)}},gi=fi,yi=gi({}.toString),vi=gi("".slice),bi=function(e){return vi(yi(e),8,-1)},xi=bi,wi=fi,$i=function(e){if("Function"===xi(e))return wi(e)},Si="object"==typeof document&&document.all,Ei=void 0===Si&&void 0!==Si?function(e){return"function"==typeof e||e===Si}:function(e){return"function"==typeof e},ki={},Ai=!ni((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Oi=ii,ji=Function.prototype.call,Ti=Oi?ji.bind(ji):function(){return ji.apply(ji,arguments)},Pi={},Ci={}.propertyIsEnumerable,Ii=Object.getOwnPropertyDescriptor,_i=Ii&&!Ci.call({1:2},1);Pi.f=_i?function(e){var t=Ii(this,e);return!!t&&t.enumerable}:Ci;var Ri,Fi,Mi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Li=ni,Di=bi,Bi=Object,qi=fi("".split),Ni=Li((function(){return!Bi("z").propertyIsEnumerable(0)}))?function(e){return"String"===Di(e)?qi(e,""):Bi(e)}:Bi,Ui=function(e){return null==e},zi=Ui,Hi=TypeError,Vi=function(e){if(zi(e))throw new Hi("Can't call method on "+e);return e},Wi=Ni,Gi=Vi,Ji=function(e){return Wi(Gi(e))},Ki=Ei,Yi=function(e){return"object"==typeof e?null!==e:Ki(e)},Xi={},Zi=Xi,Qi=si,eo=Ei,to=function(e){return eo(e)?e:void 0},ro=function(e,t){return arguments.length<2?to(Zi[e])||to(Qi[e]):Zi[e]&&Zi[e][t]||Qi[e]&&Qi[e][t]},so=fi({}.isPrototypeOf),no=si.navigator,io=no&&no.userAgent,oo=si,ao=io?String(io):"",lo=oo.process,co=oo.Deno,po=lo&&lo.versions||co&&co.version,uo=po&&po.v8;uo&&(Fi=(Ri=uo.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!Fi&&ao&&(!(Ri=ao.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=ao.match(/Chrome\/(\d+)/))&&(Fi=+Ri[1]);var ho=Fi,mo=ni,fo=si.String,go=!!Object.getOwnPropertySymbols&&!mo((function(){var e=Symbol("symbol detection");return!fo(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ho&&ho<41})),yo=go&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vo=ro,bo=Ei,xo=so,wo=Object,$o=yo?function(e){return"symbol"==typeof e}:function(e){var t=vo("Symbol");return bo(t)&&xo(t.prototype,wo(e))},So=String,Eo=function(e){try{return So(e)}catch(e){return"Object"}},ko=Ei,Ao=Eo,Oo=TypeError,jo=function(e){if(ko(e))return e;throw new Oo(Ao(e)+" is not a function")},To=jo,Po=Ui,Co=function(e,t){var r=e[t];return Po(r)?void 0:To(r)},Io=Ti,_o=Ei,Ro=Yi,Fo=TypeError,Mo={exports:{}},Lo=si,Do=Object.defineProperty,Bo=si,qo=Mo.exports=Bo.o||function(e,t){try{Do(Lo,e,{value:t,configurable:!0,writable:!0})}catch(r){Lo[e]=t}return t}("__core-js_shared__",{});(qo.versions||(qo.versions=[])).push({version:"3.38.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var No=Mo.exports,Uo=No,zo=function(e,t){return Uo[e]||(Uo[e]=t||{})},Ho=Vi,Vo=Object,Wo=function(e){return Vo(Ho(e))},Go=Wo,Jo=fi({}.hasOwnProperty),Ko=Object.hasOwn||function(e,t){return Jo(Go(e),t)},Yo=fi,Xo=0,Zo=Math.random(),Qo=Yo(1..toString),ea=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qo(++Xo+Zo,36)},ta=zo,ra=Ko,sa=ea,na=go,ia=yo,oa=si.Symbol,aa=ta("wks"),la=ia?oa.for||oa:oa&&oa.withoutSetter||sa,ca=function(e){return ra(aa,e)||(aa[e]=na&&ra(oa,e)?oa[e]:la("Symbol."+e)),aa[e]},pa=Ti,ua=Yi,da=$o,ha=Co,ma=TypeError,fa=ca("toPrimitive"),ga=function(e,t){if(!ua(e)||da(e))return e;var r,s=ha(e,fa);if(s){if(void 0===t&&(t="default"),r=pa(s,e,t),!ua(r)||da(r))return r;throw new ma("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,s;if("string"===t&&_o(r=e.toString)&&!Ro(s=Io(r,e)))return s;if(_o(r=e.valueOf)&&!Ro(s=Io(r,e)))return s;if("string"!==t&&_o(r=e.toString)&&!Ro(s=Io(r,e)))return s;throw new Fo("Can't convert object to primitive value")}(e,t)},ya=$o,va=function(e){var t=ga(e,"string");return ya(t)?t:t+""},ba=Yi,xa=si.document,wa=ba(xa)&&ba(xa.createElement),$a=function(e){return wa?xa.createElement(e):{}},Sa=$a,Ea=!Ai&&!ni((function(){return 7!==Object.defineProperty(Sa("div"),"a",{get:function(){return 7}}).a})),ka=Ai,Aa=Ti,Oa=Pi,ja=Mi,Ta=Ji,Pa=va,Ca=Ko,Ia=Ea,_a=Object.getOwnPropertyDescriptor;ki.f=ka?_a:function(e,t){if(e=Ta(e),t=Pa(t),Ia)try{return _a(e,t)}catch(e){}if(Ca(e,t))return ja(!Aa(Oa.f,e,t),e[t])};var Ra=ni,Fa=Ei,Ma=/#|\.prototype\./,La=function(e,t){var r=Ba[Da(e)];return r===Na||r!==qa&&(Fa(t)?Ra(t):!!t)},Da=La.normalize=function(e){return String(e).replace(Ma,".").toLowerCase()},Ba=La.data={},qa=La.NATIVE="N",Na=La.POLYFILL="P",Ua=La,za=jo,Ha=ii,Va=$i($i.bind),Wa=function(e,t){return za(e),void 0===t?e:Ha?Va(e,t):function(){return e.apply(t,arguments)}},Ga={},Ja=Ai&&ni((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ka=Yi,Ya=String,Xa=TypeError,Za=function(e){if(Ka(e))return e;throw new Xa(Ya(e)+" is not an object")},Qa=Ai,el=Ea,tl=Ja,rl=Za,sl=va,nl=TypeError,il=Object.defineProperty,ol=Object.getOwnPropertyDescriptor;Ga.f=Qa?tl?function(e,t,r){if(rl(e),t=sl(t),rl(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var s=ol(e,t);s&&s.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:s.configurable,enumerable:"enumerable"in r?r.enumerable:s.enumerable,writable:!1})}return il(e,t,r)}:il:function(e,t,r){if(rl(e),t=sl(t),rl(r),el)try{return il(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new nl("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var al=Ga,ll=Mi,cl=Ai?function(e,t,r){return al.f(e,t,ll(1,r))}:function(e,t,r){return e[t]=r,e},pl=si,ul=pi,dl=$i,hl=Ei,ml=ki.f,fl=Ua,gl=Xi,yl=Wa,vl=cl,bl=Ko,xl=function(e){var t=function(r,s,n){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,n)}return ul(e,this,arguments)};return t.prototype=e.prototype,t},wl=function(e,t){var r,s,n,i,o,a,l,c,p,u=e.target,d=e.global,h=e.stat,m=e.proto,f=d?pl:h?pl[u]:pl[u]&&pl[u].prototype,g=d?gl:gl[u]||vl(gl,u,{})[u],y=g.prototype;for(i in t)s=!(r=fl(d?i:u+(h?".":"#")+i,e.forced))&&f&&bl(f,i),a=g[i],s&&(l=e.dontCallGetSet?(p=ml(f,i))&&p.value:f[i]),o=s&&l?l:t[i],(r||m||typeof a!=typeof o)&&(c=e.bind&&s?yl(o,pl):e.wrap&&s?xl(o):m&&hl(o)?dl(o):o,(e.sham||o&&o.sham||a&&a.sham)&&vl(c,"sham",!0),vl(g,i,c),m&&(bl(gl,n=u+"Prototype")||vl(gl,n,{}),vl(gl[n],i,o),e.real&&y&&(r||!y[i])&&vl(y,i,o)))},$l=ea,Sl=zo("keys"),El=function(e){return Sl[e]||(Sl[e]=$l(e))},kl=!ni((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Al=Ko,Ol=Ei,jl=Wo,Tl=kl,Pl=El("IE_PROTO"),Cl=Object,Il=Cl.prototype,_l=Tl?Cl.getPrototypeOf:function(e){var t=jl(e);if(Al(t,Pl))return t[Pl];var r=t.constructor;return Ol(r)&&t instanceof r?r.prototype:t instanceof Cl?Il:null},Rl=fi,Fl=jo,Ml=Yi,Ll=String,Dl=TypeError,Bl=Yi,ql=Vi,Nl=function(e){if(function(e){return Ml(e)||null===e}(e))return e;throw new Dl("Can't set "+Ll(e)+" as a prototype")},Ul=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=function(e,t,r){try{return Rl(Fl(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return ql(r),Nl(s),Bl(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0),zl={},Hl=Math.ceil,Vl=Math.floor,Wl=Math.trunc||function(e){var t=+e;return(t>0?Vl:Hl)(t)},Gl=function(e){var t=+e;return t!=t||0===t?0:Wl(t)},Jl=Gl,Kl=Math.max,Yl=Math.min,Xl=Gl,Zl=Math.min,Ql=function(e){return function(e){var t=Xl(e);return t>0?Zl(t,9007199254740991):0}(e.length)},ec=Ji,tc=Ql,rc=function(e){return function(t,r,s){var n=ec(t),i=tc(n);if(0===i)return!e&&-1;var o,a=function(e,t){var r=Jl(e);return r<0?Kl(r+t,0):Yl(r,t)}(s,i);if(e&&r!=r){for(;i>a;)if((o=n[a++])!=o)return!0}else for(;i>a;a++)if((e||a in n)&&n[a]===r)return e||a||0;return!e&&-1}},sc={includes:rc(!0),indexOf:rc(!1)},nc={},ic=Ko,oc=Ji,ac=sc.indexOf,lc=nc,cc=fi([].push),pc=function(e,t){var r,s=oc(e),n=0,i=[];for(r in s)!ic(lc,r)&&ic(s,r)&&cc(i,r);for(;t.length>n;)ic(s,r=t[n++])&&(~ac(i,r)||cc(i,r));return i},uc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dc=pc,hc=uc.concat("length","prototype");zl.f=Object.getOwnPropertyNames||function(e){return dc(e,hc)};var mc={};mc.f=Object.getOwnPropertySymbols;var fc=ro,gc=zl,yc=mc,vc=Za,bc=fi([].concat),xc=fc("Reflect","ownKeys")||function(e){var t=gc.f(vc(e)),r=yc.f;return r?bc(t,r(e)):t},wc=Ko,$c=xc,Sc=ki,Ec=Ga,kc=function(e,t,r){for(var s=$c(t),n=Ec.f,i=Sc.f,o=0;o<s.length;o++){var a=s[o];wc(e,a)||r&&wc(r,a)||n(e,a,i(t,a))}},Ac={},Oc=pc,jc=uc,Tc=Object.keys||function(e){return Oc(e,jc)},Pc=Ai,Cc=Ja,Ic=Ga,_c=Za,Rc=Ji,Fc=Tc;Ac.f=Pc&&!Cc?Object.defineProperties:function(e,t){_c(e);for(var r,s=Rc(t),n=Fc(t),i=n.length,o=0;i>o;)Ic.f(e,r=n[o++],s[r]);return e};var Mc,Lc=ro("document","documentElement"),Dc=Za,Bc=Ac,qc=uc,Nc=nc,Uc=Lc,zc=$a,Hc=El("IE_PROTO"),Vc=function(){},Wc=function(e){return"<script>"+e+"<\/script>"},Gc=function(e){e.write(Wc("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jc=function(){try{Mc=new ActiveXObject("htmlfile")}catch(e){}var e,t;Jc="undefined"!=typeof document?document.domain&&Mc?Gc(Mc):((t=zc("iframe")).style.display="none",Uc.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wc("document.F=Object")),e.close(),e.F):Gc(Mc);for(var r=qc.length;r--;)delete Jc.prototype[qc[r]];return Jc()};Nc[Hc]=!0;var Kc=Object.create||function(e,t){var r;return null!==e?(Vc.prototype=Dc(e),r=new Vc,Vc.prototype=null,r[Hc]=e):r=Jc(),void 0===t?r:Bc.f(r,t)},Yc=Yi,Xc=cl,Zc=function(e,t){Yc(t)&&"cause"in t&&Xc(e,"cause",t.cause)},Qc=Error,ep=fi("".replace),tp=String(new Qc("zxcasd").stack),rp=/\n\s*at [^:]*:[^\n]*/,sp=rp.test(tp),np=Mi,ip=!ni((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",np(1,7)),7!==e.stack)})),op=cl,ap=ip,lp=Error.captureStackTrace,cp=function(e,t,r,s){ap&&(lp?lp(e,t):op(e,"stack",function(e,t){if(sp&&"string"==typeof e&&!Qc.prepareStackTrace)for(;t--;)e=ep(e,rp,"");return e}(r,s)))},pp={},up=pp,dp=ca("iterator"),hp=Array.prototype,mp={};mp[ca("toStringTag")]="z";var fp="[object z]"===String(mp),gp=fp,yp=Ei,vp=bi,bp=ca("toStringTag"),xp=Object,wp="Arguments"===vp(function(){return arguments}()),$p=gp?vp:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=xp(e),bp))?r:wp?vp(t):"Object"===(s=vp(t))&&yp(t.callee)?"Arguments":s},Sp=$p,Ep=Co,kp=Ui,Ap=pp,Op=ca("iterator"),jp=function(e){if(!kp(e))return Ep(e,Op)||Ep(e,"@@iterator")||Ap[Sp(e)]},Tp=Ti,Pp=jo,Cp=Za,Ip=Eo,_p=jp,Rp=TypeError,Fp=Ti,Mp=Za,Lp=Co,Dp=Wa,Bp=Ti,qp=Za,Np=Eo,Up=Ql,zp=so,Hp=jp,Vp=function(e,t,r){var s,n;Mp(e);try{if(!(s=Lp(e,"return"))){if("throw"===t)throw r;return r}s=Fp(s,e)}catch(e){n=!0,s=e}if("throw"===t)throw r;if(n)throw s;return Mp(s),r},Wp=TypeError,Gp=function(e,t){this.stopped=e,this.result=t},Jp=Gp.prototype,Kp=$p,Yp=String,Xp=function(e){if("Symbol"===Kp(e))throw new TypeError("Cannot convert a Symbol value to a string");return Yp(e)},Zp=Xp,Qp=function(e,t){return void 0===e?arguments.length<2?"":t:Zp(e)},eu=wl,tu=so,ru=_l,su=Ul,nu=kc,iu=Kc,ou=cl,au=Mi,lu=Zc,cu=cp,pu=function(e,t,r){var s,n,i,o,a,l,c,p=r&&r.that,u=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),m=!(!r||!r.INTERRUPTED),f=Dp(t,p),g=function(e){return s&&Vp(s,"normal",e),new Gp(!0,e)},y=function(e){return u?(qp(e),m?f(e[0],e[1],g):f(e[0],e[1])):m?f(e,g):f(e)};if(d)s=e.iterator;else if(h)s=e;else{if(!(n=Hp(e)))throw new Wp(Np(e)+" is not iterable");if(function(e){return void 0!==e&&(up.Array===e||hp[dp]===e)}(n)){for(i=0,o=Up(e);o>i;i++)if((a=y(e[i]))&&zp(Jp,a))return a;return new Gp(!1)}s=function(e,t){var r=arguments.length<2?_p(e):t;if(Pp(r))return Cp(Tp(r,e));throw new Rp(Ip(e)+" is not iterable")}(e,n)}for(l=d?e.next:s.next;!(c=Bp(l,s)).done;){try{a=y(c.value)}catch(e){Vp(s,"throw",e)}if("object"==typeof a&&a&&zp(Jp,a))return a}return new Gp(!1)},uu=Qp,du=ca("toStringTag"),hu=Error,mu=[].push,fu=function(e,t){var r,s=tu(gu,this);su?r=su(new hu,s?ru(this):gu):(r=s?this:iu(gu),ou(r,du,"Error")),void 0!==t&&ou(r,"message",uu(t)),cu(r,fu,r.stack,1),arguments.length>2&&lu(r,arguments[2]);var n=[];return pu(e,mu,{that:n}),ou(r,"errors",n),r};su?su(fu,hu):nu(fu,hu,{name:!0});var gu=fu.prototype=iu(hu.prototype,{constructor:au(1,fu),message:au(1,""),name:au(1,"AggregateError")});eu({global:!0,constructor:!0,arity:2},{AggregateError:fu});var yu=Ga.f,vu=Ei,bu=Yi,xu=Ul,wu=ro,$u=cl,Su=so,Eu=Ul,ku=kc,Au=function(e,t,r){r in e||yu(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},Ou=Qp,ju=Zc,Tu=cp,Pu=Ai,Cu=function(e,t,r,s){var n="stackTraceLimit",i=s?2:1,o=e.split("."),a=o[o.length-1],l=wu.apply(null,o);if(l){var c=l.prototype;if(!r)return l;var p=wu("Error"),u=t((function(e,t){var r=Ou(s?t:e,void 0),n=s?new l(e):new l;return void 0!==r&&$u(n,"message",r),Tu(n,u,n.stack,2),this&&Su(c,this)&&function(e,t,r){var s,n;xu&&vu(s=t.constructor)&&s!==r&&bu(n=s.prototype)&&n!==r.prototype&&xu(e,n)}(n,this,u),arguments.length>i&&ju(n,arguments[i]),n}));return u.prototype=c,"Error"!==a?Eu?Eu(u,p):ku(u,p,{name:!0}):Pu&&n in l&&(Au(u,l,n),Au(u,l,"prepareStackTrace")),ku(u,l),u}},Iu=wl,_u=pi,Ru=Cu,Fu=si.WebAssembly,Mu=7!==new Error("e",{cause:7}).cause,Lu=function(e,t){var r={};r[e]=Ru(e,t,Mu),Iu({global:!0,constructor:!0,arity:1,forced:Mu},r)},Du=function(e,t){if(Fu&&Fu[e]){var r={};r[e]=Ru("WebAssembly."+e,t,Mu),Iu({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:Mu},r)}};Lu("Error",(function(e){return function(t){return _u(e,this,arguments)}})),Lu("EvalError",(function(e){return function(t){return _u(e,this,arguments)}})),Lu("RangeError",(function(e){return function(t){return _u(e,this,arguments)}})),Lu("ReferenceError",(function(e){return function(t){return _u(e,this,arguments)}})),Lu("SyntaxError",(function(e){return function(t){return _u(e,this,arguments)}})),Lu("TypeError",(function(e){return function(t){return _u(e,this,arguments)}})),Lu("URIError",(function(e){return function(t){return _u(e,this,arguments)}})),Du("CompileError",(function(e){return function(t){return _u(e,this,arguments)}})),Du("LinkError",(function(e){return function(t){return _u(e,this,arguments)}})),Du("RuntimeError",(function(e){return function(t){return _u(e,this,arguments)}}));var Bu=wl,qu=pi,Nu=ni,Uu=Cu,zu=ro("AggregateError"),Hu=!Nu((function(){return 1!==zu([1]).errors[0]}))&&Nu((function(){return 7!==zu([1],"AggregateError",{cause:7}).cause}));Bu({global:!0,constructor:!0,arity:2,forced:Hu},{AggregateError:Uu("AggregateError",(function(e){return function(t,r){return qu(e,this,arguments)}}),Hu,!0)});var Vu,Wu,Gu,Ju=Ei,Ku=si.WeakMap,Yu=Ju(Ku)&&/native code/.test(String(Ku)),Xu=si,Zu=Yi,Qu=cl,ed=Ko,td=No,rd=El,sd=nc,nd=Xu.TypeError,id=Xu.WeakMap;if(Yu||td.state){var od=td.state||(td.state=new id);od.get=od.get,od.has=od.has,od.set=od.set,Vu=function(e,t){if(od.has(e))throw new nd("Object already initialized");return t.facade=e,od.set(e,t),t},Wu=function(e){return od.get(e)||{}},Gu=function(e){return od.has(e)}}else{var ad=rd("state");sd[ad]=!0,Vu=function(e,t){if(ed(e,ad))throw new nd("Object already initialized");return t.facade=e,Qu(e,ad,t),t},Wu=function(e){return ed(e,ad)?e[ad]:{}},Gu=function(e){return ed(e,ad)}}var ld,cd,pd,ud={set:Vu,get:Wu,has:Gu,enforce:function(e){return Gu(e)?Wu(e):Vu(e,{})},getterFor:function(e){return function(t){var r;if(!Zu(t)||(r=Wu(t)).type!==e)throw new nd("Incompatible receiver, "+e+" required");return r}}},dd=Ai,hd=Ko,md=Function.prototype,fd=dd&&Object.getOwnPropertyDescriptor,gd=hd(md,"name"),yd={EXISTS:gd,PROPER:gd&&"something"===function(){}.name,CONFIGURABLE:gd&&(!dd||dd&&fd(md,"name").configurable)},vd=cl,bd=function(e,t,r,s){return s&&s.enumerable?e[t]=r:vd(e,t,r),e},xd=ni,wd=Ei,$d=Yi,Sd=Kc,Ed=_l,kd=bd,Ad=ca("iterator"),Od=!1;[].keys&&("next"in(pd=[].keys())?(cd=Ed(Ed(pd)))!==Object.prototype&&(ld=cd):Od=!0);var jd=!$d(ld)||xd((function(){var e={};return ld[Ad].call(e)!==e}));wd((ld=jd?{}:Sd(ld))[Ad])||kd(ld,Ad,(function(){return this}));var Td={IteratorPrototype:ld,BUGGY_SAFARI_ITERATORS:Od},Pd=$p,Cd=fp?{}.toString:function(){return"[object "+Pd(this)+"]"},Id=fp,_d=Ga.f,Rd=cl,Fd=Ko,Md=Cd,Ld=ca("toStringTag"),Dd=function(e,t,r,s){var n=r?e:e&&e.prototype;n&&(Fd(n,Ld)||_d(n,Ld,{configurable:!0,value:t}),s&&!Id&&Rd(n,"toString",Md))},Bd=Td.IteratorPrototype,qd=Kc,Nd=Mi,Ud=Dd,zd=pp,Hd=function(){return this},Vd=wl,Wd=Ti,Gd=_l,Jd=Dd,Kd=bd,Yd=pp,Xd=yd.PROPER,Zd=Td.BUGGY_SAFARI_ITERATORS,Qd=ca("iterator"),eh=function(){return this},th=function(e,t,r,s,n,i,o){!function(e,t,r,s){var n=t+" Iterator";e.prototype=qd(Bd,{next:Nd(+!s,r)}),Ud(e,n,!1,!0),zd[n]=Hd}(r,t,s);var a,l,c,p=function(e){if(e===n&&f)return f;if(!Zd&&e&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",d=!1,h=e.prototype,m=h[Qd]||h["@@iterator"]||n&&h[n],f=!Zd&&m||p(n),g="Array"===t&&h.entries||m;if(g&&(a=Gd(g.call(new e)))!==Object.prototype&&a.next&&(Jd(a,u,!0,!0),Yd[u]=eh),Xd&&"values"===n&&m&&"values"!==m.name&&(d=!0,f=function(){return Wd(m,this)}),n)if(l={values:p("values"),keys:i?f:p("keys"),entries:p("entries")},o)for(c in l)(Zd||d||!(c in h))&&Kd(h,c,l[c]);else Vd({target:t,proto:!0,forced:Zd||d},l);return o&&h[Qd]!==f&&Kd(h,Qd,f,{name:n}),Yd[t]=f,l},rh=function(e,t){return{value:e,done:t}},sh=Ji,nh=pp,ih=ud;Ga.f;var oh=th,ah=rh,lh=ih.set,ch=ih.getterFor("Array Iterator");oh(Array,"Array",(function(e,t){lh(this,{type:"Array Iterator",target:sh(e),index:0,kind:t})}),(function(){var e=ch(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ah(void 0,!0);switch(e.kind){case"keys":return ah(r,!1);case"values":return ah(t[r],!1)}return ah([r,t[r]],!1)}),"values"),nh.Arguments=nh.Array;var ph=fi,uh=Gl,dh=Xp,hh=Vi,mh=ph("".charAt),fh=ph("".charCodeAt),gh=ph("".slice),yh=function(e){return function(t,r){var s,n,i=dh(hh(t)),o=uh(r),a=i.length;return o<0||o>=a?e?"":void 0:(s=fh(i,o))<55296||s>56319||o+1===a||(n=fh(i,o+1))<56320||n>57343?e?mh(i,o):s:e?gh(i,o,o+2):n-56320+(s-55296<<10)+65536}},vh=(yh(!1),yh(!0)),bh=Xp,xh=ud,wh=th,$h=rh,Sh=xh.set,Eh=xh.getterFor("String Iterator");wh(String,"String",(function(e){Sh(this,{type:"String Iterator",string:bh(e),index:0})}),(function(){var e,t=Eh(this),r=t.string,s=t.index;return s>=r.length?$h(void 0,!0):(e=vh(r,s),t.index+=e.length,$h(e,!1))}));var kh=Xi.AggregateError,Ah=si,Oh=Dd,jh=pp;for(var Th in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})Oh(Ah[Th],Th),jh[Th]=jh.Array;const Ph=Cn(kh);class Ch extends Ph{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Ih extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Ch,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class _h extends Ih{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}class Rh extends Ih{}class Fh extends Rh{}var Mh=function(){return!1},Lh=function(){return!0};function Dh(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Bh(e){return function t(r){return 0===arguments.length||Dh(r)?t:e.apply(this,arguments)}}function qh(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return Dh(r)?t:Bh((function(t){return e(r,t)}));default:return Dh(r)&&Dh(s)?t:Dh(r)?Bh((function(t){return e(t,s)})):Dh(s)?Bh((function(t){return e(r,t)})):e(r,s)}}}function Nh(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,l){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,l,c){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,l,c,p){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Uh(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!Dh(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),s[o]=l,Dh(l)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):Nh(Math.max(0,i),Uh(e,s,r))}}var zh=qh((function(e,t){return 1===e?Bh(t):Nh(e,Uh(e,[],t))}));function Hh(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return Dh(r)?t:qh((function(t,s){return e(r,t,s)}));case 2:return Dh(r)&&Dh(s)?t:Dh(r)?qh((function(t,r){return e(t,s,r)})):Dh(s)?qh((function(t,s){return e(r,t,s)})):Bh((function(t){return e(r,s,t)}));default:return Dh(r)&&Dh(s)&&Dh(n)?t:Dh(r)&&Dh(s)?qh((function(t,r){return e(t,r,n)})):Dh(r)&&Dh(n)?qh((function(t,r){return e(t,s,r)})):Dh(s)&&Dh(n)?qh((function(t,s){return e(r,t,s)})):Dh(r)?Bh((function(t){return e(t,s,n)})):Dh(s)?Bh((function(t){return e(r,t,n)})):Dh(n)?Bh((function(t){return e(r,s,t)})):e(r,s,n)}}}const Vh=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Wh(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!Vh(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function Gh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Jh=function(){return this.xf["@@transducer/init"]()},Kh=function(e){return this.xf["@@transducer/result"](e)};var Yh=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Gh(this.xf["@@transducer/step"](e,!1))),e},e}();var Xh=qh(Wh(["all"],(function(e){return function(t){return new Yh(e,t)}}),(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function Zh(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Qh(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function em(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const tm="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var rm=Object.prototype.toString,sm=function(){return"[object Arguments]"===rm.call(arguments)?function(e){return"[object Arguments]"===rm.call(e)}:function(e){return em("callee",e)}}(),nm=!{toString:null}.propertyIsEnumerable("toString"),im=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],om=function(){return arguments.propertyIsEnumerable("length")}(),am=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},lm="function"!=typeof Object.keys||om?Bh((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=om&&sm(e);for(t in e)!em(t,e)||n&&"length"===t||(s[s.length]=t);if(nm)for(r=im.length-1;r>=0;)em(t=im[r],e)&&!am(s,t)&&(s[s.length]=t),r-=1;return s})):Bh((function(e){return Object(e)!==e?[]:Object.keys(e)})),cm=Bh((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function pm(e,t,r,s){var n=Zh(e);function i(e,t){return um(e,t,r.slice(),s.slice())}return!Qh((function(e,t){return!Qh(i,t,e)}),Zh(t),n)}function um(e,t,r,s){if(tm(e,t))return!0;var n=cm(e);if(n!==cm(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(n){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!tm(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!tm(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=r.length-1;i>=0;){if(r[i]===e)return s[i]===t;i-=1}switch(n){case"Map":return e.size===t.size&&pm(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&pm(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=lm(e);if(o.length!==lm(t).length)return!1;var a=r.concat([e]),l=s.concat([t]);for(i=o.length-1;i>=0;){var c=o[i];if(!em(c,t)||!um(t[c],e[c],a,l))return!1;i-=1}return!0}var dm=qh((function(e,t){return um(e,t,[],[])}));function hm(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(dm(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function mm(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function fm(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var gm=function(e){return(e<10?"0":"")+e},ym="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+gm(e.getUTCMonth()+1)+"-"+gm(e.getUTCDate())+"T"+gm(e.getUTCHours())+":"+gm(e.getUTCMinutes())+":"+gm(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function vm(e){return function(){return!e.apply(this,arguments)}}function bm(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function xm(e){return"[object Object]"===Object.prototype.toString.call(e)}var wm=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=Kh,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();var $m=qh(Wh(["fantasy-land/filter","filter"],(function(e){return function(t){return new wm(e,t)}}),(function(e,t){return xm(t)?bm((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},lm(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)}))),Sm=qh((function(e,t){return $m(vm(e),t)}));function Em(e,t){var r=function(r){var s=t.concat([e]);return hm(r,s)?"<Circular>":Em(r,s)},s=function(e,t){return mm((function(t){return fm(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+mm(r,e).join(", ")+"))";case"[object Array]":return"["+mm(r,e).concat(s(e,Sm((function(e){return/^\d+$/.test(e)}),lm(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):fm(ym(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":fm(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,lm(e)).join(", ")+"}"}}var km=Bh((function(e){return Em(e,[])})),Am=qh((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=km(e),o=r(i,km(t));return void 0!==o&&o===i?e:t})),Om=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=Kh,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),jm=qh(Wh(["fantasy-land/map","map"],(function(e){return function(t){return new Om(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return zh(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return bm((function(r,s){return r[s]=e(t[s]),r}),{},lm(t));default:return mm(e,t)}})));const Tm=Number.isInteger||function(e){return(e|0)===e};function Pm(e){return"[object String]"===Object.prototype.toString.call(e)}function Cm(e,t){var r=e<0?t.length+e:e;return Pm(t)?t.charAt(r):t[r]}var Im=qh((function(e,t){if(null!=t)return Tm(e)?Cm(e,t):t[e]})),_m=qh((function(e,t){return jm(Im(e),t)})),Rm=Bh((function(e){return!!Vh(e)||!!e&&"object"==typeof e&&!Pm(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))})),Fm="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Mm(e,t,r){return function(s,n,i){if(Rm(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[Fm])return r(s,n,i[Fm]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}var Lm=qh((function(e,t){return Nh(e.length,(function(){return e.apply(t,arguments)}))}));var Dm=Mm((function(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}),(function(e,t,r,s){return e["@@transducer/result"](r[s](Lm(e["@@transducer/step"],e),t))}),(function(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)})),Bm=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function qm(e){return new Bm(e)}var Nm=Hh((function(e,t,r){return Dm("function"==typeof e?qm(e):e,t,r)})),Um=Bh((function(e){return zh(Nm(Am,0,_m("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),zm=Bh((function(e){return function(){return e}})),Hm=qh((function(e,t){return e&&t})),Vm=Bh((function(e){return zh(Nm(Am,0,_m("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var Wm=Mm(bm,(function(e,t,r,s){return r[s](e,t)}),(function(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t})),Gm=qh((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:Wm((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,jm(r,t))}),[],e)})),Jm=qh((function(e,t){return e.apply(this,t)})),Km=Bh((function(e){return zh(e.length,e)})),Ym=Bh((function(e){return null==e})),Xm=Hh((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!Ym(s)&&em(n,s)&&"object"==typeof s[n]?s[n]:Tm(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Tm(e)&&Vh(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)}));function Zm(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var Qm=qh((function(e,t){var r=zh(e,t);return zh(e,(function(){return bm(Gm,jm(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),ef=Bh((function(e){return Qm(e.length,e)})),tf=qh((function(e,t){return Zm(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ef(Hm)(e,t)}));function rf(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function sf(e,t,r){if(r||(r=new nf),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s=function(t){var s=r.get(e);if(s)return s;for(var n in r.set(e,t),e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};switch(cm(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return rf(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 nf=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var r=this.map[t],s=0;s<r.length;s+=1)if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),of=Bh((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}})),af=ef(Bh((function(e){return!e})));function lf(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function cf(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return Vh(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}var pf=Hh(cf("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),uf=Bh(cf("tail",pf(1,1/0)));function df(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Nh(arguments[0].length,Nm(lf,arguments[0],uf(arguments)))}var hf=Bh((function(e){return Cm(0,e)}));var mf=Bh((function(e){return e})),ff=qh((function(e,t){return zh(Nm(Am,0,_m("length",t)),(function(){var r=arguments,s=this;return e.apply(s,mm((function(e){return e.apply(s,r)}),t))}))})),gf=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(em(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,sf(this.valueAcc)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();var yf=Uh(4,[],Wh([],(function(e,t,r){return function(s){return new gf(e,t,r,s)}}),(function(e,t,r,s){var n=qm((function(s,n){var i=r(n),o=e(em(i,s)?s[i]:sf(t),n);return o&&o["@@transducer/reduced"]?Gh(s):(s[i]=o,s)}));return Dm(n,{},s)}))),vf=qh((function(e,t){return null==t||t!=t?e:t})),bf=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!xf(e,!0,this)},e.prototype.has=function(e){return xf(e,!1,this)},e}();function xf(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!hm(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!hm(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}var wf=qh((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new bf,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r})),$f=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=Kh,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Gh(r):r},e}();var Sf=qh(Wh(["take"],(function(e){return function(t){return new $f(e,t)}}),(function(e,t){return pf(0,e<0?1/0:e,t)})));var Ef=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Dm(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();var kf=qh(Wh([],(function(e){return function(t){return new Ef(e,t)}}),(function(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return pf(0,r+1,t)}))),Af=Bh((function(e){return Cm(-1,e)})),Of=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=Kh,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();var jf=qh(Wh(["dropWhile"],(function(e){return function(t){return new Of(e,t)}}),(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return pf(r,1/0,t)}))),Tf=qh((function(e,t){return e||t})),Pf=qh((function(e,t){return Zm(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ef(Tf)(e,t)})),Cf=Bh((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Vh(e)?[]:Pm(e)?"":xm(e)?{}:sm(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0})),If=Bh((function(e){return zh(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))})),_f=qh(cf("groupBy",yf((function(e,t){return e.push(t),e}),[]))),Rf=qh((function(e,t){if(0===e.length||Ym(t))return!1;for(var r=t,s=0;s<e.length;){if(Ym(r)||!em(e[s],r))return!1;r=r[e[s]],s+=1}return!0})),Ff=qh((function(e,t){return Rf([e],t)})),Mf=function(e,t){switch(arguments.length){case 0:return Mf;case 1:return function t(r){return 0===arguments.length?t:tm(e,r)};default:return tm(e,t)}},Lf=Hh((function(e,t,r){return zh(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))})),Df=qh(hm),Bf=pf(0,-1),qf=qh((function(e,t){return zh(e+1,(function(){var r=arguments[e];if(null!=r&&Zm(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(km(r)+' does not have a method named "'+t+'"')}))})),Nf=Bh((function(e){return null!=e&&dm(e,Cf(e))})),Uf=Bh((function(e){return!Nf(e)})),zf=qf(1,"join");function Hf(e){return"[object Number]"===Object.prototype.toString.call(e)}var Vf=qh((function(e,t){return function(r){return function(s){return jm((function(e){return t(e,s)}),r(e(s)))}}}));function Wf(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=Tm(n)?Cm(n,r):r[n]}return r}var Gf=qh((function(e,t){return bm((function(r,s){return r[s]=e(t[s],s,t),r}),{},lm(t))})),Jf=Hh((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})em(s,t)&&(n[s]=em(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)em(s,r)&&!em(s,n)&&(n[s]=r[s]);return n})),Kf=Hh((function e(t,r,s){return Jf((function(r,s,n){return xm(s)&&xm(n)?e(t,s,n):t(r,s,n)}),r,s)})),Yf=qh((function(e,t){return Kf((function(e,t,r){return r}),e,t)})),Xf=qh((function(e,t){return Xh(vm(e),t)})),Zf=function(e){return{value:e,map:function(t){return Zf(t(e))}}},Qf=Hh((function(e,t,r){return e((function(e){return Zf(t(e))}))(r).value})),eg=qh(Wf),tg=Hh((function(e,t,r){return vf(e,Wf(t,r))})),rg=Hh((function(e,t,r){return e(Wf(t,r))})),sg=qh((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r})),ng=Hh((function(e,t,r){return dm(e,Im(t,r))})),ig=Hh((function(e,t,r){return vf(e,Im(t,r))})),og=Hh((function(e,t,r){return e(Im(t,r))})),ag=qh((function(e,t){if(!Hf(e)||!Hf(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r})),lg=Bh(Gh),cg=Hh((function(e,t,r){return r.replace(e,t)})),pg=qh((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),ug=qf(1,"split"),dg=qh((function(e,t){return dm(Sf(e.length,t),e)})),hg=qh((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+km(e));var r;return rf(e).test(t)})),mg=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Jh,e.prototype["@@transducer/result"]=Kh,e.prototype["@@transducer/step"]=function(e,t){return Qh(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();var fg=qh(Wh([],(function(e){return function(t){return new mg(e,t)}}),(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)Qh(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}))),gg=Hh((function(e,t,r){return e(r)?t(r):r})),yg=zm(void 0),vg=dm(yg()),bg=af(vg),xg=dm(null),wg=af(xg),$g=af(Ym),Sg=zh(1,df(cm,Mf("GeneratorFunction"))),Eg=zh(1,df(cm,Mf("AsyncFunction"))),kg=Vm([df(cm,Mf("Function")),Sg,Eg]),Ag=zh(1,kg(Array.isArray)?Array.isArray:df(cm,Mf("Array"))),Og=tf(Ag,Nf),jg=tf(Ag,Uf),Tg=zh(1,df(cm,Mf("String"))),Pg=dm("");function Cg(e){return Cg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cg(e)}var Ig=function(e){return"object"===Cg(e)},_g=af(zh(1,tf(wg,Pf(Ig,kg)))),Rg=Um([Tg,_g,Uf]),Fg=af(kg),Mg=zh(1,tf(wg,Ig)),Lg=df(cm,Mf("Object")),Dg=df(km,dm(km(Object))),Bg=rg(tf(kg,Dg),["constructor"]),qg=zh(1,(function(e){if(!Mg(e)||!Lg(e))return!1;var t=Object.getPrototypeOf(e);return!!xg(t)||Bg(t)})),Ng=tf(zh(1,df(cm,Mf("Number"))),isFinite),Ug=zh(1,Ng),zg=tf(kg(Number.isFinite)?zh(1,Lm(Number.isFinite,Number)):Ug,ff(dm,[Math.floor,mf])),Hg=zh(1,zg),Vg=kg(Number.isInteger)?zh(1,Lm(Number.isInteger,Number)):Hg,Wg=zh(1,df(cm,Mf("RegExp")));function Gg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Jg,Kg,Yg=df(pg(of((function(e,t){return e.length>t.length}))),hf,Im("length")),Xg=Km((function(e,t,r){var s=r.apply(void 0,function(e){return function(e){if(Array.isArray(e))return Gg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gg(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e));return $g(s)?lg(s):t})),Zg=Lf(jg,(function(e){var t=Yg(e);return zh(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return Nm(Xg(r),void 0,e)}))}),yg),Qg=If(Df),ey=zh(3,(function(e,t,r){var s=eg(e,r),n=eg(Bf(e),r);if(!Fg(s)&&!Og(e)){var i=Lm(s,n);return Jm(i,t)}})),ty=gg(Tg,cg(/[.*+?^${}()|[\]\\-]/g,"\\$&")),ry=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))},sy=zh(3,(function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),ry(r,"str"),ry(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var s=new RegExp(Wg(e)?e:ty(e),"g");return cg(s,t,r)})),ny=qf(2,"replaceAll"),iy=kg(String.prototype.replaceAll)?ny:sy,oy=Km((function(e,t){return df(ug(""),kf(Qg(e)),zf(""))(t)})),ay=Km((function(e,t){return df(ug(""),jf(Qg(e)),zf(""))(t)})),ly={exports:{}},cy=ly.exports={};function py(){throw new Error("setTimeout has not been defined")}function uy(){throw new Error("clearTimeout has not been defined")}function dy(e){if(Jg===setTimeout)return setTimeout(e,0);if((Jg===py||!Jg)&&setTimeout)return Jg=setTimeout,setTimeout(e,0);try{return Jg(e,0)}catch(t){try{return Jg.call(null,e,0)}catch(t){return Jg.call(this,e,0)}}}!function(){try{Jg="function"==typeof setTimeout?setTimeout:py}catch(e){Jg=py}try{Kg="function"==typeof clearTimeout?clearTimeout:uy}catch(e){Kg=uy}}();var hy,my=[],fy=!1,gy=-1;function yy(){fy&&hy&&(fy=!1,hy.length?my=hy.concat(my):gy=-1,my.length&&vy())}function vy(){if(!fy){var e=dy(yy);fy=!0;for(var t=my.length;t;){for(hy=my,my=[];++gy<t;)hy&&hy[gy].run();gy=-1,t=my.length}hy=null,fy=!1,function(e){if(Kg===clearTimeout)return clearTimeout(e);if((Kg===uy||!Kg)&&clearTimeout)return Kg=clearTimeout,clearTimeout(e);try{Kg(e)}catch(t){try{return Kg.call(null,e)}catch(t){return Kg.call(this,e)}}}(e)}}function by(e,t){this.fun=e,this.array=t}function xy(){}cy.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];my.push(new by(e,t)),1!==my.length||fy||dy(vy)},by.prototype.run=function(){this.fun.apply(null,this.array)},cy.title="browser",cy.browser=!0,cy.env={},cy.argv=[],cy.version="",cy.versions={},cy.on=xy,cy.addListener=xy,cy.once=xy,cy.off=xy,cy.removeListener=xy,cy.removeAllListeners=xy,cy.emit=xy,cy.prependListener=xy,cy.prependOnceListener=xy,cy.listeners=function(e){return[]},cy.binding=function(e){throw new Error("process.binding is not supported")},cy.cwd=function(){return"/"},cy.chdir=function(e){throw new Error("process.chdir is not supported")},cy.umask=function(){return 0};const wy=Cn(ly.exports),$y=()=>rg(hg(/^win/),["platform"],wy),Sy=e=>{try{const t=new URL(e);return oy(":",t.protocol)}catch{return}},Ey=df(Sy,bg),ky=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},Ay=e=>{if(wy.browser)return!1;const t=Sy(e);return vg(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Oy=e=>{const t=Sy(e);return"http"===t||"https"===t},jy=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=ig(!1,"keepFileProtocol",t),n=ig($y,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=iy("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Ty=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;$y()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r},Py=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Cy=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Iy=()=>{if(wy.browser)return Cy(globalThis.location.href);const e=wy.cwd(),t=Af(e);return["/","\\"].includes(t)?e:e+($y()?"\\":"/")},_y=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},Ry=e=>{if(Ay(e))return Ty(jy(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Fy=e=>Ay(e)?jy(e):decodeURI(e),My=Object.freeze(Object.defineProperty({__proto__:null,cwd:Iy,fromFileSystemPath:Ty,getExtension:ky,getHash:Py,getProtocol:Sy,hasProtocol:Ey,isFileSystemPath:Ay,isHttpUrl:Oy,isURI:e=>{try{return new URL(e)&&!0}catch{return!1}},resolve:_y,sanitize:Ry,stripHash:Cy,toFileSystemPath:jy,unsanitize:Fy},Symbol.toStringTag,{value:"Module"}));let Ly=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return Tg(this.uri)?ky(this.uri):""}toString(){return"string"==typeof this.data?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(cm(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class Dy{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=Tg(e)?e:e.uri;return bg(this.find((e=>e.uri===t)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}}const By={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:mf,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},qy=Vf(eg(["resolve","baseURI"]),Xm(["resolve","baseURI"])),Ny=e=>Pg(e)?Iy():e,Uy=(e,t)=>{const r=Yf(e,t);return Qf(qy,Ny,r)};class zy extends Ih{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}}const Hy=async(e,t,r)=>{const s=await Promise.all(r.map(ey([e],t)));return r.filter(((e,t)=>s[t]))},Vy=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new zy("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};class Wy extends Ih{}class Gy extends Ih{}class Jy extends Gy{}class Ky extends Jy{}var Yy="object"==typeof global&&global&&global.Object===Object&&global,Xy=Yy,Zy="object"==typeof self&&self&&self.Object===Object&&self,Qy=Xy||Zy||Function("return this")(),ev=Qy.Symbol,tv=ev,rv=Object.prototype,sv=rv.hasOwnProperty,nv=rv.toString,iv=tv?tv.toStringTag:void 0,ov=Object.prototype.toString,av=function(e){var t=sv.call(e,iv),r=e[iv];try{e[iv]=void 0;var s=!0}catch(e){}var n=nv.call(e);return s&&(t?e[iv]=r:delete e[iv]),n},lv=ev?ev.toStringTag:void 0,cv=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":lv&&lv in Object(e)?av(e):function(e){return ov.call(e)}(e)},pv=Array.isArray,uv=function(e){return null!=e&&"object"==typeof e},dv=cv,hv=pv,mv=uv,fv=cv,gv=uv,yv=cv,vv=uv,bv=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},xv=function(e,t){return e===t||e!=e&&t!=t},wv=xv,$v=function(e,t){for(var r=e.length;r--;)if(wv(e[r][0],t))return r;return-1},Sv=$v,Ev=Array.prototype.splice,kv=$v,Av=$v,Ov=$v,jv=function(){this.u=[],this.size=0},Tv=function(e){var t=this.u,r=Sv(t,e);return!(r<0||(r==t.length-1?t.pop():Ev.call(t,r,1),--this.size,0))},Pv=function(e){var t=this.u,r=kv(t,e);return r<0?void 0:t[r][1]},Cv=function(e,t){var r=this.u,s=Ov(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this};function Iv(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}Iv.prototype.clear=jv,Iv.prototype.delete=Tv,Iv.prototype.get=Pv,Iv.prototype.has=function(e){return Av(this.u,e)>-1},Iv.prototype.set=Cv;var _v=Iv,Rv=_v,Fv=cv,Mv=bv,Lv=function(e){if(!Mv(e))return!1;var t=Fv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Dv=Qy.o,Bv=function(){var e=/[^.]+$/.exec(Dv&&Dv.keys&&Dv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qv=Function.prototype.toString,Nv=function(e){if(null!=e){try{return qv.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Uv=Lv,zv=function(e){return!!Bv&&Bv in e},Hv=bv,Vv=Nv,Wv=/^\[object .+?Constructor\]$/,Gv=Function.prototype,Jv=Object.prototype,Kv=Gv.toString,Yv=Jv.hasOwnProperty,Xv=RegExp("^"+Kv.call(Yv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zv=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Hv(e)||zv(e))&&(Uv(e)?Xv:Wv).test(Vv(e))}(r)?r:void 0},Qv=Zv(Qy,"Map"),eb=Zv(Object,"create"),tb=eb,rb=eb,sb=Object.prototype.hasOwnProperty,nb=eb,ib=Object.prototype.hasOwnProperty,ob=eb,ab=function(){this.u=tb?tb(null):{},this.size=0},lb=function(e){var t=this.has(e)&&delete this.u[e];return this.size-=t?1:0,t},cb=function(e){var t=this.u;if(rb){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return sb.call(t,e)?t[e]:void 0},pb=function(e){var t=this.u;return nb?void 0!==t[e]:ib.call(t,e)},ub=function(e,t){var r=this.u;return this.size+=this.has(e)?0:1,r[e]=ob&&void 0===t?"__lodash_hash_undefined__":t,this};function db(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}db.prototype.clear=ab,db.prototype.delete=lb,db.prototype.get=cb,db.prototype.has=pb,db.prototype.set=ub;var hb=db,mb=_v,fb=Qv,gb=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},yb=function(e,t){var r=e.u;return gb(t)?r["string"==typeof t?"string":"hash"]:r.map},vb=yb,bb=yb,xb=yb,wb=yb,$b=function(e,t){var r=wb(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this};function Sb(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}Sb.prototype.clear=function(){this.size=0,this.u={hash:new hb,map:new(fb||mb),string:new hb}},Sb.prototype.delete=function(e){var t=vb(this,e).delete(e);return this.size-=t?1:0,t},Sb.prototype.get=function(e){return bb(this,e).get(e)},Sb.prototype.has=function(e){return xb(this,e).has(e)},Sb.prototype.set=$b;var Eb=Sb,kb=_v,Ab=Qv,Ob=Eb,jb=_v,Tb=function(){this.u=new Rv,this.size=0},Pb=function(e){var t=this.u,r=t.delete(e);return this.size=t.size,r},Cb=function(e){return this.u.get(e)},Ib=function(e){return this.u.has(e)},_b=function(e,t){var r=this.u;if(r instanceof kb){var s=r.u;if(!Ab||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.u=new Ob(s)}return r.set(e,t),this.size=r.size,this};function Rb(e){var t=this.u=new jb(e);this.size=t.size}Rb.prototype.clear=Tb,Rb.prototype.delete=Pb,Rb.prototype.get=Cb,Rb.prototype.has=Ib,Rb.prototype.set=_b;var Fb=Rb,Mb=Eb;function Lb(e){var t=-1,r=null==e?0:e.length;for(this.u=new Mb;++t<r;)this.add(e[t])}Lb.prototype.add=Lb.prototype.push=function(e){return this.u.set(e,"__lodash_hash_undefined__"),this},Lb.prototype.has=function(e){return this.u.has(e)};var Db=Lb,Bb=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1},qb=function(e,t){return e.has(t)},Nb=function(e,t,r,s,n,i){var o=1&r,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=i.get(e),p=i.get(t);if(c&&p)return c==t&&p==e;var u=-1,d=!0,h=2&r?new Db:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var m=e[u],f=t[u];if(s)var g=o?s(f,m,u,t,e,i):s(m,f,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!Bb(t,(function(e,t){if(!qb(h,t)&&(m===e||n(m,e,r,s,i)))return h.push(t)}))){d=!1;break}}else if(m!==f&&!n(m,f,r,s,i)){d=!1;break}}return i.delete(e),i.delete(t),d},Ub=Qy.Uint8Array,zb=xv,Hb=Nb,Vb=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r},Wb=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Gb=ev?ev.prototype:void 0,Jb=Gb?Gb.valueOf:void 0,Kb=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e},Yb=pv,Xb=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i},Zb=Object.prototype.propertyIsEnumerable,Qb=Object.getOwnPropertySymbols,ex=Qb?function(e){return null==e?[]:(e=Object(e),Xb(Qb(e),(function(t){return Zb.call(e,t)})))}:function(){return[]},tx=cv,rx=uv,sx=function(e){return rx(e)&&"[object Arguments]"==tx(e)},nx=uv,ix=Object.prototype,ox=ix.hasOwnProperty,ax=ix.propertyIsEnumerable,lx=sx(function(){return arguments}())?sx:function(e){return nx(e)&&ox.call(e,"callee")&&!ax.call(e,"callee")},cx={exports:{}},px=function(){return!1};!function(e,t){var r=Qy,s=px,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n?r.Buffer:void 0,a=(o?o.isBuffer:void 0)||s;e.exports=a}(cx,cx.exports);var ux=cx.exports,dx=/^(?:0|[1-9]\d*)$/,hx=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},mx=cv,fx=hx,gx=uv,yx={};yx["[object Float32Array]"]=yx["[object Float64Array]"]=yx["[object Int8Array]"]=yx["[object Int16Array]"]=yx["[object Int32Array]"]=yx["[object Uint8Array]"]=yx["[object Uint8ClampedArray]"]=yx["[object Uint16Array]"]=yx["[object Uint32Array]"]=!0,yx["[object Arguments]"]=yx["[object Array]"]=yx["[object ArrayBuffer]"]=yx["[object Boolean]"]=yx["[object DataView]"]=yx["[object Date]"]=yx["[object Error]"]=yx["[object Function]"]=yx["[object Map]"]=yx["[object Number]"]=yx["[object Object]"]=yx["[object RegExp]"]=yx["[object Set]"]=yx["[object String]"]=yx["[object WeakMap]"]=!1;var vx={exports:{}};!function(e,t){var r=Yy,s=t&&!t.nodeType&&t,n=s&&e&&!e.nodeType&&e,i=n&&n.exports===s&&r.process,o=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(vx,vx.exports);var bx=vx.exports,xx=function(e){return gx(e)&&fx(e.length)&&!!yx[mx(e)]},wx=function(e){return function(t){return e(t)}},$x=bx&&bx.isTypedArray,Sx=$x?wx($x):xx,Ex=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s},kx=lx,Ax=pv,Ox=ux,jx=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&dx.test(e))&&e>-1&&e%1==0&&e<t},Tx=Sx,Px=Object.prototype.hasOwnProperty,Cx=Object.prototype,Ix=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),_x=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Cx)},Rx=Ix,Fx=Object.prototype.hasOwnProperty,Mx=Lv,Lx=hx,Dx=function(e,t){var r=Ax(e),s=!r&&kx(e),n=!r&&!s&&Ox(e),i=!r&&!s&&!n&&Tx(e),o=r||s||n||i,a=o?Ex(e.length,String):[],l=a.length;for(var c in e)!t&&!Px.call(e,c)||o&&("length"==c||n&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||jx(c,l))||a.push(c);return a},Bx=function(e,t,r){var s=t(e);return Yb(e)?s:Kb(s,r(e))},qx=ex,Nx=function(e){return function(e){return null!=e&&Lx(e.length)&&!Mx(e)}(e)?Dx(e):function(e){if(!_x(e))return Rx(e);var t=[];for(var r in Object(e))Fx.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)},Ux=function(e){return Bx(e,Nx,qx)},zx=Object.prototype.hasOwnProperty,Hx=Zv(Qy,"DataView"),Vx=Qv,Wx=Zv(Qy,"Promise"),Gx=Zv(Qy,"Set"),Jx=Zv(Qy,"WeakMap"),Kx=cv,Yx=Nv,Xx=Yx(Hx),Zx=Yx(Vx),Qx=Yx(Wx),ew=Yx(Gx),tw=Yx(Jx),rw=Kx;(Hx&&"[object DataView]"!=rw(new Hx(new ArrayBuffer(1)))||Vx&&"[object Map]"!=rw(new Vx)||Wx&&"[object Promise]"!=rw(Wx.resolve())||Gx&&"[object Set]"!=rw(new Gx)||Jx&&"[object WeakMap]"!=rw(new Jx))&&(rw=function(e){var t=Kx(e),r="[object Object]"==t?e.constructor:void 0,s=r?Yx(r):"";if(s)switch(s){case Xx:return"[object DataView]";case Zx:return"[object Map]";case Qx:return"[object Promise]";case ew:return"[object Set]";case tw:return"[object WeakMap]"}return t});var sw=Fb,nw=Nb,iw=function(e,t,r,s,n,i,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Ub(e),new Ub(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return zb(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Vb;case"[object Set]":var l=1&s;if(a||(a=Wb),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;s|=2,o.set(e,t);var p=Hb(a(e),a(t),s,n,i,o);return o.delete(e),p;case"[object Symbol]":if(Jb)return Jb.call(e)==Jb.call(t)}return!1},ow=function(e,t,r,s,n,i){var o=1&r,a=Ux(e),l=a.length;if(l!=Ux(t).length&&!o)return!1;for(var c=l;c--;){var p=a[c];if(!(o?p in t:zx.call(t,p)))return!1}var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var m=o;++c<l;){var f=e[p=a[c]],g=t[p];if(s)var y=o?s(g,f,p,t,e,i):s(f,g,p,e,t,i);if(!(void 0===y?f===g||n(f,g,r,s,i):y)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h},aw=rw,lw=pv,cw=ux,pw=Sx,uw="[object Object]",dw=Object.prototype.hasOwnProperty,hw=uv,mw=function e(t,r,s,n,i){return t===r||(null==t||null==r||!hw(t)&&!hw(r)?t!=t&&r!=r:function(e,t,r,s,n,i){var o=lw(e),a=lw(t),l=o?"[object Array]":aw(e),c=a?"[object Array]":aw(t),p=(l="[object Arguments]"==l?uw:l)==uw,u=(c="[object Arguments]"==c?uw:c)==uw,d=l==c;if(d&&cw(e)){if(!cw(t))return!1;o=!0,p=!1}if(d&&!p)return i||(i=new sw),o||pw(e)?nw(e,t,r,s,n,i):iw(e,t,l,r,s,n,i);if(!(1&r)){var h=p&&dw.call(e,"__wrapped__"),m=u&&dw.call(t,"__wrapped__");if(h||m){var f=h?e.value():e,g=m?t.value():t;return i||(i=new sw),n(f,g,r,s,i)}}return!!d&&(i||(i=new sw),ow(e,t,r,s,n,i))}(t,r,s,n,e,i))},fw=class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}},gw=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};const yw=gw;function vw(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}let bw=class e{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(t,r){return t=vw(t),new e(this.elements.filter(t,r))}reject(t,r){return t=vw(t),new e(this.elements.filter(yw(t),r))}find(e,t){return e=vw(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}};"undefined"!=typeof Symbol&&(bw.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()});var xw=bw;const ww=function(e,t){return mw(e,t)},$w=fw,Sw=xw;var Ew=class e{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof e?this.content.toValue():this.content instanceof $w?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new Sw;const s=(e,t)=>(e.push(t),e),n=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof $w&&(r.content.key&&n(e,r.content.key),r.content.value&&n(e,r.content.value)),e};return this.content&&(this.content.element&&n(r,this.content),Array.isArray(this.content)&&this.content.reduce(n,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return ww(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(t){if(t instanceof e)this._content=t;else if(t instanceof Sw)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof $w)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new Sw;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new Sw(this.content);if(this.content instanceof $w){const e=new Sw([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof e?new Sw([this.content]):new Sw}get recursiveChildren(){const e=new Sw;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}};const kw=Ew;const Aw=Ew,Ow=Ew,jw=Ew,Tw=gw,Pw=Ew,Cw=xw;let Iw=class extends Pw{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new Cw(this.content.filter(e,t))}reject(e,t){return this.filter(Tw(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new Cw(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}};Iw.empty=function(){return new this},Iw["fantasy-land/empty"]=Iw.empty,"undefined"!=typeof Symbol&&(Iw.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()});var _w=Iw;const Rw=fw,Fw=Ew;var Mw=class extends Fw{constructor(e,t,r,s){super(new Rw,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}};const Lw=gw,Dw=xw;var Bw=class e extends Dw{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(t,r){return new e(this.elements.filter((e=>t.bind(r)(e.value,e.key,e))))}reject(e,t){return this.filter(Lw(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}};const qw=gw,Nw=bv,Uw=_w,zw=Mw,Hw=Bw;const Vw=Ew,Ww=Ew,Gw=Ew,Jw=class extends kw{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}},Kw=class extends Aw{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},Yw=class extends Ow{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}},Xw=class extends jw{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}},Zw=_w,Qw=Mw,e$=class extends Uw{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(Nw(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new zw(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new Hw(this.content).filter(e,t)}reject(e,t){return this.filter(qw(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}},t$=class extends Ww{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}},r$=xw,s$=Bw,n$=fw;function i$(e){return e instanceof Gw?e:"string"==typeof e?new Kw(e):"number"==typeof e?new Yw(e):"boolean"==typeof e?new Xw(e):null===e?new Jw:Array.isArray(e)?new Zw(e.map(i$)):"object"==typeof e?new e$(e):e}Gw.prototype.ObjectElement=e$,Gw.prototype.RefElement=t$,Gw.prototype.MemberElement=Qw,Gw.prototype.refract=i$,r$.prototype.refract=i$;var o$={Element:Gw,NullElement:Jw,StringElement:Kw,NumberElement:Yw,BooleanElement:Xw,ArrayElement:Zw,MemberElement:Qw,ObjectElement:e$,LinkElement:class extends Vw{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}},RefElement:t$,refract:i$,ArraySlice:r$,ObjectSlice:s$,KeyValuePair:n$};const a$=function(e){return null===e},l$=function(e){return"string"==typeof e||!hv(e)&&mv(e)&&"[object String]"==dv(e)},c$=function(e){return"number"==typeof e||gv(e)&&"[object Number]"==fv(e)},p$=function(e){return!0===e||!1===e||vv(e)&&"[object Boolean]"==yv(e)},u$=bv,d$=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}},h$=o$;let m$=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=h$.Element,this.KeyValuePair=h$.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",h$.NullElement).register("string",h$.StringElement).register("number",h$.NumberElement).register("boolean",h$.BooleanElement).register("array",h$.ArrayElement).register("object",h$.ObjectElement).register("member",h$.MemberElement).register("ref",h$.RefElement).register("link",h$.LinkElement),this.detect(a$,h$.NullElement,!1).detect(l$,h$.StringElement,!1).detect(c$,h$.NumberElement,!1).detect(p$,h$.BooleanElement,!1).detect(Array.isArray,h$.ArrayElement,!1).detect(u$,h$.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new d$(this)}};d$.prototype.Namespace=m$;var f$=m$,g$=fw,y$=o$.ArraySlice,v$=o$.ObjectSlice,b$=o$.Element,x$=o$.StringElement,w$=o$.NumberElement,$$=o$.BooleanElement,S$=o$.NullElement,E$=o$.ArrayElement,k$=o$.ObjectElement,A$=o$.MemberElement,O$=o$.RefElement,j$=o$.LinkElement,T$=o$.refract;class P$ extends x${constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class C$ extends x${constructor(e,t,r){super(e,t,r),this.element="comment"}}class I$ extends E${constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(vg(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}class _$ extends E${constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new E$([e.start.row,e.start.column,e.start.char]),r=new E$([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const R$=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],F$=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,M$=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&"function"==typeof t.primitive&&t.primitive()===e,L$=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof E$)&&t.classes.includes(e),D$=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,B$=e=>e({hasMethod:R$,hasBasicElementProps:F$,primitiveEq:M$,isElementType:D$,hasClass:L$}),q$=B$((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof b$||e(r)&&t(void 0,r))),N$=B$((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof x$||e(r)&&t("string",r))),U$=B$((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof w$||e(r)&&t("number",r))),z$=B$((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof S$||e(r)&&t("null",r))),H$=B$((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof $$||e(r)&&t("boolean",r))),V$=B$((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof k$||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),W$=B$((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof E$&&!(s instanceof k$)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),G$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof A$||e(s)&&t("member",s)&&r(void 0,s))),J$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof j$||e(s)&&t("link",s)&&r(void 0,s))),K$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof O$||e(s)&&t("ref",s)&&r(void 0,s))),Y$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof P$||e(s)&&t("annotation",s)&&r("array",s))),X$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof C$||e(s)&&t("comment",s)&&r("string",s))),Z$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof I$||e(s)&&t("parseResult",s)&&r("array",s))),Q$=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _$||e(s)&&t("sourceMap",s)&&r("array",s))),eS=e=>D$("object",e)||D$("array",e)||D$("boolean",e)||D$("number",e)||D$("string",e)||D$("null",e)||D$("member",e),tS=e=>Q$(e.meta.get("sourceMap")),rS=(e,t)=>0===e.length||Xh(Qg(t.classes.toValue()),e),sS=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:tS,includesClasses:rS,includesSymbols:(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!W$(r)&&Xh(Qg(r.toValue()),e)},isAnnotationElement:Y$,isArrayElement:W$,isBooleanElement:H$,isCommentElement:X$,isElement:q$,isLinkElement:J$,isMemberElement:G$,isNullElement:z$,isNumberElement:U$,isObjectElement:V$,isParseResultElement:Z$,isPrimitiveElement:eS,isRefElement:K$,isSourceMapElement:Q$,isStringElement:N$},Symbol.toStringTag,{value:"Module"}));class nS extends f${constructor(){super(),this.register("annotation",P$),this.register("comment",C$),this.register("parseResult",I$),this.register("sourceMap",_$)}}const iS=new nS,oS=e=>{const t=new nS;return qg(e)&&t.use(e),t},aS=()=>({predicates:{...sS},namespace:iS}),lS=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},cS={},pS=e=>null==e?void 0:e.type,uS=e=>"string"==typeof pS(e),dS=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),hS=(e,{visitFnGetter:t=lS,nodeTypeGetter:r=pS,breakSymbol:s=cS,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),l=new Array(e.length).fill(a);return{enter(c,p,u,d,h,m){let f=c,g=!1;const y={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let c=0;c<e.length;c+=1)if(l[c]===a){const a=t(e[c],r(f),!1);if("function"==typeof a){const t=a.call(e[c],f,p,u,d,h,y);if("function"==typeof(null==t?void 0:t.then))throw new _h("Async visitor not supported in sync mode",{visitor:e[c],visitFn:a});if(t===i)l[c]=f;else if(t===s)l[c]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,g=!0}}}}return g?f:void 0},leave(n,o,c,p,u,d){let h=n;const m={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(l[n]===a){const a=t(e[n],r(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,c,p,u,m);if("function"==typeof(null==t?void 0:t.then))throw new _h("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)l[n]=s;else if(void 0!==t&&t!==i)return t}}else l[n]===h&&(l[n]=a)}}};hS[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=lS,nodeTypeGetter:r=pS,breakSymbol:s=cS,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),l=new Array(e.length).fill(a);return{async enter(c,p,u,d,h,m){let f=c,g=!1;const y={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let c=0;c<e.length;c+=1)if(l[c]===a){const a=t(e[c],r(f),!1);if("function"==typeof a){const t=await a.call(e[c],f,p,u,d,h,y);if(t===i)l[c]=f;else if(t===s)l[c]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,g=!0}}}}return g?f:void 0},async leave(n,o,c,p,u,d){let h=n;const m={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(l[n]===a){const a=t(e[n],r(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,c,p,u,m);if(t===s)l[n]=s;else if(void 0!==t&&t!==i)return t}}else l[n]===h&&(l[n]=a)}}};const mS=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=cS,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=lS,nodeTypeGetter:l=pS,nodePredicate:c=uS,nodeCloneFn:p=dS,detectCycles:u=!0}={})=>{const d=r||{};let h,m,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const x=[],w=[];do{y+=1;const e=y===g.length;let r;const E=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=m,m=w.pop(),E)if(f){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=p(b);for(const[e,t]of v)b[e]=t}y=h.index,g=h.keys,v=h.edits,f=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=f?y:g[y],b=m[r],b===i||void 0===b)continue;x.push(r)}let k;if(!Array.isArray(b)){var $;if(!c(b))throw new _h(`Invalid AST Node: ${String(b)}`,{node:b});if(u&&w.includes(b)){x.pop();continue}const i=a(t,l(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,m,x,w):m&&(m[r]=t),e||(b=t)}};k=i.call(t,b,r,m,x,w,n)}if("function"==typeof(null===($=k)||void 0===$?void 0:$.then))throw new _h("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(k===n)break;if(k===o){if(!e){x.pop();continue}}else if(void 0!==k&&(v.push([r,k]),!e)){if(!c(k)){x.pop();continue}b=k}}var S;void 0===k&&E&&v.push([r,b]),e||(h={inArray:f,index:y,keys:g,edits:v,prev:h},f=Array.isArray(b),g=f?b:null!==(S=d[l(b)])&&void 0!==S?S:[],y=-1,v=[],m!==i&&void 0!==m&&w.push(m),m=b)}while(void 0!==h);return 0!==v.length?v[v.length-1][1]:e};mS[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=cS,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=lS,nodeTypeGetter:l=pS,nodePredicate:c=uS,nodeCloneFn:p=dS,detectCycles:u=!0}={})=>{const d=r||{};let h,m,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const x=[],w=[];do{y+=1;const e=y===g.length;let r;const S=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=m,m=w.pop(),S)if(f){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=p(b);for(const[e,t]of v)b[e]=t}y=h.index,g=h.keys,v=h.edits,f=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=f?y:g[y],b=m[r],b===i||void 0===b)continue;x.push(r)}let E;if(!Array.isArray(b)){if(!c(b))throw new _h(`Invalid AST Node: ${String(b)}`,{node:b});if(u&&w.includes(b)){x.pop();continue}const i=a(t,l(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,m,x,w):m&&(m[r]=t),e||(b=t)}};E=await i.call(t,b,r,m,x,w,n)}if(E===n)break;if(E===o){if(!e){x.pop();continue}}else if(void 0!==E&&(v.push([r,E]),!e)){if(!c(E)){x.pop();continue}b=E}}var $;void 0===E&&S&&v.push([r,b]),e||(h={inArray:f,index:y,keys:g,edits:v,prev:h},f=Array.isArray(b),g=f?b:null!==($=d[l(b)])&&void 0!==$?$:[],y=-1,v=[],m!==i&&void 0!==m&&w.push(m),m=b)}while(void 0!==h);return 0!==v.length?v[v.length-1][1]:e};class fS extends _h{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class gS extends fS{}class yS extends fS{}const vS=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof g$){const{key:t,value:n}=e,i=q$(t)?vS(t,s):t,o=q$(n)?vS(n,s):n,a=new g$(i,o);return r.set(e,a),a}if(e instanceof v$){const t=e=>vS(e,s),n=[...e].map(t),i=new v$(n);return r.set(e,i),i}if(e instanceof y$){const t=e=>vS(e,s),n=[...e].map(t),i=new y$(n);return r.set(e,i),i}if(q$(e)){const t=wS(e);if(r.set(e,t),e.content)if(q$(e.content))t.content=vS(e.content,s);else if(e.content instanceof g$)t.content=vS(e.content,s);else if(Array.isArray(e.content)){const r=e=>vS(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new gS("Value provided to cloneDeep function couldn't be cloned",{value:e})};vS.safe=e=>{try{return vS(e)}catch{return e}};const bS=e=>{const{key:t,value:r}=e;return new g$(t,r)},xS=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=vS(e.meta)),e.attributes.length>0&&(t._attributes=vS(e.attributes)),q$(e.content)){const r=e.content;t.content=xS(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof g$?t.content=bS(e.content):t.content=e.content;return t},wS=e=>{if(e instanceof g$)return bS(e);if(e instanceof v$)return(e=>{const t=[...e];return new v$(t)})(e);if(e instanceof y$)return(e=>{const t=[...e];return new y$(t)})(e);if(q$(e))return xS(e);throw new yS("Value provided to cloneShallow function couldn't be cloned",{value:e})};wS.safe=e=>{try{return wS(e)}catch{return e}};const $S=e=>V$(e)?"ObjectElement":W$(e)?"ArrayElement":G$(e)?"MemberElement":N$(e)?"StringElement":H$(e)?"BooleanElement":U$(e)?"NumberElement":z$(e)?"NullElement":J$(e)?"LinkElement":K$(e)?"RefElement":void 0,SS=e=>q$(e)?wS(e):dS(e),ES=df($S,Tg),kS={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class AS{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Mh,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const OS=(e,t,{keyMap:r=kS,...s}={})=>mS(e,t,{keyMap:r,nodeTypeGetter:$S,nodePredicate:ES,nodeCloneFn:SS,...s});OS[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=kS,...s}={})=>mS[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:$S,nodePredicate:ES,nodeCloneFn:SS,...s});const jS={toolboxCreator:aS,visitorOptions:{nodeTypeGetter:$S,exposeEdits:!0}},TS=(e,t,r={})=>{if(0===t.length)return e;const s=Yf(jS,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),l=hS(a.map(ig({},"visitor")),{...i});a.forEach(ey(["pre"],[]));const c=OS(e,l,i);return a.forEach(ey(["post"],[])),c};TS[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Yf(jS,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),l=hS[Symbol.for("nodejs.util.promisify.custom")],c=OS[Symbol.for("nodejs.util.promisify.custom")],p=l(a.map(ig({},"visitor")),{...i});await Promise.allSettled(a.map(ey(["pre"],[])));const u=await c(e,p,i);return await Promise.allSettled(a.map(ey(["post"],[]))),u};var PS={exports:{}};!function(e){var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},l=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),c={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(c,{DEFAULT_OPTIONS:()=>u,DEFAULT_UUID_LENGTH:()=>p,default:()=>h});var p=6,u={dictionary:"alphanum",shuffle:!0,debug:!1,length:p,counter:0},d=class{constructor(e={}){l(this,"counter"),l(this,"debug"),l(this,"dict"),l(this,"version"),l(this,"dictIndex",0),l(this,"dictRange",[]),l(this,"lowerBound",0),l(this,"upperBound",0),l(this,"dictLength",0),l(this,"uuidLength"),l(this,"_digit_first_ascii",48),l(this,"_digit_last_ascii",58),l(this,"_alpha_lower_first_ascii",97),l(this,"_alpha_lower_last_ascii",123),l(this,"_hex_last_ascii",103),l(this,"_alpha_upper_first_ascii",65),l(this,"_alpha_upper_last_ascii",91),l(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),l(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),l(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),l(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),l(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),l(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),l(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const s=`_${e}_dict_ranges`,n=this._dict_ranges[s];Object.keys(n).forEach((e=>{const s=e;for(this.dictRange=n[s],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}return r})),l(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),l(this,"seq",(()=>this.sequentialUUID())),l(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),l(this,"rnd",((e=this.uuidLength||p)=>this.randomUUID(e))),l(this,"randomUUID",((e=this.uuidLength||p)=>{let t,r,s;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",s=0;s<e;s+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),l(this,"fmt",((e,t)=>this.formattedUUID(e,t))),l(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const s=e.slice(0,2),n=parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)}))})),l(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),l(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),l(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),l(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),l(this,"getVersion",(()=>this.version)),l(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return`${i.substring(0,n)}${r}${i.substring(n)}${n.toString(16)}`})),l(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),s=parseInt(e.slice(2),10);return t[r](s)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,s)=>e.substring(r.length,r.length+s.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(s,s+8),16))})),l(this,"setCounter",(e=>{this.counter=e})),l(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=a(a({},u),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.2.0";const{dictionary:r,shuffle:s,length:n,counter:i}=t;return this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};l(d,"default",d);var h=d;return(s=>((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let o of r(i))n.call(s,o)||undefined===o||e(s,o,{get:()=>i[o],enumerable:!(a=t(i,o))||a.enumerable});return s})(e({},"__esModule",{value:!0}),s))(c)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)}(PS);const CS=Cn(PS.exports);class IS extends _h{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class _S{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new CS({length:e}),this.identityMap=new WeakMap}identify(e){if(!q$(e))throw new IS("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&N$(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new x$(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()}}new _S;class RS extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Fh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Fh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Fh("latest method in MediaTypes class is not yet implemented.")}}const FS=e=>(t,r={})=>((e,{Type:t,plugins:r=[]})=>{const s=new t(e);return q$(e)&&(e.meta.length>0&&(s.meta=vS(e.meta)),e.attributes.length>0&&(s.attributes=vS(e.attributes))),TS(s,r,{toolboxCreator:aS,visitorOptions:{nodeTypeGetter:$S}})})(t,{...r,Type:e});k$.refract=FS(k$),E$.refract=FS(E$),x$.refract=FS(x$),$$.refract=FS($$),S$.refract=FS(S$),w$.refract=FS(w$),j$.refract=FS(j$),O$.refract=FS(O$),P$.refract=FS(P$),C$.refract=FS(C$),I$.refract=FS(I$),_$.refract=FS(_$);const MS=(e,t)=>{const r=new AS({predicate:e,returnOnTrue:cS});return OS(t,r),tg(void 0,[0],r.result)},LS=e=>"string"==typeof(null==e?void 0:e.type)?e.type:$S(e),DS={EphemeralObject:["content"],EphemeralArray:["content"],...kS},BS=(e,t,{keyMap:r=DS,...s}={})=>OS(e,t,{keyMap:r,nodeTypeGetter:LS,nodePredicate:Lh,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});BS[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=DS,...r}={})=>OS[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:LS,nodePredicate:Lh,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class qS{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class NS{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}const US=e=>q$(e)?N$(e)||U$(e)||H$(e)||z$(e)?e.toValue():BS(e,new class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new NS(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new qS(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return N$(e.href)?e.href.toValue():""}}):e,zS=(e,t=new WeakMap)=>(G$(e)?(t.set(e.key,e),zS(e.key,t),t.set(e.value,e),zS(e.value,t)):e.children.forEach((r=>{t.set(r,e),zS(r,t)})),t);class HS{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:zS(this.element);const s=this.edges.get(e);return vg(s)?void 0:(V$(s)?((e,t,r)=>{const s=r.get(e);V$(s)&&(s.content=s.map(((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o)))})(e,t,this.edges):W$(s)?((e,t,r)=>{const s=r.get(e);W$(s)&&(s.content=s.map((n=>n===e?(r.delete(e),r.set(t,s),t):n)))})(e,t,this.edges):G$(s)&&((e,t,r)=>{const s=r.get(e);G$(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}}const VS=(e,t)=>{const r=vf(e,t);return Gf((e=>{if(qg(e)&&Ff("$ref",e)&&og(Tg,"$ref",e)){const t=eg(["$ref"],e),s=ay("#/",t);return eg(s.split("/"),r)}return qg(e)?VS(e,r):e}),e)},WS=(e,t=iS)=>{if(Tg(e))try{return t.fromRefract(JSON.parse(e))}catch{}return qg(e)&&Ff("element",e)?t.fromRefract(e):t.toElement(e)},GS=e=>{const t=e.meta.length>0?vS(e.meta):void 0,r=e.attributes.length>0?vS(e.attributes):void 0;return new e.constructor(void 0,t,r)},JS=(e,t)=>t.clone&&t.isMergeableElement(e)?YS(GS(e),e,t):e,KS={clone:!0,isMergeableElement:e=>V$(e)||W$(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>JS(e,r))),objectElementMerge:(e,t,r)=>{const s=V$(e)?GS(e):GS(t);return V$(e)&&e.forEach(((e,t,n)=>{const i=wS(n);i.value=JS(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=US(n);let a;if(V$(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=wS(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return YS;const r=t.customMerge(e,t);return"function"==typeof r?r:YS})(n,r)(s,t)}else a=wS(i),a.value=JS(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function YS(e,t,r){var s,n,i;const o={...KS,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:KS.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:KS.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:KS.objectElementMerge;const a=W$(t);if(a!==W$(e))return JS(t,o);const l=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return l.meta=(e=>"function"!=typeof e.customMetaMerge?e=>vS(e):e.customMetaMerge)(o)(e.meta,t.meta),l.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vS(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),l}YS.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new k$:e.reduce(((e,r)=>YS(e,r,t)),GS(e[0]))};class XS extends Ih{}class ZS extends XS{}let QS=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};class eE extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(q$(r)&&e(r))return r}}let tE=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};class rE extends Ih{}class sE extends rE{}class nE extends Ih{}class iE extends nE{}class oE extends rE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class aE extends XS{}class lE extends Gy{}class cE extends Wy{}function pE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function uE(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function dE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,i=[],o=!0,a=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pE(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var mE=function(e){throw TypeError(e)},fE=function(e,t,r){return t.has(e)||mE("Cannot "+r)},gE=function(e,t,r){return fE(e,t,"read from private field"),t.get(e)},yE=function(e,t,r){return t.has(e)?mE("Cannot add the same private member more than once"):uE(t,WeakSet)?t.add(e):t.set(e,r)},vE=function(e,t,r,s){return fE(e,t,"write to private field"),t.set(e,r),r},bE=function(e){return Object.prototype.toString.call(e)},xE=function(e){return ArrayBuffer.isView(e)&&!uE(e,DataView)},wE=Array.isArray,$E=Object.getOwnPropertyDescriptor,SE=Object.prototype.propertyIsEnumerable,EE=Object.getOwnPropertySymbols,kE=Object.prototype.hasOwnProperty;function AE(e){for(var t=Object.keys(e),r=EE(e),s=0;s<r.length;s++)SE.call(e,r[s])&&t.push(r[s]);return t}function OE(e,t){var r;return!(null===(r=$E(e,t))||void 0===r?void 0:r.writable)}function jE(e,t){if("object"===(void 0===e?"undefined":hE(e))&&null!==e){var r;if(wE(e))r=[];else if("[object Date]"===bE(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===bE(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===bE(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===bE(e)}(e)||function(e){return"[object Number]"===bE(e)}(e)||function(e){return"[object String]"===bE(e)}(e))r=Object(e);else{if(xE(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?AE:Object.keys,n=!0,i=!1,o=void 0;try{for(var a,l=s(e)[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var c=a.value;r[c]=e[c]}}catch(e){i=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw o}}return r}return e}var TE,PE,CE={includeSymbols:!1,immutable:!1};function IE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:CE,s=[],n=[],i=!0,o=r.includeSymbols?AE:Object.keys,a=!!r.immutable;return function e(l){var c=a?jE(l,r):l,p={},u=!0,d={node:c,node_:l,path:[].concat(s),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(u=!1)},delete:function(e){delete d.parent.node[d.key],e&&(u=!1)},remove:function(e){wE(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(u=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){i=!1},block:function(){u=!1}};if(!i)return d;function h(){if("object"===hE(d.node)&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=o(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<n.length;e++)if(n[e].node_===l){d.circular=n[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}h();var m=t.call(d,d.node);if(void 0!==m&&d.update&&d.update(m),p.before&&p.before.call(d,d.node),!u)return d;if("object"===hE(d.node)&&null!==d.node&&!d.circular){var f;n.push(d),h();var g=!0,y=!1,v=void 0;try{for(var b,x=Object.entries(null!==(f=d.keys)&&void 0!==f?f:[])[Symbol.iterator]();!(g=(b=x.next()).done);g=!0){var w,$=dE(b.value,2),S=$[0],E=$[1];s.push(E),p.pre&&p.pre.call(d,d.node[E],E);var k=e(d.node[E]);a&&kE.call(d.node,E)&&!OE(d.node,E)&&(d.node[E]=k.node),k.isLast=!!(null===(w=d.keys)||void 0===w?void 0:w.length)&&+S==d.keys.length-1,k.isFirst=0==+S,p.post&&p.post.call(d,k),s.pop()}}catch(e){y=!0,v=e}finally{try{g||null==x.return||x.return()}finally{if(y)throw v}}n.pop()}return p.after&&p.after.call(d,d.node),d}(e).node}var _E=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:CE;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),yE(this,TE),yE(this,PE),vE(this,TE,t),vE(this,PE,r)}return function(e,t){t&&function(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t)}(e,[{key:"get",value:function(e){for(var t=gE(this,TE),r=0;t&&r<e.length;r++){var s=e[r];if(!kE.call(t,s)||!gE(this,PE).includeSymbols&&"symbol"===(void 0===s?"undefined":hE(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=gE(this,TE),r=0;t&&r<e.length;r++){var s=e[r];if(!kE.call(t,s)||!gE(this,PE).includeSymbols&&"symbol"===(void 0===s?"undefined":hE(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=gE(this,TE),s=0;for(s=0;s<e.length-1;s++){var n=e[s];kE.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return IE(gE(this,TE),e,{immutable:!0,includeSymbols:!!gE(this,PE).includeSymbols})}},{key:"forEach",value:function(e){return vE(this,TE,IE(gE(this,TE),e,gE(this,PE))),gE(this,TE)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?gE(this,TE):t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s}},{key:"paths",value:function(){var e=[];return this.forEach((function(){e.push(this.path)})),e}},{key:"nodes",value:function(){var e=[];return this.forEach((function(){e.push(this.node)})),e}},{key:"clone",value:function(){var e=[],t=[],r=gE(this,PE);return xE(gE(this,TE))?gE(this,TE).slice():function s(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"===(void 0===n?"undefined":hE(n))&&null!==n){var o=jE(n,r);e.push(n),t.push(o);var a=r.includeSymbols?AE:Object.keys,l=!0,c=!1,p=void 0;try{for(var u,d=a(n)[Symbol.iterator]();!(l=(u=d.next()).done);l=!0){var h=u.value;o[h]=s(n[h])}}catch(e){c=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(c)throw p}}return e.pop(),t.pop(),o}return n}(gE(this,TE))}}]),e}();TE=new WeakMap,PE=new WeakMap;var RE=function(e,t){return new _E(e,t)};RE.get=function(e,t,r){return new _E(e,r).get(t)},RE.set=function(e,t,r,s){return new _E(e,s).set(t,r)},RE.has=function(e,t,r){return new _E(e,r).has(t)},RE.map=function(e,t,r){return new _E(e,r).map(t)},RE.forEach=function(e,t,r){return new _E(e,r).forEach(t)},RE.reduce=function(e,t,r,s){return new _E(e,s).reduce(t,r)},RE.paths=function(e,t){return new _E(e,t).paths()},RE.nodes=function(e,t){return new _E(e,t).nodes()},RE.clone=function(e,t){return new _E(e,t).clone()};var FE=RE;const ME=["properties"],LE=["properties"],DE=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],BE=["schema/example","items/example"];function qE(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return ME.indexOf(t)>-1&&-1===LE.indexOf(r)||DE.indexOf(s)>-1||BE.some((e=>s.indexOf(e)>-1))}function NE(e,t){const[r,s]=e.split("#"),n=null!=t?t:"",i=null!=r?r:"";let o;if(Oy(n))o=_y(n,i);else{const e=_y("https://swagger.io",n),t=_y(e,i).replace("https://swagger.io","");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const UE=/^([a-z]+:\/\/|\/\/)/i;class zE extends _h{}const HE={},VE=new WeakMap,WE=[e=>"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4],e=>"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5],e=>"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6],e=>"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]],GE={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(qE(i)||(e=>WE.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new zE("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=XE(e),l=a[0],c=a[1]||"";let p,u,d;try{p=o||l?KE(l,o):null}catch(t){return YE(t,{pointer:c,$ref:e,basePath:p,fullPath:r})}if(function(e,t,r,s){let n=VE.get(s);n||(n={},VE.set(s,n));const i=function(e){return 0===e.length?"":`/${e.map(sk).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,"");if(t===s.contextTree.get([]).baseDoc&&nk(a,e))return!0;let l="";const c=r.some((e=>(l=`${l}/${sk(e)}`,n[l]&&n[l].some((e=>nk(e,o)||nk(o,e))))));if(c)return!0;n[a]=(n[a]||[]).concat(o)}(c,p,i,s)&&!n.useCircularStructures){const t=NE(e,p);return e===t?null:qn.replace(r,t)}if(null==p?(d=tk(c),u=s.get(d),void 0===u&&(u=new zE(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:o,fullPath:r}))):(u=ZE(p,c),u=null!=u.l?u.l:u.catch((t=>{throw YE(t,{pointer:c,$ref:e,baseDoc:o,fullPath:r})}))),u instanceof Error)return[qn.remove(r),u];const h=NE(e,p),m=qn.replace(i,u,{$$ref:h});if(p&&p!==o)return[m,qn.context(i,{baseDoc:p})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),function e(t){return qn.isObject(t)&&(r.indexOf(t)>=0||Object.keys(t).some((r=>e(t[r]))))}(t.value)}(s.state,m)||n.useCircularStructures)return m}catch(e){return null}}},JE=Object.assign(GE,{docCache:HE,absoluteify:KE,clearCache:function(e){void 0!==e?delete HE[e]:Object.keys(HE).forEach((e=>{delete HE[e]}))},JSONRefError:zE,wrapError:YE,getDoc:QE,split:XE,extractFromDoc:ZE,fetchJSON:function(e){return fetch(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then((e=>e.text())).then((e=>Js.load(e)))},extract:ek,jsonPointerToArray:tk,unescapeJsonPointerToken:rk});function KE(e,t){if(!UE.test(e)){if(!t)throw new zE(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return _y(t,e)}return e}function YE(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new zE(`Could not resolve reference: ${r}`,{...t,cause:e})}function XE(e){return(e+"").split("#")}function ZE(e,t){const r=HE[e];if(r&&!qn.isPromise(r))try{const e=ek(t,r);return Object.assign(Promise.resolve(e),{l:e})}catch(e){return Promise.reject(e)}return QE(e).then((e=>ek(t,e)))}function QE(e){const t=HE[e];return t?qn.isPromise(t)?t:Promise.resolve(t):(HE[e]=JE.fetchJSON(e).then((t=>(HE[e]=t,t))),HE[e])}function ek(e,t){const r=tk(e);if(r.length<1)return t;const s=qn.getIn(t,r);if(void 0===s)throw new zE(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function tk(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+typeof e);return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(rk)}function rk(e){return"string"!=typeof e?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function sk(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function nk(e,t){if(!(r=t)||"/"===r||"#"===r)return!0;var r;const s=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!s||"/"===s||"#"===s)&&"#"!==n}const ik={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(qE(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=n.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const l=[];return l.push(s.replace(i,{})),e.forEach(((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,l.push(e)}l.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=e=>r.getContext([...t,...e]).baseDoc,targetKeys:n=["$ref","$$ref"]}={}){const i=[];return FE(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=NE(this.node,s(e));i.push(r.replace(n,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});l.push(...n)})),a.example&&l.push(s.remove([].concat(i,"example"))),l.push(s.mergeDeep(i,a)),a.$$ref||l.push(s.remove([].concat(i,"$$ref"))),l}},ok={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...qn.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return qn.replace(r,t)}return qn.replace(r,e)}},ak={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return qn.replace(r,n)}};class lk{constructor(e){this.root=ck(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void pk(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?pk(n[s],t,r):n[s]=ck(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:s}=e;return!s[r]&&t&&(s[r]=ck(null,e)),s[r]}),this.root)}}function ck(e,t){return pk({children:{}},e,t)}function pk(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=pk(r,r.value,e)})),e}const uk=()=>{};class dk{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lk,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),qn,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(qn.isFunction),this.patches.push(qn.add([],this.spec)),this.patches.push(qn.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):qn.isFunction(e)?s=e:qn.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(s,n){const i={};for(const[e,t]of s.filter(qn.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(s,a,l){if(qn.isObject(s)){const c=a.length-1,p=a[c],u=a.indexOf("properties"),d="properties"===p&&c===u,h=n.allowMetaPatches&&i[s.$$ref];for(const c of Object.keys(s)){const p=s[c],u=a.concat(c),m=qn.isObject(p),f=s.$$ref;if(h||m&&(n.allowMetaPatches&&f&&(i[f]=!0),yield*o(p,u,l)),!d&&c===e.key){const s=t(r,a);r&&!s||(yield e.plugin(p,c,u,n,l))}}}else e.key===a[a.length-1]&&(yield e.plugin(s,e.key,a,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:qn.isGenerator(s)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){qn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!qn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),qn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(qn.isContextPatch(e))return void this.setContext(e.path,e.value);qn.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=qn.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return qn.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(uk,uk)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else r(t(s,e.getLib()))}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=qn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const hk={refs:JE,allOf:ik,parameters:ok,properties:ak};async function mk(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:l,skipNormalization:c=!1,useCircularStructures:p,strategies:u}=e,d=Qs(e),h=en(e),m=u.find((e=>e.match(t)));return async function(e){d&&(hk.refs.docCache[d]=e),hk.refs.fetchJSON=Zs(h,{requestInterceptor:a,responseInterceptor:l});const t=[hk.refs];"function"==typeof o&&t.push(hk.parameters),"function"==typeof i&&t.push(hk.properties),"strict"!==r&&t.push(hk.allOf);const u=await(f={spec:e,context:{baseDoc:d},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:p},new dk(f).dispatch());var f;return c||(u.spec=m.normalize(u.spec)),u}(t)}const fk=e=>e.replace(/\W/gi,"_");function gk(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){return e&&"object"==typeof e?(e.operationId||"").replace(/\s/g,"").length?fk(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${fk(e)}`}(t,r,{v2OperationIdCompatibilityMode:s}):null}function yk(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){const n=r[e];if(null==n||!["object","function"].includes(typeof n))continue;const i=n.parameters;for(const r in n){const o=n[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=gk(o,e,r);if(a){s[a]?s[a].push(o):s[a]=[o];const e=s[a];if(e.length>1)e.forEach(((e,t)=>{e.h=e.h||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.h=t.h||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e])o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}else o[e]=t[e]}}}return t.$$normalized=!0,e}const vk={name:"generic",match:()=>!0,normalize(e){const{spec:t}=yk({spec:e});return t},resolve:async e=>mk(e)},bk=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},xk=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},wk=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},$k=e=>xk(e)||wk(e),Sk={name:"openapi-2",match:e=>bk(e),normalize(e){const{spec:t}=yk({spec:e});return t},resolve:async e=>async function(e){return mk(e)}(e)},Ek={name:"openapi-3-0",match:e=>xk(e),normalize(e){const{spec:t}=yk({spec:e});return t},resolve:async e=>async function(e){return mk(e)}(e)},kk=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=Qs(e),i=en(e),o=t||await Zs(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),Ak=kk({strategies:[Ek,Sk,vk]});class Ok extends _h{}class jk extends Ok{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}}class Tk extends Ok{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}}class Pk extends Ok{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}}const Ck=df(cg(/~/g,"~0"),cg(/\//g,"~1"),encodeURIComponent),Ik=df(cg(/~1/g,"/"),cg(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}})),_k=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return ay("#",t)},Rk=e=>{try{return 0===e.length?"":`/${e.map(Ck).join("/")}`}catch(t){throw new Tk("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}},Fk=(e,t)=>{let r;try{r=(e=>{if(Pg(e))return[];if(!dg("/",e))throw new jk(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=df(ug("/"),jm(Ik))(e);return uf(t)}catch(t){throw new jk(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}})(e)}catch(r){throw new Pk(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:vS(t),cause:r})}return r.reduce(((t,s,n)=>{if(V$(t)){if(!t.hasKey(s))throw new Pk(`JSON Pointer evaluation failed while evaluating token "${s}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:vS(t)});return t.get(s)}if(W$(t)){if(!(s in t.content)||!Vg(Number(s)))throw new Pk(`JSON Pointer evaluation failed while evaluating token "${s}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:vS(t)});return t.get(Number(s))}throw new Pk(`JSON Pointer evaluation failed while evaluating token "${s}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:vS(t)})}),t)};class Mk extends RS{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Af(this.filterByFormat(e))}}const Lk=new Mk("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");let Dk=class extends k${constructor(e,t,r){super(e,t,r),this.element="callback"}},Bk=class extends k${constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}},qk=class extends k${constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}},Nk=class extends k${constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}},Uk=class extends k${constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}},zk=class extends k${constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}},Hk=class extends k${constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},Vk=class extends k${constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new $$(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new $$(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(Vk.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Wk=class extends k${constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}},Gk=class extends k${constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},Jk=class extends k${constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return N$(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):N$(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}},Kk=class extends k${constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}},Yk=class extends k${constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}},Xk=class extends k${constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}},Zk=class extends x${constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class Qk extends k${constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}let eA=class extends k${constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new $$(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}},tA=class extends k${constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new $$(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new $$(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(tA.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let rA=class extends k${constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}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)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}},sA=class extends k${constructor(e,t,r){super(e,t,r),this.element="paths"}},nA=class extends k${constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}},iA=class extends k${constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new $$(!1)}set required(e){this.set("required",e)}},oA=class extends k${constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}},aA=class extends k${constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};class lA extends k${constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}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 maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}class cA extends k${constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class pA extends k${constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}class uA extends k${constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const dA={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",lA),t.register("jSONReference",cA),t.register("media",pA),t.register("linkDescription",uA),t}},hA=e=>{if(q$(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},mA={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...kS};let fA=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=YS(t.meta,e.meta),tS(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=YS(t.attributes,e.attributes))}},gA=class extends fA{enter(e){return this.element=vS(e),cS}};const yA=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},vA=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:vA(r,[...t,r])},bA=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>vA(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=vA(n);for(let t of e){let e=vA(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(yA(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},xA=e=>e.filter(((t,r)=>e.indexOf(t)==r)),wA=new WeakMap,$A=e=>wA.get(e),SA=(e,t)=>{var r,s;const n=xA([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=xA([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},EA=(e,t)=>{var r,s,n,i;return{property:SA(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:SA(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},kA=new Map;function AA(...e){var t,r,s;const n=e.map((e=>e.prototype));function i(...t){for(const r of e)yA(this,new r(...t))}i.prototype=bA(n,i),Object.setPrototypeOf(i,bA(e,null,["prototype"]));let o=i;{const n=((...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...vA(e.prototype).map((e=>e.constructor)),...null!==(t=$A(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>kA.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>((e,t)=>{var r,s,n,i,o,a;return{class:xA([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:EA(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:EA(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}})(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(o);t&&(o=t)}OA(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},o),OA(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},o.prototype)}var a,l;return a=o,l=e,wA.set(a,l),o}const OA=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};let jA=class extends fA{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return sg(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=eg(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return rg(kg,["visitors",...e],this.specObj)?eg(["visitors",...e],this.specObj):eg(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof gA&&(null==s?void 0:s.constructor)===gA?vS(t):(OS(t,s,r),s.element)}},TA=class extends jA{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(N$(s)&&r.includes(US(s))&&!this.ignoredFields.includes(US(s))){const r=this.toRefractedElement([...t,"fixedFields",US(s)],e),i=new A$(vS(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(US(s))||this.element.content.push(vS(n))})),this.copyMetaAndAttributes(e,this.element),cS}};class PA extends(AA(TA,gA)){constructor(e){super(e),this.element=new lA,this.specPath=zm(["document","objects","JSONSchema"])}}let CA=class{parent;constructor({parent:e}){this.parent=e}};const IA=e=>V$(e)&&e.hasKey("$ref");let _A=class extends(AA(jA,CA,gA)){ObjectElement(e){const t=IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),cS}ArrayElement(e){return this.element=new E$,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}},RA=class extends jA{specPath;ignoredFields;fieldPatternPredicate=Mh;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(US(t))&&this.fieldPatternPredicate(US(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new A$(vS(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(US(t))||this.element.content.push(vS(r))})),this.copyMetaAndAttributes(e,this.element),cS}},FA=class extends RA{constructor(e){super(e),this.fieldPatternPredicate=Rg}},MA=class extends(AA(FA,CA,gA)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-properties"),this.specPath=e=>IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},LA=class extends(AA(FA,CA,gA)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class DA extends(AA(FA,CA,gA)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let BA=class extends(AA(jA,CA,gA)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}},qA=class extends(AA(jA,CA,gA)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}},NA=class extends(AA(jA,CA,gA)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}};class UA extends(AA(FA,CA,gA)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-definitions"),this.specPath=e=>IA(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let zA=class extends(AA(jA,CA,gA)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),cS}};class HA extends(AA(TA,gA)){constructor(e){super(e),this.element=new cA,this.specPath=zm(["document","objects","JSONReference"])}ObjectElement(e){const t=TA.prototype.ObjectElement.call(this,e);return N$(this.element.$ref)&&this.element.classes.push("reference-element"),t}}let VA=class extends jA{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Lf(e,zm(t),yg))),r=Zg(t)(e);return this.element=this.toRefractedElement(r,e),cS}},WA=class extends VA{constructor(e){super(e),this.alternator=[{predicate:IA,specPath:["document","objects","JSONReference"]},{predicate:Lh,specPath:["document","objects","JSONSchema"]}]}};class GA extends(AA(TA,gA)){constructor(e){super(e),this.element=new pA,this.specPath=zm(["document","objects","Media"])}}class JA extends(AA(TA,gA)){constructor(e){super(e),this.element=new uA,this.specPath=zm(["document","objects","LinkDescription"])}}const KA={visitors:{value:gA,JSONSchemaOrJSONReferenceVisitor:WA,document:{objects:{JSONSchema:{$visitor:PA,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:WA,items:_A,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:class extends gA{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}},properties:MA,additionalProperties:WA,patternProperties:LA,dependencies:DA,enum:class extends gA{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}},type:class extends gA{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}},allOf:BA,anyOf:qA,oneOf:NA,not:WA,definitions:UA,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:zA,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:HA,fixedFields:{$ref:class extends gA{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}}},Media:{$visitor:GA,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:JA,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:WA,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:WA}}}}}},YA=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lA||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),XA=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cA||e(s)&&t("JSONReference",s)&&r("object",s))),ZA=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pA||e(s)&&t("media",s)&&r("object",s))),QA=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uA||e(s)&&t("linkDescription",s)&&r("object",s))),eO=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:XA,isJSONSchemaElement:YA,isLinkDescriptionElement:QA,isMediaElement:ZA},Symbol.toStringTag,{value:"Module"})),tO=()=>{const e=oS(dA);return{predicates:{...eO,isStringElement:N$},namespace:e}},rO=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=KA}={})=>{const n=T$(e),i=VS(s),o=new(eg(t,i))({specObj:i});return OS(n,o),TS(o.element,r,{toolboxCreator:tO,visitorOptions:{keyMap:mA,nodeTypeGetter:hA}})})(t,{specPath:e,...r});lA.refract=rO(["visitors","document","objects","JSONSchema","$visitor"]),cA.refract=rO(["visitors","document","objects","JSONReference","$visitor"]),pA.refract=rO(["visitors","document","objects","Media","$visitor"]),uA.refract=rO(["visitors","document","objects","LinkDescription","$visitor"]);let sO=class extends lA{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Rh("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Rh("idProp setter in Schema class is not not supported.")}get $schema(){throw new Rh("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Rh("$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 Rh("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Rh("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Rh("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Rh("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 Rh("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Rh("definitions setter in Schema class is not not supported.")}get base(){throw new Rh("base getter in Schema class is not not supported.")}set base(e){throw new Rh("base setter in Schema class is not not supported.")}get links(){throw new Rh("links getter in Schema class is not not supported.")}set links(e){throw new Rh("links setter in Schema class is not not supported.")}get media(){throw new Rh("media getter in Schema class is not not supported.")}set media(e){throw new Rh("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)}},nO=class extends k${constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}},iO=class extends k${constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}},oO=class extends k${constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}},aO=class extends k${constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}},lO=class extends k${constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}},cO=class extends k${constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}};const pO={namespace:e=>{const{base:t}=e;return t.register("callback",Dk),t.register("components",Bk),t.register("contact",qk),t.register("discriminator",Nk),t.register("encoding",Uk),t.register("example",zk),t.register("externalDocumentation",Hk),t.register("header",Vk),t.register("info",Wk),t.register("license",Gk),t.register("link",Jk),t.register("mediaType",Kk),t.register("oAuthFlow",Yk),t.register("oAuthFlows",Xk),t.register("openapi",Zk),t.register("openApi3_0",Qk),t.register("operation",eA),t.register("parameter",tA),t.register("pathItem",rA),t.register("paths",sA),t.register("reference",nA),t.register("requestBody",iA),t.register("response",oA),t.register("responses",aA),t.register("schema",sO),t.register("securityRequirement",nO),t.register("securityScheme",iO),t.register("server",oO),t.register("serverVariable",aO),t.register("tag",lO),t.register("xml",cO),t}};class uO extends E${static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(uO.primaryClass)}}class dO extends E${static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(dO.primaryClass)}}class hO extends E${static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(hO.primaryClass)}}class mO extends k${static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(mO.primaryClass)}}class fO extends k${static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(fO.primaryClass)}}class gO extends k${static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(gO.primaryClass)}}class yO extends k${static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(yO.primaryClass),this.classes.push("parameters")}}class vO extends k${static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(vO.primaryClass),this.classes.push("examples")}}class bO extends k${static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(bO.primaryClass)}}class xO extends k${static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(xO.primaryClass)}}class wO extends k${static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(wO.primaryClass)}}class $O extends k${static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push($O.primaryClass)}}class SO extends k${static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(SO.primaryClass)}}class EO extends E${static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(EO.primaryClass),this.classes.push("servers")}}class kO extends E${static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(kO.primaryClass),this.classes.push("parameters")}}class AO extends E${static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(AO.primaryClass),this.classes.push("parameters")}}class OO extends k${static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(OO.primaryClass),this.classes.push("examples")}}class jO extends k${static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(jO.primaryClass),this.classes.push("content")}}class TO extends E${static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(TO.primaryClass)}}class PO extends k${static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(PO.primaryClass)}}class CO extends E${static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(CO.primaryClass),this.classes.push("security")}}class IO extends E${static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(IO.primaryClass),this.classes.push("servers")}}class _O extends k${static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(_O.primaryClass),this.classes.push("content")}}class RO extends k${static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(RO.primaryClass),this.classes.push("examples")}}class FO extends k${static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(FO.primaryClass)}}class MO extends k${static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(MO.primaryClass)}}class LO extends k${static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(LO.primaryClass)}}class DO extends k${static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(DO.primaryClass),this.classes.push("content")}}class BO extends k${static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(BO.primaryClass)}}class qO extends k${static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(qO.primaryClass)}}class NO extends k${static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(NO.primaryClass)}}class UO extends k${static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(UO.primaryClass)}}class zO extends k${static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(zO.primaryClass),this.classes.push("examples")}}class HO extends k${static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(HO.primaryClass),this.classes.push("content")}}const VO=e=>{if(q$(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},WO={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"],...kS};class GO{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=YS(t.meta,e.meta),tS(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=YS(t.attributes,e.attributes))}}class JO extends GO{enter(e){return this.element=vS(e),cS}}class KO extends GO{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return sg(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=eg(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return rg(kg,["visitors",...e],this.specObj)?eg(["visitors",...e],this.specObj):eg(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof JO&&(null==s?void 0:s.constructor)===JO?vS(t):(OS(t,s,r),s.element)}}const YO=e=>V$(e)&&e.hasKey("$ref"),XO=V$,ZO=V$,QO=e=>N$(e.key)&&dg("x-",US(e.key));class ej extends KO{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=QO;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(N$(s)&&r.includes(US(s))&&!this.ignoredFields.includes(US(s))){const r=this.toRefractedElement([...t,"fixedFields",US(s)],e),i=new A$(vS(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(US(s))||this.element.content.push(vS(n))})),this.copyMetaAndAttributes(e,this.element),cS}}class tj extends(AA(ej,JO)){constructor(e){super(e),this.element=new Qk,this.specPath=zm(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return ej.prototype.ObjectElement.call(this,e)}}class rj extends(AA(KO,JO)){StringElement(e){const t=new Zk(US(e));return this.copyMetaAndAttributes(e,t),this.element=t,cS}}let sj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Wk,this.specPath=zm(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}},nj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new qk,this.specPath=zm(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},ij=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Gk,this.specPath=zm(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},oj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Jk,this.specPath=zm(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return(N$(this.element.operationId)||N$(this.element.operationRef))&&this.element.classes.push("reference-element"),t}};class aj extends KO{specPath;ignoredFields;fieldPatternPredicate=Mh;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=QO;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(US(t))&&this.fieldPatternPredicate(US(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new A$(vS(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(US(t))||this.element.content.push(vS(r))})),this.copyMetaAndAttributes(e,this.element),cS}}class lj extends aj{constructor(e){super(e),this.fieldPatternPredicate=Rg}}let cj=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new UO,this.specPath=zm(["value"])}},pj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new oO,this.specPath=zm(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}},uj=class extends(AA(KO,JO)){constructor(e){super(e),this.element=new uO}ArrayElement(e){return e.forEach((e=>{const t=XO(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}},dj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new aO,this.specPath=zm(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class hj extends(AA(lj,JO)){constructor(e){super(e),this.element=new mO,this.specPath=zm(["document","objects","ServerVariable"])}}let mj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Kk,this.specPath=zm(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class fj extends KO{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Lf(e,zm(t),yg))),r=Zg(t)(e);return this.element=this.toRefractedElement(r,e),cS}}const gj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dk||e(s)&&t("callback",s)&&r("object",s))),yj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bk||e(s)&&t("components",s)&&r("object",s))),vj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qk||e(s)&&t("contact",s)&&r("object",s))),bj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zk||e(s)&&t("example",s)&&r("object",s))),xj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hk||e(s)&&t("externalDocumentation",s)&&r("object",s))),wj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vk||e(s)&&t("header",s)&&r("object",s))),$j=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wk||e(s)&&t("info",s)&&r("object",s))),Sj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gk||e(s)&&t("license",s)&&r("object",s))),Ej=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jk||e(s)&&t("link",s)&&r("object",s))),kj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zk||e(s)&&t("openapi",s)&&r("string",s))),Aj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Qk||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),Oj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eA||e(s)&&t("operation",s)&&r("object",s))),jj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tA||e(s)&&t("parameter",s)&&r("object",s))),Tj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rA||e(s)&&t("pathItem",s)&&r("object",s))),Pj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sA||e(s)&&t("paths",s)&&r("object",s))),Cj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nA||e(s)&&t("reference",s)&&r("object",s))),Ij=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof iA||e(s)&&t("requestBody",s)&&r("object",s))),_j=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oA||e(s)&&t("response",s)&&r("object",s))),Rj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aA||e(s)&&t("responses",s)&&r("object",s))),Fj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sO||e(s)&&t("schema",s)&&r("object",s))),Mj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nO||e(s)&&t("securityRequirement",s)&&r("object",s))),Lj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof iO||e(s)&&t("securityScheme",s)&&r("object",s))),Dj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oO||e(s)&&t("server",s)&&r("object",s))),Bj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aO||e(s)&&t("serverVariable",s)&&r("object",s))),qj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kk||e(s)&&t("mediaType",s)&&r("object",s))),Nj=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof uO||e(n)&&t("array",n)&&r("array",n)&&s("servers",n))),Uj=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:e=>H$(e)&&e.classes.includes("boolean-json-schema"),isCallbackElement:gj,isComponentsElement:yj,isContactElement:vj,isExampleElement:bj,isExternalDocumentationElement:xj,isHeaderElement:wj,isInfoElement:$j,isLicenseElement:Sj,isLinkElement:Ej,isMediaTypeElement:qj,isOpenApi3_0Element:Aj,isOpenapiElement:kj,isOperationElement:Oj,isParameterElement:jj,isPathItemElement:Tj,isPathsElement:Pj,isReferenceElement:Cj,isRequestBodyElement:Ij,isResponseElement:_j,isResponsesElement:Rj,isSchemaElement:Fj,isSecurityRequirementElement:Mj,isSecuritySchemeElement:Lj,isServerElement:Dj,isServerVariableElement:Bj,isServersElement:Nj},Symbol.toStringTag,{value:"Module"}));let zj=class extends(AA(fj,JO)){constructor(e){super(e),this.alternator=[{predicate:YO,specPath:["document","objects","Reference"]},{predicate:Lh,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fj.prototype.enter.call(this,e);return Cj(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},Hj=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new k$,this.element.classes.push("examples"),this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}},Vj=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new FO,this.specPath=zm(["document","objects","Encoding"])}},Wj=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new nO,this.specPath=zm(["value"])}},Gj=class extends(AA(KO,JO)){constructor(e){super(e),this.element=new dO}ArrayElement(e){return e.forEach((e=>{if(V$(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(vS(e))})),this.copyMetaAndAttributes(e,this.element),cS}},Jj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Bk,this.specPath=zm(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},Kj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new lO,this.specPath=zm(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},Yj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new nA,this.specPath=zm(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return N$(this.element.$ref)&&this.element.classes.push("reference-element"),t}},Xj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new tA,this.specPath=zm(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return V$(this.element.contentProp)&&this.element.contentProp.filter(qj).forEach(((e,t)=>{e.setMetaProperty("media-type",US(t))})),t}},Zj=class extends(AA(fj,JO)){constructor(e){super(e),this.alternator=[{predicate:YO,specPath:["document","objects","Reference"]},{predicate:Lh,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fj.prototype.enter.call(this,e);return Cj(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},Qj=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Vk,this.specPath=zm(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},eT=class extends(AA(fj,JO)){constructor(e){super(e),this.alternator=[{predicate:YO,specPath:["document","objects","Reference"]},{predicate:Lh,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fj.prototype.enter.call(this,e);return Cj(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},tT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new k$,this.element.classes.push("content"),this.specPath=zm(["document","objects","MediaType"])}},rT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new sO,this.specPath=zm(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const{allOf:sT}=KA.visitors.document.objects.JSONSchema.fixedFields,{anyOf:nT}=KA.visitors.document.objects.JSONSchema.fixedFields,{oneOf:iT}=KA.visitors.document.objects.JSONSchema.fixedFields,{items:oT}=KA.visitors.document.objects.JSONSchema.fixedFields,{properties:aT}=KA.visitors.document.objects.JSONSchema.fixedFields,{type:lT}=KA.visitors.document.objects.JSONSchema.fixedFields,{JSONSchemaOrJSONReferenceVisitor:cT}=KA.visitors;class pT extends cT{ObjectElement(e){const t=cT.prototype.enter.call(this,e);return Cj(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}let uT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Nk,this.specPath=zm(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class dT extends(AA(lj,JO)){constructor(e){super(e),this.element=new qO,this.specPath=zm(["value"])}}let hT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new cO,this.specPath=zm(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},mT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new fO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},fT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new gO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(_j).forEach(((e,t)=>{e.setMetaProperty("http-status-code",US(t))})),t}},gT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new yO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}},yT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new vO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}};class vT extends(AA(lj,JO)){constructor(e){super(e),this.element=new bO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}let bT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new xO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(wj).forEach(((e,t)=>{e.setMetaProperty("header-name",US(t))})),t}};class xT extends(AA(lj,JO)){constructor(e){super(e),this.element=new wO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}let wT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new $O,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}},$T=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new SO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}},ST=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new zk,this.specPath=zm(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return N$(this.element.externalValue)&&this.element.classes.push("reference-element"),t}},ET=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Hk,this.specPath=zm(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},kT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Uk,this.specPath=zm(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return V$(this.element.headers)&&this.element.headers.filter(wj).forEach(((e,t)=>{e.setMetaProperty("header-name",US(t))})),t}},AT=class extends(AA(lj,JO)){constructor(e){super(e),this.element=new MO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!wj(e))return;const r=US(t);e.setMetaProperty("headerName",r)})),t}},OT=class extends(AA(aj,JO)){constructor(e){super(e),this.element=new sA,this.specPath=zm(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Lh}ObjectElement(e){const t=aj.prototype.ObjectElement.call(this,e);return this.element.filter(Tj).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",vS(t))})),t}},jT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new iA,this.specPath=zm(["document","objects","RequestBody"])}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return V$(this.element.contentProp)&&this.element.contentProp.filter(qj).forEach(((e,t)=>{e.setMetaProperty("media-type",US(t))})),t}},TT=class extends(AA(aj,JO)){constructor(e){super(e),this.element=new Dk,this.specPath=zm(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Tj).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",US(t))})),t}},PT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new oA,this.specPath=zm(["document","objects","Response"])}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return V$(this.element.contentProp)&&this.element.contentProp.filter(qj).forEach(((e,t)=>{e.setMetaProperty("media-type",US(t))})),V$(this.element.headers)&&this.element.headers.filter(wj).forEach(((e,t)=>{e.setMetaProperty("header-name",US(t))})),t}};class CT extends(AA(lj,JO)){constructor(e){super(e),this.element=new LO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!wj(e))return;const r=US(t);e.setMetaProperty("header-name",r)})),t}}class IT extends(AA(lj,JO)){constructor(e){super(e),this.element=new BO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}class _T extends(AA(ej,aj)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...wf(e.keys(),t)],ej.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,aj.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return cS}}let RT=class extends(AA(_T,JO)){constructor(e){super(e),this.element=new aA,this.specPathFixedFields=zm(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>YO(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ag(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=_T.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(_j).forEach(((e,t)=>{const r=vS(t);this.fieldPatternPredicate(US(r))&&e.setMetaProperty("http-status-code",r)})),t}};class FT extends(AA(fj,JO)){constructor(e){super(e),this.alternator=[{predicate:YO,specPath:["document","objects","Reference"]},{predicate:Lh,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=fj.prototype.enter.call(this,e);return Cj(this.element)?this.element.setMetaProperty("referenced-element","response"):_j(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}let MT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new eA,this.specPath=zm(["document","objects","Operation"])}},LT=class extends(AA(KO,JO)){constructor(e){super(e),this.element=new E$,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=YO(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Cj(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}};class DT extends(AA(lj,JO)){specPath;constructor(e){super(e),this.element=new PO,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}class BT extends(AA(KO,JO)){constructor(e){super(e),this.element=new CO}ArrayElement(e){return e.forEach((e=>{const t=V$(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}}let qT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new rA,this.specPath=zm(["document","objects","PathItem"])}ObjectElement(e){const t=ej.prototype.ObjectElement.call(this,e);return this.element.filter(Oj).forEach(((e,t)=>{const r=vS(t);r.content=US(r).toUpperCase(),e.setMetaProperty("http-method",r)})),N$(this.element.$ref)&&this.element.classes.push("reference-element"),t}},NT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new iO,this.specPath=zm(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},UT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Xk,this.specPath=zm(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},zT=class extends(AA(ej,JO)){constructor(e){super(e),this.element=new Yk,this.specPath=zm(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class HT extends(AA(lj,JO)){constructor(e){super(e),this.element=new NO,this.specPath=zm(["value"])}}class VT extends(AA(KO,JO)){constructor(e){super(e),this.element=new hO}ArrayElement(e){return e.forEach((e=>{const t=ZO(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),cS}}const{fixedFields:WT}=KA.visitors.document.objects.JSONSchema,GT={visitors:{value:JO,document:{objects:{OpenApi:{$visitor:tj,fixedFields:{openapi:rj,info:{$ref:"#/visitors/document/objects/Info"},servers:uj,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Gj,tags:VT,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sj,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}}}},Contact:{$visitor:nj,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ij,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:pj,fixedFields:{url:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}},description:{$ref:"#/visitors/value"},variables:hj}},ServerVariable:{$visitor:dj,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Jj,fixedFields:{schemas:mT,responses:fT,parameters:gT,examples:yT,requestBodies:vT,headers:bT,securitySchemes:xT,links:wT,callbacks:$T}},Paths:{$visitor:OT},PathItem:{$visitor:qT,fixedFields:{$ref:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},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:class extends uj{constructor(e){super(e),this.element=new EO}},parameters:class extends LT{constructor(e){super(e),this.element=new kO}}}},Operation:{$visitor:MT,fixedFields:{tags:class extends JO{constructor(e){super(e),this.element=new TO}ArrayElement(e){return this.element=this.element.concat(vS(e)),cS}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:class extends LT{constructor(e){super(e),this.element=new AO}},requestBody:class extends fj{constructor(e){super(e),this.alternator=[{predicate:YO,specPath:["document","objects","Reference"]},{predicate:Lh,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=fj.prototype.enter.call(this,e);return Cj(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}},responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:DT,deprecated:{$ref:"#/visitors/value"},security:BT,servers:class extends uj{constructor(e){super(e),this.element=new IO}}}},ExternalDocumentation:{$visitor:ET,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Xj,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Zj,example:{$ref:"#/visitors/value"},examples:class extends Hj{constructor(e){super(e),this.element=new OO}},content:class extends tT{constructor(e){super(e),this.element=new jO}}}},RequestBody:{$visitor:jT,fixedFields:{description:{$ref:"#/visitors/value"},content:class extends tT{constructor(e){super(e),this.element=new _O}},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:mj,fixedFields:{schema:zj,example:{$ref:"#/visitors/value"},examples:class extends Hj{constructor(e){super(e),this.element=new RO}},encoding:Vj}},Encoding:{$visitor:kT,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:AT,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:RT,fixedFields:{default:FT}},Response:{$visitor:PT,fixedFields:{description:{$ref:"#/visitors/value"},headers:CT,content:class extends tT{constructor(e){super(e),this.element=new DO}},links:IT}},Callback:{$visitor:TT},Example:{$visitor:ST,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},Link:{$visitor:oj,fixedFields:{operationRef:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},operationId:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},parameters:cj,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Qj,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:eT,example:{$ref:"#/visitors/value"},examples:class extends Hj{constructor(e){super(e),this.element=new zO}},content:class extends tT{constructor(e){super(e),this.element=new HO}}}},Tag:{$visitor:Kj,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Yj,fixedFields:{$ref:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:rT,fixedFields:{title:WT.title,multipleOf:WT.multipleOf,maximum:WT.maximum,exclusiveMaximum:WT.exclusiveMaximum,minimum:WT.minimum,exclusiveMinimum:WT.exclusiveMinimum,maxLength:WT.maxLength,minLength:WT.minLength,pattern:WT.pattern,maxItems:WT.maxItems,minItems:WT.minItems,uniqueItems:WT.uniqueItems,maxProperties:WT.maxProperties,minProperties:WT.minProperties,required:WT.required,enum:WT.enum,type:class extends lT{ArrayElement(e){return this.enter(e)}},allOf:class extends sT{ArrayElement(e){const t=sT.prototype.ArrayElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},anyOf:class extends nT{ArrayElement(e){const t=nT.prototype.ArrayElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},oneOf:class extends iT{ArrayElement(e){const t=iT.prototype.ArrayElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},not:pT,items:class extends oT{ObjectElement(e){const t=oT.prototype.ObjectElement.call(this,e);return Cj(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},properties:class extends aT{ObjectElement(e){const t=aT.prototype.ObjectElement.call(this,e);return this.element.filter(Cj).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},additionalProperties:pT,description:WT.description,format:WT.format,default:WT.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:uT,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:dT}},XML:{$visitor:hT,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:NT,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:UT,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:zT,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:HT}},SecurityRequirement:{$visitor:Wj}},extension:{$visitor:class extends KO{MemberElement(e){return this.element=vS(e),this.element.classes.push("specification-extension"),cS}}}}}},JT=()=>{const e=oS(pO);return{predicates:{...Uj,isElement:q$,isStringElement:N$,isArrayElement:W$,isObjectElement:V$,isMemberElement:G$,includesClasses:rS,hasElementSourceMap:tS},namespace:e}},KT=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=T$(e),n=VS(GT),i=new(eg(t,n))({specObj:n});return OS(s,i),TS(i.element,r,{toolboxCreator:JT,visitorOptions:{keyMap:WO,nodeTypeGetter:VO}})})(t,{specPath:e,...r});Dk.refract=KT(["visitors","document","objects","Callback","$visitor"]),Bk.refract=KT(["visitors","document","objects","Components","$visitor"]),qk.refract=KT(["visitors","document","objects","Contact","$visitor"]),zk.refract=KT(["visitors","document","objects","Example","$visitor"]),Nk.refract=KT(["visitors","document","objects","Discriminator","$visitor"]),Uk.refract=KT(["visitors","document","objects","Encoding","$visitor"]),Hk.refract=KT(["visitors","document","objects","ExternalDocumentation","$visitor"]),Vk.refract=KT(["visitors","document","objects","Header","$visitor"]),Wk.refract=KT(["visitors","document","objects","Info","$visitor"]),Gk.refract=KT(["visitors","document","objects","License","$visitor"]),Jk.refract=KT(["visitors","document","objects","Link","$visitor"]),Kk.refract=KT(["visitors","document","objects","MediaType","$visitor"]),Yk.refract=KT(["visitors","document","objects","OAuthFlow","$visitor"]),Xk.refract=KT(["visitors","document","objects","OAuthFlows","$visitor"]),Zk.refract=KT(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Qk.refract=KT(["visitors","document","objects","OpenApi","$visitor"]),eA.refract=KT(["visitors","document","objects","Operation","$visitor"]),tA.refract=KT(["visitors","document","objects","Parameter","$visitor"]),rA.refract=KT(["visitors","document","objects","PathItem","$visitor"]),sA.refract=KT(["visitors","document","objects","Paths","$visitor"]),nA.refract=KT(["visitors","document","objects","Reference","$visitor"]),iA.refract=KT(["visitors","document","objects","RequestBody","$visitor"]),oA.refract=KT(["visitors","document","objects","Response","$visitor"]),aA.refract=KT(["visitors","document","objects","Responses","$visitor"]),sO.refract=KT(["visitors","document","objects","Schema","$visitor"]),nO.refract=KT(["visitors","document","objects","SecurityRequirement","$visitor"]),iO.refract=KT(["visitors","document","objects","SecurityScheme","$visitor"]),oO.refract=KT(["visitors","document","objects","Server","$visitor"]),aO.refract=KT(["visitors","document","objects","ServerVariable","$visitor"]),lO.refract=KT(["visitors","document","objects","Tag","$visitor"]),cO.refract=KT(["visitors","document","objects","XML","$visitor"]);class YT extends Dk{}class XT extends Bk{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}}class ZT extends qk{}class QT extends Nk{}class eP extends Uk{}class tP extends zk{}class rP extends Hk{}class sP extends Vk{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class nP extends Wk{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)}}class iP extends x${static default=new iP("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}class oP extends Gk{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}}class aP extends Jk{}class lP extends Kk{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class cP extends Yk{}class pP extends Xk{}class uP extends Zk{}class dP extends k${constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}class hP extends eA{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}}class mP extends tA{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class fP extends rA{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)}}class gP extends sA{}class yP extends nA{}Object.defineProperty(yP.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(yP.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class vP extends iA{}let bP=class extends oA{};class xP extends aA{}class wP extends k${constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",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)}}class $P extends nO{}class SP extends iO{}class EP extends oO{}class kP extends aO{}class AP extends lO{}class OP extends cO{}const jP={namespace:e=>{const{base:t}=e;return t.register("callback",YT),t.register("components",XT),t.register("contact",ZT),t.register("discriminator",QT),t.register("encoding",eP),t.register("example",tP),t.register("externalDocumentation",rP),t.register("header",sP),t.register("info",nP),t.register("jsonSchemaDialect",iP),t.register("license",oP),t.register("link",aP),t.register("mediaType",lP),t.register("oAuthFlow",cP),t.register("oAuthFlows",pP),t.register("openapi",uP),t.register("openApi3_1",dP),t.register("operation",hP),t.register("parameter",mP),t.register("pathItem",fP),t.register("paths",gP),t.register("reference",yP),t.register("requestBody",vP),t.register("response",bP),t.register("responses",xP),t.register("schema",wP),t.register("securityRequirement",$P),t.register("securityScheme",SP),t.register("server",EP),t.register("serverVariable",kP),t.register("tag",AP),t.register("xml",OP),t}};class TP extends k${static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(TP.primaryClass)}}class PP extends k${static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(PP.primaryClass)}}const CP=e=>{if(q$(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},IP={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"],...kS};class _P{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);V$(e)||(e=new k$,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);W$(t)||(t=new E$,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}}const RP=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!(r.isParameterElement(e)&&r.isParameterElement(t)&&r.isStringElement(e.name)&&r.isStringElement(e.in)&&r.isStringElement(t.name)&&r.isStringElement(t.in)&&US(e.name)===US(t.name)&&US(e.in)===US(t.in)),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new _P(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,l){const c=Af(i);if(!Array.isArray(c)||0===c.length)return;const p=s([...l,r,e]);if(o.includes(p))return;const u=tg([],["parameters","content"],e),d=fg(n,[...u,...c]);e.parameters=new AO(d),o.append(p)}}}}},FP=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new _P(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,l){if(l.some(r.isComponentsElement))return;const c=s([...l,o,e]);var p;i.includes(c)||void 0===e.security&&void 0!==n&&(e.security=new CO(null===(p=n)||void 0===p?void 0:p.content),i.append(c))}}}}},MP=e=>e.replace(/\s/g,""),LP=e=>e.replace(/\W/gi,"_"),DP=(e,t,r)=>{const s=MP(e);return s.length>0?LP(s):((e,t)=>`${LP(MP(t.toLowerCase()))}${LP(MP(e))}`)(t,r)},BP=({storageField:e="x-normalized",operationIdNormalizer:t=DP}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],l=[];let c;return{visitor:{OpenApi3_1Element:{enter(t){c=new _P(t,e,"operation-ids")},leave(){const e=_f((e=>US(e.operationId)),a);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)})))})),l.forEach((e=>{if(void 0===e.operationId)return;const t=String(US(e.operationId)),r=a.find((e=>US(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=vS.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),a.length=0,l.length=0,c=void 0}},PathItemElement:{enter(e){const t=vf("path",US(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,l,p){if(void 0===e.operationId)return;const u=n([...p,s,e]);if(c.includes(u))return;const d=String(US(e.operationId)),h=Af(o),m=vf("method",US(e.meta.get("http-method"))),f=t(d,h,m);d!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",d),e.meta.set("originalOperationId",d),a.push(e),c.append(u))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&l.push(e)}}}}},qP=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new _P(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,a){var l,c;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(l=e.schema)||void 0===l?void 0:l.example)&&void 0===(null===(c=e.schema)||void 0===c?void 0:c.examples))return;const p=s([...a,i,e]);if(!n.includes(p)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>vS.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(p)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(p)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[vS(e.example)]),n.append(p)),void 0!==e.schema.example&&(e.schema.set("example",vS(e.example)),n.append(p)))}}}}}},NP=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new _P(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,a){var l,c;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(l=e.schema)||void 0===l?void 0:l.example)&&void 0===(null===(c=e.schema)||void 0===c?void 0:c.examples))return;const p=s([...a,i,e]);if(!n.includes(p)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>vS.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(p)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(p)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[vS(e.example)]),n.append(p)),void 0!==e.schema.example&&(e.schema.set("example",vS(e.example)),n.append(p)))}}}}}},UP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof YT||e(s)&&t("callback",s)&&r("object",s))),zP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof XT||e(s)&&t("components",s)&&r("object",s))),HP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ZT||e(s)&&t("contact",s)&&r("object",s))),VP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tP||e(s)&&t("example",s)&&r("object",s))),WP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rP||e(s)&&t("externalDocumentation",s)&&r("object",s))),GP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sP||e(s)&&t("header",s)&&r("object",s))),JP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nP||e(s)&&t("info",s)&&r("object",s))),KP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof iP||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),YP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oP||e(s)&&t("license",s)&&r("object",s))),XP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aP||e(s)&&t("link",s)&&r("object",s))),ZP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uP||e(s)&&t("openapi",s)&&r("string",s))),QP=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof dP||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),eC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hP||e(s)&&t("operation",s)&&r("object",s))),tC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mP||e(s)&&t("parameter",s)&&r("object",s))),rC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fP||e(s)&&t("pathItem",s)&&r("object",s))),sC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gP||e(s)&&t("paths",s)&&r("object",s))),nC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yP||e(s)&&t("reference",s)&&r("object",s))),iC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vP||e(s)&&t("requestBody",s)&&r("object",s))),oC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bP||e(s)&&t("response",s)&&r("object",s))),aC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xP||e(s)&&t("responses",s)&&r("object",s))),lC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wP||e(s)&&t("schema",s)&&r("object",s))),cC=e=>H$(e)&&e.classes.includes("boolean-json-schema"),pC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $P||e(s)&&t("securityRequirement",s)&&r("object",s))),uC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof SP||e(s)&&t("securityScheme",s)&&r("object",s))),dC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof EP||e(s)&&t("server",s)&&r("object",s))),hC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kP||e(s)&&t("serverVariable",s)&&r("object",s))),mC=B$((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lP||e(s)&&t("mediaType",s)&&r("object",s))),fC=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:cC,isCallbackElement:UP,isComponentsElement:zP,isContactElement:HP,isExampleElement:VP,isExternalDocumentationElement:WP,isHeaderElement:GP,isInfoElement:JP,isJsonSchemaDialectElement:KP,isLicenseElement:YP,isLinkElement:XP,isMediaTypeElement:mC,isOpenApi3_1Element:QP,isOpenapiElement:ZP,isOperationElement:eC,isParameterElement:tC,isPathItemElement:rC,isPathItemElementExternal:e=>{if(!rC(e))return!1;if(!N$(e.$ref))return!1;const t=US(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isPathsElement:sC,isReferenceElement:nC,isReferenceElementExternal:e=>{if(!nC(e))return!1;if(!N$(e.$ref))return!1;const t=US(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isRequestBodyElement:iC,isResponseElement:oC,isResponsesElement:aC,isSchemaElement:lC,isSecurityRequirementElement:pC,isSecuritySchemeElement:uC,isServerElement:dC,isServerVariableElement:hC},Symbol.toStringTag,{value:"Module"})),gC=e=>{const t=e.reduce(((t,r,s)=>{if(G$(r)){const e=String(US(r.key));t.push(e)}else if(W$(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return Rk(t)},yC=()=>{const e=oS(jP);return{predicates:{...fC,isElement:q$,isStringElement:N$,isArrayElement:W$,isObjectElement:V$,isMemberElement:G$,isServersElement:Nj,includesClasses:rS,hasElementSourceMap:tS},ancestorLineageToJSONPointer:gC,namespace:e}};class vC extends(AA(ej,JO)){constructor(e){super(e),this.element=new dP,this.specPath=zm(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,ej.prototype.ObjectElement.call(this,e)}}const{visitors:{document:{objects:{Info:{$visitor:bC}}}}}=GT,{visitors:{document:{objects:{Contact:{$visitor:xC}}}}}=GT,{visitors:{document:{objects:{License:{$visitor:wC}}}}}=GT,{visitors:{document:{objects:{Link:{$visitor:$C}}}}}=GT;class SC extends(AA(KO,JO)){StringElement(e){const t=new iP(US(e));return this.copyMetaAndAttributes(e,t),this.element=t,cS}}const{visitors:{document:{objects:{Server:{$visitor:EC}}}}}=GT,{visitors:{document:{objects:{ServerVariable:{$visitor:kC}}}}}=GT,{visitors:{document:{objects:{MediaType:{$visitor:AC}}}}}=GT,{visitors:{document:{objects:{SecurityRequirement:{$visitor:OC}}}}}=GT,{visitors:{document:{objects:{Components:{$visitor:jC}}}}}=GT,{visitors:{document:{objects:{Tag:{$visitor:TC}}}}}=GT,{visitors:{document:{objects:{Reference:{$visitor:PC}}}}}=GT,{visitors:{document:{objects:{Parameter:{$visitor:CC}}}}}=GT,{visitors:{document:{objects:{Header:{$visitor:IC}}}}}=GT;class _C{parent;constructor({parent:e}){this.parent=e}}class RC extends(AA(ej,_C,JO)){constructor(e){super(e),this.element=new wP,this.specPath=zm(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=iP.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=ej.prototype.ObjectElement.call(this,e);return N$(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&KP(this.openApiSemanticElement.jsonSchemaDialect)?US(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&N$(this.openApiGenericElement.get("jsonSchemaDialect"))?US(this.openApiGenericElement.get("jsonSchemaDialect")):US(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(vg(this.parent)&&!N$(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(lC(this.parent)&&!N$(e.get("$schema"))){const e=vf(US(this.parent.meta.get("inherited$schema")),US(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?vS(this.parent.getMetaProperty("inherited$id",[])):new E$,r=US(e.get("$id"));Rg(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}class FC extends(AA(lj,_C,JO)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-$defs"),this.specPath=zm(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}let MC=class extends(AA(KO,_C,JO)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(V$(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=vS(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),cS}};class LC extends(AA(KO,_C,JO)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(V$(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=vS(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),cS}}class DC extends(AA(KO,_C,JO)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(V$(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=vS(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),cS}}class BC extends(AA(lj,_C,JO)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=zm(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}class qC extends(AA(KO,_C,JO)){constructor(e){super(e),this.element=new E$,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(V$(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=vS(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),cS}}class NC extends(AA(lj,_C,JO)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-properties"),this.specPath=zm(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}class UC extends(AA(lj,_C,JO)){constructor(e){super(e),this.element=new k$,this.element.classes.push("json-schema-patternProperties"),this.specPath=zm(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const{visitors:{document:{objects:{Discriminator:{$visitor:zC}}}}}=GT,{visitors:{document:{objects:{XML:{$visitor:HC}}}}}=GT;class VC extends(AA(lj,JO)){constructor(e){super(e),this.element=new fO,this.specPath=zm(["document","objects","Schema"])}}class WC extends(AA(lj,JO)){constructor(e){super(e),this.element=new TP,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(nC).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const{visitors:{document:{objects:{Example:{$visitor:GC}}}}}=GT,{visitors:{document:{objects:{ExternalDocumentation:{$visitor:JC}}}}}=GT,{visitors:{document:{objects:{Encoding:{$visitor:KC}}}}}=GT,{visitors:{document:{objects:{Paths:{$visitor:YC}}}}}=GT,{visitors:{document:{objects:{RequestBody:{$visitor:XC}}}}}=GT,{visitors:{document:{objects:{Callback:{$visitor:ZC}}}}}=GT,{visitors:{document:{objects:{Response:{$visitor:QC}}}}}=GT,{visitors:{document:{objects:{Responses:{$visitor:eI}}}}}=GT,{visitors:{document:{objects:{Operation:{$visitor:tI}}}}}=GT,{visitors:{document:{objects:{PathItem:{$visitor:rI}}}}}=GT,{visitors:{document:{objects:{SecurityScheme:{$visitor:sI}}}}}=GT,{visitors:{document:{objects:{OAuthFlows:{$visitor:nI}}}}}=GT,{visitors:{document:{objects:{OAuthFlow:{$visitor:iI}}}}}=GT;class oI extends(AA(lj,JO)){constructor(e){super(e),this.element=new PP,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=lj.prototype.ObjectElement.call(this,e);return this.element.filter(nC).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(rC).forEach(((e,t)=>{e.setMetaProperty("webhook-name",US(t))})),t}}const aI={visitors:{value:GT.visitors.value,document:{objects:{OpenApi:{$visitor:vC,fixedFields:{openapi:GT.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:SC,servers:GT.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:oI,components:{$ref:"#/visitors/document/objects/Components"},security:GT.visitors.document.objects.OpenApi.fixedFields.security,tags:GT.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:class extends bC{constructor(e){super(e),this.element=new nP}},fixedFields:{title:GT.visitors.document.objects.Info.fixedFields.title,description:GT.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:GT.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:GT.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:class extends xC{constructor(e){super(e),this.element=new ZT}},fixedFields:{name:GT.visitors.document.objects.Contact.fixedFields.name,url:GT.visitors.document.objects.Contact.fixedFields.url,email:GT.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:class extends wC{constructor(e){super(e),this.element=new oP}},fixedFields:{name:GT.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:GT.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:class extends EC{constructor(e){super(e),this.element=new EP}},fixedFields:{url:GT.visitors.document.objects.Server.fixedFields.url,description:GT.visitors.document.objects.Server.fixedFields.description,variables:GT.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:class extends kC{constructor(e){super(e),this.element=new kP}},fixedFields:{enum:GT.visitors.document.objects.ServerVariable.fixedFields.enum,default:GT.visitors.document.objects.ServerVariable.fixedFields.default,description:GT.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:class extends jC{constructor(e){super(e),this.element=new XT}},fixedFields:{schemas:VC,responses:GT.visitors.document.objects.Components.fixedFields.responses,parameters:GT.visitors.document.objects.Components.fixedFields.parameters,examples:GT.visitors.document.objects.Components.fixedFields.examples,requestBodies:GT.visitors.document.objects.Components.fixedFields.requestBodies,headers:GT.visitors.document.objects.Components.fixedFields.headers,securitySchemes:GT.visitors.document.objects.Components.fixedFields.securitySchemes,links:GT.visitors.document.objects.Components.fixedFields.links,callbacks:GT.visitors.document.objects.Components.fixedFields.callbacks,pathItems:WC}},Paths:{$visitor:class extends YC{constructor(e){super(e),this.element=new gP}}},PathItem:{$visitor:class extends rI{constructor(e){super(e),this.element=new fP}},fixedFields:{$ref:GT.visitors.document.objects.PathItem.fixedFields.$ref,summary:GT.visitors.document.objects.PathItem.fixedFields.summary,description:GT.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:GT.visitors.document.objects.PathItem.fixedFields.servers,parameters:GT.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:class extends tI{constructor(e){super(e),this.element=new hP}},fixedFields:{tags:GT.visitors.document.objects.Operation.fixedFields.tags,summary:GT.visitors.document.objects.Operation.fixedFields.summary,description:GT.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:GT.visitors.document.objects.Operation.fixedFields.operationId,parameters:GT.visitors.document.objects.Operation.fixedFields.parameters,requestBody:GT.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:GT.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:GT.visitors.document.objects.Operation.fixedFields.deprecated,security:GT.visitors.document.objects.Operation.fixedFields.security,servers:GT.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:class extends JC{constructor(e){super(e),this.element=new rP}},fixedFields:{description:GT.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:GT.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:class extends CC{constructor(e){super(e),this.element=new mP}},fixedFields:{name:GT.visitors.document.objects.Parameter.fixedFields.name,in:GT.visitors.document.objects.Parameter.fixedFields.in,description:GT.visitors.document.objects.Parameter.fixedFields.description,required:GT.visitors.document.objects.Parameter.fixedFields.required,deprecated:GT.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:GT.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:GT.visitors.document.objects.Parameter.fixedFields.style,explode:GT.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:GT.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:GT.visitors.document.objects.Parameter.fixedFields.example,examples:GT.visitors.document.objects.Parameter.fixedFields.examples,content:GT.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:class extends XC{constructor(e){super(e),this.element=new vP}},fixedFields:{description:GT.visitors.document.objects.RequestBody.fixedFields.description,content:GT.visitors.document.objects.RequestBody.fixedFields.content,required:GT.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:class extends AC{constructor(e){super(e),this.element=new lP}},fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:GT.visitors.document.objects.MediaType.fixedFields.example,examples:GT.visitors.document.objects.MediaType.fixedFields.examples,encoding:GT.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:class extends KC{constructor(e){super(e),this.element=new eP}},fixedFields:{contentType:GT.visitors.document.objects.Encoding.fixedFields.contentType,headers:GT.visitors.document.objects.Encoding.fixedFields.headers,style:GT.visitors.document.objects.Encoding.fixedFields.style,explode:GT.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:GT.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:class extends eI{constructor(e){super(e),this.element=new xP}},fixedFields:{default:GT.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:class extends QC{constructor(e){super(e),this.element=new bP}},fixedFields:{description:GT.visitors.document.objects.Response.fixedFields.description,headers:GT.visitors.document.objects.Response.fixedFields.headers,content:GT.visitors.document.objects.Response.fixedFields.content,links:GT.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:class extends ZC{constructor(e){super(e),this.element=new YT,this.specPath=e=>YO(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ZC.prototype.ObjectElement.call(this,e);return this.element.filter(nC).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}},Example:{$visitor:class extends GC{constructor(e){super(e),this.element=new tP}},fixedFields:{summary:GT.visitors.document.objects.Example.fixedFields.summary,description:GT.visitors.document.objects.Example.fixedFields.description,value:GT.visitors.document.objects.Example.fixedFields.value,externalValue:GT.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:class extends $C{constructor(e){super(e),this.element=new aP}},fixedFields:{operationRef:GT.visitors.document.objects.Link.fixedFields.operationRef,operationId:GT.visitors.document.objects.Link.fixedFields.operationId,parameters:GT.visitors.document.objects.Link.fixedFields.parameters,requestBody:GT.visitors.document.objects.Link.fixedFields.requestBody,description:GT.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:class extends IC{constructor(e){super(e),this.element=new sP}},fixedFields:{description:GT.visitors.document.objects.Header.fixedFields.description,required:GT.visitors.document.objects.Header.fixedFields.required,deprecated:GT.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:GT.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:GT.visitors.document.objects.Header.fixedFields.style,explode:GT.visitors.document.objects.Header.fixedFields.explode,allowReserved:GT.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:GT.visitors.document.objects.Header.fixedFields.example,examples:GT.visitors.document.objects.Header.fixedFields.examples,content:GT.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:class extends TC{constructor(e){super(e),this.element=new AP}},fixedFields:{name:GT.visitors.document.objects.Tag.fixedFields.name,description:GT.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:class extends PC{constructor(e){super(e),this.element=new yP}},fixedFields:{$ref:GT.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:RC,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:class extends JO{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}},$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},$defs:FC,$comment:{$ref:"#/visitors/value"},allOf:MC,anyOf:LC,oneOf:DC,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:BC,prefixItems:qC,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:NC,patternProperties:UC,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:class extends JO{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}},enum:class extends JO{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}},const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:class extends JO{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}},title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:class extends JO{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},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:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:class extends zC{constructor(e){super(e),this.element=new QT,this.canSupportSpecificationExtensions=!0}},fixedFields:{propertyName:GT.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:GT.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:class extends HC{constructor(e){super(e),this.element=new OP}},fixedFields:{name:GT.visitors.document.objects.XML.fixedFields.name,namespace:GT.visitors.document.objects.XML.fixedFields.namespace,prefix:GT.visitors.document.objects.XML.fixedFields.prefix,attribute:GT.visitors.document.objects.XML.fixedFields.attribute,wrapped:GT.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:class extends sI{constructor(e){super(e),this.element=new SP}},fixedFields:{type:GT.visitors.document.objects.SecurityScheme.fixedFields.type,description:GT.visitors.document.objects.SecurityScheme.fixedFields.description,name:GT.visitors.document.objects.SecurityScheme.fixedFields.name,in:GT.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:GT.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:GT.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:GT.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:class extends nI{constructor(e){super(e),this.element=new pP}},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:class extends iI{constructor(e){super(e),this.element=new cP}},fixedFields:{authorizationUrl:GT.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:GT.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:GT.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:GT.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:class extends OC{constructor(e){super(e),this.element=new $P}}}},extension:{$visitor:GT.visitors.document.extension.$visitor}}}},lI=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=T$(e),n=VS(aI),i=new(eg(t,n))({specObj:n});return OS(s,i),TS(i.element,r,{toolboxCreator:yC,visitorOptions:{keyMap:IP,nodeTypeGetter:CP}})})(t,{specPath:e,...r});YT.refract=lI(["visitors","document","objects","Callback","$visitor"]),XT.refract=lI(["visitors","document","objects","Components","$visitor"]),ZT.refract=lI(["visitors","document","objects","Contact","$visitor"]),tP.refract=lI(["visitors","document","objects","Example","$visitor"]),QT.refract=lI(["visitors","document","objects","Discriminator","$visitor"]),eP.refract=lI(["visitors","document","objects","Encoding","$visitor"]),rP.refract=lI(["visitors","document","objects","ExternalDocumentation","$visitor"]),sP.refract=lI(["visitors","document","objects","Header","$visitor"]),nP.refract=lI(["visitors","document","objects","Info","$visitor"]),iP.refract=lI(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),oP.refract=lI(["visitors","document","objects","License","$visitor"]),aP.refract=lI(["visitors","document","objects","Link","$visitor"]),lP.refract=lI(["visitors","document","objects","MediaType","$visitor"]),cP.refract=lI(["visitors","document","objects","OAuthFlow","$visitor"]),pP.refract=lI(["visitors","document","objects","OAuthFlows","$visitor"]),uP.refract=lI(["visitors","document","objects","OpenApi","fixedFields","openapi"]),dP.refract=lI(["visitors","document","objects","OpenApi","$visitor"]),hP.refract=lI(["visitors","document","objects","Operation","$visitor"]),mP.refract=lI(["visitors","document","objects","Parameter","$visitor"]),fP.refract=lI(["visitors","document","objects","PathItem","$visitor"]),gP.refract=lI(["visitors","document","objects","Paths","$visitor"]),yP.refract=lI(["visitors","document","objects","Reference","$visitor"]),vP.refract=lI(["visitors","document","objects","RequestBody","$visitor"]),bP.refract=lI(["visitors","document","objects","Response","$visitor"]),xP.refract=lI(["visitors","document","objects","Responses","$visitor"]),wP.refract=lI(["visitors","document","objects","Schema","$visitor"]),$P.refract=lI(["visitors","document","objects","SecurityRequirement","$visitor"]),SP.refract=lI(["visitors","document","objects","SecurityScheme","$visitor"]),EP.refract=lI(["visitors","document","objects","Server","$visitor"]),kP.refract=lI(["visitors","document","objects","ServerVariable","$visitor"]),AP.refract=lI(["visitors","document","objects","Tag","$visitor"]),OP.refract=lI(["visitors","document","objects","XML","$visitor"]);class cI extends QS{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),s=new I$;if(0!==r.length){const e=new x$(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new cE(`Error parsing "${e.uri}"`,{cause:t})}}}class pI extends class{name;constructor({name:e}){this.name=e}}{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new ZS('"openapi-3-1" dereference strategy is not available.');const s=new Dy,n=Uy(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}}const{AbortController:uI,AbortSignal:dI}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=uI),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=dI);class hI extends class extends class{name;constructor({name:e}){this.name=e}}{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return Oy(e.uri)}}{swaggerHTTPClient=Xs;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Xs,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:s}=r,n=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new Jy(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}}class mI extends QS{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||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(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new cE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new I$,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=WS(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new cE(`Error parsing "${e.uri}"`,{cause:t})}}}class fI extends QS{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Js.load(e.toString(),{schema:Ls}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new cE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new I$,r=e.toString();try{const e=Js.load(r,{schema:Ls});if(this.allowEmpty&&void 0===e)return t;const s=WS(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new cE(`Error parsing "${e.uri}"`,{cause:t})}}}class gI extends QS{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new Mk(...Lk.filterByFormat("generic"),...Lk.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new cE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new I$,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=dP.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new cE(`Error parsing "${e.uri}"`,{cause:t})}}}class yI extends QS{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;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new Mk(...Lk.filterByFormat("generic"),...Lk.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return Js.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new cE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new I$,r=e.toString();try{const e=Js.load(r,{schema:Ls});if(this.allowEmpty&&void 0===e)return t;const s=dP.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new cE(`Error parsing "${e.uri}"`,{cause:t})}}}const vI=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),bI=e=>{const t=Py(e);return ay("#",t)},xI=(e,t)=>{const r=(e=>{if(!vI(e))throw new oE(e);return e})(e),s=MS((e=>lC(e)&&US(e.$anchor)===r),t);if(vg(s))throw new sE(`Evaluation failed on token: "${r}"`);return s},wI=(e,t)=>{if(void 0===t.$ref)return;const r=Py(US(t.$ref)),s=US(t.meta.get("inherited$id"));return`${Nm(((e,t)=>_y(e,Ry(Cy(t)))),e,[...s,US(t.$ref)])}${"#"===r?"":r}`},$I=e=>{if($I.cache.has(e))return $I.cache.get(e);const t=wP.refract(e);return $I.cache.set(e,t),t};$I.cache=new WeakMap;const SI=e=>eS(e)?$I(e):e,EI=(e,t)=>{const{cache:r}=EI,s=Cy(e),n=e=>lC(e)&&void 0!==e.$id;if(!r.has(t)){const e=((e,t)=>{const r=new AS({predicate:e});return OS(t,r),new y$(r.result)})(n,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>{const t=((e,t)=>{if(void 0===t.$id)return;const r=US(t.meta.get("inherited$id"));return Nm(((e,t)=>_y(e,Ry(Cy(t)))),e,[...r,US(t.$id)])})(s,e);return t===s}));if(vg(i))throw new iE(`Evaluation failed on URI: "${e}"`);let o,a;return vI(bI(e))?(o=xI,a=bI(e)):(o=Fk,a=_k(e)),o(a,i)};EI.cache=new WeakMap;const kI=OS[Symbol.for("nodejs.util.promisify.custom")],AI=new _S,OI=(e,t,r,s)=>{G$(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class jI{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new eE,refractCache:i=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new eE(...n),this.refractCache=i}toBaseURI(e){return _y(this.reference.uri,Ry(Cy(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new lE(`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(ng(t,"uri"));const s=await(async(e,t)=>{const r=new Ly({uri:Ry(Cy(e)),mediaType:t.parse.mediaType}),s=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),s=await Hy("canRead",[e,t],r);if(Nf(s))throw new Ky(e.uri);try{const{result:t}=await Vy("read",[e],s);return t}catch(t){throw new Gy(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),s=await Hy("canParse",[e,t],r);if(Nf(s))throw new Ky(e.uri);try{const{plugin:r,result:n}=await Vy("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new Wy(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new Wy(`Error while parsing file "${e.uri}"`,{cause:t})}})(new Ly({...r,data:s}),t)})(Fy(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new tE({uri:t,value:vS(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new tE({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(q$));return[new eE(...this.ancestors,t),t]}async ReferenceElement(e,t,r,s,n,i){if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(US(e.$ref)),c=Cy(this.reference.uri)===l,p=!c;if(!this.options.resolve.internal&&c)return!1;if(!this.options.resolve.external&&p)return!1;const u=await this.toReference(US(e.$ref)),d=_y(l,US(e.$ref));this.indirections.push(e);const h=_k(d);let m=Fk(h,u.value.result);if(m.id=AI.identify(m),eS(m)){const t=US(e.meta.get("referenced-element")),r=`${t}-${US(AI.identify(m))}`;this.refractCache.has(r)?m=this.refractCache.get(r):YO(m)?(m=yP.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m)):(m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m))}if(e===m)throw new Ih("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ih("Circular reference detected");if("replace"===this.options.dereference.circular){var f,g;const t=new O$(m.id,{type:"reference",uri:u.uri,$ref:US(e.$ref)}),s=(null!==(f=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==f?f:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,OI),!r&&s}}const y=Cy(u.refSet.rootRef.uri)!==u.uri,v=["error","replace"].includes(this.options.dereference.circular);if((p||y||nC(m)||v)&&!o.includesCycle(m)){a.add(e);const t=new jI({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await kI(m,t,{keyMap:IP,nodeTypeGetter:CP}),a.delete(e)}this.indirections.pop();const b=wS(m);return b.setMetaProperty("id",AI.generateId()),b.setMetaProperty("ref-fields",{$ref:US(e.$ref),description:US(e.description),summary:US(e.summary)}),b.setMetaProperty("ref-origin",u.uri),b.setMetaProperty("ref-referencing-element-id",vS(AI.identify(e))),V$(m)&&V$(b)&&(e.hasKey("description")&&"description"in m&&(b.remove("description"),b.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(b.remove("summary"),b.set("summary",e.get("summary")))),i.replaceWith(b,OI),!r&&b}async PathItemElement(e,t,r,s,n,i){if(!N$(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(US(e.$ref)),c=Cy(this.reference.uri)===l,p=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&p)return;const u=await this.toReference(US(e.$ref)),d=_y(l,US(e.$ref));this.indirections.push(e);const h=_k(d);let m=Fk(h,u.value.result);if(m.id=AI.identify(m),eS(m)){const e=`path-item-${US(AI.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=fP.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Ih("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ih("Circular reference detected");if("replace"===this.options.dereference.circular){var f,g;const t=new O$(m.id,{type:"path-item",uri:u.uri,$ref:US(e.$ref)}),s=(null!==(f=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==f?f:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,OI),!r&&s}}const y=Cy(u.refSet.rootRef.uri)!==u.uri,v=["error","replace"].includes(this.options.dereference.circular);if((p||y||rC(m)&&N$(m.$ref)||v)&&!o.includesCycle(m)){a.add(e);const t=new jI({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await kI(m,t,{keyMap:IP,nodeTypeGetter:CP}),a.delete(e)}if(this.indirections.pop(),rC(m)){const t=new fP([...m.content],vS(m.meta),vS(m.attributes));t.setMetaProperty("id",AI.generateId()),e.forEach(((e,r,s)=>{t.remove(US(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:US(e.$ref)}),t.setMetaProperty("ref-origin",u.uri),t.setMetaProperty("ref-referencing-element-id",vS(AI.identify(e))),m=t}return i.replaceWith(m,OI),r?void 0:m}async LinkElement(e,t,r,s,n,i){if(!N$(e.operationRef)&&!N$(e.operationId))return;if(N$(e.operationRef)&&N$(e.operationId))throw new Ih("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(N$(e.operationRef)){var a;const t=_k(US(e.operationRef)),s=this.toBaseURI(US(e.operationRef)),n=Cy(this.reference.uri)===s,l=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&l)return;const c=await this.toReference(US(e.operationRef));if(o=Fk(t,c.value.result),eS(o)){const e=`operation-${US(AI.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=hP.refract(o),this.refractCache.set(e,o))}o=wS(o),o.setMetaProperty("ref-origin",c.uri);const p=wS(e);return null===(a=p.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(p,OI),r?void 0:p}if(N$(e.operationId)){var l;const t=US(e.operationId),s=await this.toReference(Fy(this.reference.uri));if(o=MS((e=>eC(e)&&q$(e.operationId)&&e.operationId.equals(t)),s.value.result),vg(o))throw new Ih(`OperationElement(operationId=${t}) not found.`);const n=wS(e);return null===(l=n.operationId)||void 0===l||l.meta.set("operation",o),i.replaceWith(n,OI),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!N$(e.externalValue))return;if(e.hasKey("value")&&N$(e.externalValue))throw new Ih("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(US(e.externalValue)),a=Cy(this.reference.uri)===o,l=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&l)return;const c=await this.toReference(US(e.externalValue)),p=wS(c.value.result);p.setMetaProperty("ref-origin",c.uri);const u=wS(e);return u.value=p,i.replaceWith(u,OI),r?void 0:u}async SchemaElement(e,t,r,s,n,i){if(!N$(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]);let l=await this.toReference(Fy(this.reference.uri)),{uri:c}=l;const p=wI(c,e),u=Cy(p),d=new Ly({uri:u}),h=Xf((e=>e.canRead(d)),this.options.resolve.resolvers),m=!h;let f,g=Cy(this.reference.uri)===p,y=!g;this.indirections.push(e);try{if(h||m){c=this.toBaseURI(p);const e=p,t=SI(l.value.result);if(f=EI(e,t),f=SI(f),f.id=AI.identify(f),!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return}else{if(c=this.toBaseURI(p),g=Cy(this.reference.uri)===c,y=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return;l=await this.toReference(Fy(p));const e=_k(p),t=SI(l.value.result);f=Fk(e,t),f=SI(f),f.id=AI.identify(f)}}catch(e){if(!(m&&e instanceof iE))throw e;if(vI(bI(p))){if(g=Cy(this.reference.uri)===c,y=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return;l=await this.toReference(Fy(p));const e=bI(p),t=SI(l.value.result);f=xI(e,t),f=SI(f),f.id=AI.identify(f)}else{if(c=this.toBaseURI(p),g=Cy(this.reference.uri)===c,y=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return;l=await this.toReference(Fy(p));const e=_k(p),t=SI(l.value.result);f=Fk(e,t),f=SI(f),f.id=AI.identify(f)}}if(e===f)throw new Ih("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ih("Circular reference detected");if("replace"===this.options.dereference.circular){var v,b;const t=new O$(f.id,{type:"json-schema",uri:l.uri,$ref:US(e.$ref)}),s=(null!==(v=null===(b=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===b?void 0:b.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,OI),!r&&s}}const x=Cy(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((y||x||lC(f)&&N$(f.$ref)||w)&&!o.includesCycle(f)){a.add(e);const t=new jI({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await kI(f,t,{keyMap:IP,nodeTypeGetter:CP}),a.delete(e)}if(this.indirections.pop(),cC(f)){const t=vS(f);return t.setMetaProperty("id",AI.generateId()),t.setMetaProperty("ref-fields",{$ref:US(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",vS(AI.identify(e))),i.replaceWith(t,OI),!r&&t}if(lC(f)){const t=new wP([...f.content],vS(f.meta),vS(f.attributes));t.setMetaProperty("id",AI.generateId()),e.forEach(((e,r,s)=>{t.remove(US(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:US(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",vS(AI.identify(e))),f=t}return i.replaceWith(f,OI),r?void 0:f}}const TI=OS[Symbol.for("nodejs.util.promisify.custom")],PI=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(G$(r)){const t=String(US(r.key));e.push(t)}else if(W$(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};class CI{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&V$(e.properties)&&e.properties.forEach((t=>{if(V$(t))try{const e=this.modelPropertyMacro(US(t));t.set("default",e)}catch(t){var s,i;const o=new Error(t,{cause:t});o.fullPath=[...PI([...n,r,e]),"properties"],null===(s=this.options.dereference.dereferenceOpts)||void 0===s||null===(s=s.errors)||void 0===s||null===(i=s.push)||void 0===i||i.call(s,o)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}}class II{options;SchemaElement={leave(e,t,r,s,n){if(void 0!==e.allOf){if(!W$(e.allOf)){var i,o;const t=new TypeError("allOf must be an array");return t.fullPath=[...PI([...n,r,e]),"allOf"],void(null===(i=this.options.dereference.dereferenceOpts)||void 0===i||null===(i=i.errors)||void 0===i||null===(o=i.push)||void 0===o||o.call(i,t))}if(e.allOf.isEmpty)e.remove("allOf");else{if(!e.allOf.content.every(lC)){var a,l;const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...PI([...n,r,e]),"allOf"],void(null===(a=this.options.dereference.dereferenceOpts)||void 0===a||null===(a=a.errors)||void 0===a||null===(l=a.push)||void 0===l||l.call(a,t))}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=YS.all([...t.content,e]);if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}}}};constructor({options:e}){this.options=e}}class _I{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#e?US(this.#e):null,o=US(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){var a,l;const t=new Error(e,{cause:e});t.fullPath=PI([...n,r]),null===(a=this.options.dereference.dereferenceOpts)||void 0===a||null===(a=a.errors)||void 0===a||null===(l=a.push)||void 0===l||l.call(a,t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}}const RI=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};class FI extends _h{}const{wrapError:MI}=JE,LI=OS[Symbol.for("nodejs.util.promisify.custom")],DI=new _S,BI=(e,t,r,s)=>{G$(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class qI extends jI{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(US(e.$ref)),p=Cy(this.reference.uri)===c,u=!p;if(!this.options.resolve.internal&&p)return!1;if(!this.options.resolve.external&&u)return!1;const d=await this.toReference(US(e.$ref)),h=_y(c,US(e.$ref));this.indirections.push(e);const m=_k(h);let f=Fk(m,d.value.result);if(f.id=DI.identify(f),eS(f)){const t=US(e.meta.get("referenced-element")),r=`${t}-${US(DI.identify(f))}`;this.refractCache.has(r)?f=this.refractCache.get(r):YO(f)?(f=yP.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f)):(f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f))}if(e===f)throw new Ih("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(f)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ih("Circular reference detected");if("replace"===this.options.dereference.circular){var o,a;const t=new O$(f.id,{type:"reference",uri:d.uri,$ref:US(e.$ref),baseURI:h,referencingElement:e}),s=(null!==(o=null===(a=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===a?void 0:a.circularReplacer)&&void 0!==o?o:this.options.dereference.circularReplacer)(t);return i.replaceWith(t,BI),!r&&s}}const g=Cy(d.refSet.rootRef.uri)!==d.uri,y=["error","replace"].includes(this.options.dereference.circular);if((u||g||nC(f)||y)&&!t.includesCycle(f)){var l;s.add(e);const i=new qI({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:null!==(l=this.basePath)&&void 0!==l?l:[...PI([...n,r,e]),"$ref"]});f=await LI(f,i,{keyMap:IP,nodeTypeGetter:CP}),s.delete(e)}this.indirections.pop();const v=wS(f);if(v.setMetaProperty("ref-fields",{$ref:US(e.$ref),description:US(e.description),summary:US(e.summary)}),v.setMetaProperty("ref-origin",d.uri),v.setMetaProperty("ref-referencing-element-id",vS(DI.identify(e))),V$(f)&&(e.hasKey("description")&&"description"in f&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(v.remove("summary"),v.set("summary",e.get("summary")))),this.allowMetaPatches&&V$(v)&&!v.hasKey("$$ref")){const e=_y(c,h);v.set("$$ref",e)}return i.replaceWith(v,BI),!r&&v}catch(t){var c,p,u;const s=RI(t),i=MI(s,{baseDoc:this.reference.uri,$ref:US(e.$ref),pointer:_k(US(e.$ref)),fullPath:null!==(c=this.basePath)&&void 0!==c?c:[...PI([...n,r,e]),"$ref"]});return void(null===(p=this.options.dereference.dereferenceOpts)||void 0===p||null===(p=p.errors)||void 0===p||null===(u=p.push)||void 0===u||u.call(p,i))}}async PathItemElement(e,t,r,s,n,i){try{if(!N$(e.$ref))return;if(this.indirections.includes(e))return!1;if(rS(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(US(e.$ref)),p=Cy(this.reference.uri)===c,u=!p;if(!this.options.resolve.internal&&p)return;if(!this.options.resolve.external&&u)return;const d=await this.toReference(US(e.$ref)),h=_y(c,US(e.$ref));this.indirections.push(e);const m=_k(h);let f=Fk(m,d.value.result);if(f.id=DI.identify(f),eS(f)){const e=`path-item-${US(DI.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=fP.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Ih("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(f)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ih("Circular reference detected");if("replace"===this.options.dereference.circular){var o,a;const t=new O$(f.id,{type:"path-item",uri:d.uri,$ref:US(e.$ref),baseURI:h,referencingElement:e}),s=(null!==(o=null===(a=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===a?void 0:a.circularReplacer)&&void 0!==o?o:this.options.dereference.circularReplacer)(t);return i.replaceWith(t,BI),!r&&s}}const g=Cy(d.refSet.rootRef.uri)!==d.uri,y=["error","replace"].includes(this.options.dereference.circular);if((u||g||rC(f)&&N$(f.$ref)||y)&&!t.includesCycle(f)){var l;s.add(e);const i=new qI({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:null!==(l=this.basePath)&&void 0!==l?l:[...PI([...n,r,e]),"$ref"]});f=await LI(f,i,{keyMap:IP,nodeTypeGetter:CP}),s.delete(e)}if(this.indirections.pop(),rC(f)){const t=new fP([...f.content],vS(f.meta),vS(f.attributes));if(e.forEach(((e,r,s)=>{t.remove(US(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:US(e.$ref)}),t.setMetaProperty("ref-origin",d.uri),t.setMetaProperty("ref-referencing-element-id",vS(DI.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=_y(c,h);t.set("$$ref",e)}f=t}return i.replaceWith(f,BI),r?void 0:f}catch(t){var c,p,u;const s=RI(t),i=MI(s,{baseDoc:this.reference.uri,$ref:US(e.$ref),pointer:_k(US(e.$ref)),fullPath:null!==(c=this.basePath)&&void 0!==c?c:[...PI([...n,r,e]),"$ref"]});return void(null===(p=this.options.dereference.dereferenceOpts)||void 0===p||null===(p=p.errors)||void 0===p||null===(u=p.push)||void 0===u||u.call(p,i))}}async SchemaElement(e,t,r,s,n,i){try{if(!N$(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let c=await this.toReference(Fy(this.reference.uri)),{uri:p}=c;const u=wI(p,e),d=Cy(u),h=new Ly({uri:d}),m=!this.options.resolve.resolvers.some((e=>e.canRead(h))),f=!m;let g,y=Cy(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(m||f){p=this.toBaseURI(u);const e=u,t=SI(c.value.result);if(g=EI(e,t),g=SI(g),g.id=DI.identify(g),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(p=this.toBaseURI(u),y=Cy(this.reference.uri)===p,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;c=await this.toReference(Fy(u));const e=_k(u),t=SI(c.value.result);g=Fk(e,t),g=SI(g),g.id=DI.identify(g)}}catch(e){if(!(f&&e instanceof iE))throw e;if(vI(bI(u))){if(y=Cy(this.reference.uri)===p,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;c=await this.toReference(Fy(u));const e=bI(u),t=SI(c.value.result);g=xI(e,t),g=SI(g),g.id=DI.identify(g)}else{if(p=this.toBaseURI(US(u)),y=Cy(this.reference.uri)===p,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;c=await this.toReference(Fy(u));const e=_k(u),t=SI(c.value.result);g=Fk(e,t),g=SI(g),g.id=DI.identify(g)}}if(e===g)throw new Ih("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(g)){if(c.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ih("Circular reference detected");if("replace"===this.options.dereference.circular){var o,a;const t=new O$(g.id,{type:"json-schema",uri:c.uri,$ref:US(e.$ref),baseURI:_y(p,u),referencingElement:e}),s=(null!==(o=null===(a=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===a?void 0:a.circularReplacer)&&void 0!==o?o:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,BI),!r&&s}}const b=Cy(c.refSet.rootRef.uri)!==c.uri,x=["error","replace"].includes(this.options.dereference.circular);if((v||b||lC(g)&&N$(g.$ref)||x)&&!t.includesCycle(g)){var l;s.add(e);const i=new qI({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:null!==(l=this.basePath)&&void 0!==l?l:[...PI([...n,r,e]),"$ref"]});g=await LI(g,i,{keyMap:IP,nodeTypeGetter:CP}),s.delete(e)}if(this.indirections.pop(),cC(g)){const t=vS(g);return t.setMetaProperty("ref-fields",{$ref:US(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",vS(DI.identify(e))),i.replaceWith(t,BI),!r&&t}if(lC(g)){const t=new wP([...g.content],vS(g.meta),vS(g.attributes));if(e.forEach(((e,r,s)=>{t.remove(US(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:US(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",vS(DI.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=_y(p,u);t.set("$$ref",e)}g=t}return i.replaceWith(g,BI),r?void 0:g}catch(t){var c,p,u;const s=RI(t),i=new FI(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:US(e.$ref),fullPath:null!==(c=this.basePath)&&void 0!==c?c:[...PI([...n,r,e]),"$ref"],cause:s});return void(null===(p=this.options.dereference.dereferenceOpts)||void 0===p||null===(p=p.errors)||void 0===p||null===(u=p.push)||void 0===u||u.call(p,i))}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){var o,a,l;const s=RI(t),i=MI(s,{baseDoc:this.reference.uri,externalValue:US(e.externalValue),fullPath:null!==(o=this.basePath)&&void 0!==o?o:[...PI([...n,r,e]),"externalValue"]});return void(null===(a=this.options.dereference.dereferenceOpts)||void 0===a||null===(a=a.errors)||void 0===a||null===(l=a.push)||void 0===l||l.call(a,i))}}}const NI=hS[Symbol.for("nodejs.util.promisify.custom")];class UI{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new qI({...n,options:s})),"function"==typeof t&&i.push(new CI({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new II({options:s})),"function"==typeof e&&i.push(new _I({parameterMacro:e,options:s}));const o=NI(i,{nodeTypeGetter:CP});Object.assign(this,o)}}const zI=OS[Symbol.for("nodejs.util.promisify.custom")];class HI extends class extends class{name;constructor({name:e}){this.name=e}}{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?Lk.includes(e.mediaType):QP(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=oS(jP),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Dy,i=new Dy;let o,a=n;n.has(e.uri)?o=n.find(ng(e.uri,"uri")):(o=new tE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new tE({...e,value:vS(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const l=new jI({reference:o,namespace:s,options:t}),c=await TI(a.rootRef.value,l,{keyMap:IP,nodeTypeGetter:CP});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new tE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),c}}{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){var r;const s=oS(jP),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Dy,i=new Dy;let o,a=n;n.has(e.uri)?o=n.find((t=>t.uri===e.uri)):(o=new tE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new tE({...e,value:vS(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const l=new UI({reference:o,namespace:s,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await zI(a.rootRef.value,l,{keyMap:IP,nodeTypeGetter:CP});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new tE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),c}}const VI=e=>{const t=US(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new k$({$ref:t},vS(r.meta),vS(r.attributes))},WI=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:l=!1,skipNormalization:c=!1,parameterMacro:p=null,modelPropertyMacro:u=null,mode:d="non-strict",strategies:h}=e;try{const{cache:m}=WI,f=h.find((e=>e.match(t))),g=Oy(Iy())?Iy():"https://swagger.io",y=Qs(e),v=_y(g,y);let b;m.has(t)?b=m.get(t):(b=dP.refract(t),b.classes.push("result"),m.set(t,b));const x=new I$([b]),w=Rk(o),$=""===w?"":`#${w}`,S=Fk(w,b),E=new tE({uri:v,value:x}),k=new Dy({refs:[E]});""!==w&&(k.rootRef=void 0);const A=[new Set([S])],O=[],j=((e,t,r)=>new HS({element:r}).transclude(e,t))(S,await(async(e,t={})=>(async(e,t)=>{let r=e,s=!1;if(!Z$(e)){const t=wS(e);t.classes.push("result"),r=new I$([t]),s=!0}const n=new Ly({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await Hy("canDereference",[n,t],t.dereference.strategies);if(Nf(i))throw new ZS(n.uri);try{const{result:e}=await Vy("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new XS(`Error while dereferencing file "${n.uri}"`,{cause:e})}})(e,Uy(By,t)))(S,{resolve:{baseURI:`${v}${$}`,resolvers:[new hI({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new pI]},parse:{mediaType:Lk.latest(),parsers:[new gI({allowEmpty:!1,sourceMap:!1}),new yI({allowEmpty:!1,sourceMap:!1}),new mI({allowEmpty:!1,sourceMap:!1}),new fI({allowEmpty:!1,sourceMap:!1}),new cI({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new HI({allowMetaPatches:a,useCircularStructures:l,parameterMacro:p,modelPropertyMacro:u,mode:d,ancestors:A})],refSet:k,dereferenceOpts:{errors:O},immutable:!1,circular:l?"ignore":"replace",circularReplacer:l?By.dereference.circularReplacer:VI}}),b),T=c?j:f.normalize(j);return{spec:US(T),errors:O}}catch(e){if(e instanceof jk||e instanceof Pk)return{spec:null,errors:[]};throw e}};WI.cache=new WeakMap;const GI=e=>{if(!V$(e))return e;const t=[BP({operationIdNormalizer:(e,t,r)=>gk({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),RP(),FP(),qP(),NP()];return TS(e,t,{toolboxCreator:yC,visitorOptions:{keyMap:IP,nodeTypeGetter:CP}})},JI={name:"openapi-3-1-apidom",match:e=>wk(e),normalize(e){if(!q$(e)&&qg(e)&&!e.$$normalized){const r=(t=GI,e=>{const r=dP.refract(e);r.classes.push("result");const s=t(r),n=US(s);return WI.cache.set(n,s),US(s)})(e);return r.$$normalized=!0,r}var t;return q$(e)?GI(e):e},resolve:async e=>WI(e)};function KI(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e;for(const n in s)for(const i in s[n]){if("PARAMETERS"===i.toUpperCase())continue;const o=s[n][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:n,method:i.toUpperCase(),operation:o},l=t(a);if(r&&l)return a}}function YI(e,t){return`${t.toLowerCase()}-${e}`}const{isHttpUrl:XI}=My,ZI=()=>null,QI=function({spec:e,cb:t=ZI,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return KI(e,(({pathName:o,method:a,operation:l})=>{var c;(l.tags?(c=l.tags,Array.isArray(c)?c:[c]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const c=i[r],p=gk(l,o,a,{v2OperationIdCompatibilityMode:s}),u=t({spec:e,pathName:o,method:a,operation:l,operationId:p});if(n[p])n[p]+=1,c[`${p}${n[p]}`]=u;else if(void 0!==c[p]){const e=n[p]||1;n[p]=e+1,c[`${p}${n[p]}`]=u;const t=c[p];delete c[p],c[`${p}${e}`]=t}else c[p]=u}))})),i},e_=function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:l}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:l,pathName:t,method:r,parameters:n,operationId:s,...i})}};var t_=function(e,t,r){var s=r||{},n=s.encode||n_;if("function"!=typeof n)throw new TypeError("option encode is invalid");if(!s_.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(i&&!s_.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(null!=s.maxAge){var a=s.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(s.domain){if(!s_.test(s.domain))throw new TypeError("option domain is invalid");o+="; Domain="+s.domain}if(s.path){if(!s_.test(s.path))throw new TypeError("option path is invalid");o+="; Path="+s.path}if(s.expires){var l=s.expires;if(!function(e){return"[object Date]"===r_.call(e)||e instanceof Date}(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+l.toUTCString()}if(s.httpOnly&&(o+="; HttpOnly"),s.secure&&(o+="; Secure"),s.partitioned&&(o+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},r_=Object.prototype.toString,s_=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n_(e){return encodeURIComponent(e)}const i_=function(){const e=l_,t=a_,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,a,l,c,p,u=0,d=0,h=0,m=0,f=0,g=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(y,v,x,w)=>{const $=`${s}parse(): `;u=0,d=0,h=0,m=0,f=0,n=void 0,i=void 0,o=void 0,a=void 0,g.refresh(),l=void 0,c=void 0,p=void 0,a=t.stringToChars(x),n=y.rules,i=y.udts;const S=v.toLowerCase();let E;for(const e in n)if(n.hasOwnProperty(e)&&S===n[e].lower){E=n[e].index;break}if(void 0===E)throw new Error(`${$}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(l=[],c=[],t=0;t<n.length;t+=1)l[t]=void 0;for(t=0;t<i.length;t+=1)c[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=a.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?l[t]=o:c[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,a),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,a),p=w,o=[{type:e.RNM,index:E}],b(0,0),o=void 0;let k=!1;switch(g.state){case e.ACTIVE:throw new Error(`${$}final state should never be 'ACTIVE'`);case e.NOMATCH:k=!1;break;case e.EMPTY:case e.MATCH:k=g.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:k,state:g.state,stateName:e.idName(g.state),length:a.length,matched:g.phraseLength,maxMatched:f,maxTreeDepth:h,nodeHits:m}};const y=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,l)=>{let d,h,m;const f=o[t],y=i[f.index];g.UdtIndex=y.index,u||(m=r.ast&&r.ast.udtDefined(f.index),m&&(h=n.length+f.index,d=r.ast.getLength(),r.ast.down(h,y.name)));const v=a.length-l;c[f.index](g,a,l,p),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(y,g,v),u||m&&(g.state===e.NOMATCH?r.ast.setLength(d):r.ast.up(h,y.name,l,g.phraseLength))},b=(t,i)=>{const c=`${s}opExecute(): `,x=o[t];switch(m+=1,d>h&&(h=d),d+=1,g.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),g.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,a,l;const c=o[t];r.ast&&(i=r.ast.getLength()),n=!0,a=s,l=0;for(let t=0;t<c.children.length;t+=1){if(b(c.children[t],a),g.state===e.NOMATCH){n=!1;break}a+=g.phraseLength,l+=g.phraseLength}n?(g.state=0===l?e.EMPTY:e.MATCH,g.phraseLength=l):(g.state=e.NOMATCH,g.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,l,c;const p=o[t];if(0===p.max)return g.state=e.EMPTY,void(g.phraseLength=0);for(i=s,l=0,c=0,r.ast&&(n=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),g.state!==e.NOMATCH)&&g.state!==e.EMPTY&&(c+=1,l+=g.phraseLength,i+=g.phraseLength,c!==p.max););g.state===e.EMPTY||c>=p.min?(g.state=0===l?e.EMPTY:e.MATCH,g.phraseLength=l):(g.state=e.NOMATCH,g.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,c,d;const h=o[t],m=n[h.index],f=l[m.index];if(u||(c=r.ast&&r.ast.ruleDefined(h.index),c&&(i=r.ast.getLength(),r.ast.down(h.index,n[h.index].name))),f){const t=a.length-s;f(g,a,s,p),y(m,g,t,!0),g.state===e.ACTIVE&&(d=o,o=m.opcodes,b(0,s),o=d,f(g,a,s,p),y(m,g,t,!1))}else d=o,o=m.opcodes,b(0,s),o=d;u||c&&(g.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(h.index,m.name,s,g.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];g.state=e.NOMATCH,r<a.length&&s.min<=a[r]&&a[r]<=s.max&&(g.state=e.MATCH,g.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(g.state=e.NOMATCH,r+n<=a.length){for(let e=0;e<n;e+=1)if(a[r+e]!==s.string[e])return;g.state=e.MATCH,g.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];g.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(s=a[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;g.state=e.MATCH,g.phraseLength=i}}else g.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(u+=1,b(t+1,r),u-=1,g.phraseLength=0,g.state){case e.EMPTY:case e.MATCH:g.state=e.EMPTY;break;case e.NOMATCH:g.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${g.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(u+=1,b(t+1,r),u-=1,g.phraseLength=0,g.state){case e.EMPTY:case e.MATCH:g.state=e.NOMATCH;break;case e.NOMATCH:g.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${g.state}`)}})(t,i);break;default:throw new Error(`${c}unrecognized operator`)}u||i+g.phraseLength>f&&(f=i+g.phraseLength),r.stats&&r.stats.collect(x,g),r.trace&&r.trace.up(x,g.state,i,g.phraseLength),d-=1}},o_=function(){const e=l_,t=a_,r=this;let s,n,i,o=0;const a=[],l=[],c=[];function p(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,p)=>{let u;l.length=0,c.length=0,o=0,s=e,n=t,i=p;const d=[];for(u=0;u<s.length;u+=1)d.push(s[u].lower);for(u=0;u<n.length;u+=1)d.push(n[u].lower);for(o=s.length+n.length,u=0;u<o;u+=1)a[u]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(u=d.indexOf(t),u<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[u]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[s.length+e],r.down=(t,r)=>{const s=c.length;return l.push(s),c.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:l.length}),s},r.up=(t,r,s,n)=>{const i=c.length,o=l.pop();return c.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:l.length}),c[o].thatIndex=i,c[o].phraseIndex=s,c[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<c.length;n+=1)s=c[n],r=a[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.phraseLength,t))},r.setLength=e=>{c.length=e,l.length=e>0?c[e-1].stack:0},r.getLength=()=>c.length,r.toXml=()=>{let r="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${c.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=p(s+2),r+=t.charsToString(i),r+="\n",c.forEach((n=>{n.state===e.SEM_PRE?(s+=1,r+=p(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=p(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=p(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)})),r+="</root>\n",r}},a_={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},l_={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case l_.ALT:return"ALT";case l_.CAT:return"CAT";case l_.REP:return"REP";case l_.RNM:return"RNM";case l_.TRG:return"TRG";case l_.TBS:return"TBS";case l_.TLS:return"TLS";case l_.UDT:return"UDT";case l_.AND:return"AND";case l_.NOT:return"NOT";case l_.ACTIVE:return"ACTIVE";case l_.EMPTY:return"EMPTY";case l_.MATCH:return"MATCH";case l_.NOMATCH:return"NOMATCH";case l_.SEM_PRE:return"SEM_PRE";case l_.SEM_POST:return"SEM_POST";case l_.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}},c_=(e,t,r,s,n)=>{if(e===l_.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",a_.charsToString(t,r,s)])}return l_.SEM_OK},p_=(e,t,r,s,n)=>{if(e===l_.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",a_.charsToString(t,r,s)])}return l_.SEM_OK},u_=(e,t,r,s,n)=>{if(e===l_.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",a_.charsToString(t,r,s)])}return l_.SEM_OK},d_=(e,t,r,s,n)=>{if(e===l_.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",a_.charsToString(t,r,s)])}return l_.SEM_OK},h_=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"ALPHA",lower:"alpha",index:4,isBkr:!1},this.rules[5]={name:"DIGIT",lower:"digit",index:5,isBkr:!1},this.rules[6]={name:"HEXDIG",lower:"hexdig",index:6,isBkr:!1},this.rules[7]={name:"pct-encoded",lower:"pct-encoded",index:7,isBkr:!1},this.rules[8]={name:"unreserved",lower:"unreserved",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ucschar",lower:"ucschar",index:10,isBkr:!1},this.rules[11]={name:"iprivate",lower:"iprivate",index:11,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[2].opcodes[2]={type:4,index:8},this.rules[2].opcodes[3]={type:4,index:7},this.rules[2].opcodes[4]={type:4,index:9},this.rules[2].opcodes[5]={type:7,string:[58]},this.rules[2].opcodes[6]={type:7,string:[64]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13,14]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:6,string:[38]},this.rules[3].opcodes[5]={type:5,min:40,max:59},this.rules[3].opcodes[6]={type:6,string:[61]},this.rules[3].opcodes[7]={type:5,min:63,max:91},this.rules[3].opcodes[8]={type:6,string:[93]},this.rules[3].opcodes[9]={type:6,string:[95]},this.rules[3].opcodes[10]={type:5,min:97,max:122},this.rules[3].opcodes[11]={type:6,string:[126]},this.rules[3].opcodes[12]={type:4,index:10},this.rules[3].opcodes[13]={type:4,index:11},this.rules[3].opcodes[14]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:65,max:90},this.rules[4].opcodes[2]={type:5,min:97,max:122},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[6].opcodes[1]={type:4,index:5},this.rules[6].opcodes[2]={type:7,string:[97]},this.rules[6].opcodes[3]={type:7,string:[98]},this.rules[6].opcodes[4]={type:7,string:[99]},this.rules[6].opcodes[5]={type:7,string:[100]},this.rules[6].opcodes[6]={type:7,string:[101]},this.rules[6].opcodes[7]={type:7,string:[102]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2,3]},this.rules[7].opcodes[1]={type:7,string:[37]},this.rules[7].opcodes[2]={type:4,index:6},this.rules[7].opcodes[3]={type:4,index:6},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[8].opcodes[1]={type:4,index:4},this.rules[8].opcodes[2]={type:4,index:5},this.rules[8].opcodes[3]={type:7,string:[45]},this.rules[8].opcodes[4]={type:7,string:[46]},this.rules[8].opcodes[5]={type:7,string:[95]},this.rules[8].opcodes[6]={type:7,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[10].opcodes[1]={type:5,min:160,max:55295},this.rules[10].opcodes[2]={type:5,min:63744,max:64975},this.rules[10].opcodes[3]={type:5,min:65008,max:65519},this.rules[10].opcodes[4]={type:5,min:65536,max:131069},this.rules[10].opcodes[5]={type:5,min:131072,max:196605},this.rules[10].opcodes[6]={type:5,min:196608,max:262141},this.rules[10].opcodes[7]={type:5,min:262144,max:327677},this.rules[10].opcodes[8]={type:5,min:327680,max:393213},this.rules[10].opcodes[9]={type:5,min:393216,max:458749},this.rules[10].opcodes[10]={type:5,min:458752,max:524285},this.rules[10].opcodes[11]={type:5,min:524288,max:589821},this.rules[10].opcodes[12]={type:5,min:589824,max:655357},this.rules[10].opcodes[13]={type:5,min:655360,max:720893},this.rules[10].opcodes[14]={type:5,min:720896,max:786429},this.rules[10].opcodes[15]={type:5,min:786432,max:851965},this.rules[10].opcodes[16]={type:5,min:851968,max:917501},this.rules[10].opcodes[17]={type:5,min:921600,max:983037},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3]},this.rules[11].opcodes[1]={type:5,min:57344,max:63743},this.rules[11].opcodes[2]={type:5,min:983040,max:1048573},this.rules[11].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable )\n",e+='server-variable = "{" server-variable-name "}"\n',e+='server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="literals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "\'", "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; Characters definitions (from RFC 6570)\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+=" ; case-insensitive\n",e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable )\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\nliterals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "\'", "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; Characters definitions (from RFC 6570)\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},m_=e=>{const t=new i_;return t.ast=new o_,t.ast.callbacks["server-url-template"]=c_,t.ast.callbacks["server-variable"]=p_,t.ast.callbacks["server-variable-name"]=u_,t.ast.callbacks.literals=d_,{result:t.parse(h_,"server-url-template",e),ast:t.ast}},f_=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),g_=["literals","server-variable-name"],y_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["slash",a_.charsToString(t,r,s)]),l_.SEM_OK),v_=(e,t,r,s,n)=>{if(e===l_.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",a_.charsToString(t,r,s)])}return l_.SEM_OK},b_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["path",a_.charsToString(t,r,s)]),l_.SEM_OK),x_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["path-literal",a_.charsToString(t,r,s)]),l_.SEM_OK),w_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["query",a_.charsToString(t,r,s)]),l_.SEM_OK),$_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["query-marker",a_.charsToString(t,r,s)]),l_.SEM_OK),S_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["fragment",a_.charsToString(t,r,s)]),l_.SEM_OK),E_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["fragment-marker",a_.charsToString(t,r,s)]),l_.SEM_OK),k_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["template-expression",a_.charsToString(t,r,s)]),l_.SEM_OK),A_=(e,t,r,s,n)=>(e===l_.SEM_PRE&&n.push(["template-expression-param-name",a_.charsToString(t,r,s)]),l_.SEM_OK),O_=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"ALPHA",lower:"alpha",index:16,isBkr:!1},this.rules[17]={name:"DIGIT",lower:"digit",index:17,isBkr:!1},this.rules[18]={name:"HEXDIG",lower:"hexdig",index:18,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:15},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:15},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:16},this.rules[13].opcodes[2]={type:4,index:17},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:18},this.rules[14].opcodes[3]={type:4,index:18},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2]},this.rules[16].opcodes[1]={type:5,min:65,max:90},this.rules[16].opcodes[2]={type:5,min:97,max:122},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:48,max:57},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[18].opcodes[1]={type:4,index:17},this.rules[18].opcodes[2]={type:7,string:[97]},this.rules[18].opcodes[3]={type:7,string:[98]},this.rules[18].opcodes[4]={type:7,string:[99]},this.rules[18].opcodes[5]={type:7,string:[100]},this.rules[18].opcodes[6]={type:7,string:[101]},this.rules[18].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},j_=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),T_=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],P_=(e,t,r={})=>{const s={encoder:j_,...r},n=(e=>{const t=new i_;return t.ast=new o_,t.ast.callbacks["path-template"]=v_,t.ast.callbacks.path=b_,t.ast.callbacks.query=w_,t.ast.callbacks["query-marker"]=$_,t.ast.callbacks.fragment=S_,t.ast.callbacks["fragment-marker"]=E_,t.ast.callbacks.slash=y_,t.ast.callbacks["path-literal"]=x_,t.ast.callbacks["template-expression"]=k_,t.ast.callbacks["template-expression-param-name"]=A_,{result:t.parse(O_,"path-template",e),ast:t.ast}})(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>T_.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")},C_={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false"),0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:s}){if(void 0!==t){const n=e.url.replace(s,""),i=P_(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){if(!1===t&&"boolean"===r.type&&(t="false"),0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function I_(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}const __=["accept","authorization","content-type"],R_=Object.freeze(Object.defineProperty({__proto__:null,cookie:function({req:e,parameter:t,value:r}){e.headers=e.headers||{};const s=typeof r;if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${I_(r,s)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n="object"===s&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=n+Pt({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}},header:function({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(__.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=I_(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=Pt({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))},path:function({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:a}=r;if(void 0===t)return;const l=e.url.replace(s,"");let c;if(a){const e=Object.keys(a)[0];c=P_(l,{[n]:t},{encoder:t=>Tt(I_(t,e))})}else c=P_(l,{[n]:t},{encoder:e=>Pt({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=s+c},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=I_(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}},Symbol.toStringTag,{value:"Module"})),F_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:M_}=F_;const L_=e=>Array.isArray(e)?e:[],D_=e=>{try{return new URL(e)}catch{const t=new URL(e,"https://swagger.io"),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class B_ extends _h{}const q_={buildRequest:N_};function N_(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:l,server:c,serverVariables:p,http:u,signal:d,serverVariableEncoder:h}=e;let{parameters:m,parameterBuilders:f}=e;const g=$k(t);f||(f=g?R_:C_);let y={url:"",credentials:u&&u.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(y.signal=d),i&&(y.requestInterceptor=i),o&&(y.responseInterceptor=o),l&&(y.userFetch=l);const v=function(e,t){return e&&e.paths?function(e,t){return KI(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[gk(s,e,r),YI(e,r),n].some((e=>e&&e===t))})):null}(t,r);if(!v)throw new B_(`Operation ${r} not found`);const{operation:b={},method:x,pathName:w}=v,$=z_({spec:t,scheme:n,contextUrl:a,server:c,serverVariables:p,pathName:w,method:x,serverVariableEncoder:h});if(y.url+=$,!r)return delete y.cookies,y;y.url+=w,y.method=`${x}`.toUpperCase(),m=m||{};const S=t.paths[w]||{};s&&(y.headers.accept=s);const E=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((s=>{r.push(t[e][s])}))})),r})([].concat(L_(b.parameters)).concat(L_(S.parameters)));E.forEach((e=>{const r=f[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=m),s=e&&e.name&&m[e.name],void 0===s?s=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,E).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(g&&e.schema&&"object"===e.schema.type&&"string"==typeof s)try{s=JSON.parse(s)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:y,parameter:e,value:s,operation:b,spec:t,baseURL:$})}}));const k={...e,operation:b};if(y=g?function(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){var n;const i={...e},{authorized:o={}}=t,a=r.security||s.security||[],l=o&&!!Object.keys(o).length,c=(null==s||null===(n=s.components)||void 0===n?void 0:n.securitySchemes)||{};return i.headers=i.headers||{},i.query=i.query||{},Object.keys(t).length&&l&&a&&(!Array.isArray(r.security)||r.security.length)?(a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=c[e];if(!t)return;const s=t.value||t,{type:n}=r;if(t)if("apiKey"===n)"query"===r.in&&(i.query[r.name]=s),"header"===r.in&&(i.headers[r.name]=s),"cookie"===r.in&&(i.cookies[r.name]=s);else if("http"===n){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=M_(`${e}:${t}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===n||"openIdConnect"===n){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let n=e.token_type;n&&"bearer"!==n.toLowerCase()||(n="Bearer"),i.headers.Authorization=`${n} ${s}`}}))})),i):e}({request:t,securities:n,operation:r,spec:i});const l=r.requestBody||{},c=Object.keys(l.content||{}),p=a&&c.indexOf(a)>-1;if(s||o){if(a&&p)t.headers["Content-Type"]=a;else if(!a){const e=c[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&p&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&qg(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(a){if(c.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof s){var u,d;const e=null!==(u=null===(d=l.content[a])||void 0===d?void 0:d.encoding)&&void 0!==u?u:{};t.form={},Object.keys(s).forEach((r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}}))}else if("string"==typeof s){var h,m;const e=null!==(h=null===(m=l.content[a])||void 0===m?void 0:m.encoding)&&void 0!==h?h:{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach((([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}}))}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}(k,y):function(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,l=i&&!!Object.keys(i).length,c=s.securityDefinitions;return n.headers=n.headers||{},n.query=n.query||{},Object.keys(t).length&&l&&a&&(!Array.isArray(r.security)||r.security.length)?(a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=c[e],{type:a}=o,l=o["x-tokenName"]||"access_token",p=r&&r[l];let u=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===a)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=M_(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===a&&p&&(u=u&&"bearer"!==u.toLowerCase()?u:"Bearer",n.headers.authorization=`${u} ${p}`)}))})),n):e}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter((e=>"body"===e.in)).length>0,r=s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}(k,y),y.cookies&&Object.keys(y.cookies).length){const e=Object.keys(y.cookies).reduce(((e,t)=>{const r=y.cookies[t];return e+(e?"&":"")+t_(t,r)}),"");y.headers.Cookie=e}return y.cookies&&delete y.cookies,Lt(y)}const U_=e=>e?e.replace(/\W/g,""):null;function z_(e){return $k(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={},serverVariableEncoder:o}){var a,l;let c,p=[],u="";const d=null==e||null===(a=e.paths)||void 0===a||null===(a=a[t])||void 0===a||null===(a=a[(r||"").toLowerCase()])||void 0===a?void 0:a.servers,h=null==e||null===(l=e.paths)||void 0===l||null===(l=l[t])||void 0===l?void 0:l.servers,m=null==e?void 0:e.servers;if(p=H_(d)?d:H_(h)?h:H_(m)?m:[vt],s&&(c=p.find((e=>e.url===s)),c&&(u=s)),u||([c]=p,u=c.url),((e,{strict:t=!1}={})=>{try{const r=m_(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some((([e])=>"server-variable"===e));if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}})(u,{strict:!0})){const e=Object.entries({...c.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});u=((e,t,r={})=>{const s={encoder:f_,...r},n=m_(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>g_.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")})(u,{...e,...i},{encoder:"function"==typeof o?o:mf})}return function(e="",t=""){const r=D_(e&&t?_y(t,e):e),s=D_(t),n=U_(r.protocol)||U_(s.protocol),i=r.host||s.host,o=r.pathname;let a;return a=n&&i?`${n}://${i+o}`:o,"/"===a[a.length-1]?a.slice(0,-1):a}(u,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=D_(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||U_(s.protocol)||"http",o=e.host||s.host||"",a=e.basePath||"";let l;return l=i&&o?`${i}://${o+a}`:a,"/"===l[l.length-1]?l.slice(0,-1):l}(e)}const H_=e=>Array.isArray(e)&&e.length>0;function V_(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof V_))return new V_(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,V_.makeApisTagOperation(this)),this)));return r.client=this,r}function W_(e){const t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}V_.http=Xs,V_.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=Lt(s),s=t(s),r(e(s)))}.bind(null,V_.http),V_.resolveStrategies={"openapi-3-1-apidom":JI,"openapi-3-0":Ek,"openapi-2-0":Sk,generic:vk},V_.resolve=kk({strategies:[V_.resolveStrategies["openapi-3-1-apidom"],V_.resolveStrategies["openapi-3-0"],V_.resolveStrategies["openapi-2-0"],V_.resolveStrategies.generic]}),V_.resolveSubtree=(e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:l,useCircularStructures:c,strategies:p}=r,u={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:l,useCircularStructures:c,strategies:p},d=p.find((t=>t.match(e))).normalize(e),h=await Ak({spec:d,...u,allowMetaPatches:!0,skipNormalization:!wk(e)});return!s&&Array.isArray(t)&&t.length&&(h.spec=t.reduce(((e,t)=>null==e?void 0:e[t]),h.spec)||null),h})(t,r,{...e,...s}))({strategies:[V_.resolveStrategies["openapi-3-1-apidom"],V_.resolveStrategies["openapi-3-0"],V_.resolveStrategies["openapi-2-0"],V_.resolveStrategies.generic]}),V_.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...l}){const c=e||t||Xs;n&&i&&!s&&(s=YI(n,i));const p=q_.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:c,...l});return p.body&&(qg(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),c(p)},V_.serializeRes=Ys,V_.serializeHeaders=Ks,V_.clearCache=function(){hk.refs.clearCache()},V_.makeApisTagOperation=function(e={}){const t=e_(e);return{apis:QI({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},V_.buildRequest=N_,V_.helpers={opId:gk},V_.getBaseUrl=z_,V_.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:hI}},parse:{parsers:{JsonParser:mI,YamlParser:fI,OpenApiJson3_1Parser:gI,OpenApiYaml3_1Parser:yI}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:HI}}},V_.prototype={http:Xs,execute(e){return this.applyDefaults(),V_.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return V_.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((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},V_.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(bk(e)&&XI(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($k(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[vt])}};const G_={parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],uniqueOnly:function(e,t,r){return r.indexOf(e)===t},createHash:function(e){let t,r=0;if(0===e.length)return r;for(let s=0;s<e.length;s++)t=e.charCodeAt(s),r=(r<<5)-r+t,r|=0;return r},sanitise:W_,sanitiseAll:function(e){return W_(e.split("/").join("_"))},camelize:function(e){return e.toLowerCase().replace(/[-_ \/\.](.)/g,((e,t)=>t.toUpperCase()))},clone:function(e){return JSON.parse(JSON.stringify(e))},circularClone:function e(t,r=null){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);let s;try{s=new t.constructor}catch(e){s=Object.create(Object.getPrototypeOf(t))}return r.set(t,s),Object.assign(s,...Object.keys(t).map((s=>({[s]:e(t[s],r)}))))}};function J_(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}const K_={getDefaultState:J_,walkSchema:function e(t,r,s,n){if(void 0===s.depth&&(s=J_()),null==t)return t;if(s.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t={...t.allOf[0],...t})?.allOf,t?.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t={...t.anyOf[0],...t})?.anyOf,t?.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t={...t.oneOf[0],...t})?.oneOf),n(t,r,s),s.seen.has(t))return t;if("object"==typeof t&&null!==t&&s.seen.set(t,!0),s.top=!1,s.depth++,void 0!==t?.items&&(s.property="items",e(t.items,t,s,n)),t?.additionalItems&&"object"==typeof t.additionalItems&&(s.property="additionalItems",e(t.additionalItems,t,s,n)),t?.additionalProperties&&"object"==typeof t.additionalProperties&&(s.property="additionalProperties",e(t.additionalProperties,t,s,n)),t?.properties)for(const r in t.properties){const i=t.properties[r];s.property=`properties/${r}`,e(i,t,s,n)}if(t?.patternProperties)for(const r in t.patternProperties){const i=t.patternProperties[r];s.property=`patternProperties/${r}`,e(i,t,s,n)}if(t?.allOf)for(const r in t.allOf){const i=t.allOf[r];s.property=`allOf/${r}`,e(i,t,s,n)}if(t?.anyOf)for(const r in t.anyOf){const i=t.anyOf[r];s.property=`anyOf/${r}`,e(i,t,s,n)}if(t?.oneOf)for(const r in t.oneOf){const i=t.oneOf[r];s.property=`oneOf/${r}`,e(i,t,s,n)}return t?.not&&(s.property="not",e(t.not,t,s,n)),s.depth--,t}};function Y_(e,t,r){if(t||(t={depth:0}),t.depth||(t={path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1,...t}),"object"!=typeof e)return;const s=t.path;for(const n in e){if(t.key=n,t.path=`${t.path}/${encodeURIComponent(n)}`,t.identityPath=t.seen.get(e[n]),t.identity=void 0!==t.identityPath,e.hasOwnProperty(n)&&r(e,n,t),"object"==typeof e[n]&&!t.identity){t.identityDetection&&!Array.isArray(e[n])&&null!==e[n]&&t.seen.set(e[n],t.path);const s={};s.parent=e,s.path=t.path,s.depth=t.depth?t.depth+1:1,s.pkey=n,s.payload=t.payload,s.seen=t.seen,s.identity=!1,s.identityDetection=t.identityDetection,Y_(e[n],s,r)}t.path=s}}let X_;function Z_(e,t){for(const r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function Q_(e,t){K_.walkSchema(e,{},{},((e,r)=>{!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(const t in e.discriminator.mapping){const r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type)){if(r.patches++,r.warnings.push("(Patchable) schema type must not be an array"),0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(const t of e.type){const r={};if("null"===t)e.nullable=!0;else{r.type=t;for(const t of G_.arrayProperties)void 0!==e.prop&&(r[t]=e[t],delete e[t])}r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&(r.patches++,r.warnings.push("Lost properties from oneOf")),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),e.allowEmptyValue&&(delete e.allowEmptyValue,r.patches++,r.warnings.push("(Patchable): deleted schema.allowEmptyValue"))}(e,r,t)}))}function eR(e){for(const t in e)for(const r in e[t]){const s=G_.sanitise(r);r!==s&&(e[t][s]=e[t][r],delete e[t][r])}}function tR(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){const r={};let s=e.flow;"application"===e.flow&&(s="clientCredentials"),"accessCode"===e.flow&&(s="authorizationCode"),"string"==typeof e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[s]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,e.name&&(delete e.name,t.patches++,t.warnings.push("(Patchable) oauth2 securitySchemes should not have name property"))}}function rR(e){return e&&!e["x-s2o-delete"]}function sR(e,t){if(e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type){if(e.items.collectionFormat!==e.collectionFormat)return t.errCount++,void t.errors.push({message:"Nested collectionFormats are not supported",pointer:"/.../responses/header"});delete e.items.collectionFormat}"array"===e.type?("ssv"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:ssv is no longer supported for headers")):"pipes"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:pipes is no longer supported for headers")):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(e["x-collectionFormat"]="tsv",t.patches++,t.warnings.push("collectionFormat:tsv is no longer supported")):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(delete e.collectionFormat,t.patches++,t.warnings.push("(Patchable) collectionFormat is only applicable to header.type array")),delete e.type;for(const t of G_.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(const t of G_.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}function nR(e,t,r,s,n,i,o){const a={};let l,c=!0;t&&t.consumes&&"string"==typeof t.consumes&&(t.consumes=[t.consumes],o.patches++,o.warnings.push("(Patchable) operation.consumes must be an array")),Array.isArray(i.consumes)||delete i.consumes;const p=((t?t.consumes:null)||i.consumes||[]).filter(G_.uniqueOnly);if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(e.type="string",o.patches++,o.warnings.push("(Patchable) parameter.type is mandatory for non-body parameters")),"file"===e.type&&(e["x-s2o-originalType"]=e.type,l=e.type),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(delete e.collectionFormat,o.patches++,o.warnings.push("(Patchable) collectionFormat is only applicable to param.type array")),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":o.warnings.push(`${e.name} collectionFormat:ssv is no longer supported except for in:query parameters`)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":o.warnings.push(`${e.name} collectionFormat:pipes is no longer supported except for in:query parameters`)),"multi"===t&&(e.explode=!0),"tsv"===t&&(o.warnings.push("collectionFormat:tsv is no longer supported"),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)o.warnings.push(`${e.name} parameter has array,items and schema`);else{e.schema&&o.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,Y_(e.schema.items,null,((r,s)=>{"collectionFormat"===s&&"string"==typeof r[s]&&(t&&r[s]!==t&&o.warnings.push(`${e.name} Nested collectionFormats are not supported`),delete r[s])})));for(const t of G_.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&Q_(e.schema,o),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){c=!1,a.content={};let t="application/x-www-form-urlencoded";if(p.length&&p.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),a.content[t]={},e.schema)a.content[t].schema=e.schema;else{a.content[t].schema={},a.content[t].schema.type="object",a.content[t].schema.properties={},a.content[t].schema.properties[e.name]={};const r=a.content[t].schema,s=a.content[t].schema.properties[e.name];e.description&&(s.description=e.description),e.example&&(s.example=e.example),e.type&&(s.type=e.type);for(const t of G_.parameterTypeProperties)void 0!==e[t]&&(s[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),a.required=!0),void 0!==e.default&&(s.default=e.default),s.properties&&(s.properties=e.properties),e.allOf&&(s.allOf=e.allOf),"array"===e.type&&e.items&&(s.items=e.items,s.items.collectionFormat&&delete s.items.collectionFormat),"file"!==l&&"file"!==e["x-s2o-originalType"]||(s.type="string",s.format="binary"),Z_(e,s)}}else e&&"file"===e.type&&(e.required&&(a.required=e.required),a.content={},a.content["application/octet-stream"]={},a.content["application/octet-stream"].schema={},a.content["application/octet-stream"].schema.type="string",a.content["application/octet-stream"].schema.format="binary",Z_(e,a));if(e&&"body"===e.in){a.content={},e.name&&(a["x-s2o-name"]=(t&&t.operationId?G_.sanitiseAll(t.operationId):"")+G_.camelize(`_${e.name}`)),e.description&&(a.description=e.description),e.required&&(a.required=e.required),p.length||p.push("application/json");for(const t of p)a.content[t]={},a.content[t].schema=G_.clone(e.schema||{}),Q_(a.content[t].schema,o);Z_(e,a)}if(Object.keys(a).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&c){t.requestBody["x-s2o-overloaded"]=!0;const e=t.operationId||n;o.warnings.push(`Operation ${e} has multiple requestBodies`)}else t.requestBody||(t=function(e,t){const r={};for(const s of Object.keys(e))r[s]=e[s],"parameters"===s&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,o),r[s]=t),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&a.content["multipart/form-data"]&&a.content["multipart/form-data"].schema&&a.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,a.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(a.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&a.content["application/x-www-form-urlencoded"]&&a.content["application/x-www-form-urlencoded"].schema&&a.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,a.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(a.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,a),t.requestBody["x-s2o-name"]||t.operationId&&(t.requestBody["x-s2o-name"]=G_.sanitiseAll(t.operationId)));if(e&&!e["x-s2o-delete"]){delete e.type;for(const t of G_.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(e.required=!0,o.patches++,o.warnings.push(`(Patchable) path parameters must be required:true [${e.name} in ${n}]`))}return t}function iR(e,t,r,s){if(!e)return!1;if(e.description||"object"!=typeof e||Array.isArray(e)||(s.patches++,s.warnings.push("(Patchable) response.description is mandatory")),void 0!==e.schema){Q_(e.schema,s),t&&t.produces&&"string"==typeof t.produces&&(t.produces=[t.produces],s.patches++,s.warnings.push("(Patchable) operation.produces must be an array")),r.produces&&!Array.isArray(r.produces)&&delete r.produces;const n=((t?t.produces:null)||r.produces||[]).filter(G_.uniqueOnly);n.length||n.push("*/*"),e.content={};for(const t of n){if(e.content[t]={},e.content[t].schema=G_.clone(e.schema),e.examples&&e.examples[t]){const r={};r.value=e.examples[t],e.content[t].examples={},e.content[t].examples.response=r,delete e.examples[t]}"file"===e.content[t].schema.type&&(e.content[t].schema={type:"string",format:"binary"})}delete e.schema}for(const t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(const t in e.headers)"status code"===t.toLowerCase()?(delete e.headers[t],s.patches++,s.warnings.push('(Patchable) "Status Code" is not a valid header')):sR(e.headers[t],s)}function oR(e,t,r,s,n){for(const i in e){const o=e[i];o&&o["x-trace"]&&"object"==typeof o["x-trace"]&&(o.trace=o["x-trace"],delete o["x-trace"]),o&&o["x-summary"]&&"string"==typeof o["x-summary"]&&(o.summary=o["x-summary"],delete o["x-summary"]),o&&o["x-description"]&&"string"==typeof o["x-description"]&&(o.description=o["x-description"],delete o["x-description"]),o&&o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]);for(const e in o)if(G_.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let a=o[e];if(a&&a.parameters&&Array.isArray(a.parameters)){if(o.parameters)for(const t of o.parameters)a.parameters.find((e=>e.name===t.name&&e.in===t.in))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(a=nR(t,a,o,e,i,n,r));for(const t of a.parameters)a=nR(t,a,o,e,`${e}: ${i}`,n,r);a.parameters&&(a.parameters=a.parameters.filter(rR))}if(a&&a.security&&eR(a.security),"object"==typeof a){if(!a.responses){const e={description:"Default response"};a.responses={default:e}}for(const e in a.responses)iR(a.responses[e],a,n,r)}if(a&&a["x-servers"]&&Array.isArray(a["x-servers"]))a.servers=a["x-servers"],delete a["x-servers"];else if(a&&a.schemes&&a.schemes.length)for(const e of a.schemes)if((!n.schemes||n.schemes.indexOf(e)<0)&&(a.servers||(a.servers=[]),Array.isArray(n.servers)))for(const e of n.servers){const t=G_.clone(e);a.servers.push(t)}if(a){if(delete a.consumes,delete a.produces,delete a.schemes,a["x-ms-examples"]){for(const e in a["x-ms-examples"]){const t=a["x-ms-examples"][e],r=G_.sanitiseAll(e);if(t.parameters)for(const r in t.parameters){const s=t.parameters[r];for(const t of(a.parameters||[]).concat(o.parameters||[]))t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:s})}if(t.responses)for(const s in t.responses){if(t.responses[s].headers)for(const e in t.responses[s].headers){const r=t.responses[s].headers[e];for(const t in a.responses[s].headers)t===e&&(a.responses[s].headers[t].example=r)}if(t.responses[s].body&&(n.components.examples[r]={value:G_.clone(t.responses[s].body)},a.responses[s]&&a.responses[s].content))for(const t in a.responses[s].content){const n=a.responses[s].content[t];n.examples||(n.examples={}),n.examples[e]={$ref:`#/components/examples/${r}`}}}}delete a["x-ms-examples"]}if(a.parameters&&0===a.parameters.length&&delete a.parameters,a.requestBody){const r=a.operationId?G_.sanitiseAll(a.operationId):G_.camelize(G_.sanitiseAll(e+i)),n=G_.sanitise(a.requestBody["x-s2o-name"]||r||"");delete a.requestBody["x-s2o-name"];const o=JSON.stringify(a.requestBody),l=G_.createHash(o);if(!s[l]){const e={};e.name=n,e.body=a.requestBody,e.refs=[],s[l]=e}const c=`#/${t}/${encodeURIComponent(i)}/${e}/requestBody`;s[l].refs.push(c)}}}if(o&&o.parameters){for(const e in o.parameters)nR(o.parameters[e],null,o,null,i,n,r);Array.isArray(o.parameters)&&(o.parameters=o.parameters.filter(rR))}}}function aR(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,((t,r)=>{e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function lR(e,t){void 0!==e.info&&null!==e.info||(e.info={version:"",title:""},t.patches++,t.warnings.push("(Patchable) info object is mandatory")),("object"!=typeof e.info||Array.isArray(e.info))&&(t.errCount++,t.errors.push({message:"info must be an object",pointer:"/info"})),e.info&&(void 0===e.info.title&&(t.patches++,e.info.title="",t.warnings.push({message:"(Patchable) info.title cannot be null",pointer:"/info/title",patchable:!0})),void 0===e.info.version?(t.patches++,e.info.version="",t.warnings.push("(Patchable) info.version cannot be null")):"string"!=typeof e.info.version&&(t.patches++,e.info.version=e.info.version.toString(),t.warnings.push("(Patchable) info.version must be a string")))}function cR(e,t){e.paths||(t.patches++,e.paths={},t.warnings.push("(Patchable) paths object is mandatory"))}function pR(e={}){const t={original:e,openapi:{},patches:0,warnings:[],errCount:0,errors:[]};if(e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=G_.circularClone(e),lR(t.openapi,t),cR(t.openapi,t),t;if("2.0"!==e.swagger)return t.errCount++,t.errors.push({message:`Unsupported swagger/OpenAPI version: ${e.openapi?e.openapi:e.swagger}`,pointer:"/swagger"}),t;if(t.openapi=G_.circularClone(e),t.openapi.openapi="3.0.0",delete t.openapi.swagger,Y_(t.openapi,{},((e,t,r)=>{null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)(e.schemes||[]).forEach((r=>{const s={},n=(e.basePath||"").replace(/\/$/,"");s.url=`${r?`${r}:`:""}//${e.host}${n}`,aR(s),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(s)}));else if(e.basePath){const r={};r.url=e.basePath,aR(r),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(r)}if(delete t.openapi.host,delete t.openapi.basePath,e["x-ms-parameterized-host"]){const r=e["x-ms-parameterized-host"],s={};s.url=r.hostTemplate+(e.basePath?e.basePath:""),s.variables={};const n=s.url.match(/\{\w+\}/g);for(const e in r.parameters){const t=r.parameters[e];e.startsWith("x-")||(delete t.required,delete t.type,delete t.in,void 0===t.default&&(t.enum?t.default=t.enum[0]:t.default="none"),t.name||(t.name=n[e].replace("{","").replace("}","")),s.variables[t.name]=t,delete t.name)}t.openapi.servers||(t.openapi.servers=[]),!1===r.useSchemePrefix?t.openapi.servers.push(s):e.schemes.forEach((e=>{t.openapi.servers.push({...s,url:`${e}://${s.url}`})})),delete t.openapi["x-ms-parameterized-host"]}return lR(t.openapi,t),cR(t.openapi,t),"string"==typeof t.openapi.consumes&&(t.openapi.consumes=[t.openapi.consumes]),"string"==typeof t.openapi.produces&&(t.openapi.produces=[t.openapi.produces]),t.openapi.components={},t.openapi["x-callbacks"]&&(t.openapi.components.callbacks=t.openapi["x-callbacks"],delete t.openapi["x-callbacks"]),t.openapi.components.examples={},t.openapi.components.headers={},t.openapi["x-links"]&&(t.openapi.components.links=t.openapi["x-links"],delete t.openapi["x-links"]),t.openapi.components.parameters=t.openapi.parameters||{},t.openapi.components.responses=t.openapi.responses||{},t.openapi.components.requestBodies={},t.openapi.components.securitySchemes=t.openapi.securityDefinitions||{},t.openapi.components.schemas=t.openapi.definitions||{},delete t.openapi.definitions,delete t.openapi.responses,delete t.openapi.parameters,delete t.openapi.securityDefinitions,function(e){const t=e.openapi,r={};X_={schemas:{}},t.security&&eR(t.security);for(const r in t.components.securitySchemes){const s=G_.sanitise(r);if(r!==s){if(t.components.securitySchemes[s])return e.errCount++,e.errors.push({message:`Duplicate sanitised securityScheme name ${s}`,pointer:`/components/securitySchemes/${s}`}),e;t.components.securitySchemes[s]=t.components.securitySchemes[r],delete t.components.securitySchemes[r]}tR(t.components.securitySchemes[s],e)}for(const r in t.components.schemas){const s=G_.sanitiseAll(r);let n=0;if(r!==s){for(;t.components.schemas[s+n];)n=n?++n:2;t.components.schemas[s+n]=t.components.schemas[r],delete t.components.schemas[r]}X_.schemas[r]=s+n,Q_(t.components.schemas[`${s}${n}`],e)}for(const r in t.components.parameters){const s=G_.sanitise(r);if(r!==s){if(t.components.parameters[s])return e.errCount++,e.errors.push({message:`Duplicate sanitised parameter name ${s}`,pointer:`/components/parameters/${s}`}),e;t.components.parameters[s]=t.components.parameters[r],delete t.components.parameters[r]}nR(t.components.parameters[s],null,null,null,s,t,e)}for(const r in t.components.responses){const s=G_.sanitise(r);if(r!==s){if(t.components.responses[s])return e.errCount++,e.errors.push({message:`Duplicate sanitised response name ${s}`,pointer:`/components/responses/${s}`}),e;t.components.responses[s]=t.components.responses[r],delete t.components.responses[r]}const n=t.components.responses[s];if(iR(n,null,t,e),n.headers)for(const t in n.headers)"status code"===t.toLowerCase()?(delete n.headers[t],e.patches++,e.warnings.push('(Patchable) "Status Code" is not a valid header')):sR(n.headers[t],e)}for(const e in t.components.requestBodies){const s=t.components.requestBodies[e],n=JSON.stringify(s),i=G_.createHash(n),o={};o.name=e,o.body=s,o.refs=[],r[i]=o}oR(t.paths,"paths",e,r,t),t["x-ms-paths"]&&oR(t["x-ms-paths"],"x-ms-paths",e,r,t);for(const e in t.components.parameters)t.components.parameters[e]["x-s2o-delete"]&&delete t.components.parameters[e];return delete t.consumes,delete t.produces,delete t.schemes,t.components.requestBodies={},t.components.responses&&0===Object.keys(t.components.responses).length&&delete t.components.responses,t.components.parameters&&0===Object.keys(t.components.parameters).length&&delete t.components.parameters,t.components.examples&&0===Object.keys(t.components.examples).length&&delete t.components.examples,t.components.requestBodies&&0===Object.keys(t.components.requestBodies).length&&delete t.components.requestBodies,t.components.securitySchemes&&0===Object.keys(t.components.securitySchemes).length&&delete t.components.securitySchemes,t.components.headers&&0===Object.keys(t.components.headers).length&&delete t.components.headers,t.components.schemas&&0===Object.keys(t.components.schemas).length&&delete t.components.schemas,t.components&&0===Object.keys(t.components).length&&delete t.components,e}(t)}function uR(e){return e.ok&&e.text&&e.parseError&&"YAMLException"===e.parseError.name&&(!e.headers["content-type"]||e.headers["content-type"].match("text/plain"))&&(e.body=e.text),e}const dR=function(e){return new Promise((async t=>{try{const r=await V_.resolve(e,uR);if(r.errors&&r.errors.length>0)t(r);else{r.spec.openapi&&(r.resolvedSpec=r.spec,t(r));const e=pR(r.spec);e.errors&&e.errors.length>0&&(Array.isArray(r.errors)?r.errors.concat(r.errors):r.errors=e.errors),e.warnings&&e.warnings.length>0&&(r.warnings=e.warnings),r.resolvedSpec=r.spec,r.spec=e.openapi,t(r)}}catch(e){t(e)}}))};async function hR(e,t=!1,r=!1,s=!1,n="",i="",o="",a="",l="",c="",p="",u=""){var d,h;let m;try{var f,g;let t;if(this.requestUpdate(),t="string"==typeof e?await dR({url:e,allowMetaPatches:!1}):await dR({spec:e,allowMetaPatches:!1}),await dt(0),null!==(f=t.resolvedSpec)&&void 0!==f&&f.jsonSchemaViewer&&null!==(g=t.resolvedSpec)&&void 0!==g&&g.schemaAndExamples){this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:t.resolvedSpec}}));const e=Object.entries(t.resolvedSpec.schemaAndExamples).map((e=>({show:!0,expanded:!0,selectedExample:null,name:e[0],elementId:e[0].replace(pt,"-"),...e[1]})));return{specLoadError:!1,isSpecLoading:!1,info:t.resolvedSpec.info,schemaAndExamples:e}}var y,v,b,x;if(!t.spec||!(t.spec.components||t.spec.info||t.spec.servers||t.spec.tags||t.spec.paths))return console.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",t),{specLoadError:!0,isSpecLoading:!1,info:{title:"Error loading the spec",description:null!==(y=t.response)&&void 0!==y&&y.url?`${null===(v=t.response)||void 0===v?void 0:v.url} ┃ ${null===(b=t.response)||void 0===b?void 0:b.status} ${null===(x=t.response)||void 0===x?void 0:x.statusText}`:"Unable to load the Spec",version:" "},tags:[]};m=function(e,t="",r="",s=""){const n={},i=s.split(",").map((e=>e.trim().toLowerCase())).filter(Boolean);function o(e,s){if(!t)return!0;const n=`${s} ${e}`.toLowerCase();if("regex"===r){return new RegExp(t,"i").test(t.toLowerCase())}return n.includes(t.toLowerCase())}function a(e){return e.some((e=>i.includes(null==e?void 0:e.label.toLowerCase())))}return Object.entries(e.paths).forEach((([e,t])=>{const r={};Object.entries(t).forEach((([t,s])=>{const n=s["x-badges"];o(e,t)&&(n&&Array.isArray(n)&&a(n)||(r[t]=s))})),Object.keys(r).length>0&&(n[e]=r)})),e.paths=n,e}(t.spec,c,p,u),this.dispatchEvent(new CustomEvent("before-render",{detail:{spec:m}}))}catch(e){console.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}const w=function(e,t,r=!1,s=!1){const n=["get","put","post","delete","patch","head","options"],i=e.tags&&Array.isArray(e.tags)&&e.tags.length>0?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(pt,"-")}`,name:e.name,displayName:e["x-displayName"]||e.name,description:e.description||"",headers:e.description?mR(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],o=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",o[t]=r;for(const t in o){const s=o[t].parameters,a={servers:o[t].servers||[],parameters:o[t].parameters||[]},l="webhook"===o[t]._type;n.forEach((n=>{if(o[t][n]){const o=e.paths[t][n],c=o.tags||[];if(0===c.length)if(r){const e=t.replace(/^\/+|\/+$/g,""),r=e.indexOf("/");-1===r?c.push(e):c.push(e.substring(0,r))}else c.push("General ⦂");c.forEach((r=>{let c,p;var u,d;(e.tags&&(p=e.tags.find((e=>e.name.toLowerCase()===r.toLowerCase()))),c=i.find((e=>e.name===r)),c)||(c={show:!0,elementId:`tag--${r.replace(pt,"-")}`,name:r,description:(null===(u=p)||void 0===u?void 0:u.description)||"",headers:null!==(d=p)&&void 0!==d&&d.description?mR(p.description):[],paths:[],expanded:!p||!1!==p["x-tag-expanded"]},i.push(c));let h=(o.summary||o.description||`${n.toUpperCase()} ${t}`).trim();h.length>100&&([h]=h.split(/[.|!|?]\s|[\r?\n]/));let m=[];if(m=s?o.parameters?s.filter((e=>{if(!o.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(o.parameters):s.slice(0):o.parameters?o.parameters.slice(0):[],o.callbacks)for(const[e,t]of Object.entries(o.callbacks)){const r=Object.entries(t).filter((e=>"object"==typeof e[1]))||[];o.callbacks[e]=Object.fromEntries(r)}c.paths.push({show:!0,expanded:!1,isWebhook:l,expandedAtLeastOnce:!1,summary:o.summary||"",description:o.description||"",externalDocs:o.externalDocs,shortSummary:h,method:n,path:t,operationId:o.operationId,elementId:`${n}-${t.replace(pt,"-")}`,servers:o.servers?a.servers.concat(o.servers):a.servers,parameters:m,requestBody:o.requestBody,responses:o.responses,callbacks:o.callbacks,deprecated:o.deprecated,security:o.security,xBadges:o["x-badges"]||void 0,xCodeSamples:o["x-codeSamples"]||o["x-code-samples"]||""})}))}}))}const a=i.filter((e=>e.paths&&e.paths.length>0));return a.forEach((e=>{"method"===t?e.paths.sort(((e,t)=>n.indexOf(e.method).toString().localeCompare(n.indexOf(t.method)))):"summary"===t?e.paths.sort(((e,t)=>e.shortSummary.localeCompare(t.shortSummary))):"path"===t&&e.paths.sort(((e,t)=>e.path.localeCompare(t.path))),e.firstPathId=e.paths[0].elementId})),s?a.sort(((e,t)=>e.name.localeCompare(t.name))):a}(m,n,t,r),$=function(e,t=!1){if(!e.components)return[];const r=[];for(const s in e.components){const n=[];for(const t in e.components[s]){const r={show:!0,id:`${s.toLowerCase()}-${t.toLowerCase()}`.replace(pt,"-"),name:t,component:e.components[s][t]};n.push(r)}let i=s,o=s;switch(s){case"schemas":t&&n.sort(((e,t)=>e.name.localeCompare(t.name))),o="Schemas",i="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":o="Responses",i="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":o="Parameters",i="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":o="Examples",i="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":o="Request Bodies",i="Describes common request bodies that are used across the API operations.";break;case"headers":o="Headers",i='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":o="Security Schemes",i="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":o="Links",i="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":o="Callbacks",i="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:o=s,i=s}const a={show:!0,name:o,description:i,subComponents:n};r.push(a)}return r||[]}(m,s),S=null!==(d=m.info)&&void 0!==d&&d.description?mR(m.info.description):[],E=[];if(null!==(h=m.components)&&void 0!==h&&h.securitySchemes){const e=new Set;Object.entries(m.components.securitySchemes).forEach((t=>{if(!e.has(t[0])){e.add(t[0]);const r={securitySchemeId:t[0],...t[1]};r.value="",r.finalKeyValue="","apiKey"===t[1].type||"http"===t[1].type?(r.in=t[1].in||"header",r.name=t[1].name||"Authorization",r.user="",r.password=""):"oauth2"===t[1].type&&(r.in="header",r.name="Authorization",r.clientId="",r.clientSecret=""),E.push(r)}}))}i&&o&&a&&E.push({securitySchemeId:ut,description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:i,in:o,value:a,finalKeyValue:a}),E.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay=`OAuth (${e.securitySchemeId})`:e.typeDisplay=e.type||"None"}));let k=[];m.servers&&Array.isArray(m.servers)&&m.servers.length>0?(m.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),l&&m.servers.push({url:l,computedUrl:l})):l?m.servers=[{url:l,computedUrl:l}]:window.location.origin.startsWith("http")?m.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:m.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],k=m.servers;return{specLoadError:!1,isSpecLoading:!1,info:m.info,infoDescriptionHeaders:S,tags:w,components:$,externalDocs:m.externalDocs,securitySchemes:E,servers:k}}function mR(e){const t=Xe.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2));return t||[]}const fR=1,gR=2,yR=3,vR=4,bR=e=>(...t)=>({_$litDirective$:e,values:t});class xR{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this.t=e,this._$AM=t,this.i=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class wR extends xR{constructor(e){if(super(e),this.it=Y,e.type!==gR)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Y||null==e)return this._t=void 0,this.it=e;if(e===K)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}wR.directiveName="unsafeHTML",wR.resultType=1;const $R=bR(wR);var SR=r(287).hp;const ER="731DB1C3F7EA533B85E29492D26AA-1234567890-1234567890",kR="4FatVDBJKPAo4JgLLaaQFMUcQPn5CrPRvLlaob9PTYc",AR="rapidoc";function OR(e,t="",r="",s=""){var n,i;const o=null===(n=this.resolvedSpec.securitySchemes)||void 0===n?void 0:n.find((t=>t.securitySchemeId===e));if(!o)return!1;let a="";if("basic"===(null===(i=o.scheme)||void 0===i?void 0:i.toLowerCase()))t&&(a=`Basic ${SR.from(`${t}:${r}`,"utf8").toString("base64")}`);else if(s){var l;o.value=s,a=`${"bearer"===(null===(l=o.scheme)||void 0===l?void 0:l.toLowerCase())?"Bearer ":""}${s}`}return!!a&&(o.finalKeyValue=a,this.requestUpdate(),!0)}function jR(){var e;null===(e=this.resolvedSpec.securitySchemes)||void 0===e||e.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function TR(){return JSON.parse(localStorage.getItem(AR))||{}}function PR(e){localStorage.setItem(AR,JSON.stringify(e))}function CR(){const e=TR.call(this);Object.values(e).forEach((e=>{OR.call(this,e.securitySchemeId,e.username,e.password,e.value)}))}function IR(e){let t="";const r=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));if(r){const s=this.shadowRoot.getElementById(`security-scheme-${e}`);if(s){if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){const t=s.querySelector(".api-key-user").value.trim(),r=s.querySelector(".api-key-password").value.trim();OR.call(this,e,t,r)}else t=s.querySelector(".api-key-input").value.trim(),OR.call(this,e,"","",t);if("true"===this.persistAuth){const t=TR.call(this);t[e]=r,PR.call(this,t)}}}}function _R(e,t,r="Bearer"){const s=this.resolvedSpec.securitySchemes.find((t=>t.securitySchemeId===e));s.finalKeyValue=`${"bearer"===r.toLowerCase()?"Bearer":"mac"===r.toLowerCase()?"MAC":r} ${t}`,this.requestUpdate()}async function RR(e,t,r,s,n,i,o,a,l="header",c=null,p=null,u=null){const d=a?a.querySelector(".oauth-resp-display"):void 0,h=new URLSearchParams,m=new Headers;h.append("grant_type",n),"authorization_code"===n&&(h.append("client_id",t),h.append("client_secret",r)),"client_credentials"!==n&&"password"!==n&&h.append("redirect_uri",s),i&&(h.append("code",i),h.append("code_verifier",ER)),"header"===l?m.set("Authorization",`Basic ${SR.from(`${t}:${r}`,"utf8").toString("base64")}`):"authorization_code"!==n&&(h.append("client_id",t),h.append("client_secret",r)),"password"===n&&(h.append("username",p),h.append("password",u)),c&&h.append("scope",c);try{const t=await fetch(e,{method:"POST",headers:m,body:h}),r=await t.json();if(!t.ok)return d&&(d.innerHTML=`<span style="color:var(--red)">${r.error_description||r.error_description||"Unable to get access token"}</span>`),!1;if(r.token_type&&r.access_token)return _R.call(this,o,r.access_token,r.token_type),d&&(d.innerHTML='<span style="color:var(--green)">Access Token Received</span>'),!0}catch{return d&&(d.innerHTML='<span style="color:var(--red)">Failed to get access token</span>'),!1}}async function FR(e,t,r,s,n,i,o,a,l,c){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||console.warn("RapiDoc: Received no data with authorization message"),e.data.error&&console.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?RR.call(this,r,s,n,i,o,e.data.code,l,c,a):"token"===e.data.responseType&&_R.call(this,l,e.data.access_token,e.data.token_type)))}async function MR(e,t,r,s,n){const i=n.target.closest(".oauth-flow"),o=i.querySelector(".oauth-client-id")?i.querySelector(".oauth-client-id").value.trim():"",a=i.querySelector(".oauth-client-secret")?i.querySelector(".oauth-client-secret").value.trim():"",l=i.querySelector(".api-key-user")?i.querySelector(".api-key-user").value.trim():"",c=i.querySelector(".api-key-password")?i.querySelector(".api-key-password").value.trim():"",p=i.querySelector(".oauth-send-client-secret-in")?i.querySelector(".oauth-send-client-secret-in").value.trim():"header",u=[...i.querySelectorAll(".scope-checkbox:checked")],d=i.querySelector(`#${e}-pkce`),h=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,m=`${Math.random().toString(36).slice(2,9)}random${Math.random().toString(36).slice(2,9)}`,f=new URL(`${window.location.origin}${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}/${this.oauthReceiver}`);let g,y="",v="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const n=new URL(r);"authorizationCode"===t?(y="authorization_code",v="code"):"implicit"===t&&(v="token");const l=new URLSearchParams(n.search),c=u.map((e=>e.value)).join(" ");c&&l.set("scope",c),l.set("client_id",o),l.set("redirect_uri",f.toString()),l.set("response_type",v),l.set("state",h),l.set("nonce",m),d&&d.checked&&(l.set("code_challenge",kR),l.set("code_challenge_method","S256")),l.set("show_dialog",!0),n.search=l.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout((()=>{g=window.open(n.toString()),g?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",(t=>FR.call(this,t,g,s,o,a,f.toString(),y,p,e,i)),{once:!0})):console.error(`RapiDoc: Unable to open ${n.toString()} in a new window`)}),10)}else if("clientCredentials"===t){y="client_credentials";const t=u.map((e=>e.value)).join(" ");RR.call(this,s,o,a,f.toString(),y,"",e,i,p,t)}else if("password"===t){y="password";const t=u.map((e=>e.value)).join(" ");RR.call(this,s,o,a,f.toString(),y,"",e,i,p,t,l,c)}}function LR(e,t,r,s,n,i=[],o="header",a=void 0){var l;let{authorizationUrl:c,tokenUrl:p,refreshUrl:u}=n;const d=n["x-pkce-only"]||!1,h=e=>e.indexOf("://")>0||0===e.indexOf("//"),m=new URL(null===(l=this.selectedServer)||void 0===l?void 0:l.computedUrl).origin;let f;return u&&!h(u)&&(u=`${m}/${u.replace(/^\//,"")}`),p&&!h(p)&&(p=`${m}/${p.replace(/^\//,"")}`),c&&!h(c)&&(c=`${m}/${c.replace(/^\//,"")}`),f="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,J`
|
3914 | }`]}connectedCallback(){super.connectedCallback();const e=this.parentElement;if(e&&(0===e.offsetWidth&&""===e.style.width&&(e.style.width="100vw"),0===e.offsetHeight&&""===e.style.height&&(e.style.height="100vh"),"BODY"===e.tagName&&(e.style.marginTop||(e.style.marginTop="0"),e.style.marginRight||(e.style.marginRight="0"),e.style.marginBottom||(e.style.marginBottom="0"),e.style.marginLeft||(e.style.marginLeft="0"))),"false"!==this.loadFonts){const e={family:"Open Sans",style:"normal",weight:"300",unicodeRange:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},t=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2')",e);e.weight="600";const r=new FontFace("Open Sans","url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2')",e);t.load().then((e=>{document.fonts.add(e)})),r.load().then((e=>{document.fonts.add(e)}))}this.renderStyle="focused",this.pathsExpanded="true"===this.pathsExpanded,this.showInfo&&"true, false,".includes(`${this.showInfo},`)||(this.showInfo="true"),this.showSideNav&&"true false".includes(this.showSideNav)||(this.showSideNav="true"),this.showHeader&&"true, false,".includes(`${this.showHeader},`)||(this.showHeader="true"),this.schemaStyle&&"tree, table,".includes(`${this.schemaStyle},`)||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes(`${this.theme},`)||(this.theme=window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),this.allowSearch&&"true, false,".includes(`${this.allowSearch},`)||(this.allowSearch="true"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes(`${this.schemaDescriptionExpanded},`)||(this.schemaDescriptionExpanded="false"),this.fontSize&&"default, large, largest,".includes(`${this.fontSize},`)||(this.fontSize="default"),this.matchType&&"includes regex".includes(this.matchType)||(this.matchType="includes"),this.allowSchemaDescriptionExpandToggle&&"true, false,".includes(`${this.allowSchemaDescriptionExpandToggle},`)||(this.allowSchemaDescriptionExpandToggle="true"),Xe.setOptions({highlight:(e,t)=>Qe().languages[t]?Qe().highlight(e,Qe().languages[t],t):e})}render(){return eM.call(this,!0,!1,!1,this.pathsExpanded)}attributeChangedCallback(e,t,r){"spec-url"===e&&t!==r&&window.setTimeout((async()=>{await this.loadSpec(r)}),0),super.attributeChangedCallback(e,t,r)}onSpecUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSearchChange(e){this.matchPaths=e.target.value}async loadSpec(e){if(e)try{this.resolvedSpec={specLoadError:!1,isSpecLoading:!0,tags:[]},this.loading=!0,this.loadFailed=!1,this.requestUpdate();const t=await hR.call(this,e,"true"===this.generateMissingTags,"true"===this.sortTags,"true"===this.sortSchemas,this.getAttribute("sort-endpoints-by"),this.getAttribute("match-paths"),this.getAttribute("match-type"),this.getAttribute("remove-endpoints-with-badge-label-as"));this.loading=!1,this.afterSpecParsedAndValidated(t)}catch(e){this.loading=!1,this.loadFailed=!0,this.resolvedSpec=null,console.error(`RapiDoc: Unable to resolve the API spec.. ${e.message}`)}}async afterSpecParsedAndValidated(e){this.resolvedSpec=e;const t=new CustomEvent("spec-loaded",{detail:e});this.dispatchEvent(t)}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){const t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}onSelectExample(e){[...e.target.closest(".json-schema-example-panel").querySelectorAll(".example")].forEach((t=>{t.style.display=t.dataset.example===e.target.value?"flex":"none"}))}async scrollToEventTarget(e){const t=e.currentTarget;if(!t.dataset.contentId)return;const r=this.shadowRoot.getElementById(t.dataset.contentId);r&&r.scrollIntoView({behavior:"auto",block:"start"})}})},526:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],s=t[1];return 3*(r+s)/4-s},t.toByteArray=function(e){var t,r,i=a(e),o=i[0],l=i[1],c=new n(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),p=0,u=l>0?o-4:o;for(r=0;r<u;r+=4)t=s[e.charCodeAt(r)]<<18|s[e.charCodeAt(r+1)]<<12|s[e.charCodeAt(r+2)]<<6|s[e.charCodeAt(r+3)],c[p++]=t>>16&255,c[p++]=t>>8&255,c[p++]=255&t;2===l&&(t=s[e.charCodeAt(r)]<<2|s[e.charCodeAt(r+1)]>>4,c[p++]=255&t);1===l&&(t=s[e.charCodeAt(r)]<<10|s[e.charCodeAt(r+1)]<<4|s[e.charCodeAt(r+2)]>>2,c[p++]=t>>8&255,c[p++]=255&t);return c},t.fromByteArray=function(e){for(var t,s=e.length,n=s%3,i=[],o=16383,a=0,c=s-n;a<c;a+=o)i.push(l(e,a,a+o>c?c:a+o));1===n?(t=e[s-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[s-2]<<8)+e[s-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],s=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=i[o],s[i.charCodeAt(o)]=o;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,s){for(var n,i,o=[],a=t;a<s;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[(i=n)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},287:(e,t,r)=>{"use strict";const s=r(526),n=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const o=2147483647;function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|f(e,t);let s=a(r);const n=s.write(e,t);n!==r&&(s=s.slice(0,n));return s}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const s=e.valueOf&&e.valueOf();if(null!=s&&s!==e)return l.from(s,t,r);const n=function(e){if(l.isBuffer(e)){const t=0|m(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?a(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return p(e),a(e<0?0:0|m(e))}function d(e){const t=e.length<0?0:0|m(e.length),r=a(t);for(let s=0;s<t;s+=1)r[s]=255&e[s];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let s;return s=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(s,l.prototype),s}function m(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(n)return s?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){let s=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function y(e,t,r){const s=e[t];e[t]=e[r],e[r]=s}function v(e,t,r,s,n){if(0===e.length)return-1;if("string"==typeof r?(s=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=l.from(t,s)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,s,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,s,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,s,n){let i,o=1,a=e.length,l=t.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){let s=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===s?0:i-s)){if(-1===s&&(s=i),i-s+1===l)return s*o}else-1!==s&&(i-=i-s),s=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){let r=!0;for(let s=0;s<l;s++)if(c(e,i+s)!==c(t,s)){r=!1;break}if(r)return i}return-1}function x(e,t,r,s){r=Number(r)||0;const n=e.length-r;s?(s=Number(s))>n&&(s=n):s=n;const i=t.length;let o;for(s>i/2&&(s=i/2),o=0;o<s;++o){const s=parseInt(t.substr(2*o,2),16);if(Y(s))return o;e[r+o]=s}return o}function w(e,t,r,s){return J(W(t,e.length-r),e,r,s)}function $(e,t,r,s){return J(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,s)}function S(e,t,r,s){return J(G(t),e,r,s)}function E(e,t,r,s){return J(function(e,t){let r,s,n;const i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),s=r>>8,n=r%256,i.push(n),i.push(s);return i}(t,e.length-r),e,r,s)}function k(e,t,r){return 0===t&&r===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);const s=[];let n=t;for(;n<r;){const t=e[n];let i=null,o=t>239?4:t>223?3:t>191?2:1;if(n+o<=r){let r,s,a,l;switch(o){case 1:t<128&&(i=t);break;case 2:r=e[n+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[n+1],s=e[n+2],128==(192&r)&&128==(192&s)&&(l=(15&t)<<12|(63&r)<<6|63&s,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[n+1],s=e[n+2],a=e[n+3],128==(192&r)&&128==(192&s)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,s.push(i>>>10&1023|55296),i=56320|1023&i),s.push(i),n+=o}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",s=0;for(;s<t;)r+=String.fromCharCode.apply(String,e.slice(s,s+=O));return r}(s)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return function(e,t,r){return p(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,s=t.length;for(let n=0,i=Math.min(r,s);n<i;++n)if(e[n]!==t[n]){r=e[n],s=t[n];break}return r<s?-1:s<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const s=l.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))n+t.length>s.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(s,n)):Uint8Array.prototype.set.call(s,t,n);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(s,n)}n+=t.length}return s},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,s,n){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),t<0||r>e.length||s<0||n>this.length)throw new RangeError("out of range index");if(s>=n&&t>=r)return 0;if(s>=n)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(n>>>=0)-(s>>>=0),o=(r>>>=0)-(t>>>=0);const a=Math.min(i,o),c=this.slice(s,n),p=e.slice(t,r);for(let e=0;e<a;++e)if(c[e]!==p[e]){i=c[e],o=p[e];break}return i<o?-1:o<i?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,s){if(void 0===t)s="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)s=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===s&&(s="utf8")):(s=r,r=void 0)}const n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let i=!1;for(;;)switch(s){case"hex":return x(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return $(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function j(e,t,r){let s="";r=Math.min(e.length,r);for(let n=t;n<r;++n)s+=String.fromCharCode(127&e[n]);return s}function T(e,t,r){let s="";r=Math.min(e.length,r);for(let n=t;n<r;++n)s+=String.fromCharCode(e[n]);return s}function P(e,t,r){const s=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>s)&&(r=s);let n="";for(let s=t;s<r;++s)n+=X[e[s]];return n}function C(e,t,r){const s=e.slice(t,r);let n="";for(let e=0;e<s.length-1;e+=2)n+=String.fromCharCode(s[e]+256*s[e+1]);return n}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,r,s,n,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw new RangeError('"value" argument is out of bounds');if(r+s>e.length)throw new RangeError("Index out of range")}function R(e,t,r,s,n){U(t,s,n,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function F(e,t,r,s,n){U(t,s,n,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function M(e,t,r,s,n,i){if(r+s>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,s,i){return t=+t,r>>>=0,i||M(e,0,r,4),n.write(e,t,r,s,23,4),r+4}function D(e,t,r,s,i){return t=+t,r>>>=0,i||M(e,0,r,8),n.write(e,t,r,s,52,8),r+8}l.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const s=this.subarray(e,t);return Object.setPrototypeOf(s,l.prototype),s},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let s=this[e],n=1,i=0;for(;++i<t&&(n*=256);)s+=this[e+i]*n;return s},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let s=this[e+--t],n=1;for(;t>0&&(n*=256);)s+=this[e+--t]*n;return s},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const s=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(s)+(BigInt(n)<<BigInt(32))})),l.prototype.readBigUInt64BE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const s=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(s)<<BigInt(32))+BigInt(n)})),l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let s=this[e],n=1,i=0;for(;++i<t&&(n*=256);)s+=this[e+i]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let s=t,n=1,i=this[e+--s];for(;s>0&&(n*=256);)i+=this[e+--s]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const s=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const s=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(s)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,r,s){if(e=+e,t>>>=0,r>>>=0,!s){_(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=1,i=0;for(this[t]=255&e;++i<r&&(n*=256);)this[t+i]=e/n&255;return t+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,r,s){if(e=+e,t>>>=0,r>>>=0,!s){_(this,e,t,r,Math.pow(2,8*r)-1,0)}let n=r-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&255;return t+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Z((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Z((function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,r,s){if(e=+e,t>>>=0,!s){const s=Math.pow(2,8*r-1);_(this,e,t,r,s-1,-s)}let n=0,i=1,o=0;for(this[t]=255&e;++n<r&&(i*=256);)e<0&&0===o&&0!==this[t+n-1]&&(o=1),this[t+n]=(e/i|0)-o&255;return t+r},l.prototype.writeIntBE=function(e,t,r,s){if(e=+e,t>>>=0,!s){const s=Math.pow(2,8*r-1);_(this,e,t,r,s-1,-s)}let n=r-1,i=1,o=0;for(this[t+n]=255&e;--n>=0&&(i*=256);)e<0&&0===o&&0!==this[t+n+1]&&(o=1),this[t+n]=(e/i|0)-o&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Z((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Z((function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,s){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<r&&(s=r),s===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-r&&(s=e.length-t+r);const n=s-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,s):Uint8Array.prototype.set.call(e,this.subarray(r,s),t),n},l.prototype.fill=function(e,t,r,s){if("string"==typeof e){if("string"==typeof t?(s=t,t=0,r=this.length):"string"==typeof r&&(s=r,r=this.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("string"==typeof s&&!l.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(1===e.length){const t=e.charCodeAt(0);("utf8"===s&&t<128||"latin1"===s)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{const i=l.isBuffer(e)?e:l.from(e,s),o=i.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=i[n%o]}return this};const B={};function q(e,t,r){B[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let t="",r=e.length;const s="-"===e[0]?1:0;for(;r>=s+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,s,n,i){if(e>r||e<t){const s="bigint"==typeof t?"n":"";let n;throw n=i>3?0===t||t===BigInt(0)?`>= 0${s} and < 2${s} ** ${8*(i+1)}${s}`:`>= -(2${s} ** ${8*(i+1)-1}${s}) and < 2 ** ${8*(i+1)-1}${s}`:`>= ${t}${s} and <= ${r}${s}`,new B.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(s,n,i)}function z(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,r){let s=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=N(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=N(n)),n+="n"),s+=` It must be ${t}. Received ${n}`,s}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const s=e.length;let n=null;const i=[];for(let o=0;o<s;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===s){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(e){return s.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,r,s){let n;for(n=0;n<s&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const s=16*r;for(let n=0;n<16;++n)t[s+n]=e[r]+e[n]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},4:e=>{"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.high<this.high?[new t(this.low,e.low-1),new t(e.high+1,this.high)]:e.low<=this.low?[new t(e.high+1,this.high)]:[new t(this.low,e.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class r{constructor(e,t){this.ranges=[],this.length=0,null!=e&&this.add(e,t)}_update_length(){this.length=this.ranges.reduce(((e,t)=>e+t.length),0)}add(e,s){var n=e=>{for(var t=0;t<this.ranges.length&&!e.touches(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.touches(this.ranges[t]);)e=e.add(this.ranges[t]),t++;r.push(e),this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(n):(null==s&&(s=e),n(new t(e,s))),this}subtract(e,s){var n=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.overlaps(this.ranges[t]);)r=r.concat(this.ranges[t].subtract(e)),t++;this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(n):(null==s&&(s=e),n(new t(e,s))),this}intersect(e,s){var n=[],i=e=>{for(var r=0;r<this.ranges.length&&!e.overlaps(this.ranges[r]);)r++;for(;r<this.ranges.length&&e.overlaps(this.ranges[r]);){var s=Math.max(this.ranges[r].low,e.low),i=Math.min(this.ranges[r].high,e.high);n.push(new t(s,i)),r++}};return e instanceof r?e.ranges.forEach(i):(null==s&&(s=e),i(new t(e,s))),this.ranges=n,this._update_length(),this}index(e){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=e;)e-=this.ranges[t].length,t++;return this.ranges[t].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new r(this)}numbers(){return this.ranges.reduce(((e,t)=>{for(var r=t.low;r<=t.high;)e.push(r),r++;return e}),[])}subranges(){return this.ranges.map((e=>({low:e.low,high:e.high,length:1+e.high-e.low})))}}e.exports=r},251:(e,t)=>{t.read=function(e,t,r,s,n){var i,o,a=8*n-s-1,l=(1<<a)-1,c=l>>1,p=-7,u=r?n-1:0,d=r?-1:1,h=e[t+u];for(u+=d,i=h&(1<<-p)-1,h>>=-p,p+=a;p>0;i=256*i+e[t+u],u+=d,p-=8);for(o=i&(1<<-p)-1,i>>=-p,p+=s;p>0;o=256*o+e[t+u],u+=d,p-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,s),i-=c}return(h?-1:1)*o*Math.pow(2,i-s)},t.write=function(e,t,r,s,n,i){var o,a,l,c=8*i-n-1,p=(1<<c)-1,u=p>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=s?0:i-1,m=s?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+u>=1?d/l:d*Math.pow(2,1-u))*l>=2&&(o++,l/=2),o+u>=p?(a=0,o=p):o+u>=1?(a=(t*l-1)*Math.pow(2,n),o+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&a,h+=m,a/=256,n-=8);for(o=o<<n|a,c+=n;c>0;e[r+h]=255&o,h+=m,o/=256,c-=8);e[r+h-m]|=128*f}},22:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},s={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:s},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:s},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:s.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:s.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var n=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=s.variable[1].inside,o=0;o<n.length;o++)i[n[o]]=e.languages.bash[n[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},651:()=>{!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,r){return"(?:"+t[+r]+")"}))}function r(e,r,s){return RegExp(t(e,r),s||"")}function s(e,t){for(var r=0;r<t;r++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var n="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),p=RegExp(l(n+" "+i+" "+o+" "+a)),u=l(i+" "+o+" "+a),d=l(n+" "+i+" "+a),h=s(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=s(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[f,h]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),v=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,v]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,m,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),$=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,v]),S={keyword:p,punctuation:/[<>()?,.:[\]]/},E=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,$]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,d,f]),inside:S}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,h]),inside:{function:r(/^<<0>>/.source,[f]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,f,$,p.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:p,"class-name":{pattern:RegExp($),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=k+"|"+E,j=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),T=s(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,C=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,C]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,_=s(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,I]),F=s(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,I]);function L(t,s){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[s,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:L(R,_)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:L(M,F)}],char:{pattern:RegExp(E),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},113:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(Prism)},378:()=>{Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},784:()=>{!function(e){function t(e){return RegExp("(^(?:"+e+"):[ \t]*(?![ \t]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r,s=e.languages,n={"application/javascript":s.javascript,"application/json":s.json||s.javascript,"application/xml":s.xml,"text/xml":s.xml,"text/html":s.html,"text/css":s.css,"text/plain":s.plain},i={"application/json":!0,"application/xml":!0};function o(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var a in n)if(n[a]){r=r||{};var l=i[a]?o(a):a;r[a.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+l+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:n[a]}}r&&e.languages.insertBefore("http","header",r)}(Prism)},976:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[s,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:s.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:s.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":s,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:s.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:s.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},342:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},83:()=>{!function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",n=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return s})).replace(/<<value>>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return s}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return s})).replace(/<<key>>/g,(function(){return"(?:"+n+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},848:(e,t,r)=>{var s=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,s={},n={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++r}),e.__id},clone:function e(t,r){var s,i;switch(r=r||{},n.util.type(t)){case"Object":if(i=n.util.objId(t),r[i])return r[i];for(var o in s={},r[i]=s,t)t.hasOwnProperty(o)&&(s[o]=e(t[o],r));return s;case"Array":return i=n.util.objId(t),r[i]?r[i]:(s=[],r[i]=s,t.forEach((function(t,n){s[n]=e(t,r)})),s);default:return t}},getLanguage:function(e){for(;e;){var r=t.exec(e.className);if(r)return r[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,r){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+r)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(s){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var r in t)if(t[r].src==e)return t[r]}return null}},isActive:function(e,t,r){for(var s="no-"+t;e;){var n=e.classList;if(n.contains(t))return!0;if(n.contains(s))return!1;e=e.parentElement}return!!r}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var s in t)r[s]=t[s];return r},insertBefore:function(e,t,r,s){var i=(s=s||n.languages)[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var l in r)r.hasOwnProperty(l)&&(o[l]=r[l]);r.hasOwnProperty(a)||(o[a]=i[a])}var c=s[e];return s[e]=o,n.languages.DFS(n.languages,(function(t,r){r===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,r,s,i){i=i||{};var o=n.util.objId;for(var a in t)if(t.hasOwnProperty(a)){r.call(t,a,t[a],s||a);var l=t[a],c=n.util.type(l);"Object"!==c||i[o(l)]?"Array"!==c||i[o(l)]||(i[o(l)]=!0,e(l,r,a,i)):(i[o(l)]=!0,e(l,r,null,i))}}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,r){var s={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",s),s.elements=Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)),n.hooks.run("before-all-elements-highlight",s);for(var i,o=0;i=s.elements[o++];)n.highlightElement(i,!0===t,s.callback)},highlightElement:function(t,r,s){var i=n.util.getLanguage(t),o=n.languages[i];n.util.setLanguage(t,i);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&n.util.setLanguage(a,i);var l={element:t,language:i,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,n.hooks.run("after-highlight",l),n.hooks.run("complete",l),s&&s.call(l.element)}if(n.hooks.run("before-sanity-check",l),(a=l.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!l.code)return n.hooks.run("complete",l),void(s&&s.call(l.element));if(n.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var p=new Worker(n.filename);p.onmessage=function(e){c(e.data)},p.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(n.highlight(l.code,l.grammar,l.language));else c(n.util.encode(l.code))},highlight:function(e,t,r){var s={code:e,grammar:t,language:r};if(n.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=n.tokenize(s.code,s.grammar),n.hooks.run("after-tokenize",s),i.stringify(n.util.encode(s.tokens),s.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var s in r)t[s]=r[s];delete t.rest}var n=new l;return c(n,n.head,e),a(e,n,t,n.head,0),function(e){var t=[],r=e.head.next;for(;r!==e.tail;)t.push(r.value),r=r.next;return t}(n)},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var s,i=0;s=r[i++];)s(t)}},Token:i};function i(e,t,r,s){this.type=e,this.content=t,this.alias=r,this.length=0|(s||"").length}function o(e,t,r,s){e.lastIndex=t;var n=e.exec(r);if(n&&s&&n[1]){var i=n[1].length;n.index+=i,n[0]=n[0].slice(i)}return n}function a(e,t,r,s,l,u){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var h=r[d];h=Array.isArray(h)?h:[h];for(var m=0;m<h.length;++m){if(u&&u.cause==d+","+m)return;var f=h[m],g=f.inside,y=!!f.lookbehind,v=!!f.greedy,b=f.alias;if(v&&!f.pattern.global){var x=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,x+"g")}for(var w=f.pattern||f,$=s.next,S=l;$!==t.tail&&!(u&&S>=u.reach);S+=$.value.length,$=$.next){var E=$.value;if(t.length>e.length)return;if(!(E instanceof i)){var k,A=1;if(v){if(!(k=o(w,S,e,y))||k.index>=e.length)break;var O=k.index,j=k.index+k[0].length,T=S;for(T+=$.value.length;O>=T;)T+=($=$.next).value.length;if(S=T-=$.value.length,$.value instanceof i)continue;for(var P=$;P!==t.tail&&(T<j||"string"==typeof P.value);P=P.next)A++,T+=P.value.length;A--,E=e.slice(S,T),k.index-=S}else if(!(k=o(w,0,E,y)))continue;O=k.index;var C=k[0],I=E.slice(0,O),_=E.slice(O+C.length),R=S+E.length;u&&R>u.reach&&(u.reach=R);var F=$.prev;if(I&&(F=c(t,F,I),S+=I.length),p(t,F,A),$=c(t,F,new i(d,g?n.tokenize(C,g):C,b,C)),_&&c(t,$,_),A>1){var M={cause:d+","+m,reach:R};a(e,t,r,$.prev,S,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var s=t.next,n={value:r,prev:t,next:s};return t.next=n,s.prev=n,e.length++,n}function p(e,t,r){for(var s=t.next,n=0;n<r&&s!==e.tail;n++)s=s.next;t.next=s,s.prev=t,e.length-=n}if(e.Prism=n,i.stringify=function e(t,r){if("string"==typeof t)return t;if(Array.isArray(t)){var s="";return t.forEach((function(t){s+=e(t,r)})),s}var i={type:t.type,content:e(t.content,r),tag:"span",classes:["token",t.type],attributes:{},language:r},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),n.hooks.run("wrap",i);var a="";for(var l in i.attributes)a+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(n.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var r=JSON.parse(t.data),s=r.language,i=r.code,o=r.immediateClose;e.postMessage(n.highlight(i,n.languages[s],s)),o&&e.close()}),!1),n):n;var u=n.util.currentScript();function d(){n.manual||n.highlightAll()}if(u&&(n.filename=u.src,u.hasAttribute("data-manual")&&(n.manual=!0)),!n.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return n}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=s),void 0!==r.g&&(r.g.Prism=s),s.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},s.languages.markup.tag.inside["attr-value"].inside.entity=s.languages.markup.entity,s.languages.markup.doctype.inside["internal-subset"].inside=s.languages.markup,s.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:s.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:s.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},s.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(s.languages.markup.tag,"addAttribute",{value:function(e,t){s.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:s.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,s.languages.xml=s.languages.extend("markup",{}),s.languages.ssml=s.languages.xml,s.languages.atom=s.languages.xml,s.languages.rss=s.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(s),s.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:s.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:s.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:s.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),s.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),s.languages.markup&&(s.languages.markup.tag.addInlined("script","javascript"),s.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),s.languages.js=s.languages.javascript,function(){if(void 0!==s&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",r="loading",n="loaded",i="pre[data-src]:not(["+t+'="'+n+'"]):not(['+t+'="'+r+'"])';s.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),s.hooks.add("before-sanity-check",(function(o){var a=o.element;if(a.matches(i)){o.code="",a.setAttribute(t,r);var l=a.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=a.getAttribute("data-src"),p=o.language;if("none"===p){var u=(/\.(\w+)$/.exec(c)||[,"none"])[1];p=e[u]||u}s.util.setLanguage(l,p),s.util.setLanguage(a,p);var d=s.plugins.autoloader;d&&d.loadLanguages(p),function(e,t,r){var s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){4==s.readyState&&(s.status<400&&s.responseText?t(s.responseText):s.status>=400?r("✖ Error "+s.status+" while fetching file: "+s.statusText):r("✖ Error: File does not exist or is empty"))},s.send(null)}(c,(function(e){a.setAttribute(t,n);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var r=Number(t[1]),s=t[2],n=t[3];return s?n?[r,Number(n)]:[r,void 0]:[r,r]}}(a.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),o=r[0],c=null==r[1]?i.length:r[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join("\n"),a.hasAttribute("data-start")||a.setAttribute("data-start",String(o+1))}l.textContent=e,s.highlightElement(l)}),(function(e){a.setAttribute(t,"failed"),l.textContent=e}))}})),s.plugins.fileHighlight={highlight:function(e){for(var t,r=(e||document).querySelectorAll(i),n=0;t=r[n++];)s.highlightElement(t)}};var o=!1;s.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),s.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},859:(e,t,r)=>{const s=r(96),n=r(4),i=s.types;e.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else{if("string"!=typeof e)throw new Error("Expected a regexp or string");this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m")}this.tokens=s(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,s,n,o,a;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),s="",o=0,a=(r=e.options?this._randSelect(e.options):e.stack).length;o<a;o++)s+=this._gen(r[o],t);return e.remember&&(t[e.groupNumber]=s),s;case i.POSITION:return"";case i.SET:var l=this._expand(e);return l.length?String.fromCharCode(this._randSelect(l)):"";case i.REPETITION:for(n=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),s="",o=0;o<n;o++)s+=this._gen(e.value,t);return s;case i.REFERENCE:return t[e.value-1]||"";case i.CHAR:var c=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(c)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof n?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===s.types.CHAR)return new n(e.value);if(e.type===s.types.RANGE)return new n(e.from,e.to);{let t=new n;for(let r=0;r<e.set.length;r++){let s=this._expand(e.set[r]);if(t.add(s),this.ignoreCase)for(let e=0;e<s.length;e++){let r=s.index(e),n=this._toOtherCase(r);r!==n&&t.add(n)}}return e.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new n(32,126)}set defaultRange(e){this._range=e}static randexp(t,r){var s;return"string"==typeof t&&(t=new RegExp(t,r)),void 0===t._randexp?(s=new e(t,r),t._randexp=s):(s=t._randexp)._setDefaults(t),s.gen()}static sugar(){RegExp.prototype.gen=function(){return e.randexp(this)}}}},208:e=>{"use strict";var t,r="";e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("expected a string");if(1===s)return e;if(2===s)return e+e;var n=e.length*s;if(t!==e||void 0===t)t=e,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&s>1;)1&s&&(r+=e),s>>=1,e+=e;return r=(r+=e).substr(0,n)}},96:(e,t,r)=>{const s=r(586),n=r(205),i=r(23),o=r(48);e.exports=e=>{var t,r,a=0,l={type:n.ROOT,stack:[]},c=l,p=l.stack,u=[],d=t=>{s.error(e,"Nothing to repeat at column "+(t-1))},h=s.strToChars(e);for(t=h.length;a<t;)switch(r=h[a++]){case"\\":switch(r=h[a++]){case"b":p.push(o.wordBoundary());break;case"B":p.push(o.nonWordBoundary());break;case"w":p.push(i.words());break;case"W":p.push(i.notWords());break;case"d":p.push(i.ints());break;case"D":p.push(i.notInts());break;case"s":p.push(i.whitespace());break;case"S":p.push(i.notWhitespace());break;default:/\d/.test(r)?p.push({type:n.REFERENCE,value:parseInt(r,10)}):p.push({type:n.CHAR,value:r.charCodeAt(0)})}break;case"^":p.push(o.begin());break;case"$":p.push(o.end());break;case"[":var m;"^"===h[a]?(m=!0,a++):m=!1;var f=s.tokenizeClass(h.slice(a),e);a+=f[1],p.push({type:n.SET,set:f[0],not:m});break;case".":p.push(i.anyChar());break;case"(":var g={type:n.GROUP,stack:[],remember:!0};"?"===(r=h[a])&&(r=h[a+1],a+=2,"="===r?g.followedBy=!0:"!"===r?g.notFollowedBy=!0:":"!==r&&s.error(e,`Invalid group, character '${r}' after '?' at column `+(a-1)),g.remember=!1),p.push(g),u.push(c),c=g,p=g.stack;break;case")":0===u.length&&s.error(e,"Unmatched ) at column "+(a-1)),p=(c=u.pop()).options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var y=[];c.options.push(y),p=y;break;case"{":var v,b,x=/^(\d+)(,(\d+)?)?\}/.exec(h.slice(a));null!==x?(0===p.length&&d(a),v=parseInt(x[1],10),b=x[2]?x[3]?parseInt(x[3],10):1/0:v,a+=x[0].length,p.push({type:n.REPETITION,min:v,max:b,value:p.pop()})):p.push({type:n.CHAR,value:123});break;case"?":0===p.length&&d(a),p.push({type:n.REPETITION,min:0,max:1,value:p.pop()});break;case"+":0===p.length&&d(a),p.push({type:n.REPETITION,min:1,max:1/0,value:p.pop()});break;case"*":0===p.length&&d(a),p.push({type:n.REPETITION,min:0,max:1/0,value:p.pop()});break;default:p.push({type:n.CHAR,value:r.charCodeAt(0)})}return 0!==u.length&&s.error(e,"Unterminated group"),l},e.exports.types=n},48:(e,t,r)=>{const s=r(205);t.wordBoundary=()=>({type:s.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:s.POSITION,value:"B"}),t.begin=()=>({type:s.POSITION,value:"^"}),t.end=()=>({type:s.POSITION,value:"$"})},23:(e,t,r)=>{const s=r(205),n=()=>[{type:s.RANGE,from:48,to:57}],i=()=>[{type:s.CHAR,value:95},{type:s.RANGE,from:97,to:122},{type:s.RANGE,from:65,to:90}].concat(n()),o=()=>[{type:s.CHAR,value:9},{type:s.CHAR,value:10},{type:s.CHAR,value:11},{type:s.CHAR,value:12},{type:s.CHAR,value:13},{type:s.CHAR,value:32},{type:s.CHAR,value:160},{type:s.CHAR,value:5760},{type:s.RANGE,from:8192,to:8202},{type:s.CHAR,value:8232},{type:s.CHAR,value:8233},{type:s.CHAR,value:8239},{type:s.CHAR,value:8287},{type:s.CHAR,value:12288},{type:s.CHAR,value:65279}];t.words=()=>({type:s.SET,set:i(),not:!1}),t.notWords=()=>({type:s.SET,set:i(),not:!0}),t.ints=()=>({type:s.SET,set:n(),not:!1}),t.notInts=()=>({type:s.SET,set:n(),not:!0}),t.whitespace=()=>({type:s.SET,set:o(),not:!1}),t.notWhitespace=()=>({type:s.SET,set:o(),not:!0}),t.anyChar=()=>({type:s.SET,set:[{type:s.CHAR,value:10},{type:s.CHAR,value:13},{type:s.CHAR,value:8232},{type:s.CHAR,value:8233}],not:!0})},205:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},586:(e,t,r)=>{const s=r(205),n=r(23),i={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(e,t,r,s,n,o,a,l){if(r)return e;var c=t?8:s?parseInt(s,16):n?parseInt(n,16):o?parseInt(o,8):a?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(a):i[l],p=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(p)&&(p="\\"+p),p}))},t.tokenizeClass=(e,r)=>{for(var i,o,a=[],l=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(i=l.exec(e));)if(i[1])a.push(n.words());else if(i[2])a.push(n.ints());else if(i[3])a.push(n.whitespace());else if(i[4])a.push(n.notWords());else if(i[5])a.push(n.notInts());else if(i[6])a.push(n.notWhitespace());else if(i[7])a.push({type:s.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else{if(!(o=i[12]))return[a,l.lastIndex];a.push({type:s.CHAR,value:o.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},657:(e,t,r)=>{"use strict";var s=r(208),n=function(e){return/<\/+[^>]+>/.test(e)},i=function(e){return/<[^>]+\/>/.test(e)},o=function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!n(e)&&!i(e)};function a(e){return n(e)?"ClosingTag":o(e)?"OpeningTag":i(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,n=t.textNodesOnSameLine,i=0,o=[];r=r||" ";var l,c,p=(l=e,(c=l,c.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:a(e)}}))).map((function(e,t,a){var l=e.value,c=e.type;"ClosingTag"===c&&i--;var p=s(r,i),u=p+l;if("OpeningTag"===c&&i++,n){var d=a[t-1],h=a[t-2];"ClosingTag"===c&&"Text"===d.type&&"OpeningTag"===h.type&&(u=""+p+h.value+d.value+l,o.push(t-2,t-1))}return u}));return o.forEach((function(e){return p[e]=null})),p.filter((function(e){return!!e})).join("\n")}}},s={};function n(e){var t=s[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var i=s[e]={exports:{}};try{var o={id:e,module:i,factory:r[e],require:n};n.i.forEach((function(e){e(o)})),i=o.module,o.factory.call(i.exports,i,i.exports,o.require)}catch(e){throw i.error=e,e}return i.exports}n.m=r,n.c=s,n.i=[],n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.hu=e=>e+"."+n.h()+".hot-update.js",n.hmrF=()=>"main."+n.h()+".hot-update.json",n.h=()=>"2337278d415d81467132",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="rapidoc:",n.l=(r,s,i,o)=>{if(e[r])e[r].push(s);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var u=c[p];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[s];var d=(t,s)=>{a.onerror=a.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(s))),t)return t(s)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},(()=>{var e,t,r,s={},i=n.c,o=[],a=[],l="idle",c=0,p=[];function u(e){l=e;for(var t=[],r=0;r<a.length;r++)t[r]=a[r].call(null,e);return Promise.all(t).then((function(){}))}function d(){0==--c&&u("ready").then((function(){if(0===c){var e=p;p=[];for(var t=0;t<e.length;t++)e[t]()}}))}function h(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return u("check").then(n.hmrM).then((function(r){return r?u("prepare").then((function(){var s=[];return t=[],Promise.all(Object.keys(n.hmrC).reduce((function(e,i){return n.hmrC[i](r.c,r.r,r.m,e,t,s),e}),[])).then((function(){return t=function(){return e?f(e):u("ready").then((function(){return s}))},0===c?t():new Promise((function(e){p.push((function(){e(t())}))}));var t}))})):u(g()?"ready":"idle").then((function(){return null}))}))}function m(e){return"ready"!==l?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status (state: "+l+")")})):f(e)}function f(e){e=e||{},g();var s=t.map((function(t){return t(e)}));t=void 0;var n=s.map((function(e){return e.error})).filter(Boolean);if(n.length>0)return u("abort").then((function(){throw n[0]}));var i=u("dispose");s.forEach((function(e){e.dispose&&e.dispose()}));var o,a=u("apply"),l=function(e){o||(o=e)},c=[];return s.forEach((function(e){if(e.apply){var t=e.apply(l);if(t)for(var r=0;r<t.length;r++)c.push(t[r])}})),Promise.all([i,a]).then((function(){return o?u("fail").then((function(){throw o})):r?f(e).then((function(e){return c.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):u("idle").then((function(){return c}))}))}function g(){if(r)return t||(t=[]),Object.keys(n.hmrI).forEach((function(e){r.forEach((function(r){n.hmrI[e](r,t)}))})),r=void 0,!0}n.hmrD=s,n.i.push((function(p){var f,g,y,v,b=p.module,x=function(t,r){var s=i[r];if(!s)return t;var n=function(n){if(s.hot.active){if(i[n]){var a=i[n].parents;-1===a.indexOf(r)&&a.push(r)}else o=[r],e=n;-1===s.children.indexOf(n)&&s.children.push(n)}else console.warn("[HMR] unexpected require("+n+") from disposed module "+r),o=[];return t(n)},a=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(r){t[e]=r}}};for(var p in t)Object.prototype.hasOwnProperty.call(t,p)&&"e"!==p&&Object.defineProperty(n,p,a(p));return n.e=function(e,r){return function(e){switch(l){case"ready":u("prepare");case"prepare":return c++,e.then(d,d),e;default:return e}}(t.e(e,r))},n}(p.require,p.id);b.hot=(f=p.id,g=b,v={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:y=e!==f,_requireSelf:function(){o=g.parents.slice(),e=y?void 0:f,n(f)},active:!0,accept:function(e,t,r){if(void 0===e)v._selfAccepted=!0;else if("function"==typeof e)v._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var s=0;s<e.length;s++)v._acceptedDependencies[e[s]]=t||function(){},v._acceptedErrorHandlers[e[s]]=r;else v._acceptedDependencies[e]=t||function(){},v._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)v._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)v._declinedDependencies[e[t]]=!0;else v._declinedDependencies[e]=!0},dispose:function(e){v._disposeHandlers.push(e)},addDisposeHandler:function(e){v._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=v._disposeHandlers.indexOf(e);t>=0&&v._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":t=[],Object.keys(n.hmrI).forEach((function(e){n.hmrI[e](f,t)})),u("ready");break;case"ready":Object.keys(n.hmrI).forEach((function(e){n.hmrI[e](f,t)}));break;case"prepare":case"check":case"dispose":case"apply":(r=r||[]).push(f)}},check:h,apply:m,status:function(e){if(!e)return l;a.push(e)},addStatusHandler:function(e){a.push(e)},removeStatusHandler:function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},data:s[f]},e=void 0,v),b.parents=o,b.children=[],o=[],p.require=x})),n.hmrC={},n.hmrI={}})(),n.p="",(()=>{var e,t,r,s,i,o=n.hmrS_jsonp=n.hmrS_jsonp||{792:0},a={};function l(t,r){return e=r,new Promise(((e,r)=>{a[t]=e;var s=n.p+n.hu(t),i=new Error;n.l(s,(e=>{if(a[t]){a[t]=void 0;var s=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src;i.message="Loading hot update chunk "+t+" failed.\n("+s+": "+n+")",i.name="ChunkLoadError",i.type=s,i.request=n,r(i)}}))}))}function c(e){function a(e){for(var t=[e],r={},s=t.map((function(e){return{chain:[e],id:e}}));s.length>0;){var i=s.pop(),o=i.id,a=i.chain,c=n.c[o];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(c.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var p=0;p<c.parents.length;p++){var u=c.parents[p],d=n.c[u];if(d){if(d.hot._declinedDependencies[o])return{type:"declined",chain:a.concat([u]),moduleId:o,parentId:u};-1===t.indexOf(u)&&(d.hot._acceptedDependencies[o]?(r[u]||(r[u]=[]),l(r[u],[o])):(delete r[u],t.push(u),s.push({chain:a.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}function l(e,t){for(var r=0;r<t.length;r++){var s=t[r];-1===e.indexOf(s)&&e.push(s)}}n.f&&delete n.f.jsonpHmr,t=void 0;var c={},p=[],u={},d=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var h in r)if(n.o(r,h)){var m=r[h],f=m?a(h):{type:"disposed",moduleId:h},g=!1,y=!1,v=!1,b="";switch(f.chain&&(b="\nUpdate propagation: "+f.chain.join(" -> ")),f.type){case"self-declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+f.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(f),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+f.moduleId+" in "+f.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(f),e.ignoreUnaccepted||(g=new Error("Aborted because "+h+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(f),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(f),v=!0;break;default:throw new Error("Unexception type "+f.type)}if(g)return{error:g};if(y)for(h in u[h]=m,l(p,f.outdatedModules),f.outdatedDependencies)n.o(f.outdatedDependencies,h)&&(c[h]||(c[h]=[]),l(c[h],f.outdatedDependencies[h]));v&&(l(p,[f.moduleId]),u[h]=d)}r=void 0;for(var x,w=[],$=0;$<p.length;$++){var S=p[$],E=n.c[S];E&&(E.hot._selfAccepted||E.hot._main)&&u[S]!==d&&!E.hot._selfInvalidated&&w.push({module:S,require:E.hot._requireSelf,errorHandler:E.hot._selfAccepted})}return{dispose:function(){var e;s.forEach((function(e){delete o[e]})),s=void 0;for(var t,r=p.slice();r.length>0;){var i=r.pop(),a=n.c[i];if(a){var l={},u=a.hot._disposeHandlers;for($=0;$<u.length;$++)u[$].call(null,l);for(n.hmrD[i]=l,a.hot.active=!1,delete n.c[i],delete c[i],$=0;$<a.children.length;$++){var d=n.c[a.children[$]];d&&((e=d.parents.indexOf(i))>=0&&d.parents.splice(e,1))}}}for(var h in c)if(n.o(c,h)&&(a=n.c[h]))for(x=c[h],$=0;$<x.length;$++)t=x[$],(e=a.children.indexOf(t))>=0&&a.children.splice(e,1)},apply:function(t){for(var r in u)n.o(u,r)&&(n.m[r]=u[r]);for(var s=0;s<i.length;s++)i[s](n);for(var o in c)if(n.o(c,o)){var a=n.c[o];if(a){x=c[o];for(var l=[],d=[],h=[],m=0;m<x.length;m++){var f=x[m],g=a.hot._acceptedDependencies[f],y=a.hot._acceptedErrorHandlers[f];if(g){if(-1!==l.indexOf(g))continue;l.push(g),d.push(y),h.push(f)}}for(var v=0;v<l.length;v++)try{l[v].call(null,x)}catch(r){if("function"==typeof d[v])try{d[v](r,{moduleId:o,dependencyId:h[v]})}catch(s){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:o,dependencyId:h[v],error:s,originalError:r}),e.ignoreErrored||(t(s),t(r))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:o,dependencyId:h[v],error:r}),e.ignoreErrored||t(r)}}}for(var b=0;b<w.length;b++){var $=w[b],S=$.module;try{$.require(S)}catch(r){if("function"==typeof $.errorHandler)try{$.errorHandler(r,{moduleId:S,module:n.c[S]})}catch(s){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:S,error:s,originalError:r}),e.ignoreErrored||(t(s),t(r))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:S,error:r}),e.ignoreErrored||t(r)}}return p}}}self.webpackHotUpdaterapidoc=(t,s,o)=>{for(var l in s)n.o(s,l)&&(r[l]=s[l],e&&e.push(l));o&&i.push(o),a[t]&&(a[t](),a[t]=void 0)},n.hmrI.jsonp=function(e,t){r||(r={},i=[],s=[],t.push(c)),n.o(r,e)||(r[e]=n.m[e])},n.hmrC.jsonp=function(e,a,p,u,d,h){d.push(c),t={},s=a,r=p.reduce((function(e,t){return e[t]=!1,e}),{}),i=[],e.forEach((function(e){n.o(o,e)&&void 0!==o[e]?(u.push(l(e,h)),t[e]=!0):t[e]=!1})),n.f&&(n.f.jsonpHmr=function(e,r){t&&n.o(t,e)&&!t[e]&&(r.push(l(e)),t[e]=!0)})},n.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(n.p+n.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))}})();n(557)})();
|