@swagger-api/apidom-ns-openapi-2 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi2=t():e.apidomNsOpenApi2=t()}(self,(()=>(()=>{var e={85:(e,t,n)=>{"use strict";n(7447);var r=n(1100),s=n(8900),i=n(1811),o=n(6625);for(var c in r)i(s[c],c),o[c]=o.Array},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,n)=>{"use strict";var r=n(9098),s=n(4713),i=n(4871),o=n(3410),c=n(2769),a=n(1926),u=n(3671),l=n(3491),p=n(1811),h=n(3999),m=n(3508),f=n(8655),d=n(6625),y=n(2621),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,E=f("iterator"),x="keys",j="values",S="entries",O=function(){return this};e.exports=function(e,t,n,o,f,y,P){a(n,t,o);var A,k,_,I=function(e){if(e===f&&F)return F;if(!w&&e&&e in T)return T[e];switch(e){case x:case j:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",$=!1,T=e.prototype,R=T[E]||T["@@iterator"]||f&&T[f],F=!w&&R||I(f),C="Array"===t&&T.entries||R;if(C&&(A=u(C.call(new e)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):c(A[E])||m(A,E,O)),p(A,M,!0,!0),i&&(d[M]=O)),g&&f===j&&R&&R.name!==j&&(!i&&v?h(T,"name",j):($=!0,F=function(){return s(R,this)})),f)if(k={values:I(j),keys:y?F:I(x),entries:I(S)},P)for(_ in k)(w||$||!(_ in T))&&m(T,_,k[_]);else r({target:t,proto:!0,forced:w||$},k);return i&&!P||T[E]===F||m(T,E,F,{name:f}),d[t]=F,k}},195:(e,t,n)=>{var r=n(4882),s=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},208:(e,t,n)=>{"use strict";var r=n(4572),s=n(4713),i=n(7235),o=n(459),c=n(2877),a=n(8130),u=n(4317),l=n(1613),p=n(967),h=n(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var y,g,v,b,w,E,x,j=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),P=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),k=r(t,j),_=function(e){return y&&h(y,"normal",e),new f(!0,e)},I=function(e){return S?(i(e),A?k(e[0],e[1],_):k(e[0],e[1])):A?k(e,_):k(e)};if(O)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(c(g)){for(v=0,b=a(e);b>v;v++)if((w=I(e[v]))&&u(d,w))return w;return new f(!1)}y=l(e,g)}for(E=O?e.next:y.next;!(x=s(E,y)).done;){try{w=I(x.value)}catch(e){h(y,"throw",e)}if("object"==typeof w&&w&&u(d,w))return w}return new f(!1)}},239:(e,t,n)=>{"use strict";n(5442);var r=n(6656);n(85),e.exports=r},262:(e,t,n)=>{"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},353:(e,t,n)=>{var r=n(1340),s=n(3934),i=n(8861),o=n(1182),c=n(8486),a=n(3142),u=n(5853),l=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,y,g){var v=a(e),b=a(t),w=v?h:c(e),E=b?h:c(t),x=(w=w==p?m:w)==m,j=(E=E==p?m:E)==m,S=w==E;if(S&&u(e)){if(!u(t))return!1;v=!0,x=!1}if(S&&!x)return g||(g=new r),v||l(e)?s(e,t,n,d,y,g):i(e,t,w,n,d,y,g);if(!(1&n)){var O=x&&f.call(e,"__wrapped__"),P=j&&f.call(t,"__wrapped__");if(O||P){var A=O?e.value():e,k=P?t.value():t;return g||(g=new r),y(A,k,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,y,g))}},358:(e,t,n)=>{var r=n(6137),s=n(3283),i=n(3142),o=n(5853),c=n(9632),a=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&a(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var y in e)!t&&!u.call(e,y)||m&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||f.push(y);return f}},393:(e,t,n)=>{var r=n(8244),s=n(7979),i=n(1211);e.exports=function(e){return r(e,i,s)}},394:e=>{e.exports=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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,n)=>{"use strict";var r=n(9098),s=n(8900),i=n(7013),o=n(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(a&&a[e]){var n={};n[e]=o(c+"."+e,t,u),r({target:c,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,n)=>{"use strict";var r=n(4713),s=n(262),i=n(6281),o=n(4674),c=n(9258),a=n(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,a=o(e,l);if(a){if(void 0===t&&(t="default"),n=r(a,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,n)=>{var r=n(7379),s=n(5387),i=n(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},701:(e,t,n)=>{"use strict";var r=n(6100),s=n(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},814:(e,t,n)=>{"use strict";var r=n(2769),s=n(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,n)=>{"use strict";var r=n(8407),s=n(4674),i=n(3057),o=n(6625),c=n(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[r(e)]}},986:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},1003:(e,t,n)=>{"use strict";var r=n(8099),s=n(8900),i=n(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},1005:(e,t,n)=>{"use strict";var r=n(3273),s=n(4574),i=n(8130),o=function(e){return function(t,n,o){var c=r(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&n!=n){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},1100:e=>{"use strict";e.exports={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}},1112:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},1139:(e,t,n)=>{"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,n)=>{var r=n(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,c){var a=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!a)return!1;for(var p=l;p--;){var h=u[p];if(!(a?h in t:s.call(t,h)))return!1}var m=c.get(e),f=c.get(t);if(m&&f)return m==t&&f==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<l;){var g=e[h=u[p]],v=t[h];if(i)var b=a?i(v,g,h,t,e,c):i(g,v,h,e,t,c);if(!(void 0===b?g===v||o(g,v,n,i,c):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(d=!1)}return c.delete(e),c.delete(t),d}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,n)=>{var r=n(358),s=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):s(e)}},1212:(e,t,n)=>{e.exports=n(8411)},1268:(e,t,n)=>{"use strict";var r=n(6100),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},1314:(e,t,n)=>{"use strict";var r=n(8900),s=n(2769),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},1330:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,n)=>{var r=n(1386),s=n(4103),i=n(1779),o=n(4162),c=n(7462),a=n(6638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},1386:(e,t,n)=>{var r=n(2393),s=n(2049),i=n(7144),o=n(7452),c=n(3964);function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1395:(e,t,n)=>{"use strict";var r=n(6100),s=n(1203),i=n(9932),o=Object,c=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},1517:e=>{e.exports=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)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,n)=>{"use strict";var r=n(4713),s=n(814),i=n(7235),o=n(459),c=n(967),a=TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(s(n))return i(r(n,e));throw new a(o(e)+" is not iterable")}},1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},1743:(e,t,n)=>{"use strict";var r=n(4713),s=n(7235),i=n(4674);e.exports=function(e,t,n){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw n;if(c)throw o;return s(o),n}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},1780:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,n)=>{"use strict";var r=n(4904),s=n(9989).f,i=n(3999),o=n(701),c=n(9559),a=n(8655)("toStringTag");e.exports=function(e,t,n,u){var l=n?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!r&&i(l,"toString",c))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,n)=>{"use strict";var r=n(2621).IteratorPrototype,s=n(5780),i=n(480),o=n(1811),c=n(6625),a=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),c[l]=a,e}},1950:(e,t,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},1966:(e,t,n)=>{"use strict";var r=n(2937),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},2049:(e,t,n)=>{var r=n(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},2137:(e,t,n)=>{"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},2555:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},2621:(e,t,n)=>{"use strict";var r,s,i,o=n(1203),c=n(2769),a=n(262),u=n(5780),l=n(3671),p=n(3508),h=n(8655),m=n(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!a(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),c(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,n)=>{"use strict";var r=n(8655),s=n(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2937:(e,t,n)=>{"use strict";var r=n(262);e.exports=function(e){return r(e)||null===e}},3004:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3085:(e,t,n)=>{"use strict";var r=n(9098),s=n(4317),i=n(3671),o=n(3491),c=n(7464),a=n(5780),u=n(3999),l=n(480),p=n(8148),h=n(4279),m=n(208),f=n(4879),d=n(8655)("toStringTag"),y=Error,g=[].push,v=function(e,t){var n,r=s(b,this);o?n=o(new y,r?i(this):b):(n=r?this:a(b),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,v,n.stack,1),arguments.length>2&&p(n,arguments[2]);var c=[];return m(e,g,{that:c}),u(n,"errors",c),n};o?o(v,y):c(v,y,{name:!0});var b=v.prototype=a(y.prototype,{constructor:l(1,v),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:v})},3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,n)=>{const r=n(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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}return e&&e.map?e.map(this.serialise,this):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}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},3212:(e,t,n)=>{var r=n(8250),s=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},3273:(e,t,n)=>{"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},3283:(e,t,n)=>{var r=n(6027),s=n(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3305:(e,t,n)=>{var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3311:(e,t,n)=>{const r=n(1517),s=n(4123);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,n)=>{"use strict";var r=n(5024),s=n(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3489:(e,t,n)=>{"use strict";var r=n(1003);e.exports=r("document","documentElement")},3491:(e,t,n)=>{"use strict";var r=n(3574),s=n(262),i=n(5426),o=n(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),s(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},3507:(e,t,n)=>{"use strict";var r=n(2769),s=n(262),i=n(3491);e.exports=function(e,t,n){var o,c;return i&&r(o=t.constructor)&&o!==n&&s(c=o.prototype)&&c!==n.prototype&&i(e,c),e}},3508:(e,t,n)=>{"use strict";var r=n(3999);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},3531:(e,t,n)=>{"use strict";var r=n(8900).navigator,s=r&&r.userAgent;e.exports=s?String(s):""},3574:(e,t,n)=>{"use strict";var r=n(6100),s=n(814);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},3655:(e,t,n)=>{var r=n(7379),s=n(1580);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,n)=>{"use strict";var r=n(701),s=n(2769),i=n(2137),o=n(4275),c=n(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(r(t,a))return t[a];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},3753:(e,t,n)=>{"use strict";var r=n(4871),s=n(8900),i=n(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.42.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},3832:(e,t,n)=>{"use strict";var r=n(5571).charAt,s=n(1139),i=n(8417),o=n(164),c=n(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?c(void 0,!0):(e=r(n,s),t.index+=e.length,c(e,!1))}))},3885:(e,t,n)=>{"use strict";var r=n(6100),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},3934:(e,t,n)=>{var r=n(3212),s=n(6465),i=n(5568);e.exports=function(e,t,n,o,c,a){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,y=2&n?new r:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],v=t[f];if(o)var b=u?o(v,g,f,t,e,a):o(g,v,f,e,t,a);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||c(g,e,n,o,a)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!c(g,v,n,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},3999:(e,t,n)=>{"use strict";var r=n(5024),s=n(9989),i=n(480);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},4123:(e,t,n)=>{const r=n(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(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&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,n)=>{"use strict";var r=n(8141),s=n(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},4279:(e,t,n)=>{"use strict";var r=n(3999),s=n(3885),i=n(5791),o=Error.captureStackTrace;e.exports=function(e,t,n,c){i&&(o?o(e,t):r(e,"stack",s(n,c)))}},4317:(e,t,n)=>{"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},4543:(e,t,n)=>{"use strict";var r=n(5024),s=n(4713),i=n(7161),o=n(480),c=n(3273),a=n(5341),u=n(701),l=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=a(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4572:(e,t,n)=>{"use strict";var r=n(9344),s=n(814),i=n(1780),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,n)=>{"use strict";var r=n(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},4603:(e,t,n)=>{"use strict";var r=n(5547),s=n(1203),i=n(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4674:(e,t,n)=>{"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},4687:(e,t,n)=>{var r=n(353),s=n(547);e.exports=function e(t,n,i,o,c){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,c))}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4713:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,n)=>{var r=n(9624),s=n(155);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},4759:(e,t,n)=>{var r,s=n(1950),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,n)=>{"use strict";var r=n(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},4904:(e,t,n)=>{"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},4944:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},5024:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,n)=>{var r=n(3305),s=n(9361),i=n(1112),o=n(5276),c=n(5071);function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},5116:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5341:(e,t,n)=>{"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,n)=>{"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,n)=>{"use strict";n(5695)},5516:(e,t,n)=>{"use strict";var r=n(9989).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5547:(e,t,n)=>{"use strict";var r,s,i=n(8900),o=n(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,n)=>{"use strict";var r=n(6100),s=n(9903),i=n(1139),o=n(5426),c=r("".charAt),a=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=a(p,h))<55296||r>56319||h+1===m||(l=a(p,h+1))<56320||l>57343?e?c(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,n)=>{const r=n(1517),s=n(1580),i=n(9796),o=n(7309),c=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,n)=>{"use strict";var r=n(1003),s=n(6100),i=n(5116),o=n(7313),c=n(7235),a=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),n=o.f;return n?a(t,n(e)):t}},5695:(e,t,n)=>{"use strict";n(3085)},5735:(e,t,n)=>{const r=n(9310),s=n(8138),i=n(986),o=n(4944),c=n(1580),a=n(394),u=n(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.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",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.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,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(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 a(this)}}a.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5780:(e,t,n)=>{"use strict";var r,s=n(7235),i=n(7389),o=n(9683),c=n(5241),a=n(3489),u=n(9619),l=n(4275),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?y(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};c[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},5791:(e,t,n)=>{"use strict";var r=n(1203),s=n(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),s=n(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?r.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},6027:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},6100:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},6138:(e,t,n)=>{"use strict";var r=n(9098),s=n(1003),i=n(7013),o=n(1203),c=n(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},6281:(e,t,n)=>{"use strict";var r=n(1003),s=n(2769),i=n(4317),o=n(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,c(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,n)=>{var r=n(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,n)=>{"use strict";var r=n(1003),s=n(701),i=n(3999),o=n(4317),c=n(3491),a=n(7464),u=n(5516),l=n(3507),p=n(4879),h=n(8148),m=n(4279),f=n(5024),d=n(4871);e.exports=function(e,t,n,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),w=b[b.length-1],E=r.apply(null,b);if(E){var x=E.prototype;if(!d&&s(x,"cause")&&delete x.cause,!n)return E;var j=r("Error"),S=t((function(e,t){var n=p(y?t:e,void 0),r=y?new E(e):new E;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(x,this)&&l(r,this,S),arguments.length>v&&h(r,arguments[v]),r}));if(S.prototype=x,"Error"!==w?c?c(S,j):a(S,j,{name:!0}):f&&g in E&&(u(S,E,g),u(S,E,"prepareStackTrace")),a(S,E),!d)try{x.name!==w&&i(x,"name",w),x.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6529:(e,t,n)=>{var r=n(3655),s=n(5387);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,n)=>{var r=n(1386),s=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},6656:(e,t,n)=>{"use strict";n(484),n(5695),n(6138),n(7447),n(3832);var r=n(8099);e.exports=r.AggregateError},7013:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7161:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7202:(e,t,n)=>{"use strict";var r=n(239);e.exports=r},7235:(e,t,n)=>{"use strict";var r=n(262),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},7309:(e,t,n)=>{const r=n(2322),s=n(8631);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,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)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,n)=>{var r=n(5650),s=n(8870),i=n(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7389:(e,t,n)=>{"use strict";var r=n(5024),s=n(1330),i=n(9989),o=n(7235),c=n(3273),a=n(8364);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},7447:(e,t,n)=>{"use strict";var r=n(3273),s=n(8137),i=n(6625),o=n(8417),c=n(9989).f,a=n(164),u=n(877),l=n(4871),p=n(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=a(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},7460:(e,t,n)=>{"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,n)=>{"use strict";var r=n(701),s=n(5691),i=n(4543),o=n(9989);e.exports=function(e,t,n){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var p=c[l];r(e,p)||n&&r(n,p)||a(e,p,u(t,p))}}},7525:(e,t,n)=>{"use strict";var r=n(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},7547:(e,t,n)=>{const r=n(8631),s=n(3004),i=n(8712),o=n(2536),c=n(2555),a=n(9796),u=n(7309),l=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function y(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=y,m.prototype.refract=y,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:y,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},7979:(e,t,n)=>{var r=n(9847),s=n(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},8130:(e,t,n)=>{"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,n)=>{var r=n(7379),s=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},8141:(e,t,n)=>{"use strict";var r=n(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8146:(e,t,n)=>{"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,n)=>{"use strict";var r=n(262),s=n(3999);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,n)=>{var r=n(1129),s=n(3142);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},8250:(e,t,n)=>{var r=n(9753),s=n(5681),i=n(88),o=n(4732),c=n(9068);function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},8326:(e,t,n)=>{const r=n(5735),s=n(7547);t.g$=r,t.KeyValuePair=n(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,n(394),n(3148)},8337:(e,t,n)=>{"use strict";n(5442);var r=n(7202);e.exports=r},8364:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683);e.exports=Object.keys||function(e){return r(e,s)}},8407:(e,t,n)=>{"use strict";var r=n(4904),s=n(2769),i=n(9932),o=n(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?n:a?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},8411:(e,t,n)=>{"use strict";e.exports=n(8337)},8417:(e,t,n)=>{"use strict";var r,s,i,o=n(1314),c=n(8900),a=n(262),u=n(3999),l=n(701),p=n(3753),h=n(4275),m=n(5241),f="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");m[v]=!0,r=function(e,t){if(l(e,v))throw new d(f);return t.facade=e,u(e,v,t),t},s=function(e){return l(e,v)?e[v]:{}},i=function(e){return l(e,v)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},8486:(e,t,n)=>{var r=n(3103),s=n(9770),i=n(9413),o=n(4512),c=n(9270),a=n(7379),u=n(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),y=u(s),g=u(i),v=u(o),b=u(c),w=a;(r&&w(new r(new ArrayBuffer(1)))!=f||s&&w(new s)!=l||i&&w(i.resolve())!=p||o&&w(new o)!=h||c&&w(new c)!=m)&&(w=function(e){var t=a(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case y:return l;case g:return p;case v:return h;case b:return m}return t}),e.exports=w},8600:(e,t,n)=>{"use strict";var r=n(6100),s=n(701),i=n(3273),o=n(1005).indexOf,c=n(5241),a=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(c,n)&&s(r,n)&&a(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||a(l,n));return l}},8631:(e,t,n)=>{const r=n(6343),s=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),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 o?this.content.toValue():this.content instanceof s?{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 n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(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(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}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 i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,n)=>{"use strict";var r=n(8900),s=n(8141),i=n(701),o=n(1268),c=n(4603),a=n(7460),u=r.Symbol,l=s("wks"),p=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},8666:(e,t,n)=>{var r=n(674),s=n(9460),i=n(2306),o=i&&i.isTypedArray,c=o?s(o):r;e.exports=c},8696:(e,t,n)=>{"use strict";var r=n(1203),s=n(2769),i=/#|\.prototype\./,o=function(e,t){var n=a[c(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},8712:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,n)=>{var r=n(5650),s=n(1623),i=n(6285),o=n(3934),c=n(5894),a=n(9828),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){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||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 m=c;case"[object Set]":var f=1&r;if(m||(m=a),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var y=o(m(e),m(t),r,u,p,h);return h.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,n)=>{var r=n(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[c]=n:delete e[c]),s}},8900:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,n)=>{var r=n(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},9098:(e,t,n)=>{"use strict";var r=n(8900),s=n(7013),i=n(9344),o=n(2769),c=n(4543).f,a=n(8696),u=n(8099),l=n(4572),p=n(3999),h=n(701);n(3753);var m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,y,g,v,b,w,E=e.target,x=e.global,j=e.stat,S=e.proto,O=x?r:j?r[E]:r[E]&&r[E].prototype,P=x?u:u[E]||p(u,E,{})[E],A=P.prototype;for(d in t)s=!(n=a(x?d:E+(j?".":"#")+d,e.forced))&&O&&h(O,d),g=P[d],s&&(v=e.dontCallGetSet?(w=c(O,d))&&w.value:O[d]),y=s&&v?v:t[d],(n||S||typeof g!=typeof y)&&(b=e.bind&&s?l(y,r):e.wrap&&s?m(y):S&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),S&&(h(u,f=E+"Prototype")||p(u,f,{}),p(u[f],d,y),e.real&&A&&(n||!A[d])&&p(A,d,y)))}},9258:(e,t,n)=>{"use strict";var r=n(4713),s=n(2769),i=n(262),o=TypeError;e.exports=function(e,t){var n,c;if("string"===t&&s(n=e.toString)&&!i(c=r(n,e)))return c;if(s(n=e.valueOf)&&!i(c=r(n,e)))return c;if("string"!==t&&s(n=e.toString)&&!i(c=r(n,e)))return c;throw new o("Can't convert object to primitive value")}},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,n)=>{"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,n)=>{var r=n(4715)(n(8942),"Promise");e.exports=r},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,n)=>{"use strict";var r=n(4904),s=n(8407);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,n)=>{"use strict";var r=n(8900),s=n(262),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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)}}},9624:(e,t,n)=>{var r=n(3655),s=n(4759),i=n(1580),o=n(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:c).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},9665:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203),i=n(9619);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,n)=>{var r=n(5098),s=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},9770:(e,t,n)=>{var r=n(4715)(n(8942),"Map");e.exports=r},9796:(e,t,n)=>{const r=n(1517),s=n(8631),i=n(4123);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}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 n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(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)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},9903:(e,t,n)=>{"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9932:(e,t,n)=>{"use strict";var r=n(6100),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},9989:(e,t,n)=>{"use strict";var r=n(5024),s=n(9665),i=n(1330),o=n(7235),c=n(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=c(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=c(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}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.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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";n.r(r),n.d(r,{AlternatingVisitor:()=>ia,ContactElement:()=>ni,DefinitionsElement:()=>$i,ExampleElement:()=>yi,ExternalDocumentationElement:()=>hi,FallbackVisitor:()=>jo,FixedFieldsVisitor:()=>Mo,HeaderElement:()=>ji,HeadersElement:()=>xi,InfoElement:()=>ei,ItemsElement:()=>fi,JSONReferenceElement:()=>Hn,LicenseElement:()=>si,MapVisitor:()=>la,MixedFieldsVisitor:()=>na,OpenAPIMediaTypes:()=>Gs,OperationConsumesElement:()=>Gi,OperationElement:()=>li,OperationParametersElement:()=>Wi,OperationProducesElement:()=>Yi,OperationSchemesElement:()=>Qi,OperationSecurityElement:()=>to,OperationTagsElement:()=>ro,ParameterElement:()=>mi,ParametersDefinitionsElement:()=>Ri,PathItemElement:()=>ai,PathItemParametersElement:()=>io,PathsElement:()=>oi,PatternedFieldsVisitor:()=>Zo,ReferenceElement:()=>Ii,ResponseElement:()=>wi,ResponsesDefinitionsElement:()=>Ci,ResponsesElement:()=>vi,SchemaElement:()=>Pi,ScopesElement:()=>Bi,SecurityDefinitionsElement:()=>Ni,SecurityRequirementElement:()=>zi,SecuritySchemeElement:()=>Vi,SpecificationVisitor:()=>So,SwaggerConsumesElement:()=>uo,SwaggerElement:()=>Xs,SwaggerProducesElement:()=>po,SwaggerSchemesElement:()=>co,SwaggerSecurityElement:()=>mo,SwaggerTagsElement:()=>yo,SwaggerVersionElement:()=>Zs,TagElement:()=>Oi,Visitor:()=>xo,XmlElement:()=>ki,createRefractor:()=>Qa,default:()=>Ji,getNodeType:()=>go,isArrayElement:()=>ce,isBooleanElement:()=>ie,isContactElement:()=>rc,isDefinitionsElement:()=>Ec,isElement:()=>te,isExampleElement:()=>mc,isExternalDocumentationElement:()=>cc,isHeaderElement:()=>fc,isHeadersElement:()=>hc,isInfoElement:()=>tc,isItemsElement:()=>uc,isJSONReferenceElement:()=>Wn,isJSONReferenceLikeElement:()=>Zn,isLicenseElement:()=>nc,isLinkPrimitiveElement:()=>ue,isMemberElement:()=>ae,isNullElement:()=>se,isNumberElement:()=>re,isObjectElement:()=>oe,isOperationElement:()=>oc,isParameterElement:()=>ac,isParametersDefinitionsElement:()=>xc,isPathItemElement:()=>ic,isPathsElement:()=>sc,isRefElement:()=>le,isReferenceElement:()=>yc,isReferenceLikeElement:()=>Io,isResponseElement:()=>pc,isResponsesDefinitionsElement:()=>bc,isResponsesElement:()=>lc,isSchemaElement:()=>gc,isScopesElement:()=>Sc,isSecurityDefinitionsElement:()=>wc,isSecurityRequirementElement:()=>Oc,isSecuritySchemeElement:()=>jc,isStringElement:()=>ne,isSwaggerElement:()=>Qo,isSwaggerExtension:()=>_o,isSwaggerVersionElement:()=>ec,isTagElement:()=>dc,isXmlElement:()=>vc,keyMap:()=>vo,mediaTypes:()=>Ks,refract:()=>eu,refractorPluginReplaceEmptyElement:()=>Eo,specificationObj:()=>Xa});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>de,includesClasses:()=>ge,includesSymbols:()=>ye,isAnnotationElement:()=>pe,isArrayElement:()=>ce,isBooleanElement:()=>ie,isCommentElement:()=>he,isElement:()=>te,isLinkElement:()=>ue,isMemberElement:()=>ae,isNullElement:()=>se,isNumberElement:()=>re,isObjectElement:()=>oe,isParseResultElement:()=>me,isPrimitiveElement:()=>fe,isRefElement:()=>le,isStringElement:()=>ne});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>Wn,isJSONSchemaElement:()=>Kn,isLinkDescriptionElement:()=>Yn,isMediaElement:()=>Xn});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>Io,isSwaggerExtension:()=>_o});var i={};n.r(i),n.d(i,{isContactElement:()=>rc,isDefinitionsElement:()=>Ec,isExampleElement:()=>mc,isExternalDocumentationElement:()=>cc,isHeaderElement:()=>fc,isHeadersElement:()=>hc,isInfoElement:()=>tc,isItemsElement:()=>uc,isLicenseElement:()=>nc,isOperationElement:()=>oc,isParameterElement:()=>ac,isParametersDefinitionsElement:()=>xc,isPathItemElement:()=>ic,isPathsElement:()=>sc,isReferenceElement:()=>yc,isResponseElement:()=>pc,isResponsesDefinitionsElement:()=>bc,isResponsesElement:()=>lc,isSchemaElement:()=>gc,isScopesElement:()=>Sc,isSecurityDefinitionsElement:()=>wc,isSecurityRequirementElement:()=>Oc,isSecuritySchemeElement:()=>jc,isSwaggerElement:()=>Qo,isSwaggerVersionElement:()=>ec,isTagElement:()=>dc,isXmlElement:()=>vc});var o=n(8326);function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||c(n)?t:e.apply(this,arguments)}}function u(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return c(n)?t:a((function(t){return e(n,t)}));default:return c(n)&&c(r)?t:c(n)?a((function(t){return e(t,r)})):c(r)?a((function(t){return e(n,t)})):e(n,r)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function p(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!l(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function h(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const m=function(){return this.xf["@@transducer/init"]()},f=function(e){return this.xf["@@transducer/result"](e)};var d=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=m,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=h(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new d(e,t)}}const g=u(p(["all"],y,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})));function v(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,n){return function(){for(var r=[],s=0,i=e,o=0,a=!1;o<t.length||s<arguments.length;){var u;o<t.length&&(!c(t[o])||s>=arguments.length)?u=t[o]:(u=arguments[s],s+=1),r[o]=u,c(u)?a=!0:i-=1,o+=1}return!a&&i<=0?n.apply(this,r):v(Math.max(0,i),b(e,r,n))}}const w=u((function(e,t){return 1===e?a(t):v(e,b(e,[],t))}));const E=a((function(e){return w(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));function x(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function j(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}function S(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const O="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var P=Object.prototype.toString;const A=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return S("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),_=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],I=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},$="function"!=typeof Object.keys||I?a((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=I&&A(e);for(t in e)!S(t,e)||s&&"length"===t||(r[r.length]=t);if(k)for(n=_.length-1;n>=0;)S(t=_[n],e)&&!M(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T=$;const R=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function F(e,t,n,r){var s=x(e);function i(e,t){return C(e,t,n.slice(),r.slice())}return!j((function(e,t){return!j(i,t,e)}),x(t),s)}function C(e,t,n,r){if(O(e,t))return!0;var s,i,o=R(e);if(o!==R(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!O(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!O(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 c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&F(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&F(e.values(),t.values(),n.concat([e]),r.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 a=T(e);if(a.length!==T(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!S(p,t)||!C(t[p],e[p],u,l))return!1;c-=1}return!0}const D=u((function(e,t){return C(e,t,[],[])}));function N(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(D(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}const q=E(u(N));class V extends o.Om{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const L=V;class B extends o.Om{constructor(e,t,n){super(e,t,n),this.element="comment"}}const H=B;const z=a((function(e){return function(){return e}}));const J=z(void 0);const U=D(J());class G extends o.wE{constructor(e,t,n){super(e,t,n),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(U(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const K=G,W=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],X=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Y=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Z=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof o.wE)&&t.classes.includes(e),Q=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ee=e=>e({hasMethod:W,hasBasicElementProps:X,primitiveEq:Y,isElementType:Q,hasClass:Z}),te=ee((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.Hg||e(n)&&t(void 0,n))),ne=ee((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.Om||e(n)&&t("string",n))),re=ee((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.kT||e(n)&&t("number",n))),se=ee((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.Os||e(n)&&t("null",n))),ie=ee((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.bd||e(n)&&t("boolean",n))),oe=ee((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof o.Sh||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),ce=ee((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof o.wE&&!(r instanceof o.Sh)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),ae=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof o.Pr||e(r)&&t("member",r)&&n(void 0,r))),ue=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof o.Ft||e(r)&&t("link",r)&&n(void 0,r))),le=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof o.sI||e(r)&&t("ref",r)&&n(void 0,r))),pe=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof L||e(r)&&t("annotation",r)&&n("array",r))),he=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof H||e(r)&&t("comment",r)&&n("string",r))),me=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof K||e(r)&&t("parseResult",r)&&n("array",r))),fe=e=>Q("object",e)||Q("array",e)||Q("boolean",e)||Q("number",e)||Q("string",e)||Q("null",e)||Q("member",e),de=e=>!!te(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),ye=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!ce(n)&&g(q(n.toValue()),e)},ge=(e,t)=>0===e.length||g(q(t.classes.toValue()),e);function ve(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return c(n)?t:u((function(t,r){return e(n,t,r)}));case 2:return c(n)&&c(r)?t:c(n)?u((function(t,n){return e(t,r,n)})):c(r)?u((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return c(n)&&c(r)&&c(s)?t:c(n)&&c(r)?u((function(t,n){return e(t,n,s)})):c(n)&&c(s)?u((function(t,n){return e(t,r,n)})):c(r)&&c(s)?u((function(t,r){return e(n,t,r)})):c(n)?a((function(t){return e(t,r,s)})):c(r)?a((function(t){return e(n,t,s)})):c(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}function be(e){return"[object Object]"===Object.prototype.toString.call(e)}const we=ve((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})S(r,t)&&(s[r]=S(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)S(r,n)&&!S(r,s)&&(s[r]=n[r]);return s}));const Ee=ve((function e(t,n,r){return we((function(n,r,s){return be(r)&&be(s)?e(t,r,s):t(n,r,s)}),n,r)}));const xe=u((function(e,t){return Ee((function(e,t,n){return n}),e,t)}));const je=u((function(e,t){return null==t||t!=t?e:t})),Se=Number.isInteger||function(e){return(e|0)===e};function Oe(e){return"[object String]"===Object.prototype.toString.call(e)}function Pe(e,t){var n=e<0?t.length+e:e;return Oe(t)?t.charAt(n):t[n]}const Ae=u((function(e,t){if(null!=t)return Se(e)?Pe(e,t):t[e]}));const ke=ve((function(e,t,n){return je(e,Ae(t,n))}));function _e(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var s=e[r];n=Se(s)?Pe(s,n):n[s]}return n}const Ie=u(_e);function Me(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return l(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const $e=ve(Me("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const Te=$e(0,-1);const Re=u((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));const Fe=u((function(e,t){return e.apply(this,t)}));function Ce(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const De=a((function(e){return!!l(e)||!!e&&("object"==typeof e&&(!Oe(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ne="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function qe(e,t,n){return function(r,s,i){if(De(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[Ne])return n(r,s,i[Ne]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ve(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function Le(e,t,n,r){return n[r](e,t)}const Be=qe(Ce,Le,Ve);function He(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}var ze=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Je=u(p(["fantasy-land/map","map"],(function(e){return function(t){return new ze(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return w(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ce((function(n,r){return n[r]=e(t[r]),n}),{},T(t));default:return He(e,t)}})));const Ue=u((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(n){return e(n)(t(n))}:Be((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,Je(n,t))}),[],e)}));const Ge=u((function(e,t){var n=w(e,t);return w(e,(function(){return Ce(Ue,Je(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Ke=a((function(e){return Ge(e.length,e)}));const We=Ke(a((function(e){return!e})));function Xe(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 Ye=function(e){return(e<10?"0":"")+e};const Ze="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ye(e.getUTCMonth()+1)+"-"+Ye(e.getUTCDate())+"T"+Ye(e.getUTCHours())+":"+Ye(e.getUTCMinutes())+":"+Ye(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var Qe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function et(e){return function(t){return new Qe(e,t)}}const tt=u(p(["fantasy-land/filter","filter"],et,(function(e,t){return be(t)?Ce((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},T(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const nt=u((function(e,t){return tt((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function rt(e,t){var n=function(n){var r=t.concat([e]);return N(n,r)?"<Circular>":rt(n,r)},r=function(e,t){return He((function(t){return Xe(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+He(n,e).join(", ")+"))";case"[object Array]":return"["+He(n,e).concat(r(e,nt((function(e){return/^\d+$/.test(e)}),T(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Xe(Ze(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":Xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,T(e)).join(", ")+"}"}}const st=a((function(e){return rt(e,[])}));const it=u((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=st(e),o=n(i,st(t));return void 0!==o&&o===i?e:t}));const ot=u((function(e,t){return Je(Ae(e),t)}));function ct(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}function at(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function ut(e,t,n,r){return e["@@transducer/result"](n[r](Re(e["@@transducer/step"],e),t))}const lt=qe(ct,ut,at);var pt=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}();const ht=ve((function(e,t,n){return lt("function"==typeof e?new pt(e):e,t,n)}));const mt=a((function(e){return w(ht(it,0,ot("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function ft(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const dt=a(Me("tail",$e(1,1/0)));function yt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,ht(ft,arguments[0],dt(arguments)))}var gt=function(e,t){switch(arguments.length){case 0:return gt;case 1:return function t(n){return 0===arguments.length?t:O(e,n)};default:return O(e,t)}};const vt=gt;const bt=w(1,yt(R,vt("GeneratorFunction")));const wt=w(1,yt(R,vt("AsyncFunction")));const Et=mt([yt(R,vt("Function")),bt,wt]);const xt=We(Et);function jt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const St=u((function(e,t){return e&&t}));const Ot=u((function(e,t){return jt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ke(St)(e,t)}));var Pt=a((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():l(e)?[]:Oe(e)?"":be(e)?{}:A(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}));const At=Pt;const kt=a((function(e){return null!=e&&D(e,At(e))}));const _t=w(1,Et(Array.isArray)?Array.isArray:yt(R,vt("Array")));const It=Ot(_t,kt);const Mt=w(3,(function(e,t,n){var r=Ie(e,n),s=Ie(Te(e),n);if(!xt(r)&&!It(e)){var i=Re(r,s);return Fe(i,t)}}));const $t=ve((function(e,t,n){return e(_e(t,n))}));const Tt=D(null);const Rt=We(Tt);function Ft(e){return Ft="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},Ft(e)}const Ct=function(e){return"object"===Ft(e)};const Dt=w(1,Ot(Rt,Ct));var Nt=yt(R,vt("Object")),qt=yt(st,D(st(Object))),Vt=$t(Ot(Et,qt),["constructor"]);const Lt=w(1,(function(e){if(!Dt(e)||!Nt(e))return!1;var t=Object.getPrototypeOf(e);return!!Tt(t)||Vt(t)}));class Bt extends o.g${constructor(){super(),this.register("annotation",L),this.register("comment",H),this.register("parseResult",K)}}const Ht=new Bt,zt=e=>{const t=new Bt;return Lt(e)&&t.use(e),t},Jt=Ht,Ut=()=>({predicates:{...e},namespace:Jt});const Gt=w(1,yt(R,vt("String")));var Kt=n(1212);const Wt=class extends Kt{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Xt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Wt,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}`)}}}const Yt=Xt;const Zt=class extends Yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}},Qt=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},en={},tn=e=>null==e?void 0:e.type,nn=e=>"string"==typeof tn(e),rn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),sn=(e,{visitFnGetter:t=Qt,nodeTypeGetter:n=tn,breakSymbol:r=en,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,p,h,m,f){let d=u,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],n(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,p,h,m,g);if("function"==typeof(null==t?void 0:t.then))throw new Zt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===r)a[u]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,p,h){let m=s;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],n(m),!0);if("function"==typeof c){const t=c.call(e[s],m,o,u,l,p,f);if("function"==typeof(null==t?void 0:t.then))throw new Zt("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===r)a[s]=r;else if(void 0!==t&&t!==i)return t}}else a[s]===m&&(a[s]=c)}}};sn[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Qt,nodeTypeGetter:n=tn,breakSymbol:r=en,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,p,h,m,f){let d=u,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],n(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,p,h,m,g);if(t===i)a[u]=d;else if(t===r)a[u]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,p,h){let m=s;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],n(m),!0);if("function"==typeof c){const t=await c.call(e[s],m,o,u,l,p,f);if(t===r)a[s]=r;else if(void 0!==t&&t!==i)return t}}else a[s]===m&&(a[s]=c)}}};const on=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=en,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Qt,nodeTypeGetter:a=tn,nodePredicate:u=nn,nodeCloneFn:l=rn,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const m=n||{};let f,d,y=Array.isArray(e),g=[e],v=-1,b=[],w=e;const E=[],x=[];do{v+=1;const e=v===g.length;let n;const O=e&&0!==b.length;if(e){if(n=0===x.length?void 0:E.pop(),w=d,d=x.pop(),O)if(y){w=w.slice();let e=0;for(const[t,n]of b){const r=t-e;n===i?(w.splice(r,1),e+=1):w[r]=n}}else{w=l(w);for(const[e,t]of b)w[e]=t}v=f.index,g=f.keys,b=f.edits,y=f.inArray,f=f.prev}else if(d!==i&&void 0!==d){if(n=y?v:g[v],w=d[n],w===i||void 0===w)continue;E.push(n)}let P;if(!Array.isArray(w)){var j;if(!u(w))throw new Zt(`Invalid AST Node: ${String(w)}`,{node:w});if(p&&x.includes(w)){"function"==typeof h&&h(w,n,d,E,x),E.pop();continue}const i=c(t,a(w),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;const s={replaceWith(t,r){"function"==typeof r?r(t,w,n,d,E,x):d&&(d[n]=t),e||(w=t)}};P=i.call(t,w,n,d,E,x,s)}if("function"==typeof(null===(j=P)||void 0===j?void 0:j.then))throw new Zt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===s)break;if(P===o){if(!e){E.pop();continue}}else if(void 0!==P&&(b.push([n,P]),!e)){if(!u(P)){E.pop();continue}w=P}}var S;if(void 0===P&&O&&b.push([n,w]),!e)f={inArray:y,index:v,keys:g,edits:b,prev:f},y=Array.isArray(w),g=y?w:null!==(S=m[a(w)])&&void 0!==S?S:[],v=-1,b=[],d!==i&&void 0!==d&&x.push(d),d=w}while(void 0!==f);return 0!==b.length?b[b.length-1][1]:e};on[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=en,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Qt,nodeTypeGetter:a=tn,nodePredicate:u=nn,nodeCloneFn:l=rn,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const m=n||{};let f,d,y=Array.isArray(e),g=[e],v=-1,b=[],w=e;const E=[],x=[];do{v+=1;const e=v===g.length;let n;const S=e&&0!==b.length;if(e){if(n=0===x.length?void 0:E.pop(),w=d,d=x.pop(),S)if(y){w=w.slice();let e=0;for(const[t,n]of b){const r=t-e;n===i?(w.splice(r,1),e+=1):w[r]=n}}else{w=l(w);for(const[e,t]of b)w[e]=t}v=f.index,g=f.keys,b=f.edits,y=f.inArray,f=f.prev}else if(d!==i&&void 0!==d){if(n=y?v:g[v],w=d[n],w===i||void 0===w)continue;E.push(n)}let O;if(!Array.isArray(w)){if(!u(w))throw new Zt(`Invalid AST Node: ${String(w)}`,{node:w});if(p&&x.includes(w)){"function"==typeof h&&h(w,n,d,E,x),E.pop();continue}const i=c(t,a(w),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;const s={replaceWith(t,r){"function"==typeof r?r(t,w,n,d,E,x):d&&(d[n]=t),e||(w=t)}};O=await i.call(t,w,n,d,E,x,s)}if(O===s)break;if(O===o){if(!e){E.pop();continue}}else if(void 0!==O&&(b.push([n,O]),!e)){if(!u(O)){E.pop();continue}w=O}}var j;if(void 0===O&&S&&b.push([n,w]),!e)f={inArray:y,index:v,keys:g,edits:b,prev:f},y=Array.isArray(w),g=y?w:null!==(j=m[a(w)])&&void 0!==j?j:[],v=-1,b=[],d!==i&&void 0!==d&&x.push(d),d=w}while(void 0!==f);return 0!==b.length?b[b.length-1][1]:e};const cn=class extends Zt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const an=class extends cn{};const un=class extends cn{};const ln=u((function(e,t){return Ce((function(n,r){return n[r]=e(t[r],r,t),n}),{},T(t))}));const pn=a((function(e){return null==e}));var hn=u((function(e,t){if(0===e.length||pn(t))return!1;for(var n=t,r=0;r<e.length;){if(pn(n)||!S(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));const mn=hn;var fn=u((function(e,t){return mn([e],t)}));const dn=fn;const yn=ve((function(e,t,n){return e(Ae(t,n))}));const gn=a((function(e){return w(e.length,e)}));const vn=u((function(e,t){return w(e+1,(function(){var n=arguments[e];if(null!=n&&jt(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(st(n)+' does not have a method named "'+t+'"')}))}));const bn=vn(1,"split");var wn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,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}();function En(e){return function(t){return new wn(e,t)}}const xn=u(p(["dropWhile"],En,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return $e(n,1/0,t)})));const jn=vn(1,"join");const Sn=gn((function(e,t){return yt(bn(""),xn(q(e)),jn(""))(t)})),On=(e,t)=>{const n=je(e,t);return ln((e=>{if(Lt(e)&&dn("$ref",e)&&yn(Gt,"$ref",e)){const t=Ie(["$ref"],e),r=Sn("#/",t);return Ie(r.split("/"),n)}return Lt(e)?On(e,n):e}),e)},Pn=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),An=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof o.KeyValuePair){const{key:t,value:s}=e,i=te(t)?An(t,r):t,c=te(s)?An(s,r):s,a=new o.KeyValuePair(i,c);return n.set(e,a),a}if(e instanceof o.ot){const t=e=>An(e,r),s=[...e].map(t),i=new o.ot(s);return n.set(e,i),i}if(e instanceof o.G6){const t=e=>An(e,r),s=[...e].map(t),i=new o.G6(s);return n.set(e,i),i}if(te(e)){const t=In(e);if(n.set(e,t),e.content)if(te(e.content))t.content=An(e.content,r);else if(e.content instanceof o.KeyValuePair)t.content=An(e.content,r);else if(Array.isArray(e.content)){const n=e=>An(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new an("Value provided to cloneDeep function couldn't be cloned",{value:e})};An.safe=e=>{try{return An(e)}catch{return e}};const kn=e=>{const{key:t,value:n}=e;return new o.KeyValuePair(t,n)},_n=e=>{const t=new e.constructor;if(t.element=e.element,de(e)&&Pn(t,e),e.meta.length>0&&(t._meta=An(e.meta)),e.attributes.length>0&&(t._attributes=An(e.attributes)),te(e.content)){const n=e.content;t.content=_n(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof o.KeyValuePair?t.content=kn(e.content):t.content=e.content;return t},In=e=>{if(e instanceof o.KeyValuePair)return kn(e);if(e instanceof o.ot)return(e=>{const t=[...e];return new o.ot(t)})(e);if(e instanceof o.G6)return(e=>{const t=[...e];return new o.G6(t)})(e);if(te(e))return _n(e);throw new un("Value provided to cloneShallow function couldn't be cloned",{value:e})};In.safe=e=>{try{return In(e)}catch{return e}};const Mn=e=>oe(e)?"ObjectElement":ce(e)?"ArrayElement":ae(e)?"MemberElement":ne(e)?"StringElement":ie(e)?"BooleanElement":re(e)?"NumberElement":se(e)?"NullElement":ue(e)?"LinkElement":le(e)?"RefElement":void 0,$n=e=>te(e)?In(e):rn(e),Tn=yt(Mn,Gt),Rn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Fn=(e,t,{keyMap:n=Rn,...r}={})=>on(e,t,{keyMap:n,nodeTypeGetter:Mn,nodePredicate:Tn,nodeCloneFn:$n,...r});Fn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Rn,...r}={})=>on[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:Mn,nodePredicate:Tn,nodeCloneFn:$n,...r});const Cn={toolboxCreator:Ut,visitorOptions:{nodeTypeGetter:Mn,exposeEdits:!0}},Dn=(e,t,n={})=>{if(0===t.length)return e;const r=xe(Cn,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),c=t.map((e=>e(o))),a=sn(c.map(ke({},"visitor")),{...i});c.forEach(Mt(["pre"],[]));const u=Fn(e,a,i);return c.forEach(Mt(["post"],[])),u};Dn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=xe(Cn,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),c=t.map((e=>e(o))),a=sn[Symbol.for("nodejs.util.promisify.custom")],u=Fn[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(ke({},"visitor")),{...i});await Promise.allSettled(c.map(Mt(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(c.map(Mt(["post"],[]))),p};const Nn=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return te(e)&&(e.meta.length>0&&(r.meta=An(e.meta)),e.attributes.length>0&&(r.attributes=An(e.attributes))),Dn(r,n,{toolboxCreator:Ut,visitorOptions:{nodeTypeGetter:Mn}})},qn=e=>(t,n={})=>Nn(t,{...n,Type:e});o.Sh.refract=qn(o.Sh),o.wE.refract=qn(o.wE),o.Om.refract=qn(o.Om),o.bd.refract=qn(o.bd),o.Os.refract=qn(o.Os),o.kT.refract=qn(o.kT),o.Ft.refract=qn(o.Ft),o.sI.refract=qn(o.sI),L.refract=qn(L),H.refract=qn(H),K.refract=qn(K);class Vn extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const Ln=Vn;class Bn extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Hn=Bn;class zn extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const Jn=zn;class Un extends o.Sh{constructor(e,t,n){super(e,t,n),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 Gn=Un,Kn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ln||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),Wn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Hn||e(r)&&t("JSONReference",r)&&n("object",r))),Xn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Jn||e(r)&&t("media",r)&&n("object",r))),Yn=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gn||e(r)&&t("linkDescription",r)&&n("object",r))),Zn=e=>oe(e)&&e.hasKey("$ref");const Qn=function(){return!0},er=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Mn(e),tr={EphemeralObject:["content"],EphemeralArray:["content"],...Rn},nr=(e,t,{keyMap:n=tr,...r}={})=>Fn(e,t,{keyMap:n,nodeTypeGetter:er,nodePredicate:Qn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});nr[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=tr,...n}={})=>Fn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:er,nodePredicate:Qn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const rr=class{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}};const sr=class{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))}};class ir{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new sr(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 rr(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ne(e.href)?e.href.toValue():""}}const or=e=>te(e)?ne(e)||re(e)||ie(e)||se(e)?e.toValue():nr(e,new ir):e,cr=e=>{const t=e.meta.length>0?An(e.meta):void 0,n=e.attributes.length>0?An(e.attributes):void 0;return new e.constructor(void 0,t,n)},ar=(e,t)=>t.clone&&t.isMergeableElement(e)?lr(cr(e),e,t):e,ur={clone:!0,isMergeableElement:e=>oe(e)||ce(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>ar(e,n))),objectElementMerge:(e,t,n)=>{const r=oe(e)?cr(e):cr(t);return oe(e)&&e.forEach(((e,t,s)=>{const i=In(s);i.value=ar(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=or(s);let c;if(oe(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);c=In(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return lr;const n=t.customMerge(e,t);return"function"==typeof n?n:lr})(s,n)(r,t,n)}else c=In(i),c.value=ar(t,n);r.remove(o),r.content.push(c)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},lr=(e,t,n)=>{var r,s,i;const o={...ur,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:ur.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:ur.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ur.objectElementMerge;const c=ce(t);if(!(c===ce(e)))return ar(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>An(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>An(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};lr.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new o.Sh:e.reduce(((e,n)=>lr(e,n,t)),cr(e[0]))};const pr=lr;const hr=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=pr(t.meta,e.meta)),de(e)&&Pn(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=pr(t.attributes,e.attributes))}};const mr=class extends hr{enter(e){return this.element=An(e),en}},fr=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},dr=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:dr(n,[...t,n])},yr=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>dr(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(s),o=dr(s);for(let t of e){let e=dr(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(fr(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},gr=e=>e.filter(((t,n)=>e.indexOf(t)==n)),vr=(e,t)=>{const n=t.map((e=>dr(e)));let r=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},br=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(vr(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==vr(r,e)||void 0!==t[r],get:(n,r)=>(vr(r,e)||t)[r],set(t,n,r){const s=vr(n,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[n]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),wr=null,Er="copy",xr="copy",jr="deep",Sr=new WeakMap,Or=e=>Sr.get(e),Pr=(e,t)=>{var n,r;const s=gr([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=gr([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},Ar=(e,t)=>{var n,r,s,i;return{property:Pr(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:Pr(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},kr=(e,t)=>{var n,r,s,i,o,c;return{class:gr([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:Ar(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:Ar(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},_r=new Map,Ir=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...dr(e.prototype).map((e=>e.constructor)),...null!==(t=Or(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>_r.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>kr(e,t)))},Mr=e=>{let t=_r.get(e);return t||(t={},_r.set(e,t)),t};function $r(...e){var t,n,r;const s=e.map((e=>e.prototype)),i=wr;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let n of e)n.apply(this,t)},n={[i]:t};s.push(n)}function o(...t){for(const n of e)fr(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===xr?yr(s,o):(c=s,a=o,br([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Er?yr(e,null,["prototype"]):br(e,Function.prototype));let u=o;if("none"!==jr){const s="deep"===jr?Ir(...e):((...e)=>{const t=e.map((e=>Mr(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>kr(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Tr(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),Tr(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,Sr.set(l,p),u}const Tr=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const Rr=a((function(e){return w(ht(it,0,ot("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Fr=a((function(e){return!kt(e)}));const Cr=u((function(e,t){return e||t}));var Dr=We(w(1,Ot(Rt,u((function(e,t){return jt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ke(Cr)(e,t)}))(Ct,Et))));const Nr=Rr([Gt,Dr,Fr]);const qr=u((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}));const Vr=class extends hr{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return qr(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $t(Et,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof mr&&(null==r?void 0:r.constructor)===mr?An(t):(Fn(t,r,n),r.element)}};const Lr=class extends Vr{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(ne(r)&&n.includes(or(r))&&!this.ignoredFields.includes(or(r))){const n=this.toRefractedElement([...t,"fixedFields",or(r)],e),i=new o.Pr(An(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(or(r))||this.element.content.push(An(s))})),this.copyMetaAndAttributes(e,this.element),en}};const Br=class{parent;constructor({parent:e}){this.parent=e}};class Hr extends($r(Lr,Br,mr)){constructor(e){super(e),this.element=new Ln,this.specPath=z(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Lr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(U(this.parent)&&!ne(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Kn(this.parent)&&!ne(e.get("$schema"))){const e=je(or(this.parent.meta.get("inheritedDialectIdentifier")),or(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const n=void 0!==this.parent?An(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new o.wE,r=or(e.get(t));Nr(r)&&n.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}}const zr=Hr;class Jr extends($r(Vr,Br,mr)){ObjectElement(e){const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),en}ArrayElement(e){return this.element=new o.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),en}}const Ur=Jr;const Gr=class extends mr{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Kr=function(){return!1};const Wr=class extends Vr{specPath;ignoredFields;fieldPatternPredicate=Kr;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(or(t))&&this.fieldPatternPredicate(or(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new o.Pr(An(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(or(t))||this.element.content.push(An(n))})),this.copyMetaAndAttributes(e,this.element),en}};const Xr=class extends Wr{constructor(e){super(e),this.fieldPatternPredicate=Nr}};class Yr extends($r(Xr,Br,mr)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Zr=Yr;class Qr extends($r(Xr,Br,mr)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const es=Qr;class ts extends($r(Xr,Br,mr)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ns=ts;const rs=class extends mr{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ss=class extends mr{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}};class is extends($r(Vr,Br,mr)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),en}}const os=is;class cs extends($r(Vr,Br,mr)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),en}}const as=cs;class us extends($r(Vr,Br,mr)){constructor(e){super(e),this.element=new o.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),en}}const ls=us;class ps extends($r(Xr,Br,mr)){constructor(e){super(e),this.element=new o.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const hs=ps;class ms extends($r(Vr,Br,mr)){constructor(e){super(e),this.element=new o.wE,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),en}}const fs=ms;class ds extends($r(Lr,mr)){constructor(e){super(e),this.element=new Hn,this.specPath=z(["document","objects","JSONReference"])}ObjectElement(e){const t=Lr.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ys=ds;const gs=class extends mr{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const vs=ve((function(e,t,n){return w(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const bs=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var ws=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Es=ws;const xs=a((function(e){return Pe(0,e)}));const js=a(h);const Ss=We(pn);const Os=Ot(_t,Fr);function Ps(e){return function(e){if(Array.isArray(e))return As(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 As(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?As(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.")}()}function As(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ks=yt(Es(bs((function(e,t){return e.length>t.length}))),xs,Ae("length")),_s=gn((function(e,t,n){var r=n.apply(void 0,Ps(e));return Ss(r)?js(r):t}));const Is=vs(Os,(function(e){var t=ks(e);return w(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ht(_s(n),void 0,e)}))}),J);const Ms=class extends Vr{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>vs(e,z(t),J))),n=Is(t)(e);return this.element=this.toRefractedElement(n,e),en}};const $s=class extends Ms{constructor(e){super(e),this.alternator=[{predicate:Zn,specPath:["document","objects","JSONReference"]},{predicate:Qn,specPath:["document","objects","JSONSchema"]}]}};class Ts extends($r(Lr,mr)){constructor(e){super(e),this.element=new Jn,this.specPath=z(["document","objects","Media"])}}const Rs=Ts;class Fs extends($r(Lr,mr)){constructor(e){super(e),this.element=new Gn,this.specPath=z(["document","objects","LinkDescription"])}}const Cs={visitors:{value:mr,JSONSchemaOrJSONReferenceVisitor:$s,document:{objects:{JSONSchema:{$visitor:zr,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:$s,items:Ur,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Gr,properties:Zr,additionalProperties:$s,patternProperties:es,dependencies:ns,enum:rs,type:ss,allOf:os,anyOf:as,oneOf:ls,not:$s,definitions:hs,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:fs,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:ys,fixedFields:{$ref:gs}},Media:{$visitor:Rs,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Fs,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:$s,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:$s}}}}}},Ds=e=>{if(te(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ns={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Rn},qs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ln),t.register("jSONReference",Hn),t.register("media",Jn),t.register("linkDescription",Gn),t}},Vs=()=>{const e=zt(qs);return{predicates:{...t,isStringElement:ne},namespace:e}},Ls=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Cs}={})=>{const s=(0,o.e)(e),i=On(r),c=new(Ie(t,i))({specObj:i});return Fn(s,c),Dn(c.element,n,{toolboxCreator:Vs,visitorOptions:{keyMap:Ns,nodeTypeGetter:Ds}})},Bs=e=>(t,n={})=>Ls(t,{specPath:e,...n});Ln.refract=Bs(["visitors","document","objects","JSONSchema","$visitor"]),Hn.refract=Bs(["visitors","document","objects","JSONReference","$visitor"]),Jn.refract=Bs(["visitors","document","objects","Media","$visitor"]),Gn.refract=Bs(["visitors","document","objects","LinkDescription","$visitor"]);const Hs=a((function(e){return Pe(-1,e)}));const zs=class extends Yt{};const Js=class extends zs{};const Us=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Js("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Js("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Js("latest method in MediaTypes class is not yet implemented.")}};class Gs extends Us{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return Hs(this.filterByFormat(e))}}const Ks=new Gs("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0");class Ws extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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)}}const Xs=Ws;class Ys extends o.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Zs=Ys;class Qs extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const ei=Qs;class ti extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const ni=ti;class ri extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const si=ri;class ii extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const oi=ii;class ci extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ai=ci;class ui extends o.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new o.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const li=ui;class pi extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const hi=pi;const mi=class extends Ln{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new zs("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new zs("idProp setter in Parameter class is not not supported.")}get $schema(){throw new zs("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new zs("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new zs("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new zs("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new zs("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new zs("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new zs("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new zs("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new zs("properties getter in Parameter class is not not supported.")}set properties(e){throw new zs("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new zs("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new zs("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new zs("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new zs("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new zs("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new zs("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new zs("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new zs("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new zs("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new zs("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new zs("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new zs("oneOf setter in Parameter class is not not supported.")}get not(){throw new zs("not getter in Parameter class is not not supported.")}set not(e){throw new zs("not setter in Parameter class is not not supported.")}get definitions(){throw new zs("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new zs("definitions setter in Parameter class is not not supported.")}get title(){throw new zs("title getter in Parameter class is not not supported.")}set title(e){throw new zs("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new zs("base getter in Parameter class is not not supported.")}set base(e){throw new zs("base setter in Parameter class is not not supported.")}get links(){throw new zs("links getter in Parameter class is not not supported.")}set links(e){throw new zs("links setter in Parameter class is not not supported.")}get media(){throw new zs("media getter in Parameter class is not not supported.")}set media(e){throw new zs("media setter in Parameter class is not not supported.")}get readOnly(){throw new zs("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new zs("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fi=class extends Ln{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new zs("idProp getter in Items class is not not supported.")}set idProp(e){throw new zs("idProp setter in Items class is not not supported.")}get $schema(){throw new zs("$schema getter in Items class is not not supported.")}set $schema(e){throw new zs("$schema setter in Items class is not not supported.")}get additionalItems(){throw new zs("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new zs("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new zs("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new zs("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new zs("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new zs("minProperties setter in Items class is not not supported.")}get required(){throw new zs("required getter in Items class is not not supported.")}set required(e){throw new zs("required setter in Items class is not not supported.")}get properties(){throw new zs("properties getter in Items class is not not supported.")}set properties(e){throw new zs("properties setter in Items class is not not supported.")}get additionalProperties(){throw new zs("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new zs("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new zs("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new zs("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new zs("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new zs("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new zs("allOf getter in Items class is not not supported.")}set allOf(e){throw new zs("allOf setter in Items class is not not supported.")}get anyOf(){throw new zs("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new zs("anyOf setter in Items class is not not supported.")}get oneOf(){throw new zs("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new zs("oneOf setter in Items class is not not supported.")}get not(){throw new zs("not getter in Items class is not not supported.")}set not(e){throw new zs("not setter in Items class is not not supported.")}get definitions(){throw new zs("definitions getter in Items class is not not supported.")}set definitions(e){throw new zs("definitions setter in Items class is not not supported.")}get title(){throw new zs("title getter in Items class is not not supported.")}set title(e){throw new zs("title setter in Items class is not not supported.")}get description(){throw new zs("description getter in Items class is not not supported.")}set description(e){throw new zs("description setter in Items class is not not supported.")}get base(){throw new zs("base getter in Items class is not not supported.")}set base(e){throw new zs("base setter in Items class is not not supported.")}get links(){throw new zs("links getter in Items class is not not supported.")}set links(e){throw new zs("links setter in Items class is not not supported.")}get media(){throw new zs("media getter in Items class is not not supported.")}set media(e){throw new zs("media setter in Items class is not not supported.")}get readOnly(){throw new zs("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new zs("readOnly setter in Items class is not not supported.")}};class di extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const yi=di;class gi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const vi=gi;class bi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const wi=bi;class Ei extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const xi=Ei;const ji=class extends Ln{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new zs("idProp getter in Header class is not not supported.")}set idProp(e){throw new zs("idProp setter in Header class is not not supported.")}get $schema(){throw new zs("$schema getter in Header class is not not supported.")}set $schema(e){throw new zs("$schema setter in Header class is not not supported.")}get additionalItems(){throw new zs("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new zs("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new zs("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new zs("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new zs("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new zs("minProperties setter in Header class is not not supported.")}get required(){throw new zs("required getter in Header class is not not supported.")}set required(e){throw new zs("required setter in Header class is not not supported.")}get properties(){throw new zs("properties getter in Header class is not not supported.")}set properties(e){throw new zs("properties setter in Header class is not not supported.")}get additionalProperties(){throw new zs("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new zs("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new zs("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new zs("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new zs("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new zs("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new zs("allOf getter in Header class is not not supported.")}set allOf(e){throw new zs("allOf setter in Header class is not not supported.")}get anyOf(){throw new zs("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new zs("anyOf setter in Header class is not not supported.")}get oneOf(){throw new zs("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new zs("oneOf setter in Header class is not not supported.")}get not(){throw new zs("not getter in Header class is not not supported.")}set not(e){throw new zs("not setter in Header class is not not supported.")}get definitions(){throw new zs("definitions getter in Header class is not not supported.")}set definitions(e){throw new zs("definitions setter in Header class is not not supported.")}get title(){throw new zs("title getter in Header class is not not supported.")}set title(e){throw new zs("title setter in Header class is not not supported.")}get base(){throw new zs("base getter in Header class is not not supported.")}set base(e){throw new zs("base setter in Header class is not not supported.")}get links(){throw new zs("links getter in Header class is not not supported.")}set links(e){throw new zs("links setter in Header class is not not supported.")}get media(){throw new zs("media getter in Header class is not not supported.")}set media(e){throw new zs("media setter in Header class is not not supported.")}get readOnly(){throw new zs("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new zs("readOnly setter in Header class is not not supported.")}};class Si extends o.Sh{constructor(e,t,n){super(e,t,n),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)}}const Oi=Si;const Pi=class extends Ln{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new zs("idProp getter in Schema class is not not supported.")}set idProp(e){throw new zs("idProp setter in Schema class is not not supported.")}get $schema(){throw new zs("$schema getter in Schema class is not not supported.")}set $schema(e){throw new zs("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new zs("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new zs("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new zs("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new zs("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new zs("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new zs("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new zs("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new zs("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new zs("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new zs("oneOf setter in Schema class is not not supported.")}get not(){throw new zs("not getter in Schema class is not not supported.")}set not(e){throw new zs("not setter in Schema class is not not supported.")}get definitions(){throw new zs("definitions getter in Schema class is not not supported.")}set definitions(e){throw new zs("definitions setter in Schema class is not not supported.")}get base(){throw new zs("base getter in Schema class is not not supported.")}set base(e){throw new zs("base setter in Schema class is not not supported.")}get links(){throw new zs("links getter in Schema class is not not supported.")}set links(e){throw new zs("links setter in Schema class is not not supported.")}get media(){throw new zs("media getter in Schema class is not not supported.")}set media(e){throw new zs("media setter in Schema class is not not supported.")}};class Ai extends o.Sh{constructor(e,t,n){super(e,t,n),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 ki=Ai;class _i extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ii=_i;class Mi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const $i=Mi;class Ti extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const Ri=Ti;class Fi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const Ci=Fi;class Di extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Ni=Di;class qi extends o.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Vi=qi;class Li extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const Bi=Li;class Hi extends o.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const zi=Hi,Ji={namespace:e=>{const{base:t}=e;return t.register("swagger",Xs),t.register("swaggerVersion",Zs),t.register("info",ei),t.register("contact",ni),t.register("license",si),t.register("paths",oi),t.register("pathItem",ai),t.register("operation",li),t.register("externalDocumentation",hi),t.register("parameter",mi),t.register("items",fi),t.register("responses",vi),t.register("response",wi),t.register("headers",xi),t.register("example",yi),t.register("header",ji),t.register("tag",Oi),t.register("reference",Ii),t.register("schema",Pi),t.register("xml",ki),t.register("definitions",$i),t.register("parametersDefinitions",Ri),t.register("responsesDefinitions",Ci),t.register("securityDefinitions",Ni),t.register("securityScheme",Vi),t.register("scopes",Bi),t.register("securityRequirement",zi),t}};class Ui extends o.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Ui.primaryClass)}}const Gi=Ui;class Ki extends o.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Ki.primaryClass),this.classes.push("parameters")}}const Wi=Ki;class Xi extends o.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Xi.primaryClass)}}const Yi=Xi;class Zi extends o.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Zi.primaryClass)}}const Qi=Zi;class eo extends o.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(eo.primaryClass),this.classes.push("security")}}const to=eo;class no extends o.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(no.primaryClass),this.classes.push("tags")}}const ro=no;class so extends o.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(so.primaryClass),this.classes.push("parameters")}}const io=so;class oo extends o.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(oo.primaryClass)}}const co=oo;class ao extends o.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(ao.primaryClass)}}const uo=ao;class lo extends o.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(lo.primaryClass)}}const po=lo;class ho extends o.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(ho.primaryClass),this.classes.push("security")}}const mo=ho;class fo extends o.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(fo.primaryClass)}}const yo=fo,go=e=>{if(te(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},vo={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...Rn},bo={SwaggerElement:{info:(...e)=>new ei(...e),schemes:(...e)=>new co(...e),consumes:(...e)=>new uo(...e),produces:(...e)=>new po(...e),paths:(...e)=>new oi(...e),definitions:(...e)=>new $i(...e),parameters:(...e)=>new Ri(...e),responses:(...e)=>new Ci(...e),securityDefinitions:(...e)=>new Ni(...e),security:(...e)=>new mo(...e),tags:(...e)=>new yo(...e),externalDocs:(...e)=>new hi(...e)},InfoElement:{contact:(...e)=>new ni(...e),license:(...e)=>new si(...e)},PathsElement:{"[key: *]":function(...e){return new ai(...e)}},PathItemElement:{get:(...e)=>new li(...e),put:(...e)=>new li(...e),post:(...e)=>new li(...e),delete:(...e)=>new li(...e),options:(...e)=>new li(...e),head:(...e)=>new li(...e),patch:(...e)=>new li(...e),parameters:(...e)=>new io(...e)},OperationElement:{tags:(...e)=>new ro(...e),externalDocs:(...e)=>new hi(...e),consumes:(...e)=>new Gi(...e),produces:(...e)=>new Yi(...e),parameters:(...e)=>new Wi(...e),responses:(...e)=>new vi(...e),schemes:(...e)=>new Qi(...e),security:(...e)=>new to(...e)},ParameterElement:{schema:(...e)=>new Pi(...e),items:(...e)=>new fi(...e)},ItemsElement:{items:(...e)=>new fi(...e)},ResponsesElement:{"[key: *]":function(...e){return new wi(...e)}},ResponseElement:{schema:(...e)=>new Pi(...e),headers:(...e)=>new xi(...e),examples:(...e)=>new yi(...e)},HeadersElement:{"[key: *]":function(...e){return new ji(...e)}},HeaderElement:{items:(...e)=>new fi(...e)},TagElement:{externalDocs:(...e)=>new hi(...e)},SchemaElement:{items:(...e)=>new Pi(...e),allOf(...e){const t=new o.wE(...e);return t.classes.push("json-schema-allOf"),t},properties(...e){const t=new o.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Pi(...e),xml:(...e)=>new ki(...e),externalDocs:(...e)=>new hi(...e)},DefinitionsElement:{"[key: *]":function(...e){return new Pi(...e)}},ParametersDefinitionsElement:{"[key: *]":function(...e){return new mi(...e)}},ResponsesDefinitionsElement:{"[key: *]":function(...e){return new wi(...e)}},SecurityDefinitionsElement:{"[key: *]":function(...e){return new Vi(...e)}},SecuritySchemeElement:{scopes:(...e)=>new Bi(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new o.wE(...e)}},[Wi.primaryClass]:{"<*>":function(...e){return new mi(...e)}},[to.primaryClass]:{"<*>":function(...e){return new zi(...e)}},[io.primaryClass]:{"<*>":function(...e){return new mi(...e)}},[mo.primaryClass]:{"<*>":function(...e){return new zi(...e)}},[yo.primaryClass]:{"<*>":function(...e){return new Oi(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Pi(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Pi(...e)}}},wo=(e,t)=>{const n=go(e),r=bo[n]||bo[or(e.classes.first)];return void 0===r?void 0:Object.prototype.hasOwnProperty.call(r,"[key: *]")?r["[key: *]"]:r[t]},Eo=()=>()=>({visitor:{StringElement(e,t,n,r,s){if(!(e=>ne(e)&&ge(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,n].filter(te),o=i[i.length-1];let c,a;if(ce(o)?(a=e,c=wo(o,"<*>")):ae(o)&&(a=i[i.length-2],c=wo(a,or(o.key))),"function"!=typeof c)return;const u=c.call({context:a},void 0,An(e.meta),An(e.attributes));return Pn(u,e)}}});const xo=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=pr(t.meta,e.meta)),de(e)&&Pn(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=pr(t.attributes,e.attributes))}};const jo=class extends xo{enter(e){return this.element=An(e),en}};const So=class extends xo{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return qr(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $t(Et,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof jo&&r?.constructor===jo?An(t):(Fn(t,r,n),r.element)}};var Oo=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=f,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?h(n):n},e}();function Po(e){return function(t){return new Oo(e,t)}}const Ao=u(p(["take"],Po,(function(e,t){return $e(0,e<0?1/0:e,t)})));const ko=u((function(e,t){return D(Ao(e.length,t),e)})),_o=e=>ne(e.key)&&ko("x-",or(e.key)),Io=e=>oe(e)&&e.hasKey("$ref");const Mo=class extends So{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=_o;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(ne(r)&&n.includes(or(r))&&!this.ignoredFields.includes(or(r))){const n=this.toRefractedElement([...t,"fixedFields",or(r)],e),i=new o.Pr(An(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(or(r))||this.element.content.push(An(s))})),this.copyMetaAndAttributes(e,this.element),en}};class $o extends($r(Mo,jo)){constructor(e){super(e),this.element=new Xs,this.specPath=z(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const To=$o;class Ro extends($r(So,jo)){StringElement(e){const t=new Zs(or(e));return this.copyMetaAndAttributes(e,t),this.element=t,en}}const Fo=Ro;const Co=class extends jo{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const Do=class extends jo{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};const No=class extends jo{constructor(e){super(e),this.element=new co}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};const qo=class extends jo{constructor(e){super(e),this.element=new uo}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};const Vo=class extends jo{constructor(e){super(e),this.element=new po}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};class Lo extends($r(So,jo)){constructor(e){super(e),this.element=new mo}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),en}}const Bo=Lo;class Ho extends($r(So,jo)){constructor(e){super(e),this.element=new yo}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),en}}const zo=Ho;class Jo extends($r(Mo,jo)){constructor(e){super(e),this.element=new ei,this.specPath=z(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Uo=Jo;const Go=class extends jo{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ko extends($r(Mo,jo)){constructor(e){super(e),this.element=new ni,this.specPath=z(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Wo=Ko;class Xo extends($r(Mo,jo)){constructor(e){super(e),this.element=new si,this.specPath=z(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Yo=Xo;const Zo=class extends So{specPath;ignoredFields;fieldPatternPredicate=Kr;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=_o;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(or(t))&&this.fieldPatternPredicate(or(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new o.Pr(An(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(or(t))||this.element.content.push(An(n))})),this.copyMetaAndAttributes(e,this.element),en}},Qo=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xs||e(r)&&t("swagger",r)&&n("object",r))),ec=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zs||e(r)&&t("swaggerVersion",r)&&n("string",r))),tc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ei||e(r)&&t("info",r)&&n("object",r))),nc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof si||e(r)&&t("license",r)&&n("object",r))),rc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ni||e(r)&&t("contact",r)&&n("object",r))),sc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oi||e(r)&&t("paths",r)&&n("object",r))),ic=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ai||e(r)&&t("pathItem",r)&&n("object",r))),oc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof li||e(r)&&t("operation",r)&&n("object",r))),cc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof hi||e(r)&&t("externalDocumentation",r)&&n("object",r))),ac=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof mi||e(r)&&t("parameter",r)&&n("object",r))),uc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fi||e(r)&&t("items",r)&&n("object",r))),lc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vi||e(r)&&t("responses",r)&&n("object",r))),pc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wi||e(r)&&t("response",r)&&n("object",r))),hc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xi||e(r)&&t("headers",r)&&n("object",r))),mc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof yi||e(r)&&t("example",r)&&n("object",r))),fc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ji||e(r)&&t("header",r)&&n("object",r))),dc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Oi||e(r)&&t("tag",r)&&n("object",r))),yc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ii||e(r)&&t("reference",r)&&n("object",r))),gc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Pi||e(r)&&t("schema",r)&&n("object",r))),vc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ki||e(r)&&t("xml",r)&&n("object",r))),bc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ci||e(r)&&t("responsesDefinitions",r)&&n("object",r))),wc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ni||e(r)&&t("securityDefinitions",r)&&n("object",r))),Ec=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $i||e(r)&&t("definitions",r)&&n("object",r))),xc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ri||e(r)&&t("parametersDefinitions",r)&&n("object",r))),jc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vi||e(r)&&t("securityScheme",r)&&n("object",r))),Sc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Bi||e(r)&&t("scopes",r)&&n("object",r))),Oc=ee((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zi||e(r)&&t("securityRequirement",r)&&n("object",r)));class Pc extends($r(Zo,jo)){element;constructor(e){super(e),this.element=new oi,this.specPath=z(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Qn}ObjectElement(e){const t=Zo.prototype.ObjectElement.call(this,e);return this.element.filter(ic).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",An(t))})),t}}const Ac=Pc;class kc extends($r(Mo,jo)){constructor(e){super(e),this.element=new ai,this.specPath=z(["document","objects","PathItem"])}ObjectElement(e){const t=Mo.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach(((e,t)=>{const n=An(t);n.content=or(n).toUpperCase(),e.setMetaProperty("http-method",n)})),ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const _c=kc;const Ic=class extends jo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Mc extends($r(So,jo)){constructor(e){super(e),this.element=new io}ArrayElement(e){return e.forEach((e=>{const t=Io(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);yc(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),en}}const $c=Mc;class Tc extends($r(Mo,jo)){constructor(e){super(e),this.element=new li,this.specPath=z(["document","objects","Operation"])}}const Rc=Tc;const Fc=class extends jo{constructor(e){super(e),this.element=new ro}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};const Cc=class extends jo{constructor(e){super(e),this.element=new Gi}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};const Dc=class extends jo{constructor(e){super(e),this.element=new Yi}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};class Nc extends($r(So,jo)){constructor(e){super(e),this.element=new Wi}ArrayElement(e){return e.forEach((e=>{const t=Io(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);yc(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),en}}const qc=Nc;const Vc=class extends jo{constructor(e){super(e),this.element=new Qi}ArrayElement(e){return this.element=this.element.concat(An(e)),en}};class Lc extends($r(So,jo)){constructor(e){super(e),this.element=new to}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),en}}const Bc=Lc;class Hc extends($r(Mo,jo)){constructor(e){super(e),this.element=new hi,this.specPath=z(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const zc=Hc;class Jc extends($r(Mo,jo)){constructor(e){super(e),this.element=new mi,this.specPath=z(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Uc=Jc;class Gc extends($r(Mo,jo)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new fi,this.specPath=z(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const Kc=Gc;const Wc=u((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+st(e));var n;return function(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":""))}(e).test(t)}));function Xc(e){return"[object Number]"===Object.prototype.toString.call(e)}const Yc=u((function(e,t){if(!Xc(e)||!Xc(t))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,s=0;s<r;)n[s]=s+e,s+=1;return n}));function Zc(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!N(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!N(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const Qc=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Zc(e,!0,this)},e.prototype.has=function(e){return Zc(e,!1,this)},e}();const ea=u((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new Qc,c=0;c<i;c+=1)o.add(t[c]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));class ta extends($r(Mo,Zo)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...ea(e.keys(),t)],Mo.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Zo.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return en}}const na=ta;class ra extends($r(na,jo)){constructor(e){super(e),this.element=new vi,this.specPathFixedFields=z(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Io(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=Wc(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Yc(100,600).join("|")})$`))}ObjectElement(e){const t=na.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(pc).forEach(((e,t)=>{const n=An(t);this.fieldPatternPredicate(or(n))&&e.setMetaProperty("http-status-code",n)})),t}}const sa=ra;const ia=class extends So{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>vs(e,z(t),J))),n=Is(t)(e);return this.element=this.toRefractedElement(n,e),en}};class oa extends($r(ia,jo)){constructor(e){super(e),this.alternator=[{predicate:Io,specPath:["document","objects","Reference"]},{predicate:Qn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ia.prototype.enter.call(this,e);return yc(this.element)?this.element.setMetaProperty("referenced-element","response"):pc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const ca=oa;class aa extends($r(Mo,jo)){constructor(e){super(e),this.element=new wi,this.specPath=z(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const ua=aa;const la=class extends Zo{constructor(e){super(e),this.fieldPatternPredicate=Nr}};class pa extends($r(la,jo)){constructor(e){super(e),this.element=new xi,this.specPath=z(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const ha=pa;class ma extends($r(la,jo)){constructor(e){super(e),this.element=new yi,this.specPath=z(["value"]),this.canSupportSpecificationExtensions=!1}}const fa=ma;class da extends($r(Mo,jo)){constructor(e){super(e),this.element=new ji,this.specPath=z(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const ya=da;class ga extends($r(Mo,jo)){constructor(e){super(e),this.element=new Oi,this.specPath=z(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const va=ga;class ba extends($r(Mo,jo)){constructor(e){super(e),this.element=new Ii,this.specPath=z(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Mo.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const wa=ba;const Ea=class extends jo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class xa extends($r(Mo,jo)){constructor(e){super(e),this.element=new Pi,this.specPath=z(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ja=xa,Sa=Cs.visitors.document.objects.JSONSchema.fixedFields.allOf;const Oa=class extends Sa{ArrayElement(e){const t=Sa.prototype.ArrayElement.call(this,e);return this.element.filter(Wn).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Pa=Cs.visitors.document.objects.JSONSchema.fixedFields.items;const Aa=class extends Pa{ObjectElement(e){const t=Pa.prototype.ObjectElement.call(this,e);return Wn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=Pa.prototype.ArrayElement.call(this,e);return this.element.filter(Wn).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ka=Cs.visitors.document.objects.JSONSchema.fixedFields.properties;const _a=class extends ka{ObjectElement(e){const t=ka.prototype.ObjectElement.call(this,e);return this.element.filter(Wn).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Ia=Cs.visitors.JSONSchemaOrJSONReferenceVisitor;const Ma=class extends Ia{ObjectElement(e){const t=Ia.prototype.enter.call(this,e);return Wn(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class $a extends($r(Mo,jo)){constructor(e){super(e),this.element=new ki,this.specPath=z(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Ta=$a;class Ra extends($r(la,jo)){constructor(e){super(e),this.element=new $i,this.specPath=e=>Zn(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=la.prototype.ObjectElement.call(this,e);return this.element.filter(Wn).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Fa=Ra;class Ca extends($r(la,jo)){constructor(e){super(e),this.element=new Ci,this.specPath=z(["document","objects","Response"])}}const Da=Ca;class Na extends($r(la,jo)){constructor(e){super(e),this.element=new Ri,this.specPath=z(["document","objects","Parameter"])}}const qa=Na;class Va extends($r(la,jo)){element;constructor(e){super(e),this.element=new Ni,this.specPath=z(["document","objects","SecurityScheme"])}}const La=Va;class Ba extends($r(Mo,jo)){constructor(e){super(e),this.element=new Vi,this.specPath=z(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Ha=Ba;class za extends($r(la,jo)){constructor(e){super(e),this.element=new Bi,this.specPath=z(["value"]),this.canSupportSpecificationExtensions=!0}}const Ja=za;class Ua extends($r(la,jo)){constructor(e){super(e),this.element=new zi,this.specPath=z(["value"])}}const Ga=Ua;const Ka=class extends So{MemberElement(e){return this.element=An(e),this.element.classes.push("specification-extension"),en}},{fixedFields:Wa}=Cs.visitors.document.objects.JSONSchema,Xa={visitors:{value:jo,document:{objects:{JSONReference:Cs.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:To,fixedFields:{swagger:Fo,info:{$ref:"#/visitors/document/objects/Info"},host:Co,basePath:Do,schemes:No,consumes:qo,produces:Vo,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Bo,tags:zo,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Uo,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:Go}},Contact:{$visitor:Wo,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Yo,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:Ac},PathItem:{$visitor:_c,fixedFields:{$ref:Ic,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"},parameters:$c}},Operation:{$visitor:Rc,fixedFields:{tags:Fc,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Cc,produces:Dc,parameters:qc,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:Vc,deprecated:{$ref:"#/visitors/value"},security:Bc}},ExternalDocumentation:{$visitor:zc,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Uc,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:Wa.description,required:Wa.required,schema:Ma,type:Wa.type,format:Wa.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Wa.default,maximum:Wa.maximum,exclusiveMaximum:Wa.exclusiveMaximum,minimum:Wa.minimum,exclusiveMinimum:Wa.exclusiveMinimum,maxLength:Wa.maxLength,minLength:Wa.minLength,pattern:Wa.pattern,maxItems:Wa.maxItems,minItems:Wa.minItems,uniqueItems:Wa.uniqueItems,enum:Wa.enum,multipleOf:Wa.multipleOf}},Items:{$visitor:Kc,fixedFields:{type:Wa.type,format:Wa.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Wa.default,maximum:Wa.maximum,exclusiveMaximum:Wa.exclusiveMaximum,minimum:Wa.minimum,exclusiveMinimum:Wa.exclusiveMinimum,maxLength:Wa.maxLength,minLength:Wa.minLength,pattern:Wa.pattern,maxItems:Wa.maxItems,minItems:Wa.minItems,uniqueItems:Wa.uniqueItems,enum:Wa.enum,multipleOf:Wa.multipleOf}},Responses:{$visitor:sa,fixedFields:{default:ca}},Response:{$visitor:ua,fixedFields:{description:{$ref:"#/visitors/value"},schema:Ma,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:ha},Example:{$visitor:fa},Header:{$visitor:ya,fixedFields:{description:Wa.description,type:Wa.type,format:Wa.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Wa.default,maximum:Wa.maximum,exclusiveMaximum:Wa.exclusiveMaximum,minimum:Wa.minimum,exclusiveMinimum:Wa.exclusiveMinimum,maxLength:Wa.maxLength,minLength:Wa.minLength,pattern:Wa.pattern,maxItems:Wa.maxItems,minItems:Wa.minItems,uniqueItems:Wa.uniqueItems,enum:Wa.enum,multipleOf:Wa.multipleOf}},Tag:{$visitor:va,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:wa,fixedFields:{$ref:Ea}},Schema:{$visitor:ja,fixedFields:{format:Wa.format,title:Wa.title,description:Wa.description,default:Wa.default,multipleOf:Wa.multipleOf,maximum:Wa.maximum,exclusiveMaximum:Wa.exclusiveMaximum,minimum:Wa.minimum,exclusiveMinimum:Wa.exclusiveMinimum,maxLength:Wa.maxLength,minLength:Wa.minLength,pattern:Wa.pattern,maxItems:Wa.maxItems,minItems:Wa.minItems,uniqueItems:Wa.uniqueItems,maxProperties:Wa.maxProperties,minProperties:Wa.minProperties,required:Wa.required,enum:Wa.enum,type:Wa.type,readOnly:Wa.readOnly,items:Aa,allOf:Oa,properties:_a,additionalProperties:Ma,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Ta,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Fa},ParametersDefinitions:{$visitor:qa},ResponsesDefinitions:{$visitor:Da},SecurityDefinitions:{$visitor:La},SecurityScheme:{$visitor:Ha,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Ja},SecurityRequirement:{$visitor:Ga}},extension:{$visitor:Ka}}}},Ya=()=>{const e=zt(Ji);return{predicates:{...s,...i,isStringElement:ne},namespace:e}},Za=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,o.e)(e),s=On(Xa),i=new(Ie(t,s))({specObj:s});return Fn(r,i),Dn(i.element,n,{toolboxCreator:Ya,visitorOptions:{keyMap:vo,nodeTypeGetter:go}})},Qa=e=>(t,n={})=>Za(t,{specPath:e,...n}),eu=Za})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomNsOpenapi2={})}(this,(function(e){"use strict";var t=function(){return!1},n=function(){return!0};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function s(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return r(n)?t:s((function(t){return e(n,t)}));default:return r(n)&&r(i)?t:r(n)?s((function(t){return e(t,i)})):r(i)?s((function(t){return e(n,t)})):e(n,i)}}}function o(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function a(e,t,n){return function(){for(var s=[],i=0,c=e,u=0,l=!1;u<t.length||i<arguments.length;){var f;u<t.length&&(!r(t[u])||i>=arguments.length)?f=t[u]:(f=arguments[i],i+=1),s[u]=f,r(f)?l=!0:c-=1,u+=1}return!l&&c<=0?n.apply(this,s):o(Math.max(0,c),a(e,s,n))}}var c=i((function(e,t){return 1===e?s(t):o(e,a(e,[],t))}));function u(e){return function t(n,o,a){switch(arguments.length){case 0:return t;case 1:return r(n)?t:i((function(t,r){return e(n,t,r)}));case 2:return r(n)&&r(o)?t:r(n)?i((function(t,n){return e(t,o,n)})):r(o)?i((function(t,r){return e(n,t,r)})):s((function(t){return e(n,o,t)}));default:return r(n)&&r(o)&&r(a)?t:r(n)&&r(o)?i((function(t,n){return e(t,n,a)})):r(n)&&r(a)?i((function(t,n){return e(t,o,n)})):r(o)&&r(a)?i((function(t,r){return e(n,t,r)})):r(n)?s((function(t){return e(t,o,a)})):r(o)?s((function(t){return e(n,t,a)})):r(a)?s((function(t){return e(n,o,t)})):e(n,o,a)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function f(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!l(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function p(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const m=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var d=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=m,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=p(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new d(e,t)}}var g=i(f(["all"],y,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})));function v(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function b(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}function E(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var j=Object.prototype.toString,O=function(){return"[object Arguments]"===j.call(arguments)?function(e){return"[object Arguments]"===j.call(e)}:function(e){return E("callee",e)}}(),P=!{toString:null}.propertyIsEnumerable("toString"),S=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=function(){return arguments.propertyIsEnumerable("length")}(),A=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},_="function"!=typeof Object.keys||x?s((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=x&&O(e);for(t in e)!E(t,e)||s&&"length"===t||(r[r.length]=t);if(P)for(n=S.length-1;n>=0;)E(t=S[n],e)&&!A(r,t)&&(r[r.length]=t),n-=1;return r})):s((function(e){return Object(e)!==e?[]:Object.keys(e)})),k=s((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function I(e,t,n,r){var s=v(e);function i(e,t){return M(e,t,n.slice(),r.slice())}return!b((function(e,t){return!b(i,t,e)}),v(t),s)}function M(e,t,n,r){if(w(e,t))return!0;var s,i,o=k(e);if(o!==k(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(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 a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),n.concat([e]),r.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 c=_(e);if(c.length!==_(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var f=c[a];if(!E(f,t)||!M(t[f],e[f],u,l))return!1;a-=1}return!0}var $=i((function(e,t){return M(e,t,[],[])}));function T(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if($(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function R(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}function F(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 N=function(e){return(e<10?"0":"")+e},C="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+N(e.getUTCMonth()+1)+"-"+N(e.getUTCDate())+"T"+N(e.getUTCHours())+":"+N(e.getUTCMinutes())+":"+N(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function D(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}function q(e){return"[object Object]"===Object.prototype.toString.call(e)}var L=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function V(e){return function(t){return new L(e,t)}}var B=i(f(["fantasy-land/filter","filter"],V,(function(e,t){return q(t)?D((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},_(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)}))),z=i((function(e,t){return B((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function H(e,t){var n=function(n){var r=t.concat([e]);return T(n,r)?"<Circular>":H(n,r)},r=function(e,t){return R((function(t){return F(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+R(n,e).join(", ")+"))";case"[object Array]":return"["+R(n,e).concat(r(e,z((function(e){return/^\d+$/.test(e)}),_(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):F(C(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":F(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,_(e)).join(", ")+"}"}}var J=s((function(e){return H(e,[])})),U=i((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=J(e),o=n(i,J(t));return void 0!==o&&o===i?e:t})),G=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),K=i(f(["fantasy-land/map","map"],(function(e){return function(t){return new G(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return c(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return D((function(n,r){return n[r]=e(t[r]),n}),{},_(t));default:return R(e,t)}})));const W=Number.isInteger||function(e){return(e|0)===e};function X(e){return"[object String]"===Object.prototype.toString.call(e)}function Y(e,t){var n=e<0?t.length+e:e;return X(t)?t.charAt(n):t[n]}var Z=i((function(e,t){if(null!=t)return W(e)?Y(e,t):t[e]})),Q=i((function(e,t){return K(Z(e),t)})),ee=s((function(e){return!!l(e)||!!e&&("object"==typeof e&&(!X(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),te="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ne(e,t,n){return function(r,s,i){if(ee(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[te])return n(r,s,i[te]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function re(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}var se=i((function(e,t){return o(e.length,(function(){return e.apply(t,arguments)}))}));function ie(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function oe(e,t,n,r){return e["@@transducer/result"](n[r](se(e["@@transducer/step"],e),t))}var ae=ne(re,oe,ie),ce=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}();var ue=u((function(e,t,n){return ae("function"==typeof e?new ce(e):e,t,n)})),le=s((function(e){return c(ue(U,0,Q("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),fe=s((function(e){return function(){return e}})),pe=i((function(e,t){return e&&t})),me=s((function(e){return c(ue(U,0,Q("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function he(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function de(e,t,n,r){return n[r](e,t)}var ye=ne(D,de,he),ge=i((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(n){return e(n)(t(n))}:ye((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,K(n,t))}),[],e)})),ve=i((function(e,t){return e.apply(this,t)})),be=s((function(e){return c(e.length,e)})),Ee=s((function(e){return null==e}));function we(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var je=i((function(e,t){var n=c(e,t);return c(e,(function(){return D(ge,K(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Oe=s((function(e){return je(e.length,e)})),Pe=i((function(e,t){return we(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Oe(pe)(e,t)}));var Se=s((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})),xe=Oe(s((function(e){return!e})));function Ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function _e(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return l(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var ke=u(_e("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),Ie=s(_e("tail",ke(1,1/0)));function Me(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return o(arguments[0].length,ue(Ae,arguments[0],Ie(arguments)))}var $e=s((function(e){return Y(0,e)})),Te=i((function(e,t){return null==t||t!=t?e:t})),Re=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Fe(e,!0,this)},e.prototype.has=function(e){return Fe(e,!1,this)},e}();function Fe(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!T(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!T(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}var Ne=i((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new Re,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n})),Ce=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?p(n):n},e}();function De(e){return function(t){return new Ce(e,t)}}var qe=i(f(["take"],De,(function(e,t){return ke(0,e<0?1/0:e,t)}))),Le=s((function(e){return Y(-1,e)})),Ve=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=h,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}();function Be(e){return function(t){return new Ve(e,t)}}var ze=i(f(["dropWhile"],Be,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ke(n,1/0,t)}))),He=i((function(e,t){return e||t})),Je=i((function(e,t){return we(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Oe(He)(e,t)}));var Ue=s((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():l(e)?[]:X(e)?"":q(e)?{}:O(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})),Ge=s((function(e){return c(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),Ke=i((function(e,t){if(0===e.length||Ee(t))return!1;for(var n=t,r=0;r<e.length;){if(Ee(n)||!E(e[r],n))return!1;n=n[e[r]],r+=1}return!0})),We=i((function(e,t){return Ke([e],t)})),Xe=function(e,t){switch(arguments.length){case 0:return Xe;case 1:return function t(n){return 0===arguments.length?t:w(e,n)};default:return w(e,t)}},Ye=u((function(e,t,n){return c(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))})),Ze=i(T),Qe=ke(0,-1),et=i((function(e,t){return c(e+1,(function(){var n=arguments[e];if(null!=n&&we(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(J(n)+' does not have a method named "'+t+'"')}))})),tt=s((function(e){return null!=e&&$(e,Ue(e))})),nt=s((function(e){return!tt(e)})),rt=et(1,"join");function st(e){return"[object Number]"===Object.prototype.toString.call(e)}function it(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var s=e[r];n=W(s)?Y(s,n):n[s]}return n}var ot=i((function(e,t){return D((function(n,r){return n[r]=e(t[r],r,t),n}),{},_(t))})),at=u((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})E(r,t)&&(s[r]=E(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)E(r,n)&&!E(r,s)&&(s[r]=n[r]);return s})),ct=u((function e(t,n,r){return at((function(n,r,s){return q(r)&&q(s)?e(t,r,s):t(n,r,s)}),n,r)})),ut=i((function(e,t){return ct((function(e,t,n){return n}),e,t)})),lt=i(it),ft=u((function(e,t,n){return e(it(t,n))})),pt=i((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),mt=u((function(e,t,n){return Te(e,Z(t,n))})),ht=u((function(e,t,n){return e(Z(t,n))})),dt=i((function(e,t){if(!st(e)||!st(t))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,s=0;s<r;)n[s]=s+e,s+=1;return n})),yt=s(p),gt=i((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),vt=et(1,"split"),bt=i((function(e,t){return $(qe(e.length,t),e)}));var Et=i((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+J(e));var n;return function(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":""))}(e).test(t)})),wt=fe(void 0),jt=$(wt()),Ot=$(null),Pt=xe(Ot),St=xe(Ee),xt=c(1,Me(k,Xe("GeneratorFunction"))),At=c(1,Me(k,Xe("AsyncFunction"))),_t=me([Me(k,Xe("Function")),xt,At]),kt=c(1,_t(Array.isArray)?Array.isArray:Me(k,Xe("Array"))),It=Pe(kt,tt),Mt=Pe(kt,nt),$t=c(1,Me(k,Xe("String")));function Tt(e){return Tt="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},Tt(e)}var Rt=function(e){return"object"===Tt(e)},Ft=xe(c(1,Pe(Pt,Je(Rt,_t)))),Nt=le([$t,Ft,nt]),Ct=xe(_t),Dt=c(1,Pe(Pt,Rt)),qt=Me(k,Xe("Object")),Lt=Me(J,$(J(Object))),Vt=ft(Pe(_t,Lt),["constructor"]),Bt=c(1,(function(e){if(!Dt(e)||!qt(e))return!1;var t=Object.getPrototypeOf(e);return!!Ot(t)||Vt(t)}));function zt(e){return function(e){if(Array.isArray(e))return Ht(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 Ht(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(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.")}()}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Jt=Me(gt(Se((function(e,t){return e.length>t.length}))),$e,Z("length")),Ut=be((function(e,t,n){var r=n.apply(void 0,zt(e));return St(r)?yt(r):t})),Gt=Ye(Mt,(function(e){var t=Jt(e);return c(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ue(Ut(n),void 0,e)}))}),wt),Kt=Ge(Ze),Wt=c(3,(function(e,t,n){var r=lt(e,n),s=lt(Qe(e),n);if(!Ct(r)&&!It(e)){var i=se(r,s);return ve(i,t)}})),Xt=be((function(e,t){return Me(vt(""),ze(Kt(e)),rt(""))(t)})),Yt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qt,en,tn,nn,rn,sn,on,an,cn,un,ln,fn,pn,mn,hn,dn,yn,gn,vn,bn,En,wn,jn,On,Pn,Sn,xn,An,_n,kn,In,Mn,$n,Tn,Rn,Fn,Nn,Cn,Dn,qn,Ln,Vn,Bn,zn,Hn,Jn,Un,Gn,Kn,Wn,Xn,Yn,Zn,Qn,er,tr,nr,rr,sr,ir,or,ar,cr,ur,lr,fr,pr,mr,hr,dr,yr,gr,vr,br,Er,wr,jr,Or,Pr,Sr,xr,Ar,_r,kr,Ir,Mr,$r,Tr,Rr,Fr,Nr,Cr,Dr,qr,Lr,Vr,Br,zr,Hr,Jr,Ur,Gr,Kr,Wr,Xr,Yr,Zr,Qr,es,ts,ns,rs,ss,is,os,as,cs,us,ls,fs,ps,ms,hs,ds,ys,gs,vs,bs,Es,ws,js,Os,Ps,Ss,xs,As,_s,ks,Is={};function Ms(){if(nn)return tn;nn=1;var e="object"==typeof Yt&&Yt&&Yt.Object===Object&&Yt;return tn=e}function $s(){if(sn)return rn;sn=1;var e=Ms(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return rn=n}function Ts(){if(an)return on;an=1;var e=$s().Symbol;return on=e}function Rs(){if(mn)return pn;mn=1;var e=Ts(),t=function(){if(un)return cn;un=1;var e=Ts(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,s=e?e.toStringTag:void 0;return cn=function(e){var t=n.call(e,s),i=e[s];try{e[s]=void 0;var o=!0}catch(e){}var a=r.call(e);return o&&(t?e[s]=i:delete e[s]),a}}(),n=function(){if(fn)return ln;fn=1;var e=Object.prototype.toString;return ln=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return pn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Fs(){if(dn)return hn;dn=1;var e=Array.isArray;return hn=e}function Ns(){if(gn)return yn;return gn=1,yn=function(e){return null!=e&&"object"==typeof e}}function Cs(){if(Sn)return Pn;return Sn=1,Pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Pn}function Ds(){if(An)return xn;An=1;return xn=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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}},xn}function qs(){if(Mn)return In;return Mn=1,In=function(e,t){return e===t||e!=e&&t!=t}}function Ls(){if(Tn)return $n;Tn=1;var e=qs();return $n=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function Vs(){if(zn)return Bn;zn=1;var e=kn?_n:(kn=1,_n=function(){this.__data__=[],this.size=0}),t=function(){if(Fn)return Rn;Fn=1;var e=Ls(),t=Array.prototype.splice;return Rn=function(n){var r=this.__data__,s=e(r,n);return!(s<0||(s==r.length-1?r.pop():t.call(r,s,1),--this.size,0))}}(),n=function(){if(Cn)return Nn;Cn=1;var e=Ls();return Nn=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(qn)return Dn;qn=1;var e=Ls();return Dn=function(t){return e(this.__data__,t)>-1}}(),s=function(){if(Vn)return Ln;Vn=1;var e=Ls();return Ln=function(t,n){var r=this.__data__,s=e(r,t);return s<0?(++this.size,r.push([t,n])):r[s][1]=n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=s,Bn=i}function Bs(){if(Qn)return Zn;Qn=1;var e=Rs(),t=Cs();return Zn=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function zs(){if(rr)return nr;rr=1;var e=function(){if(tr)return er;tr=1;var e=$s()["__core-js_shared__"];return er=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return nr=function(e){return!!t&&t in e}}function Hs(){if(ir)return sr;ir=1;var e=Function.prototype.toString;return sr=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function Js(){if(fr)return lr;fr=1;var e=function(){if(ar)return or;ar=1;var e=Bs(),t=zs(),n=Cs(),r=Hs(),s=/^\[object .+?Constructor\]$/,i=Function.prototype,o=Object.prototype,a=i.toString,c=o.hasOwnProperty,u=RegExp("^"+a.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return or=function(i){return!(!n(i)||t(i))&&(e(i)?u:s).test(r(i))}}(),t=ur?cr:(ur=1,cr=function(e,t){return null==e?void 0:e[t]});return lr=function(n,r){var s=t(n,r);return e(s)?s:void 0}}function Us(){if(mr)return pr;mr=1;var e=Js()($s(),"Map");return pr=e}function Gs(){if(dr)return hr;dr=1;var e=Js()(Object,"create");return hr=e}function Ks(){if(Ar)return xr;Ar=1;var e=function(){if(gr)return yr;gr=1;var e=Gs();return yr=function(){this.__data__=e?e(null):{},this.size=0}}(),t=br?vr:(br=1,vr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(wr)return Er;wr=1;var e=Gs(),t=Object.prototype.hasOwnProperty;return Er=function(n){var r=this.__data__;if(e){var s=r[n];return"__lodash_hash_undefined__"===s?void 0:s}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(Or)return jr;Or=1;var e=Gs(),t=Object.prototype.hasOwnProperty;return jr=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),s=function(){if(Sr)return Pr;Sr=1;var e=Gs();return Pr=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=s,xr=i}function Ws(){if(Tr)return $r;Tr=1;var e=(Mr||(Mr=1,Ir=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),Ir);return $r=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},$r}function Xs(){if(zr)return Br;zr=1;var e=function(){if(kr)return _r;kr=1;var e=Ks(),t=Vs(),n=Us();return _r=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Fr)return Rr;Fr=1;var e=Ws();return Rr=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Cr)return Nr;Cr=1;var e=Ws();return Nr=function(t){return e(this,t).get(t)}}(),r=function(){if(qr)return Dr;qr=1;var e=Ws();return Dr=function(t){return e(this,t).has(t)}}(),s=function(){if(Vr)return Lr;Vr=1;var e=Ws();return Lr=function(t,n){var r=e(this,t),s=r.size;return r.set(t,n),this.size+=r.size==s?0:1,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=s,Br=i}function Ys(){if(Gr)return Ur;Gr=1;var e=Vs(),t=function(){if(Jn)return Hn;Jn=1;var e=Vs();return Hn=function(){this.__data__=new e,this.size=0}}(),n=Gn?Un:(Gn=1,Un=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Wn?Kn:(Wn=1,Kn=function(e){return this.__data__.get(e)}),s=Yn?Xn:(Yn=1,Xn=function(e){return this.__data__.has(e)}),i=function(){if(Jr)return Hr;Jr=1;var e=Vs(),t=Us(),n=Xs();return Hr=function(r,s){var i=this.__data__;if(i instanceof e){var o=i.__data__;if(!t||o.length<199)return o.push([r,s]),this.size=++i.size,this;i=this.__data__=new n(o)}return i.set(r,s),this.size=i.size,this}}();function o(t){var n=this.__data__=new e(t);this.size=n.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=s,o.prototype.set=i,Ur=o}function Zs(){if(Qr)return Zr;Qr=1;var e=Xs(),t=Wr?Kr:(Wr=1,Kr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Yr?Xr:(Yr=1,Xr=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Zr=r}function Qs(){if(is)return ss;is=1;var e=Zs(),t=ts?es:(ts=1,es=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=rs?ns:(rs=1,ns=function(e,t){return e.has(t)});return ss=function(r,s,i,o,a,c){var u=1&i,l=r.length,f=s.length;if(l!=f&&!(u&&f>l))return!1;var p=c.get(r),m=c.get(s);if(p&&m)return p==s&&m==r;var h=-1,d=!0,y=2&i?new e:void 0;for(c.set(r,s),c.set(s,r);++h<l;){var g=r[h],v=s[h];if(o)var b=u?o(v,g,h,s,r,c):o(g,v,h,r,s,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!t(s,(function(e,t){if(!n(y,t)&&(g===e||a(g,e,i,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,i,o,c)){d=!1;break}}return c.delete(r),c.delete(s),d}}function ei(){if(ms)return ps;ms=1;var e=Ts(),t=function(){if(as)return os;as=1;var e=$s().Uint8Array;return os=e}(),n=qs(),r=Qs(),s=(us||(us=1,cs=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}),cs),i=fs?ls:(fs=1,ls=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}),o=e?e.prototype:void 0,a=o?o.valueOf:void 0;return ps=function(e,o,c,u,l,f,p){switch(c){case"[object DataView]":if(e.byteLength!=o.byteLength||e.byteOffset!=o.byteOffset)return!1;e=e.buffer,o=o.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=o.byteLength||!f(new t(e),new t(o)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+o);case"[object Error]":return e.name==o.name&&e.message==o.message;case"[object RegExp]":case"[object String]":return e==o+"";case"[object Map]":var m=s;case"[object Set]":var h=1&u;if(m||(m=i),e.size!=o.size&&!h)return!1;var d=p.get(e);if(d)return d==o;u|=2,p.set(e,o);var y=r(m(e),m(o),u,l,f,p);return p.delete(e),y;case"[object Symbol]":if(a)return a.call(e)==a.call(o)}return!1}}function ti(){if(gs)return ys;gs=1;var e=ds?hs:(ds=1,hs=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}),t=Fs();return ys=function(n,r,s){var i=r(n);return t(n)?i:e(i,s(n))}}function ni(){if(Os)return js;Os=1;var e=bs?vs:(bs=1,vs=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}),t=ws?Es:(ws=1,Es=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return js=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function ri(){if(ks)return _s;ks=1;var e=function(){if(As)return xs;As=1;var e=Rs(),t=Ns();return xs=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Ns(),n=Object.prototype,r=n.hasOwnProperty,s=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!s.call(e,"callee")};return _s=i}var si,ii,oi,ai,ci,ui,li,fi,pi,mi,hi,di={exports:{}};function yi(){return oi||(oi=1,function(e,t){var n=$s(),r=ii?si:(ii=1,si=function(){return!1}),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s?n.Buffer:void 0,a=(o?o.isBuffer:void 0)||r;e.exports=a}(di,di.exports)),di.exports}function gi(){if(li)return ui;li=1;return ui=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}var vi,bi,Ei,wi,ji,Oi,Pi,Si,xi,Ai,_i,ki,Ii,Mi,$i,Ti,Ri,Fi,Ni,Ci,Di,qi,Li,Vi,Bi,zi,Hi,Ji,Ui,Gi,Ki,Wi,Xi,Yi,Zi,Qi,eo,to,no,ro,so,io,oo,ao,co,uo,lo,fo,po,mo,ho,yo,go,vo,bo,Eo,wo,jo,Oo,Po,So,xo,Ao,_o,ko,Io,Mo,$o,To,Ro,Fo,No,Co={exports:{}};function Do(){if(Ei)return bi;Ei=1;var e=function(){if(pi)return fi;pi=1;var e=Rs(),t=gi(),n=Ns(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,fi=function(s){return n(s)&&t(s.length)&&!!r[e(s)]}}(),t=hi?mi:(hi=1,mi=function(e){return function(t){return e(t)}}),n=(vi||(vi=1,function(e,t){var n=Ms(),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,i=s&&s.exports===r&&n.process,o=function(){try{return s&&s.require&&s.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(Co,Co.exports)),Co.exports),r=n&&n.isTypedArray,s=r?t(r):e;return bi=s}function qo(){if(ji)return wi;ji=1;var e=Ss?Ps:(Ss=1,Ps=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),t=ri(),n=Fs(),r=yi(),s=function(){if(ci)return ai;ci=1;var e=/^(?:0|[1-9]\d*)$/;return ai=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},ai}(),i=Do(),o=Object.prototype.hasOwnProperty;return wi=function(a,c){var u=n(a),l=!u&&t(a),f=!u&&!l&&r(a),p=!u&&!l&&!f&&i(a),m=u||l||f||p,h=m?e(a.length,String):[],d=h.length;for(var y in a)!c&&!o.call(a,y)||m&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,d))||h.push(y);return h}}function Lo(){if(_i)return Ai;_i=1;var e=(xi?Si:(xi=1,Si=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return Ai=e}function Vo(){if(Ii)return ki;Ii=1;var e=function(){if(Pi)return Oi;Pi=1;var e=Object.prototype;return Oi=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}(),t=Lo(),n=Object.prototype.hasOwnProperty;return ki=function(r){if(!e(r))return t(r);var s=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&s.push(i);return s}}function Bo(){if(Ri)return Ti;Ri=1;var e=qo(),t=Vo(),n=function(){if($i)return Mi;$i=1;var e=Bs(),t=gi();return Mi=function(n){return null!=n&&t(n.length)&&!e(n)}}();return Ti=function(r){return n(r)?e(r):t(r)}}function zo(){if(Di)return Ci;Di=1;var e=function(){if(Ni)return Fi;Ni=1;var e=ti(),t=ni(),n=Bo();return Fi=function(r){return e(r,n,t)}}(),t=Object.prototype.hasOwnProperty;return Ci=function(n,r,s,i,o,a){var c=1&s,u=e(n),l=u.length;if(l!=e(r).length&&!c)return!1;for(var f=l;f--;){var p=u[f];if(!(c?p in r:t.call(r,p)))return!1}var m=a.get(n),h=a.get(r);if(m&&h)return m==r&&h==n;var d=!0;a.set(n,r),a.set(r,n);for(var y=c;++f<l;){var g=n[p=u[f]],v=r[p];if(i)var b=c?i(v,g,p,r,n,a):i(g,v,p,n,r,a);if(!(void 0===b?g===v||o(g,v,s,i,a):b)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var E=n.constructor,w=r.constructor;E==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(n),a.delete(r),d}}function Ho(){if(Ki)return Gi;Ki=1;var e=function(){if(Li)return qi;Li=1;var e=Js()($s(),"DataView");return qi=e}(),t=Us(),n=function(){if(Bi)return Vi;Bi=1;var e=Js()($s(),"Promise");return Vi=e}(),r=function(){if(Hi)return zi;Hi=1;var e=Js()($s(),"Set");return zi=e}(),s=function(){if(Ui)return Ji;Ui=1;var e=Js()($s(),"WeakMap");return Ji=e}(),i=Rs(),o=Hs(),a="[object Map]",c="[object Promise]",u="[object Set]",l="[object WeakMap]",f="[object DataView]",p=o(e),m=o(t),h=o(n),d=o(r),y=o(s),g=i;return(e&&g(new e(new ArrayBuffer(1)))!=f||t&&g(new t)!=a||n&&g(n.resolve())!=c||r&&g(new r)!=u||s&&g(new s)!=l)&&(g=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?o(n):"";if(r)switch(r){case p:return f;case m:return a;case h:return c;case d:return u;case y:return l}return t}),Gi=g}function Jo(){if(Zi)return Yi;Zi=1;var e=function(){if(Xi)return Wi;Xi=1;var e=Ys(),t=Qs(),n=ei(),r=zo(),s=Ho(),i=Fs(),o=yi(),a=Do(),c="[object Arguments]",u="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return Wi=function(p,m,h,d,y,g){var v=i(p),b=i(m),E=v?u:s(p),w=b?u:s(m),j=(E=E==c?l:E)==l,O=(w=w==c?l:w)==l,P=E==w;if(P&&o(p)){if(!o(m))return!1;v=!0,j=!1}if(P&&!j)return g||(g=new e),v||a(p)?t(p,m,h,d,y,g):n(p,m,E,h,d,y,g);if(!(1&h)){var S=j&&f.call(p,"__wrapped__"),x=O&&f.call(m,"__wrapped__");if(S||x){var A=S?p.value():p,_=x?m.value():m;return g||(g=new e),y(A,_,h,d,g)}}return!!P&&(g||(g=new e),r(p,m,h,d,y,g))}}(),t=Ns();return Yi=function n(r,s,i,o,a){return r===s||(null==r||null==s||!t(r)&&!t(s)?r!=r&&s!=s:e(r,s,i,o,n,a))},Yi}function Uo(){if(no)return to;no=1;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}}return to=e}function Go(){if(so)return ro;so=1;return ro=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)}},ro}function Ko(){if(oo)return io;oo=1;const e=Go();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class n{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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,r){return e=t(e),new n(this.elements.filter(e,r))}reject(r,s){return r=t(r),new n(this.elements.filter(e(r),s))}find(e,n){return e=t(e),this.elements.find(e,n)}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]}}return"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),io=n}function Wo(){if(co)return ao;co=1;const e=function(){if(eo)return Qi;eo=1;var e=Jo();return Qi=function(t,n){return e(t,n)}}(),t=Uo(),n=Ko();class r{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),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 r?this.content.toValue():this.content instanceof t?{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 r=e.pop();let s=new n;const i=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===r&&e.push(n);const s=n.findRecursive(r);return s&&s.reduce(i,e),n.content instanceof t&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),s}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}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(e){if(e instanceof r)this._content=e;else if(e instanceof n)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof t)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}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 n;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new n(this.content);if(this.content instanceof t){const e=new n([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof r?new n([this.content]):new n}get recursiveChildren(){const e=new n;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return ao=r}function Xo(){if(bo)return vo;bo=1;const e=Go(),t=Wo(),n=Ko();class r extends t{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new n(this.content.filter(e,t))}reject(t,n){return this.filter(e(t),n)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}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 n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new n(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)}}return r.empty=function(){return new this},r["fantasy-land/empty"]=r.empty,"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),vo=r}function Yo(){if(wo)return Eo;wo=1;const e=Uo(),t=Wo();return Eo=class extends t{constructor(t,n,r,s){super(new e,r,s),this.element="member",this.key=t,this.value=n}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)}}}function Zo(){if(Oo)return jo;Oo=1;const e=Go(),t=Ko();class n extends t{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new n(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(t,n){return this.filter(e(t.bind(n)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return jo=n}function Qo(){if(Mo)return Io;Mo=1;const e=Wo(),t=function(){if(lo)return uo;lo=1;const e=Wo();return uo=class extends e{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),n=function(){if(po)return fo;po=1;const e=Wo();return fo=class extends e{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),r=function(){if(ho)return mo;ho=1;const e=Wo();return mo=class extends e{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}}(),s=function(){if(go)return yo;go=1;const e=Wo();return yo=class extends e{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}}(),i=Xo(),o=Yo(),a=function(){if(So)return Po;So=1;const e=Go(),t=Cs(),n=Xo(),r=Yo(),s=Zo();return Po=class extends n{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,n){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,i=this.getMember(s);return i?i.value=n:this.content.push(new r(s,n)),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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new s(this.content).filter(e,t)}reject(t,n){return this.filter(e(t),n)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}}(),c=function(){if(Ao)return xo;Ao=1;const e=Wo();return xo=class extends e{constructor(e,t,n){super(e||[],t,n),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)}}}(),u=function(){if(ko)return _o;ko=1;const e=Wo();return _o=class extends e{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}}(),l=Ko(),f=Zo(),p=Uo();function m(o){if(o instanceof e)return o;if("string"==typeof o)return new n(o);if("number"==typeof o)return new r(o);if("boolean"==typeof o)return new s(o);if(null===o)return new t;if(Array.isArray(o))return new i(o.map(m));if("object"==typeof o){return new a(o)}return o}return e.prototype.ObjectElement=a,e.prototype.RefElement=u,e.prototype.MemberElement=o,e.prototype.refract=m,l.prototype.refract=m,Io={Element:e,NullElement:t,StringElement:n,NumberElement:r,BooleanElement:s,ArrayElement:i,MemberElement:o,ObjectElement:a,LinkElement:c,RefElement:u,refract:m,ArraySlice:l,ObjectSlice:f,KeyValuePair:p}}function ea(){if(To)return $o;To=1;const e=en?Qt:(en=1,Qt=function(e){return null===e}),t=function(){if(bn)return vn;bn=1;var e=Rs(),t=Fs(),n=Ns();return vn=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),n=function(){if(wn)return En;wn=1;var e=Rs(),t=Ns();return En=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}(),r=function(){if(On)return jn;On=1;var e=Rs(),t=Ns();return jn=function(n){return!0===n||!1===n||t(n)&&"[object Boolean]"==e(n)}}(),s=Cs(),i=Ds(),o=Qo();class a{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=o.Element,this.KeyValuePair=o.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",o.NullElement).register("string",o.StringElement).register("number",o.NumberElement).register("boolean",o.BooleanElement).register("array",o.ArrayElement).register("object",o.ObjectElement).register("member",o.MemberElement).register("ref",o.RefElement).register("link",o.LinkElement),this.detect(e,o.NullElement,!1).detect(t,o.StringElement,!1).detect(n,o.NumberElement,!1).detect(r,o.BooleanElement,!1).detect(Array.isArray,o.ArrayElement,!1).detect(s,o.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,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(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 i(this)}}return i.prototype.Namespace=a,$o=a}var ta=function(){if(No)return Is;No=1;const e=ea(),t=Qo();return Is.Namespace=e,Is.namespace=function(t){return new e(t)},Is.KeyValuePair=Uo(),Is.ArraySlice=t.ArraySlice,Is.ObjectSlice=t.ObjectSlice,Is.Element=t.Element,Is.StringElement=t.StringElement,Is.NumberElement=t.NumberElement,Is.BooleanElement=t.BooleanElement,Is.NullElement=t.NullElement,Is.ArrayElement=t.ArrayElement,Is.ObjectElement=t.ObjectElement,Is.MemberElement=t.MemberElement,Is.RefElement=t.RefElement,Is.LinkElement=t.LinkElement,Is.refract=t.refract,Is.JSONSerialiser=Ds(),Is.JSON06Serialiser=function(){if(Fo)return Ro;Fo=1;const e=Ds();return Ro=class extends e{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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}return e&&e.map?e.map(this.serialise,this):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}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}}(),Is}();class na extends ta.StringElement{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class ra extends ta.StringElement{constructor(e,t,n){super(e,t,n),this.element="comment"}}class sa extends ta.ArrayElement{constructor(e,t,n){super(e,t,n),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(jt(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const ia=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],oa=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,aa=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),ca=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ta.ArrayElement)&&t.classes.includes(e),ua=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,la=e=>e({hasMethod:ia,hasBasicElementProps:oa,primitiveEq:aa,isElementType:ua,hasClass:ca}),fa=la((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ta.Element||e(n)&&t(void 0,n))),pa=la((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ta.StringElement||e(n)&&t("string",n))),ma=la((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ta.NumberElement||e(n)&&t("number",n))),ha=la((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ta.NullElement||e(n)&&t("null",n))),da=la((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ta.BooleanElement||e(n)&&t("boolean",n))),ya=la((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ta.ObjectElement||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),ga=la((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ta.ArrayElement&&!(r instanceof ta.ObjectElement)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),va=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ta.MemberElement||e(r)&&t("member",r)&&n(void 0,r))),ba=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ta.LinkElement||e(r)&&t("link",r)&&n(void 0,r))),Ea=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ta.RefElement||e(r)&&t("ref",r)&&n(void 0,r))),wa=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof na||e(r)&&t("annotation",r)&&n("array",r))),ja=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ra||e(r)&&t("comment",r)&&n("string",r))),Oa=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sa||e(r)&&t("parseResult",r)&&n("array",r))),Pa=e=>!!fa(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),Sa=(e,t)=>0===e.length||g(Kt(t.classes.toValue()),e),xa=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Pa,includesClasses:Sa,includesSymbols:(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!ga(n)&&g(Kt(n.toValue()),e)},isAnnotationElement:wa,isArrayElement:ga,isBooleanElement:da,isCommentElement:ja,isElement:fa,isLinkElement:ba,isMemberElement:va,isNullElement:ha,isNumberElement:ma,isObjectElement:ya,isParseResultElement:Oa,isPrimitiveElement:e=>ua("object",e)||ua("array",e)||ua("boolean",e)||ua("number",e)||ua("string",e)||ua("null",e)||ua("member",e),isRefElement:Ea,isStringElement:pa},Symbol.toStringTag,{value:"Module"}));class Aa extends ta.Namespace{constructor(){super(),this.register("annotation",na),this.register("comment",ra),this.register("parseResult",sa)}}const _a=new Aa,ka=e=>{const t=new Aa;return Bt(e)&&t.use(e),t},Ia=()=>({predicates:{...xa},namespace:_a});var Ma,$a,Ta,Ra,Fa,Na,Ca,Da,qa,La,Va,Ba,za,Ha,Ja,Ua,Ga={},Ka={},Wa={};function Xa(){if($a)return Ma;$a=1;var e=function(e){return e&&e.Math===Math&&e};return Ma=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Yt&&Yt)||e("object"==typeof Ma&&Ma)||function(){return this}()||Function("return this")()}function Ya(){return Ra?Ta:(Ra=1,Ta=function(e){try{return!!e()}catch(e){return!0}})}function Za(){return Na||(Na=1,Fa=!Ya()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))),Fa}function Qa(){if(Da)return Ca;Da=1;var e=Za(),t=Function.prototype,n=t.apply,r=t.call;return Ca="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Ca}function ec(){if(La)return qa;La=1;var e=Za(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return qa=e?r:function(e){return function(){return n.apply(e,arguments)}},qa}function tc(){if(Ba)return Va;Ba=1;var e=ec(),t=e({}.toString),n=e("".slice);return Va=function(e){return n(t(e),8,-1)}}function nc(){if(Ha)return za;Ha=1;var e=tc(),t=ec();return za=function(n){if("Function"===e(n))return t(n)}}function rc(){if(Ua)return Ja;Ua=1;var e="object"==typeof document&&document.all;return Ja=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var sc,ic,oc,ac,cc={};function uc(){return ic?sc:(ic=1,sc=!Ya()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function lc(){if(ac)return oc;ac=1;var e=Za(),t=Function.prototype.call;return oc=e?t.bind(t):function(){return t.apply(t,arguments)},oc}var fc,pc,mc,hc,dc,yc,gc,vc,bc,Ec,wc,jc,Oc,Pc,Sc,xc,Ac,_c,kc,Ic,Mc,$c,Tc,Rc,Fc,Nc,Cc,Dc,qc,Lc,Vc,Bc,zc,Hc,Jc,Uc,Gc,Kc={};function Wc(){if(fc)return Kc;fc=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Kc.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Kc}function Xc(){return mc?pc:(mc=1,pc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Yc(){if(dc)return hc;dc=1;var e=ec(),t=Ya(),n=tc(),r=Object,s=e("".split);return hc=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?s(e,""):r(e)}:r}function Zc(){return gc?yc:(gc=1,yc=function(e){return null==e})}function Qc(){if(bc)return vc;bc=1;var e=Zc(),t=TypeError;return vc=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function eu(){if(wc)return Ec;wc=1;var e=Yc(),t=Qc();return Ec=function(n){return e(t(n))}}function tu(){if(Oc)return jc;Oc=1;var e=rc();return jc=function(t){return"object"==typeof t?null!==t:e(t)}}function nu(){return Sc?Pc:(Sc=1,Pc={})}function ru(){if(Ac)return xc;Ac=1;var e=nu(),t=Xa(),n=rc(),r=function(e){return n(e)?e:void 0};return xc=function(n,s){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][s]||t[n]&&t[n][s]},xc}function su(){return kc?_c:(kc=1,_c=ec()({}.isPrototypeOf))}function iu(){if(Mc)return Ic;Mc=1;var e=Xa().navigator,t=e&&e.userAgent;return Ic=t?String(t):""}function ou(){if(Tc)return $c;Tc=1;var e,t,n=Xa(),r=iu(),s=n.process,i=n.Deno,o=s&&s.versions||i&&i.version,a=o&&o.v8;return a&&(t=(e=a.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),$c=t}function au(){if(Fc)return Rc;Fc=1;var e=ou(),t=Ya(),n=Xa().String;return Rc=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function cu(){return Cc?Nc:(Cc=1,Nc=au()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function uu(){if(qc)return Dc;qc=1;var e=ru(),t=rc(),n=su(),r=Object;return Dc=cu()?function(e){return"symbol"==typeof e}:function(s){var i=e("Symbol");return t(i)&&n(i.prototype,r(s))}}function lu(){if(Vc)return Lc;Vc=1;var e=String;return Lc=function(t){try{return e(t)}catch(e){return"Object"}}}function fu(){if(zc)return Bc;zc=1;var e=rc(),t=lu(),n=TypeError;return Bc=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function pu(){if(Jc)return Hc;Jc=1;var e=fu(),t=Zc();return Hc=function(n,r){var s=n[r];return t(s)?void 0:e(s)}}function mu(){if(Gc)return Uc;Gc=1;var e=lc(),t=rc(),n=tu(),r=TypeError;return Uc=function(s,i){var o,a;if("string"===i&&t(o=s.toString)&&!n(a=e(o,s)))return a;if(t(o=s.valueOf)&&!n(a=e(o,s)))return a;if("string"!==i&&t(o=s.toString)&&!n(a=e(o,s)))return a;throw new r("Can't convert object to primitive value")}}var hu,du,yu,gu,vu,bu,Eu,wu,ju,Ou,Pu,Su,xu,Au,_u,ku,Iu,Mu,$u,Tu,Ru,Fu,Nu,Cu,Du,qu,Lu,Vu,Bu={exports:{}};function zu(){return du?hu:(du=1,hu=!0)}function Hu(){if(gu)return yu;gu=1;var e=Xa(),t=Object.defineProperty;return yu=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Ju(){if(vu)return Bu.exports;vu=1;var e=zu(),t=Xa(),n=Hu(),r="__core-js_shared__",s=Bu.exports=t[r]||n(r,{});return(s.versions||(s.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Bu.exports}function Uu(){if(Eu)return bu;Eu=1;var e=Ju();return bu=function(t,n){return e[t]||(e[t]=n||{})}}function Gu(){if(ju)return wu;ju=1;var e=Qc(),t=Object;return wu=function(n){return t(e(n))}}function Ku(){if(Pu)return Ou;Pu=1;var e=ec(),t=Gu(),n=e({}.hasOwnProperty);return Ou=Object.hasOwn||function(e,r){return n(t(e),r)}}function Wu(){if(xu)return Su;xu=1;var e=ec(),t=0,n=Math.random(),r=e(1..toString);return Su=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Xu(){if(_u)return Au;_u=1;var e=Xa(),t=Uu(),n=Ku(),r=Wu(),s=au(),i=cu(),o=e.Symbol,a=t("wks"),c=i?o.for||o:o&&o.withoutSetter||r;return Au=function(e){return n(a,e)||(a[e]=s&&n(o,e)?o[e]:c("Symbol."+e)),a[e]}}function Yu(){if(Iu)return ku;Iu=1;var e=lc(),t=tu(),n=uu(),r=pu(),s=mu(),i=TypeError,o=Xu()("toPrimitive");return ku=function(a,c){if(!t(a)||n(a))return a;var u,l=r(a,o);if(l){if(void 0===c&&(c="default"),u=e(l,a,c),!t(u)||n(u))return u;throw new i("Can't convert object to primitive value")}return void 0===c&&(c="number"),s(a,c)}}function Zu(){if($u)return Mu;$u=1;var e=Yu(),t=uu();return Mu=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Qu(){if(Ru)return Tu;Ru=1;var e=Xa(),t=tu(),n=e.document,r=t(n)&&t(n.createElement);return Tu=function(e){return r?n.createElement(e):{}}}function el(){if(Nu)return Fu;Nu=1;var e=uc(),t=Ya(),n=Qu();return Fu=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function tl(){if(Cu)return cc;Cu=1;var e=uc(),t=lc(),n=Wc(),r=Xc(),s=eu(),i=Zu(),o=Ku(),a=el(),c=Object.getOwnPropertyDescriptor;return cc.f=e?c:function(e,u){if(e=s(e),u=i(u),a)try{return c(e,u)}catch(e){}if(o(e,u))return r(!t(n.f,e,u),e[u])},cc}function nl(){if(qu)return Du;qu=1;var e=Ya(),t=rc(),n=/#|\.prototype\./,r=function(n,r){var c=i[s(n)];return c===a||c!==o&&(t(r)?e(r):!!r)},s=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},o=r.NATIVE="N",a=r.POLYFILL="P";return Du=r}function rl(){if(Vu)return Lu;Vu=1;var e=nc(),t=fu(),n=Za(),r=e(e.bind);return Lu=function(e,s){return t(e),void 0===s?e:n?r(e,s):function(){return e.apply(s,arguments)}},Lu}var sl,il,ol,al,cl,ul,ll,fl,pl,ml,hl,dl,yl,gl,vl,bl,El,wl,jl,Ol,Pl,Sl,xl,Al={};function _l(){return il?sl:(il=1,sl=uc()&&Ya()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function kl(){if(al)return ol;al=1;var e=tu(),t=String,n=TypeError;return ol=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function Il(){if(cl)return Al;cl=1;var e=uc(),t=el(),n=_l(),r=kl(),s=Zu(),i=TypeError,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",l="writable";return Al.f=e?n?function(e,t,n){if(r(e),t=s(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var i=a(e,t);i&&i[l]&&(e[t]=n.value,n={configurable:u in n?n[u]:i[u],enumerable:c in n?n[c]:i[c],writable:!1})}return o(e,t,n)}:o:function(e,n,a){if(r(e),n=s(n),r(a),t)try{return o(e,n,a)}catch(e){}if("get"in a||"set"in a)throw new i("Accessors not supported");return"value"in a&&(e[n]=a.value),e},Al}function Ml(){if(ll)return ul;ll=1;var e=uc(),t=Il(),n=Xc();return ul=e?function(e,r,s){return t.f(e,r,n(1,s))}:function(e,t,n){return e[t]=n,e}}function $l(){if(pl)return fl;pl=1;var e=Xa(),t=Qa(),n=nc(),r=rc(),s=tl().f,i=nl(),o=nu(),a=rl(),c=Ml(),u=Ku(),l=function(e){var n=function(r,s,i){if(this instanceof n){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,i)}return t(e,this,arguments)};return n.prototype=e.prototype,n};return fl=function(t,f){var p,m,h,d,y,g,v,b,E,w=t.target,j=t.global,O=t.stat,P=t.proto,S=j?e:O?e[w]:e[w]&&e[w].prototype,x=j?o:o[w]||c(o,w,{})[w],A=x.prototype;for(d in f)m=!(p=i(j?d:w+(O?".":"#")+d,t.forced))&&S&&u(S,d),g=x[d],m&&(v=t.dontCallGetSet?(E=s(S,d))&&E.value:S[d]),y=m&&v?v:f[d],(p||P||typeof g!=typeof y)&&(b=t.bind&&m?a(y,e):t.wrap&&m?l(y):P&&r(y)?n(y):y,(t.sham||y&&y.sham||g&&g.sham)&&c(b,"sham",!0),c(x,d,b),P&&(u(o,h=w+"Prototype")||c(o,h,{}),c(o[h],d,y),t.real&&A&&(p||!A[d])&&c(A,d,y)))}}function Tl(){if(hl)return ml;hl=1;var e=Uu(),t=Wu(),n=e("keys");return ml=function(e){return n[e]||(n[e]=t(e))}}function Rl(){return yl||(yl=1,dl=!Ya()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))),dl}function Fl(){if(vl)return gl;vl=1;var e=Ku(),t=rc(),n=Gu(),r=Tl(),s=Rl(),i=r("IE_PROTO"),o=Object,a=o.prototype;return gl=s?o.getPrototypeOf:function(r){var s=n(r);if(e(s,i))return s[i];var c=s.constructor;return t(c)&&s instanceof c?c.prototype:s instanceof o?a:null}}function Nl(){if(El)return bl;El=1;var e=ec(),t=fu();return bl=function(n,r,s){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[s]))}catch(e){}}}function Cl(){if(jl)return wl;jl=1;var e=tu();return wl=function(t){return e(t)||null===t}}function Dl(){if(Pl)return Ol;Pl=1;var e=Cl(),t=String,n=TypeError;return Ol=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function ql(){if(xl)return Sl;xl=1;var e=Nl(),t=tu(),n=Qc(),r=Dl();return Sl=Object.setPrototypeOf||("__proto__"in{}?function(){var s,i=!1,o={};try{(s=e(Object.prototype,"__proto__","set"))(o,[]),i=o instanceof Array}catch(e){}return function(e,o){return n(e),r(o),t(e)?(i?s(e,o):e.__proto__=o,e):e}}():void 0),Sl}var Ll,Vl,Bl,zl,Hl,Jl,Ul,Gl,Kl,Wl,Xl,Yl,Zl,Ql,ef,tf,nf,rf,sf,of={};function af(){if(Vl)return Ll;Vl=1;var e=Math.ceil,t=Math.floor;return Ll=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function cf(){if(zl)return Bl;zl=1;var e=af();return Bl=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function uf(){if(Jl)return Hl;Jl=1;var e=cf(),t=Math.max,n=Math.min;return Hl=function(r,s){var i=e(r);return i<0?t(i+s,0):n(i,s)}}function lf(){if(Gl)return Ul;Gl=1;var e=cf(),t=Math.min;return Ul=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function ff(){if(Wl)return Kl;Wl=1;var e=lf();return Kl=function(t){return e(t.length)}}function pf(){if(Yl)return Xl;Yl=1;var e=eu(),t=uf(),n=ff(),r=function(r){return function(s,i,o){var a=e(s),c=n(a);if(0===c)return!r&&-1;var u,l=t(o,c);if(r&&i!=i){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((r||l in a)&&a[l]===i)return r||l||0;return!r&&-1}};return Xl={includes:r(!0),indexOf:r(!1)}}function mf(){return Ql?Zl:(Ql=1,Zl={})}function hf(){if(tf)return ef;tf=1;var e=ec(),t=Ku(),n=eu(),r=pf().indexOf,s=mf(),i=e([].push);return ef=function(e,o){var a,c=n(e),u=0,l=[];for(a in c)!t(s,a)&&t(c,a)&&i(l,a);for(;o.length>u;)t(c,a=o[u++])&&(~r(l,a)||i(l,a));return l}}function df(){return rf?nf:(rf=1,nf=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function yf(){if(sf)return of;sf=1;var e=hf(),t=df().concat("length","prototype");return of.f=Object.getOwnPropertyNames||function(n){return e(n,t)},of}var gf,vf,bf,Ef,wf,jf={};function Of(){return gf||(gf=1,jf.f=Object.getOwnPropertySymbols),jf}function Pf(){if(bf)return vf;bf=1;var e=ru(),t=ec(),n=yf(),r=Of(),s=kl(),i=t([].concat);return vf=e("Reflect","ownKeys")||function(e){var t=n.f(s(e)),o=r.f;return o?i(t,o(e)):t},vf}function Sf(){if(wf)return Ef;wf=1;var e=Ku(),t=Pf(),n=tl(),r=Il();return Ef=function(s,i,o){for(var a=t(i),c=r.f,u=n.f,l=0;l<a.length;l++){var f=a[l];e(s,f)||o&&e(o,f)||c(s,f,u(i,f))}},Ef}var xf,Af,_f,kf,If,Mf,$f,Tf,Rf,Ff,Nf,Cf,Df,qf,Lf,Vf,Bf,zf,Hf,Jf,Uf,Gf,Kf,Wf,Xf,Yf,Zf,Qf,ep,tp,np,rp,sp,ip,op,ap,cp,up,lp={};function fp(){if(Af)return xf;Af=1;var e=hf(),t=df();return xf=Object.keys||function(n){return e(n,t)}}function pp(){if(_f)return lp;_f=1;var e=uc(),t=_l(),n=Il(),r=kl(),s=eu(),i=fp();return lp.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o,a=s(t),c=i(t),u=c.length,l=0;u>l;)n.f(e,o=c[l++],a[o]);return e},lp}function mp(){return If?kf:(If=1,kf=ru()("document","documentElement"))}function hp(){if($f)return Mf;$f=1;var e,t=kl(),n=pp(),r=df(),s=mf(),i=mp(),o=Qu(),a="prototype",c="script",u=Tl()("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},p=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,s;m="undefined"!=typeof document?document.domain&&e?p(e):(n=o("iframe"),s="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(s),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):p(e);for(var u=r.length;u--;)delete m[a][r[u]];return m()};return s[u]=!0,Mf=Object.create||function(e,r){var s;return null!==e?(l[a]=t(e),s=new l,l[a]=null,s[u]=e):s=m(),void 0===r?s:n.f(s,r)}}function dp(){if(Rf)return Tf;Rf=1;var e=tu(),t=Ml();return Tf=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)}}function yp(){if(Nf)return Ff;Nf=1;var e=Error,t=ec()("".replace),n=String(new e("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,s=r.test(n);return Ff=function(n,i){if(s&&"string"==typeof n&&!e.prepareStackTrace)for(;i--;)n=t(n,r,"");return n}}function gp(){if(Df)return Cf;Df=1;var e=Ya(),t=Xc();return Cf=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function vp(){if(Lf)return qf;Lf=1;var e=Ml(),t=yp(),n=gp(),r=Error.captureStackTrace;return qf=function(s,i,o,a){n&&(r?r(s,i):e(s,"stack",t(o,a)))}}function bp(){return Bf?Vf:(Bf=1,Vf={})}function Ep(){if(Hf)return zf;Hf=1;var e=Xu(),t=bp(),n=e("iterator"),r=Array.prototype;return zf=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function wp(){if(Uf)return Jf;Uf=1;var e={};return e[Xu()("toStringTag")]="z",Jf="[object z]"===String(e)}function jp(){if(Kf)return Gf;Kf=1;var e=wp(),t=rc(),n=tc(),r=Xu()("toStringTag"),s=Object,i="Arguments"===n(function(){return arguments}());return Gf=e?n:function(e){var o,a,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(o=s(e),r))?a:i?n(o):"Object"===(c=n(o))&&t(o.callee)?"Arguments":c}}function Op(){if(Xf)return Wf;Xf=1;var e=jp(),t=pu(),n=Zc(),r=bp(),s=Xu()("iterator");return Wf=function(i){if(!n(i))return t(i,s)||t(i,"@@iterator")||r[e(i)]}}function Pp(){if(Zf)return Yf;Zf=1;var e=lc(),t=fu(),n=kl(),r=lu(),s=Op(),i=TypeError;return Yf=function(o,a){var c=arguments.length<2?s(o):a;if(t(c))return n(e(c,o));throw new i(r(o)+" is not iterable")},Yf}function Sp(){if(ep)return Qf;ep=1;var e=lc(),t=kl(),n=pu();return Qf=function(r,s,i){var o,a;t(r);try{if(!(o=n(r,"return"))){if("throw"===s)throw i;return i}o=e(o,r)}catch(e){a=!0,o=e}if("throw"===s)throw i;if(a)throw o;return t(o),i}}function xp(){if(np)return tp;np=1;var e=rl(),t=lc(),n=kl(),r=lu(),s=Ep(),i=ff(),o=su(),a=Pp(),c=Op(),u=Sp(),l=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;return tp=function(m,h,d){var y,g,v,b,E,w,j,O=d&&d.that,P=!(!d||!d.AS_ENTRIES),S=!(!d||!d.IS_RECORD),x=!(!d||!d.IS_ITERATOR),A=!(!d||!d.INTERRUPTED),_=e(h,O),k=function(e){return y&&u(y,"normal",e),new f(!0,e)},I=function(e){return P?(n(e),A?_(e[0],e[1],k):_(e[0],e[1])):A?_(e,k):_(e)};if(S)y=m.iterator;else if(x)y=m;else{if(!(g=c(m)))throw new l(r(m)+" is not iterable");if(s(g)){for(v=0,b=i(m);b>v;v++)if((E=I(m[v]))&&o(p,E))return E;return new f(!1)}y=a(m,g)}for(w=S?m.next:y.next;!(j=t(w,y)).done;){try{E=I(j.value)}catch(e){u(y,"throw",e)}if("object"==typeof E&&E&&o(p,E))return E}return new f(!1)}}function Ap(){if(sp)return rp;sp=1;var e=jp(),t=String;return rp=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function _p(){if(op)return ip;op=1;var e=Ap();return ip=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},ip}function kp(){return cp||(cp=1,function(){if(ap)return Wa;ap=1;var e=$l(),t=su(),n=Fl(),r=ql(),s=Sf(),i=hp(),o=Ml(),a=Xc(),c=dp(),u=vp(),l=xp(),f=_p(),p=Xu()("toStringTag"),m=Error,h=[].push,d=function(e,s){var a,g=t(y,this);r?a=r(new m,g?n(this):y):(a=g?this:i(y),o(a,p,"Error")),void 0!==s&&o(a,"message",f(s)),u(a,d,a.stack,1),arguments.length>2&&c(a,arguments[2]);var v=[];return l(e,h,{that:v}),o(a,"errors",v),a};r?r(d,m):s(d,m,{name:!0});var y=d.prototype=i(m.prototype,{constructor:a(1,d),message:a(1,""),name:a(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:d})}()),Ka}function Ip(){return up||(up=1,kp()),Ga}var Mp,$p,Tp,Rp,Fp,Np,Cp,Dp={};function qp(){if($p)return Mp;$p=1;var e=Il().f;return Mp=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function Lp(){if(Rp)return Tp;Rp=1;var e=rc(),t=tu(),n=ql();return Tp=function(r,s,i){var o,a;return n&&e(o=s.constructor)&&o!==i&&t(a=o.prototype)&&a!==i.prototype&&n(r,a),r}}function Vp(){if(Np)return Fp;Np=1;var e=ru(),t=Ku(),n=Ml(),r=su(),s=ql(),i=Sf(),o=qp(),a=Lp(),c=_p(),u=dp(),l=vp(),f=uc(),p=zu();return Fp=function(m,h,d,y){var g="stackTraceLimit",v=y?2:1,b=m.split("."),E=b[b.length-1],w=e.apply(null,b);if(w){var j=w.prototype;if(!p&&t(j,"cause")&&delete j.cause,!d)return w;var O=e("Error"),P=h((function(e,t){var s=c(y?t:e,void 0),i=y?new w(e):new w;return void 0!==s&&n(i,"message",s),l(i,P,i.stack,2),this&&r(j,this)&&a(i,this,P),arguments.length>v&&u(i,arguments[v]),i}));if(P.prototype=j,"Error"!==E?s?s(P,O):i(P,O,{name:!0}):f&&g in w&&(o(P,w,g),o(P,w,"prepareStackTrace")),i(P,w),!p)try{j.name!==E&&n(j,"name",E),j.constructor=P}catch(e){}return P}},Fp}var Bp,zp,Hp,Jp,Up,Gp,Kp,Wp,Xp,Yp,Zp,Qp,em,tm,nm,rm,sm,im,om,am,cm,um,lm,fm,pm,mm={};function hm(){return Hp?zp:(Hp=1,zp=function(){})}function dm(){if(Up)return Jp;Up=1;var e=Xa(),t=rc(),n=e.WeakMap;return Jp=t(n)&&/native code/.test(String(n))}function ym(){if(Kp)return Gp;Kp=1;var e,t,n,r=dm(),s=Xa(),i=tu(),o=Ml(),a=Ku(),c=Ju(),u=Tl(),l=mf(),f="Object already initialized",p=s.TypeError,m=s.WeakMap;if(r||c.state){var h=c.state||(c.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,e=function(e,t){if(h.has(e))throw new p(f);return t.facade=e,h.set(e,t),t},t=function(e){return h.get(e)||{}},n=function(e){return h.has(e)}}else{var d=u("state");l[d]=!0,e=function(e,t){if(a(e,d))throw new p(f);return t.facade=e,o(e,d,t),t},t=function(e){return a(e,d)?e[d]:{}},n=function(e){return a(e,d)}}return Gp={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}}}function gm(){if(Xp)return Wp;Xp=1;var e=uc(),t=Ku(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,s=t(n,"name"),i=s&&"something"===function(){}.name,o=s&&(!e||e&&r(n,"name").configurable);return Wp={EXISTS:s,PROPER:i,CONFIGURABLE:o}}function vm(){if(Zp)return Yp;Zp=1;var e=Ml();return Yp=function(t,n,r,s){return s&&s.enumerable?t[n]=r:e(t,n,r),t}}function bm(){if(em)return Qp;em=1;var e,t,n,r=Ya(),s=rc(),i=tu(),o=hp(),a=Fl(),c=vm(),u=Xu(),l=zu(),f=u("iterator"),p=!1;[].keys&&("next"in(n=[].keys())?(t=a(a(n)))!==Object.prototype&&(e=t):p=!0);var m=!i(e)||r((function(){var t={};return e[f].call(t)!==t}));return m?e={}:l&&(e=o(e)),s(e[f])||c(e,f,(function(){return this})),Qp={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:p}}function Em(){if(nm)return tm;nm=1;var e=wp(),t=jp();return tm=e?{}.toString:function(){return"[object "+t(this)+"]"}}function wm(){if(sm)return rm;sm=1;var e=wp(),t=Il().f,n=Ml(),r=Ku(),s=Em(),i=Xu()("toStringTag");return rm=function(o,a,c,u){var l=c?o:o&&o.prototype;l&&(r(l,i)||t(l,i,{configurable:!0,value:a}),u&&!e&&n(l,"toString",s))}}function jm(){if(om)return im;om=1;var e=bm().IteratorPrototype,t=hp(),n=Xc(),r=wm(),s=bp(),i=function(){return this};return im=function(o,a,c,u){var l=a+" Iterator";return o.prototype=t(e,{next:n(+!u,c)}),r(o,l,!1,!0),s[l]=i,o}}function Om(){if(cm)return am;cm=1;var e=$l(),t=lc(),n=zu(),r=gm(),s=rc(),i=jm(),o=Fl(),a=ql(),c=wm(),u=Ml(),l=vm(),f=Xu(),p=bp(),m=bm(),h=r.PROPER,d=r.CONFIGURABLE,y=m.IteratorPrototype,g=m.BUGGY_SAFARI_ITERATORS,v=f("iterator"),b="keys",E="values",w="entries",j=function(){return this};return am=function(r,f,m,O,P,S,x){i(m,f,O);var A,_,k,I=function(e){if(e===P&&F)return F;if(!g&&e&&e in T)return T[e];switch(e){case b:case E:case w:return function(){return new m(this,e)}}return function(){return new m(this)}},M=f+" Iterator",$=!1,T=r.prototype,R=T[v]||T["@@iterator"]||P&&T[P],F=!g&&R||I(P),N="Array"===f&&T.entries||R;if(N&&(A=o(N.call(new r)))!==Object.prototype&&A.next&&(n||o(A)===y||(a?a(A,y):s(A[v])||l(A,v,j)),c(A,M,!0,!0),n&&(p[M]=j)),h&&P===E&&R&&R.name!==E&&(!n&&d?u(T,"name",E):($=!0,F=function(){return t(R,this)})),P)if(_={values:I(E),keys:S?F:I(b),entries:I(w)},x)for(k in _)(g||$||!(k in T))&&l(T,k,_[k]);else e({target:f,proto:!0,forced:g||$},_);return n&&!x||T[v]===F||l(T,v,F,{name:P}),p[f]=F,_}}function Pm(){return lm?um:(lm=1,um=function(e,t){return{value:e,done:t}})}function Sm(){if(pm)return fm;pm=1;var e=eu(),t=hm(),n=bp(),r=ym(),s=Il().f,i=Om(),o=Pm(),a=zu(),c=uc(),u="Array Iterator",l=r.set,f=r.getterFor(u);fm=i(Array,"Array",(function(t,n){l(this,{type:u,target:e(t),index:0,kind:n})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case"keys":return o(n,!1);case"values":return o(t[n],!1)}return o([n,t[n]],!1)}),"values");var p=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!a&&c&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}return fm}var xm,Am,_m,km,Im,Mm={};function $m(){if(Am)return xm;Am=1;var e=ec(),t=cf(),n=Ap(),r=Qc(),s=e("".charAt),i=e("".charCodeAt),o=e("".slice),a=function(e){return function(a,c){var u,l,f=n(r(a)),p=t(c),m=f.length;return p<0||p>=m?e?"":void 0:(u=i(f,p))<55296||u>56319||p+1===m||(l=i(f,p+1))<56320||l>57343?e?s(f,p):u:e?o(f,p,p+2):l-56320+(u-55296<<10)+65536}};return xm={codeAt:a(!1),charAt:a(!0)}}function Tm(){return Im?km:(Im=1,function(){if(Cp)return Dp;Cp=1;var e=$l(),t=Xa(),n=Qa(),r=Vp(),s="WebAssembly",i=t[s],o=7!==new Error("e",{cause:7}).cause,a=function(t,n){var s={};s[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},s)},c=function(t,n){if(i&&i[t]){var a={};a[t]=r(s+"."+t,n,o),e({target:s,stat:!0,constructor:!0,arity:1,forced:o},a)}};a("Error",(function(e){return function(t){return n(e,this,arguments)}})),a("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),a("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),a("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),a("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),a("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),a("URIError",(function(e){return function(t){return n(e,this,arguments)}})),c("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),c("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),c("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))}(),kp(),function(){if(Bp)return mm;Bp=1;var e=$l(),t=ru(),n=Qa(),r=Ya(),s=Vp(),i="AggregateError",o=t(i),a=!r((function(){return 1!==o([1]).errors[0]}))&&r((function(){return 7!==o([1],i,{cause:7}).cause}));e({global:!0,constructor:!0,arity:2,forced:a},{AggregateError:s(i,(function(e){return function(t,r){return n(e,this,arguments)}}),a,!0)})}(),Sm(),function(){if(_m)return Mm;_m=1;var e=$m().charAt,t=Ap(),n=ym(),r=Om(),s=Pm(),i="String Iterator",o=n.set,a=n.getterFor(i);r(String,"String",(function(e){o(this,{type:i,string:t(e),index:0})}),(function(){var t,n=a(this),r=n.string,i=n.index;return i>=r.length?s(void 0,!0):(t=e(r,i),n.index+=t.length,s(t,!1))}))}(),km=nu().AggregateError)}var Rm,Fm,Nm,Cm,Dm,qm,Lm,Vm,Bm,zm,Hm,Jm,Um,Gm={};function Km(){return Fm?Rm:(Fm=1,Rm={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})}function Wm(){if(Dm)return Cm;Dm=1,Ip();var e=Tm();return function(){if(Nm)return Gm;Nm=1,Sm();var e=Km(),t=Xa(),n=wm(),r=bp();for(var s in e)n(t[s],s),r[s]=r.Array}(),Cm=e}function Xm(){return Lm?qm:(Lm=1,qm=Wm())}function Ym(){return Bm?Vm:(Bm=1,Ip(),Vm=Xm())}function Zm(){return Hm?zm:(Hm=1,zm=Ym())}const Qm=Zt(Um?Jm:(Um=1,Jm=Zm()));class eh extends Qm{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class th extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(eh,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 nh extends th{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}class rh extends th{}class sh extends rh{}const ih=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},oh={},ah=e=>null==e?void 0:e.type,ch=e=>"string"==typeof ah(e),uh=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),lh=(e,{visitFnGetter:t=ih,nodeTypeGetter:n=ah,breakSymbol:r=oh,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,f,p,m,h){let d=u,y=!1;const g={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(d),!1);if("function"==typeof a){const t=a.call(e[u],d,l,f,p,m,g);if("function"==typeof(null==t?void 0:t.then))throw new nh("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=d;else if(t===r)c[u]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,p){let m=s;const h={...p,replaceWith(e,t){p.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],n(m),!0);if("function"==typeof a){const t=a.call(e[s],m,o,u,l,f,h);if("function"==typeof(null==t?void 0:t.then))throw new nh("Async visitor not supported in sync mode",{visitor:e[s],visitFn:a});if(t===r)c[s]=r;else if(void 0!==t&&t!==i)return t}}else c[s]===m&&(c[s]=a)}}};lh[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=ih,nodeTypeGetter:n=ah,breakSymbol:r=oh,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,f,p,m,h){let d=u,y=!1;const g={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(d),!1);if("function"==typeof a){const t=await a.call(e[u],d,l,f,p,m,g);if(t===i)c[u]=d;else if(t===r)c[u]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,p){let m=s;const h={...p,replaceWith(e,t){p.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],n(m),!0);if("function"==typeof a){const t=await a.call(e[s],m,o,u,l,f,h);if(t===r)c[s]=r;else if(void 0!==t&&t!==i)return t}}else c[s]===m&&(c[s]=a)}}};const fh=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=oh,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=ih,nodeTypeGetter:c=ah,nodePredicate:u=ch,nodeCloneFn:l=uh,detectCycles:f=!0,detectCyclesCallback:p=null}={})=>{const m=n||{};let h,d,y=Array.isArray(e),g=[e],v=-1,b=[],E=e;const w=[],j=[];do{v+=1;const e=v===g.length;let n;const S=e&&0!==b.length;if(e){if(n=0===j.length?void 0:w.pop(),E=d,d=j.pop(),S)if(y){E=E.slice();let e=0;for(const[t,n]of b){const r=t-e;n===i?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of b)E[e]=t}v=h.index,g=h.keys,b=h.edits,y=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(n=y?v:g[v],E=d[n],E===i||void 0===E)continue;w.push(n)}let x;if(!Array.isArray(E)){var O;if(!u(E))throw new nh(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&j.includes(E)){"function"==typeof p&&p(E,n,d,w,j),w.pop();continue}const i=a(t,c(E),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;const s={replaceWith(t,r){"function"==typeof r?r(t,E,n,d,w,j):d&&(d[n]=t),e||(E=t)}};x=i.call(t,E,n,d,w,j,s)}if("function"==typeof(null===(O=x)||void 0===O?void 0:O.then))throw new nh("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(x===s)break;if(x===o){if(!e){w.pop();continue}}else if(void 0!==x&&(b.push([n,x]),!e)){if(!u(x)){w.pop();continue}E=x}}var P;if(void 0===x&&S&&b.push([n,E]),!e)h={inArray:y,index:v,keys:g,edits:b,prev:h},y=Array.isArray(E),g=y?E:null!==(P=m[c(E)])&&void 0!==P?P:[],v=-1,b=[],d!==i&&void 0!==d&&j.push(d),d=E}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};fh[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=oh,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=ih,nodeTypeGetter:c=ah,nodePredicate:u=ch,nodeCloneFn:l=uh,detectCycles:f=!0,detectCyclesCallback:p=null}={})=>{const m=n||{};let h,d,y=Array.isArray(e),g=[e],v=-1,b=[],E=e;const w=[],j=[];do{v+=1;const e=v===g.length;let n;const P=e&&0!==b.length;if(e){if(n=0===j.length?void 0:w.pop(),E=d,d=j.pop(),P)if(y){E=E.slice();let e=0;for(const[t,n]of b){const r=t-e;n===i?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of b)E[e]=t}v=h.index,g=h.keys,b=h.edits,y=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(n=y?v:g[v],E=d[n],E===i||void 0===E)continue;w.push(n)}let S;if(!Array.isArray(E)){if(!u(E))throw new nh(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&j.includes(E)){"function"==typeof p&&p(E,n,d,w,j),w.pop();continue}const i=a(t,c(E),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;const s={replaceWith(t,r){"function"==typeof r?r(t,E,n,d,w,j):d&&(d[n]=t),e||(E=t)}};S=await i.call(t,E,n,d,w,j,s)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(b.push([n,S]),!e)){if(!u(S)){w.pop();continue}E=S}}var O;if(void 0===S&&P&&b.push([n,E]),!e)h={inArray:y,index:v,keys:g,edits:b,prev:h},y=Array.isArray(E),g=y?E:null!==(O=m[c(E)])&&void 0!==O?O:[],v=-1,b=[],d!==i&&void 0!==d&&j.push(d),d=E}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};class ph extends nh{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class mh extends ph{}class hh extends ph{}const dh=(e,t)=>{const n=Te(e,t);return ot((e=>{if(Bt(e)&&We("$ref",e)&&ht($t,"$ref",e)){const t=lt(["$ref"],e),r=Xt("#/",t);return lt(r.split("/"),n)}return Bt(e)?dh(e,n):e}),e)},yh=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),gh=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof ta.KeyValuePair){const{key:t,value:s}=e,i=fa(t)?gh(t,r):t,o=fa(s)?gh(s,r):s,a=new ta.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof ta.ObjectSlice){const t=e=>gh(e,r),s=[...e].map(t),i=new ta.ObjectSlice(s);return n.set(e,i),i}if(e instanceof ta.ArraySlice){const t=e=>gh(e,r),s=[...e].map(t),i=new ta.ArraySlice(s);return n.set(e,i),i}if(fa(e)){const t=Eh(e);if(n.set(e,t),e.content)if(fa(e.content))t.content=gh(e.content,r);else if(e.content instanceof ta.KeyValuePair)t.content=gh(e.content,r);else if(Array.isArray(e.content)){const n=e=>gh(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new mh("Value provided to cloneDeep function couldn't be cloned",{value:e})};gh.safe=e=>{try{return gh(e)}catch{return e}};const vh=e=>{const{key:t,value:n}=e;return new ta.KeyValuePair(t,n)},bh=e=>{const t=new e.constructor;if(t.element=e.element,Pa(e)&&yh(t,e),e.meta.length>0&&(t._meta=gh(e.meta)),e.attributes.length>0&&(t._attributes=gh(e.attributes)),fa(e.content)){const n=e.content;t.content=bh(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ta.KeyValuePair?t.content=vh(e.content):t.content=e.content;return t},Eh=e=>{if(e instanceof ta.KeyValuePair)return vh(e);if(e instanceof ta.ObjectSlice)return(e=>{const t=[...e];return new ta.ObjectSlice(t)})(e);if(e instanceof ta.ArraySlice)return(e=>{const t=[...e];return new ta.ArraySlice(t)})(e);if(fa(e))return bh(e);throw new hh("Value provided to cloneShallow function couldn't be cloned",{value:e})};Eh.safe=e=>{try{return Eh(e)}catch{return e}};const wh=e=>ya(e)?"ObjectElement":ga(e)?"ArrayElement":va(e)?"MemberElement":pa(e)?"StringElement":da(e)?"BooleanElement":ma(e)?"NumberElement":ha(e)?"NullElement":ba(e)?"LinkElement":Ea(e)?"RefElement":void 0,jh=e=>fa(e)?Eh(e):uh(e),Oh=Me(wh,$t),Ph={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},Sh=(e,t,{keyMap:n=Ph,...r}={})=>fh(e,t,{keyMap:n,nodeTypeGetter:wh,nodePredicate:Oh,nodeCloneFn:jh,...r});Sh[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Ph,...r}={})=>fh[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:wh,nodePredicate:Oh,nodeCloneFn:jh,...r});const xh={toolboxCreator:Ia,visitorOptions:{nodeTypeGetter:wh,exposeEdits:!0}},Ah=(e,t,n={})=>{if(0===t.length)return e;const r=ut(xh,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=lh(a.map(mt({},"visitor")),{...i});a.forEach(Wt(["pre"],[]));const u=Sh(e,c,i);return a.forEach(Wt(["post"],[])),u};Ah[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=ut(xh,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=lh[Symbol.for("nodejs.util.promisify.custom")],u=Sh[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(mt({},"visitor")),{...i});await Promise.allSettled(a.map(Wt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(a.map(Wt(["post"],[]))),f};class _h extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new sh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new sh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new sh("latest method in MediaTypes class is not yet implemented.")}}const kh=e=>(t,n={})=>((e,{Type:t,plugins:n=[]})=>{const r=new t(e);return fa(e)&&(e.meta.length>0&&(r.meta=gh(e.meta)),e.attributes.length>0&&(r.attributes=gh(e.attributes))),Ah(r,n,{toolboxCreator:Ia,visitorOptions:{nodeTypeGetter:wh}})})(t,{...n,Type:e});ta.ObjectElement.refract=kh(ta.ObjectElement),ta.ArrayElement.refract=kh(ta.ArrayElement),ta.StringElement.refract=kh(ta.StringElement),ta.BooleanElement.refract=kh(ta.BooleanElement),ta.NullElement.refract=kh(ta.NullElement),ta.NumberElement.refract=kh(ta.NumberElement),ta.LinkElement.refract=kh(ta.LinkElement),ta.RefElement.refract=kh(ta.RefElement),na.refract=kh(na),ra.refract=kh(ra),sa.refract=kh(sa);const Ih=e=>"string"==typeof(null==e?void 0:e.type)?e.type:wh(e),Mh={EphemeralObject:["content"],EphemeralArray:["content"],...Ph},$h=(e,t,{keyMap:r=Mh,...s}={})=>Sh(e,t,{keyMap:r,nodeTypeGetter:Ih,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});$h[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Mh,...r}={})=>Sh[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ih,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class Th{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 Rh{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))}}let Fh=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Rh(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 Th(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return pa(e.href)?e.href.toValue():""}};const Nh=e=>fa(e)?pa(e)||ma(e)||da(e)||ha(e)?e.toValue():$h(e,new Fh):e,Ch=e=>{const t=e.meta.length>0?gh(e.meta):void 0,n=e.attributes.length>0?gh(e.attributes):void 0;return new e.constructor(void 0,t,n)},Dh=(e,t)=>t.clone&&t.isMergeableElement(e)?Lh(Ch(e),e,t):e,qh={clone:!0,isMergeableElement:e=>ya(e)||ga(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>Dh(e,n))),objectElementMerge:(e,t,n)=>{const r=ya(e)?Ch(e):Ch(t);return ya(e)&&e.forEach(((e,t,s)=>{const i=Eh(s);i.value=Dh(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=Nh(s);let a;if(ya(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);a=Eh(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Lh;const n=t.customMerge(e,t);return"function"==typeof n?n:Lh})(s,n)(r,t,n)}else a=Eh(i),a.value=Dh(t,n);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Lh=(e,t,n)=>{var r,s,i;const o={...qh,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:qh.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:qh.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:qh.objectElementMerge;const a=ga(t);if(!(a===ga(e)))return Dh(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>gh(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>gh(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};Lh.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ta.ObjectElement:e.reduce(((e,n)=>Lh(e,n,t)),Ch(e[0]))};class Vh extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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 Bh extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class zh extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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 Hh extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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 Jh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Vh),t.register("jSONReference",Bh),t.register("media",zh),t.register("linkDescription",Hh),t}},Uh=e=>{if(fa(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Ph};let Kh=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lh(t.meta,e.meta)),Pa(e)&&yh(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lh(t.attributes,e.attributes))}},Wh=class extends Kh{enter(e){return this.element=gh(e),oh}};const Xh=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Yh=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Yh(n,[...t,n])},Zh=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Yh(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(s),o=Yh(s);for(let t of e){let e=Yh(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Xh(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},Qh=e=>e.filter(((t,n)=>e.indexOf(t)==n)),ed=new WeakMap,td=e=>ed.get(e),nd=(e,t)=>{var n,r;const s=Qh([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Qh([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},rd=(e,t)=>{var n,r,s,i;return{property:nd(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:nd(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},sd=new Map,id=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...Yh(e.prototype).map((e=>e.constructor)),...null!==(t=td(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>sd.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>((e,t)=>{var n,r,s,i,o,a;return{class:Qh([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:rd(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:rd(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)))};function od(...e){var t,n,r;const s=e.map((e=>e.prototype));function i(...t){for(const n of e)Xh(this,new n(...t))}i.prototype=Zh(s,i),Object.setPrototypeOf(i,Zh(e,null,["prototype"]));let o=i;{const s=id(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(o);t&&(o=t)}ad(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},o),ad(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},o.prototype)}var a,c;return a=o,c=e,ed.set(a,c),o}const ad=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};let cd=class extends Kh{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return pt(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=lt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ft(_t,["visitors",...e],this.specObj)?lt(["visitors",...e],this.specObj):lt(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof Wh&&(null==r?void 0:r.constructor)===Wh?gh(t):(Sh(t,r,n),r.element)}},ud=class extends cd{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(pa(r)&&n.includes(Nh(r))&&!this.ignoredFields.includes(Nh(r))){const n=this.toRefractedElement([...t,"fixedFields",Nh(r)],e),i=new ta.MemberElement(gh(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Nh(r))||this.element.content.push(gh(s))})),this.copyMetaAndAttributes(e,this.element),oh}};class ld{parent;constructor({parent:e}){this.parent=e}}const fd=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vh||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),pd=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Bh||e(r)&&t("JSONReference",r)&&n("object",r))),md=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zh||e(r)&&t("media",r)&&n("object",r))),hd=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Hh||e(r)&&t("linkDescription",r)&&n("object",r))),dd=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:pd,isJSONSchemaElement:fd,isLinkDescriptionElement:hd,isMediaElement:md},Symbol.toStringTag,{value:"Module"}));class yd extends(od(ud,ld,Wh)){constructor(e){super(e),this.element=new Vh,this.specPath=fe(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,ud.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(jt(this.parent)&&!pa(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(fd(this.parent)&&!pa(e.get("$schema"))){const e=Te(Nh(this.parent.meta.get("inheritedDialectIdentifier")),Nh(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const n=void 0!==this.parent?gh(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ta.ArrayElement,r=Nh(e.get(t));Nt(r)&&n.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}}const gd=e=>ya(e)&&e.hasKey("$ref");let vd=class extends(od(cd,ld,Wh)){ObjectElement(e){const t=gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),oh}ArrayElement(e){return this.element=new ta.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),oh}};let bd=class extends cd{specPath;ignoredFields;fieldPatternPredicate=t;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Nh(t))&&this.fieldPatternPredicate(Nh(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new ta.MemberElement(gh(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Nh(t))||this.element.content.push(gh(n))})),this.copyMetaAndAttributes(e,this.element),oh}},Ed=class extends bd{constructor(e){super(e),this.fieldPatternPredicate=Nt}},wd=class extends(od(Ed,ld,Wh)){constructor(e){super(e),this.element=new ta.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=e=>gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class jd extends(od(Ed,ld,Wh)){constructor(e){super(e),this.element=new ta.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Od extends(od(Ed,ld,Wh)){constructor(e){super(e),this.element=new ta.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let Pd=class extends(od(cd,ld,Wh)){constructor(e){super(e),this.element=new ta.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),oh}};class Sd extends(od(cd,ld,Wh)){constructor(e){super(e),this.element=new ta.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),oh}}class xd extends(od(cd,ld,Wh)){constructor(e){super(e),this.element=new ta.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),oh}}let Ad=class extends(od(Ed,ld,Wh)){constructor(e){super(e),this.element=new ta.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=e=>gd(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class _d extends(od(cd,ld,Wh)){constructor(e){super(e),this.element=new ta.ArrayElement,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),oh}}class kd extends(od(ud,Wh)){constructor(e){super(e),this.element=new Bh,this.specPath=fe(["document","objects","JSONReference"])}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return pa(this.element.$ref)&&this.element.classes.push("reference-element"),t}}let Id=class extends cd{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ye(e,fe(t),wt))),n=Gt(t)(e);return this.element=this.toRefractedElement(n,e),oh}};class Md extends Id{constructor(e){super(e),this.alternator=[{predicate:gd,specPath:["document","objects","JSONReference"]},{predicate:n,specPath:["document","objects","JSONSchema"]}]}}class $d extends(od(ud,Wh)){constructor(e){super(e),this.element=new zh,this.specPath=fe(["document","objects","Media"])}}class Td extends(od(ud,Wh)){constructor(e){super(e),this.element=new Hh,this.specPath=fe(["document","objects","LinkDescription"])}}const Rd={visitors:{value:Wh,JSONSchemaOrJSONReferenceVisitor:Md,document:{objects:{JSONSchema:{$visitor:yd,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:Md,items:vd,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:class extends Wh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}},properties:wd,additionalProperties:Md,patternProperties:jd,dependencies:Od,enum:class extends Wh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}},type:class extends Wh{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:Pd,anyOf:Sd,oneOf:xd,not:Md,definitions:Ad,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:_d,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:kd,fixedFields:{$ref:class extends Wh{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}}},Media:{$visitor:$d,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Td,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Md,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Md}}}}}},Fd=()=>{const e=ka(Jh);return{predicates:{...dd,isStringElement:pa},namespace:e}},Nd=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Rd}={})=>{const s=ta.refract(e),i=dh(r),o=new(lt(t,i))({specObj:i});return Sh(s,o),Ah(o.element,n,{toolboxCreator:Fd,visitorOptions:{keyMap:Gh,nodeTypeGetter:Uh}})})(t,{specPath:e,...n});Vh.refract=Nd(["visitors","document","objects","JSONSchema","$visitor"]),Bh.refract=Nd(["visitors","document","objects","JSONReference","$visitor"]),zh.refract=Nd(["visitors","document","objects","Media","$visitor"]),Hh.refract=Nd(["visitors","document","objects","LinkDescription","$visitor"]);class Cd extends _h{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return Le(this.filterByFormat(e))}}const Dd=new Cd("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0");class qd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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)}}class Ld extends ta.StringElement{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}class Vd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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)}}class Bd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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)}}class zd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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)}}class Hd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="paths"}}class Jd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}class Ud extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ta.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}class Gd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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)}}class Kd extends Vh{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new rh("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new rh("idProp setter in Parameter class is not not supported.")}get $schema(){throw new rh("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new rh("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new rh("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new rh("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new rh("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new rh("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new rh("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new rh("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new rh("properties getter in Parameter class is not not supported.")}set properties(e){throw new rh("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new rh("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new rh("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new rh("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new rh("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new rh("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new rh("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new rh("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new rh("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new rh("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new rh("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new rh("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new rh("oneOf setter in Parameter class is not not supported.")}get not(){throw new rh("not getter in Parameter class is not not supported.")}set not(e){throw new rh("not setter in Parameter class is not not supported.")}get definitions(){throw new rh("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new rh("definitions setter in Parameter class is not not supported.")}get title(){throw new rh("title getter in Parameter class is not not supported.")}set title(e){throw new rh("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new rh("base getter in Parameter class is not not supported.")}set base(e){throw new rh("base setter in Parameter class is not not supported.")}get links(){throw new rh("links getter in Parameter class is not not supported.")}set links(e){throw new rh("links setter in Parameter class is not not supported.")}get media(){throw new rh("media getter in Parameter class is not not supported.")}set media(e){throw new rh("media setter in Parameter class is not not supported.")}get readOnly(){throw new rh("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new rh("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class Wd extends Vh{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new rh("idProp getter in Items class is not not supported.")}set idProp(e){throw new rh("idProp setter in Items class is not not supported.")}get $schema(){throw new rh("$schema getter in Items class is not not supported.")}set $schema(e){throw new rh("$schema setter in Items class is not not supported.")}get additionalItems(){throw new rh("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new rh("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new rh("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new rh("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new rh("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new rh("minProperties setter in Items class is not not supported.")}get required(){throw new rh("required getter in Items class is not not supported.")}set required(e){throw new rh("required setter in Items class is not not supported.")}get properties(){throw new rh("properties getter in Items class is not not supported.")}set properties(e){throw new rh("properties setter in Items class is not not supported.")}get additionalProperties(){throw new rh("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new rh("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new rh("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new rh("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new rh("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new rh("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new rh("allOf getter in Items class is not not supported.")}set allOf(e){throw new rh("allOf setter in Items class is not not supported.")}get anyOf(){throw new rh("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new rh("anyOf setter in Items class is not not supported.")}get oneOf(){throw new rh("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new rh("oneOf setter in Items class is not not supported.")}get not(){throw new rh("not getter in Items class is not not supported.")}set not(e){throw new rh("not setter in Items class is not not supported.")}get definitions(){throw new rh("definitions getter in Items class is not not supported.")}set definitions(e){throw new rh("definitions setter in Items class is not not supported.")}get title(){throw new rh("title getter in Items class is not not supported.")}set title(e){throw new rh("title setter in Items class is not not supported.")}get description(){throw new rh("description getter in Items class is not not supported.")}set description(e){throw new rh("description setter in Items class is not not supported.")}get base(){throw new rh("base getter in Items class is not not supported.")}set base(e){throw new rh("base setter in Items class is not not supported.")}get links(){throw new rh("links getter in Items class is not not supported.")}set links(e){throw new rh("links setter in Items class is not not supported.")}get media(){throw new rh("media getter in Items class is not not supported.")}set media(e){throw new rh("media setter in Items class is not not supported.")}get readOnly(){throw new rh("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new rh("readOnly setter in Items class is not not supported.")}}class Xd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="example"}}class Yd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}class Zd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}class Qd extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="headers"}}class ey extends Vh{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new rh("idProp getter in Header class is not not supported.")}set idProp(e){throw new rh("idProp setter in Header class is not not supported.")}get $schema(){throw new rh("$schema getter in Header class is not not supported.")}set $schema(e){throw new rh("$schema setter in Header class is not not supported.")}get additionalItems(){throw new rh("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new rh("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new rh("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new rh("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new rh("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new rh("minProperties setter in Header class is not not supported.")}get required(){throw new rh("required getter in Header class is not not supported.")}set required(e){throw new rh("required setter in Header class is not not supported.")}get properties(){throw new rh("properties getter in Header class is not not supported.")}set properties(e){throw new rh("properties setter in Header class is not not supported.")}get additionalProperties(){throw new rh("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new rh("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new rh("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new rh("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new rh("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new rh("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new rh("allOf getter in Header class is not not supported.")}set allOf(e){throw new rh("allOf setter in Header class is not not supported.")}get anyOf(){throw new rh("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new rh("anyOf setter in Header class is not not supported.")}get oneOf(){throw new rh("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new rh("oneOf setter in Header class is not not supported.")}get not(){throw new rh("not getter in Header class is not not supported.")}set not(e){throw new rh("not setter in Header class is not not supported.")}get definitions(){throw new rh("definitions getter in Header class is not not supported.")}set definitions(e){throw new rh("definitions setter in Header class is not not supported.")}get title(){throw new rh("title getter in Header class is not not supported.")}set title(e){throw new rh("title setter in Header class is not not supported.")}get base(){throw new rh("base getter in Header class is not not supported.")}set base(e){throw new rh("base setter in Header class is not not supported.")}get links(){throw new rh("links getter in Header class is not not supported.")}set links(e){throw new rh("links setter in Header class is not not supported.")}get media(){throw new rh("media getter in Header class is not not supported.")}set media(e){throw new rh("media setter in Header class is not not supported.")}get readOnly(){throw new rh("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new rh("readOnly setter in Header class is not not supported.")}}class ty extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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)}}class ny extends Vh{constructor(e,t,n){super(e,t,n),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(){throw new rh("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new rh("additionalItems setter in Schema class is not not supported.")}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 anyOf(){throw new rh("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new rh("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new rh("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new rh("oneOf setter in Schema class is not not supported.")}get not(){throw new rh("not getter in Schema class is not not supported.")}set not(e){throw new rh("not setter in Schema class is not not supported.")}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.")}}class ry extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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)}}class sy extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class iy extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="definitions"}}class oy extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}class ay extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}class cy extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}class uy extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}class ly extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="scopes"}}class fy extends ta.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const py={namespace:e=>{const{base:t}=e;return t.register("swagger",qd),t.register("swaggerVersion",Ld),t.register("info",Vd),t.register("contact",Bd),t.register("license",zd),t.register("paths",Hd),t.register("pathItem",Jd),t.register("operation",Ud),t.register("externalDocumentation",Gd),t.register("parameter",Kd),t.register("items",Wd),t.register("responses",Yd),t.register("response",Zd),t.register("headers",Qd),t.register("example",Xd),t.register("header",ey),t.register("tag",ty),t.register("reference",sy),t.register("schema",ny),t.register("xml",ry),t.register("definitions",iy),t.register("parametersDefinitions",oy),t.register("responsesDefinitions",ay),t.register("securityDefinitions",cy),t.register("securityScheme",uy),t.register("scopes",ly),t.register("securityRequirement",fy),t}};var my=Object.defineProperty;const hy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{t in e?my(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(hy,"primaryClass"+"","operation-consumes");let dy=hy;var yy=Object.defineProperty;const gy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push("parameters")}};((e,t,n)=>{((e,t,n)=>{t in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(gy,"primaryClass","operation-parameters");let vy=gy;var by=Object.defineProperty;const Ey=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{((e,t,n)=>{t in e?by(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Ey,"primaryClass","operation-produces");let wy=Ey;var jy=Object.defineProperty;const Oy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{((e,t,n)=>{t in e?jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Oy,"primaryClass","operation-schemes");let Py=Oy;var Sy=Object.defineProperty;const xy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push("security")}};((e,t,n)=>{((e,t,n)=>{t in e?Sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(xy,"primaryClass","operation-security");let Ay=xy;var _y=Object.defineProperty;const ky=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push("tags")}};((e,t,n)=>{((e,t,n)=>{t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(ky,"primaryClass","operation-tags");let Iy=ky;var My=Object.defineProperty;const $y=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push("parameters")}};((e,t,n)=>{((e,t,n)=>{t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})($y,"primaryClass","path-item-parameters");let Ty=$y;var Ry=Object.defineProperty;const Fy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{((e,t,n)=>{t in e?Ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Fy,"primaryClass","swagger-schemes");let Ny=Fy;var Cy=Object.defineProperty;const Dy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{((e,t,n)=>{t in e?Cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Dy,"primaryClass","swagger-consumes");let qy=Dy;var Ly=Object.defineProperty;const Vy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{((e,t,n)=>{t in e?Ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Vy,"primaryClass","swagger-produces");let By=Vy;var zy=Object.defineProperty;const Hy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push("security")}};((e,t,n)=>{((e,t,n)=>{t in e?zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Hy,"primaryClass","swagger-security");let Jy=Hy;var Uy=Object.defineProperty;const Gy=class e extends ta.ArrayElement{constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}};((e,t,n)=>{((e,t,n)=>{t in e?Uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n)})(Gy,"primaryClass","swagger-tags");let Ky=Gy;var Wy=Object.defineProperty,Xy=Object.getOwnPropertySymbols,Yy=Object.prototype.hasOwnProperty,Zy=Object.prototype.propertyIsEnumerable,Qy=(e,t,n)=>t in e?Wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const eg=e=>{if(fa(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},tg=((e,t)=>{for(var n in t||(t={}))Yy.call(t,n)&&Qy(e,n,t[n]);if(Xy)for(var n of Xy(t))Zy.call(t,n)&&Qy(e,n,t[n]);return e})({SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"]},Ph),ng={SwaggerElement:{info:(...e)=>new Vd(...e),schemes:(...e)=>new Ny(...e),consumes:(...e)=>new qy(...e),produces:(...e)=>new By(...e),paths:(...e)=>new Hd(...e),definitions:(...e)=>new iy(...e),parameters:(...e)=>new oy(...e),responses:(...e)=>new ay(...e),securityDefinitions:(...e)=>new cy(...e),security:(...e)=>new Jy(...e),tags:(...e)=>new Ky(...e),externalDocs:(...e)=>new Gd(...e)},InfoElement:{contact:(...e)=>new Bd(...e),license:(...e)=>new zd(...e)},PathsElement:{"[key: *]":function(...e){return new Jd(...e)}},PathItemElement:{get:(...e)=>new Ud(...e),put:(...e)=>new Ud(...e),post:(...e)=>new Ud(...e),delete:(...e)=>new Ud(...e),options:(...e)=>new Ud(...e),head:(...e)=>new Ud(...e),patch:(...e)=>new Ud(...e),parameters:(...e)=>new Ty(...e)},OperationElement:{tags:(...e)=>new Iy(...e),externalDocs:(...e)=>new Gd(...e),consumes:(...e)=>new dy(...e),produces:(...e)=>new wy(...e),parameters:(...e)=>new vy(...e),responses:(...e)=>new Yd(...e),schemes:(...e)=>new Py(...e),security:(...e)=>new Ay(...e)},ParameterElement:{schema:(...e)=>new ny(...e),items:(...e)=>new Wd(...e)},ItemsElement:{items:(...e)=>new Wd(...e)},ResponsesElement:{"[key: *]":function(...e){return new Zd(...e)}},ResponseElement:{schema:(...e)=>new ny(...e),headers:(...e)=>new Qd(...e),examples:(...e)=>new Xd(...e)},HeadersElement:{"[key: *]":function(...e){return new ey(...e)}},HeaderElement:{items:(...e)=>new Wd(...e)},TagElement:{externalDocs:(...e)=>new Gd(...e)},SchemaElement:{items:(...e)=>new ny(...e),allOf(...e){const t=new ta.ArrayElement(...e);return t.classes.push("json-schema-allOf"),t},properties(...e){const t=new ta.ObjectElement(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new ny(...e),xml:(...e)=>new ry(...e),externalDocs:(...e)=>new Gd(...e)},DefinitionsElement:{"[key: *]":function(...e){return new ny(...e)}},ParametersDefinitionsElement:{"[key: *]":function(...e){return new Kd(...e)}},ResponsesDefinitionsElement:{"[key: *]":function(...e){return new Zd(...e)}},SecurityDefinitionsElement:{"[key: *]":function(...e){return new uy(...e)}},SecuritySchemeElement:{scopes:(...e)=>new ly(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new ta.ArrayElement(...e)}},[vy.primaryClass]:{"<*>":function(...e){return new Kd(...e)}},[Ay.primaryClass]:{"<*>":function(...e){return new fy(...e)}},[Ty.primaryClass]:{"<*>":function(...e){return new Kd(...e)}},[Jy.primaryClass]:{"<*>":function(...e){return new fy(...e)}},[Ky.primaryClass]:{"<*>":function(...e){return new ty(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new ny(...e)}},"json-schema-allOf":{"<*>":function(...e){return new ny(...e)}}},rg=(e,t)=>{const n=eg(e),r=ng[n]||ng[Nh(e.classes.first)];return void 0===r?void 0:Object.prototype.hasOwnProperty.call(r,"[key: *]")?r["[key: *]"]:r[t]};var sg=Object.defineProperty,ig=(e,t,n)=>((e,t,n)=>t in e?sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n);class og{constructor(e={}){ig(this,"element"),Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lh(t.meta,e.meta)),Pa(e)&&yh(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lh(t.attributes,e.attributes))}}class ag extends og{enter(e){return this.element=gh(e),oh}}var cg=Object.defineProperty,ug=Object.getOwnPropertySymbols,lg=Object.prototype.hasOwnProperty,fg=Object.prototype.propertyIsEnumerable,pg=(e,t,n)=>t in e?cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mg=(e,t)=>{for(var n in t||(t={}))lg.call(t,n)&&pg(e,n,t[n]);if(ug)for(var n of ug(t))fg.call(t,n)&&pg(e,n,t[n]);return e},hg=(e,t,n)=>pg(e,"symbol"!=typeof t?t+"":t,n);class dg extends og{constructor(e){var t=e,{specObj:n}=t,r=((e,t)=>{var n={};for(var r in e)lg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ug)for(var r of ug(e))t.indexOf(r)<0&&fg.call(e,r)&&(n[r]=e[r]);return n})(t,["specObj"]);super(mg({},r)),hg(this,"specObj"),hg(this,"passingOptionsNames",["specObj"]),this.specObj=n}retrievePassingOptions(){return pt(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=lt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ft(_t,["visitors",...e],this.specObj)?lt(["visitors",...e],this.specObj):lt(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))(mg(mg({},n),t))}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof ag&&(null==r?void 0:r.constructor)===ag?gh(t):(Sh(t,r,n),r.element)}}const yg=e=>pa(e.key)&&bt("x-",Nh(e.key)),gg=e=>ya(e)&&e.hasKey("$ref"),vg=Object.freeze(Object.defineProperty({__proto__:null,isReferenceLikeElement:gg,isSwaggerExtension:yg},Symbol.toStringTag,{value:"Module"}));var bg=Object.defineProperty,Eg=Object.getOwnPropertySymbols,wg=Object.prototype.hasOwnProperty,jg=Object.prototype.propertyIsEnumerable,Og=(e,t,n)=>t in e?bg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pg=(e,t,n)=>Og(e,"symbol"!=typeof t?t+"":t,n);class Sg extends dg{constructor(e){var t=e,{specPath:n,ignoredFields:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:i}=t,o=((e,t)=>{var n={};for(var r in e)wg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Eg)for(var r of Eg(e))t.indexOf(r)<0&&jg.call(e,r)&&(n[r]=e[r]);return n})(t,["specPath","ignoredFields","canSupportSpecificationExtensions","specificationExtensionPredicate"]);super(((e,t)=>{for(var n in t||(t={}))wg.call(t,n)&&Og(e,n,t[n]);if(Eg)for(var n of Eg(t))jg.call(t,n)&&Og(e,n,t[n]);return e})({},o)),Pg(this,"specPath"),Pg(this,"ignoredFields"),Pg(this,"canSupportSpecificationExtensions",!0),Pg(this,"specificationExtensionPredicate",yg),this.specPath=n,this.ignoredFields=r||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof i&&(this.specificationExtensionPredicate=i)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(pa(r)&&n.includes(Nh(r))&&!this.ignoredFields.includes(Nh(r))){const n=this.toRefractedElement([...t,"fixedFields",Nh(r)],e),i=new ta.MemberElement(gh(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Nh(r))||this.element.content.push(gh(s))})),this.copyMetaAndAttributes(e,this.element),oh}}let xg=class extends(od(Sg,ag)){constructor(e){super(e),this.element=new qd,this.specPath=fe(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}};class Ag extends(od(dg,ag)){StringElement(e){const t=new Ld(Nh(e));return this.copyMetaAndAttributes(e,t),this.element=t,oh}}let _g=class extends(od(dg,ag)){constructor(e){super(e),this.element=new Jy}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),oh}},kg=class extends(od(dg,ag)){constructor(e){super(e),this.element=new Ky}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),oh}};class Ig extends(od(Sg,ag)){constructor(e){super(e),this.element=new Vd,this.specPath=fe(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}class Mg extends(od(Sg,ag)){constructor(e){super(e),this.element=new Bd,this.specPath=fe(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}class $g extends(od(Sg,ag)){constructor(e){super(e),this.element=new zd,this.specPath=fe(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}var Tg=Object.defineProperty,Rg=Object.getOwnPropertySymbols,Fg=Object.prototype.hasOwnProperty,Ng=Object.prototype.propertyIsEnumerable,Cg=(e,t,n)=>t in e?Tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dg=(e,t,n)=>Cg(e,"symbol"!=typeof t?t+"":t,n);class qg extends dg{constructor(e){var n=e,{specPath:r,ignoredFields:s,fieldPatternPredicate:i,canSupportSpecificationExtensions:o,specificationExtensionPredicate:a}=n,c=((e,t)=>{var n={};for(var r in e)Fg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Rg)for(var r of Rg(e))t.indexOf(r)<0&&Ng.call(e,r)&&(n[r]=e[r]);return n})(n,["specPath","ignoredFields","fieldPatternPredicate","canSupportSpecificationExtensions","specificationExtensionPredicate"]);super(((e,t)=>{for(var n in t||(t={}))Fg.call(t,n)&&Cg(e,n,t[n]);if(Rg)for(var n of Rg(t))Ng.call(t,n)&&Cg(e,n,t[n]);return e})({},c)),Dg(this,"specPath"),Dg(this,"ignoredFields"),Dg(this,"fieldPatternPredicate",t),Dg(this,"canSupportSpecificationExtensions",!1),Dg(this,"specificationExtensionPredicate",yg),this.specPath=r,this.ignoredFields=s||[],"function"==typeof i&&(this.fieldPatternPredicate=i),"boolean"==typeof o&&(this.canSupportSpecificationExtensions=o),"function"==typeof a&&(this.specificationExtensionPredicate=a)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Nh(t))&&this.fieldPatternPredicate(Nh(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new ta.MemberElement(gh(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Nh(t))||this.element.content.push(gh(n))})),this.copyMetaAndAttributes(e,this.element),oh}}const Lg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qd||e(r)&&t("swagger",r)&&n("object",r))),Vg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ld||e(r)&&t("swaggerVersion",r)&&n("string",r))),Bg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vd||e(r)&&t("info",r)&&n("object",r))),zg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zd||e(r)&&t("license",r)&&n("object",r))),Hg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Bd||e(r)&&t("contact",r)&&n("object",r))),Jg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Hd||e(r)&&t("paths",r)&&n("object",r))),Ug=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Jd||e(r)&&t("pathItem",r)&&n("object",r))),Gg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ud||e(r)&&t("operation",r)&&n("object",r))),Kg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gd||e(r)&&t("externalDocumentation",r)&&n("object",r))),Wg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Kd||e(r)&&t("parameter",r)&&n("object",r))),Xg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Wd||e(r)&&t("items",r)&&n("object",r))),Yg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Yd||e(r)&&t("responses",r)&&n("object",r))),Zg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zd||e(r)&&t("response",r)&&n("object",r))),Qg=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qd||e(r)&&t("headers",r)&&n("object",r))),ev=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xd||e(r)&&t("example",r)&&n("object",r))),tv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ey||e(r)&&t("header",r)&&n("object",r))),nv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ty||e(r)&&t("tag",r)&&n("object",r))),rv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sy||e(r)&&t("reference",r)&&n("object",r))),sv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ny||e(r)&&t("schema",r)&&n("object",r))),iv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ry||e(r)&&t("xml",r)&&n("object",r))),ov=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ay||e(r)&&t("responsesDefinitions",r)&&n("object",r))),av=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof cy||e(r)&&t("securityDefinitions",r)&&n("object",r))),cv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof iy||e(r)&&t("definitions",r)&&n("object",r))),uv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oy||e(r)&&t("parametersDefinitions",r)&&n("object",r))),lv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof uy||e(r)&&t("securityScheme",r)&&n("object",r))),fv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ly||e(r)&&t("scopes",r)&&n("object",r))),pv=la((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fy||e(r)&&t("securityRequirement",r)&&n("object",r))),mv=Object.freeze(Object.defineProperty({__proto__:null,isContactElement:Hg,isDefinitionsElement:cv,isExampleElement:ev,isExternalDocumentationElement:Kg,isHeaderElement:tv,isHeadersElement:Qg,isInfoElement:Bg,isItemsElement:Xg,isLicenseElement:zg,isOperationElement:Gg,isParameterElement:Wg,isParametersDefinitionsElement:uv,isPathItemElement:Ug,isPathsElement:Jg,isReferenceElement:rv,isResponseElement:Zg,isResponsesDefinitionsElement:ov,isResponsesElement:Yg,isSchemaElement:sv,isScopesElement:fv,isSecurityDefinitionsElement:av,isSecurityRequirementElement:pv,isSecuritySchemeElement:lv,isSwaggerElement:Lg,isSwaggerVersionElement:Vg,isTagElement:nv,isXmlElement:iv},Symbol.toStringTag,{value:"Module"}));var hv=Object.defineProperty,dv=(e,t,n)=>((e,t,n)=>t in e?hv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n);class yv extends(od(qg,ag)){constructor(e){super(e),dv(this,"element"),this.element=new Hd,this.specPath=fe(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=n}ObjectElement(e){const t=qg.prototype.ObjectElement.call(this,e);return this.element.filter(Ug).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",gh(t))})),t}}class gv extends(od(Sg,ag)){constructor(e){super(e),this.element=new Jd,this.specPath=fe(["document","objects","PathItem"])}ObjectElement(e){const t=Sg.prototype.ObjectElement.call(this,e);return this.element.filter(Gg).forEach(((e,t)=>{const n=gh(t);n.content=Nh(n).toUpperCase(),e.setMetaProperty("http-method",n)})),pa(this.element.$ref)&&this.element.classes.push("reference-element"),t}}let vv=class extends(od(dg,ag)){constructor(e){super(e),this.element=new Ty}ArrayElement(e){return e.forEach((e=>{const t=gg(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);rv(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),oh}};class bv extends(od(Sg,ag)){constructor(e){super(e),this.element=new Ud,this.specPath=fe(["document","objects","Operation"])}}class Ev extends(od(dg,ag)){constructor(e){super(e),this.element=new vy}ArrayElement(e){return e.forEach((e=>{const t=gg(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);rv(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),oh}}class wv extends(od(dg,ag)){constructor(e){super(e),this.element=new Ay}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),oh}}class jv extends(od(Sg,ag)){constructor(e){super(e),this.element=new Gd,this.specPath=fe(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}class Ov extends(od(Sg,ag)){constructor(e){super(e),this.element=new Kd,this.specPath=fe(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}var Pv=Object.defineProperty,Sv=(e,t,n)=>((e,t,n)=>t in e?Pv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let xv=class extends(od(Sg,ag)){constructor(e){super(e),Sv(this,"specPath"),Sv(this,"canSupportSpecificationExtensions"),this.element=new Wd,this.specPath=fe(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}};var Av=Object.defineProperty,_v=Object.getOwnPropertySymbols,kv=Object.prototype.hasOwnProperty,Iv=Object.prototype.propertyIsEnumerable,Mv=(e,t,n)=>t in e?Av(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$v=(e,t,n)=>Mv(e,"symbol"!=typeof t?t+"":t,n);class Tv extends(od(Sg,qg)){constructor(e){var t=e,{specPathFixedFields:n,specPathPatternedFields:r}=t,s=((e,t)=>{var n={};for(var r in e)kv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_v)for(var r of _v(e))t.indexOf(r)<0&&Iv.call(e,r)&&(n[r]=e[r]);return n})(t,["specPathFixedFields","specPathPatternedFields"]);super(((e,t)=>{for(var n in t||(t={}))kv.call(t,n)&&Mv(e,n,t[n]);if(_v)for(var n of _v(t))Iv.call(t,n)&&Mv(e,n,t[n]);return e})({},s)),$v(this,"specPathFixedFields"),$v(this,"specPathPatternedFields"),this.specPathFixedFields=n,this.specPathPatternedFields=r}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...Ne(e.keys(),t)],Sg.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,qg.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return oh}}class Rv extends(od(Tv,ag)){constructor(e){super(e),this.element=new Yd,this.specPathFixedFields=fe(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>gg(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=Et(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${dt(100,600).join("|")})$`))}ObjectElement(e){const t=Tv.prototype.ObjectElement.call(this,e);return this.element.filter(rv).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Zg).forEach(((e,t)=>{const n=gh(t);this.fieldPatternPredicate(Nh(n))&&e.setMetaProperty("http-status-code",n)})),t}}var Fv=Object.defineProperty,Nv=Object.getOwnPropertySymbols,Cv=Object.prototype.hasOwnProperty,Dv=Object.prototype.propertyIsEnumerable,qv=(e,t,n)=>t in e?Fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Lv extends dg{constructor(e){var t=e,{alternator:n}=t,r=((e,t)=>{var n={};for(var r in e)Cv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Nv)for(var r of Nv(e))t.indexOf(r)<0&&Dv.call(e,r)&&(n[r]=e[r]);return n})(t,["alternator"]);super(((e,t)=>{for(var n in t||(t={}))Cv.call(t,n)&&qv(e,n,t[n]);if(Nv)for(var n of Nv(t))Dv.call(t,n)&&qv(e,n,t[n]);return e})({},r)),((e,t,n)=>{qv(e,t+"",n)})(this,"alternator"),this.alternator=n||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ye(e,fe(t),wt))),n=Gt(t)(e);return this.element=this.toRefractedElement(n,e),oh}}class Vv extends(od(Lv,ag)){constructor(e){super(e),this.alternator=[{predicate:gg,specPath:["document","objects","Reference"]},{predicate:n,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Lv.prototype.enter.call(this,e);return rv(this.element)?this.element.setMetaProperty("referenced-element","response"):Zg(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}class Bv extends(od(Sg,ag)){constructor(e){super(e),this.element=new Zd,this.specPath=fe(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}class zv extends qg{constructor(e){super(e),this.fieldPatternPredicate=Nt}}class Hv extends(od(zv,ag)){constructor(e){super(e),this.element=new Qd,this.specPath=fe(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}class Jv extends(od(zv,ag)){constructor(e){super(e),this.element=new Xd,this.specPath=fe(["value"]),this.canSupportSpecificationExtensions=!1}}class Uv extends(od(Sg,ag)){constructor(e){super(e),this.element=new ey,this.specPath=fe(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}class Gv extends(od(Sg,ag)){constructor(e){super(e),this.element=new ty,this.specPath=fe(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}class Kv extends(od(Sg,ag)){constructor(e){super(e),this.element=new sy,this.specPath=fe(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Sg.prototype.ObjectElement.call(this,e);return pa(this.element.$ref)&&this.element.classes.push("reference-element"),t}}class Wv extends(od(Sg,ag)){constructor(e){super(e),this.element=new ny,this.specPath=fe(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Xv=Rd.visitors.document.objects.JSONSchema.fixedFields.allOf;const Yv=Rd.visitors.document.objects.JSONSchema.fixedFields.items;const Zv=Rd.visitors.document.objects.JSONSchema.fixedFields.properties;const Qv=Rd.visitors.JSONSchemaOrJSONReferenceVisitor;class eb extends Qv{ObjectElement(e){const t=Qv.prototype.enter.call(this,e);return pd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}class tb extends(od(Sg,ag)){constructor(e){super(e),this.element=new ry,this.specPath=fe(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}class nb extends(od(zv,ag)){constructor(e){super(e),this.element=new iy,this.specPath=e=>gd(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=zv.prototype.ObjectElement.call(this,e);return this.element.filter(pd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}class rb extends(od(zv,ag)){constructor(e){super(e),this.element=new ay,this.specPath=fe(["document","objects","Response"])}}class sb extends(od(zv,ag)){constructor(e){super(e),this.element=new oy,this.specPath=fe(["document","objects","Parameter"])}}var ib=Object.defineProperty,ob=(e,t,n)=>((e,t,n)=>t in e?ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n);class ab extends(od(zv,ag)){constructor(e){super(e),ob(this,"element"),this.element=new cy,this.specPath=fe(["document","objects","SecurityScheme"])}}class cb extends(od(Sg,ag)){constructor(e){super(e),this.element=new uy,this.specPath=fe(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}class ub extends(od(zv,ag)){constructor(e){super(e),this.element=new ly,this.specPath=fe(["value"]),this.canSupportSpecificationExtensions=!0}}class lb extends(od(zv,ag)){constructor(e){super(e),this.element=new fy,this.specPath=fe(["value"])}}const{fixedFields:fb}=Rd.visitors.document.objects.JSONSchema,pb={visitors:{value:ag,document:{objects:{JSONReference:Rd.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:xg,fixedFields:{swagger:Ag,info:{$ref:"#/visitors/document/objects/Info"},host:class extends ag{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}},basePath:class extends ag{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}},schemes:class extends ag{constructor(e){super(e),this.element=new Ny}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},consumes:class extends ag{constructor(e){super(e),this.element=new qy}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},produces:class extends ag{constructor(e){super(e),this.element=new By}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:_g,tags:kg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Ig,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 ag{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}}}},Contact:{$visitor:Mg,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:$g,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:yv},PathItem:{$visitor:gv,fixedFields:{$ref:class extends ag{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},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"},parameters:vv}},Operation:{$visitor:bv,fixedFields:{tags:class extends ag{constructor(e){super(e),this.element=new Iy}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:class extends ag{constructor(e){super(e),this.element=new dy}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},produces:class extends ag{constructor(e){super(e),this.element=new wy}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},parameters:Ev,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:class extends ag{constructor(e){super(e),this.element=new Py}ArrayElement(e){return this.element=this.element.concat(gh(e)),oh}},deprecated:{$ref:"#/visitors/value"},security:wv}},ExternalDocumentation:{$visitor:jv,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Ov,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:fb.description,required:fb.required,schema:eb,type:fb.type,format:fb.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:fb.default,maximum:fb.maximum,exclusiveMaximum:fb.exclusiveMaximum,minimum:fb.minimum,exclusiveMinimum:fb.exclusiveMinimum,maxLength:fb.maxLength,minLength:fb.minLength,pattern:fb.pattern,maxItems:fb.maxItems,minItems:fb.minItems,uniqueItems:fb.uniqueItems,enum:fb.enum,multipleOf:fb.multipleOf}},Items:{$visitor:xv,fixedFields:{type:fb.type,format:fb.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:fb.default,maximum:fb.maximum,exclusiveMaximum:fb.exclusiveMaximum,minimum:fb.minimum,exclusiveMinimum:fb.exclusiveMinimum,maxLength:fb.maxLength,minLength:fb.minLength,pattern:fb.pattern,maxItems:fb.maxItems,minItems:fb.minItems,uniqueItems:fb.uniqueItems,enum:fb.enum,multipleOf:fb.multipleOf}},Responses:{$visitor:Rv,fixedFields:{default:Vv}},Response:{$visitor:Bv,fixedFields:{description:{$ref:"#/visitors/value"},schema:eb,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:Hv},Example:{$visitor:Jv},Header:{$visitor:Uv,fixedFields:{description:fb.description,type:fb.type,format:fb.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:fb.default,maximum:fb.maximum,exclusiveMaximum:fb.exclusiveMaximum,minimum:fb.minimum,exclusiveMinimum:fb.exclusiveMinimum,maxLength:fb.maxLength,minLength:fb.minLength,pattern:fb.pattern,maxItems:fb.maxItems,minItems:fb.minItems,uniqueItems:fb.uniqueItems,enum:fb.enum,multipleOf:fb.multipleOf}},Tag:{$visitor:Gv,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Kv,fixedFields:{$ref:class extends ag{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},Schema:{$visitor:Wv,fixedFields:{format:fb.format,title:fb.title,description:fb.description,default:fb.default,multipleOf:fb.multipleOf,maximum:fb.maximum,exclusiveMaximum:fb.exclusiveMaximum,minimum:fb.minimum,exclusiveMinimum:fb.exclusiveMinimum,maxLength:fb.maxLength,minLength:fb.minLength,pattern:fb.pattern,maxItems:fb.maxItems,minItems:fb.minItems,uniqueItems:fb.uniqueItems,maxProperties:fb.maxProperties,minProperties:fb.minProperties,required:fb.required,enum:fb.enum,type:fb.type,readOnly:fb.readOnly,items:class extends Yv{ObjectElement(e){const t=Yv.prototype.ObjectElement.call(this,e);return pd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=Yv.prototype.ArrayElement.call(this,e);return this.element.filter(pd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},allOf:class extends Xv{ArrayElement(e){const t=Xv.prototype.ArrayElement.call(this,e);return this.element.filter(pd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},properties:class extends Zv{ObjectElement(e){const t=Zv.prototype.ObjectElement.call(this,e);return this.element.filter(pd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},additionalProperties:eb,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:tb,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:nb},ParametersDefinitions:{$visitor:sb},ResponsesDefinitions:{$visitor:rb},SecurityDefinitions:{$visitor:ab},SecurityScheme:{$visitor:cb,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:ub},SecurityRequirement:{$visitor:lb}},extension:{$visitor:class extends dg{MemberElement(e){return this.element=gh(e),this.element.classes.push("specification-extension"),oh}}}}}};var mb=Object.defineProperty,hb=Object.defineProperties,db=Object.getOwnPropertyDescriptors,yb=Object.getOwnPropertySymbols,gb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,bb=(e,t,n)=>t in e?mb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eb=(e,t)=>{for(var n in t||(t={}))gb.call(t,n)&&bb(e,n,t[n]);if(yb)for(var n of yb(t))vb.call(t,n)&&bb(e,n,t[n]);return e};const wb=()=>{const e=ka(py);var t;return{predicates:(t=Eb(Eb({},vg),mv),hb(t,db({isStringElement:pa}))),namespace:e}};var jb=Object.defineProperty,Ob=Object.getOwnPropertySymbols,Pb=Object.prototype.hasOwnProperty,Sb=Object.prototype.propertyIsEnumerable,xb=(e,t,n)=>t in e?jb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Ab=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=ta.refract(e),s=dh(pb),i=new(lt(t,s))({specObj:s});return Sh(r,i),Ah(i.element,n,{toolboxCreator:wb,visitorOptions:{keyMap:tg,nodeTypeGetter:eg}})};e.AlternatingVisitor=Lv,e.ContactElement=Bd,e.DefinitionsElement=iy,e.ExampleElement=Xd,e.ExternalDocumentationElement=Gd,e.FallbackVisitor=ag,e.FixedFieldsVisitor=Sg,e.HeaderElement=ey,e.HeadersElement=Qd,e.InfoElement=Vd,e.ItemsElement=Wd,e.JSONReferenceElement=Bh,e.LicenseElement=zd,e.MapVisitor=zv,e.MixedFieldsVisitor=Tv,e.OpenAPIMediaTypes=Cd,e.OperationConsumesElement=dy,e.OperationElement=Ud,e.OperationParametersElement=vy,e.OperationProducesElement=wy,e.OperationSchemesElement=Py,e.OperationSecurityElement=Ay,e.OperationTagsElement=Iy,e.ParameterElement=Kd,e.ParametersDefinitionsElement=oy,e.PathItemElement=Jd,e.PathItemParametersElement=Ty,e.PathsElement=Hd,e.PatternedFieldsVisitor=qg,e.ReferenceElement=sy,e.ResponseElement=Zd,e.ResponsesDefinitionsElement=ay,e.ResponsesElement=Yd,e.SchemaElement=ny,e.ScopesElement=ly,e.SecurityDefinitionsElement=cy,e.SecurityRequirementElement=fy,e.SecuritySchemeElement=uy,e.SpecificationVisitor=dg,e.SwaggerConsumesElement=qy,e.SwaggerElement=qd,e.SwaggerProducesElement=By,e.SwaggerSchemesElement=Ny,e.SwaggerSecurityElement=Jy,e.SwaggerTagsElement=Ky,e.SwaggerVersionElement=Ld,e.TagElement=ty,e.Visitor=og,e.XmlElement=ry,e.createRefractor=e=>(t,n={})=>Ab(t,((e,t)=>{for(var n in t||(t={}))Pb.call(t,n)&&xb(e,n,t[n]);if(Ob)for(var n of Ob(t))Sb.call(t,n)&&xb(e,n,t[n]);return e})({specPath:e},n)),e.default=py,e.getNodeType=eg,e.isArrayElement=ga,e.isBooleanElement=da,e.isContactElement=Hg,e.isDefinitionsElement=cv,e.isElement=fa,e.isExampleElement=ev,e.isExternalDocumentationElement=Kg,e.isHeaderElement=tv,e.isHeadersElement=Qg,e.isInfoElement=Bg,e.isItemsElement=Xg,e.isJSONReferenceElement=pd,e.isJSONReferenceLikeElement=gd,e.isLicenseElement=zg,e.isLinkPrimitiveElement=ba,e.isMemberElement=va,e.isNullElement=ha,e.isNumberElement=ma,e.isObjectElement=ya,e.isOperationElement=Gg,e.isParameterElement=Wg,e.isParametersDefinitionsElement=uv,e.isPathItemElement=Ug,e.isPathsElement=Jg,e.isRefElement=Ea,e.isReferenceElement=rv,e.isReferenceLikeElement=gg,e.isResponseElement=Zg,e.isResponsesDefinitionsElement=ov,e.isResponsesElement=Yg,e.isSchemaElement=sv,e.isScopesElement=fv,e.isSecurityDefinitionsElement=av,e.isSecurityRequirementElement=pv,e.isSecuritySchemeElement=lv,e.isStringElement=pa,e.isSwaggerElement=Lg,e.isSwaggerExtension=yg,e.isSwaggerVersionElement=Vg,e.isTagElement=nv,e.isXmlElement=iv,e.keyMap=tg,e.mediaTypes=Dd,e.refract=Ab,e.refractorPluginReplaceEmptyElement=()=>()=>({visitor:{StringElement(e,t,n,r,s){if(!(e=>pa(e)&&Sa(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,n].filter(fa),o=i[i.length-1];let a,c;if(ga(o)?(c=e,a=rg(o,"<*>")):va(o)&&(c=i[i.length-2],a=rg(c,Nh(o.key))),"function"!=typeof a)return;const u=a.call({context:c},void 0,gh(e.meta),gh(e.attributes));return yh(u,e)}}}),e.specificationObj=pb,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));