UNPKG

@ulb-darmstadt/shacl-form

Version:
2 lines 617 kB
/*! For license information please see form-bootstrap.js.LICENSE.txt */ var t={5568:t=>{const{AbortController:e,AbortSignal:r}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;t.exports=e,t.exports.AbortSignal=r,t.exports.default=e},7526:(t,e)=>{e.byteLength=function(t){var e=s(t),r=e[0],o=e[1];return 3*(r+o)/4-o},e.toByteArray=function(t){var e,r,a=s(t),i=a[0],l=a[1],d=new n(function(t,e,r){return 3*(e+r)/4-r}(0,i,l)),c=0,p=l>0?i-4:i;for(r=0;r<p;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],d[c++]=e>>16&255,d[c++]=e>>8&255,d[c++]=255&e;return 2===l&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,d[c++]=255&e),1===l&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,d[c++]=e>>8&255,d[c++]=255&e),d},e.fromByteArray=function(t){for(var e,o=t.length,n=o%3,a=[],i=16383,s=0,d=o-n;s<d;s+=i)a.push(l(t,s,s+i>d?d:s+i));return 1===n?(e=t[o-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===n&&(e=(t[o-2]<<8)+t[o-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")};for(var r=[],o=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=a[i],o[a.charCodeAt(i)]=i;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,o){for(var n,a,i=[],s=e;s<o;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(r[(a=n)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},8287:(t,e,r)=>{const o=r(7526),n=r(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function s(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return p(t)}return d(t,e,r)}function d(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|f(t,e);let o=s(r);const n=o.write(t,e);return n!==r&&(o=o.slice(0,n)),o}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Q(t,Uint8Array)){const e=new Uint8Array(t);return b(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return b(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return b(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=t.valueOf&&t.valueOf();if(null!=o&&o!==t)return l.from(o,e,r);const n=function(t){if(l.isBuffer(t)){const e=0|m(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?s(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function p(t){return c(t),s(t<0?0:0|m(t))}function u(t){const e=t.length<0?0:0|m(t.length),r=s(e);for(let o=0;o<e;o+=1)r[o]=255&t[o];return r}function b(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(o,l.prototype),o}function m(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function f(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;let n=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(n)return o?-1:V(t).length;e=(""+e).toLowerCase(),n=!0}}function h(t,e,r){let o=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return N(this,e,r);case"latin1":case"binary":return R(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,r){const o=t[e];t[e]=t[r],t[r]=o}function v(t,e,r,o,n){if(0===t.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=l.from(e,o)),l.isBuffer(e))return 0===e.length?-1:y(t,e,r,o,n);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,o,n);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,o,n){let a,i=1,s=t.length,l=e.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||e.length<2)return-1;i=2,s/=2,l/=2,r/=2}function d(t,e){return 1===i?t[e]:t.readUInt16BE(e*i)}if(n){let o=-1;for(a=r;a<s;a++)if(d(t,a)===d(e,-1===o?0:a-o)){if(-1===o&&(o=a),a-o+1===l)return o*i}else-1!==o&&(a-=a-o),o=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){let r=!0;for(let o=0;o<l;o++)if(d(t,a+o)!==d(e,o)){r=!1;break}if(r)return a}return-1}function w(t,e,r,o){r=Number(r)||0;const n=t.length-r;o?(o=Number(o))>n&&(o=n):o=n;const a=e.length;let i;for(o>a/2&&(o=a/2),i=0;i<o;++i){const o=parseInt(e.substr(2*i,2),16);if(X(o))return i;t[r+i]=o}return i}function x(t,e,r,o){return J(V(e,t.length-r),t,r,o)}function _(t,e,r,o){return J(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,o)}function k(t,e,r,o){return J(W(e),t,r,o)}function j(t,e,r,o){return J(function(t,e){let r,o,n;const a=[];for(let i=0;i<t.length&&!((e-=2)<0);++i)r=t.charCodeAt(i),o=r>>8,n=r%256,a.push(n),a.push(o);return a}(e,t.length-r),t,r,o)}function S(t,e,r){return 0===e&&r===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);const o=[];let n=e;for(;n<r;){const e=t[n];let a=null,i=e>239?4:e>223?3:e>191?2:1;if(n+i<=r){let r,o,s,l;switch(i){case 1:e<128&&(a=e);break;case 2:r=t[n+1],128==(192&r)&&(l=(31&e)<<6|63&r,l>127&&(a=l));break;case 3:r=t[n+1],o=t[n+2],128==(192&r)&&128==(192&o)&&(l=(15&e)<<12|(63&r)<<6|63&o,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:r=t[n+1],o=t[n+2],s=t[n+3],128==(192&r)&&128==(192&o)&&128==(192&s)&&(l=(15&e)<<18|(63&r)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,i=1):a>65535&&(a-=65536,o.push(a>>>10&1023|55296),a=56320|1023&a),o.push(a),n+=i}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let r="",o=0;for(;o<e;)r+=String.fromCharCode.apply(String,t.slice(o,o+=E));return r}(o)}e.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,r){return d(t,e,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},l.allocUnsafe=function(t){return p(t)},l.allocUnsafeSlow=function(t){return p(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,o=e.length;for(let n=0,a=Math.min(r,o);n<a;++n)if(t[n]!==e[n]){r=t[n],o=e[n];break}return r<o?-1:o<r?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const o=l.allocUnsafe(e);let n=0;for(r=0;r<t.length;++r){let e=t[r];if(Q(e,Uint8Array))n+e.length>o.length?(l.isBuffer(e)||(e=l.from(e)),e.copy(o,n)):Uint8Array.prototype.set.call(o,e,n);else{if(!l.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(o,n)}n+=e.length}return o},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):h.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(t,e,r,o,n){if(Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),e<0||r>t.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&e>=r)return 0;if(o>=n)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(n>>>=0)-(o>>>=0),i=(r>>>=0)-(e>>>=0);const s=Math.min(a,i),d=this.slice(o,n),c=t.slice(e,r);for(let t=0;t<s;++t)if(d[t]!==c[t]){a=d[t],i=c[t];break}return a<i?-1:i<a?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},l.prototype.write=function(t,e,r,o){if(void 0===e)o="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)o=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}const n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let a=!1;for(;;)switch(o){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":case"latin1":case"binary":return _(this,t,e,r);case"base64":return k(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function N(t,e,r){let o="";r=Math.min(t.length,r);for(let n=e;n<r;++n)o+=String.fromCharCode(127&t[n]);return o}function R(t,e,r){let o="";r=Math.min(t.length,r);for(let n=e;n<r;++n)o+=String.fromCharCode(t[n]);return o}function T(t,e,r){const o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);let n="";for(let o=e;o<r;++o)n+=Y[t[o]];return n}function O(t,e,r){const o=t.slice(e,r);let n="";for(let t=0;t<o.length-1;t+=2)n+=String.fromCharCode(o[t]+256*o[t+1]);return n}function L(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,r,o,n,a){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<a)throw new RangeError('"value" argument is out of bounds');if(r+o>t.length)throw new RangeError("Index out of range")}function C(t,e,r,o,n){F(e,o,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a;let i=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,r}function D(t,e,r,o,n){F(e,o,n,t,r,7);let a=Number(e&BigInt(4294967295));t[r+7]=a,a>>=8,t[r+6]=a,a>>=8,t[r+5]=a,a>>=8,t[r+4]=a;let i=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=i,i>>=8,t[r+2]=i,i>>=8,t[r+1]=i,i>>=8,t[r]=i,r+8}function M(t,e,r,o,n,a){if(r+o>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,o,a){return e=+e,r>>>=0,a||M(t,0,r,4),n.write(t,e,r,o,23,4),r+4}function z(t,e,r,o,a){return e=+e,r>>>=0,a||M(t,0,r,8),n.write(t,e,r,o,52,8),r+8}l.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const o=this.subarray(t,e);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let o=this[t],n=1,a=0;for(;++a<e&&(n*=256);)o+=this[t+a]*n;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let o=this[t+--e],n=1;for(;e>0&&(n*=256);)o+=this[t+--e]*n;return o},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=K((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const o=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,n=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(o)+(BigInt(n)<<BigInt(32))})),l.prototype.readBigUInt64BE=K((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const o=e*2**24+65536*this[++t]+256*this[++t]+this[++t],n=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(o)<<BigInt(32))+BigInt(n)})),l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let o=this[t],n=1,a=0;for(;++a<e&&(n*=256);)o+=this[t+a]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*e)),o},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);let o=e,n=1,a=this[t+--o];for(;o>0&&(n*=256);)a+=this[t+--o]*n;return n*=128,a>=n&&(a-=Math.pow(2,8*e)),a},l.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=K((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const o=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),l.prototype.readBigInt64BE=K((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||U(t,this.length-8);const o=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),l.prototype.readFloatLE=function(t,e){return t>>>=0,e||L(t,4,this.length),n.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),n.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),n.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),n.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,o){t=+t,e>>>=0,r>>>=0,o||A(this,t,e,r,Math.pow(2,8*r)-1,0);let n=1,a=0;for(this[e]=255&t;++a<r&&(n*=256);)this[e+a]=t/n&255;return e+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,r,o){t=+t,e>>>=0,r>>>=0,o||A(this,t,e,r,Math.pow(2,8*r)-1,0);let n=r-1,a=1;for(this[e+n]=255&t;--n>=0&&(a*=256);)this[e+n]=t/a&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=K((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=K((function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(t,e,r,o){if(t=+t,e>>>=0,!o){const o=Math.pow(2,8*r-1);A(this,t,e,r,o-1,-o)}let n=0,a=1,i=0;for(this[e]=255&t;++n<r&&(a*=256);)t<0&&0===i&&0!==this[e+n-1]&&(i=1),this[e+n]=(t/a|0)-i&255;return e+r},l.prototype.writeIntBE=function(t,e,r,o){if(t=+t,e>>>=0,!o){const o=Math.pow(2,8*r-1);A(this,t,e,r,o-1,-o)}let n=r-1,a=1,i=0;for(this[e+n]=255&t;--n>=0&&(a*=256);)t<0&&0===i&&0!==this[e+n+1]&&(i=1),this[e+n]=(t/a|0)-i&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=K((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=K((function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,o){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-r&&(o=t.length-e+r);const n=o-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,o):Uint8Array.prototype.set.call(t,this.subarray(r,o),e),n},l.prototype.fill=function(t,e,r,o){if("string"==typeof t){if("string"==typeof e?(o=e,e=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===t.length){const e=t.charCodeAt(0);("utf8"===o&&e<128||"latin1"===o)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let n;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(n=e;n<r;++n)this[n]=t;else{const a=l.isBuffer(t)?t:l.from(t,o),i=a.length;if(0===i)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<r-e;++n)this[n+e]=a[n%i]}return this};const B={};function $(t,e,r){B[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function q(t){let e="",r=t.length;const o="-"===t[0]?1:0;for(;r>=o+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function F(t,e,r,o,n,a){if(t>r||t<e){const o="bigint"==typeof e?"n":"";let n;throw n=a>3?0===e||e===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(a+1)}${o}`:`>= -(2${o} ** ${8*(a+1)-1}${o}) and < 2 ** ${8*(a+1)-1}${o}`:`>= ${e}${o} and <= ${r}${o}`,new B.ERR_OUT_OF_RANGE("value",n,t)}!function(t,e,r){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||U(e,t.length-(r+1))}(o,n,a)}function G(t,e){if("number"!=typeof t)throw new B.ERR_INVALID_ARG_TYPE(e,"number",t)}function U(t,e,r){if(Math.floor(t)!==t)throw G(t,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}$("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),$("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),$("ERR_OUT_OF_RANGE",(function(t,e,r){let o=`The value of "${t}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>2**32?n=q(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=q(n)),n+="n"),o+=` It must be ${e}. Received ${n}`,o}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const o=t.length;let n=null;const a=[];for(let i=0;i<o;++i){if(r=t.charCodeAt(i),r>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(i+1===o){(e-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function W(t){return o.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,r,o){let n;for(n=0;n<o&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function Q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const Y=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const o=16*r;for(let n=0;n<16;++n)e[o+n]=t[r]+t[n]}return e}();function K(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},2341:t=>{t.exports=function t(e){return null===e||"object"!=typeof e||null!=e.toJSON?JSON.stringify(e):Array.isArray(e)?"["+e.reduce(((e,r,o)=>e+(0===o?"":",")+t(void 0===r||"symbol"==typeof r?null:r)),"")+"]":"{"+Object.keys(e).sort().reduce(((r,o,n)=>void 0===e[o]||"symbol"==typeof e[o]?r:r+(0===r.length?"":",")+t(o)+":"+t(e[o])),"")+"}"}},7007:t=>{var e,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var n=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(r,o){function n(r){t.removeListener(e,a),o(r)}function a(){"function"==typeof t.removeListener&&t.removeListener("error",n),r([].slice.call(arguments))}f(t,e,a,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&f(t,"error",e,{once:!0})}(t,n)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var i=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function d(t,e,r,o){var n,a,i,d;if(s(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),i=a[e]),void 0===i)i=a[e]=r,++t._eventsCount;else if("function"==typeof i?i=a[e]=o?[r,i]:[i,r]:o?i.unshift(r):i.push(r),(n=l(t))>0&&i.length>n&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=i.length,d=c,console&&console.warn&&console.warn(d)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var o={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=c.bind(o);return n.listener=r,o.wrapFn=n,n}function u(t,e,r){var o=t._events;if(void 0===o)return[];var n=o[e];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(n):m(n,n.length)}function b(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),o=0;o<e;++o)r[o]=t[o];return r}function f(t,e,r,o){if("function"==typeof t.on)o.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function n(a){o.once&&t.removeEventListener(e,n),r(a)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(t){if("number"!=typeof t||t<0||n(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");i=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||n(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){var i;if(e.length>0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=a[t];if(void 0===l)return!1;if("function"==typeof l)o(l,this,e);else{var d=l.length,c=m(l,d);for(r=0;r<d;++r)o(c[r],this,e)}return!0},a.prototype.addListener=function(t,e){return d(this,t,e,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,e){return d(this,t,e,!0)},a.prototype.once=function(t,e){return s(e),this.on(t,p(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,p(this,t,e)),this},a.prototype.removeListener=function(t,e){var r,o,n,a,i;if(s(e),void 0===(o=this._events))return this;if(void 0===(r=o[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(n=-1,a=r.length-1;a>=0;a--)if(r[a]===e||r[a].listener===e){i=r[a].listener,n=a;break}if(n<0)return this;0===n?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,n),1===r.length&&(o[t]=r[0]),void 0!==o.removeListener&&this.emit("removeListener",t,i||e)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var e,r,o;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var n,a=Object.keys(r);for(o=0;o<a.length;++o)"removeListener"!==(n=a[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(o=e.length-1;o>=0;o--)this.removeListener(t,e[o]);return this},a.prototype.listeners=function(t){return u(this,t,!0)},a.prototype.rawListeners=function(t){return u(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},a.prototype.listenerCount=b,a.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},251:(t,e)=>{e.read=function(t,e,r,o,n){var a,i,s=8*n-o-1,l=(1<<s)-1,d=l>>1,c=-7,p=r?n-1:0,u=r?-1:1,b=t[e+p];for(p+=u,a=b&(1<<-c)-1,b>>=-c,c+=s;c>0;a=256*a+t[e+p],p+=u,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=o;c>0;i=256*i+t[e+p],p+=u,c-=8);if(0===a)a=1-d;else{if(a===l)return i?NaN:1/0*(b?-1:1);i+=Math.pow(2,o),a-=d}return(b?-1:1)*i*Math.pow(2,a-o)},e.write=function(t,e,r,o,n,a){var i,s,l,d=8*a-n-1,c=(1<<d)-1,p=c>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,b=o?0:a-1,m=o?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,i=c):(i=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-i))<1&&(i--,l*=2),(e+=i+p>=1?u/l:u*Math.pow(2,1-p))*l>=2&&(i++,l/=2),i+p>=c?(s=0,i=c):i+p>=1?(s=(e*l-1)*Math.pow(2,n),i+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,n),i=0));n>=8;t[r+b]=255&s,b+=m,s/=256,n-=8);for(i=i<<n|s,d+=n;d>0;t[r+b]=255&i,b+=m,i/=256,d-=8);t[r+b-m]|=128*f}},7034:(t,e,r)=>{const{isArray:o,isObject:n,isString:a}=r(7382),{asArray:i}=r(9263),{prependBase:s}=r(470),l=r(2207),d=r(7532);function c(t){throw new l("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:t})}function p({context:t,base:e}){if(!t)return;const r=t["@context"];if(a(r))t["@context"]=s(e,r);else if(o(r))for(let t=0;t<r.length;++t){const o=r[t];a(o)?r[t]=s(e,o):n(o)&&p({context:{"@context":o},base:e})}else if(n(r))for(const t in r)p({context:r[t],base:e})}t.exports=class{constructor({sharedCache:t}){this.perOpCache=new Map,this.sharedCache=t}async resolve({activeCtx:t,context:e,documentLoader:r,base:s,cycles:l=new Set}){e&&n(e)&&e["@context"]&&(e=e["@context"]),e=i(e);const p=[];for(const i of e){if(a(i)){let e=this._get(i);e||(e=await this._resolveRemoteContext({activeCtx:t,url:i,documentLoader:r,base:s,cycles:l})),o(e)?p.push(...e):p.push(e);continue}if(null===i){p.push(new d({document:null}));continue}n(i)||c(e);const u=JSON.stringify(i);let b=this._get(u);b||(b=new d({document:i}),this._cacheResolvedContext({key:u,resolved:b,tag:"static"})),p.push(b)}return p}_get(t){let e=this.perOpCache.get(t);if(!e){const r=this.sharedCache.get(t);r&&(e=r.get("static"),e&&this.perOpCache.set(t,e))}return e}_cacheResolvedContext({key:t,resolved:e,tag:r}){if(this.perOpCache.set(t,e),void 0!==r){let o=this.sharedCache.get(t);o||(o=new Map,this.sharedCache.set(t,o)),o.set(r,e)}return e}async _resolveRemoteContext({activeCtx:t,url:e,documentLoader:r,base:o,cycles:n}){e=s(o,e);const{context:a,remoteDoc:i}=await this._fetchContext({activeCtx:t,url:e,documentLoader:r,cycles:n});p({context:a,base:o=i.documentUrl||e});const l=await this.resolve({activeCtx:t,context:a,documentLoader:r,base:o,cycles:n});return this._cacheResolvedContext({key:e,resolved:l,tag:i.tag}),l}async _fetchContext({activeCtx:t,url:e,documentLoader:r,cycles:i}){if(i.size>10)throw new l("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"json-ld-1.0"===t.processingMode?"loading remote context failed":"context overflow",max:10});if(i.has(e))throw new l("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:"json-ld-1.0"===t.processingMode?"recursive context inclusion":"context overflow",url:e});let s,d;i.add(e);try{d=await r(e),s=d.document||null,a(s)&&(s=JSON.parse(s))}catch(t){throw new l("Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.","jsonld.InvalidUrl",{code:"loading remote context failed",url:e,cause:t})}if(!n(s))throw new l("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:e});return s="@context"in s?{"@context":s["@context"]}:{"@context":{}},d.contextUrl&&(o(s["@context"])||(s["@context"]=[s["@context"]]),s["@context"].push(d.contextUrl)),{context:s,remoteDoc:d}}}},2207:t=>{t.exports=class extends Error{constructor(t="An unspecified JSON-LD error occurred.",e="jsonld.Error",r={}){super(t),this.name=e,this.message=t,this.details=r}}},5445:t=>{t.exports=t=>{class e{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(e,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(e.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:e}),e.compact=function(e,r){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):t.compact(e,r)},e.expand=function(e){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):t.expand(e)},e.flatten=function(e){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):t.flatten(e)},e}},8229:(t,e,r)=>{t.exports=r(989).NQuads},3743:t=>{t.exports=class{constructor(){this._requests={}}wrapLoader(t){const e=this;return e._loader=t,function(){return e.add.apply(e,arguments)}}async add(t){let e=this._requests[t];if(e)return Promise.resolve(e);e=this._requests[t]=this._loader(t);try{return await e}finally{delete this._requests[t]}}}},7532:(t,e,r)=>{const o=r(9749);t.exports=class{constructor({document:t}){this.document=t,this.cache=new o({max:10})}getProcessed(t){return this.cache.get(t)}setProcessed(t,e){this.cache.set(t,e)}}},1058:(t,e,r)=>{const o=r(2207),{isArray:n,isObject:a,isString:i,isUndefined:s}=r(7382),{isList:l,isValue:d,isGraph:c,isSimpleGraph:p,isSubjectReference:u}=r(3978),{expandIri:b,getContextValue:m,isKeyword:f,process:h,processingMode:g}=r(1972),{removeBase:v,prependBase:y}=r(470),{REGEX_KEYWORD:w,addValue:x,asArray:_,compareShortestLeast:k}=r(9263),j={};function S(t,e,r){if("@nest"!==b(t,e,{vocab:!0},r))throw new o("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}t.exports=j,j.compact=async({activeCtx:t,activeProperty:e=null,element:r,options:b={}})=>{if(n(r)){let o=[];for(let n=0;n<r.length;++n){const a=await j.compact({activeCtx:t,activeProperty:e,element:r[n],options:b});null!==a&&o.push(a)}return b.compactArrays&&1===o.length&&0===(m(t,e,"@container")||[]).length&&(o=o[0]),o}const v=m(t,e,"@context");if(s(v)||(t=await h({activeCtx:t,localCtx:v,propagate:!0,overrideProtected:!0,options:b})),a(r)){if(b.link&&"@id"in r&&b.link.hasOwnProperty(r["@id"])){const t=b.link[r["@id"]];for(let e=0;e<t.length;++e)if(t[e].expanded===r)return t[e].compacted}if(d(r)||u(r)){const o=j.compactValue({activeCtx:t,activeProperty:e,value:r,options:b});return b.link&&u(r)&&(b.link.hasOwnProperty(r["@id"])||(b.link[r["@id"]]=[]),b.link[r["@id"]].push({expanded:r,compacted:o})),o}if(l(r)&&(m(t,e,"@container")||[]).includes("@list"))return j.compact({activeCtx:t,activeProperty:e,element:r["@list"],options:b});const v="@reverse"===e,y={},w=t;d(r)||u(r)||(t=t.revertToPreviousContext());const k=m(w,e,"@context");s(k)||(t=await h({activeCtx:t,localCtx:k,propagate:!0,overrideProtected:!0,options:b})),b.link&&"@id"in r&&(b.link.hasOwnProperty(r["@id"])||(b.link[r["@id"]]=[]),b.link[r["@id"]].push({expanded:r,compacted:y}));let I=r["@type"]||[];I.length>1&&(I=Array.from(I).sort());const E=t;for(const e of I){const r=j.compactIri({activeCtx:E,iri:e,relativeTo:{vocab:!0}}),o=m(w,r,"@context");s(o)||(t=await h({activeCtx:t,localCtx:o,options:b,propagate:!1}))}const N=Object.keys(r).sort();for(const s of N){const u=r[s];if("@id"!==s)if("@type"!==s)if("@reverse"!==s)if("@preserve"!==s)if("@index"!==s)if("@graph"!==s&&"@list"!==s&&"@included"!==s&&f(s)){const e=j.compactIri({activeCtx:t,iri:s,relativeTo:{vocab:!0}});x(y,e,u)}else{if(!n(u))throw new o("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===u.length){const e=j.compactIri({activeCtx:t,iri:s,value:u,relativeTo:{vocab:!0},reverse:v}),r=t.mappings.has(e)?t.mappings.get(e)["@nest"]:null;let o=y;r&&(S(t,r,b),a(y[r])||(y[r]={}),o=y[r]),x(o,e,u,{propertyIsArray:!0})}for(const e of u){const r=j.compactIri({activeCtx:t,iri:s,value:e,relativeTo:{vocab:!0},reverse:v}),o=t.mappings.has(r)?t.mappings.get(r)["@nest"]:null;let u=y;o&&(S(t,o,b),a(y[o])||(y[o]={}),u=y[o]);const f=m(t,r,"@container")||[],h=c(e),g=l(e);let w;g?w=e["@list"]:h&&(w=e["@graph"]);let k=await j.compact({activeCtx:t,activeProperty:r,element:g||h?w:e,options:b});if(g){if(n(k)||(k=[k]),f.includes("@list")){x(u,r,k,{valueIsArray:!0,allowDuplicate:!0});continue}k={[j.compactIri({activeCtx:t,iri:"@list",relativeTo:{vocab:!0}})]:k},"@index"in e&&(k[j.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=e["@index"])}if(h)if(f.includes("@graph")&&(f.includes("@id")||f.includes("@index")&&p(e))){let o;u.hasOwnProperty(r)?o=u[r]:u[r]=o={};const n=(f.includes("@id")?e["@id"]:e["@index"])||j.compactIri({activeCtx:t,iri:"@none",relativeTo:{vocab:!0}});x(o,n,k,{propertyIsArray:!b.compactArrays||f.includes("@set")})}else f.includes("@graph")&&p(e)?(n(k)&&k.length>1&&(k={"@included":k}),x(u,r,k,{propertyIsArray:!b.compactArrays||f.includes("@set")})):(n(k)&&1===k.length&&b.compactArrays&&(k=k[0]),k={[j.compactIri({activeCtx:t,iri:"@graph",relativeTo:{vocab:!0}})]:k},"@id"in e&&(k[j.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}})]=e["@id"]),"@index"in e&&(k[j.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=e["@index"]),x(u,r,k,{propertyIsArray:!b.compactArrays||f.includes("@set")}));else if(f.includes("@language")||f.includes("@index")||f.includes("@id")||f.includes("@type")){let o,n;if(u.hasOwnProperty(r)?o=u[r]:u[r]=o={},f.includes("@language"))d(k)&&(k=k["@value"]),n=e["@language"];else if(f.includes("@index")){const o=m(t,r,"@index")||"@index",a=j.compactIri({activeCtx:t,iri:o,relativeTo:{vocab:!0}});if("@index"===o)n=e["@index"],delete k[a];else{let t;if([n,...t]=_(k[o]||[]),i(n))switch(t.length){case 0:delete k[o];break;case 1:k[o]=t[0];break;default:k[o]=t}else n=null}}else if(f.includes("@id")){const e=j.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}});n=k[e],delete k[e]}else if(f.includes("@type")){const o=j.compactIri({activeCtx:t,iri:"@type",relativeTo:{vocab:!0}});let a;switch([n,...a]=_(k[o]||[]),a.length){case 0:delete k[o];break;case 1:k[o]=a[0];break;default:k[o]=a}1===Object.keys(k).length&&"@id"in e&&(k=await j.compact({activeCtx:t,activeProperty:r,element:{"@id":e["@id"]},options:b}))}n||(n=j.compactIri({activeCtx:t,iri:"@none",relativeTo:{vocab:!0}})),x(o,n,k,{propertyIsArray:f.includes("@set")})}else{const t=!b.compactArrays||f.includes("@set")||f.includes("@list")||n(k)&&0===k.length||"@list"===s||"@graph"===s;x(u,r,k,{propertyIsArray:t})}}}else{if((m(t,e,"@container")||[]).includes("@index"))continue;const r=j.compactIri({activeCtx:t,iri:s,relativeTo:{vocab:!0}});x(y,r,u)}else{const r=await j.compact({activeCtx:t,activeProperty:e,element:u,options:b});n(r)&&0===r.length||x(y,s,r)}else{const e=await j.compact({activeCtx:t,activeProperty:"@reverse",element:u,options:b});for(const r in e)if(t.mappings.has(r)&&t.mappings.get(r).reverse){const o=e[r],n=(m(t,r,"@container")||[]).includes("@set")||!b.compactArrays;x(y,r,o,{propertyIsArray:n}),delete e[r]}if(Object.keys(e).length>0){const r=j.compactIri({activeCtx:t,iri:s,relativeTo:{vocab:!0}});x(y,r,e)}}else{let e=_(u).map((t=>j.compactIri({activeCtx:w,iri:t,relativeTo:{vocab:!0}})));1===e.length&&(e=e[0]);const r=j.compactIri({activeCtx:t,iri:"@type",relativeTo:{vocab:!0}}),o=(m(t,r,"@container")||[]).includes("@set")&&g(t,1.1)||n(e)&&0===u.length;x(y,r,e,{propertyIsArray:o})}else{let e=_(u).map((e=>j.compactIri({activeCtx:t,iri:e,relativeTo:{vocab:!1},base:b.base})));1===e.length&&(e=e[0]),y[j.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}})]=e}}return y}return r},j.compactIri=({activeCtx:t,iri:e,value:r=null,relativeTo:n={vocab:!1},reverse:i=!1,base:s=null})=>{if(null===e)return e;t.isPropertyTermScoped&&t.previousContext&&(t=t.previousContext);const p=t.getInverse();if(f(e)&&e in p&&"@none"in p[e]&&"@type"in p[e]["@none"]&&"@none"in p[e]["@none"]["@type"])return p[e]["@none"]["@type"]["@none"];if(n.vocab&&e in p){const o=t["@language"]||"@none",n=[];a(r)&&"@index"in r&&!("@graph"in r)&&n.push("@index","@index@set"),a(r)&&"@preserve"in r&&(r=r["@preserve"][0]),c(r)?("@index"in r&&n.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in r&&n.push("@graph@id","@graph@id@set"),n.push("@graph","@graph@set","@set"),"@index"in r||n.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in r||n.push("@graph@id","@graph@id@set")):a(r)&&!d(r)&&n.push("@id","@id@set","@type","@set@type");let s="@language",p="@null";if(i)s="@type",p="@reverse",n.push("@set");else if(l(r)){"@index"in r||n.push("@list");const t=r["@list"];if(0===t.length)s="@any",p="@none";else{let e=0===t.length?o:null,r=null;for(let o=0;o<t.length;++o){const n=t[o];let a="@none",i="@none";if(d(n)?"@direction"in n?a=`${(n["@language"]||"").toLowerCase()}_${n["@direction"]}`:"@language"in n?a=n["@language"].toLowerCase():"@type"in n?i=n["@type"]:a="@null":i="@id",null===e?e=a:a!==e&&d(n)&&(e="@none"),null===r?r=i:i!==r&&(r="@none"),"@none"===e&&"@none"===r)break}e=e||"@none",r=r||"@none","@none"!==r?(s="@type",p=r):p=e}}else{if(d(r))if("@language"in r&&!("@index"in r)){n.push("@language","@language@set"),p=r["@language"];const t=r["@direction"];t&&(p=`${p}_${t}`)}else"@direction"in r&&!("@index"in r)?p=`_${r["@direction"]}`:"@type"in r&&(s="@type",p=r["@type"]);else s="@type",p="@id";n.push("@set")}n.push("@none"),a(r)&&!("@index"in r)&&n.push("@index","@index@set"),d(r)&&1===Object.keys(r).length&&n.push("@language","@language@set");const u=function(t,e,r,o,n,i){null===i&&(i="@null");const s=[];if(("@id"===i||"@reverse"===i)&&a(r)&&"@id"in r){"@reverse"===i&&s.push("@reverse");const e=j.compactIri({activeCtx:t,iri:r["@id"],relativeTo:{vocab:!0}});t.mappings.has(e)&&t.mappings.get(e)&&t.mappings.get(e)["@id"]===r["@id"]?s.push.apply(s,["@vocab","@id"]):s.push.apply(s,["@id","@vocab"])}else{s.push(i);const t=s.find((t=>t.includes("_")));t&&s.push(t.replace(/^[^_]+_/,"_"))}s.push("@none");const l=t.inverse[e];for(const t of o){if(!(t in l))continue;const e=l[t][n];for(const t of s)if(t in e)return e[t]}return null}(t,e,r,n,s,p);if(null!==u)return u}if(n.vocab&&"@vocab"in t){const r=t["@vocab"];if(0===e.indexOf(r)&&e!==r){const o=e.substr(r.length);if(!t.mappings.has(o))return o}}let u=null;const b=[];let m=t.fastCurieMap;const h=e.length-1;for(let t=0;t<h&&e[t]in m;++t)m=m[e[t]],""in m&&b.push(m[""][0]);for(let o=b.length-1;o>=0;--o){const n=b[o],a=n.terms;for(const o of a){const a=o+":"+e.substr(n.iri.length);t.mappings.get(o)._prefix&&(!t.mappings.has(a)||null===r&&t.mappings.get(a)["@id"]===e)&&(null===u||k(a,u)<0)&&(u=a)}}if(null!==u)return u;for(const[r,n]of t.mappings)if(n&&n._prefix&&e.startsWith(r+":"))throw new o(`Absolute IRI "${e}" confused with prefix "${r}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:t});if(!n.vocab){if("@base"in t){if(t["@base"]){const r=v(y(s,t["@base"]),e);return w.test(r)?`./${r}`:r}return e}return v(s,e)}return e},j.compactValue=({activeCtx:t,activeProperty:e,value:r,options:o})=>{if(d(r)){const o=m(t,e,"@type"),n=m(t,e,"@language"),a=m(t,e,"@direction"),s=m(t,e,"@container")||[],l="@index"in r&&!s.includes("@index");if(!l&&"@none"!==o){if(r["@type"]===o)return r["@value"];if("@language"in r&&r["@language"]===n&&"@direction"in r&&r["@direction"]===a)return r["@value"];if("@language"in r&&r["@language"]===n)return r["@value"];if("@direction"in r&&r["@direction"]===a)return r["@value"]}const d=Object.keys(r).length,c=1===d||2===d&&"@index"in r&&!l,p="@language"in t,u=i(r["@value"]),b=t.mappings.has(e)&&null===t.mappings.get(e)["@language"];if(c&&"@none"!==o&&(!p||!u||b))return r["@value"];const f={};return l&&(f[j.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=r["@index"]),"@type"in r?f[j.compactIri({activeCtx:t,iri:"@type",relativeTo:{vocab:!0}})]=j.compactIri({activeCtx:t,iri:r["@type"],relativeTo:{vocab:!0}}):"@language"in r&&(f[j.compactIri({activeCtx:t,iri:"@language",relativeTo:{vocab:!0}})]=r["@language"]),"@direction"in r&&(f[j.compactIri({activeCtx:t,iri:"@direction",relativeTo:{vocab:!0}})]=r["@direction"]),f[j.compactIri({activeCtx:t,iri:"@value",relativeTo:{vocab:!0}})]=r["@value"],f}const n=b(t,e,{vocab:!0},o),a=m(t,e,"@type"),s=j.compactIri({activeCtx:t,iri:r["@id"],relativeTo:{vocab:"@vocab"===a},base:o.base});return"@id"===a||"@vocab"===a||"@graph"===n?s:{[j.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}})]:s}}},9378:t=>{const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#",r="http://www.w3.org/2001/XMLSchema#";t.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:e,RDF_LIST:e+"List",RDF_FIRST:e+"first",RDF_REST:e+"rest",RDF_NIL:e+"nil",RDF_TYPE:e+"type",RDF_PLAIN_LITERAL:e+"PlainLiteral",RDF_XM