@swagger-api/apidom-ns-json-schema-draft-7 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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).apidomNsJsonSchemaDraft7={})}(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,c){return t.apply(this,arguments)};case 8:return function(e,n,r,i,s,o,c,u){return t.apply(this,arguments)};case 9:return function(e,n,r,i,s,o,c,u,a){return t.apply(this,arguments)};case 10:return function(e,n,r,i,s,o,c,u,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 c(e,t,n){return function(){for(var i=[],s=0,u=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:u-=1,a+=1}return!l&&u<=0?n.apply(this,i):o(Math.max(0,u),c(e,i,n))}}var u=s((function(e,t){return 1===e?i(t):o(e,c(e,[],t))}));function a(e){return function t(n,o,c){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(c)?t:r(n)&&r(o)?s((function(t,n){return e(t,n,c)})):r(n)&&r(c)?s((function(t,n){return e(t,o,n)})):r(o)&&r(c)?s((function(t,r){return e(n,t,r)})):r(n)?i((function(t){return e(t,o,c)})):r(o)?i((function(t){return e(n,t,c)})):r(c)?i((function(t){return e(n,o,t)})):e(n,o,c)}}}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 S=Object.prototype.toString,O=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.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&&O(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 c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&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 u=P(e);if(u.length!==P(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(c=u.length-1;c>=0;){var f=u[c];if(!E(f,t)||!N(t[f],e[f],a,l))return!1;c-=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 F(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function I(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 $=function(e){return(e<10?"0":"")+e},D="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+$(e.getUTCMonth()+1)+"-"+$(e.getUTCDate())+"T"+$(e.getUTCHours())+":"+$(e.getUTCMinutes())+":"+$(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function C(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 V=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 V(e,t)}}var B=s(f(["fantasy-land/filter","filter"],J,(function(e,t){return L(t)?C((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)}))),q=s((function(e,t){return B((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function z(e,t){var n=function(n){var r=t.concat([e]);return R(n,r)?"<Circular>":z(n,r)},r=function(e,t){return F((function(t){return I(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+F(n,e).join(", ")+"))";case"[object Array]":return"["+F(n,e).concat(r(e,q((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):I(D(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())+")":I(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 z(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}(),H=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 u(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return C((function(n,r){return n[r]=e(t[r]),n}),{},P(t));default:return F(e,t)}})));const W=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 W(e)?X(e,t):t[e]})),Q=s((function(e,t){return H(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 ce=ne(re,oe,se),ue=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 ce("function"==typeof e?new ue(e):e,t,n)})),le=i((function(e){return u(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 u(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(C,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,H(n,t))}),[],e)})),be=s((function(e,t){return e.apply(this,t)})),ge=i((function(e){return u(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]:W(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,s)}return function(e,t,n){if(W(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)})),Se=a((function(e,t,n){return je([e],t,n)}));function Oe(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=u(e,t);return u(e,(function(){return C(ve,H(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Ae=i((function(e){return we(e.length,e)})),ke=s((function(e,t){return Oe(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 Fe=i((function(e){return X(0,e)})),Ie=s((function(e,t){return null==t||t!=t?e:t})),$e=a((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r}));var De=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(W(e)&&l(t))return $e(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(W(e)&&l(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}(r,n):Se(r,e(i,n[r]),n)}})),Ce=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 Ve(e){return function(t){return new Le(e,t)}}var Je=s(f(["dropWhile"],Ve,(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})),qe=s((function(e,t){return Oe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ae(Be)(e,t)}));var ze=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)?{}:O(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0})),Ge=i((function(e){return u(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)})),He=function(e,t){switch(arguments.length){case 0:return He;case 1:return function t(n){return 0===arguments.length?t:j(e,n)};default:return j(e,t)}},We=a((function(e,t,n){return u(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 u(e+1,(function(){var n=arguments[e];if(null!=n&&Oe(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,ze(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=W(i)?X(i,n):n[i]}return n}var rt=s((function(e,t){return C((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)})),ct=s(nt),ut=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 Ie(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=u(1,Re(_,He("GeneratorFunction"))),jt=u(1,Re(_,He("AsyncFunction"))),St=me([Re(_,He("Function")),Et,jt]),Ot=u(1,St(Array.isArray)?Array.isArray:Re(_,He("Array"))),wt=ke(Ot,Qe),At=ke(Ot,et),kt=u(1,Re(_,He("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(u(1,ke(bt,qe(Pt,St)))),Mt=le([kt,_t,et]),Nt=Pe(St),Tt=u(1,ke(bt,Pt)),Rt=Re(_,He("Object")),Ft=Re(G,T(G(Object))),It=ut(ke(St,Ft),["constructor"]),$t=u(1,(function(e){if(!Tt(e)||!Rt(e))return!1;var t=Object.getPrototypeOf(e);return!!vt(t)||It(t)}));function Dt(e){return function(e){if(Array.isArray(e))return Ct(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 Ct(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)?Ct(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 Ct(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}))),Fe,Z("length")),Vt=ge((function(e,t,n){var r=n.apply(void 0,Dt(e));return gt(r)?ht(r):t})),Jt=We(At,(function(e){var t=Lt(e);return u(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ae(Vt(n),void 0,e)}))}),dt),Bt=Ge(Ye),qt=u(3,(function(e,t,n){var r=ct(e,n),i=ct(Xe(e),n);if(!Nt(r)&&!wt(e)){var s=ie(r,i);return be(s,t)}})),zt=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,Ht,Wt,Yt,Xt,Zt,Qt,en,tn,nn,rn,sn,on,cn,un,an,ln,fn,hn,mn,pn,dn,yn,vn,bn,gn,En,jn,Sn,On,wn,An,kn,xn,Pn,_n,Mn,Nn,Tn,Rn,Fn,In,$n,Dn,Cn,Ln,Vn,Jn,Bn,qn,zn,Gn,Un,Kn,Hn,Wn,Yn,Xn,Zn,Qn,er,tr,nr,rr,ir,sr,or,cr,ur,ar,lr,fr,hr,mr,pr,dr,yr,vr,br,gr,Er,jr,Sr,Or,wr,Ar,kr,xr,Pr,_r,Mr,Nr,Tr,Rr,Fr,Ir,$r,Dr,Cr,Lr,Vr,Jr,Br,qr,zr,Gr,Ur,Kr,Hr,Wr,Yr,Xr,Zr,Qr,ei,ti,ni,ri,ii,si,oi,ci,ui,ai,li,fi,hi,mi,pi,di,yi,vi,bi,gi,Ei,ji,Si,Oi,wi={};function Ai(){if(Yt)return Wt;Yt=1;var e="object"==typeof Gt&&Gt&&Gt.Object===Object&&Gt;return Wt=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(cn)return on;cn=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 c=r.call(e);return o&&(t?e[i]=s:delete e[i]),c}}(),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 un;an=1;var e=Array.isArray;return un=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 Fi(){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 Ii(){if(Dn)return $n;Dn=1;var e=On?Sn:(On=1,Sn=function(){this.__data__=[],this.size=0}),t=function(){if(_n)return Pn;_n=1;var e=Fi(),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=Fi();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=Fi();return Tn=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(In)return Fn;In=1;var e=Fi();return Fn=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,$n=s}function $i(){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 Di(){if(Xn)return Yn;Xn=1;var e=function(){if(Wn)return Hn;Wn=1;var e=ki()["__core-js_shared__"];return Hn=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 Ci(){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=$i(),t=Di(),n=Ni(),r=Ci(),i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,c=s.toString,u=o.hasOwnProperty,a=RegExp("^"+c.call(u).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 Vi(){if(cr)return or;cr=1;var e=Li()(ki(),"Map");return or=e}function Ji(){if(ar)return ur;ar=1;var e=Li()(Object,"create");return ur=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 qi(){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 zi(){if(Dr)return $r;Dr=1;var e=function(){if(Or)return Sr;Or=1;var e=Bi(),t=Ii(),n=Vi();return Sr=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=qi();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=qi();return Mr=function(t){return e(this,t).get(t)}}(),r=function(){if(Rr)return Tr;Rr=1;var e=qi();return Tr=function(t){return e(this,t).has(t)}}(),i=function(){if(Ir)return Fr;Ir=1;var e=qi();return Fr=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,$r=s}function Gi(){if(Jr)return Vr;Jr=1;var e=Ii(),t=function(){if(Ln)return Cn;Ln=1;var e=Ii();return Cn=function(){this.__data__=new e,this.size=0}}(),n=Jn?Vn:(Jn=1,Vn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=qn?Bn:(qn=1,Bn=function(e){return this.__data__.get(e)}),i=Gn?zn:(Gn=1,zn=function(e){return this.__data__.has(e)}),s=function(){if(Lr)return Cr;Lr=1;var e=Ii(),t=Vi(),n=zi();return Cr=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,Vr=o}function Ui(){if(Kr)return Ur;Kr=1;var e=zi(),t=qr?Br:(qr=1,Br=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Gr?zr:(Gr=1,zr=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=Wr?Hr:(Wr=1,Hr=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,c,u){var a=1&s,l=r.length,f=i.length;if(l!=f&&!(a&&f>l))return!1;var h=u.get(r),m=u.get(i);if(h&&m)return h==i&&m==r;var p=-1,d=!0,y=2&s?new e:void 0;for(u.set(r,i),u.set(i,r);++p<l;){var v=r[p],b=i[p];if(o)var g=a?o(b,v,p,i,r,u):o(v,b,p,r,i,u);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!t(i,(function(e,t){if(!n(y,t)&&(v===e||c(v,e,s,o,u)))return y.push(t)}))){d=!1;break}}else if(v!==b&&!c(v,b,s,o,u)){d=!1;break}}return u.delete(r),u.delete(i),d}}function Hi(){if(ci)return oi;ci=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,c=o?o.valueOf:void 0;return oi=function(e,o,u,a,l,f,h){switch(u){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(c)return c.call(e)==c.call(o)}return!1}}function Wi(){if(fi)return li;fi=1;var e=ai?ui:(ai=1,ui=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(Oi)return Si;Oi=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 Si=s}var Zi,Qi,es,ts,ns,rs,is,ss,os,cs,us,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,c=(o?o.isBuffer:void 0)||r;e.exports=c}(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,Ss,Os,ws,As,ks,xs,Ps,_s,Ms,Ns,Ts,Rs,Fs,Is,$s,Ds,Cs,Ls,Vs,Js,Bs,qs,zs,Gs,Us,Ks,Hs,Ws,Ys,Xs,Zs,Qs,eo,to,no,ro,io,so,oo,co,uo,ao,lo,fo,ho,mo,po,yo,vo,bo,go,Eo,jo,So,Oo,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=us?cs:(us=1,cs=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(c,u){var a=n(c),l=!a&&t(c),f=!a&&!l&&r(c),h=!a&&!l&&!f&&s(c),m=a||l||f||h,p=m?e(c.length,String):[],d=p.length;for(var y in c)!u&&!o.call(c,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 Fo(){if(Ss)return js;Ss=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 Io(){if(ws)return Os;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=Fo(),n=Object.prototype.hasOwnProperty;return Os=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 $o(){if(Ps)return xs;Ps=1;var e=Ro(),t=Io(),n=function(){if(ks)return As;ks=1;var e=$i(),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 Do(){if(Ts)return Ns;Ts=1;var e=function(){if(Ms)return _s;Ms=1;var e=Wi(),t=Yi(),n=$o();return _s=function(r){return e(r,n,t)}}(),t=Object.prototype.hasOwnProperty;return Ns=function(n,r,i,s,o,c){var u=1&i,a=e(n),l=a.length;if(l!=e(r).length&&!u)return!1;for(var f=l;f--;){var h=a[f];if(!(u?h in r:t.call(r,h)))return!1}var m=c.get(n),p=c.get(r);if(m&&p)return m==r&&p==n;var d=!0;c.set(n,r),c.set(r,n);for(var y=u;++f<l;){var v=n[h=a[f]],b=r[h];if(s)var g=u?s(b,v,h,r,n,c):s(v,b,h,n,r,c);if(!(void 0===g?v===b||o(v,b,i,s,c):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 c.delete(n),c.delete(r),d}}function Co(){if(Bs)return Js;Bs=1;var e=function(){if(Fs)return Rs;Fs=1;var e=Li()(ki(),"DataView");return Rs=e}(),t=Vi(),n=function(){if($s)return Is;$s=1;var e=Li()(ki(),"Promise");return Is=e}(),r=function(){if(Cs)return Ds;Cs=1;var e=Li()(ki(),"Set");return Ds=e}(),i=function(){if(Vs)return Ls;Vs=1;var e=Li()(ki(),"WeakMap");return Ls=e}(),s=Pi(),o=Ci(),c="[object Map]",u="[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)!=c||n&&v(n.resolve())!=u||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 c;case p:return u;case d:return a;case y:return l}return t}),Js=v}function Lo(){if(Us)return Gs;Us=1;var e=function(){if(zs)return qs;zs=1;var e=Gi(),t=Ki(),n=Hi(),r=Do(),i=Co(),s=_i(),o=ls(),c=To(),u="[object Arguments]",a="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return qs=function(h,m,p,d,y,v){var b=s(h),g=s(m),E=b?a:i(h),j=g?a:i(m),S=(E=E==u?l:E)==l,O=(j=j==u?l:j)==l,w=E==j;if(w&&o(h)){if(!o(m))return!1;b=!0,S=!1}if(w&&!S)return v||(v=new e),b||c(h)?t(h,m,p,d,y,v):n(h,m,E,p,d,y,v);if(!(1&p)){var A=S&&f.call(h,"__wrapped__"),k=O&&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,c){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,s,o,n,c))},Gs}function Vo(){if(Ys)return Ws;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 Ws=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 qo(){if(no)return to;no=1;const e=function(){if(Hs)return Ks;Hs=1;var e=Lo();return Ks=function(t,n){return e(t,n)}}(),t=Vo(),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 zo(){if(ho)return fo;ho=1;const e=Jo(),t=qo(),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=Vo(),t=qo();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=qo(),t=function(){if(io)return ro;io=1;const e=qo();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=qo();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(uo)return co;uo=1;const e=qo();return co=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=qo();return ao=class extends e{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}}(),s=zo(),o=Go(),c=function(){if(go)return bo;go=1;const e=Jo(),t=Ni(),n=zo(),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)))}}}(),u=function(){if(jo)return Eo;jo=1;const e=qo();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(Oo)return So;Oo=1;const e=qo();return So=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=Vo();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 c(o)}return o}return e.prototype.ObjectElement=c,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:c,LinkElement:u,RefElement:a,refract:m,ArraySlice:l,ObjectSlice:f,KeyValuePair:h}}function Ho(){if(xo)return ko;xo=1;const e=Ht?Kt:(Ht=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 c{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=c,ko=c}var Wo=function(){if(Mo)return wi;Mo=1;const e=Ho(),t=Ko();return wi.Namespace=e,wi.namespace=function(t){return new e(t)},wi.KeyValuePair=Vo(),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 Wo.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 Wo.StringElement{constructor(e,t,n){super(e,t,n),this.element="comment"}}class Zo extends Wo.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],ec=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,tc=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),nc=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Wo.ArrayElement)&&t.classes.includes(e),rc=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ic=e=>e({hasMethod:Qo,hasBasicElementProps:ec,primitiveEq:tc,isElementType:rc,hasClass:nc}),sc=ic((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Wo.Element||e(n)&&t(void 0,n))),oc=ic((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Wo.StringElement||e(n)&&t("string",n))),cc=ic((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Wo.NumberElement||e(n)&&t("number",n))),uc=ic((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Wo.NullElement||e(n)&&t("null",n))),ac=ic((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Wo.BooleanElement||e(n)&&t("boolean",n))),lc=ic((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof Wo.ObjectElement||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),fc=ic((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof Wo.ArrayElement&&!(r instanceof Wo.ObjectElement)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),hc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Wo.MemberElement||e(r)&&t("member",r)&&n(void 0,r))),mc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Wo.LinkElement||e(r)&&t("link",r)&&n(void 0,r))),pc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Wo.RefElement||e(r)&&t("ref",r)&&n(void 0,r))),dc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Yo||e(r)&&t("annotation",r)&&n("array",r))),yc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xo||e(r)&&t("comment",r)&&n("string",r))),vc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zo||e(r)&&t("parseResult",r)&&n("array",r))),bc=e=>!!sc(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)),gc=(e,t)=>0===e.length||v(Bt(t.classes.toValue()),e),Ec=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:bc,includesClasses:gc,includesSymbols:(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!fc(n)&&v(Bt(n.toValue()),e)},isAnnotationElement:dc,isArrayElement:fc,isBooleanElement:ac,isCommentElement:yc,isElement:sc,isLinkElement:mc,isMemberElement:hc,isNullElement:uc,isNumberElement:cc,isObjectElement:lc,isParseResultElement:vc,isPrimitiveElement:e=>rc("object",e)||rc("array",e)||rc("boolean",e)||rc("number",e)||rc("string",e)||rc("null",e)||rc("member",e),isRefElement:pc,isStringElement:oc},Symbol.toStringTag,{value:"Module"}));class jc extends Wo.Namespace{constructor(){super(),this.register("annotation",Yo),this.register("comment",Xo),this.register("parseResult",Zo)}}const Sc=new jc,Oc=e=>{const t=new jc;return $t(e)&&t.use(e),t},wc=()=>({predicates:{...Ec},namespace:Sc});var Ac,kc,xc,Pc,_c,Mc,Nc,Tc,Rc,Fc,Ic,$c,Dc,Cc,Lc,Vc,Jc={},Bc={},qc={};function zc(){if(kc)return Ac;kc=1;var e=function(e){return e&&e.Math===Math&&e};return Ac=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Gt&&Gt)||e("object"==typeof Ac&&Ac)||function(){return this}()||Function("return this")()}function Gc(){return Pc?xc:(Pc=1,xc=function(e){try{return!!e()}catch(e){return!0}})}function Uc(){return Mc?_c:(Mc=1,_c=!Gc()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function Kc(){if(Tc)return Nc;Tc=1;var e=Uc(),t=Function.prototype,n=t.apply,r=t.call;return Nc="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Nc}function Hc(){if(Fc)return Rc;Fc=1;var e=Uc(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Rc=e?r:function(e){return function(){return n.apply(e,arguments)}},Rc}function Wc(){if($c)return Ic;$c=1;var e=Hc(),t=e({}.toString),n=e("".slice);return Ic=function(e){return n(t(e),8,-1)}}function Yc(){if(Cc)return Dc;Cc=1;var e=Wc(),t=Hc();return Dc=function(n){if("Function"===e(n))return t(n)}}function Xc(){if(Vc)return Lc;Vc=1;var e="object"==typeof document&&document.all;return Lc=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var Zc,Qc,eu,tu,nu={};function ru(){return Qc?Zc:(Qc=1,Zc=!Gc()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function iu(){if(tu)return eu;tu=1;var e=Uc(),t=Function.prototype.call;return eu=e?t.bind(t):function(){return t.apply(t,arguments)},eu}var su,ou,cu,uu,au,lu,fu,hu,mu,pu,du,yu,vu,bu,gu,Eu,ju,Su,Ou,wu,Au,ku,xu,Pu,_u,Mu,Nu,Tu,Ru,Fu,Iu,$u,Du,Cu,Lu,Vu,Ju,Bu={};function qu(){if(su)return Bu;su=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Bu.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Bu}function zu(){return cu?ou:(cu=1,ou=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Gu(){if(au)return uu;au=1;var e=Hc(),t=Gc(),n=Wc(),r=Object,i=e("".split);return uu=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function Uu(){return fu?lu:(fu=1,lu=function(e){return null==e})}function Ku(){if(mu)return hu;mu=1;var e=Uu(),t=TypeError;return hu=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function Hu(){if(du)return pu;du=1;var e=Gu(),t=Ku();return pu=function(n){return e(t(n))}}function Wu(){if(vu)return yu;vu=1;var e=Xc();return yu=function(t){return"object"==typeof t?null!==t:e(t)}}function Yu(){return gu?bu:(gu=1,bu={})}function Xu(){if(ju)return Eu;ju=1;var e=Yu(),t=zc(),n=Xc(),r=function(e){return n(e)?e:void 0};return Eu=function(n,i){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][i]||t[n]&&t[n][i]},Eu}function Zu(){return Ou?Su:(Ou=1,Su=Hc()({}.isPrototypeOf))}function Qu(){if(Au)return wu;Au=1;var e=zc().navigator,t=e&&e.userAgent;return wu=t?String(t):""}function ea(){if(xu)return ku;xu=1;var e,t,n=zc(),r=Qu(),i=n.process,s=n.Deno,o=i&&i.versions||s&&s.version,c=o&&o.v8;return c&&(t=(e=c.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]),ku=t}function ta(){if(_u)return Pu;_u=1;var e=ea(),t=Gc(),n=zc().String;return Pu=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function na(){return Nu?Mu:(Nu=1,Mu=ta()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function ra(){if(Ru)return Tu;Ru=1;var e=Xu(),t=Xc(),n=Zu(),r=Object;return Tu=na()?function(e){return"symbol"==typeof e}:function(i){var s=e("Symbol");return t(s)&&n(s.prototype,r(i))}}function ia(){if(Iu)return Fu;Iu=1;var e=String;return Fu=function(t){try{return e(t)}catch(e){return"Object"}}}function sa(){if(Du)return $u;Du=1;var e=Xc(),t=ia(),n=TypeError;return $u=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function oa(){if(Lu)return Cu;Lu=1;var e=sa(),t=Uu();return Cu=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function ca(){if(Ju)return Vu;Ju=1;var e=iu(),t=Xc(),n=Wu(),r=TypeError;return Vu=function(i,s){var o,c;if("string"===s&&t(o=i.toString)&&!n(c=e(o,i)))return c;if(t(o=i.valueOf)&&!n(c=e(o,i)))return c;if("string"!==s&&t(o=i.toString)&&!n(c=e(o,i)))return c;throw new r("Can't convert object to primitive value")}}var ua,aa,la,fa,ha,ma,pa,da,ya,va,ba,ga,Ea,ja,Sa,Oa,wa,Aa,ka,xa,Pa,_a,Ma,Na,Ta,Ra,Fa,Ia,$a={exports:{}};function Da(){return aa?ua:(aa=1,ua=!0)}function Ca(){if(fa)return la;fa=1;var e=zc(),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 $a.exports;ha=1;var e=Da(),t=zc(),n=Ca(),r="__core-js_shared__",i=$a.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"}),$a.exports}function Va(){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=Ku(),t=Object;return da=function(n){return t(e(n))}}function Ba(){if(ba)return va;ba=1;var e=Hc(),t=Ja(),n=e({}.hasOwnProperty);return va=Object.hasOwn||function(e,r){return n(t(e),r)}}function qa(){if(Ea)return ga;Ea=1;var e=Hc(),t=0,n=Math.random(),r=e(1..toString);return ga=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function za(){if(Sa)return ja;Sa=1;var e=zc(),t=Va(),n=Ba(),r=qa(),i=ta(),s=na(),o=e.Symbol,c=t("wks"),u=s?o.for||o:o&&o.withoutSetter||r;return ja=function(e){return n(c,e)||(c[e]=i&&n(o,e)?o[e]:u("Symbol."+e)),c[e]}}function Ga(){if(wa)return Oa;wa=1;var e=iu(),t=Wu(),n=ra(),r=oa(),i=ca(),s=TypeError,o=za()("toPrimitive");return Oa=function(c,u){if(!t(c)||n(c))return c;var a,l=r(c,o);if(l){if(void 0===u&&(u="default"),a=e(l,c,u),!t(a)||n(a))return a;throw new s("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(c,u)}}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=zc(),t=Wu(),n=e.document,r=t(n)&&t(n.createElement);return xa=function(e){return r?n.createElement(e):{}}}function Ha(){if(Ma)return _a;Ma=1;var e=ru(),t=Gc(),n=Ka();return _a=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Wa(){if(Na)return nu;Na=1;var e=ru(),t=iu(),n=qu(),r=zu(),i=Hu(),s=Ua(),o=Ba(),c=Ha(),u=Object.getOwnPropertyDescriptor;return nu.f=e?u:function(e,a){if(e=i(e),a=s(a),c)try{return u(e,a)}catch(e){}if(o(e,a))return r(!t(n.f,e,a),e[a])},nu}function Ya(){if(Ra)return Ta;Ra=1;var e=Gc(),t=Xc(),n=/#|\.prototype\./,r=function(n,r){var u=s[i(n)];return u===c||u!==o&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=r.data={},o=r.NATIVE="N",c=r.POLYFILL="P";return Ta=r}function Xa(){if(Ia)return Fa;Ia=1;var e=Yc(),t=sa(),n=Uc(),r=e(e.bind);return Fa=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},Fa}var Za,Qa,el,tl,nl,rl,il,sl,ol,cl,ul,al,ll,fl,hl,ml,pl,dl,yl,vl,bl,gl,El,jl={};function Sl(){return Qa?Za:(Qa=1,Za=ru()&&Gc()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function Ol(){if(tl)return el;tl=1;var e=Wu(),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=ru(),t=Ha(),n=Sl(),r=Ol(),i=Ua(),s=TypeError,o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="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=c(e,t);s&&s[l]&&(e[t]=n.value,n={configurable:a in n?n[a]:s[a],enumerable:u in n?n[u]:s[u],writable:!1})}return o(e,t,n)}:o:function(e,n,c){if(r(e),n=i(n),r(c),t)try{return o(e,n,c)}catch(e){}if("get"in c||"set"in c)throw new s("Accessors not supported");return"value"in c&&(e[n]=c.value),e},jl}function Al(){if(il)return rl;il=1;var e=ru(),t=wl(),n=zu();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=zc(),t=Kc(),n=Yc(),r=Xc(),i=Wa().f,s=Ya(),o=Yu(),c=Xa(),u=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,S=t.global,O=t.stat,w=t.proto,A=S?e:O?e[j]:e[j]&&e[j].prototype,k=S?o:o[j]||u(o,j,{})[j],x=k.prototype;for(d in f)m=!(h=s(S?d:j+(O?".":"#")+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?c(y,e):t.wrap&&m?l(y):w&&r(y)?n(y):y,(t.sham||y&&y.sham||v&&v.sham)&&u(g,"sham",!0),u(k,d,g),w&&(a(o,p=j+"Prototype")||u(o,p,{}),u(o[p],d,y),t.real&&x&&(h||!x[d])&&u(x,d,y)))}}function xl(){if(ul)return cl;ul=1;var e=Va(),t=qa(),n=e("keys");return cl=function(e){return n[e]||(n[e]=t(e))}}function Pl(){return ll||(ll=1,al=!Gc()((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=Xc(),n=Ja(),r=xl(),i=Pl(),s=r("IE_PROTO"),o=Object,c=o.prototype;return fl=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,s))return i[s];var u=i.constructor;return t(u)&&i instanceof u?u.prototype:i instanceof o?c:null}}function Ml(){if(pl)return ml;pl=1;var e=Hc(),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=Wu();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=Wu(),n=Ku(),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 Fl,Il,$l,Dl,Cl,Ll,Vl,Jl,Bl,ql,zl,Gl,Ul,Kl,Hl,Wl,Yl,Xl,Zl,Ql={};function ef(){if(Il)return Fl;Il=1;var e=Math.ceil,t=Math.floor;return Fl=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function tf(){if(Dl)return $l;Dl=1;var e=ef();return $l=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function nf(){if(Ll)return Cl;Ll=1;var e=tf(),t=Math.max,n=Math.min;return Cl=function(r,i){var s=e(r);return s<0?t(s+i,0):n(s,i)}}function rf(){if(Jl)return Vl;Jl=1;var e=tf(),t=Math.min;return Vl=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function sf(){if(ql)return Bl;ql=1;var e=rf();return Bl=function(t){return e(t.length)}}function of(){if(Gl)return zl;Gl=1;var e=Hu(),t=nf(),n=sf(),r=function(r){return function(i,s,o){var c=e(i),u=n(c);if(0===u)return!r&&-1;var a,l=t(o,u);if(r&&s!=s){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((r||l in c)&&c[l]===s)return r||l||0;return!r&&-1}};return zl={includes:r(!0),indexOf:r(!1)}}function cf(){return Kl?Ul:(Kl=1,Ul={})}function uf(){if(Wl)return Hl;Wl=1;var e=Hc(),t=Ba(),n=Hu(),r=of().indexOf,i=cf(),s=e([].push);return Hl=function(e,o){var c,u=n(e),a=0,l=[];for(c in u)!t(i,c)&&t(u,c)&&s(l,c);for(;o.length>a;)t(u,c=o[a++])&&(~r(l,c)||s(l,c));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=uf(),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=Xu(),t=Hc(),n=lf(),r=vf(),i=Ol(),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=Wa(),r=wl();return pf=function(i,s,o){for(var c=t(s),u=r.f,a=n.f,l=0;l<c.length;l++){var f=c[l];e(i,f)||o&&e(o,f)||u(i,f,a(s,f))}},pf}var Ef,jf,Sf,Of,wf,Af,kf,xf,Pf,_f,Mf,Nf,Tf,Rf,Ff,If,$f,Df,Cf,Lf,Vf,Jf,Bf,qf,zf,Gf,Uf,Kf,Hf,Wf,Yf,Xf,Zf,Qf,eh,th,nh,rh,ih={};function sh(){if(jf)return Ef;jf=1;var e=uf(),t=af();return Ef=Object.keys||function(n){return e(n,t)}}function oh(){if(Sf)return ih;Sf=1;var e=ru(),t=Sl(),n=wl(),r=Ol(),i=Hu(),s=sh();return ih.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o,c=i(t),u=s(t),a=u.length,l=0;a>l;)n.f(e,o=u[l++],c[o]);return e},ih}function ch(){return wf?Of:(wf=1,Of=Xu()("document","documentElement"))}function uh(){if(kf)return Af;kf=1;var e,t=Ol(),n=oh(),r=af(),i=cf(),s=ch(),o=Ka(),c="prototype",u="script",a=xl()("IE_PROTO"),l=function(){},f=function(e){return"<"+u+">"+e+"</"+u+">"},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"+u+":",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[c][r[a]];return m()};return i[a]=!0,Af=Object.create||function(e,r){var i;return null!==e?(l[c]=t(e),i=new l,l[c]=null,i[a]=e):i=m(),void 0===r?i:n.f(i,r)}}function ah(){if(Pf)return xf;Pf=1;var e=Wu(),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=Hc()("".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=Gc(),t=zu();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(Ff)return Rf;Ff=1;var e=Al(),t=lh(),n=fh(),r=Error.captureStackTrace;return Rf=function(i,s,o,c){n&&(r?r(i,s):e(i,"stack",t(o,c)))}}function mh(){return $f?If:($f=1,If={})}function ph(){if(Cf)return Df;Cf=1;var e=za(),t=mh(),n=e("iterator"),r=Array.prototype;return Df=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function dh(){if(Vf)return Lf;Vf=1;var e={};return e[za()("toStringTag")]="z",Lf="[object z]"===String(e)}function yh(){if(Bf)return Jf;Bf=1;var e=dh(),t=Xc(),n=Wc(),r=za()("toStringTag"),i=Object,s="Arguments"===n(function(){return arguments}());return Jf=e?n:function(e){var o,c,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(c=function(e,t){try{return e[t]}catch(e){}}(o=i(e),r))?c:s?n(o):"Object"===(u=n(o))&&t(o.callee)?"Arguments":u}}function vh(){if(zf)return qf;zf=1;var e=yh(),t=oa(),n=Uu(),r=mh(),i=za()("iterator");return qf=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=iu(),t=sa(),n=Ol(),r=ia(),i=vh(),s=TypeError;return Gf=function(o,c){var u=arguments.length<2?i(o):c;if(t(u))return n(e(u,o));throw new s(r(o)+" is not iterable")},Gf}function gh(){if(Hf)return Kf;Hf=1;var e=iu(),t=Ol(),n=oa();return Kf=function(r,i,s){var o,c;t(r);try{if(!(o=n(r,"return"))){if("throw"===i)throw s;return s}o=e(o,r)}catch(e){c=!0,o=e}if("throw"===i)throw s;if(c)throw o;return t(o),s}}function Eh(){if(Yf)return Wf;Yf=1;var e=Xa(),t=iu(),n=Ol(),r=ia(),i=ph(),s=sf(),o=Zu(),c=bh(),u=vh(),a=gh(),l=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;return Wf=function(m,p,d){var y,v,b,g,E,j,S,O=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,O),_=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=u(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=c(m,v)}for(j=A?m.next:y.next;!(S=t(j,y)).done;){try{E=M(S.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 Sh(){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 Oh(){return nh||(nh=1,function(){if(th)return qc;th=1;var e=kl(),t=Zu(),n=_l(),r=Rl(),i=gf(),s=uh(),o=Al(),c=zu(),u=ah(),a=hh(),l=Eh(),f=Sh(),h=za()("toStringTag"),m=Error,p=[].push,d=function(e,i){var c,v=t(y,this);r?c=r(new m,v?n(this):y):(c=v?this:s(y),o(c,h,"Error")),void 0!==i&&o(c,"message",f(i)),a(c,d,c.stack,1),arguments.length>2&&u(c,arguments[2]);var b=[];return l(e,p,{that:b}),o(c,"errors",b),c};r?r(d,m):i(d,m,{name:!0});var y=d.prototype=s(m.prototype,{constructor:c(1,d),message:c(1,""),name:c(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:d})}()),Bc}function wh(){return rh||(rh=1,Oh()),Jc}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 Fh(){if(Ph)return xh;Ph=1;var e=Xc(),t=Wu(),n=Rl();return xh=function(r,i,s){var o,c;return n&&e(o=i.constructor)&&o!==s&&t(c=o.prototype)&&c!==s.prototype&&n(r,c),r}}function Ih(){if(Mh)return _h;Mh=1;var e=Xu(),t=Ba(),n=Al(),r=Zu(),i=Rl(),s=gf(),o=Rh(),c=Fh(),u=Sh(),a=ah(),l=hh(),f=ru(),h=Da();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 S=j.prototype;if(!h&&t(S,"cause")&&delete S.cause,!d)return j;var O=e("Error"),w=p((function(e,t){var i=u(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(S,this)&&c(s,this,w),arguments.length>b&&a(s,arguments[b]),s}));if(w.prototype=S,"Error"!==E?i?i(w,O):s(w,O,{name:!0}):f&&v in j&&(o(w,j,v),o(w,j,"prepareStackTrace")),s(w,j),!h)try{S.name!==E&&n(S,"name",E),S.constructor=w}catch(e){}return w}},_h}var $h,Dh,Ch,Lh,Vh,Jh,Bh,qh,zh,Gh,Uh,Kh,Hh,Wh,Yh,Xh,Zh,Qh,em,tm,nm,rm,im,sm,om,cm={};function um(){return Ch?Dh:(Ch=1,Dh=function(){})}function am(){if(Vh)return Lh;Vh=1;var e=zc(),t=Xc(),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=zc(),s=Wu(),o=Al(),c=Ba(),u=La(),a=xl(),l=cf(),f="Object already initialized",h=i.TypeError,m=i.WeakMap;if(r||u.state){var p=u.state||(u.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(c(e,d))throw new h(f);return t.facade=e,o(e,d,t),t},t=function(e){return c(e,d)?e[d]:{}},n=function(e){return c(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(zh)return qh;zh=1;var e=ru(),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 qh={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(Hh)return Kh;Hh=1;var e,t,n,r=Gc(),i=Xc(),s=Wu(),o=uh(),c=_l(),u=hm(),a=za(),l=Da(),f=a("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=c(c(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])||u(e,f,(function(){return this})),Kh={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function pm(){if(Yh)return Wh;Yh=1;var e=dh(),t=yh();return Wh=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=za()("toStringTag");return Xh=function(o,c,u,a){var l=u?o:o&&o.prototype;l&&(r(l,s)||t(l,s,{configurable:!0,value:c}),a&&!e&&n(l,"toString",i))}}function ym(){if(em)return Qh;em=1;var e=mm().IteratorPrototype,t=uh(),n=zu(),r=dm(),i=mh(),s=function(){return this};return Qh=function(o,c,u,a){var l=c+" Iterator";return o.prototype=t(e,{next:n(+!a,u)}),r(o,l,!1,!0),i[l]=s,o}}function vm(){if(nm)return tm;nm=1;var e=kl(),t=iu(),n=Da(),r=fm(),i=Xc(),s=ym(),o=_l(),c=Rl(),u=dm(),a=Al(),l=hm(),f=za(),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",S=function(){return this};return tm=function(r,f,m,O,w,A,k){s(m,f,O);var x,P,_,M=function(e){if(e===w&&I)return I;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,F=R[b]||R["@@iterator"]||w&&R[w],I=!v&&F||M(w),$="Array"===f&&R.entries||F;if($&&(x=o($.call(new r)))!==Object.prototype&&x.next&&(n||o(x)===y||(c?c(x,y):i(x[b])||l(x,b,S)),u(x,N,!0,!0),n&&(h[N]=S)),p&&w===E&&F&&F.name!==E&&(!n&&d?a(R,"name",E):(T=!0,I=function(){return t(F,this)})),w)if(P={values:M(E),keys:A?I: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]===I||l(R,b,I,{name:w}),h[f]=I,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=Hu(),t=um(),n=mh(),r=lm(),i=wl().f,s=vm(),o=bm(),c=Da(),u=ru(),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"),!c&&u&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return sm}var Em,jm,Sm,Om,wm,Am={};function km(){if(jm)return Em;jm=1;var e=Hc(),t=tf(),n=jh(),r=Ku(),i=e("".charAt),s=e("".charCodeAt),o=e("".slice),c=function(e){return function(c,u){var a,l,f=n(r(c)),h=t(u),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:c(!1),charAt:c(!0)}}function xm(){return wm?Om:(wm=1,function(){if(Nh)return Th;Nh=1;var e=kl(),t=zc(),n=Kc(),r=Ih(),i="WebAssembly",s=t[i],o=7!==new Error("e",{cause:7}).cause,c=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},u=function(t,n){if(s&&s[t]){var c={};c[t]=r(i+"."+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},c)}};c("Error",(function(e){return function(t){return n(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return n(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return n(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return n(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return n(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return n(e,this,arguments)}})),c("URIError",(function(e){return function(t){return n(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return n(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return n(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return n(e,this,arguments)}}))}(),Oh(),function(){if($h)return cm;$h=1;var e=kl(),t=Xu(),n=Kc(),r=Gc(),i=Ih(),s="AggregateError",o=t(s),c=!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:c},{AggregateError:i(s,(function(e){return function(t,r){return n(e,this,arguments)}}),c,!0)})}(),gm(),function(){if(Sm)return Am;Sm=1;var e=km().charAt,t=jh(),n=lm(),r=vm(),i=bm(),s="String Iterator",o=n.set,c=n.getterFor(s);r(String,"String",(function(e){o(this,{type:s,string:t(e),index:0})}),(function(){var t,n=c(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))}))}(),Om=Yu().AggregateError)}var Pm,_m,Mm,Nm,Tm,Rm,Fm,Im,$m,Dm,Cm,Lm,Vm,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 qm(){if(Tm)return Nm;Tm=1,wh();var e=xm();return function(){if(Mm)return Jm;Mm=1,gm();var e=Bm(),t=zc(),n=dm(),r=mh();for(var i in e)n(t[i],i),r[i]=r.Array}(),Nm=e}function zm(){return Fm?Rm:(Fm=1,Rm=qm())}function Gm(){return $m?Im:($m=1,wh(),Im=zm())}function Um(){return Cm?Dm:(Cm=1,Dm=Gm())}const Km=Ut(Vm?Lm:(Vm=1,Lm=Um()));class Hm 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 Wm extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Hm,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 Wm{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}class Xm extends Wm{}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 c=Symbol("skip"),u=new Array(e.length).fill(c);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(u[a]===c){const c=t(e[a],n(d),!1);if("function"==typeof c){const t=c.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:c});if(t===s)u[a]=d;else if(t===r)u[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(u[i]===c){const c=t(e[i],n(m),!0);if("function"==typeof c){const t=c.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:c});if(t===r)u[i]=r;else if(void 0!==t&&t!==s)return t}}else u[i]===m&&(u[i]=c)}}};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 c=Symbol("skip"),u=new Array(e.length).fill(c);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(u[a]===c){const c=t(e[a],n(d),!1);if("function"==typeof c){const t=await c.call(e[a],d,l,f,h,m,v);if(t===s)u[a]=d;else if(t===r)u[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(u[i]===c){const c=t(e[i],n(m),!0);if("function"==typeof c){const t=await c.call(e[i],m,o,a,l,f,p);if(t===r)u[i]=r;else if(void 0!==t&&t!==s)return t}}else u[i]===m&&(u[i]=c)}}};const sp=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=ep,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Qm,nodeTypeGetter:u=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=[],S=[];do{b+=1;const e=b===v.length;let n;const A=e&&0!==g.length;if(e){if(n=0===S.length?void 0:j.pop(),E=d,d=S.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 O;if(!a(E))throw new Ym(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&S.includes(E)){"function"==typeof h&&h(E,n,d,j,S),j.pop();continue}const s=c(t,u(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,S):d&&(d[n]=t),e||(E=t)}};k=s.call(t,E,n,d,j,S,i)}if("function"==typeof(null===(O=k)||void 0===O?void 0:O.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[u(E)])&&void 0!==w?w:[],b=-1,g=[],d!==s&&void 0!==d&&S.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:c=Qm,nodeTypeGetter:u=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=[],S=[];do{b+=1;const e=b===v.length;let n;const w=e&&0!==g.length;if(e){if(n=0===S.length?void 0:j.pop(),E=d,d=S.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&&S.includes(E)){"function"==typeof h&&h(E,n,d,j,S),j.pop();continue}const s=c(t,u(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,S):d&&(d[n]=t),e||(E=t)}};A=await s.call(t,E,n,d,j,S,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 O;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!==(O=m[u(E)])&&void 0!==O?O:[],b=-1,g=[],d!==s&&void 0!==d&&S.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 cp extends op{}class up extends op{}const ap=(e,t)=>{const n=Ie(e,t);return rt((e=>{if($t(e)&&Ke("$ref",e)&&ft(kt,"$ref",e)){const t=ct(["$ref"],e),r=zt("#/",t);return ct(r.split("/"),n)}return $t(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 Wo.KeyValuePair){const{key:t,value:i}=e,s=sc(t)?fp(t,r):t,o=sc(i)?fp(i,r):i,c=new Wo.KeyValuePair(s,o);return n.set(e,c),c}if(e instanceof Wo.ObjectSlice){const t=e=>fp(e,r),i=[...e].map(t),s=new Wo.ObjectSlice(i);return n.set(e,s),s}if(e instanceof Wo.ArraySlice){const t=e=>fp(e,r),i=[...e].map(t),s=new Wo.ArraySlice(i);return n.set(e,s),s}if(sc(e)){const t=pp(e);if(n.set(e,t),e.content)if(sc(e.content))t.content=fp(e.content,r);else if(e.content instanceof Wo.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 cp("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 Wo.KeyValuePair(t,n)},mp=e=>{const t=new e.constructor;if(t.element=e.element,bc(e)&&lp(t,e),e.meta.length>0&&(t._meta=fp(e.meta)),e.attributes.length>0&&(t._attributes=fp(e.attributes)),sc(e.content)){const n=e.content;t.content=mp(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Wo.KeyValuePair?t.content=hp(e.content):t.content=e.content;return t},pp=e=>{if(e instanceof Wo.KeyValuePair)return hp(e);if(e instanceof Wo.ObjectSlice)return(e=>{const t=[...e];return new Wo.ObjectSlice(t)})(e);if(e instanceof Wo.ArraySlice)return(e=>{const t=[...e];return new Wo.ArraySlice(t)})(e);if(sc(e))return mp(e);throw new up("Value provided to cloneShallow function couldn't be cloned",{value:e})};pp.safe=e=>{try{return pp(e)}catch{return e}};const dp=e=>lc(e)?"ObjectElement":fc(e)?"ArrayElement":hc(e)?"MemberElement":oc(e)?"StringElement":ac(e)?"BooleanElement":cc(e)?"NumberElement":uc(e)?"NullElement":mc(e)?"LinkElement":pc(e)?"RefElement":void 0,yp=e=>sc(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:wc,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(),c=t.map((e=>e(o))),u=ip(c.map(lt({},"visitor")),{...s});c.forEach(qt(["pre"],[]));const a=gp(e,u,s);return c.forEach(qt(["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(),c=t.map((e=>e(o))),u=ip[Symbol.for("nodejs.util.promisify.custom")],a=gp[Symbol.for("nodejs.util.promisify.custom")],l=u(c.map(lt({},"visitor")),{...s});await Promise.allSettled(c.map(qt(["pre"],[])));const f=await a(e,l,s);return await Promise.allSettled(c.map(qt(["post"],[]))),f};class Sp 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 Op=e=>(t,n={})=>((e,{Type:t,plugins:n=[]})=>{const r=new t(e);return sc(e)&&(e.meta.length>0&&(r.meta=fp(e.meta)),e.attributes.length>0&&(r.attributes=fp(e.attributes))),jp(r,n,{toolboxCreator:wc,visitorOptions:{nodeTypeGetter:dp}})})(t,{...n,Type:e});Wo.ObjectElement.refract=Op(Wo.ObjectElement),Wo.ArrayElement.refract=Op(Wo.ArrayElement),Wo.StringElement.refract=Op(Wo.StringElement),Wo.BooleanElement.refract=Op(Wo.BooleanElement),Wo.NullElement.refract=Op(Wo.NullElement),Wo.NumberElement.refract=Op(Wo.NumberElement),Wo.LinkElement.refract=Op(Wo.LinkElement),Wo.RefElement.refract=Op(Wo.RefElement),Yo.refract=Op(Yo),Xo.refract=Op(Xo),Zo.refract=Op(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 oc(e.href)?e.href.toValue():""}};const Mp=e=>sc(e)?oc(e)||cc(e)||ac(e)||uc(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)?Fp(Np(e),e,t):e,Rp={clone:!0,isMergeableElement:e=>lc(e)||fc(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>Tp(e,n))),objectElementMerge:(e,t,n)=>{const r=lc(e)?Np(e):Np(t);return lc(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 c;if(lc(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);c=pp(s),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return Fp;const n=t.customMerge(e,t);return"function"==typeof n?n:Fp})(i,n)(r,t,n)}else c=pp(s),c.value=Tp(t,n);r.remove(o),r.content.push(c)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Fp=(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 c=fc(t);if(!(c===fc(e)))return Tp(t,o);const u=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return u.meta=(e=>"function"!=typeof e.customMetaMerge?e=>fp(e):e.customMetaMerge)(o)(e.meta,t.meta),u.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>fp(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),u};Fp.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Wo.ObjectElement:e.reduce(((e,n)=>Fp(e,n,t)),Np(e[0]))};class Ip extends Sp{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-07",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 Ce(this.filterByFormat(e))}}const $p=new Ip("application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07");let Dp=class extends Wo.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 Cp extends Wo.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 Wo.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 Vp=class extends Wo.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",Dp),t.register("jSONReference",Cp),t.register("media",Lp),t.register("linkDescription",Vp),t}},Bp=e=>{if(sc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},qp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bp};class zp{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Fp(t.meta,e.meta)),bc(e)&&lp(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Fp(t.attributes,e.attributes))}}class Gp extends zp{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])},Hp=(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},Wp=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=Wp([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let o of i)s[o]=Wp([...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,c;return{class:Wp([...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!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}})(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=Hp(i,s),Object.setPrototypeOf(s,Hp(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 c,u;return c=o,u=e,Yp.set(c,u),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 zp{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return at(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ct(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ut(St,["visitors",...e],this.specObj)?ct(["visitors",...e],this.specObj):ct(["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(oc(r)&&n.includes(Mp(r))&&!this.ignoredFields.includes(Mp(r))){const n=this.toRefractedElement([...t,"fixedFields",Mp(r)],e),s=new Wo.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 cd=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Dp||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),ud=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Cp||e(r)&&t("JSONReference",r)&&n("object",r))),ad=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Lp||e(r)&&t("media",r)&&n("object",r))),ld=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vp||e(r)&&t("linkDescription",r)&&n("object",r))),fd=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:ud,isJSONSchemaElement:cd,isLinkDescriptionElement:ld,isMediaElement:ad},Symbol.toStringTag,{value:"Module"}));let hd=class extends(nd(sd,od,Gp)){constructor(e){super(e),this.element=new Dp,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)&&!oc(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(cd(this.parent)&&!oc(e.get("$schema"))){const e=Ie(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 Wo.ArrayElement,r=Mp(e.get(t));Mt(r)&&n.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const md=e=>lc(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 Wo.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 Wo.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 Wo.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 Wo.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 Wo.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 Wo.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 Wo.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 Sd extends(nd(id,od,Gp)){constructor(e){super(e),this.element=new Wo.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 Od extends(nd(yd,od,Gp)){constructor(e){super(e),this.element=new Wo.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 Wo.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 Cp,this.specPath=fe(["document","objects","JSONReference"])}ObjectElement(e){const t=sd.prototype.ObjectElement.call(this,e);return oc(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})=>We(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 Vp,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:Sd,not:xd,definitions:Od,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=Oc(Jp);return{predicates:{...fd,isStringElement:oc},namespace:e}},Td=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Md}={})=>{const i=Wo.refract(e),s=ap(r),o=new(ct(t,s))({specObj:s});return gp(i,o),jp(o.element,n,{toolboxCreator:Nd,visitorOptions:{keyMap:qp,nodeTypeGetter:Bp}})})(t,{specPath:e,...n});Dp.refract=Td(["visitors","document","objects","JSONSchema","$visitor"]),Cp.refract=Td(["visitors","document","objects","JSONReference","$visitor"]),Lp.refract=Td(["visitors","document","objects","Media","$visitor"]),Vp.refract=Td(["visitors","document","objects","LinkDescription","$visitor"]);let Rd=class extends Dp{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)}},Fd=class extends Vp{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 Id={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Rd),t.register("jSONReference",Cp),t.register("media",Lp),t.register("linkDescription",Fd),t}},$d={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bp};let Dd=class 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)}};let Cd=class extends _d{constructor(e){super(e),this.element=new Fd}};const Ld=Re(je(["visitors","document","objects","JSONSchema","$visitor"],Dd),De(["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"],class extends pd{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ep}}),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"],Cd),je(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Md.visitors.JSONSchemaOrJSONReferenceVisitor),De(["visitors","document","objects","LinkDescription","fixedFields","schema"]),je(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Md.visitors.JSONSchemaOrJSONReferenceVisitor),De(["visitors","document","objects","LinkDescription","fixedFields","method"]),De(["visitors","document","objects","LinkDescription","fixedFields","encType"]),je(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Md.visitors.value))(Md),Vd=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Rd||e(r)&&t("JSONSchemaDraft6",r)&&n("object",r))),Jd=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Fd||e(r)&&t("linkDescription",r)&&n("object",r))),Bd=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:ud,isJSONSchemaElement:Vd,isLinkDescriptionElement:Jd,isMediaElement:ad},Symbol.toStringTag,{value:"Module"})),qd=()=>{const e=Oc(Id);return{predicates:{...Bd,isStringElement:oc},namespace:e}},zd=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Ld}={})=>{const i=Wo.refract(e),s=ap(r),o=new(ct(t,s))({specObj:s});return gp(i,o),jp(o.element,n,{toolboxCreator:qd,visitorOptions:{keyMap:$d,nodeTypeGetter:Bp}})})(t,{specPath:e,...n});Rd.refract=zd(["visitors","document","objects","JSONSchema","$visitor"]),Fd.refract=zd(["visitors","document","objects","LinkDescription","$visitor"]);class Gd extends Rd{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Xm('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Xm('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}}class Ud extends Fd{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Xm("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Xm("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Xm("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Xm("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}}const Kd={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",Gd),t.register("jSONReference",Cp),t.register("linkDescription",Ud),t}};var Hd=Object.defineProperty,Wd=Object.getOwnPropertySymbols,Yd=Object.prototype.hasOwnProperty,Xd=Object.prototype.propertyIsEnumerable,Zd=(e,t,n)=>t in e?Hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Qd=((e,t)=>{for(var n in t||(t={}))Yd.call(t,n)&&Zd(e,n,t[n]);if(Wd)for(var n of Wd(t))Xd.call(t,n)&&Zd(e,n,t[n]);return e})({JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"]},bp),ey={JSONSchemaDraft7Element:{additionalItems:(...e)=>new Gd(...e),items:(...e)=>new Gd(...e),contains:(...e)=>new Gd(...e),required(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new Wo.ObjectElement(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Gd(...e),patternProperties(...e){const t=new Wo.ObjectElement(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new Wo.ObjectElement(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new Gd(...e),enum(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-oneOf"),t},if:(...e)=>new Gd(...e),then:(...e)=>new Gd(...e),else:(...e)=>new Gd(...e),not:(...e)=>new Gd(...e),definitions(...e){const t=new Wo.ObjectElement(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new Wo.ArrayElement(...e);return t.classes.push("json-schema-links"),t}},LinkDescriptionElement:{hrefSchema:(...e)=>new Gd(...e),targetSchema:(...e)=>new Gd(...e),submissionSchema:(...e)=>new Gd(...e),templatePointers:(...e)=>new Wo.ObjectElement(...e),templateRequired:(...e)=>new Wo.ArrayElement(...e),targetHints:(...e)=>new Wo.ObjectElement(...e),headerSchema:(...e)=>new Gd(...e)},"json-schema-properties":{"[key: *]":function(...e){return new Gd(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new Gd(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new Gd(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Gd(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Gd(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Gd(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new Gd(...e)}},"json-schema-links":{"<*>":function(...e){return new Ud(...e)}}},ty=(e,t)=>{const n=Bp(e),r=ey[n]||ey[Mp(e.classes.first)];return void 0===r?void 0:Object.prototype.hasOwnProperty.call(r,"[key: *]")?r["[key: *]"]:r[t]};class ny extends Dd{constructor(e){super(e),this.element=new Gd}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}}class ry extends Cd{constructor(e){super(e),this.element=new Ud}}const iy=Re(je(["visitors","document","objects","JSONSchema","$visitor"],ny),je(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Ld.visitors.value),je(["visitors","document","objects","JSONSchema","fixedFields","if"],Ld.visitors.JSONSchemaOrJSONReferenceVisitor),je(["visitors","document","objects","JSONSchema","fixedFields","then"],Ld.visitors.JSONSchemaOrJSONReferenceVisitor),je(["visitors","document","objects","JSONSchema","fixedFields","else"],Ld.visitors.JSONSchemaOrJSONReferenceVisitor),De(["visitors","document","objects","JSONSchema","fixedFields","media"]),je(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Ld.visitors.value),je(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Ld.visitors.value),je(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Ld.visitors.value),je(["visitors","document","objects","LinkDescription","$visitor"],ry),je(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Ld.visitors.value),je(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Ld.visitors.value),De(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),je(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Ld.visitors.value),je(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Ld.visitors.value),je(["visitors","document","objects","LinkDescription","fixedFields","description"],Ld.visitors.value),je(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Ld.visitors.value),je(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Ld.visitors.JSONSchemaOrJSONReferenceVisitor),De(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),je(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Ld.visitors.value))(Ld),sy=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gd||e(r)&&t("JSONSchemaDraft7",r)&&n("object",r))),oy=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ud||e(r)&&t("linkDescription",r)&&n("object",r))),cy=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:ud,isJSONSchemaElement:sy,isLinkDescriptionElement:oy},Symbol.toStringTag,{value:"Module"}));var uy=Object.defineProperty,ay=Object.defineProperties,ly=Object.getOwnPropertyDescriptors,fy=Object.getOwnPropertySymbols,hy=Object.prototype.hasOwnProperty,my=Object.prototype.propertyIsEnumerable,py=(e,t,n)=>t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const dy=()=>{const e=Oc(Kd),t=(n=((e,t)=>{for(var n in t||(t={}))hy.call(t,n)&&py(e,n,t[n]);if(fy)for(var n of fy(t))my.call(t,n)&&py(e,n,t[n]);return e})({},cy),ay(n,ly({isStringElement:oc})));var n;return{predicates:t,namespace:e}};var yy=Object.defineProperty,vy=Object.getOwnPropertySymbols,by=Object.prototype.hasOwnProperty,gy=Object.prototype.propertyIsEnumerable,Ey=(e,t,n)=>t in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const jy=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=iy}={})=>{const i=Wo.refract(e),s=ap(r),o=new(ct(t,s))({specObj:s});return gp(i,o),jp(o.element,n,{toolboxCreator:dy,visitorOptions:{keyMap:Qd,nodeTypeGetter:Bp}})};e.AlternatingVisitor=kd,e.FallbackVisitor=Gp,e.FixedFieldsVisitor=sd,e.JSONReferenceElement=Cp,e.JSONSchemaDraft7MediaTypes=Ip,e.JSONSchemaElement=Gd,e.JSONSchemaVisitor=ny,e.LinkDescriptionElement=Ud,e.LinkDescriptionVisitor=ry,e.MapVisitor=yd,e.ParentSchemaAwareVisitor=od,e.PatternedFieldsVisitor=dd,e.SpecificationVisitor=id,e.Visitor=zp,e.createRefractor=e=>(t,n={})=>jy(t,((e,t)=>{for(var n in t||(t={}))by.call(t,n)&&Ey(e,n,t[n]);if(vy)for(var n of vy(t))gy.call(t,n)&&Ey(e,n,t[n]);return e})({specPath:e},n)),e.default=Kd,e.getNodeType=Bp,e.isArrayElement=fc,e.isBooleanElement=ac,e.isElement=sc,e.isJSONReferenceElement=ud,e.isJSONReferenceLikeElement=md,e.isJSONSchemaElement=sy,e.isLinkDescriptionElement=oy,e.isLinkElement=mc,e.isMemberElement=hc,e.isNullElement=uc,e.isNumberElement=cc,e.isObjectElement=lc,e.isRefElement=pc,e.isStringElement=oc,e.keyMap=Qd,e.mediaTypes=$p,e.refract=jy,e.refractorPluginReplaceEmptyElement=()=>()=>({visitor:{StringElement(e,t,n,r,i){if(!(e=>oc(e)&&gc(["yaml-e-node","yaml-e-scalar"],e))(e))return;const s=[...i,n].filter(sc),o=s[s.length-1];let c,u;if(fc(o)?(u=e,c=ty(o,"<*>")):hc(o)&&(u=s[s.length-2],c=ty(u,Mp(o.key))),"function"!=typeof c)return;const a=c.call({context:u},void 0,fp(e.meta),fp(e.attributes));return lp(a,e)}}}),e.specificationObj=iy,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-7",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "JSON Schema Draft 7 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-7.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.4.0",
46
- "@swagger-api/apidom-error": "^1.4.0",
47
- "@swagger-api/apidom-ns-json-schema-draft-6": "^1.4.0",
45
+ "@swagger-api/apidom-core": "^1.5.1",
46
+ "@swagger-api/apidom-error": "^1.5.1",
47
+ "@swagger-api/apidom-ns-json-schema-draft-6": "^1.5.1",
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": "1f549fea8e32ed07bd8a009b3cc4d72588886878"
63
+ "gitHead": "103cc50a692501bc3101c2935a939c22c535471f"
64
64
  }