@swagger-api/apidom-ns-json-schema-draft-6 1.0.0-beta.8 → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +184 -0
- package/README.md +1 -1
- package/dist/apidom-ns-json-schema-draft-6.browser.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +7 -3
- package/src/index.mjs +2 -0
- package/src/refractor/plugins/replace-empty-element.cjs +2 -1
- package/src/refractor/plugins/replace-empty-element.mjs +3 -2
- package/src/refractor/visitors/json-schema/ItemsVisitor.cjs +1 -22
- package/src/refractor/visitors/json-schema/ItemsVisitor.mjs +3 -25
- package/src/refractor/visitors/json-schema/index.cjs +3 -21
- package/src/refractor/visitors/json-schema/index.mjs +4 -21
- package/src/refractor/visitors/json-schema/link-description/index.cjs +1 -8
- package/src/refractor/visitors/json-schema/link-description/index.mjs +2 -8
- package/src/traversal/visitor.cjs +2 -11
- package/src/traversal/visitor.mjs +2 -11
- package/types/apidom-ns-json-schema-draft-6.d.ts +20 -38
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft6=t():e.apidomNsJSONSchemaDraft6=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),f=!r&&!l&&o(e),p=!r&&!l&&!f&&a(e),h=r||l||f||p,m=h?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var b=a(e),g=a(t),E=b?p:c(e),j=g?p:c(t),x=(E=E==f?h:E)==h,O=(j=j==f?h:j)==h,w=E==j;if(w&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(w&&!x)return v||(v=new n),b||l(e)?s(e,t,r,d,y,v):i(e,t,E,r,d,y,v);if(!(1&r)){var S=x&&m.call(e,"__wrapped__"),A=O&&m.call(t,"__wrapped__");if(S||A){var k=S?e.value():e,P=A?t.value():t;return v||(v=new n),y(k,P,r,d,v)}}return!!w&&(v||(v=new n),o(e,t,r,d,y,v))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?p:c).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var v=e[m],b=t[m];if(o)var g=u?o(b,v,m,t,e,a):o(v,b,m,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==b&&!c(v,b,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var m=1&n;if(h||(h=a),e.size!=t.size&&!m)return!1;var d=p.get(e);if(d)return d==t;n|=2,p.set(e,t);var y=o(h(e),h(t),n,u,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var f=l;f--;){var p=u[f];if(!(a?p in t:s.call(t,p)))return!1}var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++f<l;){var v=e[p=u[f]],b=t[p];if(i)var g=a?i(b,v,p,t,e,c):i(v,b,p,e,t,c);if(!(void 0===g?v===b||o(v,b,r,i,c):g)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var E=e.constructor,j=t.constructor;E==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof j&&j instanceof j||(d=!1)}return c.delete(e),c.delete(t),d}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),b=u(o),g=u(c),E=a;(n&&E(new n(new ArrayBuffer(1)))!=m||s&&E(new s)!=l||i&&E(i.resolve())!=f||o&&E(new o)!=p||c&&E(new c)!=h)&&(E=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case b:return p;case g:return h}return t}),e.exports=E},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),f=r(9620),p=r(593),h=r(4123),m=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=y,h.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:y,ArraySlice:h,ObjectSlice:m,KeyValuePair:d}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{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 r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}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(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(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,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var f=c[l];n(e,f)||r&&n(r,f)||a(e,f,u(t,f))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),f=r(3999),p=r(701);r(3753);var h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,v,b,g,E,j=e.target,x=e.global,O=e.stat,w=e.proto,S=x?n:O?n[j]:n[j]&&n[j].prototype,A=x?u:u[j]||f(u,j,{})[j],k=A.prototype;for(d in t)s=!(r=a(x?d:j+(O?".":"#")+d,e.forced))&&S&&p(S,d),v=A[d],s&&(b=e.dontCallGetSet?(E=c(S,d))&&E.value:S[d]),y=s&&b?b:t[d],(r||w||typeof v!=typeof y)&&(g=e.bind&&s?l(y,n):e.wrap&&s?h(y):w&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(g,"sham",!0),f(A,d,g),w&&(p(u,m=j+"Prototype")||f(u,m,{}),f(u[m],d,y),e.real&&k&&(r||!k[d])&&f(k,d,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),f=r(3753),p=r(4275),h=r(5241),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(m);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var b=p("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new d(m);return t.facade=e,u(e,b,t),t},s=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),f=r(967),p=r(1743),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,v,b,g,E,j,x,O=r&&r.that,w=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=n(t,O),_=function(e){return y&&p(y,"normal",e),new m(!0,e)},M=function(e){return w?(i(e),k?P(e[0],e[1],_):P(e[0],e[1])):k?P(e,_):P(e)};if(S)y=e.iterator;else if(A)y=e;else{if(!(v=f(e)))throw new h(o(e)+" is not iterable");if(c(v)){for(b=0,g=a(e);g>b;b++)if((E=M(e[b]))&&u(d,E))return E;return new m(!1)}y=l(e,v)}for(j=S?e.next:y.next;!(x=s(j,y)).done;){try{E=M(x.value)}catch(e){p(y,"throw",e)}if("object"==typeof E&&E&&u(d,E))return E}return new m(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),f=r(1811),p=r(3999),h=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,b=o.CONFIGURABLE,g=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),x="keys",O="values",w="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,A){a(r,t,o);var k,P,_,M=function(e){if(e===m&&I)return I;if(!E&&e&&e in R)return R[e];switch(e){case x:case O:case w:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",T=!1,R=e.prototype,F=R[j]||R["@@iterator"]||m&&R[m],I=!E&&F||M(m),C="Array"===t&&R.entries||F;if(C&&(k=u(C.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===g||(l?l(k,g):c(k[j])||h(k,j,S)),f(k,N,!0,!0),i&&(d[N]=S)),v&&m===O&&F&&F.name!==O&&(!i&&b?p(R,"name",O):(T=!0,I=function(){return s(F,this)})),m)if(P={values:M(O),keys:y?I:M(x),entries:M(w)},A)for(_ in P)(E||T||!(_ in R))&&h(R,_,P[_]);else n({target:t,proto:!0,forced:E||T},P);return i&&!A||R[j]===I||h(R,j,I,{name:m}),d[t]=I,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),f=r(3508),p=r(8655),h=r(4871),m=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:h&&(n=u(n)),c(n[m])||f(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),f="prototype",p="script",h=l("IE_PROTO"),m=function(){},d=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+p+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[f]=s(e),r=new m,m[f]=null,r[h]=e):r=v(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=a(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(o(t)),p=s(r),h=f.length;return p<0||p>=h?e?"":void 0:(n=a(f,p))<55296||n>56319||p+1===h||(l=a(f,p+1))<56320||l>57343?e?c(f,p):n:e?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),f=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),f=r(4879),p=r(8148),h=r(4279),m=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",b=y?2:1,g=e.split("."),E=g[g.length-1],j=n.apply(null,g);if(j){var x=j.prototype;if(!d&&s(x,"cause")&&delete x.cause,!r)return j;var O=n("Error"),w=t((function(e,t){var r=f(y?t:e,void 0),n=y?new j(e):new j;return void 0!==r&&i(n,"message",r),h(n,w,n.stack,2),this&&o(x,this)&&l(n,this,w),arguments.length>b&&p(n,arguments[b]),n}));if(w.prototype=x,"Error"!==E?c?c(w,O):a(w,O,{name:!0}):m&&v in j&&(u(w,j,v),u(w,j,"prepareStackTrace")),a(w,j),!d)try{x.name!==E&&i(x,"name",E),x.constructor=w}catch(e){}return w}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),f=r(8148),p=r(4279),h=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,b=function(e,t){var r,n=s(g,this);o?r=o(new y,n?i(this):g):(r=n?this:a(g),u(r,d,"Error")),void 0!==t&&u(r,"message",m(t)),p(r,b,r.stack,1),arguments.length>2&&f(r,arguments[2]);var c=[];return h(e,v,{that:c}),u(r,"errors",c),r};o?o(b,y):c(b,y,{name:!0});var g=b.prototype=a(y.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},5695:(e,t,r)=>{"use strict";r(3085)},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),f=r(5024),p="Array Iterator",h=o.set,m=o.getterFor(p);e.exports=a(Array,"Array",(function(e,t){h(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Vs,FallbackVisitor:()=>dn,FixedFieldsVisitor:()=>qn,JSONReferenceElement:()=>Rr,JSONSchemaDraft6MediaTypes:()=>Me,JSONSchemaElement:()=>Ys,JSONSchemaVisitor:()=>pi,LinkDescriptionElement:()=>Xs,MapVisitor:()=>ns,MediaElement:()=>Ir,ParentSchemaAwareVisitor:()=>zn,PatternedFieldsVisitor:()=>rs,SpecificationVisitor:()=>Bn,Visitor:()=>mn,createRefractor:()=>Oi,default:()=>Zs,getNodeType:()=>Qs,isArrayElement:()=>ae,isBooleanElement:()=>oe,isElement:()=>re,isJSONReferenceElement:()=>Un,isJSONReferenceLikeElement:()=>Xn,isJSONSchemaElement:()=>gi,isLinkDescriptionElement:()=>Ei,isLinkElement:()=>le,isMediaElement:()=>Kn,isMemberElement:()=>ue,isNullElement:()=>ie,isNumberElement:()=>se,isObjectElement:()=>ce,isRefElement:()=>fe,isStringElement:()=>ne,keyMap:()=>ei,mediaTypes:()=>Ne,refract:()=>wi,refractorPluginReplaceEmptyElement:()=>ni,specificationObj:()=>bi});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ve,includesClasses:()=>ge,includesSymbols:()=>be,isAnnotationElement:()=>pe,isArrayElement:()=>ae,isBooleanElement:()=>oe,isCommentElement:()=>he,isElement:()=>re,isLinkElement:()=>le,isMemberElement:()=>ue,isNullElement:()=>ie,isNumberElement:()=>se,isObjectElement:()=>ce,isParseResultElement:()=>me,isPrimitiveElement:()=>ye,isRefElement:()=>fe,isSourceMapElement:()=>de,isStringElement:()=>ne});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Un,isJSONSchemaElement:()=>Gn,isLinkDescriptionElement:()=>Wn,isMediaElement:()=>Kn});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>Un,isJSONSchemaElement:()=>gi,isLinkDescriptionElement:()=>Ei,isMediaElement:()=>Kn});var i=r(8326);function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t){return e(r,t)}));default:return o(r)&&o(n)?t:o(r)?c((function(t){return e(t,n)})):o(n)?c((function(t){return e(r,t)})):e(r,n)}}}const u=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function l(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!u(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function f(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const p=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var m=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=p,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=f(this.xf["@@transducer/step"](e,!1))),e},e}();function d(e){return function(t){return new m(e,t)}}const y=a(l(["all"],d,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var n=[],s=0,i=e,c=0,a=!1;c<t.length||s<arguments.length;){var u;c<t.length&&(!o(t[c])||s>=arguments.length)?u=t[c]:(u=arguments[s],s+=1),n[c]=u,o(u)?a=!0:i-=1,c+=1}return!a&&i<=0?r.apply(this,n):v(Math.max(0,i),b(e,n,r))}}const g=a((function(e,t){return 1===e?c(t):v(e,b(e,[],t))}));const E=c((function(e){return g(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function j(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const A=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return O("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},N="function"!=typeof Object.keys||_?c((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=_&&A(e);for(t in e)!O(t,e)||s&&"length"===t||(n[n.length]=t);if(k)for(r=P.length-1;r>=0;)O(t=P[r],e)&&!M(n,t)&&(n[n.length]=t),r-=1;return n})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T=N;const R=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function F(e,t,r,n){var s=j(e);function i(e,t){return I(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function I(e,t,r,n){if(w(e,t))return!0;var s,i,o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&F(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&F(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=T(e);if(a.length!==T(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var f=a[c];if(!O(f,t)||!I(t[f],e[f],u,l))return!1;c-=1}return!0}const C=a((function(e,t){return I(e,t,[],[])}));function $(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(C(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const V=E(a($));class D extends i.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const L=D;class J extends i.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const B=J;const q=c((function(e){return function(){return e}}));const z=q(void 0);const G=C(z());class U extends i.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(G(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const K=U;class W extends i.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new i.wE([e.start.row,e.start.column,e.start.char]),r=new i.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const H=W,Y=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],X=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Z=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Q=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof i.wE)&&t.classes.includes(e),ee=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,te=e=>e({hasMethod:Y,hasBasicElementProps:X,primitiveEq:Z,isElementType:ee,hasClass:Q}),re=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Hg||e(r)&&t(void 0,r))),ne=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Om||e(r)&&t("string",r))),se=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.kT||e(r)&&t("number",r))),ie=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Os||e(r)&&t("null",r))),oe=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.bd||e(r)&&t("boolean",r))),ce=te((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ae=te((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.wE&&!(n instanceof i.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ue=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Pr||e(n)&&t("member",n)&&r(void 0,n))),le=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Ft||e(n)&&t("link",n)&&r(void 0,n))),fe=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.sI||e(n)&&t("ref",n)&&r(void 0,n))),pe=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof L||e(n)&&t("annotation",n)&&r("array",n))),he=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof B||e(n)&&t("comment",n)&&r("string",n))),me=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&r("array",n))),de=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof H||e(n)&&t("sourceMap",n)&&r("array",n))),ye=e=>ee("object",e)||ee("array",e)||ee("boolean",e)||ee("number",e)||ee("string",e)||ee("null",e)||ee("member",e),ve=e=>de(e.meta.get("sourceMap")),be=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ae(r)&&y(V(r.toValue()),e)},ge=(e,t)=>0===e.length||y(V(t.classes.toValue()),e);function Ee(e){return"[object String]"===Object.prototype.toString.call(e)}function je(e,t){var r=e<0?t.length+e:e;return Ee(t)?t.charAt(r):t[r]}const xe=c((function(e){return je(-1,e)}));var Oe=r(1212);const we=class extends Oe{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Se extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(we,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Ae=Se;const ke=class extends Ae{};const Pe=class extends ke{};const _e=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Pe("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Pe("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Pe("latest method in MediaTypes class is not yet implemented.")}};class Me extends _e{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-06",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return xe(this.filterByFormat(e))}}const Ne=new Me("application/schema;version=draft-06","application/schema+json;version=draft-06","application/schema+yaml;version=draft-06");function Te(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t,n){return e(r,t,n)}));case 2:return o(r)&&o(n)?t:o(r)?a((function(t,r){return e(t,n,r)})):o(n)?a((function(t,n){return e(r,t,n)})):c((function(t){return e(r,n,t)}));default:return o(r)&&o(n)&&o(s)?t:o(r)&&o(n)?a((function(t,r){return e(t,r,s)})):o(r)&&o(s)?a((function(t,r){return e(t,n,r)})):o(n)&&o(s)?a((function(t,n){return e(r,t,n)})):o(r)?c((function(t){return e(t,n,s)})):o(n)?c((function(t){return e(r,t,s)})):o(s)?c((function(t){return e(r,n,t)})):e(r,n,s)}}}function Re(e){return"[object Object]"===Object.prototype.toString.call(e)}const Fe=Te((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})O(n,t)&&(s[n]=O(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)O(n,r)&&!O(n,s)&&(s[n]=r[n]);return s}));const Ie=Te((function e(t,r,n){return Fe((function(r,n,s){return Re(n)&&Re(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Ce=a((function(e,t){return Ie((function(e,t,r){return r}),e,t)}));const $e=a((function(e,t){return null==t||t!=t?e:t})),Ve=Number.isInteger||function(e){return(e|0)===e};const De=a((function(e,t){if(null!=t)return Ve(e)?je(e,t):t[e]}));const Le=Te((function(e,t,r){return $e(e,De(t,r))}));function Je(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Ve(s)?je(s,r):r[s]}return r}const Be=a(Je);function qe(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return u(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const ze=Te(qe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ge=ze(0,-1);const Ue=a((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));const Ke=a((function(e,t){return e.apply(this,t)}));function We(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const He=c((function(e){return!!u(e)||!!e&&("object"==typeof e&&(!Ee(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ye="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Xe(e,t,r){return function(n,s,i){if(He(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Ye])return r(n,s,i[Ye]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ze(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Qe(e,t,r,n){return r[n](e,t)}const et=Xe(We,Qe,Ze);function tt(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var rt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const nt=a(l(["fantasy-land/map","map"],(function(e){return function(t){return new rt(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return g(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return We((function(r,n){return r[n]=e(t[n]),r}),{},T(t));default:return tt(e,t)}})));const st=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:et((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,nt(r,t))}),[],e)}));const it=a((function(e,t){var r=g(e,t);return g(e,(function(){return We(st,nt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ot=c((function(e){return it(e.length,e)}));const ct=ot(c((function(e){return!e})));function at(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 ut=function(e){return(e<10?"0":"")+e};const lt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ut(e.getUTCMonth()+1)+"-"+ut(e.getUTCDate())+"T"+ut(e.getUTCHours())+":"+ut(e.getUTCMinutes())+":"+ut(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var ft=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function pt(e){return function(t){return new ft(e,t)}}const ht=a(l(["fantasy-land/filter","filter"],pt,(function(e,t){return Re(t)?We((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},T(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const mt=a((function(e,t){return ht((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function dt(e,t){var r=function(r){var n=t.concat([e]);return $(r,n)?"<Circular>":dt(r,n)},n=function(e,t){return tt((function(t){return at(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+tt(r,e).join(", ")+"))";case"[object Array]":return"["+tt(r,e).concat(n(e,mt((function(e){return/^\d+$/.test(e)}),T(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):at(lt(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":at(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,T(e)).join(", ")+"}"}}const yt=c((function(e){return dt(e,[])}));const vt=a((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=yt(e),o=r(i,yt(t));return void 0!==o&&o===i?e:t}));const bt=a((function(e,t){return nt(De(e),t)}));function gt(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function Et(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function jt(e,t,r,n){return e["@@transducer/result"](r[n](Ue(e["@@transducer/step"],e),t))}const xt=Xe(gt,jt,Et);var Ot=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const wt=Te((function(e,t,r){return xt("function"==typeof e?new Ot(e):e,t,r)}));const St=c((function(e){return g(wt(vt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function At(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const kt=c(qe("tail",ze(1,1/0)));function Pt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,wt(At,arguments[0],kt(arguments)))}var _t=function(e,t){switch(arguments.length){case 0:return _t;case 1:return function t(r){return 0===arguments.length?t:w(e,r)};default:return w(e,t)}};const Mt=_t;const Nt=g(1,Pt(R,Mt("GeneratorFunction")));const Tt=g(1,Pt(R,Mt("AsyncFunction")));const Rt=St([Pt(R,Mt("Function")),Nt,Tt]);const Ft=ct(Rt);function It(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ct=a((function(e,t){return e&&t}));const $t=a((function(e,t){return It(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ot(Ct)(e,t)}));var Vt=c((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():u(e)?[]:Ee(e)?"":Re(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Dt=Vt;const Lt=c((function(e){return null!=e&&C(e,Dt(e))}));const Jt=g(1,Rt(Array.isArray)?Array.isArray:Pt(R,Mt("Array")));const Bt=$t(Jt,Lt);const qt=g(3,(function(e,t,r){var n=Be(e,r),s=Be(Ge(e),r);if(!Ft(n)&&!Bt(e)){var i=Ue(n,s);return Ke(i,t)}}));const zt=Te((function(e,t,r){return e(Je(t,r))}));const Gt=C(null);const Ut=ct(Gt);function Kt(e){return Kt="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},Kt(e)}const Wt=function(e){return"object"===Kt(e)};const Ht=g(1,$t(Ut,Wt));var Yt=Pt(R,Mt("Object")),Xt=Pt(yt,C(yt(Object))),Zt=zt($t(Rt,Xt),["constructor"]);const Qt=g(1,(function(e){if(!Ht(e)||!Yt(e))return!1;var t=Object.getPrototypeOf(e);return!!Gt(t)||Zt(t)}));class er extends i.g${constructor(){super(),this.register("annotation",L),this.register("comment",B),this.register("parseResult",K),this.register("sourceMap",H)}}const tr=new er,rr=e=>{const t=new er;return Qt(e)&&t.use(e),t},nr=tr,sr=()=>({predicates:{...e},namespace:nr});const ir=g(1,Pt(R,Mt("String")));const or=class extends Ae{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},cr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},ar={},ur=e=>null==e?void 0:e.type,lr=e=>"string"==typeof ur(e),fr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),pr=(e,{visitFnGetter:t=cr,nodeTypeGetter:r=ur,breakSymbol:n=ar,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,f,p,h,v);if("function"==typeof(null==t?void 0:t.then))throw new or("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=c.call(e[s],h,o,u,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new or("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};pr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=cr,nodeTypeGetter:r=ur,breakSymbol:n=ar,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,f,p,h,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=await c.call(e[s],h,o,u,l,f,m);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};const hr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,nodeCloneFn:l=fr,detectCycles:f=!0}={})=>{const p=r||{};let h,m,d=Array.isArray(e),y=[e],v=-1,b=[],g=e;const E=[],j=[];do{v+=1;const e=v===y.length;let r;const w=e&&0!==b.length;if(e){if(r=0===j.length?void 0:E.pop(),g=m,m=j.pop(),w)if(d){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}v=h.index,y=h.keys,b=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],g=m[r],g===i||void 0===g)continue;E.push(r)}let S;if(!Array.isArray(g)){var x;if(!u(g))throw new or(`Invalid AST Node: ${String(g)}`,{node:g});if(f&&j.includes(g)){E.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,m,E,j):m&&(m[r]=t),e||(g=t)}};S=i.call(t,g,r,m,E,j,s)}if("function"==typeof(null===(x=S)||void 0===x?void 0:x.then))throw new or("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===s)break;if(S===o){if(!e){E.pop();continue}}else if(void 0!==S&&(b.push([r,S]),!e)){if(!u(S)){E.pop();continue}g=S}}var O;if(void 0===S&&w&&b.push([r,g]),!e)h={inArray:d,index:v,keys:y,edits:b,prev:h},d=Array.isArray(g),y=d?g:null!==(O=p[a(g)])&&void 0!==O?O:[],v=-1,b=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};hr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,nodeCloneFn:l=fr,detectCycles:f=!0}={})=>{const p=r||{};let h,m,d=Array.isArray(e),y=[e],v=-1,b=[],g=e;const E=[],j=[];do{v+=1;const e=v===y.length;let r;const O=e&&0!==b.length;if(e){if(r=0===j.length?void 0:E.pop(),g=m,m=j.pop(),O)if(d){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}v=h.index,y=h.keys,b=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],g=m[r],g===i||void 0===g)continue;E.push(r)}let w;if(!Array.isArray(g)){if(!u(g))throw new or(`Invalid AST Node: ${String(g)}`,{node:g});if(f&&j.includes(g)){E.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,m,E,j):m&&(m[r]=t),e||(g=t)}};w=await i.call(t,g,r,m,E,j,s)}if(w===s)break;if(w===o){if(!e){E.pop();continue}}else if(void 0!==w&&(b.push([r,w]),!e)){if(!u(w)){E.pop();continue}g=w}}var x;if(void 0===w&&O&&b.push([r,g]),!e)h={inArray:d,index:v,keys:y,edits:b,prev:h},d=Array.isArray(g),y=d?g:null!==(x=p[a(g)])&&void 0!==x?x:[],v=-1,b=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};const mr=class extends or{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const dr=class extends mr{};const yr=class extends mr{},vr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof i.KeyValuePair){const{key:t,value:s}=e,o=re(t)?vr(t,n):t,c=re(s)?vr(s,n):s,a=new i.KeyValuePair(o,c);return r.set(e,a),a}if(e instanceof i.ot){const t=e=>vr(e,n),s=[...e].map(t),o=new i.ot(s);return r.set(e,o),o}if(e instanceof i.G6){const t=e=>vr(e,n),s=[...e].map(t),o=new i.G6(s);return r.set(e,o),o}if(re(e)){const t=Er(e);if(r.set(e,t),e.content)if(re(e.content))t.content=vr(e.content,n);else if(e.content instanceof i.KeyValuePair)t.content=vr(e.content,n);else if(Array.isArray(e.content)){const r=e=>vr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new dr("Value provided to cloneDeep function couldn't be cloned",{value:e})};vr.safe=e=>{try{return vr(e)}catch{return e}};const br=e=>{const{key:t,value:r}=e;return new i.KeyValuePair(t,r)},gr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=vr(e.meta)),e.attributes.length>0&&(t._attributes=vr(e.attributes)),re(e.content)){const r=e.content;t.content=gr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof i.KeyValuePair?t.content=br(e.content):t.content=e.content;return t},Er=e=>{if(e instanceof i.KeyValuePair)return br(e);if(e instanceof i.ot)return(e=>{const t=[...e];return new i.ot(t)})(e);if(e instanceof i.G6)return(e=>{const t=[...e];return new i.G6(t)})(e);if(re(e))return gr(e);throw new yr("Value provided to cloneShallow function couldn't be cloned",{value:e})};Er.safe=e=>{try{return Er(e)}catch{return e}};const jr=e=>ce(e)?"ObjectElement":ae(e)?"ArrayElement":ue(e)?"MemberElement":ne(e)?"StringElement":oe(e)?"BooleanElement":se(e)?"NumberElement":ie(e)?"NullElement":le(e)?"LinkElement":fe(e)?"RefElement":void 0,xr=e=>re(e)?Er(e):fr(e),Or=Pt(jr,ir),wr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Sr=(e,t,{keyMap:r=wr,...n}={})=>hr(e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:Or,nodeCloneFn:xr,...n});Sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=wr,...n}={})=>hr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:Or,nodeCloneFn:xr,...n});const Ar={toolboxCreator:sr,visitorOptions:{nodeTypeGetter:jr,exposeEdits:!0}},kr=(e,t,r={})=>{if(0===t.length)return e;const n=Ce(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr(c.map(Le({},"visitor")),{...i});c.forEach(qt(["pre"],[]));const u=Sr(e,a,i);return c.forEach(qt(["post"],[])),u};kr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Ce(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr[Symbol.for("nodejs.util.promisify.custom")],u=Sr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(Le({},"visitor")),{...i});await Promise.allSettled(c.map(qt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(c.map(qt(["post"],[]))),f};const Pr=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return re(e)&&(e.meta.length>0&&(n.meta=vr(e.meta)),e.attributes.length>0&&(n.attributes=vr(e.attributes))),kr(n,r,{toolboxCreator:sr,visitorOptions:{nodeTypeGetter:jr}})},_r=e=>(t,r={})=>Pr(t,{...r,Type:e});i.Sh.refract=_r(i.Sh),i.wE.refract=_r(i.wE),i.Om.refract=_r(i.Om),i.bd.refract=_r(i.bd),i.Os.refract=_r(i.Os),i.kT.refract=_r(i.kT),i.Ft.refract=_r(i.Ft),i.sI.refract=_r(i.sI),L.refract=_r(L),B.refract=_r(B),K.refract=_r(K),H.refract=_r(H);class Mr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Nr=Mr;class Tr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Rr=Tr;class Fr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Ir=Fr;class Cr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const $r=Cr;const Vr=a((function(e,t){return We((function(r,n){return r[n]=e(t[n],n,t),r}),{},T(t))}));const Dr=c((function(e){return null==e}));var Lr=a((function(e,t){if(0===e.length||Dr(t))return!1;for(var r=t,n=0;n<e.length;){if(Dr(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Jr=Lr;var Br=a((function(e,t){return Jr([e],t)}));const qr=Br;const zr=Te((function(e,t,r){return e(De(t,r))}));const Gr=c((function(e){return g(e.length,e)}));const Ur=a((function(e,t){return g(e+1,(function(){var r=arguments[e];if(null!=r&&It(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(yt(r)+' does not have a method named "'+t+'"')}))}));const Kr=Ur(1,"split");var Wr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Hr(e){return function(t){return new Wr(e,t)}}const Yr=a(l(["dropWhile"],Hr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return ze(r,1/0,t)})));const Xr=Ur(1,"join");const Zr=Gr((function(e,t){return Pt(Kr(""),Yr(V(e)),Xr(""))(t)})),Qr=(e,t)=>{const r=$e(e,t);return Vr((e=>{if(Qt(e)&&qr("$ref",e)&&zr(ir,"$ref",e)){const t=Be(["$ref"],e),n=Zr("#/",t);return Be(n.split("/"),r)}return Qt(e)?Qr(e,r):e}),e)};const en=function(){return!0},tn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:jr(e),rn={EphemeralObject:["content"],EphemeralArray:["content"],...wr},nn=(e,t,{keyMap:r=rn,...n}={})=>Sr(e,t,{keyMap:r,nodeTypeGetter:tn,nodePredicate:en,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});nn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=rn,...r}={})=>Sr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:tn,nodePredicate:en,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const sn=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const on=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class cn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new on(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 sn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ne(e.href)?e.href.toValue():""}}const an=e=>re(e)?ne(e)||se(e)||oe(e)||ie(e)?e.toValue():nn(e,new cn):e,un=e=>{const t=e.meta.length>0?vr(e.meta):void 0,r=e.attributes.length>0?vr(e.attributes):void 0;return new e.constructor(void 0,t,r)},ln=(e,t)=>t.clone&&t.isMergeableElement(e)?pn(un(e),e,t):e,fn={clone:!0,isMergeableElement:e=>ce(e)||ae(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ln(e,r))),objectElementMerge:(e,t,r)=>{const n=ce(e)?un(e):un(t);return ce(e)&&e.forEach(((e,t,s)=>{const i=Er(s);i.value=ln(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=an(s);let c;if(ce(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Er(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return pn;const r=t.customMerge(e,t);return"function"==typeof r?r:pn})(s,r)(n,t)}else c=Er(i),c.value=ln(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},pn=(e,t,r)=>{var n,s,i;const o={...fn,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:fn.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:fn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:fn.objectElementMerge;const c=ae(t);if(!(c===ae(e)))return ln(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>vr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};pn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new i.Sh:e.reduce(((e,r)=>pn(e,r,t)),un(e[0]))};const hn=pn;const mn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hn(t.meta,e.meta),ve(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hn(t.attributes,e.attributes))}};const dn=class extends mn{enter(e){return this.element=vr(e),ar}},yn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},vn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:vn(r,[...t,r])},bn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>vn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=vn(s);for(let t of e){let e=vn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(yn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},gn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),En=(e,t)=>{const r=t.map((e=>vn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},jn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(En(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==En(n,e)||void 0!==t[n],get:(r,n)=>(En(n,e)||t)[n],set(t,r,n){const s=En(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),xn=null,On="copy",wn="copy",Sn="deep",An=new WeakMap,kn=e=>An.get(e),Pn=(e,t)=>{var r,n;const s=gn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=gn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},_n=(e,t)=>{var r,n,s,i;return{property:Pn(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Pn(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Mn=(e,t)=>{var r,n,s,i,o,c;return{class:gn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:_n(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:_n(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Nn=new Map,Tn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...vn(e.prototype).map((e=>e.constructor)),...null!==(t=kn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Nn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Mn(e,t)))},Rn=e=>{let t=Nn.get(e);return t||(t={},Nn.set(e,t)),t};function Fn(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=xn;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)yn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===wn?bn(s,o):(c=s,a=o,jn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===On?bn(e,null,["prototype"]):jn(e,Function.prototype));let u=o;if("none"!==Sn){const s="deep"===Sn?Tn(...e):((...e)=>{const t=e.map((e=>Rn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Mn(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}In(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),In(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,f;return l=u,f=e,An.set(l,f),u}const In=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Cn=c((function(e){return g(wt(vt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const $n=c((function(e){return!Lt(e)}));const Vn=a((function(e,t){return e||t}));var Dn=ct(g(1,$t(Ut,a((function(e,t){return It(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ot(Vn)(e,t)}))(Wt,Rt))));const Ln=Cn([ir,Dn,$n]);const Jn=a((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Bn=class extends mn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Be(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return zt(Rt,["visitors",...e],this.specObj)?Be(["visitors",...e],this.specObj):Be(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof dn&&(null==n?void 0:n.constructor)===dn?vr(t):(Sr(t,n,r),n.element)}};const qn=class extends Bn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ne(n)&&r.includes(an(n))&&!this.ignoredFields.includes(an(n))){const r=this.toRefractedElement([...t,"fixedFields",an(n)],e),o=new i.Pr(vr(n),r);this.copyMetaAndAttributes(s,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(an(n))||this.element.content.push(vr(s))})),this.copyMetaAndAttributes(e,this.element),ar}};const zn=class{parent;constructor({parent:e}){this.parent=e}},Gn=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nr||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Un=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rr||e(n)&&t("JSONReference",n)&&r("object",n))),Kn=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ir||e(n)&&t("media",n)&&r("object",n))),Wn=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $r||e(n)&&t("linkDescription",n)&&r("object",n)));class Hn extends(Fn(qn,zn,dn)){constructor(e){super(e),this.element=new Nr,this.specPath=q(["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,qn.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(G(this.parent)&&!ne(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Gn(this.parent)&&!ne(e.get("$schema"))){const e=$e(an(this.parent.meta.get("inheritedDialectIdentifier")),an(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?vr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new i.wE,n=an(e.get(t));Ln(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Yn=Hn,Xn=e=>ce(e)&&e.hasKey("$ref");class Zn extends(Fn(Bn,zn,dn)){ObjectElement(e){const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ar}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const Qn=Zn;const es=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ts=function(){return!1};const rs=class extends Bn{specPath;ignoredFields;fieldPatternPredicate=ts;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(an(t))&&this.fieldPatternPredicate(an(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),o=new i.Pr(vr(t),s);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(an(t))||this.element.content.push(vr(r))})),this.copyMetaAndAttributes(e,this.element),ar}};const ns=class extends rs{constructor(e){super(e),this.fieldPatternPredicate=Ln}};class ss extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const is=ss;class os extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cs=os;class as extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const us=as;const ls=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const fs=class extends dn{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ps extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const hs=ps;class ms extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const ds=ms;class ys extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const vs=ys;class bs extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const gs=bs;class Es extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),ar}}const js=Es;class xs extends(Fn(qn,dn)){constructor(e){super(e),this.element=new Rr,this.specPath=q(["document","objects","JSONReference"])}ObjectElement(e){const t=qn.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Os=xs;const ws=class extends dn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Ss=Te((function(e,t,r){return g(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const As=c((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var ks=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ps=ks;const _s=c((function(e){return je(0,e)}));const Ms=c(f);const Ns=ct(Dr);const Ts=$t(Jt,$n);function Rs(e){return function(e){if(Array.isArray(e))return Fs(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 Fs(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fs(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 Fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Is=Pt(Ps(As((function(e,t){return e.length>t.length}))),_s,De("length")),Cs=Gr((function(e,t,r){var n=r.apply(void 0,Rs(e));return Ns(n)?Ms(n):t}));const $s=Ss(Ts,(function(e){var t=Is(e);return g(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wt(Cs(r),void 0,e)}))}),z);const Vs=class extends Bn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ss(e,q(t),z))),r=$s(t)(e);return this.element=this.toRefractedElement(r,e),ar}};const Ds=class extends Vs{constructor(e){super(e),this.alternator=[{predicate:Xn,specPath:["document","objects","JSONReference"]},{predicate:en,specPath:["document","objects","JSONSchema"]}]}};class Ls extends(Fn(qn,dn)){constructor(e){super(e),this.element=new Ir,this.specPath=q(["document","objects","Media"])}}const Js=Ls;class Bs extends(Fn(qn,dn)){constructor(e){super(e),this.element=new $r,this.specPath=q(["document","objects","LinkDescription"])}}const qs={visitors:{value:dn,JSONSchemaOrJSONReferenceVisitor:Ds,document:{objects:{JSONSchema:{$visitor:Yn,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:Ds,items:Qn,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:es,properties:is,additionalProperties:Ds,patternProperties:cs,dependencies:us,enum:ls,type:fs,allOf:hs,anyOf:ds,oneOf:vs,not:Ds,definitions:gs,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:js,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Os,fixedFields:{$ref:ws}},Media:{$visitor:Js,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Bs,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ds,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ds}}}}}},zs=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gs={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wr},Us={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Nr),t.register("jSONReference",Rr),t.register("media",Ir),t.register("linkDescription",$r),t}},Ks=()=>{const e=rr(Us);return{predicates:{...t,isStringElement:ne},namespace:e}},Ws=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=qs}={})=>{const s=(0,i.e)(e),o=Qr(n),c=new(Be(t,o))({specObj:o});return Sr(s,c),kr(c.element,r,{toolboxCreator:Ks,visitorOptions:{keyMap:Gs,nodeTypeGetter:zs}})},Hs=e=>(t,r={})=>Ws(t,{specPath:e,...r});Nr.refract=Hs(["visitors","document","objects","JSONSchema","$visitor"]),Rr.refract=Hs(["visitors","document","objects","JSONReference","$visitor"]),Ir.refract=Hs(["visitors","document","objects","Media","$visitor"]),$r.refract=Hs(["visitors","document","objects","LinkDescription","$visitor"]);const Ys=class extends Nr{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new ke("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new ke("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)}};const Xs=class extends $r{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 ke("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new ke("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 ke("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new ke("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new ke("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new ke("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}},Zs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Ys),t.register("jSONReference",Rr),t.register("media",Ir),t.register("linkDescription",Xs),t}},Qs=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ei={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wr},ti={JSONSchemaDraft6Element:{additionalItems:(...e)=>new Ys(...e),items:(...e)=>new Ys(...e),contains:(...e)=>new Ys(...e),required(...e){const t=new i.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Ys(...e),patternProperties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new Ys(...e),enum(...e){const t=new i.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Ys(...e),definitions(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new i.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new i.wE(...e);return t.classes.push("json-schema-links"),t},media:(...e)=>new Ir(...e)},LinkDescriptionElement:{hrefSchema:(...e)=>new Ys(...e),targetSchema:(...e)=>new Ys(...e),submissionSchema:(...e)=>new Ys(...e)},"json-schema-properties":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-links":{"<*>":function(...e){return new Xs(...e)}}},ri=(e,t)=>{const r=Qs(e),n=ti[r]||ti[an(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},ni=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>ne(e)&&ge(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(re),o=i[i.length-1];let c,a;return ae(o)?(a=e,c=ri(o,"<*>")):ue(o)&&(a=i[i.length-2],c=ri(a,an(o.key))),"function"==typeof c?c.call({context:a},void 0,vr(e.meta),vr(e.attributes)):void 0}}});var si=Te((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Dr(n)&&O(s,n)&&"object"==typeof n[s]?n[s]:Ve(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ve(e)&&u(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const ii=si;const oi=Te((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var ci=Te((function(e,t,r){return ii([e],t,r)}));const ai=ci;var ui=a((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Ve(e)&&u(t))return oi(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(Ve(e)&&u(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ai(n,e(s,r[n]),r)}}));const li=ui;class fi extends(Fn(qn,zn,dn)){constructor(e){super(e),this.specPath=q(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}ObjectElement(e){return this.element=new Ys,this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,qn.prototype.ObjectElement.call(this,e)}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleDialectIdentifier(e){return Yn.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e,t="$id"){return Yn.prototype.handleSchemaIdentifier.call(this,e,t)}}const pi=fi;class hi extends(Fn(Bn,zn,dn)){ObjectElement(e){const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ar}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ar}}const mi=hi;const di=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};class yi extends(Fn(qn,dn)){constructor(e){super(e),this.element=new Xs,this.specPath=q(["document","objects","LinkDescription"])}}const vi=yi,bi=Pt(ii(["visitors","document","objects","JSONSchema","$visitor"],pi),li(["visitors","document","objects","JSONSchema","fixedFields","id"]),ii(["visitors","document","objects","JSONSchema","fixedFields","$id"],qs.visitors.value),ii(["visitors","document","objects","JSONSchema","fixedFields","contains"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","items"],mi),ii(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","const"],qs.visitors.value),ii(["visitors","document","objects","JSONSchema","fixedFields","examples"],di),ii(["visitors","document","objects","LinkDescription","$visitor"],vi),ii(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),li(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),li(["visitors","document","objects","LinkDescription","fixedFields","method"]),li(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],qs.visitors.value))(qs),gi=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),Ei=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xs||e(n)&&t("linkDescription",n)&&r("object",n))),ji=()=>{const e=rr(Zs);return{predicates:{...s,isStringElement:ne},namespace:e}},xi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bi}={})=>{const s=(0,i.e)(e),o=Qr(n),c=new(Be(t,o))({specObj:o});return Sr(s,c),kr(c.element,r,{toolboxCreator:ji,visitorOptions:{keyMap:ei,nodeTypeGetter:Qs}})},Oi=e=>(t,r={})=>xi(t,{specPath:e,...r}),wi=xi})(),n})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft6=t():e.apidomNsJSONSchemaDraft6=t()}(self,(()=>(()=>{var e={85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),f=r(1811),p=r(3999),h=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,b=o.CONFIGURABLE,g=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,x=m("iterator"),j="keys",w="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,A){a(r,t,o);var k,P,_,M=function(e){if(e===m&&F)return F;if(!E&&e&&e in R)return R[e];switch(e){case j:case w:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",T=!1,R=e.prototype,I=R[x]||R["@@iterator"]||m&&R[m],F=!E&&I||M(m),C="Array"===t&&R.entries||I;if(C&&(k=u(C.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===g||(l?l(k,g):c(k[x])||h(k,x,S)),f(k,N,!0,!0),i&&(d[N]=S)),v&&m===w&&I&&I.name!==w&&(!i&&b?p(R,"name",w):(T=!0,F=function(){return s(I,this)})),m)if(P={values:M(w),keys:y?F:M(j),entries:M(O)},A)for(_ in P)(E||T||!(_ in R))&&h(R,_,P[_]);else n({target:t,proto:!0,forced:E||T},P);return i&&!A||R[x]===F||h(R,x,F,{name:m}),d[t]=F,P}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),f=r(967),p=r(1743),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,v,b,g,E,x,j,w=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=n(t,w),_=function(e){return y&&p(y,"normal",e),new m(!0,e)},M=function(e){return O?(i(e),k?P(e[0],e[1],_):P(e[0],e[1])):k?P(e,_):P(e)};if(S)y=e.iterator;else if(A)y=e;else{if(!(v=f(e)))throw new h(o(e)+" is not iterable");if(c(v)){for(b=0,g=a(e);g>b;b++)if((E=M(e[b]))&&u(d,E))return E;return new m(!1)}y=l(e,v)}for(x=S?e.next:y.next;!(j=s(x,y)).done;){try{E=M(j.value)}catch(e){p(y,"throw",e)}if("object"==typeof E&&E&&u(d,E))return E}return new m(!1)}},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var b=a(e),g=a(t),E=b?p:c(e),x=g?p:c(t),j=(E=E==f?h:E)==h,w=(x=x==f?h:x)==h,O=E==x;if(O&&u(e)){if(!u(t))return!1;b=!0,j=!1}if(O&&!j)return v||(v=new n),b||l(e)?s(e,t,r,d,y,v):i(e,t,E,r,d,y,v);if(!(1&r)){var S=j&&m.call(e,"__wrapped__"),A=w&&m.call(t,"__wrapped__");if(S||A){var k=S?e.value():e,P=A?t.value():t;return v||(v=new n),y(k,P,r,d,v)}}return!!O&&(v||(v=new n),o(e,t,r,d,y,v))}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),f=!r&&!l&&o(e),p=!r&&!l&&!f&&a(e),h=r||l||f||p,m=h?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var f=l;f--;){var p=u[f];if(!(a?p in t:s.call(t,p)))return!1}var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++f<l;){var v=e[p=u[f]],b=t[p];if(i)var g=a?i(b,v,p,t,e,c):i(v,b,p,e,t,c);if(!(void 0===g?v===b||o(v,b,r,i,c):g)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var E=e.constructor,x=t.constructor;E==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof x&&x instanceof x||(d=!1)}return c.delete(e),c.delete(t),d}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),f=r(3508),p=r(8655),h=r(4871),m=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:h&&(n=u(n)),c(n[m])||f(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),f=r(8148),p=r(4279),h=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,b=function(e,t){var r,n=s(g,this);o?r=o(new y,n?i(this):g):(r=n?this:a(g),u(r,d,"Error")),void 0!==t&&u(r,"message",m(t)),p(r,b,r.stack,1),arguments.length>2&&f(r,arguments[2]);var c=[];return h(e,v,{that:c}),u(r,"errors",c),r};o?o(b,y):c(b,y,{name:!0});var g=b.prototype=a(y.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{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 r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}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(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(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,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var v=e[m],b=t[m];if(o)var g=u?o(b,v,m,t,e,a):o(v,b,m,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==b&&!c(v,b,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=a(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(o(t)),p=s(r),h=f.length;return p<0||p>=h?e?"":void 0:(n=a(f,p))<55296||n>56319||p+1===h||(l=a(f,p+1))<56320||l>57343?e?c(f,p):n:e?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),f="prototype",p="script",h=l("IE_PROTO"),m=function(){},d=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+p+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[f]=s(e),r=new m,m[f]=null,r[h]=e):r=v(),void 0===t?r:i.f(r,t)}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),f=r(4879),p=r(8148),h=r(4279),m=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",b=y?2:1,g=e.split("."),E=g[g.length-1],x=n.apply(null,g);if(x){var j=x.prototype;if(!d&&s(j,"cause")&&delete j.cause,!r)return x;var w=n("Error"),O=t((function(e,t){var r=f(y?t:e,void 0),n=y?new x(e):new x;return void 0!==r&&i(n,"message",r),h(n,O,n.stack,2),this&&o(j,this)&&l(n,this,O),arguments.length>b&&p(n,arguments[b]),n}));if(O.prototype=j,"Error"!==E?c?c(O,w):a(O,w,{name:!0}):m&&v in x&&(u(O,x,v),u(O,x,"prepareStackTrace")),a(O,x),!d)try{j.name!==E&&i(j,"name",E),j.constructor=O}catch(e){}return O}}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),f=r(5024),p="Array Iterator",h=o.set,m=o.getterFor(p);e.exports=a(Array,"Array",(function(e,t){h(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var f=c[l];n(e,f)||r&&n(r,f)||a(e,f,u(t,f))}}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),f=r(9620),p=r(593),h=r(4123),m=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=y,h.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:y,ArraySlice:h,ObjectSlice:m,KeyValuePair:d}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),f=r(3753),p=r(4275),h=r(5241),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(m);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var b=p("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new d(m);return t.facade=e,u(e,b,t),t},s=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),b=u(o),g=u(c),E=a;(n&&E(new n(new ArrayBuffer(1)))!=m||s&&E(new s)!=l||i&&E(i.resolve())!=f||o&&E(new o)!=p||c&&E(new c)!=h)&&(E=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case b:return p;case g:return h}return t}),e.exports=E},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),f=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var m=1&n;if(h||(h=a),e.size!=t.size&&!m)return!1;var d=p.get(e);if(d)return d==t;n|=2,p.set(e,t);var y=o(h(e),h(t),n,u,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),f=r(3999),p=r(701);r(3753);var h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,v,b,g,E,x=e.target,j=e.global,w=e.stat,O=e.proto,S=j?n:w?n[x]:n[x]&&n[x].prototype,A=j?u:u[x]||f(u,x,{})[x],k=A.prototype;for(d in t)s=!(r=a(j?d:x+(w?".":"#")+d,e.forced))&&S&&p(S,d),v=A[d],s&&(b=e.dontCallGetSet?(E=c(S,d))&&E.value:S[d]),y=s&&b?b:t[d],(r||O||typeof v!=typeof y)&&(g=e.bind&&s?l(y,n):e.wrap&&s?h(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(g,"sham",!0),f(A,d,g),O&&(p(u,m=x+"Prototype")||f(u,m,{}),f(u[m],d,y),e.real&&k&&(r||!k[d])&&f(k,d,y)))}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?p:c).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Cs,FallbackVisitor:()=>hn,FixedFieldsVisitor:()=>Jn,ItemsVisitor:()=>ui,JSONReferenceElement:()=>Kr,JSONSchemaDraft6MediaTypes:()=>ke,JSONSchemaElement:()=>Hs,JSONSchemaVisitor:()=>ai,LinkDescriptionElement:()=>Ys,LinkDescriptionVisitor:()=>fi,MapVisitor:()=>ts,MediaElement:()=>Hr,ParentSchemaAwareVisitor:()=>Bn,PatternedFieldsVisitor:()=>es,SpecificationVisitor:()=>Ln,Visitor:()=>pn,createRefractor:()=>bi,default:()=>Xs,getNodeType:()=>zs,isArrayElement:()=>oe,isBooleanElement:()=>se,isElement:()=>ee,isJSONReferenceElement:()=>qn,isJSONReferenceLikeElement:()=>Hn,isJSONSchemaElement:()=>mi,isLinkDescriptionElement:()=>di,isLinkElement:()=>ae,isMediaElement:()=>Gn,isMemberElement:()=>ce,isNullElement:()=>ne,isNumberElement:()=>re,isObjectElement:()=>ie,isRefElement:()=>ue,isStringElement:()=>te,keyMap:()=>hi,mediaTypes:()=>Pe,refract:()=>gi,refractorPluginReplaceEmptyElement:()=>ei,specificationObj:()=>pi});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>me,includesClasses:()=>ye,includesSymbols:()=>de,isAnnotationElement:()=>le,isArrayElement:()=>oe,isBooleanElement:()=>se,isCommentElement:()=>fe,isElement:()=>ee,isLinkElement:()=>ae,isMemberElement:()=>ce,isNullElement:()=>ne,isNumberElement:()=>re,isObjectElement:()=>ie,isParseResultElement:()=>pe,isPrimitiveElement:()=>he,isRefElement:()=>ue,isStringElement:()=>te});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>qn,isJSONSchemaElement:()=>zn,isLinkDescriptionElement:()=>Un,isMediaElement:()=>Gn});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>qn,isJSONSchemaElement:()=>mi,isLinkDescriptionElement:()=>di,isMediaElement:()=>Gn});var i=r(8326);function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t){return e(r,t)}));default:return o(r)&&o(n)?t:o(r)?c((function(t){return e(t,n)})):o(n)?c((function(t){return e(r,t)})):e(r,n)}}}const u=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function l(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!u(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function f(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const p=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var m=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=p,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=f(this.xf["@@transducer/step"](e,!1))),e},e}();function d(e){return function(t){return new m(e,t)}}const y=a(l(["all"],d,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var n=[],s=0,i=e,c=0,a=!1;c<t.length||s<arguments.length;){var u;c<t.length&&(!o(t[c])||s>=arguments.length)?u=t[c]:(u=arguments[s],s+=1),n[c]=u,o(u)?a=!0:i-=1,c+=1}return!a&&i<=0?r.apply(this,n):v(Math.max(0,i),b(e,n,r))}}const g=a((function(e,t){return 1===e?c(t):v(e,b(e,[],t))}));const E=c((function(e){return g(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function x(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function j(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const O="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const A=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return w("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},N="function"!=typeof Object.keys||_?c((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=_&&A(e);for(t in e)!w(t,e)||s&&"length"===t||(n[n.length]=t);if(k)for(r=P.length-1;r>=0;)w(t=P[r],e)&&!M(n,t)&&(n[n.length]=t),r-=1;return n})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T=N;const R=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function I(e,t,r,n){var s=x(e);function i(e,t){return F(e,t,r.slice(),n.slice())}return!j((function(e,t){return!j(i,t,e)}),x(t),s)}function F(e,t,r,n){if(O(e,t))return!0;var s,i,o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!O(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!O(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=T(e);if(a.length!==T(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var f=a[c];if(!w(f,t)||!F(t[f],e[f],u,l))return!1;c-=1}return!0}const C=a((function(e,t){return F(e,t,[],[])}));function V(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(C(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const $=E(a(V));class D extends i.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const L=D;class J extends i.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const B=J;const z=c((function(e){return function(){return e}}));const q=z(void 0);const G=C(q());class U extends i.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(G(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const K=U,W=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],H=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Y=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),X=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof i.wE)&&t.classes.includes(e),Z=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Q=e=>e({hasMethod:W,hasBasicElementProps:H,primitiveEq:Y,isElementType:Z,hasClass:X}),ee=Q((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Hg||e(r)&&t(void 0,r))),te=Q((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Om||e(r)&&t("string",r))),re=Q((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.kT||e(r)&&t("number",r))),ne=Q((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Os||e(r)&&t("null",r))),se=Q((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.bd||e(r)&&t("boolean",r))),ie=Q((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),oe=Q((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.wE&&!(n instanceof i.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ce=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Pr||e(n)&&t("member",n)&&r(void 0,n))),ae=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Ft||e(n)&&t("link",n)&&r(void 0,n))),ue=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.sI||e(n)&&t("ref",n)&&r(void 0,n))),le=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof L||e(n)&&t("annotation",n)&&r("array",n))),fe=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof B||e(n)&&t("comment",n)&&r("string",n))),pe=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&r("array",n))),he=e=>Z("object",e)||Z("array",e)||Z("boolean",e)||Z("number",e)||Z("string",e)||Z("null",e)||Z("member",e),me=e=>!!ee(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)),de=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!oe(r)&&y($(r.toValue()),e)},ye=(e,t)=>0===e.length||y($(t.classes.toValue()),e);function ve(e){return"[object String]"===Object.prototype.toString.call(e)}function be(e,t){var r=e<0?t.length+e:e;return ve(t)?t.charAt(r):t[r]}const ge=c((function(e){return be(-1,e)}));var Ee=r(1212);const xe=class extends Ee{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class je extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(xe,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const we=je;const Oe=class extends we{};const Se=class extends Oe{};const Ae=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Se("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Se("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Se("latest method in MediaTypes class is not yet implemented.")}};class ke extends Ae{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-06",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return ge(this.filterByFormat(e))}}const Pe=new ke("application/schema;version=draft-06","application/schema+json;version=draft-06","application/schema+yaml;version=draft-06");function _e(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t,n){return e(r,t,n)}));case 2:return o(r)&&o(n)?t:o(r)?a((function(t,r){return e(t,n,r)})):o(n)?a((function(t,n){return e(r,t,n)})):c((function(t){return e(r,n,t)}));default:return o(r)&&o(n)&&o(s)?t:o(r)&&o(n)?a((function(t,r){return e(t,r,s)})):o(r)&&o(s)?a((function(t,r){return e(t,n,r)})):o(n)&&o(s)?a((function(t,n){return e(r,t,n)})):o(r)?c((function(t){return e(t,n,s)})):o(n)?c((function(t){return e(r,t,s)})):o(s)?c((function(t){return e(r,n,t)})):e(r,n,s)}}}function Me(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ne=_e((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})w(n,t)&&(s[n]=w(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)w(n,r)&&!w(n,s)&&(s[n]=r[n]);return s}));const Te=_e((function e(t,r,n){return Ne((function(r,n,s){return Me(n)&&Me(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Re=a((function(e,t){return Te((function(e,t,r){return r}),e,t)}));const Ie=a((function(e,t){return null==t||t!=t?e:t})),Fe=Number.isInteger||function(e){return(e|0)===e};const Ce=a((function(e,t){if(null!=t)return Fe(e)?be(e,t):t[e]}));const Ve=_e((function(e,t,r){return Ie(e,Ce(t,r))}));function $e(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Fe(s)?be(s,r):r[s]}return r}const De=a($e);function Le(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return u(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Je=_e(Le("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Be=Je(0,-1);const ze=a((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));const qe=a((function(e,t){return e.apply(this,t)}));function Ge(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const Ue=c((function(e){return!!u(e)||!!e&&("object"==typeof e&&(!ve(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ke="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function We(e,t,r){return function(n,s,i){if(Ue(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Ke])return r(n,s,i[Ke]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function He(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Ye(e,t,r,n){return r[n](e,t)}const Xe=We(Ge,Ye,He);function Ze(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var Qe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const et=a(l(["fantasy-land/map","map"],(function(e){return function(t){return new Qe(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return g(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ge((function(r,n){return r[n]=e(t[n]),r}),{},T(t));default:return Ze(e,t)}})));const tt=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:Xe((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,et(r,t))}),[],e)}));const rt=a((function(e,t){var r=g(e,t);return g(e,(function(){return Ge(tt,et(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const nt=c((function(e){return rt(e.length,e)}));const st=nt(c((function(e){return!e})));function it(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 ot=function(e){return(e<10?"0":"")+e};const ct="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ot(e.getUTCMonth()+1)+"-"+ot(e.getUTCDate())+"T"+ot(e.getUTCHours())+":"+ot(e.getUTCMinutes())+":"+ot(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var at=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function ut(e){return function(t){return new at(e,t)}}const lt=a(l(["fantasy-land/filter","filter"],ut,(function(e,t){return Me(t)?Ge((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},T(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const ft=a((function(e,t){return lt((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function pt(e,t){var r=function(r){var n=t.concat([e]);return V(r,n)?"<Circular>":pt(r,n)},n=function(e,t){return Ze((function(t){return it(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ze(r,e).join(", ")+"))";case"[object Array]":return"["+Ze(r,e).concat(n(e,ft((function(e){return/^\d+$/.test(e)}),T(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):it(ct(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":it(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,T(e)).join(", ")+"}"}}const ht=c((function(e){return pt(e,[])}));const mt=a((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=ht(e),o=r(i,ht(t));return void 0!==o&&o===i?e:t}));const dt=a((function(e,t){return et(Ce(e),t)}));function yt(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function vt(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function bt(e,t,r,n){return e["@@transducer/result"](r[n](ze(e["@@transducer/step"],e),t))}const gt=We(yt,bt,vt);var Et=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const xt=_e((function(e,t,r){return gt("function"==typeof e?new Et(e):e,t,r)}));const jt=c((function(e){return g(xt(mt,0,dt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function wt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Ot=c(Le("tail",Je(1,1/0)));function St(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,xt(wt,arguments[0],Ot(arguments)))}var At=function(e,t){switch(arguments.length){case 0:return At;case 1:return function t(r){return 0===arguments.length?t:O(e,r)};default:return O(e,t)}};const kt=At;const Pt=g(1,St(R,kt("GeneratorFunction")));const _t=g(1,St(R,kt("AsyncFunction")));const Mt=jt([St(R,kt("Function")),Pt,_t]);const Nt=st(Mt);function Tt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Rt=a((function(e,t){return e&&t}));const It=a((function(e,t){return Tt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:nt(Rt)(e,t)}));var Ft=c((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():u(e)?[]:ve(e)?"":Me(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ct=Ft;const Vt=c((function(e){return null!=e&&C(e,Ct(e))}));const $t=g(1,Mt(Array.isArray)?Array.isArray:St(R,kt("Array")));const Dt=It($t,Vt);const Lt=g(3,(function(e,t,r){var n=De(e,r),s=De(Be(e),r);if(!Nt(n)&&!Dt(e)){var i=ze(n,s);return qe(i,t)}}));const Jt=_e((function(e,t,r){return e($e(t,r))}));const Bt=C(null);const zt=st(Bt);function qt(e){return qt="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},qt(e)}const Gt=function(e){return"object"===qt(e)};const Ut=g(1,It(zt,Gt));var Kt=St(R,kt("Object")),Wt=St(ht,C(ht(Object))),Ht=Jt(It(Mt,Wt),["constructor"]);const Yt=g(1,(function(e){if(!Ut(e)||!Kt(e))return!1;var t=Object.getPrototypeOf(e);return!!Bt(t)||Ht(t)}));class Xt extends i.g${constructor(){super(),this.register("annotation",L),this.register("comment",B),this.register("parseResult",K)}}const Zt=new Xt,Qt=e=>{const t=new Xt;return Yt(e)&&t.use(e),t},er=Zt,tr=()=>({predicates:{...e},namespace:er});const rr=g(1,St(R,kt("String")));const nr=class extends we{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},sr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},ir={},or=e=>null==e?void 0:e.type,cr=e=>"string"==typeof or(e),ar=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ur=(e,{visitFnGetter:t=sr,nodeTypeGetter:r=or,breakSymbol:n=ir,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,f,p,h,v);if("function"==typeof(null==t?void 0:t.then))throw new nr("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=c.call(e[s],h,o,u,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new nr("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};ur[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=sr,nodeTypeGetter:r=or,breakSymbol:n=ir,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,f,p,h,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=await c.call(e[s],h,o,u,l,f,m);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};const lr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ir,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=sr,nodeTypeGetter:a=or,nodePredicate:u=cr,nodeCloneFn:l=ar,detectCycles:f=!0,detectCyclesCallback:p=null}={})=>{const h=r||{};let m,d,y=Array.isArray(e),v=[e],b=-1,g=[],E=e;const x=[],j=[];do{b+=1;const e=b===v.length;let r;const S=e&&0!==g.length;if(e){if(r=0===j.length?void 0:x.pop(),E=d,d=j.pop(),S)if(y){E=E.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(E.splice(n,1),e+=1):E[n]=r}}else{E=l(E);for(const[e,t]of g)E[e]=t}b=m.index,v=m.keys,g=m.edits,y=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=y?b:v[b],E=d[r],E===i||void 0===E)continue;x.push(r)}let A;if(!Array.isArray(E)){var w;if(!u(E))throw new nr(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&j.includes(E)){"function"==typeof p&&p(E,r,d,x,j),x.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,d,x,j):d&&(d[r]=t),e||(E=t)}};A=i.call(t,E,r,d,x,j,s)}if("function"==typeof(null===(w=A)||void 0===w?void 0:w.then))throw new nr("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(A===s)break;if(A===o){if(!e){x.pop();continue}}else if(void 0!==A&&(g.push([r,A]),!e)){if(!u(A)){x.pop();continue}E=A}}var O;if(void 0===A&&S&&g.push([r,E]),!e)m={inArray:y,index:b,keys:v,edits:g,prev:m},y=Array.isArray(E),v=y?E:null!==(O=h[a(E)])&&void 0!==O?O:[],b=-1,g=[],d!==i&&void 0!==d&&j.push(d),d=E}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};lr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ir,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=sr,nodeTypeGetter:a=or,nodePredicate:u=cr,nodeCloneFn:l=ar,detectCycles:f=!0,detectCyclesCallback:p=null}={})=>{const h=r||{};let m,d,y=Array.isArray(e),v=[e],b=-1,g=[],E=e;const x=[],j=[];do{b+=1;const e=b===v.length;let r;const O=e&&0!==g.length;if(e){if(r=0===j.length?void 0:x.pop(),E=d,d=j.pop(),O)if(y){E=E.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(E.splice(n,1),e+=1):E[n]=r}}else{E=l(E);for(const[e,t]of g)E[e]=t}b=m.index,v=m.keys,g=m.edits,y=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=y?b:v[b],E=d[r],E===i||void 0===E)continue;x.push(r)}let S;if(!Array.isArray(E)){if(!u(E))throw new nr(`Invalid AST Node: ${String(E)}`,{node:E});if(f&&j.includes(E)){"function"==typeof p&&p(E,r,d,x,j),x.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,d,x,j):d&&(d[r]=t),e||(E=t)}};S=await i.call(t,E,r,d,x,j,s)}if(S===s)break;if(S===o){if(!e){x.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){x.pop();continue}E=S}}var w;if(void 0===S&&O&&g.push([r,E]),!e)m={inArray:y,index:b,keys:v,edits:g,prev:m},y=Array.isArray(E),v=y?E:null!==(w=h[a(E)])&&void 0!==w?w:[],b=-1,g=[],d!==i&&void 0!==d&&j.push(d),d=E}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};const fr=class extends nr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pr=class extends fr{};const hr=class extends fr{};const mr=a((function(e,t){return Ge((function(r,n){return r[n]=e(t[n],n,t),r}),{},T(t))}));const dr=c((function(e){return null==e}));var yr=a((function(e,t){if(0===e.length||dr(t))return!1;for(var r=t,n=0;n<e.length;){if(dr(r)||!w(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const vr=yr;var br=a((function(e,t){return vr([e],t)}));const gr=br;const Er=_e((function(e,t,r){return e(Ce(t,r))}));const xr=c((function(e){return g(e.length,e)}));const jr=a((function(e,t){return g(e+1,(function(){var r=arguments[e];if(null!=r&&Tt(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ht(r)+' does not have a method named "'+t+'"')}))}));const wr=jr(1,"split");var Or=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Sr(e){return function(t){return new Or(e,t)}}const Ar=a(l(["dropWhile"],Sr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Je(r,1/0,t)})));const kr=jr(1,"join");const Pr=xr((function(e,t){return St(wr(""),Ar($(e)),kr(""))(t)})),_r=(e,t)=>{const r=Ie(e,t);return mr((e=>{if(Yt(e)&&gr("$ref",e)&&Er(rr,"$ref",e)){const t=De(["$ref"],e),n=Pr("#/",t);return De(n.split("/"),r)}return Yt(e)?_r(e,r):e}),e)},Mr=(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),Nr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof i.KeyValuePair){const{key:t,value:s}=e,o=ee(t)?Nr(t,n):t,c=ee(s)?Nr(s,n):s,a=new i.KeyValuePair(o,c);return r.set(e,a),a}if(e instanceof i.ot){const t=e=>Nr(e,n),s=[...e].map(t),o=new i.ot(s);return r.set(e,o),o}if(e instanceof i.G6){const t=e=>Nr(e,n),s=[...e].map(t),o=new i.G6(s);return r.set(e,o),o}if(ee(e)){const t=Ir(e);if(r.set(e,t),e.content)if(ee(e.content))t.content=Nr(e.content,n);else if(e.content instanceof i.KeyValuePair)t.content=Nr(e.content,n);else if(Array.isArray(e.content)){const r=e=>Nr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new pr("Value provided to cloneDeep function couldn't be cloned",{value:e})};Nr.safe=e=>{try{return Nr(e)}catch{return e}};const Tr=e=>{const{key:t,value:r}=e;return new i.KeyValuePair(t,r)},Rr=e=>{const t=new e.constructor;if(t.element=e.element,me(e)&&Mr(t,e),e.meta.length>0&&(t._meta=Nr(e.meta)),e.attributes.length>0&&(t._attributes=Nr(e.attributes)),ee(e.content)){const r=e.content;t.content=Rr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof i.KeyValuePair?t.content=Tr(e.content):t.content=e.content;return t},Ir=e=>{if(e instanceof i.KeyValuePair)return Tr(e);if(e instanceof i.ot)return(e=>{const t=[...e];return new i.ot(t)})(e);if(e instanceof i.G6)return(e=>{const t=[...e];return new i.G6(t)})(e);if(ee(e))return Rr(e);throw new hr("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ir.safe=e=>{try{return Ir(e)}catch{return e}};const Fr=e=>ie(e)?"ObjectElement":oe(e)?"ArrayElement":ce(e)?"MemberElement":te(e)?"StringElement":se(e)?"BooleanElement":re(e)?"NumberElement":ne(e)?"NullElement":ae(e)?"LinkElement":ue(e)?"RefElement":void 0,Cr=e=>ee(e)?Ir(e):ar(e),Vr=St(Fr,rr),$r={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Dr=(e,t,{keyMap:r=$r,...n}={})=>lr(e,t,{keyMap:r,nodeTypeGetter:Fr,nodePredicate:Vr,nodeCloneFn:Cr,...n});Dr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=$r,...n}={})=>lr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Fr,nodePredicate:Vr,nodeCloneFn:Cr,...n});const Lr={toolboxCreator:tr,visitorOptions:{nodeTypeGetter:Fr,exposeEdits:!0}},Jr=(e,t,r={})=>{if(0===t.length)return e;const n=Re(Lr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=ur(c.map(Ve({},"visitor")),{...i});c.forEach(Lt(["pre"],[]));const u=Dr(e,a,i);return c.forEach(Lt(["post"],[])),u};Jr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Re(Lr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=ur[Symbol.for("nodejs.util.promisify.custom")],u=Dr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(Ve({},"visitor")),{...i});await Promise.allSettled(c.map(Lt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(c.map(Lt(["post"],[]))),f};const Br=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return ee(e)&&(e.meta.length>0&&(n.meta=Nr(e.meta)),e.attributes.length>0&&(n.attributes=Nr(e.attributes))),Jr(n,r,{toolboxCreator:tr,visitorOptions:{nodeTypeGetter:Fr}})},zr=e=>(t,r={})=>Br(t,{...r,Type:e});i.Sh.refract=zr(i.Sh),i.wE.refract=zr(i.wE),i.Om.refract=zr(i.Om),i.bd.refract=zr(i.bd),i.Os.refract=zr(i.Os),i.kT.refract=zr(i.kT),i.Ft.refract=zr(i.Ft),i.sI.refract=zr(i.sI),L.refract=zr(L),B.refract=zr(B),K.refract=zr(K);class qr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Gr=qr;class Ur extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Kr=Ur;class Wr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Hr=Wr;class Yr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Xr=Yr;const Zr=function(){return!0},Qr=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Fr(e),en={EphemeralObject:["content"],EphemeralArray:["content"],...$r},tn=(e,t,{keyMap:r=en,...n}={})=>Dr(e,t,{keyMap:r,nodeTypeGetter:Qr,nodePredicate:Zr,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});tn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=en,...r}={})=>Dr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Qr,nodePredicate:Zr,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const rn=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const nn=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class sn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new nn(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 rn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return te(e.href)?e.href.toValue():""}}const on=e=>ee(e)?te(e)||re(e)||se(e)||ne(e)?e.toValue():tn(e,new sn):e,cn=e=>{const t=e.meta.length>0?Nr(e.meta):void 0,r=e.attributes.length>0?Nr(e.attributes):void 0;return new e.constructor(void 0,t,r)},an=(e,t)=>t.clone&&t.isMergeableElement(e)?ln(cn(e),e,t):e,un={clone:!0,isMergeableElement:e=>ie(e)||oe(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>an(e,r))),objectElementMerge:(e,t,r)=>{const n=ie(e)?cn(e):cn(t);return ie(e)&&e.forEach(((e,t,s)=>{const i=Ir(s);i.value=an(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=on(s);let c;if(ie(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Ir(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return ln;const r=t.customMerge(e,t);return"function"==typeof r?r:ln})(s,r)(n,t,r)}else c=Ir(i),c.value=an(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ln=(e,t,r)=>{var n,s,i;const o={...un,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:un.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:un.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:un.objectElementMerge;const c=oe(t);if(!(c===oe(e)))return an(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Nr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Nr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};ln.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new i.Sh:e.reduce(((e,r)=>ln(e,r,t)),cn(e[0]))};const fn=ln;const pn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fn(t.meta,e.meta)),me(e)&&Mr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fn(t.attributes,e.attributes))}};const hn=class extends pn{enter(e){return this.element=Nr(e),ir}},mn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},dn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:dn(r,[...t,r])},yn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>dn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=dn(s);for(let t of e){let e=dn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(mn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},vn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),bn=(e,t)=>{const r=t.map((e=>dn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},gn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(bn(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==bn(n,e)||void 0!==t[n],get:(r,n)=>(bn(n,e)||t)[n],set(t,r,n){const s=bn(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),En=null,xn="copy",jn="copy",wn="deep",On=new WeakMap,Sn=e=>On.get(e),An=(e,t)=>{var r,n;const s=vn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=vn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},kn=(e,t)=>{var r,n,s,i;return{property:An(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:An(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Pn=(e,t)=>{var r,n,s,i,o,c;return{class:vn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:kn(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:kn(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},_n=new Map,Mn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...dn(e.prototype).map((e=>e.constructor)),...null!==(t=Sn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>_n.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Pn(e,t)))},Nn=e=>{let t=_n.get(e);return t||(t={},_n.set(e,t)),t};function Tn(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=En;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)mn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===jn?yn(s,o):(c=s,a=o,gn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===xn?yn(e,null,["prototype"]):gn(e,Function.prototype));let u=o;if("none"!==wn){const s="deep"===wn?Mn(...e):((...e)=>{const t=e.map((e=>Nn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Pn(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Rn(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),Rn(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,f;return l=u,f=e,On.set(l,f),u}const Rn=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const In=c((function(e){return g(xt(mt,0,dt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Fn=c((function(e){return!Vt(e)}));const Cn=a((function(e,t){return e||t}));var Vn=st(g(1,It(zt,a((function(e,t){return Tt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:nt(Cn)(e,t)}))(Gt,Mt))));const $n=In([rr,Vn,Fn]);const Dn=a((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Ln=class extends pn{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Dn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=De(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Jt(Mt,["visitors",...e],this.specObj)?De(["visitors",...e],this.specObj):De(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof hn&&(null==n?void 0:n.constructor)===hn?Nr(t):(Dr(t,n,r),n.element)}};const Jn=class extends Ln{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(te(n)&&r.includes(on(n))&&!this.ignoredFields.includes(on(n))){const r=this.toRefractedElement([...t,"fixedFields",on(n)],e),o=new i.Pr(Nr(n),r);this.copyMetaAndAttributes(s,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(on(n))||this.element.content.push(Nr(s))})),this.copyMetaAndAttributes(e,this.element),ir}};const Bn=class{parent;constructor({parent:e}){this.parent=e}},zn=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gr||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),qn=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kr||e(n)&&t("JSONReference",n)&&r("object",n))),Gn=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hr||e(n)&&t("media",n)&&r("object",n))),Un=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xr||e(n)&&t("linkDescription",n)&&r("object",n)));class Kn extends(Tn(Jn,Bn,hn)){constructor(e){super(e),this.element=new Gr,this.specPath=z(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Jn.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(G(this.parent)&&!te(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(zn(this.parent)&&!te(e.get("$schema"))){const e=Ie(on(this.parent.meta.get("inheritedDialectIdentifier")),on(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Nr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new i.wE,n=on(e.get(t));$n(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Wn=Kn,Hn=e=>ie(e)&&e.hasKey("$ref");class Yn extends(Tn(Ln,Bn,hn)){ObjectElement(e){const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ir}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ir}}const Xn=Yn;const Zn=class extends hn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Qn=function(){return!1};const es=class extends Ln{specPath;ignoredFields;fieldPatternPredicate=Qn;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(on(t))&&this.fieldPatternPredicate(on(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),o=new i.Pr(Nr(t),s);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(on(t))||this.element.content.push(Nr(r))})),this.copyMetaAndAttributes(e,this.element),ir}};const ts=class extends es{constructor(e){super(e),this.fieldPatternPredicate=$n}};class rs extends(Tn(ts,Bn,hn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ns=rs;class ss extends(Tn(ts,Bn,hn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const is=ss;class os extends(Tn(ts,Bn,hn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cs=os;const as=class extends hn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const us=class extends hn{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ls extends(Tn(Ln,Bn,hn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ir}}const fs=ls;class ps extends(Tn(Ln,Bn,hn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ir}}const hs=ps;class ms extends(Tn(Ln,Bn,hn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ir}}const ds=ms;class ys extends(Tn(ts,Bn,hn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const vs=ys;class bs extends(Tn(Ln,Bn,hn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),ir}}const gs=bs;class Es extends(Tn(Jn,hn)){constructor(e){super(e),this.element=new Kr,this.specPath=z(["document","objects","JSONReference"])}ObjectElement(e){const t=Jn.prototype.ObjectElement.call(this,e);return te(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const xs=Es;const js=class extends hn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ws=_e((function(e,t,r){return g(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Os=c((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Ss=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const As=Ss;const ks=c((function(e){return be(0,e)}));const Ps=c(f);const _s=st(dr);const Ms=It($t,Fn);function Ns(e){return function(e){if(Array.isArray(e))return Ts(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 Ts(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ts(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 Ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Rs=St(As(Os((function(e,t){return e.length>t.length}))),ks,Ce("length")),Is=xr((function(e,t,r){var n=r.apply(void 0,Ns(e));return _s(n)?Ps(n):t}));const Fs=ws(Ms,(function(e){var t=Rs(e);return g(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xt(Is(r),void 0,e)}))}),q);const Cs=class extends Ln{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ws(e,z(t),q))),r=Fs(t)(e);return this.element=this.toRefractedElement(r,e),ir}};const Vs=class extends Cs{constructor(e){super(e),this.alternator=[{predicate:Hn,specPath:["document","objects","JSONReference"]},{predicate:Zr,specPath:["document","objects","JSONSchema"]}]}};class $s extends(Tn(Jn,hn)){constructor(e){super(e),this.element=new Hr,this.specPath=z(["document","objects","Media"])}}const Ds=$s;class Ls extends(Tn(Jn,hn)){constructor(e){super(e),this.element=new Xr,this.specPath=z(["document","objects","LinkDescription"])}}const Js=Ls,Bs={visitors:{value:hn,JSONSchemaOrJSONReferenceVisitor:Vs,document:{objects:{JSONSchema:{$visitor:Wn,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:Vs,items:Xn,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Zn,properties:ns,additionalProperties:Vs,patternProperties:is,dependencies:cs,enum:as,type:us,allOf:fs,anyOf:hs,oneOf:ds,not:Vs,definitions:vs,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:gs,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:xs,fixedFields:{$ref:js}},Media:{$visitor:Ds,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Js,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Vs,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Vs}}}}}},zs=e=>{if(ee(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},qs={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...$r},Gs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Gr),t.register("jSONReference",Kr),t.register("media",Hr),t.register("linkDescription",Xr),t}},Us=()=>{const e=Qt(Gs);return{predicates:{...t,isStringElement:te},namespace:e}},Ks=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Bs}={})=>{const s=(0,i.e)(e),o=_r(n),c=new(De(t,o))({specObj:o});return Dr(s,c),Jr(c.element,r,{toolboxCreator:Us,visitorOptions:{keyMap:qs,nodeTypeGetter:zs}})},Ws=e=>(t,r={})=>Ks(t,{specPath:e,...r});Gr.refract=Ws(["visitors","document","objects","JSONSchema","$visitor"]),Kr.refract=Ws(["visitors","document","objects","JSONReference","$visitor"]),Hr.refract=Ws(["visitors","document","objects","Media","$visitor"]),Xr.refract=Ws(["visitors","document","objects","LinkDescription","$visitor"]);const Hs=class extends Gr{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Oe("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Oe("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)}};const Ys=class extends Xr{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 Oe("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Oe("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 Oe("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Oe("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Oe("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Oe("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}},Xs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Hs),t.register("jSONReference",Kr),t.register("media",Hr),t.register("linkDescription",Ys),t}},Zs={JSONSchemaDraft6Element:{additionalItems:(...e)=>new Hs(...e),items:(...e)=>new Hs(...e),contains:(...e)=>new Hs(...e),required(...e){const t=new i.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Hs(...e),patternProperties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new Hs(...e),enum(...e){const t=new i.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Hs(...e),definitions(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new i.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new i.wE(...e);return t.classes.push("json-schema-links"),t},media:(...e)=>new Hr(...e)},LinkDescriptionElement:{hrefSchema:(...e)=>new Hs(...e),targetSchema:(...e)=>new Hs(...e),submissionSchema:(...e)=>new Hs(...e)},"json-schema-properties":{"[key: *]":function(...e){return new Hs(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new Hs(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new Hs(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Hs(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Hs(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Hs(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new Hs(...e)}},"json-schema-links":{"<*>":function(...e){return new Ys(...e)}}},Qs=(e,t)=>{const r=zs(e),n=Zs[r]||Zs[on(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},ei=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>te(e)&&ye(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(ee),o=i[i.length-1];let c,a;if(oe(o)?(a=e,c=Qs(o,"<*>")):ce(o)&&(a=i[i.length-2],c=Qs(a,on(o.key))),"function"!=typeof c)return;const u=c.call({context:a},void 0,Nr(e.meta),Nr(e.attributes));return Mr(u,e)}}});var ti=_e((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!dr(n)&&w(s,n)&&"object"==typeof n[s]?n[s]:Fe(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Fe(e)&&u(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const ri=ti;const ni=_e((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var si=_e((function(e,t,r){return ri([e],t,r)}));const ii=si;var oi=a((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Fe(e)&&u(t))return ni(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(Fe(e)&&u(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ii(n,e(s,r[n]),r)}}));const ci=oi;const ai=class extends Wn{constructor(e){super(e),this.element=new Hs}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)}};const ui=class extends Xn{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ir}};const li=class extends hn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const fi=class extends Js{constructor(e){super(e),this.element=new Ys}},pi=St(ri(["visitors","document","objects","JSONSchema","$visitor"],ai),ci(["visitors","document","objects","JSONSchema","fixedFields","id"]),ri(["visitors","document","objects","JSONSchema","fixedFields","$id"],Bs.visitors.value),ri(["visitors","document","objects","JSONSchema","fixedFields","contains"],Bs.visitors.JSONSchemaOrJSONReferenceVisitor),ri(["visitors","document","objects","JSONSchema","fixedFields","items"],ui),ri(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Bs.visitors.JSONSchemaOrJSONReferenceVisitor),ri(["visitors","document","objects","JSONSchema","fixedFields","const"],Bs.visitors.value),ri(["visitors","document","objects","JSONSchema","fixedFields","examples"],li),ri(["visitors","document","objects","LinkDescription","$visitor"],fi),ri(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Bs.visitors.JSONSchemaOrJSONReferenceVisitor),ci(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ri(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Bs.visitors.JSONSchemaOrJSONReferenceVisitor),ci(["visitors","document","objects","LinkDescription","fixedFields","method"]),ci(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ri(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Bs.visitors.value))(Bs),hi={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...$r},mi=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hs||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),di=Q((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("linkDescription",n)&&r("object",n))),yi=()=>{const e=Qt(Xs);return{predicates:{...s,isStringElement:te},namespace:e}},vi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=pi}={})=>{const s=(0,i.e)(e),o=_r(n),c=new(De(t,o))({specObj:o});return Dr(s,c),Jr(c.element,r,{toolboxCreator:yi,visitorOptions:{keyMap:hi,nodeTypeGetter:zs}})},bi=e=>(t,r={})=>vi(t,{specPath:e,...r}),gi=vi})(),n})()));
|