@swagger-api/apidom-ns-json-schema-draft-6 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomNsJsonSchemaDraft6={})}(this,(function(e){"use strict";var t=function(){return!1},n=function(){return!0};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}function s(e){return function t(n,s){switch(arguments.length){case 0:return t;case 1:return r(n)?t:i((function(t){return e(n,t)}));default:return r(n)&&r(s)?t:r(n)?i((function(t){return e(t,s)})):r(s)?i((function(t){return e(n,t)})):e(n,s)}}}function o(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,s){return t.apply(this,arguments)};case 6:return function(e,n,r,i,s,o){return t.apply(this,arguments)};case 7:return function(e,n,r,i,s,o,u){return t.apply(this,arguments)};case 8:return function(e,n,r,i,s,o,u,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,s,o,u,c,a){return t.apply(this,arguments)};case 10:return function(e,n,r,i,s,o,u,c,a,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function u(e,t,n){return function(){for(var i=[],s=0,c=e,a=0,l=!1;a<t.length||s<arguments.length;){var f;a<t.length&&(!r(t[a])||s>=arguments.length)?f=t[a]:(f=arguments[s],s+=1),i[a]=f,r(f)?l=!0:c-=1,a+=1}return!l&&c<=0?n.apply(this,i):o(Math.max(0,c),u(e,i,n))}}var c=s((function(e,t){return 1===e?i(t):o(e,u(e,[],t))}));function a(e){return function t(n,o,u){switch(arguments.length){case 0:return t;case 1:return r(n)?t:s((function(t,r){return e(n,t,r)}));case 2:return r(n)&&r(o)?t:r(n)?s((function(t,n){return e(t,o,n)})):r(o)?s((function(t,r){return e(n,t,r)})):i((function(t){return e(n,o,t)}));default:return r(n)&&r(o)&&r(u)?t:r(n)&&r(o)?s((function(t,n){return e(t,n,u)})):r(n)&&r(u)?s((function(t,n){return e(t,o,n)})):r(o)&&r(u)?s((function(t,r){return e(n,t,r)})):r(n)?i((function(t){return e(t,o,u)})):r(o)?i((function(t){return e(n,t,u)})):r(u)?i((function(t){return e(n,o,t)})):e(n,o,u)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function f(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!l(r)){for(var i=0;i<e.length;){if("function"==typeof r[e[i]])return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function h(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const m=function(){return this.xf["@@transducer/init"]()},p=function(e){return this.xf["@@transducer/result"](e)};var d=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=h(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new d(e,t)}}var v=s(f(["all"],y,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})));function b(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function g(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function E(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const j="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var O=Object.prototype.toString,S=function(){return"[object Arguments]"===O.call(arguments)?function(e){return"[object Arguments]"===O.call(e)}:function(e){return E("callee",e)}}(),w=!{toString:null}.propertyIsEnumerable("toString"),A=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),x=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},P="function"!=typeof Object.keys||k?i((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=k&&S(e);for(t in e)!E(t,e)||i&&"length"===t||(r[r.length]=t);if(w)for(n=A.length-1;n>=0;)E(t=A[n],e)&&!x(r,t)&&(r[r.length]=t),n-=1;return r})):i((function(e){return Object(e)!==e?[]:Object.keys(e)})),_=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function M(e,t,n,r){var i=b(e);function s(e,t){return N(e,t,n.slice(),r.slice())}return!g((function(e,t){return!g(s,t,e)}),b(t),i)}function N(e,t,n,r){if(j(e,t))return!0;var i,s,o=_(e);if(o!==_(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(s=String(i).match(/^function (\w*)/))?"":s[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!j(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!j(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===e)return r[u]===t;u-=1}switch(o){case"Map":return e.size===t.size&&M(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&M(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=P(e);if(c.length!==P(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(u=c.length-1;u>=0;){var f=c[u];if(!E(f,t)||!N(t[f],e[f],a,l))return!1;u-=1}return!0}var T=s((function(e,t){return N(e,t,[],[])}));function R(e,t){return function(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(T(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function I(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function F(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var C=function(e){return(e<10?"0":"")+e},V="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+C(e.getUTCMonth()+1)+"-"+C(e.getUTCDate())+"T"+C(e.getUTCHours())+":"+C(e.getUTCMinutes())+":"+C(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function $(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}function L(e){return"[object Object]"===Object.prototype.toString.call(e)}var D=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=p,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function J(e){return function(t){return new D(e,t)}}var B=s(f(["fantasy-land/filter","filter"],J,(function(e,t){return L(t)?$((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},P(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),z=s((function(e,t){return B((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function q(e,t){var n=function(n){var r=t.concat([e]);return R(n,r)?"<Circular>":q(n,r)},r=function(e,t){return I((function(t){return F(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+I(n,e).join(", ")+"))";case"[object Array]":return"["+I(n,e).concat(r(e,z((function(e){return/^\d+$/.test(e)}),P(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):F(V(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":F(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,P(e)).join(", ")+"}"}}var G=i((function(e){return q(e,[])})),U=s((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var i=n(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var s=G(e),o=n(s,G(t));return void 0!==o&&o===s?e:t})),K=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=p,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),W=s(f(["fantasy-land/map","map"],(function(e){return function(t){return new K(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return c(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return $((function(n,r){return n[r]=e(t[r]),n}),{},P(t));default:return I(e,t)}})));const H=Number.isInteger||function(e){return(e|0)===e};function Y(e){return"[object String]"===Object.prototype.toString.call(e)}function X(e,t){var n=e<0?t.length+e:e;return Y(t)?t.charAt(n):t[n]}var Z=s((function(e,t){if(null!=t)return H(e)?X(e,t):t[e]})),Q=s((function(e,t){return W(Z(e),t)})),ee=i((function(e){return!!l(e)||!!e&&("object"==typeof e&&(!Y(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),te="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ne(e,t,n){return function(r,i,s){if(ee(s))return e(r,i,s);if(null==s)return i;if("function"==typeof s["fantasy-land/reduce"])return t(r,i,s,"fantasy-land/reduce");if(null!=s[te])return n(r,i,s[te]());if("function"==typeof s.next)return n(r,i,s);if("function"==typeof s.reduce)return t(r,i,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function re(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}var ie=s((function(e,t){return o(e.length,(function(){return e.apply(t,arguments)}))}));function se(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function oe(e,t,n,r){return e["@@transducer/result"](n[r](ie(e["@@transducer/step"],e),t))}var ue=ne(re,oe,se),ce=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var ae=a((function(e,t,n){return ue("function"==typeof e?new ce(e):e,t,n)})),le=i((function(e){return c(ae(U,0,Q("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),fe=i((function(e){return function(){return e}})),he=s((function(e,t){return e&&t})),me=i((function(e){return c(ae(U,0,Q("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function pe(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function de(e,t,n,r){return n[r](e,t)}var ye=ne($,de,pe),ve=s((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:ye((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,s=[];for(n=0;n<r;)s[s.length]=e[n],n+=1;for(n=0;n<i;)s[s.length]=t[n],n+=1;return s}(e,W(n,t))}),[],e)})),be=s((function(e,t){return e.apply(this,t)})),ge=i((function(e){return c(e.length,e)}));var Ee=i((function(e){return null==e})),je=a((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var s=!Ee(r)&&E(i,r)&&"object"==typeof r[i]?r[i]:H(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,s)}return function(e,t,n){if(H(e)&&l(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var s in n)i[s]=n[s];return i[e]=t,i}(i,n,r)})),Oe=a((function(e,t,n){return je([e],t,n)}));function Se(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var we=s((function(e,t){var n=c(e,t);return c(e,(function(){return $(ve,W(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Ae=i((function(e){return we(e.length,e)})),ke=s((function(e,t){return Se(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ae(he)(e,t)})),xe=i((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})),Pe=Ae(i((function(e){return!e})));function _e(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Me(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return l(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Ne=a(Me("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),Te=i(Me("tail",Ne(1,1/0)));function Re(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return o(arguments[0].length,ae(_e,arguments[0],Te(arguments)))}var Ie=i((function(e){return X(0,e)})),Fe=s((function(e,t){return null==t||t!=t?e:t})),Ce=a((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r}));var Ve=s((function e(t,n){if(null==n)return n;switch(t.length){case 0:return n;case 1:return function(e,t){if(null==t)return t;if(H(e)&&l(t))return Ce(e,1,t);var n={};for(var r in t)n[r]=t[r];return delete n[e],n}(t[0],n);default:var r=t[0],i=Array.prototype.slice.call(t,1);return null==n[r]?function(e,t){if(H(e)&&l(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}(r,n):Oe(r,e(i,n[r]),n)}})),$e=i((function(e){return X(-1,e)})),Le=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=p,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function De(e){return function(t){return new Le(e,t)}}var Je=s(f(["dropWhile"],De,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Ne(n,1/0,t)}))),Be=s((function(e,t){return e||t})),ze=s((function(e,t){return Se(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ae(Be)(e,t)}));var qe=i((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():l(e)?[]:Y(e)?"":L(e)?{}:S(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0})),Ge=i((function(e){return c(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))})),Ue=s((function(e,t){if(0===e.length||Ee(t))return!1;for(var n=t,r=0;r<e.length;){if(Ee(n)||!E(e[r],n))return!1;n=n[e[r]],r+=1}return!0})),Ke=s((function(e,t){return Ue([e],t)})),We=function(e,t){switch(arguments.length){case 0:return We;case 1:return function t(n){return 0===arguments.length?t:j(e,n)};default:return j(e,t)}},He=a((function(e,t,n){return c(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))})),Ye=s(R),Xe=Ne(0,-1),Ze=s((function(e,t){return c(e+1,(function(){var n=arguments[e];if(null!=n&&Se(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(G(n)+' does not have a method named "'+t+'"')}))})),Qe=i((function(e){return null!=e&&T(e,qe(e))})),et=i((function(e){return!Qe(e)})),tt=Ze(1,"join");function nt(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var i=e[r];n=H(i)?X(i,n):n[i]}return n}var rt=s((function(e,t){return $((function(n,r){return n[r]=e(t[r],r,t),n}),{},P(t))})),it=a((function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})E(r,t)&&(i[r]=E(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)E(r,n)&&!E(r,i)&&(i[r]=n[r]);return i})),st=a((function e(t,n,r){return it((function(n,r,i){return L(r)&&L(i)?e(t,r,i):t(n,r,i)}),n,r)})),ot=s((function(e,t){return st((function(e,t,n){return n}),e,t)})),ut=s(nt),ct=a((function(e,t,n){return e(nt(t,n))})),at=s((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),lt=a((function(e,t,n){return Fe(e,Z(t,n))})),ft=a((function(e,t,n){return e(Z(t,n))})),ht=i(h),mt=s((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),pt=Ze(1,"split"),dt=fe(void 0),yt=T(dt()),vt=T(null),bt=Pe(vt),gt=Pe(Ee),Et=c(1,Re(_,We("GeneratorFunction"))),jt=c(1,Re(_,We("AsyncFunction"))),Ot=me([Re(_,We("Function")),Et,jt]),St=c(1,Ot(Array.isArray)?Array.isArray:Re(_,We("Array"))),wt=ke(St,Qe),At=ke(St,et),kt=c(1,Re(_,We("String")));function xt(e){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xt(e)}var Pt=function(e){return"object"===xt(e)},_t=Pe(c(1,ke(bt,ze(Pt,Ot)))),Mt=le([kt,_t,et]),Nt=Pe(Ot),Tt=c(1,ke(bt,Pt)),Rt=Re(_,We("Object")),It=Re(G,T(G(Object))),Ft=ct(ke(Ot,It),["constructor"]),Ct=c(1,(function(e){if(!Tt(e)||!Rt(e))return!1;var t=Object.getPrototypeOf(e);return!!vt(t)||Ft(t)}));function Vt(e){return function(e){if(Array.isArray(e))return $t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Lt=Re(mt(xe((function(e,t){return e.length>t.length}))),Ie,Z("length")),Dt=ge((function(e,t,n){var r=n.apply(void 0,Vt(e));return gt(r)?ht(r):t})),Jt=He(At,(function(e){var t=Lt(e);return c(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ae(Dt(n),void 0,e)}))}),dt),Bt=Ge(Ye),zt=c(3,(function(e,t,n){var r=ut(e,n),i=ut(Xe(e),n);if(!Nt(r)&&!wt(e)){var s=ie(r,i);return be(s,t)}})),qt=ge((function(e,t){return Re(pt(""),Je(Bt(e)),tt(""))(t)})),Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kt,Wt,Ht,Yt,Xt,Zt,Qt,en,tn,nn,rn,sn,on,un,cn,an,ln,fn,hn,mn,pn,dn,yn,vn,bn,gn,En,jn,On,Sn,wn,An,kn,xn,Pn,_n,Mn,Nn,Tn,Rn,In,Fn,Cn,Vn,$n,Ln,Dn,Jn,Bn,zn,qn,Gn,Un,Kn,Wn,Hn,Yn,Xn,Zn,Qn,er,tr,nr,rr,ir,sr,or,ur,cr,ar,lr,fr,hr,mr,pr,dr,yr,vr,br,gr,Er,jr,Or,Sr,wr,Ar,kr,xr,Pr,_r,Mr,Nr,Tr,Rr,Ir,Fr,Cr,Vr,$r,Lr,Dr,Jr,Br,zr,qr,Gr,Ur,Kr,Wr,Hr,Yr,Xr,Zr,Qr,ei,ti,ni,ri,ii,si,oi,ui,ci,ai,li,fi,hi,mi,pi,di,yi,vi,bi,gi,Ei,ji,Oi,Si,wi={};function Ai(){if(Yt)return Ht;Yt=1;var e="object"==typeof Gt&&Gt&&Gt.Object===Object&&Gt;return Ht=e}function ki(){if(Zt)return Xt;Zt=1;var e=Ai(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Xt=n}function xi(){if(en)return Qt;en=1;var e=ki().Symbol;return Qt=e}function Pi(){if(un)return on;un=1;var e=xi(),t=function(){if(nn)return tn;nn=1;var e=xi(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return tn=function(e){var t=n.call(e,i),s=e[i];try{e[i]=void 0;var o=!0}catch(e){}var u=r.call(e);return o&&(t?e[i]=s:delete e[i]),u}}(),n=function(){if(sn)return rn;sn=1;var e=Object.prototype.toString;return rn=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return on=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function _i(){if(an)return cn;an=1;var e=Array.isArray;return cn=e}function Mi(){if(fn)return ln;return fn=1,ln=function(e){return null!=e&&"object"==typeof e}}function Ni(){if(gn)return bn;return gn=1,bn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},bn}function Ti(){if(jn)return En;jn=1;return En=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}},En}function Ri(){if(An)return wn;return An=1,wn=function(e,t){return e===t||e!=e&&t!=t}}function Ii(){if(xn)return kn;xn=1;var e=Ri();return kn=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function Fi(){if(Vn)return Cn;Vn=1;var e=Sn?On:(Sn=1,On=function(){this.__data__=[],this.size=0}),t=function(){if(_n)return Pn;_n=1;var e=Ii(),t=Array.prototype.splice;return Pn=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(Nn)return Mn;Nn=1;var e=Ii();return Mn=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(Rn)return Tn;Rn=1;var e=Ii();return Tn=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(Fn)return In;Fn=1;var e=Ii();return In=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Cn=s}function Ci(){if(Kn)return Un;Kn=1;var e=Pi(),t=Ni();return Un=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function Vi(){if(Xn)return Yn;Xn=1;var e=function(){if(Hn)return Wn;Hn=1;var e=ki()["__core-js_shared__"];return Wn=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return Yn=function(e){return!!t&&t in e}}function $i(){if(Qn)return Zn;Qn=1;var e=Function.prototype.toString;return Zn=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function Li(){if(sr)return ir;sr=1;var e=function(){if(tr)return er;tr=1;var e=Ci(),t=Vi(),n=Ni(),r=$i(),i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,u=s.toString,c=o.hasOwnProperty,a=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return er=function(s){return!(!n(s)||t(s))&&(e(s)?a:i).test(r(s))}}(),t=rr?nr:(rr=1,nr=function(e,t){return null==e?void 0:e[t]});return ir=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function Di(){if(ur)return or;ur=1;var e=Li()(ki(),"Map");return or=e}function Ji(){if(ar)return cr;ar=1;var e=Li()(Object,"create");return cr=e}function Bi(){if(jr)return Er;jr=1;var e=function(){if(fr)return lr;fr=1;var e=Ji();return lr=function(){this.__data__=e?e(null):{},this.size=0}}(),t=mr?hr:(mr=1,hr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(dr)return pr;dr=1;var e=Ji(),t=Object.prototype.hasOwnProperty;return pr=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(vr)return yr;vr=1;var e=Ji(),t=Object.prototype.hasOwnProperty;return yr=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(gr)return br;gr=1;var e=Ji();return br=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Er=s}function zi(){if(xr)return kr;xr=1;var e=(Ar||(Ar=1,wr=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),wr);return kr=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},kr}function qi(){if(Vr)return Cr;Vr=1;var e=function(){if(Sr)return Or;Sr=1;var e=Bi(),t=Fi(),n=Di();return Or=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(_r)return Pr;_r=1;var e=zi();return Pr=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Nr)return Mr;Nr=1;var e=zi();return Mr=function(t){return e(this,t).get(t)}}(),r=function(){if(Rr)return Tr;Rr=1;var e=zi();return Tr=function(t){return e(this,t).has(t)}}(),i=function(){if(Fr)return Ir;Fr=1;var e=zi();return Ir=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Cr=s}function Gi(){if(Jr)return Dr;Jr=1;var e=Fi(),t=function(){if(Ln)return $n;Ln=1;var e=Fi();return $n=function(){this.__data__=new e,this.size=0}}(),n=Jn?Dn:(Jn=1,Dn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=zn?Bn:(zn=1,Bn=function(e){return this.__data__.get(e)}),i=Gn?qn:(Gn=1,qn=function(e){return this.__data__.has(e)}),s=function(){if(Lr)return $r;Lr=1;var e=Fi(),t=Di(),n=qi();return $r=function(r,i){var s=this.__data__;if(s instanceof e){var o=s.__data__;if(!t||o.length<199)return o.push([r,i]),this.size=++s.size,this;s=this.__data__=new n(o)}return s.set(r,i),this.size=s.size,this}}();function o(t){var n=this.__data__=new e(t);this.size=n.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=s,Dr=o}function Ui(){if(Kr)return Ur;Kr=1;var e=qi(),t=zr?Br:(zr=1,Br=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Gr?qr:(Gr=1,qr=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Ur=r}function Ki(){if(Qr)return Zr;Qr=1;var e=Ui(),t=Hr?Wr:(Hr=1,Wr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=Xr?Yr:(Xr=1,Yr=function(e,t){return e.has(t)});return Zr=function(r,i,s,o,u,c){var a=1&s,l=r.length,f=i.length;if(l!=f&&!(a&&f>l))return!1;var h=c.get(r),m=c.get(i);if(h&&m)return h==i&&m==r;var p=-1,d=!0,y=2&s?new e:void 0;for(c.set(r,i),c.set(i,r);++p<l;){var v=r[p],b=i[p];if(o)var g=a?o(b,v,p,i,r,c):o(v,b,p,r,i,c);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!t(i,(function(e,t){if(!n(y,t)&&(v===e||u(v,e,s,o,c)))return y.push(t)}))){d=!1;break}}else if(v!==b&&!u(v,b,s,o,c)){d=!1;break}}return c.delete(r),c.delete(i),d}}function Wi(){if(ui)return oi;ui=1;var e=xi(),t=function(){if(ti)return ei;ti=1;var e=ki().Uint8Array;return ei=e}(),n=Ri(),r=Ki(),i=(ri||(ri=1,ni=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}),ni),s=si?ii:(si=1,ii=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}),o=e?e.prototype:void 0,u=o?o.valueOf:void 0;return oi=function(e,o,c,a,l,f,h){switch(c){case"[object DataView]":if(e.byteLength!=o.byteLength||e.byteOffset!=o.byteOffset)return!1;e=e.buffer,o=o.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=o.byteLength||!f(new t(e),new t(o)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+o);case"[object Error]":return e.name==o.name&&e.message==o.message;case"[object RegExp]":case"[object String]":return e==o+"";case"[object Map]":var m=i;case"[object Set]":var p=1&a;if(m||(m=s),e.size!=o.size&&!p)return!1;var d=h.get(e);if(d)return d==o;a|=2,h.set(e,o);var y=r(m(e),m(o),a,l,f,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(o)}return!1}}function Hi(){if(fi)return li;fi=1;var e=ai?ci:(ai=1,ci=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),t=_i();return li=function(n,r,i){var s=r(n);return t(n)?s:e(s,i(n))}}function Yi(){if(vi)return yi;vi=1;var e=mi?hi:(mi=1,hi=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}),t=di?pi:(di=1,pi=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return yi=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t}function Xi(){if(Si)return Oi;Si=1;var e=function(){if(ji)return Ei;ji=1;var e=Pi(),t=Mi();return Ei=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Mi(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return Oi=s}var Zi,Qi,es,ts,ns,rs,is,ss,os,us,cs,as={exports:{}};function ls(){return es||(es=1,function(e,t){var n=ki(),r=Qi?Zi:(Qi=1,Zi=function(){return!1}),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,o=s&&s.exports===i?n.Buffer:void 0,u=(o?o.isBuffer:void 0)||r;e.exports=u}(as,as.exports)),as.exports}function fs(){if(is)return rs;is=1;return rs=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}var hs,ms,ps,ds,ys,vs,bs,gs,Es,js,Os,Ss,ws,As,ks,xs,Ps,_s,Ms,Ns,Ts,Rs,Is,Fs,Cs,Vs,$s,Ls,Ds,Js,Bs,zs,qs,Gs,Us,Ks,Ws,Hs,Ys,Xs,Zs,Qs,eo,to,no,ro,io,so,oo,uo,co,ao,lo,fo,ho,mo,po,yo,vo,bo,go,Eo,jo,Oo,So,wo,Ao,ko,xo,Po,_o,Mo,No={exports:{}};function To(){if(ps)return ms;ps=1;var e=function(){if(os)return ss;os=1;var e=Pi(),t=fs(),n=Mi(),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,ss=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=cs?us:(cs=1,us=function(e){return function(t){return e(t)}}),n=(hs||(hs=1,function(e,t){var n=Ai(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,s=i&&i.exports===r&&n.process,o=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o}(No,No.exports)),No.exports),r=n&&n.isTypedArray,i=r?t(r):e;return ms=i}function Ro(){if(ys)return ds;ys=1;var e=gi?bi:(gi=1,bi=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),t=Xi(),n=_i(),r=ls(),i=function(){if(ns)return ts;ns=1;var e=/^(?:0|[1-9]\d*)$/;return ts=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},ts}(),s=To(),o=Object.prototype.hasOwnProperty;return ds=function(u,c){var a=n(u),l=!a&&t(u),f=!a&&!l&&r(u),h=!a&&!l&&!f&&s(u),m=a||l||f||h,p=m?e(u.length,String):[],d=p.length;for(var y in u)!c&&!o.call(u,y)||m&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,d))||p.push(y);return p}}function Io(){if(Os)return js;Os=1;var e=(Es?gs:(Es=1,gs=function(e,t){return function(n){return e(t(n))}}))(Object.keys,Object);return js=e}function Fo(){if(ws)return Ss;ws=1;var e=function(){if(bs)return vs;bs=1;var e=Object.prototype;return vs=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}(),t=Io(),n=Object.prototype.hasOwnProperty;return Ss=function(r){if(!e(r))return t(r);var i=[];for(var s in Object(r))n.call(r,s)&&"constructor"!=s&&i.push(s);return i}}function Co(){if(Ps)return xs;Ps=1;var e=Ro(),t=Fo(),n=function(){if(ks)return As;ks=1;var e=Ci(),t=fs();return As=function(n){return null!=n&&t(n.length)&&!e(n)}}();return xs=function(r){return n(r)?e(r):t(r)}}function Vo(){if(Ts)return Ns;Ts=1;var e=function(){if(Ms)return _s;Ms=1;var e=Hi(),t=Yi(),n=Co();return _s=function(r){return e(r,n,t)}}(),t=Object.prototype.hasOwnProperty;return Ns=function(n,r,i,s,o,u){var c=1&i,a=e(n),l=a.length;if(l!=e(r).length&&!c)return!1;for(var f=l;f--;){var h=a[f];if(!(c?h in r:t.call(r,h)))return!1}var m=u.get(n),p=u.get(r);if(m&&p)return m==r&&p==n;var d=!0;u.set(n,r),u.set(r,n);for(var y=c;++f<l;){var v=n[h=a[f]],b=r[h];if(s)var g=c?s(b,v,h,r,n,u):s(v,b,h,n,r,u);if(!(void 0===g?v===b||o(v,b,i,s,u):g)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var E=n.constructor,j=r.constructor;E==j||!("constructor"in n)||!("constructor"in r)||"function"==typeof E&&E instanceof E&&"function"==typeof j&&j instanceof j||(d=!1)}return u.delete(n),u.delete(r),d}}function $o(){if(Bs)return Js;Bs=1;var e=function(){if(Is)return Rs;Is=1;var e=Li()(ki(),"DataView");return Rs=e}(),t=Di(),n=function(){if(Cs)return Fs;Cs=1;var e=Li()(ki(),"Promise");return Fs=e}(),r=function(){if($s)return Vs;$s=1;var e=Li()(ki(),"Set");return Vs=e}(),i=function(){if(Ds)return Ls;Ds=1;var e=Li()(ki(),"WeakMap");return Ls=e}(),s=Pi(),o=$i(),u="[object Map]",c="[object Promise]",a="[object Set]",l="[object WeakMap]",f="[object DataView]",h=o(e),m=o(t),p=o(n),d=o(r),y=o(i),v=s;return(e&&v(new e(new ArrayBuffer(1)))!=f||t&&v(new t)!=u||n&&v(n.resolve())!=c||r&&v(new r)!=a||i&&v(new i)!=l)&&(v=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?o(n):"";if(r)switch(r){case h:return f;case m:return u;case p:return c;case d:return a;case y:return l}return t}),Js=v}function Lo(){if(Us)return Gs;Us=1;var e=function(){if(qs)return zs;qs=1;var e=Gi(),t=Ki(),n=Wi(),r=Vo(),i=$o(),s=_i(),o=ls(),u=To(),c="[object Arguments]",a="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return zs=function(h,m,p,d,y,v){var b=s(h),g=s(m),E=b?a:i(h),j=g?a:i(m),O=(E=E==c?l:E)==l,S=(j=j==c?l:j)==l,w=E==j;if(w&&o(h)){if(!o(m))return!1;b=!0,O=!1}if(w&&!O)return v||(v=new e),b||u(h)?t(h,m,p,d,y,v):n(h,m,E,p,d,y,v);if(!(1&p)){var A=O&&f.call(h,"__wrapped__"),k=S&&f.call(m,"__wrapped__");if(A||k){var x=A?h.value():h,P=k?m.value():m;return v||(v=new e),y(x,P,p,d,v)}}return!!w&&(v||(v=new e),r(h,m,p,d,y,v))}}(),t=Mi();return Gs=function n(r,i,s,o,u){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,s,o,n,u))},Gs}function Do(){if(Ys)return Hs;Ys=1;class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}return Hs=e}function Jo(){if(Zs)return Xs;Zs=1;return Xs=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},Xs}function Bo(){if(eo)return Qs;eo=1;const e=Jo();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class n{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,r){return e=t(e),new n(this.elements.filter(e,r))}reject(r,i){return r=t(r),new n(this.elements.filter(e(r),i))}find(e,n){return e=t(e),this.elements.find(e,n)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}return"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),Qs=n}function zo(){if(no)return to;no=1;const e=function(){if(Ws)return Ks;Ws=1;var e=Lo();return Ks=function(t,n){return e(t,n)}}(),t=Do(),n=Bo();class r{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof r?this.content.toValue():this.content instanceof t?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const r=e.pop();let i=new n;const s=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===r&&e.push(n);const i=n.findRecursive(r);return i&&i.reduce(s,e),n.content instanceof t&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(i,this.content),Array.isArray(this.content)&&this.content.reduce(o,i)),e.isEmpty||(i=i.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],i=n.indexOf(r);if(-1===i)return!1;n=n.splice(0,i)}return!0}))),i}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof r)this._content=e;else if(e instanceof n)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof t)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new n;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new n(this.content);if(this.content instanceof t){const e=new n([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof r?new n([this.content]):new n}get recursiveChildren(){const e=new n;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return to=r}function qo(){if(ho)return fo;ho=1;const e=Jo(),t=zo(),n=Bo();class r extends t{constructor(e,t,n){super(e||[],t,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,t){return new n(this.content.filter(e,t))}reject(t,n){return this.filter(e(t),n)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,i=void 0===n.results?[]:n.results;return this.forEach(((t,n,s)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:i,recursive:r}),e(t,n,s)&&i.push(t)})),i}find(e){return new n(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return r.empty=function(){return new this},r["fantasy-land/empty"]=r.empty,"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),fo=r}function Go(){if(po)return mo;po=1;const e=Do(),t=zo();return mo=class extends t{constructor(t,n,r,i){super(new e,r,i),this.element="member",this.key=t,this.value=n}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}}function Uo(){if(vo)return yo;vo=1;const e=Jo(),t=Bo();class n extends t{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new n(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(t,n){return this.filter(e(t.bind(n)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return yo=n}function Ko(){if(Ao)return wo;Ao=1;const e=zo(),t=function(){if(io)return ro;io=1;const e=zo();return ro=class extends e{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),n=function(){if(oo)return so;oo=1;const e=zo();return so=class extends e{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),r=function(){if(co)return uo;co=1;const e=zo();return uo=class extends e{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}}(),i=function(){if(lo)return ao;lo=1;const e=zo();return ao=class extends e{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}}(),s=qo(),o=Go(),u=function(){if(go)return bo;go=1;const e=Jo(),t=Ni(),n=qo(),r=Go(),i=Uo();return bo=class extends n{constructor(e,t,n){super(e||[],t,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,n){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const i=e,s=this.getMember(i);return s?s.value=n:this.content.push(new r(i,n)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,i,s)=>{const o=e.bind(t)(r,i,s);o&&n.push(o)})),n}filter(e,t){return new i(this.content).filter(e,t)}reject(t,n){return this.filter(e(t),n)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}}(),c=function(){if(jo)return Eo;jo=1;const e=zo();return Eo=class extends e{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}}(),a=function(){if(So)return Oo;So=1;const e=zo();return Oo=class extends e{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}}(),l=Bo(),f=Uo(),h=Do();function m(o){if(o instanceof e)return o;if("string"==typeof o)return new n(o);if("number"==typeof o)return new r(o);if("boolean"==typeof o)return new i(o);if(null===o)return new t;if(Array.isArray(o))return new s(o.map(m));if("object"==typeof o){return new u(o)}return o}return e.prototype.ObjectElement=u,e.prototype.RefElement=a,e.prototype.MemberElement=o,e.prototype.refract=m,l.prototype.refract=m,wo={Element:e,NullElement:t,StringElement:n,NumberElement:r,BooleanElement:i,ArrayElement:s,MemberElement:o,ObjectElement:u,LinkElement:c,RefElement:a,refract:m,ArraySlice:l,ObjectSlice:f,KeyValuePair:h}}function Wo(){if(xo)return ko;xo=1;const e=Wt?Kt:(Wt=1,Kt=function(e){return null===e}),t=function(){if(mn)return hn;mn=1;var e=Pi(),t=_i(),n=Mi();return hn=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),n=function(){if(dn)return pn;dn=1;var e=Pi(),t=Mi();return pn=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}(),r=function(){if(vn)return yn;vn=1;var e=Pi(),t=Mi();return yn=function(n){return!0===n||!1===n||t(n)&&"[object Boolean]"==e(n)}}(),i=Ni(),s=Ti(),o=Ko();class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=o.Element,this.KeyValuePair=o.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",o.NullElement).register("string",o.StringElement).register("number",o.NumberElement).register("boolean",o.BooleanElement).register("array",o.ArrayElement).register("object",o.ObjectElement).register("member",o.MemberElement).register("ref",o.RefElement).register("link",o.LinkElement),this.detect(e,o.NullElement,!1).detect(t,o.StringElement,!1).detect(n,o.NumberElement,!1).detect(r,o.BooleanElement,!1).detect(Array.isArray,o.ArrayElement,!1).detect(i,o.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(e)){t=new i(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new s(this)}}return s.prototype.Namespace=u,ko=u}var Ho=function(){if(Mo)return wi;Mo=1;const e=Wo(),t=Ko();return wi.Namespace=e,wi.namespace=function(t){return new e(t)},wi.KeyValuePair=Do(),wi.ArraySlice=t.ArraySlice,wi.ObjectSlice=t.ObjectSlice,wi.Element=t.Element,wi.StringElement=t.StringElement,wi.NumberElement=t.NumberElement,wi.BooleanElement=t.BooleanElement,wi.NullElement=t.NullElement,wi.ArrayElement=t.ArrayElement,wi.ObjectElement=t.ObjectElement,wi.MemberElement=t.MemberElement,wi.RefElement=t.RefElement,wi.LinkElement=t.LinkElement,wi.refract=t.refract,wi.JSONSerialiser=Ti(),wi.JSON06Serialiser=function(){if(_o)return Po;_o=1;const e=Ti();return Po=class extends e{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let i=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),i.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&i.unshift(e.content),i=i.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),i.length&&t.set("samples",i),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const i=new t(r);i.element=n.element,e.push(i)}))}));const i=e.shift();n.content=i?i.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}}(),wi}();class Yo extends Ho.StringElement{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class Xo extends Ho.StringElement{constructor(e,t,n){super(e,t,n),this.element="comment"}}class Zo extends Ho.ArrayElement{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(yt(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const Qo=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],eu=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,tu=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),nu=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Ho.ArrayElement)&&t.classes.includes(e),ru=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,iu=e=>e({hasMethod:Qo,hasBasicElementProps:eu,primitiveEq:tu,isElementType:ru,hasClass:nu}),su=iu((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Ho.Element||e(n)&&t(void 0,n))),ou=iu((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Ho.StringElement||e(n)&&t("string",n))),uu=iu((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Ho.NumberElement||e(n)&&t("number",n))),cu=iu((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Ho.NullElement||e(n)&&t("null",n))),au=iu((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Ho.BooleanElement||e(n)&&t("boolean",n))),lu=iu((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof Ho.ObjectElement||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),fu=iu((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof Ho.ArrayElement&&!(r instanceof Ho.ObjectElement)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),hu=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ho.MemberElement||e(r)&&t("member",r)&&n(void 0,r))),mu=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ho.LinkElement||e(r)&&t("link",r)&&n(void 0,r))),pu=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ho.RefElement||e(r)&&t("ref",r)&&n(void 0,r))),du=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Yo||e(r)&&t("annotation",r)&&n("array",r))),yu=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xo||e(r)&&t("comment",r)&&n("string",r))),vu=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zo||e(r)&&t("parseResult",r)&&n("array",r))),bu=e=>!!su(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),gu=(e,t)=>0===e.length||v(Bt(t.classes.toValue()),e),Eu=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:bu,includesClasses:gu,includesSymbols:(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!fu(n)&&v(Bt(n.toValue()),e)},isAnnotationElement:du,isArrayElement:fu,isBooleanElement:au,isCommentElement:yu,isElement:su,isLinkElement:mu,isMemberElement:hu,isNullElement:cu,isNumberElement:uu,isObjectElement:lu,isParseResultElement:vu,isPrimitiveElement:e=>ru("object",e)||ru("array",e)||ru("boolean",e)||ru("number",e)||ru("string",e)||ru("null",e)||ru("member",e),isRefElement:pu,isStringElement:ou},Symbol.toStringTag,{value:"Module"}));class ju extends Ho.Namespace{constructor(){super(),this.register("annotation",Yo),this.register("comment",Xo),this.register("parseResult",Zo)}}const Ou=new ju,Su=e=>{const t=new ju;return Ct(e)&&t.use(e),t},wu=()=>({predicates:{...Eu},namespace:Ou});var Au,ku,xu,Pu,_u,Mu,Nu,Tu,Ru,Iu,Fu,Cu,Vu,$u,Lu,Du,Ju={},Bu={},zu={};function qu(){if(ku)return Au;ku=1;var e=function(e){return e&&e.Math===Math&&e};return Au=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Gt&&Gt)||e("object"==typeof Au&&Au)||function(){return this}()||Function("return this")()}function Gu(){return Pu?xu:(Pu=1,xu=function(e){try{return!!e()}catch(e){return!0}})}function Uu(){return Mu?_u:(Mu=1,_u=!Gu()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function Ku(){if(Tu)return Nu;Tu=1;var e=Uu(),t=Function.prototype,n=t.apply,r=t.call;return Nu="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Nu}function Wu(){if(Iu)return Ru;Iu=1;var e=Uu(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Ru=e?r:function(e){return function(){return n.apply(e,arguments)}},Ru}function Hu(){if(Cu)return Fu;Cu=1;var e=Wu(),t=e({}.toString),n=e("".slice);return Fu=function(e){return n(t(e),8,-1)}}function Yu(){if($u)return Vu;$u=1;var e=Hu(),t=Wu();return Vu=function(n){if("Function"===e(n))return t(n)}}function Xu(){if(Du)return Lu;Du=1;var e="object"==typeof document&&document.all;return Lu=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var Zu,Qu,ec,tc,nc={};function rc(){return Qu?Zu:(Qu=1,Zu=!Gu()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function ic(){if(tc)return ec;tc=1;var e=Uu(),t=Function.prototype.call;return ec=e?t.bind(t):function(){return t.apply(t,arguments)},ec}var sc,oc,uc,cc,ac,lc,fc,hc,mc,pc,dc,yc,vc,bc,gc,Ec,jc,Oc,Sc,wc,Ac,kc,xc,Pc,_c,Mc,Nc,Tc,Rc,Ic,Fc,Cc,Vc,$c,Lc,Dc,Jc,Bc={};function zc(){if(sc)return Bc;sc=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Bc.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Bc}function qc(){return uc?oc:(uc=1,oc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Gc(){if(ac)return cc;ac=1;var e=Wu(),t=Gu(),n=Hu(),r=Object,i=e("".split);return cc=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function Uc(){return fc?lc:(fc=1,lc=function(e){return null==e})}function Kc(){if(mc)return hc;mc=1;var e=Uc(),t=TypeError;return hc=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Wc(){if(dc)return pc;dc=1;var e=Gc(),t=Kc();return pc=function(n){return e(t(n))}}function Hc(){if(vc)return yc;vc=1;var e=Xu();return yc=function(t){return"object"==typeof t?null!==t:e(t)}}function Yc(){return gc?bc:(gc=1,bc={})}function Xc(){if(jc)return Ec;jc=1;var e=Yc(),t=qu(),n=Xu(),r=function(e){return n(e)?e:void 0};return Ec=function(n,i){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][i]||t[n]&&t[n][i]},Ec}function Zc(){return Sc?Oc:(Sc=1,Oc=Wu()({}.isPrototypeOf))}function Qc(){if(Ac)return wc;Ac=1;var e=qu().navigator,t=e&&e.userAgent;return wc=t?String(t):""}function ea(){if(xc)return kc;xc=1;var e,t,n=qu(),r=Qc(),i=n.process,s=n.Deno,o=i&&i.versions||s&&s.version,u=o&&o.v8;return u&&(t=(e=u.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),kc=t}function ta(){if(_c)return Pc;_c=1;var e=ea(),t=Gu(),n=qu().String;return Pc=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function na(){return Nc?Mc:(Nc=1,Mc=ta()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function ra(){if(Rc)return Tc;Rc=1;var e=Xc(),t=Xu(),n=Zc(),r=Object;return Tc=na()?function(e){return"symbol"==typeof e}:function(i){var s=e("Symbol");return t(s)&&n(s.prototype,r(i))}}function ia(){if(Fc)return Ic;Fc=1;var e=String;return Ic=function(t){try{return e(t)}catch(e){return"Object"}}}function sa(){if(Vc)return Cc;Vc=1;var e=Xu(),t=ia(),n=TypeError;return Cc=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function oa(){if(Lc)return $c;Lc=1;var e=sa(),t=Uc();return $c=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function ua(){if(Jc)return Dc;Jc=1;var e=ic(),t=Xu(),n=Hc(),r=TypeError;return Dc=function(i,s){var o,u;if("string"===s&&t(o=i.toString)&&!n(u=e(o,i)))return u;if(t(o=i.valueOf)&&!n(u=e(o,i)))return u;if("string"!==s&&t(o=i.toString)&&!n(u=e(o,i)))return u;throw new r("Can't convert object to primitive value")}}var ca,aa,la,fa,ha,ma,pa,da,ya,va,ba,ga,Ea,ja,Oa,Sa,wa,Aa,ka,xa,Pa,_a,Ma,Na,Ta,Ra,Ia,Fa,Ca={exports:{}};function Va(){return aa?ca:(aa=1,ca=!0)}function $a(){if(fa)return la;fa=1;var e=qu(),t=Object.defineProperty;return la=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function La(){if(ha)return Ca.exports;ha=1;var e=Va(),t=qu(),n=$a(),r="__core-js_shared__",i=Ca.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Ca.exports}function Da(){if(pa)return ma;pa=1;var e=La();return ma=function(t,n){return e[t]||(e[t]=n||{})}}function Ja(){if(ya)return da;ya=1;var e=Kc(),t=Object;return da=function(n){return t(e(n))}}function Ba(){if(ba)return va;ba=1;var e=Wu(),t=Ja(),n=e({}.hasOwnProperty);return va=Object.hasOwn||function(e,r){return n(t(e),r)}}function za(){if(Ea)return ga;Ea=1;var e=Wu(),t=0,n=Math.random(),r=e(1..toString);return ga=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function qa(){if(Oa)return ja;Oa=1;var e=qu(),t=Da(),n=Ba(),r=za(),i=ta(),s=na(),o=e.Symbol,u=t("wks"),c=s?o.for||o:o&&o.withoutSetter||r;return ja=function(e){return n(u,e)||(u[e]=i&&n(o,e)?o[e]:c("Symbol."+e)),u[e]}}function Ga(){if(wa)return Sa;wa=1;var e=ic(),t=Hc(),n=ra(),r=oa(),i=ua(),s=TypeError,o=qa()("toPrimitive");return Sa=function(u,c){if(!t(u)||n(u))return u;var a,l=r(u,o);if(l){if(void 0===c&&(c="default"),a=e(l,u,c),!t(a)||n(a))return a;throw new s("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(u,c)}}function Ua(){if(ka)return Aa;ka=1;var e=Ga(),t=ra();return Aa=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Ka(){if(Pa)return xa;Pa=1;var e=qu(),t=Hc(),n=e.document,r=t(n)&&t(n.createElement);return xa=function(e){return r?n.createElement(e):{}}}function Wa(){if(Ma)return _a;Ma=1;var e=rc(),t=Gu(),n=Ka();return _a=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Ha(){if(Na)return nc;Na=1;var e=rc(),t=ic(),n=zc(),r=qc(),i=Wc(),s=Ua(),o=Ba(),u=Wa(),c=Object.getOwnPropertyDescriptor;return nc.f=e?c:function(e,a){if(e=i(e),a=s(a),u)try{return c(e,a)}catch(e){}if(o(e,a))return r(!t(n.f,e,a),e[a])},nc}function Ya(){if(Ra)return Ta;Ra=1;var e=Gu(),t=Xu(),n=/#|\.prototype\./,r=function(n,r){var c=s[i(n)];return c===u||c!==o&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=r.data={},o=r.NATIVE="N",u=r.POLYFILL="P";return Ta=r}function Xa(){if(Fa)return Ia;Fa=1;var e=Yu(),t=sa(),n=Uu(),r=e(e.bind);return Ia=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},Ia}var Za,Qa,el,tl,nl,rl,il,sl,ol,ul,cl,al,ll,fl,hl,ml,pl,dl,yl,vl,bl,gl,El,jl={};function Ol(){return Qa?Za:(Qa=1,Za=rc()&&Gu()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function Sl(){if(tl)return el;tl=1;var e=Hc(),t=String,n=TypeError;return el=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function wl(){if(nl)return jl;nl=1;var e=rc(),t=Wa(),n=Ol(),r=Sl(),i=Ua(),s=TypeError,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",l="writable";return jl.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var s=u(e,t);s&&s[l]&&(e[t]=n.value,n={configurable:a in n?n[a]:s[a],enumerable:c in n?n[c]:s[c],writable:!1})}return o(e,t,n)}:o:function(e,n,u){if(r(e),n=i(n),r(u),t)try{return o(e,n,u)}catch(e){}if("get"in u||"set"in u)throw new s("Accessors not supported");return"value"in u&&(e[n]=u.value),e},jl}function Al(){if(il)return rl;il=1;var e=rc(),t=wl(),n=qc();return rl=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}function kl(){if(ol)return sl;ol=1;var e=qu(),t=Ku(),n=Yu(),r=Xu(),i=Ha().f,s=Ya(),o=Yc(),u=Xa(),c=Al(),a=Ba(),l=function(e){var n=function(r,i,s){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,i)}return new e(r,i,s)}return t(e,this,arguments)};return n.prototype=e.prototype,n};return sl=function(t,f){var h,m,p,d,y,v,b,g,E,j=t.target,O=t.global,S=t.stat,w=t.proto,A=O?e:S?e[j]:e[j]&&e[j].prototype,k=O?o:o[j]||c(o,j,{})[j],x=k.prototype;for(d in f)m=!(h=s(O?d:j+(S?".":"#")+d,t.forced))&&A&&a(A,d),v=k[d],m&&(b=t.dontCallGetSet?(E=i(A,d))&&E.value:A[d]),y=m&&b?b:f[d],(h||w||typeof v!=typeof y)&&(g=t.bind&&m?u(y,e):t.wrap&&m?l(y):w&&r(y)?n(y):y,(t.sham||y&&y.sham||v&&v.sham)&&c(g,"sham",!0),c(k,d,g),w&&(a(o,p=j+"Prototype")||c(o,p,{}),c(o[p],d,y),t.real&&x&&(h||!x[d])&&c(x,d,y)))}}function xl(){if(cl)return ul;cl=1;var e=Da(),t=za(),n=e("keys");return ul=function(e){return n[e]||(n[e]=t(e))}}function Pl(){return ll||(ll=1,al=!Gu()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))),al}function _l(){if(hl)return fl;hl=1;var e=Ba(),t=Xu(),n=Ja(),r=xl(),i=Pl(),s=r("IE_PROTO"),o=Object,u=o.prototype;return fl=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,s))return i[s];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof o?u:null}}function Ml(){if(pl)return ml;pl=1;var e=Wu(),t=sa();return ml=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}function Nl(){if(yl)return dl;yl=1;var e=Hc();return dl=function(t){return e(t)||null===t}}function Tl(){if(bl)return vl;bl=1;var e=Nl(),t=String,n=TypeError;return vl=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Rl(){if(El)return gl;El=1;var e=Ml(),t=Hc(),n=Kc(),r=Tl();return gl=Object.setPrototypeOf||("__proto__"in{}?function(){var i,s=!1,o={};try{(i=e(Object.prototype,"__proto__","set"))(o,[]),s=o instanceof Array}catch(e){}return function(e,o){return n(e),r(o),t(e)?(s?i(e,o):e.__proto__=o,e):e}}():void 0)}var Il,Fl,Cl,Vl,$l,Ll,Dl,Jl,Bl,zl,ql,Gl,Ul,Kl,Wl,Hl,Yl,Xl,Zl,Ql={};function ef(){if(Fl)return Il;Fl=1;var e=Math.ceil,t=Math.floor;return Il=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function tf(){if(Vl)return Cl;Vl=1;var e=ef();return Cl=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function nf(){if(Ll)return $l;Ll=1;var e=tf(),t=Math.max,n=Math.min;return $l=function(r,i){var s=e(r);return s<0?t(s+i,0):n(s,i)}}function rf(){if(Jl)return Dl;Jl=1;var e=tf(),t=Math.min;return Dl=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function sf(){if(zl)return Bl;zl=1;var e=rf();return Bl=function(t){return e(t.length)}}function of(){if(Gl)return ql;Gl=1;var e=Wc(),t=nf(),n=sf(),r=function(r){return function(i,s,o){var u=e(i),c=n(u);if(0===c)return!r&&-1;var a,l=t(o,c);if(r&&s!=s){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((r||l in u)&&u[l]===s)return r||l||0;return!r&&-1}};return ql={includes:r(!0),indexOf:r(!1)}}function uf(){return Kl?Ul:(Kl=1,Ul={})}function cf(){if(Hl)return Wl;Hl=1;var e=Wu(),t=Ba(),n=Wc(),r=of().indexOf,i=uf(),s=e([].push);return Wl=function(e,o){var u,c=n(e),a=0,l=[];for(u in c)!t(i,u)&&t(c,u)&&s(l,u);for(;o.length>a;)t(c,u=o[a++])&&(~r(l,u)||s(l,u));return l}}function af(){return Xl?Yl:(Xl=1,Yl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function lf(){if(Zl)return Ql;Zl=1;var e=cf(),t=af().concat("length","prototype");return Ql.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Ql}var ff,hf,mf,pf,df,yf={};function vf(){return ff||(ff=1,yf.f=Object.getOwnPropertySymbols),yf}function bf(){if(mf)return hf;mf=1;var e=Xc(),t=Wu(),n=lf(),r=vf(),i=Sl(),s=t([].concat);return hf=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),o=r.f;return o?s(t,o(e)):t},hf}function gf(){if(df)return pf;df=1;var e=Ba(),t=bf(),n=Ha(),r=wl();return pf=function(i,s,o){for(var u=t(s),c=r.f,a=n.f,l=0;l<u.length;l++){var f=u[l];e(i,f)||o&&e(o,f)||c(i,f,a(s,f))}},pf}var Ef,jf,Of,Sf,wf,Af,kf,xf,Pf,_f,Mf,Nf,Tf,Rf,If,Ff,Cf,Vf,$f,Lf,Df,Jf,Bf,zf,qf,Gf,Uf,Kf,Wf,Hf,Yf,Xf,Zf,Qf,eh,th,nh,rh,ih={};function sh(){if(jf)return Ef;jf=1;var e=cf(),t=af();return Ef=Object.keys||function(n){return e(n,t)}}function oh(){if(Of)return ih;Of=1;var e=rc(),t=Ol(),n=wl(),r=Sl(),i=Wc(),s=sh();return ih.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o,u=i(t),c=s(t),a=c.length,l=0;a>l;)n.f(e,o=c[l++],u[o]);return e},ih}function uh(){return wf?Sf:(wf=1,Sf=Xc()("document","documentElement"))}function ch(){if(kf)return Af;kf=1;var e,t=Sl(),n=oh(),r=af(),i=uf(),s=uh(),o=Ka(),u="prototype",c="script",a=xl()("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,i;m="undefined"!=typeof document?document.domain&&e?h(e):(n=o("iframe"),i="java"+c+":",n.style.display="none",s.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(e);for(var a=r.length;a--;)delete m[u][r[a]];return m()};return i[a]=!0,Af=Object.create||function(e,r){var i;return null!==e?(l[u]=t(e),i=new l,l[u]=null,i[a]=e):i=m(),void 0===r?i:n.f(i,r)}}function ah(){if(Pf)return xf;Pf=1;var e=Hc(),t=Al();return xf=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)}}function lh(){if(Mf)return _f;Mf=1;var e=Error,t=Wu()("".replace),n=String(new e("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,i=r.test(n);return _f=function(n,s){if(i&&"string"==typeof n&&!e.prepareStackTrace)for(;s--;)n=t(n,r,"");return n}}function fh(){if(Tf)return Nf;Tf=1;var e=Gu(),t=qc();return Nf=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function hh(){if(If)return Rf;If=1;var e=Al(),t=lh(),n=fh(),r=Error.captureStackTrace;return Rf=function(i,s,o,u){n&&(r?r(i,s):e(i,"stack",t(o,u)))}}function mh(){return Cf?Ff:(Cf=1,Ff={})}function ph(){if($f)return Vf;$f=1;var e=qa(),t=mh(),n=e("iterator"),r=Array.prototype;return Vf=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function dh(){if(Df)return Lf;Df=1;var e={};return e[qa()("toStringTag")]="z",Lf="[object z]"===String(e)}function yh(){if(Bf)return Jf;Bf=1;var e=dh(),t=Xu(),n=Hu(),r=qa()("toStringTag"),i=Object,s="Arguments"===n(function(){return arguments}());return Jf=e?n:function(e){var o,u,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(u=function(e,t){try{return e[t]}catch(e){}}(o=i(e),r))?u:s?n(o):"Object"===(c=n(o))&&t(o.callee)?"Arguments":c}}function vh(){if(qf)return zf;qf=1;var e=yh(),t=oa(),n=Uc(),r=mh(),i=qa()("iterator");return zf=function(s){if(!n(s))return t(s,i)||t(s,"@@iterator")||r[e(s)]}}function bh(){if(Uf)return Gf;Uf=1;var e=ic(),t=sa(),n=Sl(),r=ia(),i=vh(),s=TypeError;return Gf=function(o,u){var c=arguments.length<2?i(o):u;if(t(c))return n(e(c,o));throw new s(r(o)+" is not iterable")},Gf}function gh(){if(Wf)return Kf;Wf=1;var e=ic(),t=Sl(),n=oa();return Kf=function(r,i,s){var o,u;t(r);try{if(!(o=n(r,"return"))){if("throw"===i)throw s;return s}o=e(o,r)}catch(e){u=!0,o=e}if("throw"===i)throw s;if(u)throw o;return t(o),s}}function Eh(){if(Yf)return Hf;Yf=1;var e=Xa(),t=ic(),n=Sl(),r=ia(),i=ph(),s=sf(),o=Zc(),u=bh(),c=vh(),a=gh(),l=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;return Hf=function(m,p,d){var y,v,b,g,E,j,O,S=d&&d.that,w=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_RECORD),k=!(!d||!d.IS_ITERATOR),x=!(!d||!d.INTERRUPTED),P=e(p,S),_=function(e){return y&&a(y,"normal",e),new f(!0,e)},M=function(e){return w?(n(e),x?P(e[0],e[1],_):P(e[0],e[1])):x?P(e,_):P(e)};if(A)y=m.iterator;else if(k)y=m;else{if(!(v=c(m)))throw new l(r(m)+" is not iterable");if(i(v)){for(b=0,g=s(m);g>b;b++)if((E=M(m[b]))&&o(h,E))return E;return new f(!1)}y=u(m,v)}for(j=A?m.next:y.next;!(O=t(j,y)).done;){try{E=M(O.value)}catch(e){a(y,"throw",e)}if("object"==typeof E&&E&&o(h,E))return E}return new f(!1)}}function jh(){if(Zf)return Xf;Zf=1;var e=yh(),t=String;return Xf=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Oh(){if(eh)return Qf;eh=1;var e=jh();return Qf=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},Qf}function Sh(){return nh||(nh=1,function(){if(th)return zu;th=1;var e=kl(),t=Zc(),n=_l(),r=Rl(),i=gf(),s=ch(),o=Al(),u=qc(),c=ah(),a=hh(),l=Eh(),f=Oh(),h=qa()("toStringTag"),m=Error,p=[].push,d=function(e,i){var u,v=t(y,this);r?u=r(new m,v?n(this):y):(u=v?this:s(y),o(u,h,"Error")),void 0!==i&&o(u,"message",f(i)),a(u,d,u.stack,1),arguments.length>2&&c(u,arguments[2]);var b=[];return l(e,p,{that:b}),o(u,"errors",b),u};r?r(d,m):i(d,m,{name:!0});var y=d.prototype=s(m.prototype,{constructor:u(1,d),message:u(1,""),name:u(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:d})}()),Bu}function wh(){return rh||(rh=1,Sh()),Ju}var Ah,kh,xh,Ph,_h,Mh,Nh,Th={};function Rh(){if(kh)return Ah;kh=1;var e=wl().f;return Ah=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function Ih(){if(Ph)return xh;Ph=1;var e=Xu(),t=Hc(),n=Rl();return xh=function(r,i,s){var o,u;return n&&e(o=i.constructor)&&o!==s&&t(u=o.prototype)&&u!==s.prototype&&n(r,u),r}}function Fh(){if(Mh)return _h;Mh=1;var e=Xc(),t=Ba(),n=Al(),r=Zc(),i=Rl(),s=gf(),o=Rh(),u=Ih(),c=Oh(),a=ah(),l=hh(),f=rc(),h=Va();return _h=function(m,p,d,y){var v="stackTraceLimit",b=y?2:1,g=m.split("."),E=g[g.length-1],j=e.apply(null,g);if(j){var O=j.prototype;if(!h&&t(O,"cause")&&delete O.cause,!d)return j;var S=e("Error"),w=p((function(e,t){var i=c(y?t:e,void 0),s=y?new j(e):new j;return void 0!==i&&n(s,"message",i),l(s,w,s.stack,2),this&&r(O,this)&&u(s,this,w),arguments.length>b&&a(s,arguments[b]),s}));if(w.prototype=O,"Error"!==E?i?i(w,S):s(w,S,{name:!0}):f&&v in j&&(o(w,j,v),o(w,j,"prepareStackTrace")),s(w,j),!h)try{O.name!==E&&n(O,"name",E),O.constructor=w}catch(e){}return w}},_h}var Ch,Vh,$h,Lh,Dh,Jh,Bh,zh,qh,Gh,Uh,Kh,Wh,Hh,Yh,Xh,Zh,Qh,em,tm,nm,rm,im,sm,om,um={};function cm(){return $h?Vh:($h=1,Vh=function(){})}function am(){if(Dh)return Lh;Dh=1;var e=qu(),t=Xu(),n=e.WeakMap;return Lh=t(n)&&/native code/.test(String(n))}function lm(){if(Bh)return Jh;Bh=1;var e,t,n,r=am(),i=qu(),s=Hc(),o=Al(),u=Ba(),c=La(),a=xl(),l=uf(),f="Object already initialized",h=i.TypeError,m=i.WeakMap;if(r||c.state){var p=c.state||(c.state=new m);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new h(f);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},n=function(e){return p.has(e)}}else{var d=a("state");l[d]=!0,e=function(e,t){if(u(e,d))throw new h(f);return t.facade=e,o(e,d,t),t},t=function(e){return u(e,d)?e[d]:{}},n=function(e){return u(e,d)}}return Jh={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!s(n)||(r=t(n)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}}function fm(){if(qh)return zh;qh=1;var e=rc(),t=Ba(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),s=i&&"something"===function(){}.name,o=i&&(!e||e&&r(n,"name").configurable);return zh={EXISTS:i,PROPER:s,CONFIGURABLE:o}}function hm(){if(Uh)return Gh;Uh=1;var e=Al();return Gh=function(t,n,r,i){return i&&i.enumerable?t[n]=r:e(t,n,r),t}}function mm(){if(Wh)return Kh;Wh=1;var e,t,n,r=Gu(),i=Xu(),s=Hc(),o=ch(),u=_l(),c=hm(),a=qa(),l=Va(),f=a("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=u(u(n)))!==Object.prototype&&(e=t):h=!0),!s(e)||r((function(){var t={};return e[f].call(t)!==t}))?e={}:l&&(e=o(e)),i(e[f])||c(e,f,(function(){return this})),Kh={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function pm(){if(Yh)return Hh;Yh=1;var e=dh(),t=yh();return Hh=e?{}.toString:function(){return"[object "+t(this)+"]"}}function dm(){if(Zh)return Xh;Zh=1;var e=dh(),t=wl().f,n=Al(),r=Ba(),i=pm(),s=qa()("toStringTag");return Xh=function(o,u,c,a){var l=c?o:o&&o.prototype;l&&(r(l,s)||t(l,s,{configurable:!0,value:u}),a&&!e&&n(l,"toString",i))}}function ym(){if(em)return Qh;em=1;var e=mm().IteratorPrototype,t=ch(),n=qc(),r=dm(),i=mh(),s=function(){return this};return Qh=function(o,u,c,a){var l=u+" Iterator";return o.prototype=t(e,{next:n(+!a,c)}),r(o,l,!1,!0),i[l]=s,o}}function vm(){if(nm)return tm;nm=1;var e=kl(),t=ic(),n=Va(),r=fm(),i=Xu(),s=ym(),o=_l(),u=Rl(),c=dm(),a=Al(),l=hm(),f=qa(),h=mh(),m=mm(),p=r.PROPER,d=r.CONFIGURABLE,y=m.IteratorPrototype,v=m.BUGGY_SAFARI_ITERATORS,b=f("iterator"),g="keys",E="values",j="entries",O=function(){return this};return tm=function(r,f,m,S,w,A,k){s(m,f,S);var x,P,_,M=function(e){if(e===w&&F)return F;if(!v&&e&&e in R)return R[e];switch(e){case g:case E:case j:return function(){return new m(this,e)}}return function(){return new m(this)}},N=f+" Iterator",T=!1,R=r.prototype,I=R[b]||R["@@iterator"]||w&&R[w],F=!v&&I||M(w),C="Array"===f&&R.entries||I;if(C&&(x=o(C.call(new r)))!==Object.prototype&&x.next&&(n||o(x)===y||(u?u(x,y):i(x[b])||l(x,b,O)),c(x,N,!0,!0),n&&(h[N]=O)),p&&w===E&&I&&I.name!==E&&(!n&&d?a(R,"name",E):(T=!0,F=function(){return t(I,this)})),w)if(P={values:M(E),keys:A?F:M(g),entries:M(j)},k)for(_ in P)(v||T||!(_ in R))&&l(R,_,P[_]);else e({target:f,proto:!0,forced:v||T},P);return n&&!k||R[b]===F||l(R,b,F,{name:w}),h[f]=F,P}}function bm(){return im?rm:(im=1,rm=function(e,t){return{value:e,done:t}})}function gm(){if(om)return sm;om=1;var e=Wc(),t=cm(),n=mh(),r=lm(),i=wl().f,s=vm(),o=bm(),u=Va(),c=rc(),a="Array Iterator",l=r.set,f=r.getterFor(a);sm=s(Array,"Array",(function(t,n){l(this,{type:a,target:e(t),index:0,kind:n})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case"keys":return o(n,!1);case"values":return o(t[n],!1)}return o([n,t[n]],!1)}),"values");var h=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!u&&c&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return sm}var Em,jm,Om,Sm,wm,Am={};function km(){if(jm)return Em;jm=1;var e=Wu(),t=tf(),n=jh(),r=Kc(),i=e("".charAt),s=e("".charCodeAt),o=e("".slice),u=function(e){return function(u,c){var a,l,f=n(r(u)),h=t(c),m=f.length;return h<0||h>=m?e?"":void 0:(a=s(f,h))<55296||a>56319||h+1===m||(l=s(f,h+1))<56320||l>57343?e?i(f,h):a:e?o(f,h,h+2):l-56320+(a-55296<<10)+65536}};return Em={codeAt:u(!1),charAt:u(!0)}}function xm(){return wm?Sm:(wm=1,function(){if(Nh)return Th;Nh=1;var e=kl(),t=qu(),n=Ku(),r=Fh(),i="WebAssembly",s=t[i],o=7!==new Error("e",{cause:7}).cause,u=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(s&&s[t]){var u={};u[t]=r(i+"."+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},u)}};u("Error",(function(e){return function(t){return n(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),u("URIError",(function(e){return function(t){return n(e,this,arguments)}})),c("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),c("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),c("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))}(),Sh(),function(){if(Ch)return um;Ch=1;var e=kl(),t=Xc(),n=Ku(),r=Gu(),i=Fh(),s="AggregateError",o=t(s),u=!r((function(){return 1!==o([1]).errors[0]}))&&r((function(){return 7!==o([1],s,{cause:7}).cause}));e({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:i(s,(function(e){return function(t,r){return n(e,this,arguments)}}),u,!0)})}(),gm(),function(){if(Om)return Am;Om=1;var e=km().charAt,t=jh(),n=lm(),r=vm(),i=bm(),s="String Iterator",o=n.set,u=n.getterFor(s);r(String,"String",(function(e){o(this,{type:s,string:t(e),index:0})}),(function(){var t,n=u(this),r=n.string,s=n.index;return s>=r.length?i(void 0,!0):(t=e(r,s),n.index+=t.length,i(t,!1))}))}(),Sm=Yc().AggregateError)}var Pm,_m,Mm,Nm,Tm,Rm,Im,Fm,Cm,Vm,$m,Lm,Dm,Jm={};function Bm(){return _m?Pm:(_m=1,Pm={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 zm(){if(Tm)return Nm;Tm=1,wh();var e=xm();return function(){if(Mm)return Jm;Mm=1,gm();var e=Bm(),t=qu(),n=dm(),r=mh();for(var i in e)n(t[i],i),r[i]=r.Array}(),Nm=e}function qm(){return Im?Rm:(Im=1,Rm=zm())}function Gm(){return Cm?Fm:(Cm=1,wh(),Fm=qm())}function Um(){return $m?Vm:($m=1,Vm=Gm())}const Km=Ut(Dm?Lm:(Dm=1,Lm=Um()));class Wm extends Km{constructor(e,t,n){if(super(e,t,n),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Hm extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Wm,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Ym extends Hm{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}class Xm extends Hm{}class Zm extends Xm{}const Qm=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},ep={},tp=e=>null==e?void 0:e.type,np=e=>"string"==typeof tp(e),rp=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ip=(e,{visitFnGetter:t=Qm,nodeTypeGetter:n=tp,breakSymbol:r=ep,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:o=!1}={})=>{const u=Symbol("skip"),c=new Array(e.length).fill(u);return{enter(a,l,f,h,m,p){let d=a,y=!1;const v={...p,replaceWith(e,t){p.replaceWith(e,t),d=e}};for(let a=0;a<e.length;a+=1)if(c[a]===u){const u=t(e[a],n(d),!1);if("function"==typeof u){const t=u.call(e[a],d,l,f,h,m,v);if("function"==typeof(null==t?void 0:t.then))throw new Ym("Async visitor not supported in sync mode",{visitor:e[a],visitFn:u});if(t===s)c[a]=d;else if(t===r)c[a]=r;else{if(t===i)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(i,o,a,l,f,h){let m=i;const p={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let i=0;i<e.length;i+=1)if(c[i]===u){const u=t(e[i],n(m),!0);if("function"==typeof u){const t=u.call(e[i],m,o,a,l,f,p);if("function"==typeof(null==t?void 0:t.then))throw new Ym("Async visitor not supported in sync mode",{visitor:e[i],visitFn:u});if(t===r)c[i]=r;else if(void 0!==t&&t!==s)return t}}else c[i]===m&&(c[i]=u)}}};ip[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Qm,nodeTypeGetter:n=tp,breakSymbol:r=ep,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:o=!1}={})=>{const u=Symbol("skip"),c=new Array(e.length).fill(u);return{async enter(a,l,f,h,m,p){let d=a,y=!1;const v={...p,replaceWith(e,t){p.replaceWith(e,t),d=e}};for(let a=0;a<e.length;a+=1)if(c[a]===u){const u=t(e[a],n(d),!1);if("function"==typeof u){const t=await u.call(e[a],d,l,f,h,m,v);if(t===s)c[a]=d;else if(t===r)c[a]=r;else{if(t===i)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(i,o,a,l,f,h){let m=i;const p={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let i=0;i<e.length;i+=1)if(c[i]===u){const u=t(e[i],n(m),!0);if("function"==typeof u){const t=await u.call(e[i],m,o,a,l,f,p);if(t===r)c[i]=r;else if(void 0!==t&&t!==s)return t}}else c[i]===m&&(c[i]=u)}}};const sp=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=ep,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:u=Qm,nodeTypeGetter:c=tp,nodePredicate:a=np,nodeCloneFn:l=rp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const m=n||{};let p,d,y=Array.isArray(e),v=[e],b=-1,g=[],E=e;const j=[],O=[];do{b+=1;const e=b===v.length;let n;const A=e&&0!==g.length;if(e){if(n=0===O.length?void 0:j.pop(),E=d,d=O.pop(),A)if(y){E=E.slice();let e=0;for(const[t,n]of g){const r=t-e;n===s?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of g)E[e]=t}b=p.index,v=p.keys,g=p.edits,y=p.inArray,p=p.prev}else if(d!==s&&void 0!==d){if(n=y?b:v[b],E=d[n],E===s||void 0===E)continue;j.push(n)}let k;if(!Array.isArray(E)){var S;if(!a(E))throw new Ym(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&O.includes(E)){"function"==typeof h&&h(E,n,d,j,O),j.pop();continue}const s=u(t,c(E),e);if(s){for(const[e,n]of Object.entries(r))t[e]=n;const i={replaceWith(t,r){"function"==typeof r?r(t,E,n,d,j,O):d&&(d[n]=t),e||(E=t)}};k=s.call(t,E,n,d,j,O,i)}if("function"==typeof(null===(S=k)||void 0===S?void 0:S.then))throw new Ym("Async visitor not supported in sync mode",{visitor:t,visitFn:s});if(k===i)break;if(k===o){if(!e){j.pop();continue}}else if(void 0!==k&&(g.push([n,k]),!e)){if(!a(k)){j.pop();continue}E=k}}var w;if(void 0===k&&A&&g.push([n,E]),!e)p={inArray:y,index:b,keys:v,edits:g,prev:p},y=Array.isArray(E),v=y?E:null!==(w=m[c(E)])&&void 0!==w?w:[],b=-1,g=[],d!==s&&void 0!==d&&O.push(d),d=E}while(void 0!==p);return 0!==g.length?g[g.length-1][1]:e};sp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:i=ep,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:u=Qm,nodeTypeGetter:c=tp,nodePredicate:a=np,nodeCloneFn:l=rp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const m=n||{};let p,d,y=Array.isArray(e),v=[e],b=-1,g=[],E=e;const j=[],O=[];do{b+=1;const e=b===v.length;let n;const w=e&&0!==g.length;if(e){if(n=0===O.length?void 0:j.pop(),E=d,d=O.pop(),w)if(y){E=E.slice();let e=0;for(const[t,n]of g){const r=t-e;n===s?(E.splice(r,1),e+=1):E[r]=n}}else{E=l(E);for(const[e,t]of g)E[e]=t}b=p.index,v=p.keys,g=p.edits,y=p.inArray,p=p.prev}else if(d!==s&&void 0!==d){if(n=y?b:v[b],E=d[n],E===s||void 0===E)continue;j.push(n)}let A;if(!Array.isArray(E)){if(!a(E))throw new Ym(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&O.includes(E)){"function"==typeof h&&h(E,n,d,j,O),j.pop();continue}const s=u(t,c(E),e);if(s){for(const[e,n]of Object.entries(r))t[e]=n;const i={replaceWith(t,r){"function"==typeof r?r(t,E,n,d,j,O):d&&(d[n]=t),e||(E=t)}};A=await s.call(t,E,n,d,j,O,i)}if(A===i)break;if(A===o){if(!e){j.pop();continue}}else if(void 0!==A&&(g.push([n,A]),!e)){if(!a(A)){j.pop();continue}E=A}}var S;if(void 0===A&&w&&g.push([n,E]),!e)p={inArray:y,index:b,keys:v,edits:g,prev:p},y=Array.isArray(E),v=y?E:null!==(S=m[c(E)])&&void 0!==S?S:[],b=-1,g=[],d!==s&&void 0!==d&&O.push(d),d=E}while(void 0!==p);return 0!==g.length?g[g.length-1][1]:e};class op extends Ym{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class up extends op{}class cp extends op{}const ap=(e,t)=>{const n=Fe(e,t);return rt((e=>{if(Ct(e)&&Ke("$ref",e)&&ft(kt,"$ref",e)){const t=ut(["$ref"],e),r=qt("#/",t);return ut(r.split("/"),n)}return Ct(e)?ap(e,n):e}),e)},lp=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),fp=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof Ho.KeyValuePair){const{key:t,value:i}=e,s=su(t)?fp(t,r):t,o=su(i)?fp(i,r):i,u=new Ho.KeyValuePair(s,o);return n.set(e,u),u}if(e instanceof Ho.ObjectSlice){const t=e=>fp(e,r),i=[...e].map(t),s=new Ho.ObjectSlice(i);return n.set(e,s),s}if(e instanceof Ho.ArraySlice){const t=e=>fp(e,r),i=[...e].map(t),s=new Ho.ArraySlice(i);return n.set(e,s),s}if(su(e)){const t=pp(e);if(n.set(e,t),e.content)if(su(e.content))t.content=fp(e.content,r);else if(e.content instanceof Ho.KeyValuePair)t.content=fp(e.content,r);else if(Array.isArray(e.content)){const n=e=>fp(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new up("Value provided to cloneDeep function couldn't be cloned",{value:e})};fp.safe=e=>{try{return fp(e)}catch{return e}};const hp=e=>{const{key:t,value:n}=e;return new Ho.KeyValuePair(t,n)},mp=e=>{const t=new e.constructor;if(t.element=e.element,bu(e)&&lp(t,e),e.meta.length>0&&(t._meta=fp(e.meta)),e.attributes.length>0&&(t._attributes=fp(e.attributes)),su(e.content)){const n=e.content;t.content=mp(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Ho.KeyValuePair?t.content=hp(e.content):t.content=e.content;return t},pp=e=>{if(e instanceof Ho.KeyValuePair)return hp(e);if(e instanceof Ho.ObjectSlice)return(e=>{const t=[...e];return new Ho.ObjectSlice(t)})(e);if(e instanceof Ho.ArraySlice)return(e=>{const t=[...e];return new Ho.ArraySlice(t)})(e);if(su(e))return mp(e);throw new cp("Value provided to cloneShallow function couldn't be cloned",{value:e})};pp.safe=e=>{try{return pp(e)}catch{return e}};const dp=e=>lu(e)?"ObjectElement":fu(e)?"ArrayElement":hu(e)?"MemberElement":ou(e)?"StringElement":au(e)?"BooleanElement":uu(e)?"NumberElement":cu(e)?"NullElement":mu(e)?"LinkElement":pu(e)?"RefElement":void 0,yp=e=>su(e)?pp(e):rp(e),vp=Re(dp,kt),bp={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},gp=(e,t,{keyMap:n=bp,...r}={})=>sp(e,t,{keyMap:n,nodeTypeGetter:dp,nodePredicate:vp,nodeCloneFn:yp,...r});gp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=bp,...r}={})=>sp[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:dp,nodePredicate:vp,nodeCloneFn:yp,...r});const Ep={toolboxCreator:wu,visitorOptions:{nodeTypeGetter:dp,exposeEdits:!0}},jp=(e,t,n={})=>{if(0===t.length)return e;const r=ot(Ep,n),{toolboxCreator:i,visitorOptions:s}=r,o=i(),u=t.map((e=>e(o))),c=ip(u.map(lt({},"visitor")),{...s});u.forEach(zt(["pre"],[]));const a=gp(e,c,s);return u.forEach(zt(["post"],[])),a};jp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=ot(Ep,n),{toolboxCreator:i,visitorOptions:s}=r,o=i(),u=t.map((e=>e(o))),c=ip[Symbol.for("nodejs.util.promisify.custom")],a=gp[Symbol.for("nodejs.util.promisify.custom")],l=c(u.map(lt({},"visitor")),{...s});await Promise.allSettled(u.map(zt(["pre"],[])));const f=await a(e,l,s);return await Promise.allSettled(u.map(zt(["post"],[]))),f};class Op extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Zm("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Zm("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Zm("latest method in MediaTypes class is not yet implemented.")}}const Sp=e=>(t,n={})=>((e,{Type:t,plugins:n=[]})=>{const r=new t(e);return su(e)&&(e.meta.length>0&&(r.meta=fp(e.meta)),e.attributes.length>0&&(r.attributes=fp(e.attributes))),jp(r,n,{toolboxCreator:wu,visitorOptions:{nodeTypeGetter:dp}})})(t,{...n,Type:e});Ho.ObjectElement.refract=Sp(Ho.ObjectElement),Ho.ArrayElement.refract=Sp(Ho.ArrayElement),Ho.StringElement.refract=Sp(Ho.StringElement),Ho.BooleanElement.refract=Sp(Ho.BooleanElement),Ho.NullElement.refract=Sp(Ho.NullElement),Ho.NumberElement.refract=Sp(Ho.NumberElement),Ho.LinkElement.refract=Sp(Ho.LinkElement),Ho.RefElement.refract=Sp(Ho.RefElement),Yo.refract=Sp(Yo),Xo.refract=Sp(Xo),Zo.refract=Sp(Zo);const wp=e=>"string"==typeof(null==e?void 0:e.type)?e.type:dp(e),Ap={EphemeralObject:["content"],EphemeralArray:["content"],...bp},kp=(e,t,{keyMap:r=Ap,...i}={})=>gp(e,t,{keyMap:r,nodeTypeGetter:wp,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...i});kp[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Ap,...r}={})=>gp[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:wp,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class xp{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class Pp{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let _p=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Pp(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new xp(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ou(e.href)?e.href.toValue():""}};const Mp=e=>su(e)?ou(e)||uu(e)||au(e)||cu(e)?e.toValue():kp(e,new _p):e,Np=e=>{const t=e.meta.length>0?fp(e.meta):void 0,n=e.attributes.length>0?fp(e.attributes):void 0;return new e.constructor(void 0,t,n)},Tp=(e,t)=>t.clone&&t.isMergeableElement(e)?Ip(Np(e),e,t):e,Rp={clone:!0,isMergeableElement:e=>lu(e)||fu(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>Tp(e,n))),objectElementMerge:(e,t,n)=>{const r=lu(e)?Np(e):Np(t);return lu(e)&&e.forEach(((e,t,i)=>{const s=pp(i);s.value=Tp(e,n),r.content.push(s)})),t.forEach(((t,i,s)=>{const o=Mp(i);let u;if(lu(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);u=pp(s),u.value=((e,t)=>{if("function"!=typeof t.customMerge)return Ip;const n=t.customMerge(e,t);return"function"==typeof n?n:Ip})(i,n)(r,t,n)}else u=pp(s),u.value=Tp(t,n);r.remove(o),r.content.push(u)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Ip=(e,t,n)=>{var r,i,s;const o={...Rp,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Rp.isMergeableElement,o.arrayElementMerge=null!==(i=o.arrayElementMerge)&&void 0!==i?i:Rp.arrayElementMerge,o.objectElementMerge=null!==(s=o.objectElementMerge)&&void 0!==s?s:Rp.objectElementMerge;const u=fu(t);if(!(u===fu(e)))return Tp(t,o);const c=u&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>fp(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>fp(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};Ip.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Ho.ObjectElement:e.reduce(((e,n)=>Ip(e,n,t)),Np(e[0]))};class Fp extends Op{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-06",t="generic"){const n="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return $e(this.filterByFormat(e))}}const Cp=new Fp("application/schema;version=draft-06","application/schema+json;version=draft-06","application/schema+yaml;version=draft-06");let Vp=class extends Ho.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}};class $p extends Ho.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class Lp extends Ho.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}let Dp=class extends Ho.ObjectElement{constructor(e,t,n){super(e,t,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Jp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Vp),t.register("jSONReference",$p),t.register("media",Lp),t.register("linkDescription",Dp),t}},Bp=e=>{if(su(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},zp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bp};class qp{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ip(t.meta,e.meta)),bu(e)&&lp(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ip(t.attributes,e.attributes))}}class Gp extends qp{enter(e){return this.element=fp(e),ep}}const Up=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Kp=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Kp(n,[...t,n])},Wp=(e,t,n=[])=>{var r;const i=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Kp(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,s=Object.create(i),o=Kp(i);for(let t of e){let e=Kp(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Up(s,r,["constructor",...n]),o.push(r))}}return s.constructor=t,s},Hp=e=>e.filter(((t,n)=>e.indexOf(t)==n)),Yp=new WeakMap,Xp=e=>Yp.get(e),Zp=(e,t)=>{var n,r;const i=Hp([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let o of i)s[o]=Hp([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return s},Qp=(e,t)=>{var n,r,i,s;return{property:Zp(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:Zp(null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{},null!==(s=null==t?void 0:t.method)&&void 0!==s?s:{})}},ed=new Map,td=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const i=[...Kp(e.prototype).map((e=>e.constructor)),...null!==(t=Xp(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of i)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>ed.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>((e,t)=>{var n,r,i,s,o,u;return{class:Hp([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:Qp(null!==(i=null==e?void 0:e.static)&&void 0!==i?i:{},null!==(s=null==t?void 0:t.static)&&void 0!==s?s:{}),instance:Qp(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(u=null==t?void 0:t.instance)&&void 0!==u?u:{})}})(e,t)))};function nd(...e){var t,n,r;const i=e.map((e=>e.prototype));function s(...t){for(const n of e)Up(this,new n(...t))}s.prototype=Wp(i,s),Object.setPrototypeOf(s,Wp(e,null,["prototype"]));let o=s;{const i=td(...e);for(let e of null!==(t=null==i?void 0:i.class)&&void 0!==t?t:[]){const t=e(o);t&&(o=t)}rd(null!==(n=null==i?void 0:i.static)&&void 0!==n?n:{},o),rd(null!==(r=null==i?void 0:i.instance)&&void 0!==r?r:{},o.prototype)}var u,c;return u=o,c=e,Yp.set(u,c),o}const rd=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};class id extends qp{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return at(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ut(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ct(Ot,["visitors",...e],this.specObj)?ut(["visitors",...e],this.specObj):ut(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof Gp&&(null==r?void 0:r.constructor)===Gp?fp(t):(gp(t,r,n),r.element)}}class sd extends id{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,i)=>{if(ou(r)&&n.includes(Mp(r))&&!this.ignoredFields.includes(Mp(r))){const n=this.toRefractedElement([...t,"fixedFields",Mp(r)],e),s=new Ho.MemberElement(fp(r),n);this.copyMetaAndAttributes(i,s),s.classes.push("fixed-field"),this.element.content.push(s)}else this.ignoredFields.includes(Mp(r))||this.element.content.push(fp(i))})),this.copyMetaAndAttributes(e,this.element),ep}}class od{parent;constructor({parent:e}){this.parent=e}}const ud=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vp||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),cd=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $p||e(r)&&t("JSONReference",r)&&n("object",r))),ad=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Lp||e(r)&&t("media",r)&&n("object",r))),ld=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Dp||e(r)&&t("linkDescription",r)&&n("object",r))),fd=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:cd,isJSONSchemaElement:ud,isLinkDescriptionElement:ld,isMediaElement:ad},Symbol.toStringTag,{value:"Module"}));let hd=class extends(nd(sd,od,Gp)){constructor(e){super(e),this.element=new Vp,this.specPath=fe(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,sd.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(yt(this.parent)&&!ou(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(ud(this.parent)&&!ou(e.get("$schema"))){const e=Fe(Mp(this.parent.meta.get("inheritedDialectIdentifier")),Mp(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const n=void 0!==this.parent?fp(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Ho.ArrayElement,r=Mp(e.get(t));Mt(r)&&n.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const md=e=>lu(e)&&e.hasKey("$ref");let pd=class extends(nd(id,od,Gp)){ObjectElement(e){const t=md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ep}ArrayElement(e){return this.element=new Ho.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),ep}};class dd extends id{specPath;ignoredFields;fieldPatternPredicate=t;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Mp(t))&&this.fieldPatternPredicate(Mp(t))){const r=this.specPath(e),i=this.toRefractedElement(r,e),s=new Ho.MemberElement(fp(t),i);this.copyMetaAndAttributes(n,s),s.classes.push("patterned-field"),this.element.content.push(s)}else this.ignoredFields.includes(Mp(t))||this.element.content.push(fp(n))})),this.copyMetaAndAttributes(e,this.element),ep}}class yd extends dd{constructor(e){super(e),this.fieldPatternPredicate=Mt}}class vd extends(nd(yd,od,Gp)){constructor(e){super(e),this.element=new Ho.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=e=>md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class bd extends(nd(yd,od,Gp)){constructor(e){super(e),this.element=new Ho.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class gd extends(nd(yd,od,Gp)){constructor(e){super(e),this.element=new Ho.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Ed extends(nd(id,od,Gp)){constructor(e){super(e),this.element=new Ho.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),ep}}class jd extends(nd(id,od,Gp)){constructor(e){super(e),this.element=new Ho.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),ep}}class Od extends(nd(id,od,Gp)){constructor(e){super(e),this.element=new Ho.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),ep}}class Sd extends(nd(yd,od,Gp)){constructor(e){super(e),this.element=new Ho.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=e=>md(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class wd extends(nd(id,od,Gp)){constructor(e){super(e),this.element=new Ho.ArrayElement,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),ep}}class Ad extends(nd(sd,Gp)){constructor(e){super(e),this.element=new $p,this.specPath=fe(["document","objects","JSONReference"])}ObjectElement(e){const t=sd.prototype.ObjectElement.call(this,e);return ou(this.element.$ref)&&this.element.classes.push("reference-element"),t}}class kd extends id{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>He(e,fe(t),dt))),n=Jt(t)(e);return this.element=this.toRefractedElement(n,e),ep}}class xd extends kd{constructor(e){super(e),this.alternator=[{predicate:md,specPath:["document","objects","JSONReference"]},{predicate:n,specPath:["document","objects","JSONSchema"]}]}}class Pd extends(nd(sd,Gp)){constructor(e){super(e),this.element=new Lp,this.specPath=fe(["document","objects","Media"])}}let _d=class extends(nd(sd,Gp)){constructor(e){super(e),this.element=new Dp,this.specPath=fe(["document","objects","LinkDescription"])}};const Md={visitors:{value:Gp,JSONSchemaOrJSONReferenceVisitor:xd,document:{objects:{JSONSchema:{$visitor:hd,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:xd,items:pd,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:class extends Gp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}},properties:vd,additionalProperties:xd,patternProperties:bd,dependencies:gd,enum:class extends Gp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}},type:class extends Gp{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}},allOf:Ed,anyOf:jd,oneOf:Od,not:xd,definitions:Sd,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:wd,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Ad,fixedFields:{$ref:class extends Gp{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}}},Media:{$visitor:Pd,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:_d,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:xd,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:xd}}}}}},Nd=()=>{const e=Su(Jp);return{predicates:{...fd,isStringElement:ou},namespace:e}},Td=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Md}={})=>{const i=Ho.refract(e),s=ap(r),o=new(ut(t,s))({specObj:s});return gp(i,o),jp(o.element,n,{toolboxCreator:Nd,visitorOptions:{keyMap:zp,nodeTypeGetter:Bp}})})(t,{specPath:e,...n});Vp.refract=Td(["visitors","document","objects","JSONSchema","$visitor"]),$p.refract=Td(["visitors","document","objects","JSONReference","$visitor"]),Lp.refract=Td(["visitors","document","objects","Media","$visitor"]),Dp.refract=Td(["visitors","document","objects","LinkDescription","$visitor"]);class Rd extends Vp{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft6"}get idProp(){throw new Xm("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Xm("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}class Id extends Dp{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Xm("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Xm("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Xm("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Xm("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Xm("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Xm("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}}const Fd={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Rd),t.register("jSONReference",$p),t.register("media",Lp),t.register("linkDescription",Id),t}};var Cd=Object.defineProperty,Vd=Object.getOwnPropertySymbols,$d=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable,Dd=(e,t,n)=>t in e?Cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Jd=((e,t)=>{for(var n in t||(t={}))$d.call(t,n)&&Dd(e,n,t[n]);if(Vd)for(var n of Vd(t))Ld.call(t,n)&&Dd(e,n,t[n]);return e})({JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},bp),Bd={JSONSchemaDraft6Element:{additionalItems:(...e)=>new Rd(...e),items:(...e)=>new Rd(...e),contains:(...e)=>new Rd(...e),required(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new Ho.ObjectElement(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Rd(...e),patternProperties(...e){const t=new Ho.ObjectElement(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new Ho.ObjectElement(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new Rd(...e),enum(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Rd(...e),definitions(...e){const t=new Ho.ObjectElement(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new Ho.ArrayElement(...e);return t.classes.push("json-schema-links"),t},media:(...e)=>new Lp(...e)},LinkDescriptionElement:{hrefSchema:(...e)=>new Rd(...e),targetSchema:(...e)=>new Rd(...e),submissionSchema:(...e)=>new Rd(...e)},"json-schema-properties":{"[key: *]":function(...e){return new Rd(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new Rd(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new Rd(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Rd(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Rd(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Rd(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new Rd(...e)}},"json-schema-links":{"<*>":function(...e){return new Id(...e)}}},zd=(e,t)=>{const n=Bp(e),r=Bd[n]||Bd[Mp(e.classes.first)];return void 0===r?void 0:Object.prototype.hasOwnProperty.call(r,"[key: *]")?r["[key: *]"]:r[t]};class qd extends hd{constructor(e){super(e),this.element=new Rd}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}}class Gd extends pd{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ep}}class Ud extends _d{constructor(e){super(e),this.element=new Id}}const Kd=Re(je(["visitors","document","objects","JSONSchema","$visitor"],qd),Ve(["visitors","document","objects","JSONSchema","fixedFields","id"]),je(["visitors","document","objects","JSONSchema","fixedFields","$id"],Md.visitors.value),je(["visitors","document","objects","JSONSchema","fixedFields","contains"],Md.visitors.JSONSchemaOrJSONReferenceVisitor),je(["visitors","document","objects","JSONSchema","fixedFields","items"],Gd),je(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Md.visitors.JSONSchemaOrJSONReferenceVisitor),je(["visitors","document","objects","JSONSchema","fixedFields","const"],Md.visitors.value),je(["visitors","document","objects","JSONSchema","fixedFields","examples"],class extends Gp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}}),je(["visitors","document","objects","LinkDescription","$visitor"],Ud),je(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Md.visitors.JSONSchemaOrJSONReferenceVisitor),Ve(["visitors","document","objects","LinkDescription","fixedFields","schema"]),je(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Md.visitors.JSONSchemaOrJSONReferenceVisitor),Ve(["visitors","document","objects","LinkDescription","fixedFields","method"]),Ve(["visitors","document","objects","LinkDescription","fixedFields","encType"]),je(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Md.visitors.value))(Md),Wd=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Rd||e(r)&&t("JSONSchemaDraft6",r)&&n("object",r))),Hd=iu((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Id||e(r)&&t("linkDescription",r)&&n("object",r))),Yd=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:cd,isJSONSchemaElement:Wd,isLinkDescriptionElement:Hd,isMediaElement:ad},Symbol.toStringTag,{value:"Module"}));var Xd=Object.defineProperty,Zd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,ey=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ny=Object.prototype.propertyIsEnumerable,ry=(e,t,n)=>t in e?Xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const iy=()=>{const e=Su(Fd),t=(n=((e,t)=>{for(var n in t||(t={}))ty.call(t,n)&&ry(e,n,t[n]);if(ey)for(var n of ey(t))ny.call(t,n)&&ry(e,n,t[n]);return e})({},Yd),Zd(n,Qd({isStringElement:ou})));var n;return{predicates:t,namespace:e}};var sy=Object.defineProperty,oy=Object.getOwnPropertySymbols,uy=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable,ay=(e,t,n)=>t in e?sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ly=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Kd}={})=>{const i=Ho.refract(e),s=ap(r),o=new(ut(t,s))({specObj:s});return gp(i,o),jp(o.element,n,{toolboxCreator:iy,visitorOptions:{keyMap:Jd,nodeTypeGetter:Bp}})};e.AlternatingVisitor=kd,e.FallbackVisitor=Gp,e.FixedFieldsVisitor=sd,e.ItemsVisitor=Gd,e.JSONReferenceElement=$p,e.JSONSchemaDraft6MediaTypes=Fp,e.JSONSchemaElement=Rd,e.JSONSchemaVisitor=qd,e.LinkDescriptionElement=Id,e.LinkDescriptionVisitor=Ud,e.MapVisitor=yd,e.MediaElement=Lp,e.ParentSchemaAwareVisitor=od,e.PatternedFieldsVisitor=dd,e.SpecificationVisitor=id,e.Visitor=qp,e.createRefractor=e=>(t,n={})=>ly(t,((e,t)=>{for(var n in t||(t={}))uy.call(t,n)&&ay(e,n,t[n]);if(oy)for(var n of oy(t))cy.call(t,n)&&ay(e,n,t[n]);return e})({specPath:e},n)),e.default=Fd,e.getNodeType=Bp,e.isArrayElement=fu,e.isBooleanElement=au,e.isElement=su,e.isJSONReferenceElement=cd,e.isJSONReferenceLikeElement=md,e.isJSONSchemaElement=Wd,e.isLinkDescriptionElement=Hd,e.isLinkElement=mu,e.isMediaElement=ad,e.isMemberElement=hu,e.isNullElement=cu,e.isNumberElement=uu,e.isObjectElement=lu,e.isRefElement=pu,e.isStringElement=ou,e.keyMap=Jd,e.mediaTypes=Cp,e.refract=ly,e.refractorPluginReplaceEmptyElement=()=>()=>({visitor:{StringElement(e,t,n,r,i){if(!(e=>ou(e)&&gu(["yaml-e-node","yaml-e-scalar"],e))(e))return;const s=[...i,n].filter(su),o=s[s.length-1];let u,c;if(fu(o)?(c=e,u=zd(o,"<*>")):hu(o)&&(c=s[s.length-2],u=zd(c,Mp(o.key))),"function"!=typeof u)return;const a=u.call({context:c},void 0,fp(e.meta),fp(e.attributes));return lp(a,e)}}}),e.specificationObj=Kd,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-ns-json-schema-draft-6",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "JSON Schema Draft 6 namespace for ApiDOM.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "types": "./types/apidom-ns-json-schema-draft-6.d.ts",
22
22
  "scripts": {
23
- "build": "npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser",
23
+ "build": "npm run clean && run-p --max-parallel ${CPU_CORES:-6} typescript:declaration build:es build:cjs build:umd:browser",
24
24
  "build:es": "cross-env BABEL_ENV=es babel src --out-dir src --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'",
25
25
  "build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir src --extensions '.ts' --out-file-extension '.cjs' --root-mode 'upward'",
26
- "build:umd:browser": "cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress",
26
+ "build:umd:browser": "vite build",
27
27
  "lint": "eslint ./",
28
28
  "lint:fix": "eslint ./ --fix",
29
29
  "clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' ./dist ./types",
@@ -42,9 +42,9 @@
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
44
  "@babel/runtime-corejs3": "^7.26.10",
45
- "@swagger-api/apidom-core": "^1.5.0",
46
- "@swagger-api/apidom-error": "^1.5.0",
47
- "@swagger-api/apidom-ns-json-schema-draft-4": "^1.5.0",
45
+ "@swagger-api/apidom-core": "^1.6.0",
46
+ "@swagger-api/apidom-error": "^1.6.0",
47
+ "@swagger-api/apidom-ns-json-schema-draft-4": "^1.6.0",
48
48
  "@types/ramda": "~0.30.0",
49
49
  "ramda": "~0.30.0",
50
50
  "ramda-adjunct": "^5.0.0",
@@ -60,5 +60,5 @@
60
60
  "README.md",
61
61
  "CHANGELOG.md"
62
62
  ],
63
- "gitHead": "4bfa97c2350c1c3daa6a8a5ed002786f066b7729"
63
+ "gitHead": "bcac0ef25e9689b04d97e49151b0854be9fc6613"
64
64
  }