@swagger-api/apidom-core 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomCore=e():t.apidomCore=e()}(self,(()=>(()=>{var t={85:(t,e,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var a in n)i(s[a],a),o[a]=o.Array},88:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).get(t)}},155:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},164:(t,e,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),f=r(1811),h=r(3999),p=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,_=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",x="values",j="entries",O=function(){return this};t.exports=function(t,e,r,o,m,y,S){c(r,e,o);var A,k,M,P=function(t){if(t===m&&N)return N;if(!_&&t&&t in T)return T[t];switch(t){case w:case x:case j:return function(){return new r(this,t)}}return function(){return new r(this)}},C=e+" Iterator",I=!1,T=t.prototype,R=T[E]||T["@@iterator"]||m&&T[m],N=!_&&R||P(m),U="Array"===e&&T.entries||R;if(U&&(A=u(U.call(new t)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):a(A[E])||p(A,E,O)),f(A,C,!0,!0),i&&(d[C]=O)),v&&m===x&&R&&R.name!==x&&(!i&&g?h(T,"name",x):(I=!0,N=function(){return s(R,this)})),m)if(k={values:P(x),keys:y?N:P(w),entries:P(j)},S)for(M in k)(_||I||!(M in T))&&p(T,M,k[M]);else n({target:e,proto:!0,forced:_||I},k);return i&&!S||T[E]===N||p(T,E,N,{name:m}),d[e]=N,k}},195:(t,e,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},208:(t,e,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),f=r(967),h=r(1743),p=TypeError,m=function(t,e){this.stopped=t,this.result=e},d=m.prototype;t.exports=function(t,e,r){var y,v,g,b,_,E,w,x=r&&r.that,j=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),k=n(e,x),M=function(t){return y&&h(y,"normal",t),new m(!0,t)},P=function(t){return j?(i(t),A?k(t[0],t[1],M):k(t[0],t[1])):A?k(t,M):k(t)};if(O)y=t.iterator;else if(S)y=t;else{if(!(v=f(t)))throw new p(o(t)+" is not iterable");if(a(v)){for(g=0,b=c(t);b>g;g++)if((_=P(t[g]))&&u(d,_))return _;return new m(!1)}y=l(t,v)}for(E=O?t.next:y.next;!(w=s(E,y)).done;){try{_=P(w.value)}catch(t){h(y,"throw",t)}if("object"==typeof _&&_&&u(d,_))return _}return new m(!1)}},239:(t,e,r)=>{"use strict";r(5442);var n=r(6656);r(85),t.exports=n},262:(t,e,r)=>{"use strict";var n=r(2769);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},353:(t,e,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,y,v){var g=c(t),b=c(e),_=g?h:a(t),E=b?h:a(e),w=(_=_==f?p:_)==p,x=(E=E==f?p:E)==p,j=_==E;if(j&&u(t)){if(!u(e))return!1;g=!0,w=!1}if(j&&!w)return v||(v=new n),g||l(t)?s(t,e,r,d,y,v):i(t,e,_,r,d,y,v);if(!(1&r)){var O=w&&m.call(t,"__wrapped__"),S=x&&m.call(e,"__wrapped__");if(O||S){var A=O?t.value():t,k=S?e.value():e;return v||(v=new n),y(A,k,r,d,v)}}return!!j&&(v||(v=new n),o(t,e,r,d,y,v))}},358:(t,e,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),f=!r&&!l&&o(t),h=!r&&!l&&!f&&c(t),p=r||l||f||h,m=p?n(t.length,String):[],d=m.length;for(var y in t)!e&&!u.call(t,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,d))||m.push(y);return m}},393:(t,e,r)=>{var n=r(8244),s=r(7979),i=r(1211);t.exports=function(t){return n(t,i,s)}},394:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},459:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},480:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},484:(t,e,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=o(t,e,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(t,e){if(c&&c[t]){var r={};r[t]=o(a+"."+t,e,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},493:(t,e,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,c=o(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},593:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},674:(t,e,r)=>{var n=r(7379),s=r(5387),i=r(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,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},701:(t,e,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},814:(t,e,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},877:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},967:(t,e,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},986:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==n(t)}},1003:(t,e,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},1005:(t,e,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(t){return function(e,r,o){var a=n(e),c=i(a);if(0===c)return!t&&-1;var u,l=s(o,c);if(t&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},1100:t=>{"use strict";t.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:(t,e,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},1129:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}},1139:(t,e,r)=>{"use strict";var n=r(8407),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},1182:(t,e,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,o,a){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var h=u[f];if(!(c?h in e:s.call(e,h)))return!1}var p=a.get(t),m=a.get(e);if(p&&m)return p==e&&m==t;var d=!0;a.set(t,e),a.set(e,t);for(var y=c;++f<l;){var v=t[h=u[f]],g=e[h];if(i)var b=c?i(g,v,h,e,t,a):i(v,g,h,t,e,a);if(!(void 0===b?v===g||o(v,g,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var _=t.constructor,E=e.constructor;_==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(d=!1)}return a.delete(t),a.delete(e),d}},1203:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},1211:(t,e,r)=>{var n=r(358),s=r(195),i=r(6529);t.exports=function(t){return i(t)?n(t):s(t)}},1212:(t,e,r)=>{t.exports=r(8411)},1268:(t,e,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},1314:(t,e,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},1330:(t,e,r)=>{"use strict";var n=r(5024),s=r(1203);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(t,e,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},1386:(t,e,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},1395:(t,e,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},1517:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},1613:(t,e,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw new c(o(t)+" is not iterable")}},1623:(t,e,r)=>{var n=r(8942).Uint8Array;t.exports=n},1743:(t,e,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},1779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},1780:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1811:(t,e,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");t.exports=function(t,e,r,u){var l=r?t:t&&t.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:e}),u&&!n&&i(l,"toString",a))}},1877:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1926:(t,e,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!u,r)}),o(t,l,!1,!0),a[l]=c,t}},1950:(t,e,r)=>{var n=r(8942)["__core-js_shared__"];t.exports=n},1966:(t,e,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},2049:(t,e,r)=>{var n=r(7034),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},2137:(t,e,r)=>{"use strict";var n=r(5426),s=Object;t.exports=function(t){return s(n(t))}},2306:(t,e,r)=>{t=r.nmd(t);var n=r(4967),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},2322:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},2393:t=>{t.exports=function(){this.__data__=[],this.size=0}},2536:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},2555:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==n(t)}},2621:(t,e,r)=>{"use strict";var n,s,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),f=r(3508),h=r(8655),p=r(4871),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var t={};return n[m].call(t)!==t}))?n={}:p&&(n=u(n)),a(n[m])||f(n,m,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2769:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2871:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2877:(t,e,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},2937:(t,e,r)=>{"use strict";var n=r(262);t.exports=function(t){return n(t)||null===t}},3004:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:t=>{"use strict";t.exports=function(t){return null==t}},3085:(t,e,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),f=r(8148),h=r(4279),p=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,g=function(t,e){var r,n=s(b,this);o?r=o(new y,n?i(this):b):(r=n?this:c(b),u(r,d,"Error")),void 0!==e&&u(r,"message",m(e)),h(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return p(t,v,{that:a}),u(r,"errors",a),r};o?o(g,y):a(g,y,{name:!0});var b=g.prototype=c(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},3103:(t,e,r)=>{var n=r(4715)(r(8942),"DataView");t.exports=n},3142:t=>{var e=Array.isArray;t.exports=e},3148:(t,e,r)=>{const n=r(394);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},3212:(t,e,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},3273:(t,e,r)=>{"use strict";var n=r(1395),s=r(5426);t.exports=function(t){return n(s(t))}},3283:(t,e,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},3305:(t,e,r)=>{var n=r(4497);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(t,e,r)=>{const n=r(1517),s=r(4123);class i extends s{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},3410:(t,e,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3489:(t,e,r)=>{"use strict";var n=r(1003);t.exports=n("document","documentElement")},3491:(t,e,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),o(n),s(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},3507:(t,e,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},3508:(t,e,r)=>{"use strict";var n=r(3999);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},3531:(t,e,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;t.exports=s?String(s):""},3574:(t,e,r)=>{"use strict";var n=r(6100),s=r(814);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},3655:(t,e,r)=>{var n=r(7379),s=r(1580);t.exports=function(t){if(!s(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3671:(t,e,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),a=r(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},3753:(t,e,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",a=t.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:n?"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:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},3832:(t,e,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(t){u(this,{type:c,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},3885:(t,e,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);t.exports=function(t,e){if(c&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},3934:(t,e,r)=>{var n=r(3212),s=r(6465),i=r(5568);t.exports=function(t,e,r,o,a,c){var u=1&r,l=t.length,f=e.length;if(l!=f&&!(u&&f>l))return!1;var h=c.get(t),p=c.get(e);if(h&&p)return h==e&&p==t;var m=-1,d=!0,y=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++m<l;){var v=t[m],g=e[m];if(o)var b=u?o(g,v,m,e,t,c):o(v,g,m,t,e,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(e,(function(t,e){if(!i(y,e)&&(v===t||a(v,t,r,o,c)))return y.push(e)}))){d=!1;break}}else if(v!==g&&!a(v,g,r,o,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},3964:(t,e,r)=>{var n=r(7034);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},3999:(t,e,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},4066:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},4103:(t,e,r)=>{var n=r(1386);t.exports=function(){this.__data__=new n,this.size=0}},4123:(t,e,r)=>{const n=r(1517);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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]()}),t.exports=i},4162:t=>{t.exports=function(t){return this.__data__.get(t)}},4275:(t,e,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},4279:(t,e,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},4317:(t,e,r)=>{"use strict";var n=r(6100);t.exports=n({}.isPrototypeOf)},4497:(t,e,r)=>{var n=r(4715)(Object,"create");t.exports=n},4512:(t,e,r)=>{var n=r(4715)(r(8942),"Set");t.exports=n},4543:(t,e,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},4572:(t,e,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},4574:(t,e,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},4603:(t,e,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(t,e,r)=>{"use strict";var n=r(814),s=r(3057);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},4687:(t,e,r)=>{var n=r(353),s=r(547);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},4700:(t,e,r)=>{var n=r(9067);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},4713:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(t,e,r)=>{var n=r(9624),s=r(155);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},4732:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).has(t)}},4759:(t,e,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},4772:t=>{t.exports=function(){return!1}},4871:t=>{"use strict";t.exports=!0},4879:(t,e,r)=>{"use strict";var n=r(1139);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},4882:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},4904:(t,e,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",t.exports="[object z]"===String(n)},4967:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},5024:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(t,e,r)=>{var n=r(4497);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5098:(t,e,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},5116:(t,e,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},5241:t=>{"use strict";t.exports={}},5276:(t,e,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},5341:(t,e,r)=>{"use strict";var n=r(493),s=r(6281);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},5387:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5426:(t,e,r)=>{"use strict";var n=r(3057),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},5442:(t,e,r)=>{"use strict";r(5695)},5516:(t,e,r)=>{"use strict";var n=r(9989).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},5547:(t,e,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},5568:t=>{t.exports=function(t,e){return t.has(e)}},5571:(t,e,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,f=i(o(e)),h=s(r),p=f.length;return h<0||h>=p?t?"":void 0:(n=c(f,h))<55296||n>56319||h+1===p||(l=c(f,h+1))<56320||l>57343?t?a(f,h):n:t?u(f,h,h+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},5642:(t,e,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),a=r(3311);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},5650:(t,e,r)=>{var n=r(8942).Symbol;t.exports=n},5681:(t,e,r)=>{var n=r(4700);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},5691:(t,e,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),a=r(7235),c=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?c(e,r(t)):e}},5695:(t,e,r)=>{"use strict";r(3085)},5735:(t,e,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.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(n,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(a,u.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},5777:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},5780:(t,e,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),f="prototype",h="script",p=l("IE_PROTO"),m=function(){},d=function(t){return"<"+h+">"+t+"</"+h+">"},y=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;v="undefined"!=typeof document?document.domain&&n?y(n):(e=u("iframe"),r="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};a[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(m[f]=s(t),r=new m,m[f]=null,r[p]=t):r=v(),void 0===e?r:i.f(r,e)}},5791:(t,e,r)=>{"use strict";var n=r(1203),s=r(480);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},5853:(t,e,r)=>{t=r.nmd(t);var n=r(8942),s=r(4772),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},5894:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},6027:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},6100:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},6137:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},6138:(t,e,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},6281:(t,e,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},6285:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6343:(t,e,r)=>{var n=r(4687);t.exports=function(t,e){return n(t,e)}},6453:(t,e,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),f=r(4879),h=r(8148),p=r(4279),m=r(5024),d=r(4871);t.exports=function(t,e,r,y){var v="stackTraceLimit",g=y?2:1,b=t.split("."),_=b[b.length-1],E=n.apply(null,b);if(E){var w=E.prototype;if(!d&&s(w,"cause")&&delete w.cause,!r)return E;var x=n("Error"),j=e((function(t,e){var r=f(y?e:t,void 0),n=y?new E(t):new E;return void 0!==r&&i(n,"message",r),p(n,j,n.stack,2),this&&o(w,this)&&l(n,this,j),arguments.length>g&&h(n,arguments[g]),n}));if(j.prototype=w,"Error"!==_?a?a(j,x):c(j,x,{name:!0}):m&&v in E&&(u(j,E,v),u(j,E,"prepareStackTrace")),c(j,E),!d)try{w.name!==_&&i(w,"name",_),w.constructor=j}catch(t){}return j}}},6465:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},6529:(t,e,r)=>{var n=r(3655),s=r(5387);t.exports=function(t){return null!=t&&s(t.length)&&!n(t)}},6625:t=>{"use strict";t.exports={}},6638:(t,e,r)=>{var n=r(1386),s=r(9770),i=r(8250);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},6656:(t,e,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);t.exports=n.AggregateError},6660:t=>{"use strict";var e=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(e,r,n)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,a=(t,e)=>{for(var r in e||(e={}))s.call(e,r)&&o(t,r,e[r]);if(n)for(var r of n(e))i.call(e,r)&&o(t,r,e[r]);return t},c=(t,e,r)=>o(t,"symbol"!=typeof e?e+"":e,r),u={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>f,DEFAULT_UUID_LENGTH:()=>l,default:()=>m});var l=6,f={dictionary:"alphanum",shuffle:!0,debug:!1,length:l,counter:0},h=class{constructor(t={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...t)=>{const e=[...t];e[0]="[short-unique-id] ".concat(t[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...e)})),c(this,"_normalizeDictionary",((t,e)=>{let r;if(t&&Array.isArray(t)&&t.length>1)r=t;else{r=[],this.dictIndex=0;const e="_".concat(t,"_dict_ranges"),n=this._dict_ranges[e];let s=0;for(const[,t]of Object.entries(n)){const[e,r]=t;s+=Math.abs(r-e)}r=new Array(s);let i=0;for(const[,t]of Object.entries(n)){this.dictRange=t,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const e=this.lowerBound<=this.upperBound,n=this.lowerBound,s=this.upperBound;if(e)for(let t=n;t<s;t++)r[i++]=String.fromCharCode(t),this.dictIndex=t;else for(let t=n;t>s;t--)r[i++]=String.fromCharCode(t),this.dictIndex=t}r.length=i}if(e){for(let t=r.length-1;t>0;t--){const e=Math.floor(Math.random()*(t+1));[r[t],r[e]]=[r[e],r[t]]}}return r})),c(this,"setDictionary",((t,e)=>{this.dict=this._normalizeDictionary(t,e),this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{const t=this.dictLength,e=this.dict;let r=this.counter;const n=[];do{const s=r%t;r=Math.trunc(r/t),n.push(e[s])}while(0!==r);const s=n.join("");return this.counter+=1,s})),c(this,"rnd",((t=this.uuidLength||l)=>this.randomUUID(t))),c(this,"randomUUID",((t=this.uuidLength||l)=>{if(null==t||t<1)throw new Error("Invalid UUID Length Provided");const e=new Array(t),r=this.dictLength,n=this.dict;for(let s=0;s<t;s++){const t=Math.floor(Math.random()*r);e[s]=n[t]}return e.join("")})),c(this,"fmt",((t,e)=>this.formattedUUID(t,e))),c(this,"formattedUUID",((t,e)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(t=>{const n=t.slice(0,2),s=Number.parseInt(t.slice(2),10);return"$s"===n?r[n]().padStart(s,"0"):"$t"===n&&e?r[n](s,e):r[n](s)}))})),c(this,"availableUUIDs",((t=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**t).toFixed(0)))),c(this,"_collisionCache",new Map),c(this,"approxMaxBeforeCollision",((t=this.availableUUIDs(this.uuidLength))=>{const e=t,r=this._collisionCache.get(e);if(void 0!==r)return r;const n=Number.parseFloat(Math.sqrt(Math.PI/2*t).toFixed(20));return this._collisionCache.set(e,n),n})),c(this,"collisionProbability",((t=this.availableUUIDs(this.uuidLength),e=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(t)/this.availableUUIDs(e)).toFixed(20)))),c(this,"uniqueness",((t=this.availableUUIDs(this.uuidLength))=>{const e=Number.parseFloat((1-this.approxMaxBeforeCollision(t)/t).toFixed(20));return e>1?1:e<0?0:e})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((t,e)=>{const r=Math.floor(+(e||new Date)/1e3).toString(16);if("number"==typeof t&&0===t)return r;if("number"!=typeof t||t<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const n=t-9,s=Math.round(Math.random()*(n>15?15:n)),i=this.randomUUID(n);return"".concat(i.substring(0,s)).concat(r).concat(i.substring(s)).concat(s.toString(16))})),c(this,"parseStamp",((t,e)=>{if(e&&!/t0|t[1-9]\d{1,}/.test(e))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=e?e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(t=>{const e={$r:t=>[...Array(t)].map((()=>"r")).join(""),$s:t=>[...Array(t)].map((()=>"s")).join(""),$t:t=>[...Array(t)].map((()=>"t")).join("")},r=t.slice(0,2),n=Number.parseInt(t.slice(2),10);return e[r](n)})).replace(/^(.*?)(t{8,})(.*)$/g,((e,r,n)=>t.substring(r.length,r.length+n.length))):t;if(8===r.length)return new Date(1e3*Number.parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const n=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(n,n+8),16))})),c(this,"setCounter",(t=>{this.counter=t})),c(this,"validate",((t,e)=>{const r=e?this._normalizeDictionary(e):this.dict;return t.split("").every((t=>r.includes(t)))}));const e=a(a({},f),t);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:r,shuffle:n,length:s,counter:i}=e;this.uuidLength=s,this.setDictionary(r,n),this.setCounter(i),this.debug=e.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};c(h,"default",h);var p,m=h;return p=u,((n,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))s.call(n,c)||c===o||t(n,c,{get:()=>i[c],enumerable:!(a=e(i,c))||a.enumerable});return n})(t({},"__esModule",{value:!0}),p)})();t.exports=e.default,"undefined"!=typeof window&&(e=e.default)},7013:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},7034:(t,e,r)=>{var n=r(6285);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},7144:(t,e,r)=>{var n=r(7034);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7161:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7202:(t,e,r)=>{"use strict";var n=r(239);t.exports=n},7235:(t,e,r)=>{"use strict";var n=r(262),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},7309:(t,e,r)=>{const n=r(2322),s=r(8631);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},7313:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},7379:(t,e,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},7389:(t,e,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=c(e),u=s.length,l=0;u>l;)i.f(t,r=s[l++],n[r]);return t}},7447:(t,e,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),f=r(5024),h="Array Iterator",p=o.set,m=o.getterFor(h);t.exports=c(Array,"Array",(function(t,e){p(this,{type:h,target:n(t),index:0,kind:e})}),(function(){var t=m(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},7452:(t,e,r)=>{var n=r(7034);t.exports=function(t){return n(this.__data__,t)>-1}},7460:(t,e,r)=>{"use strict";var n=r(4603);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:t=>{t.exports=function(t){return this.__data__.has(t)}},7464:(t,e,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);t.exports=function(t,e,r){for(var a=s(e),c=o.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,u(e,f))}}},7525:(t,e,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},7547:(t,e,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),f=r(9620),h=r(593),p=r(4123),m=r(3311),d=r(2322);function y(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new c(t.map(y));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=h,n.prototype.MemberElement=u,n.prototype.refract=y,p.prototype.refract=y,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:h,refract:y,ArraySlice:p,ObjectSlice:m,KeyValuePair:d}},7979:(t,e,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},8006:t=>{t.exports=function(t){return this.__data__.has(t)}},8099:t=>{"use strict";t.exports={}},8121:(t,e,r)=>{var n=r(3766)(Object.keys,Object);t.exports=n},8130:(t,e,r)=>{"use strict";var n=r(8146);t.exports=function(t){return n(t.length)}},8137:t=>{"use strict";t.exports=function(){}},8138:(t,e,r)=>{var n=r(7379),s=r(3142),i=r(547);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},8141:(t,e,r)=>{"use strict";var n=r(3753);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},8146:(t,e,r)=>{"use strict";var n=r(9903),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},8148:(t,e,r)=>{"use strict";var n=r(262),s=r(3999);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},8244:(t,e,r)=>{var n=r(1129),s=r(3142);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},8250:(t,e,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),a=r(9068);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},8326:(t,e,r)=>{const n=r(5735),s=r(7547);e.g$=n,e.KeyValuePair=r(2322),e.G6=s.ArraySlice,e.ot=s.ObjectSlice,e.Hg=s.Element,e.Om=s.StringElement,e.kT=s.NumberElement,e.bd=s.BooleanElement,e.Os=s.NullElement,e.wE=s.ArrayElement,e.Sh=s.ObjectElement,e.Pr=s.MemberElement,e.sI=s.RefElement,e.Ft=s.LinkElement,e.e=s.refract,r(394),r(3148)},8337:(t,e,r)=>{"use strict";r(5442);var n=r(7202);t.exports=n},8364:(t,e,r)=>{"use strict";var n=r(8600),s=r(9683);t.exports=Object.keys||function(t){return n(t,s)}},8407:(t,e,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:c?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},8411:(t,e,r)=>{"use strict";t.exports=r(8337)},8417:(t,e,r)=>{"use strict";var n,s,i,o=r(1314),a=r(8900),c=r(262),u=r(3999),l=r(701),f=r(3753),h=r(4275),p=r(5241),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(t,e){if(v.has(t))throw new d(m);return e.facade=t,v.set(t,e),e},s=function(t){return v.get(t)||{}},i=function(t){return v.has(t)}}else{var g=h("state");p[g]=!0,n=function(t,e){if(l(t,g))throw new d(m);return e.facade=t,u(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=s(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},8486:(t,e,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),g=u(o),b=u(a),_=c;(n&&_(new n(new ArrayBuffer(1)))!=m||s&&_(new s)!=l||i&&_(i.resolve())!=f||o&&_(new o)!=h||a&&_(new a)!=p)&&(_=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case g:return h;case b:return p}return e}),t.exports=_},8600:(t,e,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;e.length>u;)s(n,r=e[u++])&&(~o(l,r)||c(l,r));return l}},8631:(t,e,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}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((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},8655:(t,e,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=n.Symbol,l=s("wks"),f=c?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},8666:(t,e,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?s(o):n;t.exports=a},8696:(t,e,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r===l||r!==u&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},8712:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(t,e,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,h){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var m=1&n;if(p||(p=c),t.size!=e.size&&!m)return!1;var d=h.get(t);if(d)return d==e;n|=2,h.set(t,e);var y=o(p(t),p(e),n,u,f,h);return h.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},8870:(t,e,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},8900:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(t,e,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},9005:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9067:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},9068:(t,e,r)=>{var n=r(4700);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},9098:(t,e,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),f=r(3999),h=r(701);r(3753);var p=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,m,d,y,v,g,b,_,E=t.target,w=t.global,x=t.stat,j=t.proto,O=w?n:x?n[E]:n[E]&&n[E].prototype,S=w?u:u[E]||f(u,E,{})[E],A=S.prototype;for(d in e)s=!(r=c(w?d:E+(x?".":"#")+d,t.forced))&&O&&h(O,d),v=S[d],s&&(g=t.dontCallGetSet?(_=a(O,d))&&_.value:O[d]),y=s&&g?g:e[d],(r||j||typeof v!=typeof y)&&(b=t.bind&&s?l(y,n):t.wrap&&s?p(y):j&&o(y)?i(y):y,(t.sham||y&&y.sham||v&&v.sham)&&f(b,"sham",!0),f(S,d,b),j&&(h(u,m=E+"Prototype")||f(u,m,{}),f(u[m],d,y),t.real&&A&&(r||!A[d])&&f(A,d,y)))}},9258:(t,e,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},9270:(t,e,r)=>{var n=r(4715)(r(8942),"WeakMap");t.exports=n},9306:t=>{t.exports=function(){return[]}},9310:t=>{t.exports=function(t){return null===t}},9344:(t,e,r)=>{"use strict";var n=r(9932),s=r(6100);t.exports=function(t){if("Function"===n(t))return s(t)}},9361:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9413:(t,e,r)=>{var n=r(4715)(r(8942),"Promise");t.exports=n},9460:t=>{t.exports=function(t){return function(e){return t(e)}}},9559:(t,e,r)=>{"use strict";var n=r(4904),s=r(8407);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(t,e,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},9620:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},9624:(t,e,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?h:a).test(o(t))}},9632:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},9665:(t,e,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(t,e,r)=>{var n=r(5098),s=r(1386),i=r(9770);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},9770:(t,e,r)=>{var n=r(4715)(r(8942),"Map");t.exports=n},9796:(t,e,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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]()}),t.exports=o},9828:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},9847:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}},9903:(t,e,r)=>{"use strict";var n=r(5777);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},9932:(t,e,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},9989:(t,e,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=l(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AnnotationElement:()=>Jt,ArrayElement:()=>$t.wE,ArraySlice:()=>$t.G6,BREAK:()=>Ye,BooleanElement:()=>$t.bd,CloneError:()=>er,CommentElement:()=>Zt,DeepCloneError:()=>rr,Element:()=>$t.Hg,ElementIdentityError:()=>Nr,IdentityManager:()=>Ur,KeyValuePair:()=>$t.KeyValuePair,LinkElement:()=>$t.Ft,MediaTypes:()=>zr,MemberElement:()=>$t.Pr,Namespace:()=>Ue,NullElement:()=>$t.Os,NumberElement:()=>$t.kT,ObjectElement:()=>$t.Sh,ObjectSlice:()=>$t.ot,ParseResultElement:()=>ne,RefElement:()=>$t.sI,ShallowCloneError:()=>nr,StringElement:()=>$t.Om,Transcluder:()=>cn,assignSourceMap:()=>_r,cloneDeep:()=>Er,cloneNode:()=>Sr,cloneShallow:()=>jr,createNamespace:()=>Ve,createPredicate:()=>ue,deepmerge:()=>Mn,defaultIdentityManager:()=>Fr,dehydrate:()=>En,dereference:()=>br,dispatchRefractorPlugins:()=>Ir,filter:()=>qr,find:()=>Kr,findAtOffset:()=>Jr,from:()=>un,getNodeType:()=>Or,hasElementSourceMap:()=>je,includesClasses:()=>Se,includesSymbols:()=>Oe,isAnnotationElement:()=>_e,isArrayElement:()=>ye,isBooleanElement:()=>me,isElement:()=>le,isLinkElement:()=>ge,isMemberElement:()=>ve,isNullElement:()=>pe,isNumberElement:()=>he,isObjectElement:()=>de,isParseResultElement:()=>we,isPrimitiveElement:()=>xe,isRefElement:()=>be,isStringElement:()=>fe,keyMap:()=>kr,mergeAllVisitors:()=>Qe,mergeLeft:()=>Tn,mergeRight:()=>Cn,namespace:()=>De,parents:()=>nn,refract:()=>$t.e,refractorPluginElementIdentity:()=>Vr,refractorPluginSemanticElementIdentity:()=>Dr,reject:()=>$r,sexprs:()=>jn,some:()=>Zr,toJSON:()=>gn,toString:()=>wn,toValue:()=>vn,toYAML:()=>_n,transclude:()=>an,traverse:()=>en,visit:()=>Pr});var t={};function e(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function s(t){return function r(n){return 0===arguments.length||e(n)?r:t.apply(this,arguments)}}function i(t){return function r(n,i){switch(arguments.length){case 0:return r;case 1:return e(n)?r:s((function(e){return t(n,e)}));default:return e(n)&&e(i)?r:e(n)?s((function(e){return t(e,i)})):e(i)?s((function(e){return t(n,e)})):t(n,i)}}}function o(t){return function r(n,o,a){switch(arguments.length){case 0:return r;case 1:return e(n)?r:i((function(e,r){return t(n,e,r)}));case 2:return e(n)&&e(o)?r:e(n)?i((function(e,r){return t(e,o,r)})):e(o)?i((function(e,r){return t(n,e,r)})):s((function(e){return t(n,o,e)}));default:return e(n)&&e(o)&&e(a)?r:e(n)&&e(o)?i((function(e,r){return t(e,r,a)})):e(n)&&e(a)?i((function(e,r){return t(e,o,r)})):e(o)&&e(a)?i((function(e,r){return t(n,e,r)})):e(n)?s((function(e){return t(e,o,a)})):e(o)?s((function(e){return t(n,e,a)})):e(a)?s((function(e){return t(n,o,e)})):t(n,o,a)}}}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t,e){return Object.prototype.hasOwnProperty.call(e,t)}r.r(t),r.d(t,{hasElementSourceMap:()=>je,includesClasses:()=>Se,includesSymbols:()=>Oe,isAnnotationElement:()=>_e,isArrayElement:()=>ye,isBooleanElement:()=>me,isCommentElement:()=>Ee,isElement:()=>le,isLinkElement:()=>ge,isMemberElement:()=>ve,isNullElement:()=>pe,isNumberElement:()=>he,isObjectElement:()=>de,isParseResultElement:()=>we,isPrimitiveElement:()=>xe,isRefElement:()=>be,isStringElement:()=>fe});const u=o((function(t,e,r){var n,s={};for(n in r=r||{},e=e||{})c(n,e)&&(s[n]=c(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)c(n,r)&&!c(n,s)&&(s[n]=r[n]);return s}));const l=o((function t(e,r,n){return u((function(r,n,s){return a(n)&&a(s)?t(e,n,s):e(r,n,s)}),r,n)}));const f=i((function(t,e){return l((function(t,e,r){return r}),t,e)}));const h=i((function(t,e){return null==e||e!=e?t:e})),p=Number.isInteger||function(t){return(t|0)===t};function m(t){return"[object String]"===Object.prototype.toString.call(t)}function d(t,e){var r=t<0?e.length+t:t;return m(e)?e.charAt(r):e[r]}const y=i((function(t,e){if(null!=e)return p(t)?d(t,e):e[t]}));const v=o((function(t,e,r){return h(t,y(e,r))}));function g(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,s){return e.apply(this,arguments)};case 5:return function(t,r,n,s,i){return e.apply(this,arguments)};case 6:return function(t,r,n,s,i,o){return e.apply(this,arguments)};case 7:return function(t,r,n,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,r,n,s,i,o,a,c){return e.apply(this,arguments)};case 9:return function(t,r,n,s,i,o,a,c,u){return e.apply(this,arguments)};case 10:return function(t,r,n,s,i,o,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(t,r,n){return function(){for(var s=[],i=0,o=t,a=0,c=!1;a<r.length||i<arguments.length;){var u;a<r.length&&(!e(r[a])||i>=arguments.length)?u=r[a]:(u=arguments[i],i+=1),s[a]=u,e(u)?c=!0:o-=1,a+=1}return!c&&o<=0?n.apply(this,s):g(Math.max(0,o),b(t,s,n))}}const _=i((function(t,e){return 1===t?s(e):g(t,b(t,[],e))}));function E(t,e){for(var r=e,n=0;n<t.length;n+=1){if(null==r)return;var s=t[n];r=p(s)?d(s,r):r[s]}return r}const w=i(E),x=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function j(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return x(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const O=o(j("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const S=O(0,-1);const A=i((function(t,e){return g(t.length,(function(){return t.apply(e,arguments)}))}));const k=i((function(t,e){return t.apply(this,e)}));function M(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}const P=s((function(t){return!!x(t)||!!t&&("object"==typeof t&&(!m(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var C="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function I(t,e,r){return function(n,s,i){if(P(i))return t(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(n,s,i,"fantasy-land/reduce");if(null!=i[C])return r(n,s,i[C]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return e(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function T(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function R(t,e,r,n){return r[n](t,e)}const N=I(M,R,T);function U(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!x(n)){for(var s=0;s<t.length;){if("function"==typeof n[t[s]])return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function F(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}const V=function(){return this.xf["@@transducer/init"]()},D=function(t){return this.xf["@@transducer/result"](t)};var L=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=V,t.prototype["@@transducer/result"]=D,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const B=function(t){return function(e){return new L(t,e)}};var z=Object.prototype.toString;const q=function(){return"[object Arguments]"===z.call(arguments)?function(t){return"[object Arguments]"===z.call(t)}:function(t){return c("callee",t)}}();var $=!{toString:null}.propertyIsEnumerable("toString"),G=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],K=function(){return arguments.propertyIsEnumerable("length")}(),W=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},H="function"!=typeof Object.keys||K?s((function(t){if(Object(t)!==t)return[];var e,r,n=[],s=K&&q(t);for(e in t)!c(e,t)||s&&"length"===e||(n[n.length]=e);if($)for(r=G.length-1;r>=0;)c(e=G[r],t)&&!W(n,e)&&(n[n.length]=e),r-=1;return n})):s((function(t){return Object(t)!==t?[]:Object.keys(t)}));const Y=H;const J=i(U(["fantasy-land/map","map"],B,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return _(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return M((function(r,n){return r[n]=t(e[n]),r}),{},Y(e));default:return F(t,e)}})));const X=i((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:N((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}(t,J(r,e))}),[],t)}));const Z=i((function(t,e){var r=_(t,e);return _(t,(function(){return M(X,J(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Q=s((function(t){return Z(t.length,t)}));const tt=Q(s((function(t){return!t})));function et(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function rt(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}const nt="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};const st=s((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function it(t,e,r,n){var s=et(t);function i(t,e){return ot(t,e,r.slice(),n.slice())}return!rt((function(t,e){return!rt(i,e,t)}),et(e),s)}function ot(t,e,r,n){if(nt(t,e))return!0;var s,i,o=st(t);if(o!==st(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!nt(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!nt(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&it(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&it(t.values(),e.values(),r.concat([t]),n.concat([e]));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 u=Y(t);if(u.length!==Y(e).length)return!1;var l=r.concat([t]),f=n.concat([e]);for(a=u.length-1;a>=0;){var h=u[a];if(!c(h,e)||!ot(e[h],t[h],l,f))return!1;a-=1}return!0}const at=i((function(t,e){return ot(t,e,[],[])}));function ct(t,e){return function(t,e,r){var n,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(s=t[r])&&1/s===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(s=t[r])&&s!=s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(at(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function ut(t){return'"'+t.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 lt=function(t){return(t<10?"0":"")+t};const ft="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+lt(t.getUTCMonth()+1)+"-"+lt(t.getUTCDate())+"T"+lt(t.getUTCHours())+":"+lt(t.getUTCMinutes())+":"+lt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var ht=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=V,t.prototype["@@transducer/result"]=D,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function pt(t){return function(e){return new ht(t,e)}}const mt=i(U(["fantasy-land/filter","filter"],pt,(function(t,e){return a(e)?M((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},Y(e)):function(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}(t,e)})));const dt=i((function(t,e){return mt((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function yt(t,e){var r=function(r){var n=e.concat([t]);return ct(r,n)?"<Circular>":yt(r,n)},n=function(t,e){return F((function(e){return ut(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+F(r,t).join(", ")+"))";case"[object Array]":return"["+F(r,t).concat(n(t,dt((function(t){return/^\d+$/.test(t)}),Y(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ut(ft(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":ut(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+n(t,Y(t)).join(", ")+"}"}}const vt=s((function(t){return yt(t,[])}));const gt=i((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=vt(t),o=r(i,vt(e));return void 0!==o&&o===i?t:e}));const bt=i((function(t,e){return J(y(t),e)}));function _t(t,e,r){for(var n=0,s=r.length;n<s;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}function Et(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function wt(t,e,r,n){return t["@@transducer/result"](r[n](A(t["@@transducer/step"],t),e))}const xt=I(_t,wt,Et);var jt=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();const Ot=o((function(t,e,r){return xt("function"==typeof t?new jt(t):t,e,r)}));const St=s((function(t){return _(Ot(gt,0,bt("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function At(t,e){return function(){return e.call(this,t.apply(this,arguments))}}const kt=s(j("tail",O(1,1/0)));function Mt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return g(arguments[0].length,Ot(At,arguments[0],kt(arguments)))}var Pt=function(t,e){switch(arguments.length){case 0:return Pt;case 1:return function e(r){return 0===arguments.length?e:nt(t,r)};default:return nt(t,e)}};const Ct=Pt;const It=_(1,Mt(st,Ct("GeneratorFunction")));const Tt=_(1,Mt(st,Ct("AsyncFunction")));const Rt=St([Mt(st,Ct("Function")),It,Tt]);const Nt=tt(Rt);function Ut(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const Ft=i((function(t,e){return t&&e}));const Vt=i((function(t,e){return Ut(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:Q(Ft)(t,e)}));var Dt=s((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():x(t)?[]:m(t)?"":a(t)?{}:q(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const Lt=Dt;const Bt=s((function(t){return null!=t&&at(t,Lt(t))}));const zt=Vt(_(1,Rt(Array.isArray)?Array.isArray:Mt(st,Ct("Array"))),Bt);const qt=_(3,(function(t,e,r){var n=w(t,r),s=w(S(t),r);if(!Nt(n)&&!zt(t)){var i=A(n,s);return k(i,e)}}));var $t=r(8326);var Gt=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=V,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r;return this.f(e)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},t}();function Kt(t){return function(e){return new Gt(t,e)}}const Wt=i(U(["all"],Kt,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));const Ht=s((function(t){return _(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}))(i(ct));class Yt extends $t.Om{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const Jt=Yt;class Xt extends $t.Om{constructor(t,e,r){super(t,e,r),this.element="comment"}}const Zt=Xt;const Qt=s((function(t){return function(){return t}}));const te=Qt(void 0);const ee=at(te());class re extends $t.wE{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(ee(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const ne=re,se=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],ie=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,oe=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),ae=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof $t.wE)&&e.classes.includes(t),ce=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,ue=t=>t({hasMethod:se,hasBasicElementProps:ie,primitiveEq:oe,isElementType:ce,hasClass:ae}),le=ue((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof $t.Hg||t(r)&&e(void 0,r))),fe=ue((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof $t.Om||t(r)&&e("string",r))),he=ue((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof $t.kT||t(r)&&e("number",r))),pe=ue((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof $t.Os||t(r)&&e("null",r))),me=ue((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof $t.bd||t(r)&&e("boolean",r))),de=ue((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof $t.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ye=ue((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof $t.wE&&!(n instanceof $t.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ve=ue((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $t.Pr||t(n)&&e("member",n)&&r(void 0,n))),ge=ue((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $t.Ft||t(n)&&e("link",n)&&r(void 0,n))),be=ue((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $t.sI||t(n)&&e("ref",n)&&r(void 0,n))),_e=ue((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jt||t(n)&&e("annotation",n)&&r("array",n))),Ee=ue((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zt||t(n)&&e("comment",n)&&r("string",n))),we=ue((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ne||t(n)&&e("parseResult",n)&&r("array",n))),xe=t=>ce("object",t)||ce("array",t)||ce("boolean",t)||ce("number",t)||ce("string",t)||ce("null",t)||ce("member",t),je=t=>!!le(t)&&(Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex)),Oe=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!ye(r)&&Wt(Ht(r.toValue()),t)},Se=(t,e)=>0===t.length||Wt(Ht(e.classes.toValue()),t);const Ae=o((function(t,e,r){return t(E(e,r))}));const ke=at(null);var Me=tt(ke);function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}const Ce=_(1,Vt(Me,(function(t){return"object"===Pe(t)})));var Ie=Mt(st,Ct("Object")),Te=Mt(vt,at(vt(Object))),Re=Ae(Vt(Rt,Te),["constructor"]);const Ne=_(1,(function(t){if(!Ce(t)||!Ie(t))return!1;var e=Object.getPrototypeOf(t);return!!ke(e)||Re(e)}));class Ue extends $t.g${constructor(){super(),this.register("annotation",Jt),this.register("comment",Zt),this.register("parseResult",ne)}}const Fe=new Ue,Ve=t=>{const e=new Ue;return Ne(t)&&e.use(t),e},De=Fe,Le=()=>({predicates:{...t},namespace:De});const Be=function(){return!1};const ze=_(1,Mt(st,Ct("String")));var qe=r(1212);const $e=class extends qe{constructor(t,e,r){if(super(t,e,r),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!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:t}=r;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class Ge extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call($e,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const Ke=Ge;const We=class extends Ke{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...r}=e;Object.assign(this,r)}}},He=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Ye={},Je=t=>null==t?void 0:t.type,Xe=t=>"string"==typeof Je(t),Ze=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Qe=(t,{visitFnGetter:e=He,nodeTypeGetter:r=Je,breakSymbol:n=Ye,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{enter(u,l,f,h,p,m){let d=u,y=!1;const v={...m,replaceWith(t,e){m.replaceWith(t,e),d=t}};for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(d),!1);if("function"==typeof a){const e=a.call(t[u],d,l,f,h,p,v);if("function"==typeof(null==e?void 0:e.then))throw new We("Async visitor not supported in sync mode",{visitor:t[u],visitFn:a});if(e===i)c[u]=d;else if(e===n)c[u]=n;else{if(e===s)return e;if(void 0!==e){if(!o)return e;d=e,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,h){let p=s;const m={...h,replaceWith(t,e){h.replaceWith(t,e),p=t}};for(let s=0;s<t.length;s+=1)if(c[s]===a){const a=e(t[s],r(p),!0);if("function"==typeof a){const e=a.call(t[s],p,o,u,l,f,m);if("function"==typeof(null==e?void 0:e.then))throw new We("Async visitor not supported in sync mode",{visitor:t[s],visitFn:a});if(e===n)c[s]=n;else if(void 0!==e&&e!==i)return e}}else c[s]===p&&(c[s]=a)}}};Qe[Symbol.for("nodejs.util.promisify.custom")]=(t,{visitFnGetter:e=He,nodeTypeGetter:r=Je,breakSymbol:n=Ye,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{async enter(u,l,f,h,p,m){let d=u,y=!1;const v={...m,replaceWith(t,e){m.replaceWith(t,e),d=t}};for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(d),!1);if("function"==typeof a){const e=await a.call(t[u],d,l,f,h,p,v);if(e===i)c[u]=d;else if(e===n)c[u]=n;else{if(e===s)return e;if(void 0!==e){if(!o)return e;d=e,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,h){let p=s;const m={...h,replaceWith(t,e){h.replaceWith(t,e),p=t}};for(let s=0;s<t.length;s+=1)if(c[s]===a){const a=e(t[s],r(p),!0);if("function"==typeof a){const e=await a.call(t[s],p,o,u,l,f,m);if(e===n)c[s]=n;else if(void 0!==e&&e!==i)return e}}else c[s]===p&&(c[s]=a)}}};const tr=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Ye,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=He,nodeTypeGetter:c=Je,nodePredicate:u=Xe,nodeCloneFn:l=Ze,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=r||{};let m,d,y=Array.isArray(t),v=[t],g=-1,b=[],_=t;const E=[],w=[];do{g+=1;const t=g===v.length;let r;const O=t&&0!==b.length;if(t){if(r=0===w.length?void 0:E.pop(),_=d,d=w.pop(),O)if(y){_=_.slice();let t=0;for(const[e,r]of b){const n=e-t;r===i?(_.splice(n,1),t+=1):_[n]=r}}else{_=l(_);for(const[t,e]of b)_[t]=e}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=y?g:v[g],_=d[r],_===i||void 0===_)continue;E.push(r)}let S;if(!Array.isArray(_)){var x;if(!u(_))throw new We(`Invalid AST Node: ${String(_)}`,{node:_});if(f&&w.includes(_)){"function"==typeof h&&h(_,r,d,E,w),E.pop();continue}const i=a(e,c(_),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;const s={replaceWith(e,n){"function"==typeof n?n(e,_,r,d,E,w):d&&(d[r]=e),t||(_=e)}};S=i.call(e,_,r,d,E,w,s)}if("function"==typeof(null===(x=S)||void 0===x?void 0:x.then))throw new We("Async visitor not supported in sync mode",{visitor:e,visitFn:i});if(S===s)break;if(S===o){if(!t){E.pop();continue}}else if(void 0!==S&&(b.push([r,S]),!t)){if(!u(S)){E.pop();continue}_=S}}var j;if(void 0===S&&O&&b.push([r,_]),!t)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(_),v=y?_:null!==(j=p[c(_)])&&void 0!==j?j:[],g=-1,b=[],d!==i&&void 0!==d&&w.push(d),d=_}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:t};tr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Ye,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=He,nodeTypeGetter:c=Je,nodePredicate:u=Xe,nodeCloneFn:l=Ze,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=r||{};let m,d,y=Array.isArray(t),v=[t],g=-1,b=[],_=t;const E=[],w=[];do{g+=1;const t=g===v.length;let r;const j=t&&0!==b.length;if(t){if(r=0===w.length?void 0:E.pop(),_=d,d=w.pop(),j)if(y){_=_.slice();let t=0;for(const[e,r]of b){const n=e-t;r===i?(_.splice(n,1),t+=1):_[n]=r}}else{_=l(_);for(const[t,e]of b)_[t]=e}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=y?g:v[g],_=d[r],_===i||void 0===_)continue;E.push(r)}let O;if(!Array.isArray(_)){if(!u(_))throw new We(`Invalid AST Node: ${String(_)}`,{node:_});if(f&&w.includes(_)){"function"==typeof h&&h(_,r,d,E,w),E.pop();continue}const i=a(e,c(_),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;const s={replaceWith(e,n){"function"==typeof n?n(e,_,r,d,E,w):d&&(d[r]=e),t||(_=e)}};O=await i.call(e,_,r,d,E,w,s)}if(O===s)break;if(O===o){if(!t){E.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!t)){if(!u(O)){E.pop();continue}_=O}}var x;if(void 0===O&&j&&b.push([r,_]),!t)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(_),v=y?_:null!==(x=p[c(_)])&&void 0!==x?x:[],g=-1,b=[],d!==i&&void 0!==d&&w.push(d),d=_}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:t};const er=class extends We{value;constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const rr=class extends er{};const nr=class extends er{};const sr=i((function(t,e){return M((function(r,n){return r[n]=t(e[n],n,e),r}),{},Y(e))}));const ir=s((function(t){return null==t}));var or=i((function(t,e){if(0===t.length||ir(e))return!1;for(var r=e,n=0;n<t.length;){if(ir(r)||!c(t[n],r))return!1;r=r[t[n]],n+=1}return!0}));const ar=or;var cr=i((function(t,e){return ar([t],e)}));const ur=cr;const lr=o((function(t,e,r){return t(y(e,r))}));const fr=s((function(t){return _(t.length,t)}));const hr=i((function(t,e){return _(t+1,(function(){var r=arguments[t];if(null!=r&&Ut(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(vt(r)+' does not have a method named "'+e+'"')}))}));const pr=hr(1,"split");var mr=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=V,t.prototype["@@transducer/result"]=D,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function dr(t){return function(e){return new mr(t,e)}}const yr=i(U(["dropWhile"],dr,(function(t,e){for(var r=0,n=e.length;r<n&&t(e[r]);)r+=1;return O(r,1/0,e)})));const vr=hr(1,"join");const gr=fr((function(t,e){return Mt(pr(""),yr(Ht(t)),vr(""))(e)})),br=(t,e)=>{const r=h(t,e);return sr((t=>{if(Ne(t)&&ur("$ref",t)&&lr(ze,"$ref",t)){const e=w(["$ref"],t),n=gr("#/",e);return w(n.split("/"),r)}return Ne(t)?br(t,r):t}),t)},_r=(t,e)=>(t.startPositionRow=e?.startPositionRow,t.startPositionColumn=e?.startPositionColumn,t.startIndex=e?.startIndex,t.endPositionRow=e?.endPositionRow,t.endPositionColumn=e?.endPositionColumn,t.endIndex=e?.endIndex,t),Er=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof $t.KeyValuePair){const{key:e,value:s}=t,i=le(e)?Er(e,n):e,o=le(s)?Er(s,n):s,a=new $t.KeyValuePair(i,o);return r.set(t,a),a}if(t instanceof $t.ot){const e=t=>Er(t,n),s=[...t].map(e),i=new $t.ot(s);return r.set(t,i),i}if(t instanceof $t.G6){const e=t=>Er(t,n),s=[...t].map(e),i=new $t.G6(s);return r.set(t,i),i}if(le(t)){const e=jr(t);if(r.set(t,e),t.content)if(le(t.content))e.content=Er(t.content,n);else if(t.content instanceof $t.KeyValuePair)e.content=Er(t.content,n);else if(Array.isArray(t.content)){const r=t=>Er(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new rr("Value provided to cloneDeep function couldn't be cloned",{value:t})};Er.safe=t=>{try{return Er(t)}catch{return t}};const wr=t=>{const{key:e,value:r}=t;return new $t.KeyValuePair(e,r)},xr=t=>{const e=new t.constructor;if(e.element=t.element,je(t)&&_r(e,t),t.meta.length>0&&(e._meta=Er(t.meta)),t.attributes.length>0&&(e._attributes=Er(t.attributes)),le(t.content)){const r=t.content;e.content=xr(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof $t.KeyValuePair?e.content=wr(t.content):e.content=t.content;return e},jr=t=>{if(t instanceof $t.KeyValuePair)return wr(t);if(t instanceof $t.ot)return(t=>{const e=[...t];return new $t.ot(e)})(t);if(t instanceof $t.G6)return(t=>{const e=[...t];return new $t.G6(e)})(t);if(le(t))return xr(t);throw new nr("Value provided to cloneShallow function couldn't be cloned",{value:t})};jr.safe=t=>{try{return jr(t)}catch{return t}};const Or=t=>de(t)?"ObjectElement":ye(t)?"ArrayElement":ve(t)?"MemberElement":fe(t)?"StringElement":me(t)?"BooleanElement":he(t)?"NumberElement":pe(t)?"NullElement":ge(t)?"LinkElement":be(t)?"RefElement":void 0,Sr=t=>le(t)?jr(t):Ze(t),Ar=Mt(Or,ze),kr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class Mr{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:t=Be,returnOnTrue:e,returnOnFalse:r}={}){this.result=[],this.predicate=t,this.returnOnTrue=e,this.returnOnFalse=r}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const Pr=(t,e,{keyMap:r=kr,...n}={})=>tr(t,e,{keyMap:r,nodeTypeGetter:Or,nodePredicate:Ar,nodeCloneFn:Sr,...n});Pr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=kr,...n}={})=>tr[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Or,nodePredicate:Ar,nodeCloneFn:Sr,...n});const Cr={toolboxCreator:Le,visitorOptions:{nodeTypeGetter:Or,exposeEdits:!0}},Ir=(t,e,r={})=>{if(0===e.length)return t;const n=f(Cr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map((t=>t(o))),c=Qe(a.map(v({},"visitor")),{...i});a.forEach(qt(["pre"],[]));const u=Pr(t,c,i);return a.forEach(qt(["post"],[])),u};Ir[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(0===e.length)return t;const n=f(Cr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map((t=>t(o))),c=Qe[Symbol.for("nodejs.util.promisify.custom")],u=Pr[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(v({},"visitor")),{...i});await Promise.allSettled(a.map(qt(["pre"],[])));const h=await u(t,l,i);return await Promise.allSettled(a.map(qt(["post"],[]))),h};var Tr=r(6660),Rr=r.n(Tr);const Nr=class extends We{value;constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};class Ur{uuid;identityMap;constructor({length:t=6}={}){this.uuid=new(Rr())({length:t}),this.identityMap=new WeakMap}identify(t){if(!le(t))throw new Nr("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&fe(t.meta.get("id"))&&!t.meta.get("id").equals(""))return t.id;if(this.identityMap.has(t))return this.identityMap.get(t);const e=new $t.Om(this.generateId());return this.identityMap.set(t,e),e}forget(t){return!!this.identityMap.has(t)&&(this.identityMap.delete(t),!0)}generateId(){return this.uuid.randomUUID()}}const Fr=new Ur,Vr=({length:t=6}={})=>()=>{let e;return{pre(){e=new Ur({length:t})},visitor:{enter(t){t.id=e.identify(t)}},post(){e=null}}},Dr=({length:t=6}={})=>({predicates:e})=>{let r;return{pre(){r=new Ur({length:t})},visitor:{enter(t){e.isPrimitiveElement(t)||(t.id=r.identify(t))}},post(){r=null}}};const Lr=class extends Ke{};const Br=class extends Lr{};const zr=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Br("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Br("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Br("latest method in MediaTypes class is not yet implemented.")}},qr=(t,e)=>{const r=new Mr({predicate:t});return Pr(e,r),new $t.G6(r.result)},$r=(t,e)=>qr(tt(t),e);const Gr=o((function(t,e,r){return h(t,E(e,r))})),Kr=(t,e)=>{const r=new Mr({predicate:t,returnOnTrue:Ye});return Pr(e,r),Gr(void 0,[0],r.result)};const Wr=s((function(t){return d(-1,t)}));const Hr=_(1,Mt(st,Ct("Number")));class Yr{result;offset;includeRightBound;constructor({offset:t=0,includeRightBound:e=!1}={}){this.result=[],this.offset=t,this.includeRightBound=e}enter(t){if(!je(t))return;const{startIndex:e,endIndex:r}=t;if(!(this.offset>=e&&(this.offset<r||this.includeRightBound&&this.offset<=r)))return!1;this.result.push(t)}}const Jr=(t,e)=>{let r,n;Hr(t)?(r=t,n=!1):(r=Gr(0,["offset"],t),n=Gr(!1,["includeRightBound"],t));const s=new Yr({offset:r,includeRightBound:n});return Pr(e,s),Wr(s.result)};const Xr=tt(ee),Zr=(t,e)=>Xr(Kr(t,e));const Qr=Qt(te());class tn extends Mr{callback;constructor({callback:t=Qr,...e}={}){super({...e}),this.callback=t}enter(t){return this.predicate(t)?(this.callback(t),this.returnOnTrue):this.returnOnFalse}}const en=(t,e)=>{let r,n;Rt(t)?(r=t,n=le):(r=Gr(Qr,["callback"],t),n=Gr(le,["predicate"],t));const s=new tn({callback:r,predicate:n});Pr(e,s)};class rn{parentEdges;parent;constructor(){this.parentEdges=new WeakMap}ObjectElement(t){this.parentEdges.set(t,this.parent),this.parent=t}ArrayElement(t){this.parentEdges.set(t,this.parent),this.parent=t}MemberElement(t){this.parentEdges.set(t,this.parent),this.parent=t}enter(t){this.parentEdges.set(t,this.parent)}}const nn=t=>{const e=new rn;return Pr(t,e),e.parentEdges},sn=(t,e=new WeakMap)=>(ve(t)?(e.set(t.key,t),sn(t.key,e),e.set(t.value,t),sn(t.value,e)):t.children.forEach((r=>{e.set(r,t),sn(r,e)})),e);const on=class{element;edges;constructor({element:t}){this.element=t}transclude(t,e){if(t===this.element)return e;if(t===e)return this.element;this.edges=this.edges??sn(this.element);const r=this.edges.get(t);return ee(r)?void 0:(de(r)?((t,e,r)=>{const n=r.get(t);de(n)&&(n.content=n.map(((s,i,o)=>o===t?(r.delete(t),r.set(e,n),e):o)))})(t,e,this.edges):ye(r)?((t,e,r)=>{const n=r.get(t);ye(n)&&(n.content=n.map((s=>s===t?(r.delete(t),r.set(e,n),e):s)))})(t,e,this.edges):ve(r)&&((t,e,r)=>{const n=r.get(t);ve(n)&&(n.key===t&&(n.key=e,r.delete(t),r.set(e,n)),n.value===t&&(n.value=e,r.delete(t),r.set(e,n)))})(t,e,this.edges),this.element)}},an=(t,e,r)=>new on({element:r}).transclude(t,e),cn=on,un=(t,e=De)=>{if(ze(t))try{return e.fromRefract(JSON.parse(t))}catch{}return Ne(t)&&ur("element",t)?e.fromRefract(t):e.toElement(t)};const ln=function(){return!0},fn=t=>"string"==typeof t?.type?t.type:Or(t),hn={EphemeralObject:["content"],EphemeralArray:["content"],...kr},pn=(t,e,{keyMap:r=hn,...n}={})=>Pr(t,e,{keyMap:r,nodeTypeGetter:fn,nodePredicate:ln,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});pn[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=hn,...r}={})=>Pr[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:fn,nodePredicate:ln,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const mn=class{type="EphemeralArray";content=[];reference=void 0;constructor(t){this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const dn=class{type="EphemeralObject";content=[];reference=void 0;constructor(t){this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class yn{ObjectElement={enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new dn(t.content);return this.references.set(t,e),e}};EphemeralObject={leave:t=>t.toObject()};MemberElement={enter:t=>[t.key,t.value]};ArrayElement={enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new mn(t.content);return this.references.set(t,e),e}};EphemeralArray={leave:t=>t.toArray()};references=new WeakMap;BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...e){const r=e[3];return"EphemeralObject"===r[r.length-1]?.type?Symbol.for("delete-node"):String(t.toValue())}LinkElement(t){return fe(t.href)?t.href.toValue():""}}const vn=t=>le(t)?fe(t)||he(t)||me(t)||pe(t)?t.toValue():pn(t,new yn):t,gn=(t,e,r)=>JSON.stringify(vn(t),e,r);class bn{static indentChar=" ";result;indent;constructor({directive:t=!1,indent:e=0}={}){this.result=t?"%YAML 1.2\n---\n":"",this.indent=e}NumberElement(t){this.result+=vn(t)}BooleanElement(t){const e=vn(t);this.result+=e?"true":"false"}StringElement(t){this.result+=JSON.stringify(vn(t))}NullElement(){this.result+="null"}ArrayElement(t){return 0===t.length?(this.result+="[]",!1):(t.forEach((t=>{const e=new bn({indent:this.indent+1}),r=bn.indentChar.repeat(this.indent);Pr(t,e);const{result:n}=e;this.result+=n.startsWith("\n")?`\n${r}-${n}`:`\n${r}- ${n}`})),!1)}ObjectElement(t){return 0===t.length?(this.result+="{}",!1):(t.forEach(((t,e)=>{const r=new bn({indent:this.indent+1}),n=new bn({indent:this.indent+1}),s=bn.indentChar.repeat(this.indent);Pr(e,r),Pr(t,n);const{result:i}=r,{result:o}=n;this.result+=o.startsWith("\n")?`\n${s}${i}:${o}`:`\n${s}${i}: ${o}`})),!1)}}const _n=(t,{directive:e=!1}={})=>{const r=new bn({directive:e});return Pr(t,r),r.result},En=(t,e=De)=>e.toRefract(t),wn=(t,e=De)=>{const r=En(t,e);return JSON.stringify(r)};class xn{result="";nestingLevel=0;enter(t){const{element:e}=t,r=e.charAt(0).toUpperCase()+e.slice(1),n=" ".repeat(this.nestingLevel);this.result+=this.nestingLevel>0?"\n":"",this.result+=`${n}(${r}Element`,this.nestingLevel+=1}leave(){this.nestingLevel-=1,this.result+=")"}}const jn=t=>{const e=new xn;return Pr(t,e),e.result},On=t=>{const e=t.meta.length>0?Er(t.meta):void 0,r=t.attributes.length>0?Er(t.attributes):void 0;return new t.constructor(void 0,e,r)},Sn=(t,e)=>e.clone&&e.isMergeableElement(t)?kn(On(t),t,e):t,An={clone:!0,isMergeableElement:t=>de(t)||ye(t),arrayElementMerge:(t,e,r)=>t.concat(e)["fantasy-land/map"]((t=>Sn(t,r))),objectElementMerge:(t,e,r)=>{const n=de(t)?On(t):On(e);return de(t)&&t.forEach(((t,e,s)=>{const i=jr(s);i.value=Sn(t,r),n.content.push(i)})),e.forEach(((e,s,i)=>{const o=vn(s);let a;if(de(t)&&t.hasKey(o)&&r.isMergeableElement(e)){const n=t.get(o);a=jr(i),a.value=((t,e)=>{if("function"!=typeof e.customMerge)return kn;const r=e.customMerge(t,e);return"function"==typeof r?r:kn})(s,r)(n,e,r)}else a=jr(i),a.value=Sn(e,r);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},kn=(t,e,r)=>{const n={...An,...r};n.isMergeableElement=n.isMergeableElement??An.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??An.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??An.objectElementMerge;const s=ye(e);if(!(s===ye(t)))return Sn(e,n);const i=s&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(t,e,n):n.objectElementMerge(t,e,n);return i.meta=(t=>"function"!=typeof t.customMetaMerge?t=>Er(t):t.customMetaMerge)(n)(t.meta,e.meta),i.attributes=(t=>"function"!=typeof t.customAttributesMerge?t=>Er(t):t.customAttributesMerge)(n)(t.attributes,e.attributes),i};kn.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return 0===t.length?new $t.Sh:t.reduce(((t,r)=>kn(t,r,e)),On(t[0]))};const Mn=kn,Pn=(t,e,r)=>{const n={...An,...r,customMerge:()=>(t,e)=>e,clone:!1};return Mn(t,e,n)};Pn.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of mergeRight should be an array.");return 0===t.length?new $t.Sh:t.reduce(((t,r)=>Pn(t,r,e)),On(t[0]))};const Cn=Pn,In=(...[t,e,r])=>Cn(e,t,r);In.all=(...[t,e])=>Cn.all([...t].reverse(),e);const Tn=In})(),n})()));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).apidomCore={})}(this,(function(t){"use strict";var e=function(){return!1},n=function(){return!0};function r(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(n){return 0===arguments.length||r(n)?e:t.apply(this,arguments)}}function o(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return r(n)?e:i((function(e){return t(n,e)}));default:return r(n)&&r(o)?e:r(n)?i((function(e){return t(e,o)})):r(o)?i((function(e){return t(n,e)})):t(n,o)}}}function s(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,o){return e.apply(this,arguments)};case 6:return function(t,n,r,i,o,s){return e.apply(this,arguments)};case 7:return function(t,n,r,i,o,s,u){return e.apply(this,arguments)};case 8:return function(t,n,r,i,o,s,u,a){return e.apply(this,arguments)};case 9:return function(t,n,r,i,o,s,u,a,c){return e.apply(this,arguments)};case 10:return function(t,n,r,i,o,s,u,a,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function u(t,e,n){return function(){for(var i=[],o=0,a=t,c=0,l=!1;c<e.length||o<arguments.length;){var f;c<e.length&&(!r(e[c])||o>=arguments.length)?f=e[c]:(f=arguments[o],o+=1),i[c]=f,r(f)?l=!0:a-=1,c+=1}return!l&&a<=0?n.apply(this,i):s(Math.max(0,a),u(t,i,n))}}var a=o((function(t,e){return 1===t?i(e):s(t,u(t,[],e))}));function c(t){return function e(n,s,u){switch(arguments.length){case 0:return e;case 1:return r(n)?e:o((function(e,r){return t(n,e,r)}));case 2:return r(n)&&r(s)?e:r(n)?o((function(e,n){return t(e,s,n)})):r(s)?o((function(e,r){return t(n,e,r)})):i((function(e){return t(n,s,e)}));default:return r(n)&&r(s)&&r(u)?e:r(n)&&r(s)?o((function(e,n){return t(e,n,u)})):r(n)&&r(u)?o((function(e,n){return t(e,s,n)})):r(s)&&r(u)?o((function(e,r){return t(n,e,r)})):r(n)?i((function(e){return t(e,s,u)})):r(s)?i((function(e){return t(n,e,u)})):r(u)?i((function(e){return t(n,s,e)})):t(n,s,u)}}}const l=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function f(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!l(r)){for(var i=0;i<t.length;){if("function"==typeof r[t[i]])return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const h=function(){return this.xf["@@transducer/init"]()},p=function(t){return this.xf["@@transducer/result"](t)};var m=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n;return this.f(e)||(this.all=!1,t=(n=this.xf["@@transducer/step"](t,!1))&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}),t},t}();function y(t){return function(e){return new m(t,e)}}var d=o(f(["all"],y,(function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0})));function b(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function v(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}function g(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const _="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var E=Object.prototype.toString,w=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return g("callee",t)}}(),j=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=function(){return arguments.propertyIsEnumerable("length")}(),A=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},k="function"!=typeof Object.keys||S?i((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=S&&w(t);for(e in t)!g(e,t)||i&&"length"===e||(r[r.length]=e);if(j)for(n=O.length-1;n>=0;)g(e=O[n],t)&&!A(r,e)&&(r[r.length]=e),n-=1;return r})):i((function(t){return Object(t)!==t?[]:Object.keys(t)})),P=i((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function M(t,e,n,r){var i=b(t);function o(t,e){return x(t,e,n.slice(),r.slice())}return!v((function(t,e){return!v(o,e,t)}),b(e),i)}function x(t,e,n,r){if(_(t,e))return!0;var i,o,s=P(t);if(s!==P(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(i=t.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!_(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!_(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===t)return r[u]===e;u-=1}switch(s){case"Map":return t.size===e.size&&M(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&M(t.values(),e.values(),n.concat([t]),r.concat([e]));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=k(t);if(a.length!==k(e).length)return!1;var c=n.concat([t]),l=r.concat([e]);for(u=a.length-1;u>=0;){var f=a[u];if(!g(f,e)||!x(e[f],t[f],c,l))return!1;u-=1}return!0}var C=o((function(t,e){return x(t,e,[],[])}));function I(t,e){return function(t,e,n){var r,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(i=t[n])&&1/i===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(i=t[n])&&i!=i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(C(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function T(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}function N(t){return'"'+t.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 R=function(t){return(t<10?"0":"")+t},U="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+R(t.getUTCMonth()+1)+"-"+R(t.getUTCDate())+"T"+R(t.getUTCHours())+":"+R(t.getUTCMinutes())+":"+R(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function D(t,e,n){for(var r=0,i=n.length;r<i;)e=t(e,n[r]),r+=1;return e}function V(t){return"[object Object]"===Object.prototype.toString.call(t)}var L=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function F(t){return function(e){return new L(t,e)}}var B=o(f(["fantasy-land/filter","filter"],F,(function(t,e){return V(e)?D((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},k(e)):function(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}(t,e)}))),z=o((function(t,e){return B((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function q(t,e){var n=function(n){var r=e.concat([t]);return I(n,r)?"<Circular>":q(n,r)},r=function(t,e){return T((function(e){return N(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+T(n,t).join(", ")+"))";case"[object Array]":return"["+T(n,t).concat(r(t,z((function(t){return/^\d+$/.test(t)}),k(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):N(U(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":N(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var i=t.toString();if("[object Object]"!==i)return i}return"{"+r(t,k(t)).join(", ")+"}"}}var $=i((function(t){return q(t,[])})),G=o((function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var i=n(typeof t,typeof e);if(void 0!==i)return i===typeof t?t:e;var o=$(t),s=n(o,$(e));return void 0!==s&&s===o?t:e})),K=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),W=o(f(["fantasy-land/map","map"],(function(t){return function(e){return new K(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return a(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return D((function(n,r){return n[r]=t(e[r]),n}),{},k(e));default:return T(t,e)}})));const J=Number.isInteger||function(t){return(t|0)===t};function H(t){return"[object String]"===Object.prototype.toString.call(t)}function Y(t,e){var n=t<0?e.length+t:t;return H(e)?e.charAt(n):e[n]}var X=o((function(t,e){if(null!=e)return J(t)?Y(t,e):e[t]})),Z=o((function(t,e){return W(X(t),e)})),Q=i((function(t){return!!l(t)||!!t&&("object"==typeof t&&(!H(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))})),tt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function et(t,e,n){return function(r,i,o){if(Q(o))return t(r,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return e(r,i,o,"fantasy-land/reduce");if(null!=o[tt])return n(r,i,o[tt]());if("function"==typeof o.next)return n(r,i,o);if("function"==typeof o.reduce)return e(r,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function nt(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}var rt=o((function(t,e){return s(t.length,(function(){return t.apply(e,arguments)}))}));function it(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function ot(t,e,n,r){return t["@@transducer/result"](n[r](rt(t["@@transducer/step"],t),e))}var st=et(nt,ot,it),ut=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();var at=c((function(t,e,n){return st("function"==typeof t?new ut(t):t,e,n)})),ct=i((function(t){return function(){return t}})),lt=o((function(t,e){return t&&e})),ft=i((function(t){return a(at(G,0,Z("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function ht(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function pt(t,e,n,r){return n[r](t,e)}var mt=et(D,pt,ht),yt=o((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:mt((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,i=e.length,o=[];for(n=0;n<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}(t,W(n,e))}),[],t)})),dt=o((function(t,e){return t.apply(this,e)})),bt=i((function(t){return a(t.length,t)})),vt=i((function(t){return null==t}));function gt(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}var _t=o((function(t,e){var n=a(t,e);return a(t,(function(){return D(yt,W(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Et=i((function(t){return _t(t.length,t)})),wt=o((function(t,e){return gt(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:Et(lt)(t,e)})),jt=Et(i((function(t){return!t})));function Ot(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function St(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return l(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var At=c(St("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)}))),kt=i(St("tail",At(1,1/0)));function Pt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return s(arguments[0].length,at(Ot,arguments[0],kt(arguments)))}var Mt=o((function(t,e){return null==e||e!=e?t:e})),xt=i((function(t){return Y(-1,t)})),Ct=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function It(t){return function(e){return new Ct(t,e)}}var Tt=o(f(["dropWhile"],It,(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return At(n,1/0,e)})));var Nt=i((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():l(t)?[]:H(t)?"":V(t)?{}:w(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0})),Rt=i((function(t){return a(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))})),Ut=o((function(t,e){if(0===t.length||vt(e))return!1;for(var n=e,r=0;r<t.length;){if(vt(n)||!g(t[r],n))return!1;n=n[t[r]],r+=1}return!0})),Dt=o((function(t,e){return Ut([t],e)})),Vt=function(t,e){switch(arguments.length){case 0:return Vt;case 1:return function e(n){return 0===arguments.length?e:_(t,n)};default:return _(t,e)}},Lt=o(I),Ft=At(0,-1),Bt=o((function(t,e){return a(t+1,(function(){var n=arguments[t];if(null!=n&&gt(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError($(n)+' does not have a method named "'+e+'"')}))})),zt=i((function(t){return null!=t&&C(t,Nt(t))})),qt=Bt(1,"join");function $t(t,e){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;var i=t[r];n=J(i)?Y(i,n):n[i]}return n}var Gt=o((function(t,e){return D((function(n,r){return n[r]=t(e[r],r,e),n}),{},k(e))})),Kt=c((function(t,e,n){var r,i={};for(r in n=n||{},e=e||{})g(r,e)&&(i[r]=g(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)g(r,n)&&!g(r,i)&&(i[r]=n[r]);return i})),Wt=c((function t(e,n,r){return Kt((function(n,r,i){return V(r)&&V(i)?t(e,r,i):e(n,r,i)}),n,r)})),Jt=o((function(t,e){return Wt((function(t,e,n){return n}),t,e)})),Ht=o($t),Yt=c((function(t,e,n){return Mt(t,$t(e,n))})),Xt=c((function(t,e,n){return t($t(e,n))})),Zt=c((function(t,e,n){return Mt(t,X(e,n))})),Qt=c((function(t,e,n){return t(X(e,n))})),te=Bt(1,"split"),ee=ct(void 0),ne=C(ee()),re=jt(ne),ie=C(null),oe=jt(ie),se=a(1,Pt(P,Vt("GeneratorFunction"))),ue=a(1,Pt(P,Vt("AsyncFunction"))),ae=ft([Pt(P,Vt("Function")),se,ue]),ce=wt(a(1,ae(Array.isArray)?Array.isArray:Pt(P,Vt("Array"))),zt),le=a(1,Pt(P,Vt("String")));function fe(t){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(t)}var he=jt(ae),pe=a(1,wt(oe,(function(t){return"object"===fe(t)}))),me=Pt(P,Vt("Object")),ye=Pt($,C($(Object))),de=Xt(wt(ae,ye),["constructor"]),be=a(1,(function(t){if(!pe(t)||!me(t))return!1;var e=Object.getPrototypeOf(t);return!!ie(e)||de(e)})),ve=a(1,Pt(P,Vt("Number"))),ge=ct(ee()),_e=Rt(Lt),Ee=a(3,(function(t,e,n){var r=Ht(t,n),i=Ht(Ft(t),n);if(!he(r)&&!ce(t)){var o=rt(r,i);return dt(o,e)}})),we=bt((function(t,e){return Pt(te(""),Tt(_e(t)),qt(""))(e)})),je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Oe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Se,Ae,ke,Pe,Me,xe,Ce,Ie,Te,Ne,Re,Ue,De,Ve,Le,Fe,Be,ze,qe,$e,Ge,Ke,We,Je,He,Ye,Xe,Ze,Qe,tn,en,nn,rn,on,sn,un,an,cn,ln,fn,hn,pn,mn,yn,dn,bn,vn,gn,_n,En,wn,jn,On,Sn,An,kn,Pn,Mn,xn,Cn,In,Tn,Nn,Rn,Un,Dn,Vn,Ln,Fn,Bn,zn,qn,$n,Gn,Kn,Wn,Jn,Hn,Yn,Xn,Zn,Qn,tr,er,nr,rr,ir,or,sr,ur,ar,cr,lr,fr,hr,pr,mr,yr,dr,br,vr,gr,_r,Er,wr,jr,Or,Sr,Ar,kr,Pr,Mr,xr,Cr,Ir,Tr,Nr,Rr,Ur,Dr,Vr,Lr,Fr,Br,zr,qr,$r,Gr,Kr,Wr,Jr,Hr,Yr,Xr,Zr,Qr,ti,ei,ni={};function ri(){if(Pe)return ke;Pe=1;var t="object"==typeof je&&je&&je.Object===Object&&je;return ke=t}function ii(){if(xe)return Me;xe=1;var t=ri(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Me=n}function oi(){if(Ie)return Ce;Ie=1;var t=ii().Symbol;return Ce=t}function si(){if(Ve)return De;Ve=1;var t=oi(),e=function(){if(Ne)return Te;Ne=1;var t=oi(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;return Te=function(t){var e=n.call(t,i),o=t[i];try{t[i]=void 0;var s=!0}catch(t){}var u=r.call(t);return s&&(e?t[i]=o:delete t[i]),u}}(),n=function(){if(Ue)return Re;Ue=1;var t=Object.prototype.toString;return Re=function(e){return t.call(e)}}(),r=t?t.toStringTag:void 0;return De=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?e(t):n(t)}}function ui(){if(Fe)return Le;Fe=1;var t=Array.isArray;return Le=t}function ai(){if(ze)return Be;return ze=1,Be=function(t){return null!=t&&"object"==typeof t}}function ci(){if(Ye)return He;return Ye=1,He=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},He}function li(){if(Ze)return Xe;Ze=1;return Xe=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const n=this.serialiseContent(t.content);return void 0!==n&&(e.content=n),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const n=this.deserialiseContent(t.content);return void 0===n&&null!==e.content||(e.content=n),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,n)=>{t&&(e[n.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}},Xe}function fi(){if(nn)return en;return nn=1,en=function(t,e){return t===e||t!=t&&e!=e}}function hi(){if(on)return rn;on=1;var t=fi();return rn=function(e,n){for(var r=e.length;r--;)if(t(e[r][0],n))return r;return-1}}function pi(){if(yn)return mn;yn=1;var t=tn?Qe:(tn=1,Qe=function(){this.__data__=[],this.size=0}),e=function(){if(un)return sn;un=1;var t=hi(),e=Array.prototype.splice;return sn=function(n){var r=this.__data__,i=t(r,n);return!(i<0||(i==r.length-1?r.pop():e.call(r,i,1),--this.size,0))}}(),n=function(){if(cn)return an;cn=1;var t=hi();return an=function(e){var n=this.__data__,r=t(n,e);return r<0?void 0:n[r][1]}}(),r=function(){if(fn)return ln;fn=1;var t=hi();return ln=function(e){return t(this.__data__,e)>-1}}(),i=function(){if(pn)return hn;pn=1;var t=hi();return hn=function(e,n){var r=this.__data__,i=t(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,mn=o}function mi(){if(Sn)return On;Sn=1;var t=si(),e=ci();return On=function(n){if(!e(n))return!1;var r=t(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function yi(){if(Mn)return Pn;Mn=1;var t=function(){if(kn)return An;kn=1;var t=ii()["__core-js_shared__"];return An=t}(),e=function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();return Pn=function(t){return!!e&&e in t}}function di(){if(Cn)return xn;Cn=1;var t=Function.prototype.toString;return xn=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function bi(){if(Dn)return Un;Dn=1;var t=function(){if(Tn)return In;Tn=1;var t=mi(),e=yi(),n=ci(),r=di(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,a=s.hasOwnProperty,c=RegExp("^"+u.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return In=function(o){return!(!n(o)||e(o))&&(t(o)?c:i).test(r(o))}}(),e=Rn?Nn:(Rn=1,Nn=function(t,e){return null==t?void 0:t[e]});return Un=function(n,r){var i=e(n,r);return t(i)?i:void 0}}function vi(){if(Ln)return Vn;Ln=1;var t=bi()(ii(),"Map");return Vn=t}function gi(){if(Bn)return Fn;Bn=1;var t=bi()(Object,"create");return Fn=t}function _i(){if(Qn)return Zn;Qn=1;var t=function(){if(qn)return zn;qn=1;var t=gi();return zn=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Gn?$n:(Gn=1,$n=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(Wn)return Kn;Wn=1;var t=gi(),e=Object.prototype.hasOwnProperty;return Kn=function(n){var r=this.__data__;if(t){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return e.call(r,n)?r[n]:void 0}}(),r=function(){if(Hn)return Jn;Hn=1;var t=gi(),e=Object.prototype.hasOwnProperty;return Jn=function(n){var r=this.__data__;return t?void 0!==r[n]:e.call(r,n)}}(),i=function(){if(Xn)return Yn;Xn=1;var t=gi();return Yn=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Zn=o}function Ei(){if(or)return ir;or=1;var t=(rr||(rr=1,nr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}),nr);return ir=function(e,n){var r=e.__data__;return t(n)?r["string"==typeof n?"string":"hash"]:r.map},ir}function wi(){if(yr)return mr;yr=1;var t=function(){if(er)return tr;er=1;var t=_i(),e=pi(),n=vi();return tr=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(ur)return sr;ur=1;var t=Ei();return sr=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(cr)return ar;cr=1;var t=Ei();return ar=function(e){return t(this,e).get(e)}}(),r=function(){if(fr)return lr;fr=1;var t=Ei();return lr=function(e){return t(this,e).has(e)}}(),i=function(){if(pr)return hr;pr=1;var t=Ei();return hr=function(e,n){var r=t(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,mr=o}function ji(){if(gr)return vr;gr=1;var t=pi(),e=function(){if(bn)return dn;bn=1;var t=pi();return dn=function(){this.__data__=new t,this.size=0}}(),n=gn?vn:(gn=1,vn=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),r=En?_n:(En=1,_n=function(t){return this.__data__.get(t)}),i=jn?wn:(jn=1,wn=function(t){return this.__data__.has(t)}),o=function(){if(br)return dr;br=1;var t=pi(),e=vi(),n=wi();return dr=function(r,i){var o=this.__data__;if(o instanceof t){var s=o.__data__;if(!e||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(e){var n=this.__data__=new t(e);this.size=n.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,vr=s}function Oi(){if(Sr)return Or;Sr=1;var t=wi(),e=Er?_r:(Er=1,_r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),n=jr?wr:(jr=1,wr=function(t){return this.__data__.has(t)});function r(e){var n=-1,r=null==e?0:e.length;for(this.__data__=new t;++n<r;)this.add(e[n])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Or=r}function Si(){if(Cr)return xr;Cr=1;var t=Oi(),e=kr?Ar:(kr=1,Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}),n=Mr?Pr:(Mr=1,Pr=function(t,e){return t.has(e)});return xr=function(r,i,o,s,u,a){var c=1&o,l=r.length,f=i.length;if(l!=f&&!(c&&f>l))return!1;var h=a.get(r),p=a.get(i);if(h&&p)return h==i&&p==r;var m=-1,y=!0,d=2&o?new t:void 0;for(a.set(r,i),a.set(i,r);++m<l;){var b=r[m],v=i[m];if(s)var g=c?s(v,b,m,i,r,a):s(b,v,m,r,i,a);if(void 0!==g){if(g)continue;y=!1;break}if(d){if(!e(i,(function(t,e){if(!n(d,e)&&(b===t||u(b,t,o,s,a)))return d.push(e)}))){y=!1;break}}else if(b!==v&&!u(b,v,o,s,a)){y=!1;break}}return a.delete(r),a.delete(i),y}}function Ai(){if(Lr)return Vr;Lr=1;var t=oi(),e=function(){if(Tr)return Ir;Tr=1;var t=ii().Uint8Array;return Ir=t}(),n=fi(),r=Si(),i=(Rr||(Rr=1,Nr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}),Nr),o=Dr?Ur:(Dr=1,Ur=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}),s=t?t.prototype:void 0,u=s?s.valueOf:void 0;return Vr=function(t,s,a,c,l,f,h){switch(a){case"[object DataView]":if(t.byteLength!=s.byteLength||t.byteOffset!=s.byteOffset)return!1;t=t.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=s.byteLength||!f(new e(t),new e(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+s);case"[object Error]":return t.name==s.name&&t.message==s.message;case"[object RegExp]":case"[object String]":return t==s+"";case"[object Map]":var p=i;case"[object Set]":var m=1&c;if(p||(p=o),t.size!=s.size&&!m)return!1;var y=h.get(t);if(y)return y==s;c|=2,h.set(t,s);var d=r(p(t),p(s),c,l,f,h);return h.delete(t),d;case"[object Symbol]":if(u)return u.call(t)==u.call(s)}return!1}}function ki(){if(qr)return zr;qr=1;var t=Br?Fr:(Br=1,Fr=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}),e=ui();return zr=function(n,r,i){var o=r(n);return e(n)?o:t(o,i(n))}}function Pi(){if(Hr)return Jr;Hr=1;var t=Gr?$r:(Gr=1,$r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}),e=Wr?Kr:(Wr=1,Kr=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Jr=r?function(e){return null==e?[]:(e=Object(e),t(r(e),(function(t){return n.call(e,t)})))}:e}function Mi(){if(ei)return ti;ei=1;var t=function(){if(Qr)return Zr;Qr=1;var t=si(),e=ai();return Zr=function(n){return e(n)&&"[object Arguments]"==t(n)}}(),e=ai(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&r.call(t,"callee")&&!i.call(t,"callee")};return ti=o}var xi,Ci,Ii,Ti,Ni,Ri,Ui,Di,Vi,Li,Fi,Bi={exports:{}};function zi(){return Ii||(Ii=1,function(t,e){var n=ii(),r=Ci?xi:(Ci=1,xi=function(){return!1}),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||r;t.exports=u}(Bi,Bi.exports)),Bi.exports}function qi(){if(Ui)return Ri;Ui=1;return Ri=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}var $i,Gi,Ki,Wi,Ji,Hi,Yi,Xi,Zi,Qi,to,eo,no,ro,io,oo,so,uo,ao,co,lo,fo,ho,po,mo,yo,bo,vo,go,_o,Eo,wo,jo,Oo,So,Ao,ko,Po,Mo,xo,Co,Io,To,No,Ro,Uo,Do,Vo,Lo,Fo,Bo,zo,qo,$o,Go,Ko,Wo,Jo,Ho,Yo,Xo,Zo,Qo,ts,es,ns,rs,is,os,ss,us,as,cs={exports:{}};function ls(){if(Ki)return Gi;Ki=1;var t=function(){if(Vi)return Di;Vi=1;var t=si(),e=qi(),n=ai(),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,Di=function(i){return n(i)&&e(i.length)&&!!r[t(i)]}}(),e=Fi?Li:(Fi=1,Li=function(t){return function(e){return t(e)}}),n=($i||($i=1,function(t,e){var n=ri(),r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(cs,cs.exports)),cs.exports),r=n&&n.isTypedArray,i=r?e(r):t;return Gi=i}function fs(){if(Ji)return Wi;Ji=1;var t=Xr?Yr:(Xr=1,Yr=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}),e=Mi(),n=ui(),r=zi(),i=function(){if(Ni)return Ti;Ni=1;var t=/^(?:0|[1-9]\d*)$/;return Ti=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},Ti}(),o=ls(),s=Object.prototype.hasOwnProperty;return Wi=function(u,a){var c=n(u),l=!c&&e(u),f=!c&&!l&&r(u),h=!c&&!l&&!f&&o(u),p=c||l||f||h,m=p?t(u.length,String):[],y=m.length;for(var d in u)!a&&!s.call(u,d)||p&&("length"==d||f&&("offset"==d||"parent"==d)||h&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||i(d,y))||m.push(d);return m}}function hs(){if(to)return Qi;to=1;var t=(Zi?Xi:(Zi=1,Xi=function(t,e){return function(n){return t(e(n))}}))(Object.keys,Object);return Qi=t}function ps(){if(no)return eo;no=1;var t=function(){if(Yi)return Hi;Yi=1;var t=Object.prototype;return Hi=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}}(),e=hs(),n=Object.prototype.hasOwnProperty;return eo=function(r){if(!t(r))return e(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function ms(){if(so)return oo;so=1;var t=fs(),e=ps(),n=function(){if(io)return ro;io=1;var t=mi(),e=qi();return ro=function(n){return null!=n&&e(n.length)&&!t(n)}}();return oo=function(r){return n(r)?t(r):e(r)}}function ys(){if(lo)return co;lo=1;var t=function(){if(ao)return uo;ao=1;var t=ki(),e=Pi(),n=ms();return uo=function(r){return t(r,n,e)}}(),e=Object.prototype.hasOwnProperty;return co=function(n,r,i,o,s,u){var a=1&i,c=t(n),l=c.length;if(l!=t(r).length&&!a)return!1;for(var f=l;f--;){var h=c[f];if(!(a?h in r:e.call(r,h)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var y=!0;u.set(n,r),u.set(r,n);for(var d=a;++f<l;){var b=n[h=c[f]],v=r[h];if(o)var g=a?o(v,b,h,r,n,u):o(b,v,h,n,r,u);if(!(void 0===g?b===v||s(b,v,i,o,u):g)){y=!1;break}d||(d="constructor"==h)}if(y&&!d){var _=n.constructor,E=r.constructor;_==E||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(y=!1)}return u.delete(n),u.delete(r),y}}function ds(){if(Eo)return _o;Eo=1;var t=function(){if(ho)return fo;ho=1;var t=bi()(ii(),"DataView");return fo=t}(),e=vi(),n=function(){if(mo)return po;mo=1;var t=bi()(ii(),"Promise");return po=t}(),r=function(){if(bo)return yo;bo=1;var t=bi()(ii(),"Set");return yo=t}(),i=function(){if(go)return vo;go=1;var t=bi()(ii(),"WeakMap");return vo=t}(),o=si(),s=di(),u="[object Map]",a="[object Promise]",c="[object Set]",l="[object WeakMap]",f="[object DataView]",h=s(t),p=s(e),m=s(n),y=s(r),d=s(i),b=o;return(t&&b(new t(new ArrayBuffer(1)))!=f||e&&b(new e)!=u||n&&b(n.resolve())!=a||r&&b(new r)!=c||i&&b(new i)!=l)&&(b=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return f;case p:return u;case m:return a;case y:return c;case d:return l}return e}),_o=b}function bs(){if(So)return Oo;So=1;var t=function(){if(jo)return wo;jo=1;var t=ji(),e=Si(),n=Ai(),r=ys(),i=ds(),o=ui(),s=zi(),u=ls(),a="[object Arguments]",c="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return wo=function(h,p,m,y,d,b){var v=o(h),g=o(p),_=v?c:i(h),E=g?c:i(p),w=(_=_==a?l:_)==l,j=(E=E==a?l:E)==l,O=_==E;if(O&&s(h)){if(!s(p))return!1;v=!0,w=!1}if(O&&!w)return b||(b=new t),v||u(h)?e(h,p,m,y,d,b):n(h,p,_,m,y,d,b);if(!(1&m)){var S=w&&f.call(h,"__wrapped__"),A=j&&f.call(p,"__wrapped__");if(S||A){var k=S?h.value():h,P=A?p.value():p;return b||(b=new t),d(k,P,m,y,b)}}return!!O&&(b||(b=new t),r(h,p,m,y,d,b))}}(),e=ai();return Oo=function n(r,i,o,s,u){return r===i||(null==r||null==i||!e(r)&&!e(i)?r!=r&&i!=i:t(r,i,o,s,n,u))},Oo}function vs(){if(Mo)return Po;Mo=1;class t{constructor(t,e){this.key=t,this.value=e}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}return Po=t}function gs(){if(Co)return xo;Co=1;return xo=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}},xo}function _s(){if(To)return Io;To=1;const t=gs();function e(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class n{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const n=[];return this.forEach((r=>{const i=t.bind(e)(r);i&&n.push(i)})),n}filter(t,r){return t=e(t),new n(this.elements.filter(t,r))}reject(r,i){return r=e(r),new n(this.elements.filter(t(r),i))}find(t,n){return t=e(t),this.elements.find(t,n)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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 Es(){if(Ro)return No;Ro=1;const t=function(){if(ko)return Ao;ko=1;var t=bs();return Ao=function(e,n){return t(e,n)}}(),e=vs(),n=_s();class r{constructor(t,e,n){e&&(this.meta=e),n&&(this.attributes=n),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof r?this.content.toValue():this.content instanceof e?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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=t.pop();let i=new n;const o=(t,e)=>(t.push(e),t),s=(t,n)=>{n.element===r&&t.push(n);const i=n.findRecursive(r);return i&&i.reduce(o,t),n.content instanceof e&&(n.content.key&&s(t,n.content.key),n.content.value&&s(t,n.content.value)),t};return this.content&&(this.content.element&&s(i,this.content),Array.isArray(this.content)&&this.content.reduce(s,i)),t.isEmpty||(i=i.filter((e=>{let n=e.parents.map((t=>t.element));for(const e in t){const r=t[e],i=n.indexOf(r);if(-1===i)return!1;n=n.splice(0,i)}return!0}))),i}set(t){return this.content=t,this}equals(e){return t(this.toValue(),e)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof r)this._content=t;else if(t instanceof n)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof e)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new n;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new n(this.content);if(this.content instanceof e){const t=new n([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof r?new n([this.content]):new n}get recursiveChildren(){const t=new n;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}return No=r}function ws(){if(Go)return $o;Go=1;const t=gs(),e=Es(),n=_s();class r extends e{constructor(t,e,n){super(t||[],e,n),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const n=[];return this.forEach((r=>{const i=t.bind(e)(r);i&&n.push(i)})),n}filter(t,e){return new n(this.content.filter(t,e))}reject(e,n){return this.filter(t(e),n)}reduce(t,e){let n,r;void 0!==e?(n=0,r=this.refract(e)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let e=n;e<this.length;e+=1){const n=this.content[e];r="object"===this.primitive()?this.refract(t(r,n.value,n.key,n,this)):this.refract(t(r,n,e,this))}return r}forEach(t,e){this.content.forEach(((n,r)=>{t.bind(e)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const n=e||{},r=!!n.recursive,i=void 0===n.results?[]:n.results;return this.forEach(((e,n,o)=>{r&&void 0!==e.findElements&&e.findElements(t,{results:i,recursive:r}),t(e,n,o)&&i.push(e)})),i}find(t){return new n(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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]()}),$o=r}function js(){if(Wo)return Ko;Wo=1;const t=vs(),e=Es();return Ko=class extends e{constructor(e,n,r,i){super(new t,r,i),this.element="member",this.key=e,this.value=n}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}}function Os(){if(Ho)return Jo;Ho=1;const t=gs(),e=_s();class n extends e{map(t,e){return this.elements.map((n=>t.bind(e)(n.value,n.key,n)))}filter(t,e){return new n(this.elements.filter((n=>t.bind(e)(n.value,n.key,n))))}reject(e,n){return this.filter(t(e.bind(n)))}forEach(t,e){return this.elements.forEach(((n,r)=>{t.bind(e)(n.value,n.key,n,r)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}return Jo=n}function Ss(){if(rs)return ns;rs=1;const t=Es(),e=function(){if(Do)return Uo;Do=1;const t=Es();return Uo=class extends t{constructor(t,e,n){super(t||null,e,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),n=function(){if(Lo)return Vo;Lo=1;const t=Es();return Vo=class extends t{constructor(t,e,n){super(t,e,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),r=function(){if(Bo)return Fo;Bo=1;const t=Es();return Fo=class extends t{constructor(t,e,n){super(t,e,n),this.element="number"}primitive(){return"number"}}}(),i=function(){if(qo)return zo;qo=1;const t=Es();return zo=class extends t{constructor(t,e,n){super(t,e,n),this.element="boolean"}primitive(){return"boolean"}}}(),o=ws(),s=js(),u=function(){if(Xo)return Yo;Xo=1;const t=gs(),e=ci(),n=ws(),r=js(),i=Os();return Yo=class extends n{constructor(t,e,n){super(t||[],e,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((n=>n.key.toValue()!==t||(e=n,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,n){if(e(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const i=t,o=this.getMember(i);return o?o.value=n:this.content.push(new r(i,n)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((n=>t.bind(e)(n.value,n.key,n)))}compactMap(t,e){const n=[];return this.forEach(((r,i,o)=>{const s=t.bind(e)(r,i,o);s&&n.push(s)})),n}filter(t,e){return new i(this.content).filter(t,e)}reject(e,n){return this.filter(t(e),n)}forEach(t,e){return this.content.forEach((n=>t.bind(e)(n.value,n.key,n)))}}}(),a=function(){if(Qo)return Zo;Qo=1;const t=Es();return Zo=class extends t{constructor(t,e,n){super(t||[],e,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}}(),c=function(){if(es)return ts;es=1;const t=Es();return ts=class extends t{constructor(t,e,n){super(t||[],e,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}}(),l=_s(),f=Os(),h=vs();function p(s){if(s instanceof t)return s;if("string"==typeof s)return new n(s);if("number"==typeof s)return new r(s);if("boolean"==typeof s)return new i(s);if(null===s)return new e;if(Array.isArray(s))return new o(s.map(p));if("object"==typeof s){return new u(s)}return s}return t.prototype.ObjectElement=u,t.prototype.RefElement=c,t.prototype.MemberElement=s,t.prototype.refract=p,l.prototype.refract=p,ns={Element:t,NullElement:e,StringElement:n,NumberElement:r,BooleanElement:i,ArrayElement:o,MemberElement:s,ObjectElement:u,LinkElement:a,RefElement:c,refract:p,ArraySlice:l,ObjectSlice:f,KeyValuePair:h}}function As(){if(os)return is;os=1;const t=Ae?Se:(Ae=1,Se=function(t){return null===t}),e=function(){if($e)return qe;$e=1;var t=si(),e=ui(),n=ai();return qe=function(r){return"string"==typeof r||!e(r)&&n(r)&&"[object String]"==t(r)}}(),n=function(){if(Ke)return Ge;Ke=1;var t=si(),e=ai();return Ge=function(n){return"number"==typeof n||e(n)&&"[object Number]"==t(n)}}(),r=function(){if(Je)return We;Je=1;var t=si(),e=ai();return We=function(n){return!0===n||!1===n||e(n)&&"[object Boolean]"==t(n)}}(),i=ci(),o=li(),s=Ss();class u{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=s.Element,this.KeyValuePair=s.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.load({base:this}),this}useDefault(){return this.register("null",s.NullElement).register("string",s.StringElement).register("number",s.NumberElement).register("boolean",s.BooleanElement).register("array",s.ArrayElement).register("object",s.ObjectElement).register("member",s.MemberElement).register("ref",s.RefElement).register("link",s.LinkElement),this.detect(t,s.NullElement,!1).detect(e,s.StringElement,!1).detect(n,s.NumberElement,!1).detect(r,s.BooleanElement,!1).detect(Array.isArray,s.ArrayElement,!1).detect(i,s.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,n){return void 0===n||n?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(t)){e=new i(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new o(this)}}return o.prototype.Namespace=u,is=u}var ks=function(){if(as)return ni;as=1;const t=As(),e=Ss();return ni.Namespace=t,ni.namespace=function(e){return new t(e)},ni.KeyValuePair=vs(),ni.ArraySlice=e.ArraySlice,ni.ObjectSlice=e.ObjectSlice,ni.Element=e.Element,ni.StringElement=e.StringElement,ni.NumberElement=e.NumberElement,ni.BooleanElement=e.BooleanElement,ni.NullElement=e.NullElement,ni.ArrayElement=e.ArrayElement,ni.ObjectElement=e.ObjectElement,ni.MemberElement=e.MemberElement,ni.RefElement=e.RefElement,ni.LinkElement=e.LinkElement,ni.refract=e.refract,ni.JSONSerialiser=li(),ni.JSON06Serialiser=function(){if(us)return ss;us=1;const t=li();return ss=class extends t{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const n={element:t.element};t._meta&&t._meta.length>0&&(n.meta=this.serialiseObject(t.meta));const r="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(r){const e=this.enumSerialiseAttributes(t);e&&(n.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:r}=t;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===t.element&&e&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(t,n);else if(this[`${t.element}SerialiseContent`])n.content=this[`${t.element}SerialiseContent`](t,n);else if(void 0!==t.content){let r;e&&t.content.key?(r=t.content.clone(),r.key.attributes.set("variable",e),r=this.serialiseContent(r)):r=this.serialiseContent(t.content),this.shouldSerialiseContent(t,r)&&(n.content=r)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),n=e.remove("enumerations")||new this.namespace.elements.Array([]),r=e.get("default");let i=e.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([r.content]))),i.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==n.length&&i.unshift(t.content),i=i.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),i.length&&e.set("samples",i),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),n=new e;n.element!==t.element&&(n.element=t.element),t.meta&&this.deserialiseObject(t.meta,n.meta),t.attributes&&this.deserialiseObject(t.attributes,n.attributes);const r=this.deserialiseContent(t.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let t=n.attributes.get("samples");if(n.attributes.remove("samples"),t){const r=t;t=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const i=new e(r);i.element=n.element,t.push(i)}))}));const i=t.shift();n.content=i?i.content:void 0,n.attributes.set("samples",t)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const t=new e(r);t.element=n.element,n.attributes.set("default",t)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const t=n.attributes.get("meta");t&&(n.attributes.set("metadata",t),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(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,n)=>{if(t){const r=n.toValue();e[r]=this.convertKeyToRefract(r,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}}}(),ni}();class Ps extends ks.StringElement{constructor(t,e,n){super(t,e,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}class Ms extends ks.StringElement{constructor(t,e,n){super(t,e,n),this.element="comment"}}class xs extends ks.ArrayElement{constructor(t,e,n){super(t,e,n),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(ne(e))return!1;const n=this.content.findIndex((t=>t===e));return-1!==n&&(this.content[n]=t,!0)}}const Cs=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],Is=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,Ts=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),Ns=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof ks.ArrayElement)&&e.classes.includes(t),Rs=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,Us=t=>t({hasMethod:Cs,hasBasicElementProps:Is,primitiveEq:Ts,isElementType:Rs,hasClass:Ns}),Ds=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.Element||t(n)&&e(void 0,n))),Vs=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.StringElement||t(n)&&e("string",n))),Ls=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.NumberElement||t(n)&&e("number",n))),Fs=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.NullElement||t(n)&&e("null",n))),Bs=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.BooleanElement||t(n)&&e("boolean",n))),zs=Us((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof ks.ObjectElement||t(r)&&e("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),qs=Us((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof ks.ArrayElement&&!(r instanceof ks.ObjectElement)||t(r)&&e("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),$s=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ks.MemberElement||t(r)&&e("member",r)&&n(void 0,r))),Gs=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ks.LinkElement||t(r)&&e("link",r)&&n(void 0,r))),Ks=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ks.RefElement||t(r)&&e("ref",r)&&n(void 0,r))),Ws=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ps||t(r)&&e("annotation",r)&&n("array",r))),Js=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ms||t(r)&&e("comment",r)&&n("string",r))),Hs=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof xs||t(r)&&e("parseResult",r)&&n("array",r))),Ys=t=>Rs("object",t)||Rs("array",t)||Rs("boolean",t)||Rs("number",t)||Rs("string",t)||Rs("null",t)||Rs("member",t),Xs=t=>!!Ds(t)&&(Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex)),Zs=(t,e)=>{if(0===t.length)return!0;const n=e.attributes.get("symbols");return!!qs(n)&&d(_e(n.toValue()),t)},Qs=(t,e)=>0===t.length||d(_e(e.classes.toValue()),t),tu=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Xs,includesClasses:Qs,includesSymbols:Zs,isAnnotationElement:Ws,isArrayElement:qs,isBooleanElement:Bs,isCommentElement:Js,isElement:Ds,isLinkElement:Gs,isMemberElement:$s,isNullElement:Fs,isNumberElement:Ls,isObjectElement:zs,isParseResultElement:Hs,isPrimitiveElement:Ys,isRefElement:Ks,isStringElement:Vs},Symbol.toStringTag,{value:"Module"}));class eu extends ks.Namespace{constructor(){super(),this.register("annotation",Ps),this.register("comment",Ms),this.register("parseResult",xs)}}const nu=new eu;var ru=Object.defineProperty,iu=Object.getOwnPropertySymbols,ou=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,uu=(t,e,n)=>e in t?ru(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var au,cu,lu,fu,hu,pu,mu,yu,du,bu,vu,gu,_u,Eu,wu,ju,Ou={},Su={},Au={};function ku(){if(cu)return au;cu=1;var t=function(t){return t&&t.Math===Math&&t};return au=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof je&&je)||t("object"==typeof au&&au)||function(){return this}()||Function("return this")()}function Pu(){return fu?lu:(fu=1,lu=function(t){try{return!!t()}catch(t){return!0}})}function Mu(){return pu?hu:(pu=1,hu=!Pu()((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})))}function xu(){if(yu)return mu;yu=1;var t=Mu(),e=Function.prototype,n=e.apply,r=e.call;return mu="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),mu}function Cu(){if(bu)return du;bu=1;var t=Mu(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return du=t?r:function(t){return function(){return n.apply(t,arguments)}},du}function Iu(){if(gu)return vu;gu=1;var t=Cu(),e=t({}.toString),n=t("".slice);return vu=function(t){return n(e(t),8,-1)}}function Tu(){if(Eu)return _u;Eu=1;var t=Iu(),e=Cu();return _u=function(n){if("Function"===t(n))return e(n)}}function Nu(){if(ju)return wu;ju=1;var t="object"==typeof document&&document.all;return wu=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var Ru,Uu,Du,Vu,Lu={};function Fu(){return Uu?Ru:(Uu=1,Ru=!Pu()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function Bu(){if(Vu)return Du;Vu=1;var t=Mu(),e=Function.prototype.call;return Du=t?e.bind(e):function(){return e.apply(e,arguments)},Du}var zu,qu,$u,Gu,Ku,Wu,Ju,Hu,Yu,Xu,Zu,Qu,ta,ea,na,ra,ia,oa,sa,ua,aa,ca,la,fa,ha,pa,ma,ya,da,ba,va,ga,_a,Ea,wa,ja,Oa,Sa={};function Aa(){if(zu)return Sa;zu=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return Sa.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,Sa}function ka(){return $u?qu:($u=1,qu=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Pa(){if(Ku)return Gu;Ku=1;var t=Cu(),e=Pu(),n=Iu(),r=Object,i=t("".split);return Gu=e((function(){return!r("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function Ma(){return Ju?Wu:(Ju=1,Wu=function(t){return null==t})}function xa(){if(Yu)return Hu;Yu=1;var t=Ma(),e=TypeError;return Hu=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function Ca(){if(Zu)return Xu;Zu=1;var t=Pa(),e=xa();return Xu=function(n){return t(e(n))}}function Ia(){if(ta)return Qu;ta=1;var t=Nu();return Qu=function(e){return"object"==typeof e?null!==e:t(e)}}function Ta(){return na?ea:(na=1,ea={})}function Na(){if(ia)return ra;ia=1;var t=Ta(),e=ku(),n=Nu(),r=function(t){return n(t)?t:void 0};return ra=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},ra}function Ra(){return sa?oa:(sa=1,oa=Cu()({}.isPrototypeOf))}function Ua(){if(aa)return ua;aa=1;var t=ku().navigator,e=t&&t.userAgent;return ua=e?String(e):""}function Da(){if(la)return ca;la=1;var t,e,n=ku(),r=Ua(),i=n.process,o=n.Deno,s=i&&i.versions||o&&o.version,u=s&&s.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),ca=e}function Va(){if(ha)return fa;ha=1;var t=Da(),e=Pu(),n=ku().String;return fa=!!Object.getOwnPropertySymbols&&!e((function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function La(){return ma?pa:(ma=1,pa=Va()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Fa(){if(da)return ya;da=1;var t=Na(),e=Nu(),n=Ra(),r=Object;return ya=La()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function Ba(){if(va)return ba;va=1;var t=String;return ba=function(e){try{return t(e)}catch(t){return"Object"}}}function za(){if(_a)return ga;_a=1;var t=Nu(),e=Ba(),n=TypeError;return ga=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function qa(){if(wa)return Ea;wa=1;var t=za(),e=Ma();return Ea=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function $a(){if(Oa)return ja;Oa=1;var t=Bu(),e=Nu(),n=Ia(),r=TypeError;return ja=function(i,o){var s,u;if("string"===o&&e(s=i.toString)&&!n(u=t(s,i)))return u;if(e(s=i.valueOf)&&!n(u=t(s,i)))return u;if("string"!==o&&e(s=i.toString)&&!n(u=t(s,i)))return u;throw new r("Can't convert object to primitive value")}}var Ga,Ka,Wa,Ja,Ha,Ya,Xa,Za,Qa,tc,ec,nc,rc,ic,oc,sc,uc,ac,cc,lc,fc,hc,pc,mc,yc,dc,bc,vc,gc={exports:{}};function _c(){return Ka?Ga:(Ka=1,Ga=!0)}function Ec(){if(Ja)return Wa;Ja=1;var t=ku(),e=Object.defineProperty;return Wa=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function wc(){if(Ha)return gc.exports;Ha=1;var t=_c(),e=ku(),n=Ec(),r="__core-js_shared__",i=gc.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:t?"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"}),gc.exports}function jc(){if(Xa)return Ya;Xa=1;var t=wc();return Ya=function(e,n){return t[e]||(t[e]=n||{})}}function Oc(){if(Qa)return Za;Qa=1;var t=xa(),e=Object;return Za=function(n){return e(t(n))}}function Sc(){if(ec)return tc;ec=1;var t=Cu(),e=Oc(),n=t({}.hasOwnProperty);return tc=Object.hasOwn||function(t,r){return n(e(t),r)}}function Ac(){if(rc)return nc;rc=1;var t=Cu(),e=0,n=Math.random(),r=t(1..toString);return nc=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function kc(){if(oc)return ic;oc=1;var t=ku(),e=jc(),n=Sc(),r=Ac(),i=Va(),o=La(),s=t.Symbol,u=e("wks"),a=o?s.for||s:s&&s.withoutSetter||r;return ic=function(t){return n(u,t)||(u[t]=i&&n(s,t)?s[t]:a("Symbol."+t)),u[t]}}function Pc(){if(uc)return sc;uc=1;var t=Bu(),e=Ia(),n=Fa(),r=qa(),i=$a(),o=TypeError,s=kc()("toPrimitive");return sc=function(u,a){if(!e(u)||n(u))return u;var c,l=r(u,s);if(l){if(void 0===a&&(a="default"),c=t(l,u,a),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(u,a)}}function Mc(){if(cc)return ac;cc=1;var t=Pc(),e=Fa();return ac=function(n){var r=t(n,"string");return e(r)?r:r+""}}function xc(){if(fc)return lc;fc=1;var t=ku(),e=Ia(),n=t.document,r=e(n)&&e(n.createElement);return lc=function(t){return r?n.createElement(t):{}}}function Cc(){if(pc)return hc;pc=1;var t=Fu(),e=Pu(),n=xc();return hc=!t&&!e((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Ic(){if(mc)return Lu;mc=1;var t=Fu(),e=Bu(),n=Aa(),r=ka(),i=Ca(),o=Mc(),s=Sc(),u=Cc(),a=Object.getOwnPropertyDescriptor;return Lu.f=t?a:function(t,c){if(t=i(t),c=o(c),u)try{return a(t,c)}catch(t){}if(s(t,c))return r(!e(n.f,t,c),t[c])},Lu}function Tc(){if(dc)return yc;dc=1;var t=Pu(),e=Nu(),n=/#|\.prototype\./,r=function(n,r){var a=o[i(n)];return a===u||a!==s&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",u=r.POLYFILL="P";return yc=r}function Nc(){if(vc)return bc;vc=1;var t=Tu(),e=za(),n=Mu(),r=t(t.bind);return bc=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},bc}var Rc,Uc,Dc,Vc,Lc,Fc,Bc,zc,qc,$c,Gc,Kc,Wc,Jc,Hc,Yc,Xc,Zc,Qc,tl,el,nl,rl,il={};function ol(){return Uc?Rc:(Uc=1,Rc=Fu()&&Pu()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function sl(){if(Vc)return Dc;Vc=1;var t=Ia(),e=String,n=TypeError;return Dc=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function ul(){if(Lc)return il;Lc=1;var t=Fu(),e=Cc(),n=ol(),r=sl(),i=Mc(),o=TypeError,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return il.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=u(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return s(t,e,n)}:s:function(t,n,u){if(r(t),n=i(n),r(u),e)try{return s(t,n,u)}catch(t){}if("get"in u||"set"in u)throw new o("Accessors not supported");return"value"in u&&(t[n]=u.value),t},il}function al(){if(Bc)return Fc;Bc=1;var t=Fu(),e=ul(),n=ka();return Fc=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}function cl(){if(qc)return zc;qc=1;var t=ku(),e=xu(),n=Tu(),r=Nu(),i=Ic().f,o=Tc(),s=Ta(),u=Nc(),a=al(),c=Sc(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return zc=function(e,f){var h,p,m,y,d,b,v,g,_,E=e.target,w=e.global,j=e.stat,O=e.proto,S=w?t:j?t[E]:t[E]&&t[E].prototype,A=w?s:s[E]||a(s,E,{})[E],k=A.prototype;for(y in f)p=!(h=o(w?y:E+(j?".":"#")+y,e.forced))&&S&&c(S,y),b=A[y],p&&(v=e.dontCallGetSet?(_=i(S,y))&&_.value:S[y]),d=p&&v?v:f[y],(h||O||typeof b!=typeof d)&&(g=e.bind&&p?u(d,t):e.wrap&&p?l(d):O&&r(d)?n(d):d,(e.sham||d&&d.sham||b&&b.sham)&&a(g,"sham",!0),a(A,y,g),O&&(c(s,m=E+"Prototype")||a(s,m,{}),a(s[m],y,d),e.real&&k&&(h||!k[y])&&a(k,y,d)))}}function ll(){if(Gc)return $c;Gc=1;var t=jc(),e=Ac(),n=t("keys");return $c=function(t){return n[t]||(n[t]=e(t))}}function fl(){return Wc||(Wc=1,Kc=!Pu()((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))),Kc}function hl(){if(Hc)return Jc;Hc=1;var t=Sc(),e=Nu(),n=Oc(),r=ll(),i=fl(),o=r("IE_PROTO"),s=Object,u=s.prototype;return Jc=i?s.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var a=i.constructor;return e(a)&&i instanceof a?a.prototype:i instanceof s?u:null}}function pl(){if(Xc)return Yc;Xc=1;var t=Cu(),e=za();return Yc=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}}}function ml(){if(Qc)return Zc;Qc=1;var t=Ia();return Zc=function(e){return t(e)||null===e}}function yl(){if(el)return tl;el=1;var t=ml(),e=String,n=TypeError;return tl=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function dl(){if(rl)return nl;rl=1;var t=pl(),e=Ia(),n=xa(),r=yl();return nl=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=t(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(t){}return function(t,s){return n(t),r(s),e(t)?(o?i(t,s):t.__proto__=s,t):t}}():void 0)}var bl,vl,gl,_l,El,wl,jl,Ol,Sl,Al,kl,Pl,Ml,xl,Cl,Il,Tl,Nl,Rl,Ul={};function Dl(){if(vl)return bl;vl=1;var t=Math.ceil,e=Math.floor;return bl=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function Vl(){if(_l)return gl;_l=1;var t=Dl();return gl=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Ll(){if(wl)return El;wl=1;var t=Vl(),e=Math.max,n=Math.min;return El=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function Fl(){if(Ol)return jl;Ol=1;var t=Vl(),e=Math.min;return jl=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Bl(){if(Al)return Sl;Al=1;var t=Fl();return Sl=function(e){return t(e.length)}}function zl(){if(Pl)return kl;Pl=1;var t=Ca(),e=Ll(),n=Bl(),r=function(r){return function(i,o,s){var u=t(i),a=n(u);if(0===a)return!r&&-1;var c,l=e(s,a);if(r&&o!=o){for(;a>l;)if((c=u[l++])!=c)return!0}else for(;a>l;l++)if((r||l in u)&&u[l]===o)return r||l||0;return!r&&-1}};return kl={includes:r(!0),indexOf:r(!1)}}function ql(){return xl?Ml:(xl=1,Ml={})}function $l(){if(Il)return Cl;Il=1;var t=Cu(),e=Sc(),n=Ca(),r=zl().indexOf,i=ql(),o=t([].push);return Cl=function(t,s){var u,a=n(t),c=0,l=[];for(u in a)!e(i,u)&&e(a,u)&&o(l,u);for(;s.length>c;)e(a,u=s[c++])&&(~r(l,u)||o(l,u));return l}}function Gl(){return Nl?Tl:(Nl=1,Tl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Kl(){if(Rl)return Ul;Rl=1;var t=$l(),e=Gl().concat("length","prototype");return Ul.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Ul}var Wl,Jl,Hl,Yl,Xl,Zl={};function Ql(){return Wl||(Wl=1,Zl.f=Object.getOwnPropertySymbols),Zl}function tf(){if(Hl)return Jl;Hl=1;var t=Na(),e=Cu(),n=Kl(),r=Ql(),i=sl(),o=e([].concat);return Jl=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),s=r.f;return s?o(e,s(t)):e},Jl}function ef(){if(Xl)return Yl;Xl=1;var t=Sc(),e=tf(),n=Ic(),r=ul();return Yl=function(i,o,s){for(var u=e(o),a=r.f,c=n.f,l=0;l<u.length;l++){var f=u[l];t(i,f)||s&&t(s,f)||a(i,f,c(o,f))}},Yl}var nf,rf,of,sf,uf,af,cf,lf,ff,hf,pf,mf,yf,df,bf,vf,gf,_f,Ef,wf,jf,Of,Sf,Af,kf,Pf,Mf,xf,Cf,If,Tf,Nf,Rf,Uf,Df,Vf,Lf,Ff,Bf={};function zf(){if(rf)return nf;rf=1;var t=$l(),e=Gl();return nf=Object.keys||function(n){return t(n,e)}}function qf(){if(of)return Bf;of=1;var t=Fu(),e=ol(),n=ul(),r=sl(),i=Ca(),o=zf();return Bf.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var s,u=i(e),a=o(e),c=a.length,l=0;c>l;)n.f(t,s=a[l++],u[s]);return t},Bf}function $f(){return uf?sf:(uf=1,sf=Na()("document","documentElement"))}function Gf(){if(cf)return af;cf=1;var t,e=sl(),n=qf(),r=Gl(),i=ql(),o=$f(),s=xc(),u="prototype",a="script",c=ll()("IE_PROTO"),l=function(){},f=function(t){return"<"+a+">"+t+"</"+a+">"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;p="undefined"!=typeof document?document.domain&&t?h(t):(n=s("iframe"),i="java"+a+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(t);for(var c=r.length;c--;)delete p[u][r[c]];return p()};return i[c]=!0,af=Object.create||function(t,r){var i;return null!==t?(l[u]=e(t),i=new l,l[u]=null,i[c]=t):i=p(),void 0===r?i:n.f(i,r)}}function Kf(){if(ff)return lf;ff=1;var t=Ia(),e=al();return lf=function(n,r){t(r)&&"cause"in r&&e(n,"cause",r.cause)}}function Wf(){if(pf)return hf;pf=1;var t=Error,e=Cu()("".replace),n=String(new t("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,i=r.test(n);return hf=function(n,o){if(i&&"string"==typeof n&&!t.prepareStackTrace)for(;o--;)n=e(n,r,"");return n}}function Jf(){if(yf)return mf;yf=1;var t=Pu(),e=ka();return mf=!t((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",e(1,7)),7!==t.stack)}))}function Hf(){if(bf)return df;bf=1;var t=al(),e=Wf(),n=Jf(),r=Error.captureStackTrace;return df=function(i,o,s,u){n&&(r?r(i,o):t(i,"stack",e(s,u)))}}function Yf(){return gf?vf:(gf=1,vf={})}function Xf(){if(Ef)return _f;Ef=1;var t=kc(),e=Yf(),n=t("iterator"),r=Array.prototype;return _f=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Zf(){if(jf)return wf;jf=1;var t={};return t[kc()("toStringTag")]="z",wf="[object z]"===String(t)}function Qf(){if(Sf)return Of;Sf=1;var t=Zf(),e=Nu(),n=Iu(),r=kc()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Of=t?n:function(t){var s,u,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(u=function(t,e){try{return t[e]}catch(t){}}(s=i(t),r))?u:o?n(s):"Object"===(a=n(s))&&e(s.callee)?"Arguments":a}}function th(){if(kf)return Af;kf=1;var t=Qf(),e=qa(),n=Ma(),r=Yf(),i=kc()("iterator");return Af=function(o){if(!n(o))return e(o,i)||e(o,"@@iterator")||r[t(o)]}}function eh(){if(Mf)return Pf;Mf=1;var t=Bu(),e=za(),n=sl(),r=Ba(),i=th(),o=TypeError;return Pf=function(s,u){var a=arguments.length<2?i(s):u;if(e(a))return n(t(a,s));throw new o(r(s)+" is not iterable")},Pf}function nh(){if(Cf)return xf;Cf=1;var t=Bu(),e=sl(),n=qa();return xf=function(r,i,o){var s,u;e(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=t(s,r)}catch(t){u=!0,s=t}if("throw"===i)throw o;if(u)throw s;return e(s),o}}function rh(){if(Tf)return If;Tf=1;var t=Nc(),e=Bu(),n=sl(),r=Ba(),i=Xf(),o=Bl(),s=Ra(),u=eh(),a=th(),c=nh(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},h=f.prototype;return If=function(p,m,y){var d,b,v,g,_,E,w,j=y&&y.that,O=!(!y||!y.AS_ENTRIES),S=!(!y||!y.IS_RECORD),A=!(!y||!y.IS_ITERATOR),k=!(!y||!y.INTERRUPTED),P=t(m,j),M=function(t){return d&&c(d,"normal",t),new f(!0,t)},x=function(t){return O?(n(t),k?P(t[0],t[1],M):P(t[0],t[1])):k?P(t,M):P(t)};if(S)d=p.iterator;else if(A)d=p;else{if(!(b=a(p)))throw new l(r(p)+" is not iterable");if(i(b)){for(v=0,g=o(p);g>v;v++)if((_=x(p[v]))&&s(h,_))return _;return new f(!1)}d=u(p,b)}for(E=S?p.next:d.next;!(w=e(E,d)).done;){try{_=x(w.value)}catch(t){c(d,"throw",t)}if("object"==typeof _&&_&&s(h,_))return _}return new f(!1)}}function ih(){if(Rf)return Nf;Rf=1;var t=Qf(),e=String;return Nf=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function oh(){if(Df)return Uf;Df=1;var t=ih();return Uf=function(e,n){return void 0===e?arguments.length<2?"":n:t(e)},Uf}function sh(){return Lf||(Lf=1,function(){if(Vf)return Au;Vf=1;var t=cl(),e=Ra(),n=hl(),r=dl(),i=ef(),o=Gf(),s=al(),u=ka(),a=Kf(),c=Hf(),l=rh(),f=oh(),h=kc()("toStringTag"),p=Error,m=[].push,y=function(t,i){var u,b=e(d,this);r?u=r(new p,b?n(this):d):(u=b?this:o(d),s(u,h,"Error")),void 0!==i&&s(u,"message",f(i)),c(u,y,u.stack,1),arguments.length>2&&a(u,arguments[2]);var v=[];return l(t,m,{that:v}),s(u,"errors",v),u};r?r(y,p):i(y,p,{name:!0});var d=y.prototype=o(p.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:y})}()),Su}function uh(){return Ff||(Ff=1,sh()),Ou}var ah,ch,lh,fh,hh,ph,mh,yh={};function dh(){if(ch)return ah;ch=1;var t=ul().f;return ah=function(e,n,r){r in e||t(e,r,{configurable:!0,get:function(){return n[r]},set:function(t){n[r]=t}})}}function bh(){if(fh)return lh;fh=1;var t=Nu(),e=Ia(),n=dl();return lh=function(r,i,o){var s,u;return n&&t(s=i.constructor)&&s!==o&&e(u=s.prototype)&&u!==o.prototype&&n(r,u),r}}function vh(){if(ph)return hh;ph=1;var t=Na(),e=Sc(),n=al(),r=Ra(),i=dl(),o=ef(),s=dh(),u=bh(),a=oh(),c=Kf(),l=Hf(),f=Fu(),h=_c();return hh=function(p,m,y,d){var b="stackTraceLimit",v=d?2:1,g=p.split("."),_=g[g.length-1],E=t.apply(null,g);if(E){var w=E.prototype;if(!h&&e(w,"cause")&&delete w.cause,!y)return E;var j=t("Error"),O=m((function(t,e){var i=a(d?e:t,void 0),o=d?new E(t):new E;return void 0!==i&&n(o,"message",i),l(o,O,o.stack,2),this&&r(w,this)&&u(o,this,O),arguments.length>v&&c(o,arguments[v]),o}));if(O.prototype=w,"Error"!==_?i?i(O,j):o(O,j,{name:!0}):f&&b in E&&(s(O,E,b),s(O,E,"prepareStackTrace")),o(O,E),!h)try{w.name!==_&&n(w,"name",_),w.constructor=O}catch(t){}return O}},hh}var gh,_h,Eh,wh,jh,Oh,Sh,Ah,kh,Ph,Mh,xh,Ch,Ih,Th,Nh,Rh,Uh,Dh,Vh,Lh,Fh,Bh,zh,qh,$h={};function Gh(){return Eh?_h:(Eh=1,_h=function(){})}function Kh(){if(jh)return wh;jh=1;var t=ku(),e=Nu(),n=t.WeakMap;return wh=e(n)&&/native code/.test(String(n))}function Wh(){if(Sh)return Oh;Sh=1;var t,e,n,r=Kh(),i=ku(),o=Ia(),s=al(),u=Sc(),a=wc(),c=ll(),l=ql(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||a.state){var m=a.state||(a.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,t=function(t,e){if(m.has(t))throw new h(f);return e.facade=t,m.set(t,e),e},e=function(t){return m.get(t)||{}},n=function(t){return m.has(t)}}else{var y=c("state");l[y]=!0,t=function(t,e){if(u(t,y))throw new h(f);return e.facade=t,s(t,y,e),e},e=function(t){return u(t,y)?t[y]:{}},n=function(t){return u(t,y)}}return Oh={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function Jh(){if(kh)return Ah;kh=1;var t=Fu(),e=Sc(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!t||t&&r(n,"name").configurable);return Ah={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Hh(){if(Mh)return Ph;Mh=1;var t=al();return Ph=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function Yh(){if(Ch)return xh;Ch=1;var t,e,n,r=Pu(),i=Nu(),o=Ia(),s=Gf(),u=hl(),a=Hh(),c=kc(),l=_c(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(e=u(u(n)))!==Object.prototype&&(t=e):h=!0),!o(t)||r((function(){var e={};return t[f].call(e)!==e}))?t={}:l&&(t=s(t)),i(t[f])||a(t,f,(function(){return this})),xh={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:h}}function Xh(){if(Th)return Ih;Th=1;var t=Zf(),e=Qf();return Ih=t?{}.toString:function(){return"[object "+e(this)+"]"}}function Zh(){if(Rh)return Nh;Rh=1;var t=Zf(),e=ul().f,n=al(),r=Sc(),i=Xh(),o=kc()("toStringTag");return Nh=function(s,u,a,c){var l=a?s:s&&s.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:u}),c&&!t&&n(l,"toString",i))}}function Qh(){if(Dh)return Uh;Dh=1;var t=Yh().IteratorPrototype,e=Gf(),n=ka(),r=Zh(),i=Yf(),o=function(){return this};return Uh=function(s,u,a,c){var l=u+" Iterator";return s.prototype=e(t,{next:n(+!c,a)}),r(s,l,!1,!0),i[l]=o,s}}function tp(){if(Lh)return Vh;Lh=1;var t=cl(),e=Bu(),n=_c(),r=Jh(),i=Nu(),o=Qh(),s=hl(),u=dl(),a=Zh(),c=al(),l=Hh(),f=kc(),h=Yf(),p=Yh(),m=r.PROPER,y=r.CONFIGURABLE,d=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,v=f("iterator"),g="keys",_="values",E="entries",w=function(){return this};return Vh=function(r,f,p,j,O,S,A){o(p,f,j);var k,P,M,x=function(t){if(t===O&&R)return R;if(!b&&t&&t in T)return T[t];switch(t){case g:case _:case E:return function(){return new p(this,t)}}return function(){return new p(this)}},C=f+" Iterator",I=!1,T=r.prototype,N=T[v]||T["@@iterator"]||O&&T[O],R=!b&&N||x(O),U="Array"===f&&T.entries||N;if(U&&(k=s(U.call(new r)))!==Object.prototype&&k.next&&(n||s(k)===d||(u?u(k,d):i(k[v])||l(k,v,w)),a(k,C,!0,!0),n&&(h[C]=w)),m&&O===_&&N&&N.name!==_&&(!n&&y?c(T,"name",_):(I=!0,R=function(){return e(N,this)})),O)if(P={values:x(_),keys:S?R:x(g),entries:x(E)},A)for(M in P)(b||I||!(M in T))&&l(T,M,P[M]);else t({target:f,proto:!0,forced:b||I},P);return n&&!A||T[v]===R||l(T,v,R,{name:O}),h[f]=R,P}}function ep(){return Bh?Fh:(Bh=1,Fh=function(t,e){return{value:t,done:e}})}function np(){if(qh)return zh;qh=1;var t=Ca(),e=Gh(),n=Yf(),r=Wh(),i=ul().f,o=tp(),s=ep(),u=_c(),a=Fu(),c="Array Iterator",l=r.set,f=r.getterFor(c);zh=o(Array,"Array",(function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})}),(function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)}),"values");var h=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!u&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(t){}return zh}var rp,ip,op,sp,up,ap={};function cp(){if(ip)return rp;ip=1;var t=Cu(),e=Vl(),n=ih(),r=xa(),i=t("".charAt),o=t("".charCodeAt),s=t("".slice),u=function(t){return function(u,a){var c,l,f=n(r(u)),h=e(a),p=f.length;return h<0||h>=p?t?"":void 0:(c=o(f,h))<55296||c>56319||h+1===p||(l=o(f,h+1))<56320||l>57343?t?i(f,h):c:t?s(f,h,h+2):l-56320+(c-55296<<10)+65536}};return rp={codeAt:u(!1),charAt:u(!0)}}function lp(){return up?sp:(up=1,function(){if(mh)return yh;mh=1;var t=cl(),e=ku(),n=xu(),r=vh(),i="WebAssembly",o=e[i],s=7!==new Error("e",{cause:7}).cause,u=function(e,n){var i={};i[e]=r(e,n,s),t({global:!0,constructor:!0,arity:1,forced:s},i)},a=function(e,n){if(o&&o[e]){var u={};u[e]=r(i+"."+e,n,s),t({target:i,stat:!0,constructor:!0,arity:1,forced:s},u)}};u("Error",(function(t){return function(e){return n(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return n(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return n(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return n(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return n(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return n(t,this,arguments)}})),u("URIError",(function(t){return function(e){return n(t,this,arguments)}})),a("CompileError",(function(t){return function(e){return n(t,this,arguments)}})),a("LinkError",(function(t){return function(e){return n(t,this,arguments)}})),a("RuntimeError",(function(t){return function(e){return n(t,this,arguments)}}))}(),sh(),function(){if(gh)return $h;gh=1;var t=cl(),e=Na(),n=xu(),r=Pu(),i=vh(),o="AggregateError",s=e(o),u=!r((function(){return 1!==s([1]).errors[0]}))&&r((function(){return 7!==s([1],o,{cause:7}).cause}));t({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:i(o,(function(t){return function(e,r){return n(t,this,arguments)}}),u,!0)})}(),np(),function(){if(op)return ap;op=1;var t=cp().charAt,e=ih(),n=Wh(),r=tp(),i=ep(),o="String Iterator",s=n.set,u=n.getterFor(o);r(String,"String",(function(t){s(this,{type:o,string:e(t),index:0})}),(function(){var e,n=u(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}))}(),sp=Ta().AggregateError)}var fp,hp,pp,mp,yp,dp,bp,vp,gp,_p,Ep,wp,jp,Op={};function Sp(){return hp?fp:(hp=1,fp={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 Ap(){if(yp)return mp;yp=1,uh();var t=lp();return function(){if(pp)return Op;pp=1,np();var t=Sp(),e=ku(),n=Zh(),r=Yf();for(var i in t)n(e[i],i),r[i]=r.Array}(),mp=t}function kp(){return bp?dp:(bp=1,dp=Ap())}function Pp(){return gp?vp:(gp=1,uh(),vp=kp())}function Mp(){return Ep?_p:(Ep=1,_p=Pp())}const xp=Oe(jp?wp:(jp=1,wp=Mp()));class Cp extends xp{constructor(t,e,n){if(super(t,e,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:t}=n;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}class Ip extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Cp,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}class Tp extends Ip{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...n}=e;Object.assign(this,n)}}}class Np extends Ip{}class Rp extends Np{}const Up=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},Dp={},Vp=t=>null==t?void 0:t.type,Lp=t=>"string"==typeof Vp(t),Fp=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Bp=(t,{visitFnGetter:e=Up,nodeTypeGetter:n=Vp,breakSymbol:r=Dp,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const u=Symbol("skip"),a=new Array(t.length).fill(u);return{enter(c,l,f,h,p,m){let y=c,d=!1;const b={...m,replaceWith(t,e){m.replaceWith(t,e),y=t}};for(let c=0;c<t.length;c+=1)if(a[c]===u){const u=e(t[c],n(y),!1);if("function"==typeof u){const e=u.call(t[c],y,l,f,h,p,b);if("function"==typeof(null==e?void 0:e.then))throw new Tp("Async visitor not supported in sync mode",{visitor:t[c],visitFn:u});if(e===o)a[c]=y;else if(e===r)a[c]=r;else{if(e===i)return e;if(void 0!==e){if(!s)return e;y=e,d=!0}}}}return d?y:void 0},leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(t,e){h.replaceWith(t,e),p=t}};for(let i=0;i<t.length;i+=1)if(a[i]===u){const u=e(t[i],n(p),!0);if("function"==typeof u){const e=u.call(t[i],p,s,c,l,f,m);if("function"==typeof(null==e?void 0:e.then))throw new Tp("Async visitor not supported in sync mode",{visitor:t[i],visitFn:u});if(e===r)a[i]=r;else if(void 0!==e&&e!==o)return e}}else a[i]===p&&(a[i]=u)}}};Bp[Symbol.for("nodejs.util.promisify.custom")]=(t,{visitFnGetter:e=Up,nodeTypeGetter:n=Vp,breakSymbol:r=Dp,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const u=Symbol("skip"),a=new Array(t.length).fill(u);return{async enter(c,l,f,h,p,m){let y=c,d=!1;const b={...m,replaceWith(t,e){m.replaceWith(t,e),y=t}};for(let c=0;c<t.length;c+=1)if(a[c]===u){const u=e(t[c],n(y),!1);if("function"==typeof u){const e=await u.call(t[c],y,l,f,h,p,b);if(e===o)a[c]=y;else if(e===r)a[c]=r;else{if(e===i)return e;if(void 0!==e){if(!s)return e;y=e,d=!0}}}}return d?y:void 0},async leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(t,e){h.replaceWith(t,e),p=t}};for(let i=0;i<t.length;i+=1)if(a[i]===u){const u=e(t[i],n(p),!0);if("function"==typeof u){const e=await u.call(t[i],p,s,c,l,f,m);if(e===r)a[i]=r;else if(void 0!==e&&e!==o)return e}}else a[i]===p&&(a[i]=u)}}};const zp=(t,e,{keyMap:n=null,state:r={},breakSymbol:i=Dp,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:u=Up,nodeTypeGetter:a=Vp,nodePredicate:c=Lp,nodeCloneFn:l=Fp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(t),b=[t],v=-1,g=[],_=t;const E=[],w=[];do{v+=1;const t=v===b.length;let n;const S=t&&0!==g.length;if(t){if(n=0===w.length?void 0:E.pop(),_=y,y=w.pop(),S)if(d){_=_.slice();let t=0;for(const[e,n]of g){const r=e-t;n===o?(_.splice(r,1),t+=1):_[r]=n}}else{_=l(_);for(const[t,e]of g)_[t]=e}v=m.index,b=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?v:b[v],_=y[n],_===o||void 0===_)continue;E.push(n)}let A;if(!Array.isArray(_)){var j;if(!c(_))throw new Tp(`Invalid AST Node: ${String(_)}`,{node:_});if(f&&w.includes(_)){"function"==typeof h&&h(_,n,y,E,w),E.pop();continue}const o=u(e,a(_),t);if(o){for(const[t,n]of Object.entries(r))e[t]=n;const i={replaceWith(e,r){"function"==typeof r?r(e,_,n,y,E,w):y&&(y[n]=e),t||(_=e)}};A=o.call(e,_,n,y,E,w,i)}if("function"==typeof(null===(j=A)||void 0===j?void 0:j.then))throw new Tp("Async visitor not supported in sync mode",{visitor:e,visitFn:o});if(A===i)break;if(A===s){if(!t){E.pop();continue}}else if(void 0!==A&&(g.push([n,A]),!t)){if(!c(A)){E.pop();continue}_=A}}var O;if(void 0===A&&S&&g.push([n,_]),!t)m={inArray:d,index:v,keys:b,edits:g,prev:m},d=Array.isArray(_),b=d?_:null!==(O=p[a(_)])&&void 0!==O?O:[],v=-1,g=[],y!==o&&void 0!==y&&w.push(y),y=_}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};zp[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=null,state:r={},breakSymbol:i=Dp,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:u=Up,nodeTypeGetter:a=Vp,nodePredicate:c=Lp,nodeCloneFn:l=Fp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(t),b=[t],v=-1,g=[],_=t;const E=[],w=[];do{v+=1;const t=v===b.length;let n;const O=t&&0!==g.length;if(t){if(n=0===w.length?void 0:E.pop(),_=y,y=w.pop(),O)if(d){_=_.slice();let t=0;for(const[e,n]of g){const r=e-t;n===o?(_.splice(r,1),t+=1):_[r]=n}}else{_=l(_);for(const[t,e]of g)_[t]=e}v=m.index,b=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?v:b[v],_=y[n],_===o||void 0===_)continue;E.push(n)}let S;if(!Array.isArray(_)){if(!c(_))throw new Tp(`Invalid AST Node: ${String(_)}`,{node:_});if(f&&w.includes(_)){"function"==typeof h&&h(_,n,y,E,w),E.pop();continue}const o=u(e,a(_),t);if(o){for(const[t,n]of Object.entries(r))e[t]=n;const i={replaceWith(e,r){"function"==typeof r?r(e,_,n,y,E,w):y&&(y[n]=e),t||(_=e)}};S=await o.call(e,_,n,y,E,w,i)}if(S===i)break;if(S===s){if(!t){E.pop();continue}}else if(void 0!==S&&(g.push([n,S]),!t)){if(!c(S)){E.pop();continue}_=S}}var j;if(void 0===S&&O&&g.push([n,_]),!t)m={inArray:d,index:v,keys:b,edits:g,prev:m},d=Array.isArray(_),b=d?_:null!==(j=p[a(_)])&&void 0!==j?j:[],v=-1,g=[],y!==o&&void 0!==y&&w.push(y),y=_}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};var qp=Object.defineProperty,$p=(t,e,n)=>((t,e,n)=>e in t?qp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,e+"",n);class Gp extends Tp{constructor(t,e){super(t,e),$p(this,"value"),void 0!==e&&(this.value=e.value)}}class Kp extends Gp{}class Wp extends Gp{}const Jp=(t,e)=>{const n=Mt(t,e);return Gt((t=>{if(be(t)&&Dt("$ref",t)&&Qt(le,"$ref",t)){const e=Ht(["$ref"],t),r=we("#/",e);return Ht(r.split("/"),n)}return be(t)?Jp(t,n):t}),t)},Hp=(t,e)=>(t.startPositionRow=null==e?void 0:e.startPositionRow,t.startPositionColumn=null==e?void 0:e.startPositionColumn,t.startIndex=null==e?void 0:e.startIndex,t.endPositionRow=null==e?void 0:e.endPositionRow,t.endPositionColumn=null==e?void 0:e.endPositionColumn,t.endIndex=null==e?void 0:e.endIndex,t);var Yp=Object.defineProperty,Xp=Object.defineProperties,Zp=Object.getOwnPropertyDescriptors,Qp=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable,nm=(t,e,n)=>e in t?Yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;const rm=(t,e={})=>{const{visited:n=new WeakMap}=e,r=(i=((t,e)=>{for(var n in e||(e={}))tm.call(e,n)&&nm(t,n,e[n]);if(Qp)for(var n of Qp(e))em.call(e,n)&&nm(t,n,e[n]);return t})({},e),Xp(i,Zp({visited:n})));var i;if(n.has(t))return n.get(t);if(t instanceof ks.KeyValuePair){const{key:e,value:i}=t,o=Ds(e)?rm(e,r):e,s=Ds(i)?rm(i,r):i,u=new ks.KeyValuePair(o,s);return n.set(t,u),u}if(t instanceof ks.ObjectSlice){const e=t=>rm(t,r),i=[...t].map(e),o=new ks.ObjectSlice(i);return n.set(t,o),o}if(t instanceof ks.ArraySlice){const e=t=>rm(t,r),i=[...t].map(e),o=new ks.ArraySlice(i);return n.set(t,o),o}if(Ds(t)){const e=sm(t);if(n.set(t,e),t.content)if(Ds(t.content))e.content=rm(t.content,r);else if(t.content instanceof ks.KeyValuePair)e.content=rm(t.content,r);else if(Array.isArray(t.content)){const n=t=>rm(t,r);e.content=t.content.map(n)}else e.content=t.content;else e.content=t.content;return e}throw new Kp("Value provided to cloneDeep function couldn't be cloned",{value:t})};rm.safe=t=>{try{return rm(t)}catch(e){return t}};const im=t=>{const{key:e,value:n}=t;return new ks.KeyValuePair(e,n)},om=t=>{const e=new t.constructor;if(e.element=t.element,Xs(t)&&Hp(e,t),t.meta.length>0&&(e._meta=rm(t.meta)),t.attributes.length>0&&(e._attributes=rm(t.attributes)),Ds(t.content)){const n=t.content;e.content=om(n)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof ks.KeyValuePair?e.content=im(t.content):e.content=t.content;return e},sm=t=>{if(t instanceof ks.KeyValuePair)return im(t);if(t instanceof ks.ObjectSlice)return(t=>{const e=[...t];return new ks.ObjectSlice(e)})(t);if(t instanceof ks.ArraySlice)return(t=>{const e=[...t];return new ks.ArraySlice(e)})(t);if(Ds(t))return om(t);throw new Wp("Value provided to cloneShallow function couldn't be cloned",{value:t})};sm.safe=t=>{try{return sm(t)}catch(e){return t}};var um=Object.defineProperty,am=Object.getOwnPropertySymbols,cm=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,fm=(t,e,n)=>e in t?um(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hm=(t,e)=>{for(var n in e||(e={}))cm.call(e,n)&&fm(t,n,e[n]);if(am)for(var n of am(e))lm.call(e,n)&&fm(t,n,e[n]);return t},pm=(t,e)=>{var n={};for(var r in t)cm.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&am)for(var r of am(t))e.indexOf(r)<0&&lm.call(t,r)&&(n[r]=t[r]);return n},mm=(t,e,n)=>fm(t,"symbol"!=typeof e?e+"":e,n);const ym=t=>zs(t)?"ObjectElement":qs(t)?"ArrayElement":$s(t)?"MemberElement":Vs(t)?"StringElement":Bs(t)?"BooleanElement":Ls(t)?"NumberElement":Fs(t)?"NullElement":Gs(t)?"LinkElement":Ks(t)?"RefElement":void 0,dm=t=>Ds(t)?sm(t):Fp(t),bm=Pt(ym,le),vm={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class gm{constructor({predicate:t=e,returnOnTrue:n,returnOnFalse:r}={}){mm(this,"result"),mm(this,"predicate"),mm(this,"returnOnTrue"),mm(this,"returnOnFalse"),this.result=[],this.predicate=t,this.returnOnTrue=n,this.returnOnFalse=r}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const _m=(t,e,n={})=>{var r=n,{keyMap:i=vm}=r,o=pm(r,["keyMap"]);return zp(t,e,hm({keyMap:i,nodeTypeGetter:ym,nodePredicate:bm,nodeCloneFn:dm},o))};_m[Symbol.for("nodejs.util.promisify.custom")]=(t,e,...n)=>{return r=null,i=[t,e,...n],o=function*(t,e,n={}){var r=n,{keyMap:i=vm}=r,o=pm(r,["keyMap"]);return zp[Symbol.for("nodejs.util.promisify.custom")](t,e,hm({keyMap:i,nodeTypeGetter:ym,nodePredicate:bm,nodeCloneFn:dm},o))},new Promise(((t,e)=>{var n=t=>{try{u(o.next(t))}catch(t){e(t)}},s=t=>{try{u(o.throw(t))}catch(t){e(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,s);u((o=o.apply(r,i)).next())}));var r,i,o};var Em=Object.defineProperty,wm=Object.getOwnPropertySymbols,jm=Object.prototype.hasOwnProperty,Om=Object.prototype.propertyIsEnumerable,Sm=(t,e,n)=>e in t?Em(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Am=(t,e)=>{for(var n in e||(e={}))jm.call(e,n)&&Sm(t,n,e[n]);if(wm)for(var n of wm(e))Om.call(e,n)&&Sm(t,n,e[n]);return t};const km={toolboxCreator:()=>{const t=((t,e)=>{for(var n in e||(e={}))ou.call(e,n)&&uu(t,n,e[n]);if(iu)for(var n of iu(e))su.call(e,n)&&uu(t,n,e[n]);return t})({},tu);return{predicates:t,namespace:nu}},visitorOptions:{nodeTypeGetter:ym,exposeEdits:!0}},Pm=(t,e,n={})=>{if(0===e.length)return t;const r=Jt(km,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),u=e.map((t=>t(s))),a=Bp(u.map(Zt({},"visitor")),Am({},o));u.forEach(Ee(["pre"],[]));const c=_m(t,a,o);return u.forEach(Ee(["post"],[])),c};Pm[Symbol.for("nodejs.util.promisify.custom")]=(t,e,...n)=>{return r=null,i=[t,e,...n],o=function*(t,e,n={}){if(0===e.length)return t;const r=Jt(km,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),u=e.map((t=>t(s))),a=Bp[Symbol.for("nodejs.util.promisify.custom")],c=_m[Symbol.for("nodejs.util.promisify.custom")],l=a(u.map(Zt({},"visitor")),Am({},o));yield Promise.allSettled(u.map(Ee(["pre"],[])));const f=yield c(t,l,o);return yield Promise.allSettled(u.map(Ee(["post"],[]))),f},new Promise(((t,e)=>{var n=t=>{try{u(o.next(t))}catch(t){e(t)}},s=t=>{try{u(o.throw(t))}catch(t){e(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,s);u((o=o.apply(r,i)).next())}));var r,i,o};var Mm,xm={exports:{}};var Cm=(Mm||(Mm=1,function(t){var e=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,u=(t,e)=>{for(var n in e||(e={}))i.call(e,n)&&s(t,n,e[n]);if(r)for(var n of r(e))o.call(e,n)&&s(t,n,e[n]);return t},a=(t,e,n)=>s(t,"symbol"!=typeof e?e+"":e,n),c={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(c,{DEFAULT_OPTIONS:()=>f,DEFAULT_UUID_LENGTH:()=>l,default:()=>m});var l=6,f={dictionary:"alphanum",shuffle:!0,debug:!1,length:l,counter:0},h=class{constructor(t={}){a(this,"counter"),a(this,"debug"),a(this,"dict"),a(this,"version"),a(this,"dictIndex",0),a(this,"dictRange",[]),a(this,"lowerBound",0),a(this,"upperBound",0),a(this,"dictLength",0),a(this,"uuidLength"),a(this,"_digit_first_ascii",48),a(this,"_digit_last_ascii",58),a(this,"_alpha_lower_first_ascii",97),a(this,"_alpha_lower_last_ascii",123),a(this,"_hex_last_ascii",103),a(this,"_alpha_upper_first_ascii",65),a(this,"_alpha_upper_last_ascii",91),a(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),a(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),a(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),a(this,"log",((...t)=>{const e=[...t];e[0]="[short-unique-id] ".concat(t[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...e)})),a(this,"_normalizeDictionary",((t,e)=>{let n;if(t&&Array.isArray(t)&&t.length>1)n=t;else{n=[],this.dictIndex=0;const e="_".concat(t,"_dict_ranges"),r=this._dict_ranges[e];let i=0;for(const[,t]of Object.entries(r)){const[e,n]=t;i+=Math.abs(n-e)}n=new Array(i);let o=0;for(const[,t]of Object.entries(r)){this.dictRange=t,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const e=this.lowerBound<=this.upperBound,r=this.lowerBound,i=this.upperBound;if(e)for(let t=r;t<i;t++)n[o++]=String.fromCharCode(t),this.dictIndex=t;else for(let t=r;t>i;t--)n[o++]=String.fromCharCode(t),this.dictIndex=t}n.length=o}if(e)for(let t=n.length-1;t>0;t--){const e=Math.floor(Math.random()*(t+1));[n[t],n[e]]=[n[e],n[t]]}return n})),a(this,"setDictionary",((t,e)=>{this.dict=this._normalizeDictionary(t,e),this.dictLength=this.dict.length,this.setCounter(0)})),a(this,"seq",(()=>this.sequentialUUID())),a(this,"sequentialUUID",(()=>{const t=this.dictLength,e=this.dict;let n=this.counter;const r=[];do{const i=n%t;n=Math.trunc(n/t),r.push(e[i])}while(0!==n);const i=r.join("");return this.counter+=1,i})),a(this,"rnd",((t=this.uuidLength||l)=>this.randomUUID(t))),a(this,"randomUUID",((t=this.uuidLength||l)=>{if(null==t||t<1)throw new Error("Invalid UUID Length Provided");const e=new Array(t),n=this.dictLength,r=this.dict;for(let i=0;i<t;i++){const t=Math.floor(Math.random()*n);e[i]=r[t]}return e.join("")})),a(this,"fmt",((t,e)=>this.formattedUUID(t,e))),a(this,"formattedUUID",((t,e)=>{const n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(t=>{const r=t.slice(0,2),i=Number.parseInt(t.slice(2),10);return"$s"===r?n[r]().padStart(i,"0"):"$t"===r&&e?n[r](i,e):n[r](i)}))})),a(this,"availableUUIDs",((t=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**t).toFixed(0)))),a(this,"_collisionCache",new Map),a(this,"approxMaxBeforeCollision",((t=this.availableUUIDs(this.uuidLength))=>{const e=t,n=this._collisionCache.get(e);if(void 0!==n)return n;const r=Number.parseFloat(Math.sqrt(Math.PI/2*t).toFixed(20));return this._collisionCache.set(e,r),r})),a(this,"collisionProbability",((t=this.availableUUIDs(this.uuidLength),e=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(t)/this.availableUUIDs(e)).toFixed(20)))),a(this,"uniqueness",((t=this.availableUUIDs(this.uuidLength))=>{const e=Number.parseFloat((1-this.approxMaxBeforeCollision(t)/t).toFixed(20));return e>1?1:e<0?0:e})),a(this,"getVersion",(()=>this.version)),a(this,"stamp",((t,e)=>{const n=Math.floor(+(e||new Date)/1e3).toString(16);if("number"==typeof t&&0===t)return n;if("number"!=typeof t||t<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const r=t-9,i=Math.round(Math.random()*(r>15?15:r)),o=this.randomUUID(r);return"".concat(o.substring(0,i)).concat(n).concat(o.substring(i)).concat(i.toString(16))})),a(this,"parseStamp",((t,e)=>{if(e&&!/t0|t[1-9]\d{1,}/.test(e))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const n=e?e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(t=>{const e={$r:t=>[...Array(t)].map((()=>"r")).join(""),$s:t=>[...Array(t)].map((()=>"s")).join(""),$t:t=>[...Array(t)].map((()=>"t")).join("")},n=t.slice(0,2),r=Number.parseInt(t.slice(2),10);return e[n](r)})).replace(/^(.*?)(t{8,})(.*)$/g,((e,n,r)=>t.substring(n.length,n.length+r.length))):t;if(8===n.length)return new Date(1e3*Number.parseInt(n,16));if(n.length<10)throw new Error("Stamp length invalid");const r=Number.parseInt(n.substring(n.length-1),16);return new Date(1e3*Number.parseInt(n.substring(r,r+8),16))})),a(this,"setCounter",(t=>{this.counter=t})),a(this,"validate",((t,e)=>{const n=e?this._normalizeDictionary(e):this.dict;return t.split("").every((t=>n.includes(t)))}));const e=u(u({},f),t);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:n,shuffle:r,length:i,counter:o}=e;this.uuidLength=i,this.setDictionary(n,r),this.setCounter(o),this.debug=e.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};a(h,"default",h);var p,m=h;return p=c,((r,o,s,u)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of n(o))i.call(r,a)||a===s||t(r,a,{get:()=>o[a],enumerable:!(u=e(o,a))||u.enumerable});return r})(t({},"__esModule",{value:!0}),p)})();t.exports=e.default,"undefined"!=typeof window&&(e=e.default)}(xm)),xm.exports);const Im=Oe(Cm);var Tm=Object.defineProperty,Nm=(t,e,n)=>((t,e,n)=>e in t?Tm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,e+"",n);class Rm extends Tp{constructor(t,e){super(t,e),Nm(this,"value"),void 0!==e&&(this.value=e.value)}}var Um=Object.defineProperty,Dm=(t,e,n)=>((t,e,n)=>e in t?Um(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Vm{constructor({length:t=6}={}){Dm(this,"uuid"),Dm(this,"identityMap"),this.uuid=new Im({length:t}),this.identityMap=new WeakMap}identify(t){if(!Ds(t))throw new Rm("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&Vs(t.meta.get("id"))&&!t.meta.get("id").equals(""))return t.id;if(this.identityMap.has(t))return this.identityMap.get(t);const e=new ks.StringElement(this.generateId());return this.identityMap.set(t,e),e}forget(t){return!!this.identityMap.has(t)&&(this.identityMap.delete(t),!0)}generateId(){return this.uuid.randomUUID()}}const Lm=new Vm;var Fm=Object.defineProperty,Bm=(t,e,n)=>((t,e,n)=>e in t?Fm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,e+"",n);const zm=(t,e)=>{const n=new gm({predicate:t});return _m(e,n),new ks.ArraySlice(n.result)},qm=(t,e)=>{const n=new gm({predicate:t,returnOnTrue:Dp});return _m(e,n),Yt(void 0,[0],n.result)};var $m=Object.defineProperty,Gm=(t,e,n)=>((t,e,n)=>e in t?$m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);let Km=class{constructor({offset:t=0,includeRightBound:e=!1}={}){Gm(this,"result"),Gm(this,"offset"),Gm(this,"includeRightBound"),this.result=[],this.offset=t,this.includeRightBound=e}enter(t){if(!Xs(t))return;const{startIndex:e,endIndex:n}=t;if(!(this.offset>=e&&(this.offset<n||this.includeRightBound&&this.offset<=n)))return!1;this.result.push(t)}};var Wm=Object.defineProperty,Jm=Object.getOwnPropertySymbols,Hm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable,Xm=(t,e,n)=>e in t?Wm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class Zm extends gm{constructor(t={}){var e,n=t,{callback:r=ge}=n,i=((t,e)=>{var n={};for(var r in t)Hm.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Jm)for(var r of Jm(t))e.indexOf(r)<0&&Ym.call(t,r)&&(n[r]=t[r]);return n})(n,["callback"]);super(((t,e)=>{for(var n in e||(e={}))Hm.call(e,n)&&Xm(t,n,e[n]);if(Jm)for(var n of Jm(e))Ym.call(e,n)&&Xm(t,n,e[n]);return t})({},i)),Xm(this,"callback"+"",e),this.callback=r}enter(t){return this.predicate(t)?(this.callback(t),this.returnOnTrue):this.returnOnFalse}}var Qm=Object.defineProperty,ty=(t,e,n)=>((t,e,n)=>e in t?Qm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);let ey=class{constructor(){ty(this,"parentEdges"),ty(this,"parent"),this.parentEdges=new WeakMap}ObjectElement(t){this.parentEdges.set(t,this.parent),this.parent=t}ArrayElement(t){this.parentEdges.set(t,this.parent),this.parent=t}MemberElement(t){this.parentEdges.set(t,this.parent),this.parent=t}enter(t){this.parentEdges.set(t,this.parent)}};var ny=Object.defineProperty,ry=(t,e,n)=>((t,e,n)=>e in t?ny(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const iy=(t,e=new WeakMap)=>($s(t)?(e.set(t.key,t),iy(t.key,e),e.set(t.value,t),iy(t.value,e)):t.children.forEach((n=>{e.set(n,t),iy(n,e)})),e);class oy{constructor({element:t}){ry(this,"element"),ry(this,"edges"),this.element=t}transclude(t,e){var n;if(t===this.element)return e;if(t===e)return this.element;this.edges=null!=(n=this.edges)?n:iy(this.element);const r=this.edges.get(t);return ne(r)?void 0:(zs(r)?((t,e,n)=>{const r=n.get(t);zs(r)&&(r.content=r.map(((i,o,s)=>s===t?(n.delete(t),n.set(e,r),e):s)))})(t,e,this.edges):qs(r)?((t,e,n)=>{const r=n.get(t);qs(r)&&(r.content=r.map((i=>i===t?(n.delete(t),n.set(e,r),e):i)))})(t,e,this.edges):$s(r)&&((t,e,n)=>{const r=n.get(t);$s(r)&&(r.key===t&&(r.key=e,n.delete(t),n.set(e,r)),r.value===t&&(r.value=e,n.delete(t),n.set(e,r)))})(t,e,this.edges),this.element)}}var sy=Object.defineProperty,uy=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable,ly=(t,e,n)=>e in t?sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fy=(t,e)=>{for(var n in e||(e={}))ay.call(e,n)&&ly(t,n,e[n]);if(uy)for(var n of uy(e))cy.call(e,n)&&ly(t,n,e[n]);return t},hy=(t,e)=>{var n={};for(var r in t)ay.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&uy)for(var r of uy(t))e.indexOf(r)<0&&cy.call(t,r)&&(n[r]=t[r]);return n};const py=t=>"string"==typeof(null==t?void 0:t.type)?t.type:ym(t),my=fy({EphemeralObject:["content"],EphemeralArray:["content"]},vm),yy=(t,e,r={})=>{var i=r,{keyMap:o=my}=i,s=hy(i,["keyMap"]);return _m(t,e,fy({keyMap:o,nodeTypeGetter:py,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},s))};yy[Symbol.for("nodejs.util.promisify.custom")]=(t,...e)=>{return r=null,i=[t,...e],o=function*(t,e={}){var r=e,{keyMap:i=my}=r,o=hy(r,["keyMap"]);return _m[Symbol.for("nodejs.util.promisify.custom")](t,visitor,fy({keyMap:i,nodeTypeGetter:py,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},o))},new Promise(((t,e)=>{var n=t=>{try{u(o.next(t))}catch(t){e(t)}},s=t=>{try{u(o.throw(t))}catch(t){e(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,s);u((o=o.apply(r,i)).next())}));var r,i,o};var dy=Object.defineProperty,by=(t,e,n)=>((t,e,n)=>e in t?dy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class vy{constructor(t){by(this,"type","EphemeralArray"),by(this,"content",[]),by(this,"reference"),this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}var gy=Object.defineProperty,_y=(t,e,n)=>((t,e,n)=>e in t?gy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Ey{constructor(t){_y(this,"type","EphemeralObject"),_y(this,"content",[]),_y(this,"reference"),this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}var wy=Object.defineProperty,jy=(t,e,n)=>((t,e,n)=>e in t?wy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Oy{constructor(){jy(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new Ey(t.content);return this.references.set(t,e),e}}),jy(this,"EphemeralObject",{leave:t=>t.toObject()}),jy(this,"MemberElement",{enter:t=>[t.key,t.value]}),jy(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new vy(t.content);return this.references.set(t,e),e}}),jy(this,"EphemeralArray",{leave:t=>t.toArray()}),jy(this,"references",new WeakMap)}BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...e){var n;const r=e[3];return"EphemeralObject"===(null==(n=r[r.length-1])?void 0:n.type)?Symbol.for("delete-node"):String(t.toValue())}LinkElement(t){return Vs(t.href)?t.href.toValue():""}}const Sy=t=>Ds(t)?Vs(t)||Ls(t)||Bs(t)||Fs(t)?t.toValue():yy(t,new Oy):t;var Ay=Object.defineProperty,ky=(t,e,n)=>((t,e,n)=>e in t?Ay(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const Py=class t{constructor({directive:t=!1,indent:e=0}={}){ky(this,"result"),ky(this,"indent"),this.result=t?"%YAML 1.2\n---\n":"",this.indent=e}NumberElement(t){this.result+=Sy(t)}BooleanElement(t){const e=Sy(t);this.result+=e?"true":"false"}StringElement(t){this.result+=JSON.stringify(Sy(t))}NullElement(){this.result+="null"}ArrayElement(e){return 0===e.length?(this.result+="[]",!1):(e.forEach((e=>{const n=new t({indent:this.indent+1}),r=t.indentChar.repeat(this.indent);_m(e,n);const{result:i}=n;this.result+=i.startsWith("\n")?`\n${r}-${i}`:`\n${r}- ${i}`})),!1)}ObjectElement(e){return 0===e.length?(this.result+="{}",!1):(e.forEach(((e,n)=>{const r=new t({indent:this.indent+1}),i=new t({indent:this.indent+1}),o=t.indentChar.repeat(this.indent);_m(n,r),_m(e,i);const{result:s}=r,{result:u}=i;this.result+=u.startsWith("\n")?`\n${o}${s}:${u}`:`\n${o}${s}: ${u}`})),!1)}};ky(Py,"indentChar"," ");let My=Py;const xy=(t,e=nu)=>e.toRefract(t);var Cy=Object.defineProperty,Iy=(t,e,n)=>((t,e,n)=>e in t?Cy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Ty{constructor(){Iy(this,"result",""),Iy(this,"nestingLevel",0)}enter(t){const{element:e}=t,n=e.charAt(0).toUpperCase()+e.slice(1),r=" ".repeat(this.nestingLevel);this.result+=this.nestingLevel>0?"\n":"",this.result+=`${r}(${n}Element`,this.nestingLevel+=1}leave(){this.nestingLevel-=1,this.result+=")"}}var Ny=Object.defineProperty,Ry=Object.getOwnPropertySymbols,Uy=Object.prototype.hasOwnProperty,Dy=Object.prototype.propertyIsEnumerable,Vy=(t,e,n)=>e in t?Ny(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ly=(t,e)=>{for(var n in e||(e={}))Uy.call(e,n)&&Vy(t,n,e[n]);if(Ry)for(var n of Ry(e))Dy.call(e,n)&&Vy(t,n,e[n]);return t};const Fy=t=>{const e=t.meta.length>0?rm(t.meta):void 0,n=t.attributes.length>0?rm(t.attributes):void 0;return new t.constructor(void 0,e,n)},By=(t,e)=>e.clone&&e.isMergeableElement(t)?qy(Fy(t),t,e):t,zy={clone:!0,isMergeableElement:t=>zs(t)||qs(t),arrayElementMerge:(t,e,n)=>t.concat(e)["fantasy-land/map"]((t=>By(t,n))),objectElementMerge:(t,e,n)=>{const r=zs(t)?Fy(t):Fy(e);return zs(t)&&t.forEach(((t,e,i)=>{const o=sm(i);o.value=By(t,n),r.content.push(o)})),e.forEach(((e,i,o)=>{const s=Sy(i);let u;if(zs(t)&&t.hasKey(s)&&n.isMergeableElement(e)){const r=t.get(s);u=sm(o),u.value=((t,e)=>{if("function"!=typeof e.customMerge)return qy;const n=e.customMerge(t,e);return"function"==typeof n?n:qy})(i,n)(r,e,n)}else u=sm(o),u.value=By(e,n);r.remove(s),r.content.push(u)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},qy=(t,e,n)=>{var r,i,o;const s=Ly(Ly({},zy),n);s.isMergeableElement=null!=(r=s.isMergeableElement)?r:zy.isMergeableElement,s.arrayElementMerge=null!=(i=s.arrayElementMerge)?i:zy.arrayElementMerge,s.objectElementMerge=null!=(o=s.objectElementMerge)?o:zy.objectElementMerge;const u=qs(e);if(!(u===qs(t)))return By(e,s);const a=u&&"function"==typeof s.arrayElementMerge?s.arrayElementMerge(t,e,s):s.objectElementMerge(t,e,s);return a.meta=(t=>"function"!=typeof t.customMetaMerge?t=>rm(t):t.customMetaMerge)(s)(t.meta,e.meta),a.attributes=(t=>"function"!=typeof t.customAttributesMerge?t=>rm(t):t.customAttributesMerge)(s)(t.attributes,e.attributes),a};qy.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return 0===t.length?new ks.ObjectElement:t.reduce(((t,n)=>qy(t,n,e)),Fy(t[0]))};var $y=Object.defineProperty,Gy=Object.defineProperties,Ky=Object.getOwnPropertyDescriptors,Wy=Object.getOwnPropertySymbols,Jy=Object.prototype.hasOwnProperty,Hy=Object.prototype.propertyIsEnumerable,Yy=(t,e,n)=>e in t?$y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xy=(t,e)=>{for(var n in e||(e={}))Jy.call(e,n)&&Yy(t,n,e[n]);if(Wy)for(var n of Wy(e))Hy.call(e,n)&&Yy(t,n,e[n]);return t};const Zy=(t,e,n)=>{const r=(i=Xy(Xy({},zy),n),Gy(i,Ky({customMerge:()=>(t,e)=>e,clone:!1})));var i;return qy(t,e,r)};Zy.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of mergeRight should be an array.");return 0===t.length?new ks.ObjectElement:t.reduce(((t,n)=>Zy(t,n,e)),Fy(t[0]))};const Qy=(...[t,e,n])=>Zy(e,t,n);Qy.all=(...[t,e])=>Zy.all([...t].reverse(),e),t.AnnotationElement=Ps,t.ArrayElement=ks.ArrayElement,t.ArraySlice=ks.ArraySlice,t.BREAK=Dp,t.BooleanElement=ks.BooleanElement,t.CloneError=Gp,t.CommentElement=Ms,t.DeepCloneError=Kp,t.Element=ks.Element,t.ElementIdentityError=Rm,t.IdentityManager=Vm,t.KeyValuePair=ks.KeyValuePair,t.LinkElement=ks.LinkElement,t.MediaTypes=class extends Array{constructor(){super(...arguments),Bm(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Rp("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Rp("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Rp("latest method in MediaTypes class is not yet implemented.")}},t.MemberElement=ks.MemberElement,t.Namespace=eu,t.NullElement=ks.NullElement,t.NumberElement=ks.NumberElement,t.ObjectElement=ks.ObjectElement,t.ObjectSlice=ks.ObjectSlice,t.ParseResultElement=xs,t.RefElement=ks.RefElement,t.ShallowCloneError=Wp,t.StringElement=ks.StringElement,t.Transcluder=oy,t.assignSourceMap=Hp,t.cloneDeep=rm,t.cloneNode=dm,t.cloneShallow=sm,t.createNamespace=t=>{const e=new eu;return be(t)&&e.use(t),e},t.createPredicate=Us,t.deepmerge=qy,t.defaultIdentityManager=Lm,t.dehydrate=xy,t.dereference=Jp,t.dispatchRefractorPlugins=Pm,t.filter=zm,t.find=qm,t.findAtOffset=(t,e)=>{let n,r;ve(t)?(n=t,r=!1):(n=Yt(0,["offset"],t),r=Yt(!1,["includeRightBound"],t));const i=new Km({offset:n,includeRightBound:r});return _m(e,i),xt(i.result)},t.from=(t,e=nu)=>{if(le(t))try{return e.fromRefract(JSON.parse(t))}catch(t){}return be(t)&&Dt("element",t)?e.fromRefract(t):e.toElement(t)},t.getNodeType=ym,t.hasElementSourceMap=Xs,t.includesClasses=Qs,t.includesSymbols=Zs,t.isAnnotationElement=Ws,t.isArrayElement=qs,t.isBooleanElement=Bs,t.isElement=Ds,t.isLinkElement=Gs,t.isMemberElement=$s,t.isNullElement=Fs,t.isNumberElement=Ls,t.isObjectElement=zs,t.isParseResultElement=Hs,t.isPrimitiveElement=Ys,t.isRefElement=Ks,t.isStringElement=Vs,t.keyMap=vm,t.mergeAllVisitors=Bp,t.mergeLeft=Qy,t.mergeRight=Zy,t.namespace=nu,t.parents=t=>{const e=new ey;return _m(t,e),e.parentEdges},t.refract=ks.refract,t.refractorPluginElementIdentity=({length:t=6}={})=>()=>{let e;return{pre(){e=new Vm({length:t})},visitor:{enter(t){t.id=e.identify(t)}},post(){e=null}}},t.refractorPluginSemanticElementIdentity=({length:t=6}={})=>({predicates:e})=>{let n;return{pre(){n=new Vm({length:t})},visitor:{enter(t){e.isPrimitiveElement(t)||(t.id=n.identify(t))}},post(){n=null}}},t.reject=(t,e)=>zm(jt(t),e),t.sexprs=t=>{const e=new Ty;return _m(t,e),e.result},t.some=(t,e)=>re(qm(t,e)),t.toJSON=(t,e,n)=>JSON.stringify(Sy(t),e,n),t.toString=(t,e=nu)=>{const n=xy(t,e);return JSON.stringify(n)},t.toValue=Sy,t.toYAML=(t,{directive:e=!1}={})=>{const n=new My({directive:e});return _m(t,n),n.result},t.transclude=(t,e,n)=>new oy({element:n}).transclude(t,e),t.traverse=(t,e)=>{let n,r;ae(t)?(n=t,r=Ds):(n=Yt(ge,["callback"],t),r=Yt(Ds,["predicate"],t));const i=new Zm({callback:n,predicate:r});_m(e,i)},t.visit=_m,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));