@ulb-darmstadt/shacl-form 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see form-material.js.LICENSE.txt */
2
- var e={5568:e=>{const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},7526:(e,t)=>{t.byteLength=function(e){var t=d(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,r=d(e),i=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,i,s)),u=0,c=s>0?i-4:i;for(n=0;n<c;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,o=e.length,a=o%3,r=[],i=16383,d=0,l=o-a;d<l;d+=i)r.push(s(e,d,d+i>l?l:d+i));return 1===a?(t=e[o-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[o-2]<<8)+e[o-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),r.join("")};for(var n=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)n[i]=r[i],o[r.charCodeAt(i)]=i;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,o){for(var a,r,i=[],d=t;d<o;d+=3)a=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(255&e[d+2]),i.push(n[(r=a)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},8287:(e,t,n)=>{const o=n(7526),a=n(251),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const i=2147483647;function d(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let o=d(n);const a=o.write(e,t);return a!==n&&(o=o.slice(0,a)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return s.from(o,t,n);const a=function(e){if(s.isBuffer(e)){const t=0|p(e.length),n=d(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?d(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),d(e<0?0:0|p(e))}function m(e){const t=e.length<0?0:0|p(e.length),n=d(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,s.prototype),o}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(a)return o?-1:G(e).length;t=(""+t).toLowerCase(),a=!0}}function N(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function v(e,t,n,o,a){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=s.from(t,o)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,a);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,o,a){let r,i=1,d=e.length,s=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;i=2,d/=2,s/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){let o=-1;for(r=n;r<d;r++)if(l(e,r)===l(t,-1===o?0:r-o)){if(-1===o&&(o=r),r-o+1===s)return o*i}else-1!==o&&(r-=r-o),o=-1}else for(n+s>d&&(n=d-s),r=n;r>=0;r--){let n=!0;for(let o=0;o<s;o++)if(l(e,r+o)!==l(t,o)){n=!1;break}if(n)return r}return-1}function b(e,t,n,o){n=Number(n)||0;const a=e.length-n;o?(o=Number(o))>a&&(o=a):o=a;const r=t.length;let i;for(o>r/2&&(o=r/2),i=0;i<o;++i){const o=parseInt(t.substr(2*i,2),16);if(K(o))return i;e[n+i]=o}return i}function $(e,t,n,o){return J(G(t,e.length-n),e,n,o)}function x(e,t,n,o){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function w(e,t,n,o){return J(H(t),e,n,o)}function _(e,t,n,o){return J(function(e,t){let n,o,a;const r=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),o=n>>8,a=n%256,r.push(a),r.push(o);return r}(t,e.length-n),e,n,o)}function C(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const o=[];let a=t;for(;a<n;){const t=e[a];let r=null,i=t>239?4:t>223?3:t>191?2:1;if(a+i<=n){let n,o,d,s;switch(i){case 1:t<128&&(r=t);break;case 2:n=e[a+1],128==(192&n)&&(s=(31&t)<<6|63&n,s>127&&(r=s));break;case 3:n=e[a+1],o=e[a+2],128==(192&n)&&128==(192&o)&&(s=(15&t)<<12|(63&n)<<6|63&o,s>2047&&(s<55296||s>57343)&&(r=s));break;case 4:n=e[a+1],o=e[a+2],d=e[a+3],128==(192&n)&&128==(192&o)&&128==(192&d)&&(s=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&d,s>65535&&s<1114112&&(r=s))}}null===r?(r=65533,i=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),a+=i}return function(e){const t=e.length;if(t<=q)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=q));return n}(o)}t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?d(e):void 0!==t?"string"==typeof n?d(e).fill(t,n):d(e).fill(t):d(e)}(e,t,n)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let a=0,r=Math.min(n,o);a<r;++a)if(e[a]!==t[a]){n=e[a],o=t[a];break}return n<o?-1:o<n?1:0},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const o=s.allocUnsafe(t);let a=0;for(n=0;n<e.length;++n){let t=e[n];if(W(t,Uint8Array))a+t.length>o.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(o,a)):Uint8Array.prototype.set.call(o,t,a);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,a)}a+=t.length}return o},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):N.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,o,a){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===a&&(a=this.length),t<0||n>e.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&t>=n)return 0;if(o>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(a>>>=0)-(o>>>=0),i=(n>>>=0)-(t>>>=0);const d=Math.min(r,i),l=this.slice(o,a),u=e.slice(t,n);for(let e=0;e<d;++e)if(l[e]!==u[e]){r=l[e],i=u[e];break}return r<i?-1:i<r?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return $(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const q=4096;function E(e,t,n){let o="";n=Math.min(e.length,n);for(let a=t;a<n;++a)o+=String.fromCharCode(127&e[a]);return o}function I(e,t,n){let o="";n=Math.min(e.length,n);for(let a=t;a<n;++a)o+=String.fromCharCode(e[a]);return o}function A(e,t,n){const o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let a="";for(let o=t;o<n;++o)a+=X[e[o]];return a}function T(e,t,n){const o=e.slice(t,n);let a="";for(let e=0;e<o.length-1;e+=2)a+=String.fromCharCode(o[e]+256*o[e+1]);return a}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,o,a,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function k(e,t,n,o,a){V(t,o,a,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,n}function P(e,t,n,o,a){V(t,o,a,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=i,i>>=8,e[n+2]=i,i>>=8,e[n+1]=i,i>>=8,e[n]=i,n+8}function j(e,t,n,o,a,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,o,r){return t=+t,n>>>=0,r||j(e,0,n,4),a.write(e,t,n,o,23,4),n+4}function D(e,t,n,o,r){return t=+t,n>>>=0,r||j(e,0,n,8),a.write(e,t,n,o,52,8),n+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,s.prototype),o},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=this[e],a=1,r=0;for(;++r<t&&(a*=256);)o+=this[e+r]*a;return o},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=this[e+--t],a=1;for(;t>0&&(a*=256);)o+=this[e+--t]*a;return o},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))})),s.prototype.readBigUInt64BE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(a)})),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=this[e],a=1,r=0;for(;++r<t&&(a*=256);)o+=this[e+r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=t,a=1,r=this[e+--o];for(;o>0&&(a*=256);)r+=this[e+--o]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||L(this,e,t,n,Math.pow(2,8*n)-1,0);let a=1,r=0;for(this[t]=255&e;++r<n&&(a*=256);)this[t+r]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||L(this,e,t,n,Math.pow(2,8*n)-1,0);let a=n-1,r=1;for(this[t+a]=255&e;--a>=0&&(r*=256);)this[t+a]=e/r&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Y((function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=Y((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}let a=0,r=1,i=0;for(this[t]=255&e;++a<n&&(r*=256);)e<0&&0===i&&0!==this[t+a-1]&&(i=1),this[t+a]=(e/r|0)-i&255;return t+n},s.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}let a=n-1,r=1,i=0;for(this[t+a]=255&e;--a>=0&&(r*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/r|0)-i&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Y((function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=Y((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,o){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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),e.length-t<o-n&&(o=e.length-t+n);const a=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),a},s.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{const r=s.isBuffer(e)?e:s.from(e,o),i=r.length;if(0===i)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=r[a%i]}return this};const M={};function B(e,t,n){M[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,o,a,r){if(e>n||e<t){const o="bigint"==typeof t?"n":"";let a;throw a=r>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(r+1)}${o}`:`>= -(2${o} ** ${8*(r+1)-1}${o}) and < 2 ** ${8*(r+1)-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new M.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(o,a,r)}function U(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let o=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=F(String(n)):"bigint"==typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=F(a)),a+="n"),o+=` It must be ${t}. Received ${a}`,o}),RangeError);const Q=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const o=e.length;let a=null;const r=[];for(let i=0;i<o;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(i+1===o){(t-=3)>-1&&r.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&r.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function H(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,o){let a;for(a=0;a<o&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let a=0;a<16;++a)t[o+a]=e[n]+e[a]}return t}();function Y(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},2341:e=>{e.exports=function e(t){return null===t||"object"!=typeof t||null!=t.toJSON?JSON.stringify(t):Array.isArray(t)?"["+t.reduce(((t,n,o)=>t+(0===o?"":",")+e(void 0===n||"symbol"==typeof n?null:n)),"")+"]":"{"+Object.keys(t).sort().reduce(((n,o,a)=>void 0===t[o]||"symbol"==typeof t[o]?n:n+(0===n.length?"":",")+e(o)+":"+e(t[o])),"")+"}"}},7833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,a,r,i=null;function d(...e){if(!d.enabled)return;const o=d,a=Number(new Date),r=a-(n||a);o.diff=r,o.prev=n,o.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,a)=>{if("%%"===n)return"%";i++;const r=t.formatters[a];if("function"==typeof r){const t=e[i];n=r.call(o,t),e.splice(i,1),i--}return n})),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return d.namespace=e,d.useColors=t.useColors(),d.color=t.selectColor(e),d.extend=o,d.destroy=t.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(a!==t.namespaces&&(a=t.namespaces,r=t.enabled(e)),r),set:e=>{i=e}}),"function"==typeof t.init&&t.init(d),d}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),a=o.length;for(n=0;n<a;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},7007:e=>{var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function r(){r.init.call(this)}e.exports=r,e.exports.once=function(e,t){return new Promise((function(n,o){function a(n){e.removeListener(t,r),o(n)}function r(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}f(e,t,r,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,{once:!0})}(e,a)}))},r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var i=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function l(e,t,n,o){var a,r,i,l;if(d(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=o?[n,i]:[i,n]:o?i.unshift(n):i.push(n),(a=s(e))>0&&i.length>a&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){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 c(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(o);return a.listener=n,o.wrapFn=a,a}function m(e,t,n){var o=e._events;if(void 0===o)return[];var a=o[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):p(a,a.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}function f(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(r){o.once&&e.removeEventListener(t,a),n(r)}))}}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),r.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},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return s(this)},r.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,r=this._events;if(void 0!==r)a=a&&void 0===r.error;else if(!a)return!1;if(a){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var d=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw d.context=i,d}var s=r[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,u=p(s,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},r.prototype.addListener=function(e,t){return l(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return l(this,e,t,!0)},r.prototype.once=function(e,t){return d(t),this.on(e,c(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,c(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,o,a,r,i;if(d(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,a=r;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,i||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,r=Object.keys(n);for(o=0;o<r.length;++o)"removeListener"!==(a=r[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},r.prototype.listeners=function(e){return m(this,e,!0)},r.prototype.rawListeners=function(e){return m(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},r.prototype.listenerCount=h,r.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},251:(e,t)=>{t.read=function(e,t,n,o,a){var r,i,d=8*a-o-1,s=(1<<d)-1,l=s>>1,u=-7,c=n?a-1:0,m=n?-1:1,h=e[t+c];for(c+=m,r=h&(1<<-u)-1,h>>=-u,u+=d;u>0;r=256*r+e[t+c],c+=m,u-=8);for(i=r&(1<<-u)-1,r>>=-u,u+=o;u>0;i=256*i+e[t+c],c+=m,u-=8);if(0===r)r=1-l;else{if(r===s)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,o),r-=l}return(h?-1:1)*i*Math.pow(2,r-o)},t.write=function(e,t,n,o,a,r){var i,d,s,l=8*r-a-1,u=(1<<l)-1,c=u>>1,m=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:r-1,p=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+c>=1?m/s:m*Math.pow(2,1-c))*s>=2&&(i++,s/=2),i+c>=u?(d=0,i=u):i+c>=1?(d=(t*s-1)*Math.pow(2,a),i+=c):(d=t*Math.pow(2,c-1)*Math.pow(2,a),i=0));a>=8;e[n+h]=255&d,h+=p,d/=256,a-=8);for(i=i<<a|d,l+=a;l>0;e[n+h]=255&i,h+=p,i/=256,l-=8);e[n+h-p]|=128*f}},7034:(e,t,n)=>{const{isArray:o,isObject:a,isString:r}=n(7382),{asArray:i}=n(9263),{prependBase:d}=n(470),s=n(2207),l=n(7532);function u(e){throw new s("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:e})}function c({context:e,base:t}){if(!e)return;const n=e["@context"];if(r(n))e["@context"]=d(t,n);else if(o(n))for(let e=0;e<n.length;++e){const o=n[e];r(o)?n[e]=d(t,o):a(o)&&c({context:{"@context":o},base:t})}else if(a(n))for(const e in n)c({context:n[e],base:t})}e.exports=class{constructor({sharedCache:e}){this.perOpCache=new Map,this.sharedCache=e}async resolve({activeCtx:e,context:t,documentLoader:n,base:d,cycles:s=new Set}){t&&a(t)&&t["@context"]&&(t=t["@context"]),t=i(t);const c=[];for(const i of t){if(r(i)){let t=this._get(i);t||(t=await this._resolveRemoteContext({activeCtx:e,url:i,documentLoader:n,base:d,cycles:s})),o(t)?c.push(...t):c.push(t);continue}if(null===i){c.push(new l({document:null}));continue}a(i)||u(t);const m=JSON.stringify(i);let h=this._get(m);h||(h=new l({document:i}),this._cacheResolvedContext({key:m,resolved:h,tag:"static"})),c.push(h)}return c}_get(e){let t=this.perOpCache.get(e);if(!t){const n=this.sharedCache.get(e);n&&(t=n.get("static"),t&&this.perOpCache.set(e,t))}return t}_cacheResolvedContext({key:e,resolved:t,tag:n}){if(this.perOpCache.set(e,t),void 0!==n){let o=this.sharedCache.get(e);o||(o=new Map,this.sharedCache.set(e,o)),o.set(n,t)}return t}async _resolveRemoteContext({activeCtx:e,url:t,documentLoader:n,base:o,cycles:a}){t=d(o,t);const{context:r,remoteDoc:i}=await this._fetchContext({activeCtx:e,url:t,documentLoader:n,cycles:a});c({context:r,base:o=i.documentUrl||t});const s=await this.resolve({activeCtx:e,context:r,documentLoader:n,base:o,cycles:a});return this._cacheResolvedContext({key:t,resolved:s,tag:i.tag}),s}async _fetchContext({activeCtx:e,url:t,documentLoader:n,cycles:i}){if(i.size>10)throw new s("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"json-ld-1.0"===e.processingMode?"loading remote context failed":"context overflow",max:10});if(i.has(t))throw new s("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:"json-ld-1.0"===e.processingMode?"recursive context inclusion":"context overflow",url:t});let d,l;i.add(t);try{l=await n(t),d=l.document||null,r(d)&&(d=JSON.parse(d))}catch(e){throw new s("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:t,cause:e})}if(!a(d))throw new s("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:t});return d="@context"in d?{"@context":d["@context"]}:{"@context":{}},l.contextUrl&&(o(d["@context"])||(d["@context"]=[d["@context"]]),d["@context"].push(l.contextUrl)),{context:d,remoteDoc:l}}}},2207:e=>{e.exports=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",n={}){super(e),this.name=t,this.message=e,this.details=n}}},5445:e=>{e.exports=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(t,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,n)},t.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(t)},t.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(t)},t}},8229:(e,t,n)=>{e.exports=n(989).NQuads},3743:e=>{e.exports=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}},7532:(e,t,n)=>{const o=n(9749);e.exports=class{constructor({document:e}){this.document=e,this.cache=new o({max:10})}getProcessed(e){return this.cache.get(e)}setProcessed(e,t){this.cache.set(e,t)}}},1058:(e,t,n)=>{const o=n(2207),{isArray:a,isObject:r,isString:i,isUndefined:d}=n(7382),{isList:s,isValue:l,isGraph:u,isSimpleGraph:c,isSubjectReference:m}=n(3978),{expandIri:h,getContextValue:p,isKeyword:f,process:N,processingMode:g}=n(1972),{removeBase:v,prependBase:y}=n(470),{REGEX_KEYWORD:b,addValue:$,asArray:x,compareShortestLeast:w}=n(9263),_={};function C(e,t,n){if("@nest"!==h(e,t,{vocab:!0},n))throw new o("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}e.exports=_,_.compact=async({activeCtx:e,activeProperty:t=null,element:n,options:h={}})=>{if(a(n)){let o=[];for(let a=0;a<n.length;++a){const r=await _.compact({activeCtx:e,activeProperty:t,element:n[a],options:h});null!==r&&o.push(r)}return h.compactArrays&&1===o.length&&0===(p(e,t,"@container")||[]).length&&(o=o[0]),o}const v=p(e,t,"@context");if(d(v)||(e=await N({activeCtx:e,localCtx:v,propagate:!0,overrideProtected:!0,options:h})),r(n)){if(h.link&&"@id"in n&&h.link.hasOwnProperty(n["@id"])){const e=h.link[n["@id"]];for(let t=0;t<e.length;++t)if(e[t].expanded===n)return e[t].compacted}if(l(n)||m(n)){const o=_.compactValue({activeCtx:e,activeProperty:t,value:n,options:h});return h.link&&m(n)&&(h.link.hasOwnProperty(n["@id"])||(h.link[n["@id"]]=[]),h.link[n["@id"]].push({expanded:n,compacted:o})),o}if(s(n)&&(p(e,t,"@container")||[]).includes("@list"))return _.compact({activeCtx:e,activeProperty:t,element:n["@list"],options:h});const v="@reverse"===t,y={},b=e;l(n)||m(n)||(e=e.revertToPreviousContext());const w=p(b,t,"@context");d(w)||(e=await N({activeCtx:e,localCtx:w,propagate:!0,overrideProtected:!0,options:h})),h.link&&"@id"in n&&(h.link.hasOwnProperty(n["@id"])||(h.link[n["@id"]]=[]),h.link[n["@id"]].push({expanded:n,compacted:y}));let S=n["@type"]||[];S.length>1&&(S=Array.from(S).sort());const q=e;for(const t of S){const n=_.compactIri({activeCtx:q,iri:t,relativeTo:{vocab:!0}}),o=p(b,n,"@context");d(o)||(e=await N({activeCtx:e,localCtx:o,options:h,propagate:!1}))}const E=Object.keys(n).sort();for(const d of E){const m=n[d];if("@id"!==d)if("@type"!==d)if("@reverse"!==d)if("@preserve"!==d)if("@index"!==d)if("@graph"!==d&&"@list"!==d&&"@included"!==d&&f(d)){const t=_.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});$(y,t,m)}else{if(!a(m))throw new o("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===m.length){const t=_.compactIri({activeCtx:e,iri:d,value:m,relativeTo:{vocab:!0},reverse:v}),n=e.mappings.has(t)?e.mappings.get(t)["@nest"]:null;let o=y;n&&(C(e,n,h),r(y[n])||(y[n]={}),o=y[n]),$(o,t,m,{propertyIsArray:!0})}for(const t of m){const n=_.compactIri({activeCtx:e,iri:d,value:t,relativeTo:{vocab:!0},reverse:v}),o=e.mappings.has(n)?e.mappings.get(n)["@nest"]:null;let m=y;o&&(C(e,o,h),r(y[o])||(y[o]={}),m=y[o]);const f=p(e,n,"@container")||[],N=u(t),g=s(t);let b;g?b=t["@list"]:N&&(b=t["@graph"]);let w=await _.compact({activeCtx:e,activeProperty:n,element:g||N?b:t,options:h});if(g){if(a(w)||(w=[w]),f.includes("@list")){$(m,n,w,{valueIsArray:!0,allowDuplicate:!0});continue}w={[_.compactIri({activeCtx:e,iri:"@list",relativeTo:{vocab:!0}})]:w},"@index"in t&&(w[_.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=t["@index"])}if(N)if(f.includes("@graph")&&(f.includes("@id")||f.includes("@index")&&c(t))){let o;m.hasOwnProperty(n)?o=m[n]:m[n]=o={};const a=(f.includes("@id")?t["@id"]:t["@index"])||_.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}});$(o,a,w,{propertyIsArray:!h.compactArrays||f.includes("@set")})}else f.includes("@graph")&&c(t)?(a(w)&&w.length>1&&(w={"@included":w}),$(m,n,w,{propertyIsArray:!h.compactArrays||f.includes("@set")})):(a(w)&&1===w.length&&h.compactArrays&&(w=w[0]),w={[_.compactIri({activeCtx:e,iri:"@graph",relativeTo:{vocab:!0}})]:w},"@id"in t&&(w[_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=t["@id"]),"@index"in t&&(w[_.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=t["@index"]),$(m,n,w,{propertyIsArray:!h.compactArrays||f.includes("@set")}));else if(f.includes("@language")||f.includes("@index")||f.includes("@id")||f.includes("@type")){let o,a;if(m.hasOwnProperty(n)?o=m[n]:m[n]=o={},f.includes("@language"))l(w)&&(w=w["@value"]),a=t["@language"];else if(f.includes("@index")){const o=p(e,n,"@index")||"@index",r=_.compactIri({activeCtx:e,iri:o,relativeTo:{vocab:!0}});if("@index"===o)a=t["@index"],delete w[r];else{let e;if([a,...e]=x(w[o]||[]),i(a))switch(e.length){case 0:delete w[o];break;case 1:w[o]=e[0];break;default:w[o]=e}else a=null}}else if(f.includes("@id")){const t=_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}});a=w[t],delete w[t]}else if(f.includes("@type")){const o=_.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}});let r;switch([a,...r]=x(w[o]||[]),r.length){case 0:delete w[o];break;case 1:w[o]=r[0];break;default:w[o]=r}1===Object.keys(w).length&&"@id"in t&&(w=await _.compact({activeCtx:e,activeProperty:n,element:{"@id":t["@id"]},options:h}))}a||(a=_.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}})),$(o,a,w,{propertyIsArray:f.includes("@set")})}else{const e=!h.compactArrays||f.includes("@set")||f.includes("@list")||a(w)&&0===w.length||"@list"===d||"@graph"===d;$(m,n,w,{propertyIsArray:e})}}}else{if((p(e,t,"@container")||[]).includes("@index"))continue;const n=_.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});$(y,n,m)}else{const n=await _.compact({activeCtx:e,activeProperty:t,element:m,options:h});a(n)&&0===n.length||$(y,d,n)}else{const t=await _.compact({activeCtx:e,activeProperty:"@reverse",element:m,options:h});for(const n in t)if(e.mappings.has(n)&&e.mappings.get(n).reverse){const o=t[n],a=(p(e,n,"@container")||[]).includes("@set")||!h.compactArrays;$(y,n,o,{propertyIsArray:a}),delete t[n]}if(Object.keys(t).length>0){const n=_.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});$(y,n,t)}}else{let t=x(m).map((e=>_.compactIri({activeCtx:b,iri:e,relativeTo:{vocab:!0}})));1===t.length&&(t=t[0]);const n=_.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}}),o=(p(e,n,"@container")||[]).includes("@set")&&g(e,1.1)||a(t)&&0===m.length;$(y,n,t,{propertyIsArray:o})}else{let t=x(m).map((t=>_.compactIri({activeCtx:e,iri:t,relativeTo:{vocab:!1},base:h.base})));1===t.length&&(t=t[0]),y[_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=t}}return y}return n},_.compactIri=({activeCtx:e,iri:t,value:n=null,relativeTo:a={vocab:!1},reverse:i=!1,base:d=null})=>{if(null===t)return t;e.isPropertyTermScoped&&e.previousContext&&(e=e.previousContext);const c=e.getInverse();if(f(t)&&t in c&&"@none"in c[t]&&"@type"in c[t]["@none"]&&"@none"in c[t]["@none"]["@type"])return c[t]["@none"]["@type"]["@none"];if(a.vocab&&t in c){const o=e["@language"]||"@none",a=[];r(n)&&"@index"in n&&!("@graph"in n)&&a.push("@index","@index@set"),r(n)&&"@preserve"in n&&(n=n["@preserve"][0]),u(n)?("@index"in n&&a.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n&&a.push("@graph@id","@graph@id@set"),a.push("@graph","@graph@set","@set"),"@index"in n||a.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n||a.push("@graph@id","@graph@id@set")):r(n)&&!l(n)&&a.push("@id","@id@set","@type","@set@type");let d="@language",c="@null";if(i)d="@type",c="@reverse",a.push("@set");else if(s(n)){"@index"in n||a.push("@list");const e=n["@list"];if(0===e.length)d="@any",c="@none";else{let t=0===e.length?o:null,n=null;for(let o=0;o<e.length;++o){const a=e[o];let r="@none",i="@none";if(l(a)?"@direction"in a?r=`${(a["@language"]||"").toLowerCase()}_${a["@direction"]}`:"@language"in a?r=a["@language"].toLowerCase():"@type"in a?i=a["@type"]:r="@null":i="@id",null===t?t=r:r!==t&&l(a)&&(t="@none"),null===n?n=i:i!==n&&(n="@none"),"@none"===t&&"@none"===n)break}t=t||"@none",n=n||"@none","@none"!==n?(d="@type",c=n):c=t}}else{if(l(n))if("@language"in n&&!("@index"in n)){a.push("@language","@language@set"),c=n["@language"];const e=n["@direction"];e&&(c=`${c}_${e}`)}else"@direction"in n&&!("@index"in n)?c=`_${n["@direction"]}`:"@type"in n&&(d="@type",c=n["@type"]);else d="@type",c="@id";a.push("@set")}a.push("@none"),r(n)&&!("@index"in n)&&a.push("@index","@index@set"),l(n)&&1===Object.keys(n).length&&a.push("@language","@language@set");const m=function(e,t,n,o,a,i){null===i&&(i="@null");const d=[];if(("@id"===i||"@reverse"===i)&&r(n)&&"@id"in n){"@reverse"===i&&d.push("@reverse");const t=_.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:!0}});e.mappings.has(t)&&e.mappings.get(t)&&e.mappings.get(t)["@id"]===n["@id"]?d.push.apply(d,["@vocab","@id"]):d.push.apply(d,["@id","@vocab"])}else{d.push(i);const e=d.find((e=>e.includes("_")));e&&d.push(e.replace(/^[^_]+_/,"_"))}d.push("@none");const s=e.inverse[t];for(const e of o){if(!(e in s))continue;const t=s[e][a];for(const e of d)if(e in t)return t[e]}return null}(e,t,n,a,d,c);if(null!==m)return m}if(a.vocab&&"@vocab"in e){const n=e["@vocab"];if(0===t.indexOf(n)&&t!==n){const o=t.substr(n.length);if(!e.mappings.has(o))return o}}let m=null;const h=[];let p=e.fastCurieMap;const N=t.length-1;for(let e=0;e<N&&t[e]in p;++e)p=p[t[e]],""in p&&h.push(p[""][0]);for(let o=h.length-1;o>=0;--o){const a=h[o],r=a.terms;for(const o of r){const r=o+":"+t.substr(a.iri.length);e.mappings.get(o)._prefix&&(!e.mappings.has(r)||null===n&&e.mappings.get(r)["@id"]===t)&&(null===m||w(r,m)<0)&&(m=r)}}if(null!==m)return m;for(const[n,a]of e.mappings)if(a&&a._prefix&&t.startsWith(n+":"))throw new o(`Absolute IRI "${t}" confused with prefix "${n}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:e});if(!a.vocab){if("@base"in e){if(e["@base"]){const n=v(y(d,e["@base"]),t);return b.test(n)?`./${n}`:n}return t}return v(d,t)}return t},_.compactValue=({activeCtx:e,activeProperty:t,value:n,options:o})=>{if(l(n)){const o=p(e,t,"@type"),a=p(e,t,"@language"),r=p(e,t,"@direction"),d=p(e,t,"@container")||[],s="@index"in n&&!d.includes("@index");if(!s&&"@none"!==o){if(n["@type"]===o)return n["@value"];if("@language"in n&&n["@language"]===a&&"@direction"in n&&n["@direction"]===r)return n["@value"];if("@language"in n&&n["@language"]===a)return n["@value"];if("@direction"in n&&n["@direction"]===r)return n["@value"]}const l=Object.keys(n).length,u=1===l||2===l&&"@index"in n&&!s,c="@language"in e,m=i(n["@value"]),h=e.mappings.has(t)&&null===e.mappings.get(t)["@language"];if(u&&"@none"!==o&&(!c||!m||h))return n["@value"];const f={};return s&&(f[_.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?f[_.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}})]=_.compactIri({activeCtx:e,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(f[_.compactIri({activeCtx:e,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(f[_.compactIri({activeCtx:e,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),f[_.compactIri({activeCtx:e,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],f}const a=h(e,t,{vocab:!0},o),r=p(e,t,"@type"),d=_.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:"@vocab"===r},base:o.base});return"@id"===r||"@vocab"===r||"@graph"===a?d:{[_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]:d}}},9378:e=>{const t="http://www.w3.org/1999/02/22-rdf-syntax-ns#",n="http://www.w3.org/2001/XMLSchema#";e.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:t,RDF_LIST:t+"List",RDF_FIRST:t+"first",RDF_REST:t+"rest",RDF_NIL:t+"nil",RDF_TYPE:t+"type",RDF_PLAIN_LITERAL:t+"PlainLiteral",RDF_XML_LITERAL:t+"XMLLiteral",RDF_JSON_LITERAL:t+"JSON",RDF_OBJECT:t+"object",RDF_LANGSTRING:t+"langString",XSD:n,XSD_BOOLEAN:n+"boolean",XSD_DOUBLE:n+"double",XSD_INTEGER:n+"integer",XSD_STRING:n+"string"}},1972:(e,t,n)=>{const o=n(9263),a=n(2207),{isArray:r,isObject:i,isString:d,isUndefined:s}=n(7382),{isAbsolute:l,isRelative:u,prependBase:c}=n(470),{handleEvent:m}=n(2246),{REGEX_BCP47:h,REGEX_KEYWORD:p,asArray:f,compareShortestLeast:N}=n(9263),g=new Map,v={};function y(e,t,n,o,a,r){if(null===t||!d(t)||v.isKeyword(t))return t;if(t.match(p))return null;if(o&&o.hasOwnProperty(t)&&!0!==a.get(t)&&v.createTermDefinition({activeCtx:e,localCtx:o,term:t,defined:a,options:r}),(n=n||{}).vocab){const n=e.mappings.get(t);if(null===n)return null;if(i(n)&&"@id"in n)return n["@id"]}const s=t.indexOf(":");if(s>0){const n=t.substr(0,s),i=t.substr(s+1);if("_"===n||0===i.indexOf("//"))return t;o&&o.hasOwnProperty(n)&&v.createTermDefinition({activeCtx:e,localCtx:o,term:n,defined:a,options:r});const d=e.mappings.get(n);if(d&&d._prefix)return d["@id"]+i;if(l(t))return t}if(n.vocab&&"@vocab"in e)t=e["@vocab"]+t;else if(n.base){let n,o;"@base"in e?e["@base"]?(o=c(r.base,e["@base"]),n=c(o,t)):(o=e["@base"],n=t):(o=r.base,n=c(r.base,t)),t=n}return t}function b(e,t){if(!e||"object"!=typeof e||!t||"object"!=typeof t)return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!b(e[n],t[n]))return!1;return!0}const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(const n in e){let o=e[n],a=t[n];if("@container"===n&&Array.isArray(o)&&Array.isArray(a)&&(o=o.slice().sort(),a=a.slice().sort()),!b(o,a))return!1}return!0}e.exports=v,v.process=async({activeCtx:e,localCtx:t,options:n,propagate:o=!0,overrideProtected:s=!1,cycles:p=new Set})=>{if(i(t)&&"@context"in t&&r(t["@context"])&&(t=t["@context"]),0===f(t).length)return e;const N=[],g=[({event:e,next:t})=>{N.push(e),t()}];n.eventHandler&&g.push(n.eventHandler);const b=n;n={...n,eventHandler:g};const $=await n.contextResolver.resolve({activeCtx:e,context:t,documentLoader:n.documentLoader,base:n.base});i($[0].document)&&"boolean"==typeof $[0].document["@propagate"]&&(o=$[0].document["@propagate"]);let x=e;o||x.previousContext||(x=x.clone(),x.previousContext=e);for(const o of $){let{document:r}=o;if(e=x,null===r){if(!s&&0!==Object.keys(e.protected).length)throw new a("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});x=e=v.getInitialContext(n).clone();continue}const f=o.getProcessed(e);if(f){if(b.eventHandler)for(const e of f.events)m({event:e,options:b});x=e=f.context;continue}if(i(r)&&"@context"in r&&(r=r["@context"]),!i(r))throw new a("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:r});x=x.clone();const g=new Map;if("@version"in r){if(1.1!==r["@version"])throw new a("Unsupported JSON-LD version: "+r["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:r});if(e.processingMode&&"json-ld-1.0"===e.processingMode)throw new a("@version: "+r["@version"]+" not compatible with "+e.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:r});x.processingMode="json-ld-1.1",x["@version"]=r["@version"],g.set("@version",!0)}if(x.processingMode=x.processingMode||e.processingMode,"@base"in r){let e=r["@base"];if(null===e||l(e));else{if(!u(e))throw new a('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:r});e=c(x["@base"],e)}x["@base"]=e,g.set("@base",!0)}if("@vocab"in r){const e=r["@vocab"];if(null===e)delete x["@vocab"];else{if(!d(e))throw new a('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:r});if(!l(e)&&v.processingMode(x,1))throw new a('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:r});{const t=y(x,e,{vocab:!0,base:!0},void 0,void 0,n);l(t)||n.eventHandler&&m({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:t}},options:n}),x["@vocab"]=t}}g.set("@vocab",!0)}if("@language"in r){const e=r["@language"];if(null===e)delete x["@language"];else{if(!d(e))throw new a('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:r});e.match(h)||n.eventHandler&&m({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:n}),x["@language"]=e.toLowerCase()}g.set("@language",!0)}if("@direction"in r){const t=r["@direction"];if("json-ld-1.0"===e.processingMode)throw new a("Invalid JSON-LD syntax; @direction not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:r});if(null===t)delete x["@direction"];else{if("ltr"!==t&&"rtl"!==t)throw new a('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:r});x["@direction"]=t}g.set("@direction",!0)}if("@propagate"in r){const n=r["@propagate"];if("json-ld-1.0"===e.processingMode)throw new a("Invalid JSON-LD syntax; @propagate not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:r});if("boolean"!=typeof n)throw new a("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:t});g.set("@propagate",!0)}if("@import"in r){const o=r["@import"];if("json-ld-1.0"===e.processingMode)throw new a("Invalid JSON-LD syntax; @import not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:r});if(!d(o))throw new a("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:t});const i=await n.contextResolver.resolve({activeCtx:e,context:o,documentLoader:n.documentLoader,base:n.base});if(1!==i.length)throw new a("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:t});const s=i[0].getProcessed(e);if(s)r=s;else{const n=i[0].document;if("@import"in n)throw new a("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:t});for(const e in n)r.hasOwnProperty(e)||(r[e]=n[e]);i[0].setProcessed(e,r)}g.set("@import",!0)}g.set("@protected",r["@protected"]||!1);for(const e in r)if(v.createTermDefinition({activeCtx:x,localCtx:r,term:e,defined:g,options:n,overrideProtected:s}),i(r[e])&&"@context"in r[e]){const t=r[e]["@context"];let o=!0;if(d(t)){const e=c(n.base,t);p.has(e)?o=!1:p.add(e)}if(o)try{await v.process({activeCtx:x.clone(),localCtx:r[e]["@context"],overrideProtected:!0,options:n,cycles:p})}catch(t){throw new a("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:r[e]["@context"],term:e})}}o.setProcessed(e,{context:x,events:N})}return x},v.createTermDefinition=({activeCtx:e,localCtx:t,term:n,defined:o,options:s,overrideProtected:u=!1})=>{if(o.has(n)){if(o.get(n))return;throw new a("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:t,term:n})}let c;if(o.set(n,!1),t.hasOwnProperty(n)&&(c=t[n]),"@type"===n&&i(c)&&"@set"===(c["@container"]||"@set")&&v.processingMode(e,1.1)){const e=["@container","@id","@protected"],o=Object.keys(c);if(0===o.length||o.some((t=>!e.includes(t))))throw new a("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n})}else{if(v.isKeyword(n))throw new a("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n});if(n.match(p))return void(s.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:n}},options:s}));if(""===n)throw new a("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:t})}const h=e.mappings.get(n);e.mappings.has(n)&&e.mappings.delete(n);let f=!1;if((d(c)||null===c)&&(f=!0,c={"@id":c}),!i(c))throw new a("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:t});const N={};e.mappings.set(n,N),N.reverse=!1;const g=["@container","@id","@language","@reverse","@type"];v.processingMode(e,1.1)&&g.push("@context","@direction","@index","@nest","@prefix","@protected");for(const e in c)if(!g.includes(e))throw new a("Invalid JSON-LD syntax; a term definition must not contain "+e,"jsonld.SyntaxError",{code:"invalid term definition",context:t});const $=n.indexOf(":");if(N._termHasColon=$>0,"@reverse"in c){if("@id"in c)throw new a("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});if("@nest"in c)throw new a("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});const r=c["@reverse"];if(!d(r))throw new a("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(r.match(p))return s.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:r}},options:s}),void(h?e.mappings.set(n,h):e.mappings.delete(n));const i=y(e,r,{vocab:!0,base:!1},t,o,s);if(!l(i))throw new a("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});N["@id"]=i,N.reverse=!0}else if("@id"in c){let r=c["@id"];if(r&&!d(r))throw new a("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(null===r)N["@id"]=null;else{if(!v.isKeyword(r)&&r.match(p))return s.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:r}},options:s}),void(h?e.mappings.set(n,h):e.mappings.delete(n));if(r!==n){if(r=y(e,r,{vocab:!0,base:!1},t,o,s),!l(r)&&!v.isKeyword(r))throw new a("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(n.match(/(?::[^:])|\//)&&y(e,n,{vocab:!0,base:!1},t,new Map(o).set(n,!0),s)!==r)throw new a("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});N["@id"]=r,N._prefix=f&&!N._termHasColon&&null!==r.match(/[:\/\?#\[\]@]$/)}}}if(!("@id"in N))if(N._termHasColon){const a=n.substr(0,$);if(t.hasOwnProperty(a)&&v.createTermDefinition({activeCtx:e,localCtx:t,term:a,defined:o,options:s}),e.mappings.has(a)){const t=n.substr($+1);N["@id"]=e.mappings.get(a)["@id"]+t}else N["@id"]=n}else if("@type"===n)N["@id"]=n;else{if(!("@vocab"in e))throw new a("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t,term:n});N["@id"]=e["@vocab"]+n}if((!0===c["@protected"]||!0===o.get("@protected")&&!1!==c["@protected"])&&(e.protected[n]=!0,N.protected=!0),o.set(n,!0),"@type"in c){let n=c["@type"];if(!d(n))throw new a("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if("@json"===n||"@none"===n){if(v.processingMode(e,1))throw new a(`Invalid JSON-LD syntax; an @context @type value must not be "${n}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else if("@id"!==n&&"@vocab"!==n){if(n=y(e,n,{vocab:!0,base:!1},t,o,s),!l(n))throw new a("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if(0===n.indexOf("_:"))throw new a("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}N["@type"]=n}if("@container"in c){const n=d(c["@container"])?[c["@container"]]:c["@container"]||[],o=["@list","@set","@index","@language"];let i=!0;const s=n.includes("@set");if(v.processingMode(e,1.1)){if(o.push("@graph","@id","@type"),n.includes("@list")){if(1!==n.length)throw new a("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else if(n.includes("@graph")){if(n.some((e=>"@graph"!==e&&"@id"!==e&&"@index"!==e&&"@set"!==e)))throw new a("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else i&=n.length<=(s?2:1);if(n.includes("@type")&&(N["@type"]=N["@type"]||"@id",!["@id","@vocab"].includes(N["@type"])))throw new a("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else i&=!r(c["@container"]),i&=n.length<=1;if(i&=n.every((e=>o.includes(e))),i&=!(s&&n.includes("@list")),!i)throw new a("Invalid JSON-LD syntax; @context @container value must be one of the following: "+o.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:t});if(N.reverse&&!n.every((e=>["@index","@set"].includes(e))))throw new a("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});N["@container"]=n}if("@index"in c){if(!("@container"in c)||!N["@container"].includes("@index"))throw new a(`Invalid JSON-LD syntax; @index without @index in @container: "${c["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});if(!d(c["@index"])||0===c["@index"].indexOf("@"))throw new a(`Invalid JSON-LD syntax; @index must expand to an IRI: "${c["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});N["@index"]=c["@index"]}if("@context"in c&&(N["@context"]=c["@context"]),"@language"in c&&!("@type"in c)){let e=c["@language"];if(null!==e&&!d(e))throw new a("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:t});null!==e&&(e=e.toLowerCase()),N["@language"]=e}if("@prefix"in c){if(n.match(/:|\//))throw new a("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:t});if(v.isKeyword(N["@id"]))throw new a("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:t});if("boolean"!=typeof c["@prefix"])throw new a("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:t});N._prefix=!0===c["@prefix"]}if("@direction"in c){const e=c["@direction"];if(null!==e&&"ltr"!==e&&"rtl"!==e)throw new a('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:t});N["@direction"]=e}if("@nest"in c){const e=c["@nest"];if(!d(e)||"@nest"!==e&&0===e.indexOf("@"))throw new a("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:t});N["@nest"]=e}const x=N["@id"];if("@context"===x||"@preserve"===x)throw new a("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:t});if(h&&h.protected&&!u&&(e.protected[n]=!0,N.protected=!0,!b(h,N)))throw new a("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:t,term:n})},v.expandIri=(e,t,n,o)=>y(e,t,n,void 0,void 0,o),v.getInitialContext=e=>{const t=JSON.stringify({processingMode:e.processingMode}),n=g.get(t);if(n)return n;const a={processingMode:e.processingMode,mappings:new Map,inverse:null,getInverse:function(){const e=this;if(e.inverse)return e.inverse;const t=e.inverse={},n=e.fastCurieMap={},o={},a=(e["@language"]||"@none").toLowerCase(),d=e["@direction"],s=e.mappings,l=[...s.keys()].sort(N);for(const e of l){const r=s.get(e);if(null===r)continue;let l=r["@container"]||"@none";if(l=[].concat(l).sort().join(""),null===r["@id"])continue;const u=f(r["@id"]);for(const s of u){let u=t[s];const c=v.isKeyword(s);if(u)c||r._termHasColon||o[s].push(e);else if(t[s]=u={},!c&&!r._termHasColon){o[s]=[e];const t={iri:s,terms:o[s]};s[0]in n?n[s[0]].push(t):n[s[0]]=[t]}if(u[l]||(u[l]={"@language":{},"@type":{},"@any":{}}),u=u[l],i(e,u["@any"],"@none"),r.reverse)i(e,u["@type"],"@reverse");else if("@none"===r["@type"])i(e,u["@any"],"@none"),i(e,u["@language"],"@none"),i(e,u["@type"],"@none");else if("@type"in r)i(e,u["@type"],r["@type"]);else if("@language"in r&&"@direction"in r){const t=r["@language"],n=r["@direction"];i(e,u["@language"],t&&n?`${t}_${n}`.toLowerCase():t?t.toLowerCase():n?`_${n}`:"@null")}else"@language"in r?i(e,u["@language"],(r["@language"]||"@null").toLowerCase()):"@direction"in r?r["@direction"]?i(e,u["@language"],`_${r["@direction"]}`):i(e,u["@language"],"@none"):d?(i(e,u["@language"],`_${d}`),i(e,u["@language"],"@none"),i(e,u["@type"],"@none")):(i(e,u["@language"],a),i(e,u["@language"],"@none"),i(e,u["@type"],"@none"))}}for(const e in n)r(n,e,1);return t},clone:function(){const e={};return e.mappings=o.clone(this.mappings),e.clone=this.clone,e.inverse=null,e.getInverse=this.getInverse,e.protected=o.clone(this.protected),this.previousContext&&(e.previousContext=this.previousContext.clone()),e.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(e["@base"]=this["@base"]),"@language"in this&&(e["@language"]=this["@language"]),"@vocab"in this&&(e["@vocab"]=this["@vocab"]),e},revertToPreviousContext:function(){return this.previousContext?this.previousContext.clone():this},protected:{}};return 1e4===g.size&&g.clear(),g.set(t,a),a;function r(e,t,n){const o=e[t],a=e[t]={};let i,d;for(const e of o)i=e.iri,d=n>=i.length?"":i[n],d in a?a[d].push(e):a[d]=[e];for(const e in a)""!==e&&r(a,e,n+1)}function i(e,t,n){t.hasOwnProperty(n)||(t[n]=e)}},v.getContextValue=(e,t,n)=>{if(null===t){if("@context"===n)return;return null}if(e.mappings.has(t)){const o=e.mappings.get(t);if(s(n))return o;if(o.hasOwnProperty(n))return o[n]}return"@language"===n&&n in e||"@direction"===n&&n in e?e[n]:"@context"!==n?null:void 0},v.processingMode=(e,t)=>t.toString()>="1.1"?!e.processingMode||e.processingMode>="json-ld-"+t.toString():"json-ld-1.0"===e.processingMode,v.isKeyword=e=>{if(!d(e)||"@"!==e[0])return!1;switch(e){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},6957:(e,t,n)=>{const{parseLinkHeader:o,buildHeaders:a}=n(9263),{LINK_HEADER_CONTEXT:r}=n(9378),i=n(2207),d=n(3743),{prependBase:s}=n(470),l=/(^|(\r\n))link:/i;e.exports=({secure:e,headers:t={},xhr:n}={headers:{}})=>(t=a(t),(new d).wrapLoader((async function a(d){if(0!==d.indexOf("http:")&&0!==d.indexOf("https:"))throw new i('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:d});if(e&&0!==d.indexOf("https"))throw new i('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:d});let u;try{u=await function(e,t,n){const o=new(e=e||XMLHttpRequest);return new Promise(((e,a)=>{o.onload=()=>e(o),o.onerror=e=>a(e),o.open("GET",t,!0);for(const e in n)o.setRequestHeader(e,n[e]);o.send()}))}(n,d,t)}catch(e){throw new i("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:d,cause:e})}if(u.status>=400)throw new i("URL could not be dereferenced: "+u.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:d,httpStatusCode:u.status});let c={contextUrl:null,documentUrl:d,document:u.response},m=null;const h=u.getResponseHeader("Content-Type");let p;if(l.test(u.getAllResponseHeaders())&&(p=u.getResponseHeader("Link")),p&&"application/ld+json"!==h){const e=o(p),t=e[r];if(Array.isArray(t))throw new i("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:d});t&&(c.contextUrl=t.target),m=e.alternate,m&&"application/ld+json"==m.type&&!(h||"").match(/^application\/(\w*\+)?json$/)&&(c=await a(s(d,m.target)))}return c})))},2246:(e,t,n)=>{const o=n(2207),{isArray:a}=n(7382),{asArray:r}=n(9263),i={};function d({event:e,handlers:t}){let n=!0;for(let r=0;n&&r<t.length;++r){n=!1;const i=t[r];if(a(i))n=d({event:e,handlers:i});else if("function"==typeof i)i({event:e,next:()=>{n=!0}});else{if("object"!=typeof i)throw new o("Invalid event handler.","jsonld.InvalidEventHandler",{event:e});e.code in i?i[e.code]({event:e,next:()=>{n=!0}}):n=!0}}return n}e.exports=i,i.defaultEventHandler=null,i.setupEventHandler=({options:e={}})=>{const t=[].concat(e.safe?i.safeEventHandler:[],e.eventHandler?r(e.eventHandler):[],i.defaultEventHandler?i.defaultEventHandler:[]);return 0===t.length?null:t},i.handleEvent=({event:e,options:t})=>{d({event:e,handlers:t.eventHandler})};const s=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);i.safeEventHandler=function({event:e,next:t}){if("warning"===e.level&&s.has(e.code))throw new o("Safe mode validation error.","jsonld.ValidationError",{event:e});t()},i.logEventHandler=function({event:e,next:t}){console.log(`EVENT: ${e.message}`,{event:e}),t()},i.logWarningEventHandler=function({event:e,next:t}){"warning"===e.level&&console.warn(`WARNING: ${e.message}`,{event:e}),t()},i.unhandledEventHandler=function({event:e}){throw new o("No handler for event.","jsonld.UnhandledEvent",{event:e})},i.setDefaultEventHandler=function({eventHandler:e}={}){i.defaultEventHandler=e?r(e):null}},4019:(e,t,n)=>{const o=n(2207),{isArray:a,isObject:r,isEmptyObject:i,isString:d,isUndefined:s}=n(7382),{isList:l,isValue:u,isGraph:c,isSubject:m}=n(3978),{expandIri:h,getContextValue:p,isKeyword:f,process:N,processingMode:g}=n(1972),{isAbsolute:v}=n(470),{REGEX_BCP47:y,REGEX_KEYWORD:b,addValue:$,asArray:x,getValues:w,validateTypeValue:_}=n(9263),{handleEvent:C}=n(2246),S={};function q({value:e,count:t,options:n}){if(0===t||"@value"in e||"@list"in e||1===t&&"@id"in e){if(n.eventHandler){let o,a;0===t?(o="empty object",a="Dropping empty object."):"@value"in e?(o="object with only @value",a="Dropping object with only @value."):"@list"in e?(o="object with only @list",a="Dropping object with only @list."):1===t&&"@id"in e&&(o="object with only @id",a="Dropping object with only @id."),C({event:{type:["JsonLdEvent"],code:o,level:"warning",message:a,details:{value:e}},options:n})}return null}return e}async function E({activeCtx:e,activeProperty:t,expandedActiveProperty:n,element:c,expandedParent:b,options:w={},insideList:I,typeKey:R,typeScopedContext:L}){const k=Object.keys(c).sort(),P=[];let j;const O=c[R]&&"@json"===h(e,a(c[R])?c[R][0]:c[R],{vocab:!0},{...w,typeExpansion:!0});for(const E of k){let I,R=c[E];if("@context"===E)continue;const k=h(e,E,{vocab:!0},w);if(null===k||!v(k)&&!f(k)){w.eventHandler&&C({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:E,expandedProperty:k}},options:w});continue}if(f(k)){if("@reverse"===n)throw new o("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:R});if(k in b&&"@included"!==k&&"@type"!==k)throw new o("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:k})}if("@id"===k){if(!d(R)){if(!w.isFrame)throw new o('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:R});if(r(R)){if(!i(R))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:R})}else{if(!a(R))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:R});if(!R.every((e=>d(e))))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:R})}}$(b,"@id",x(R).map((t=>{if(d(t)){const n=h(e,t,{base:!0},w);return w.eventHandler&&(null===n?C(null===t?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:t}},options:w}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:t}},options:w}):v(n)||C({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:t,expandedId:n}},options:w})),n}return t})),{propertyIsArray:w.isFrame});continue}if("@type"===k){r(R)&&(R=Object.fromEntries(Object.entries(R).map((([e,t])=>[h(L,e,{vocab:!0}),x(t).map((e=>h(L,e,{base:!0,vocab:!0},{...w,typeExpansion:!0})))])))),_(R,w.isFrame),$(b,"@type",x(R).map((e=>{if(d(e)){const t=h(L,e,{base:!0,vocab:!0},{...w,typeExpansion:!0});return"@json"===t||v(t)||w.eventHandler&&C({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:e}},options:w}),t}return e})),{propertyIsArray:!!w.isFrame});continue}if("@included"===k&&g(e,1.1)){const n=x(await S.expand({activeCtx:e,activeProperty:t,element:R,options:w}));if(!n.every((e=>m(e))))throw new o("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:R});$(b,"@included",n,{propertyIsArray:!0});continue}if("@graph"===k&&!r(R)&&!a(R))throw new o('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:R});if("@value"===k){j=R,O&&g(e,1.1)?b["@value"]=R:$(b,"@value",R,{propertyIsArray:w.isFrame});continue}if("@language"===k){if(null===R)continue;if(!d(R)&&!w.isFrame)throw new o('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:R});R=x(R).map((e=>d(e)?e.toLowerCase():e));for(const e of R)d(e)&&!e.match(y)&&w.eventHandler&&C({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:w});$(b,"@language",R,{propertyIsArray:w.isFrame});continue}if("@direction"===k){if(!d(R)&&!w.isFrame)throw new o('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:R});R=x(R);for(const e of R)if(d(e)&&"ltr"!==e&&"rtl"!==e)throw new o('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:R});$(b,"@direction",R,{propertyIsArray:w.isFrame});continue}if("@index"===k){if(!d(R))throw new o('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:R});$(b,"@index",R);continue}if("@reverse"===k){if(!r(R))throw new o('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:R});if(I=await S.expand({activeCtx:e,activeProperty:"@reverse",element:R,options:w}),"@reverse"in I)for(const e in I["@reverse"])$(b,e,I["@reverse"][e],{propertyIsArray:!0});let t=b["@reverse"]||null;for(const e in I){if("@reverse"===e)continue;null===t&&(t=b["@reverse"]={}),$(t,e,[],{propertyIsArray:!0});const n=I[e];for(let a=0;a<n.length;++a){const r=n[a];if(u(r)||l(r))throw new o('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:I});$(t,e,r,{propertyIsArray:!0})}}continue}if("@nest"===k){P.push(E);continue}let D=e;const M=p(e,E,"@context");s(M)||(D=await N({activeCtx:e,localCtx:M,propagate:!0,overrideProtected:!0,options:w}));const B=p(e,E,"@container")||[];if(B.includes("@language")&&r(R))I=A(D,R,p(D,E,"@direction"),w);else if(B.includes("@index")&&r(R)){const t=B.includes("@graph"),n=p(D,E,"@index")||"@index",o="@index"!==n&&h(e,n,{vocab:!0},w);I=await T({activeCtx:D,options:w,activeProperty:E,value:R,asGraph:t,indexKey:n,propertyIndex:o})}else if(B.includes("@id")&&r(R)){const e=B.includes("@graph");I=await T({activeCtx:D,options:w,activeProperty:E,value:R,asGraph:e,indexKey:"@id"})}else if(B.includes("@type")&&r(R))I=await T({activeCtx:D.revertToPreviousContext(),options:w,activeProperty:E,value:R,asGraph:!1,indexKey:"@type"});else{const o="@list"===k;if(o||"@set"===k){let e=t;o&&"@graph"===n&&(e=null),I=await S.expand({activeCtx:D,activeProperty:e,element:R,options:w,insideList:o})}else I="@json"===p(e,E,"@type")?{"@type":"@json","@value":R}:await S.expand({activeCtx:D,activeProperty:E,element:R,options:w,insideList:!1})}if(null!==I||"@value"===k){if("@list"!==k&&!l(I)&&B.includes("@list")&&(I={"@list":x(I)}),B.includes("@graph")&&!B.some((e=>"@id"===e||"@index"===e))){if(I=x(I),w.isFrame||(I=I.filter((e=>null!==q({value:e,count:Object.keys(e).length,options:w})))),0===I.length)continue;I=I.map((e=>({"@graph":x(e)})))}if(D.mappings.has(E)&&D.mappings.get(E).reverse){const e=b["@reverse"]=b["@reverse"]||{};I=x(I);for(let t=0;t<I.length;++t){const n=I[t];if(u(n)||l(n))throw new o('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:I});$(e,k,n,{propertyIsArray:!0})}}else $(b,k,I,{propertyIsArray:!0})}}if("@value"in b)if("@json"===b["@type"]&&g(e,1.1));else if((r(j)||a(j))&&!w.isFrame)throw new o('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:j});for(const i of P){const d=a(c[i])?c[i]:[c[i]];for(const a of d){if(!r(a)||Object.keys(a).some((t=>"@value"===h(e,t,{vocab:!0},w))))throw new o("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:a});await E({activeCtx:e,activeProperty:t,expandedActiveProperty:n,element:a,expandedParent:b,options:w,insideList:I,typeScopedContext:L,typeKey:R})}}}function I({activeCtx:e,activeProperty:t,value:n,options:o}){if(null==n)return null;const a=h(e,t,{vocab:!0},o);if("@id"===a)return h(e,n,{base:!0},o);if("@type"===a)return h(e,n,{vocab:!0,base:!0},{...o,typeExpansion:!0});const r=p(e,t,"@type");if(("@id"===r||"@graph"===a)&&d(n)){const a=h(e,n,{base:!0},o);return null===a&&n.match(b)&&o.eventHandler&&C({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:t}},options:o}),{"@id":a}}if("@vocab"===r&&d(n))return{"@id":h(e,n,{vocab:!0,base:!0},o)};if(f(a))return n;const i={};if(r&&!["@id","@vocab","@none"].includes(r))i["@type"]=r;else if(d(n)){const n=p(e,t,"@language");null!==n&&(i["@language"]=n);const o=p(e,t,"@direction");null!==o&&(i["@direction"]=o)}return["boolean","number","string"].includes(typeof n)||(n=n.toString()),i["@value"]=n,i}function A(e,t,n,r){const i=[],s=Object.keys(t).sort();for(const l of s){const s=h(e,l,{vocab:!0},r);let u=t[l];a(u)||(u=[u]);for(const e of u){if(null===e)continue;if(!d(e))throw new o("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:t});const a={"@value":e};"@none"!==s&&(l.match(y)||r.eventHandler&&C({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:l}},options:r}),a["@language"]=l.toLowerCase()),n&&(a["@direction"]=n),i.push(a)}}return i}async function T({activeCtx:e,options:t,activeProperty:n,value:r,asGraph:i,indexKey:d,propertyIndex:l}){const m=[],f=Object.keys(r).sort(),g="@type"===d;for(let v of f){if(g){const n=p(e,v,"@context");s(n)||(e=await N({activeCtx:e,localCtx:n,propagate:!1,options:t}))}let f,y=r[v];a(y)||(y=[y]),y=await S.expand({activeCtx:e,activeProperty:n,element:y,options:t,insideList:!1,insideIndex:!0}),f=l?"@none"===v?"@none":I({activeCtx:e,activeProperty:d,value:v,options:t}):h(e,v,{vocab:!0},t),"@id"===d?v=h(e,v,{base:!0},t):g&&(v=f);for(let e of y){if(i&&!c(e)&&(e={"@graph":[e]}),"@type"===d)"@none"===f||(e["@type"]?e["@type"]=[v].concat(e["@type"]):e["@type"]=[v]);else{if(u(e)&&!["@language","@type","@index"].includes(d))throw new o(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${d}".`,"jsonld.SyntaxError",{code:"invalid value object",value:e});l?"@none"!==f&&$(e,l,f,{propertyIsArray:!0,prependValue:!0}):"@none"===f||d in e||(e[d]=v)}m.push(e)}}return m}e.exports=S,S.expand=async({activeCtx:e,activeProperty:t=null,element:n,options:l={},insideList:u=!1,insideIndex:c=!1,typeScopedContext:m=null})=>{if(null==n)return null;if("@default"===t&&(l=Object.assign({},l,{isFrame:!1})),!a(n)&&!r(n))return u||null!==t&&"@graph"!==h(e,t,{vocab:!0},l)?I({activeCtx:e,activeProperty:t,value:n,options:l}):(l.eventHandler&&C({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:n}},options:l}),null);if(a(n)){let o=[];const r=p(e,t,"@container")||[];u=u||r.includes("@list");for(let r=0;r<n.length;++r){let i=await S.expand({activeCtx:e,activeProperty:t,element:n[r],options:l,insideIndex:c,typeScopedContext:m});u&&a(i)&&(i={"@list":i}),null!==i&&(a(i)?o=o.concat(i):o.push(i))}return o}const f=h(e,t,{vocab:!0},l),y=p(e,t,"@context");m=m||(e.previousContext?e:null);let b=Object.keys(n).sort(),$=!c;if($&&m&&b.length<=2&&!b.includes("@context"))for(const t of b){const n=h(m,t,{vocab:!0},l);if("@value"===n){$=!1,e=m;break}if("@id"===n&&1===b.length){$=!1;break}}$&&(e=e.revertToPreviousContext()),s(y)||(e=await N({activeCtx:e,localCtx:y,propagate:!0,overrideProtected:!0,options:l})),"@context"in n&&(e=await N({activeCtx:e,localCtx:n["@context"],options:l})),m=e;let _=null;for(const t of b)if("@type"===h(e,t,{vocab:!0},l)){_=_||t;const o=n[t],a=Array.isArray(o)?o.length>1?o.slice().sort():o:[o];for(const t of a){const n=p(m,t,"@context");s(n)||(e=await N({activeCtx:e,localCtx:n,options:l,propagate:!1}))}}let A={};await E({activeCtx:e,activeProperty:t,expandedActiveProperty:f,element:n,expandedParent:A,options:l,insideList:u,typeKey:_,typeScopedContext:m}),b=Object.keys(A);let T=b.length;if("@value"in A){if("@type"in A&&("@language"in A||"@direction"in A))throw new o('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:A});let t=T-1;if("@type"in A&&(t-=1),"@index"in A&&(t-=1),"@language"in A&&(t-=1),"@direction"in A&&(t-=1),0!==t)throw new o('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:A});const n=null===A["@value"]?[]:x(A["@value"]),a=w(A,"@type");if(g(e,1.1)&&a.includes("@json")&&1===a.length);else if(0===n.length)l.eventHandler&&C({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:A}},options:l}),A=null;else{if(!n.every((e=>d(e)||i(e)))&&"@language"in A)throw new o("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:A});if(!a.every((e=>v(e)&&!(d(e)&&0===e.indexOf("_:"))||i(e))))throw new o('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:A})}}else if("@type"in A&&!a(A["@type"]))A["@type"]=[A["@type"]];else if("@set"in A||"@list"in A){if(T>1&&(2!==T||!("@index"in A)))throw new o('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:A});"@set"in A&&(A=A["@set"],b=Object.keys(A),T=b.length)}else 1===T&&"@language"in A&&(l.eventHandler&&C({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:A}},options:l}),A=null);return!r(A)||l.keepFreeFloatingNodes||u||null!==t&&"@graph"!==f&&!(p(e,t,"@container")||[]).includes("@graph")||(A=q({value:A,count:T,options:l})),A}},5229:(e,t,n)=>{const{isSubjectReference:o}=n(3978),{createMergedNodeMap:a}=n(9233),r={};e.exports=r,r.flatten=e=>{const t=a(e),n=[],r=Object.keys(t).sort();for(let e=0;e<r.length;++e){const a=t[r[e]];o(a)||n.push(a)}return n}},7946:(e,t,n)=>{const{isKeyword:o}=n(1972),a=n(3978),r=n(7382),i=n(9263),d=n(470),s=n(2207),{createNodeMap:l,mergeNodeMapGraphs:u}=n(9233),c={};function m(e){const t={};for(const n in e)void 0!==e[n]&&(t["@"+n]=[e[n]]);return[t]}function h(e,t,n){for(let o=n.length-1;o>=0;--o){const a=n[o];if(a.graph===t&&a.subject["@id"]===e["@id"])return!0}return!1}function p(e,t,n){const o="@"+n;let a=o in e?e[o][0]:t[n];if("embed"===n)if(!0===a)a="@once";else if(!1===a)a="@never";else if("@always"!==a&&"@never"!==a&&"@link"!==a&&"@first"!==a&&"@last"!==a&&"@once"!==a)throw new s("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:e});return a}function f(e){if(!r.isArray(e)||1!==e.length||!r.isObject(e[0]))throw new s("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e});if("@id"in e[0])for(const t of i.asArray(e[0]["@id"]))if(!r.isObject(t)&&!d.isAbsolute(t)||r.isString(t)&&0===t.indexOf("_:"))throw new s("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e});if("@type"in e[0])for(const t of i.asArray(e[0]["@type"]))if(!r.isObject(t)&&!d.isAbsolute(t)&&"@json"!==t||r.isString(t)&&0===t.indexOf("_:"))throw new s("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}function N(e,t,n,d){let s=!0,l=!1;for(const u in n){let c=!1;const m=i.getValues(t,u),h=0===i.getValues(n,u).length;if("@id"===u){if(r.isEmptyObject(n["@id"][0]||{})?c=!0:n["@id"].length>=0&&(c=n["@id"].includes(m[0])),!d.requireAll)return c}else if("@type"===u){if(s=!1,h){if(m.length>0)return!1;c=!0}else if(1===n["@type"].length&&r.isEmptyObject(n["@type"][0]))c=m.length>0;else for(const e of n["@type"])c=!(!r.isObject(e)||!("@default"in e))||c||m.some((t=>t===e));if(!d.requireAll)return c}else{if(o(u))continue;{const t=i.getValues(n,u)[0];let o=!1;if(t&&(f([t]),o="@default"in t),s=!1,0===m.length&&o)continue;if(m.length>0&&h)return!1;if(void 0===t){if(m.length>0)return!1;c=!0}else if(a.isList(t)){const n=t["@list"][0];if(a.isList(m[0])){const t=m[0]["@list"];a.isValue(n)?c=t.some((e=>$(n,e))):(a.isSubject(n)||a.isSubjectReference(n))&&(c=t.some((t=>b(e,n,t,d))))}}else c=a.isValue(t)?m.some((e=>$(t,e))):a.isSubjectReference(t)?m.some((n=>b(e,t,n,d))):!!r.isObject(t)&&m.length>0}}if(!c&&d.requireAll)return!1;l=l||c}return s||l}function g(e,t){const n=e.uniqueEmbeds[e.graph],o=n[t],a=o.parent,d=o.property,s={"@id":t};if(r.isArray(a)){for(let e=0;e<a.length;++e)if(i.compareValues(a[e],s)){a[e]=s;break}}else{const e=r.isArray(a[d]);i.removeValue(a,d,s,{propertyIsArray:e}),i.addValue(a,d,s,{propertyIsArray:e})}const l=e=>{const t=Object.keys(n);for(const o of t)o in n&&r.isObject(n[o].parent)&&n[o].parent["@id"]===e&&(delete n[o],l(o))};l(t)}function v(e,t){if(r.isArray(e))return e.map((e=>v(e,t)));if(r.isObject(e)){if("@preserve"in e)return e["@preserve"][0];if(a.isValue(e))return e;if(a.isList(e))return e["@list"]=v(e["@list"],t),e;if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)"@id"===n&&t.bnodesToClear.includes(e[n])?delete e["@id"]:e[n]=v(e[n],t)}return e}function y(e,t,n){r.isObject(e)?i.addValue(e,t,n,{propertyIsArray:!0}):e.push(n)}function b(e,t,n,o){if(!("@id"in n))return!1;const a=e.subjects[n["@id"]];return a&&N(e,a,t,o)}function $(e,t){const n=t["@value"],o=t["@type"],a=t["@language"],i=e["@value"]?r.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],d=e["@type"]?r.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],s=e["@language"]?r.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===i.length&&0===d.length&&0===s.length||!(!i.includes(n)&&!r.isEmptyObject(i[0]))&&!!(!o&&0===d.length||d.includes(o)||o&&r.isEmptyObject(d[0]))&&!!(!a&&0===s.length||s.includes(a)||a&&r.isEmptyObject(s[0]))}e.exports=c,c.frameMergedOrDefault=(e,t,n)=>{const o={options:n,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},a=new i.IdentifierIssuer("_:b");l(e,o.graphMap,"@default",a),n.merged&&(o.graphMap["@merged"]=u(o.graphMap),o.graph="@merged"),o.subjects=o.graphMap[o.graph];const r=[];return c.frame(o,Object.keys(o.subjects).sort(),t,r),n.pruneBlankNodeIdentifiers&&(n.bnodesToClear=Object.keys(o.bnodeMap).filter((e=>1===o.bnodeMap[e].length))),n.link={},v(r,n)},c.frame=(e,t,n,d,l=null)=>{f(n),n=n[0];const u=e.options,v={embed:p(n,u,"embed"),explicit:p(n,u,"explicit"),requireAll:p(n,u,"requireAll")};e.link.hasOwnProperty(e.graph)||(e.link[e.graph]={});const b=e.link[e.graph],x=function(e,t,n,o){const a={};for(const r of t){const t=e.graphMap[e.graph][r];N(e,t,n,o)&&(a[r]=t)}return a}(e,t,n,v),w=Object.keys(x).sort();for(const f of w){const N=x[f];if(null===l?e.uniqueEmbeds={[e.graph]:{}}:e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{},"@link"===v.embed&&f in b){y(d,l,b[f]);continue}const w={"@id":f};if(0===f.indexOf("_:")&&i.addValue(e.bnodeMap,f,w,{propertyIsArray:!0}),b[f]=w,("@first"===v.embed||"@last"===v.embed)&&e.is11)throw new s("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n});if(e.embedded||!e.uniqueEmbeds[e.graph].hasOwnProperty(f))if(!e.embedded||"@never"!==v.embed&&!h(N,e.graph,e.subjectStack))if(!e.embedded||"@first"!=v.embed&&"@once"!=v.embed||!e.uniqueEmbeds[e.graph].hasOwnProperty(f)){if("@last"===v.embed&&f in e.uniqueEmbeds[e.graph]&&g(e,f),e.uniqueEmbeds[e.graph][f]={parent:d,property:l},e.subjectStack.push({subject:N,graph:e.graph}),f in e.graphMap){let t=!1,o=null;"@graph"in n?(o=n["@graph"][0],t=!("@merged"===f||"@default"===f),r.isObject(o)||(o={})):(t="@merged"!==e.graph,o={}),t&&c.frame({...e,graph:f,embedded:!1},Object.keys(e.graphMap[f]).sort(),[o],w,"@graph")}"@included"in n&&c.frame({...e,embedded:!1},t,n["@included"],w,"@included");for(const t of Object.keys(N).sort())if(o(t)){if(w[t]=i.clone(N[t]),"@type"===t)for(const t of N["@type"])0===t.indexOf("_:")&&i.addValue(e.bnodeMap,t,w,{propertyIsArray:!0})}else if(!v.explicit||t in n)for(const o of N[t]){const r=t in n?n[t]:m(v);if(a.isList(o)){const r=n[t]&&n[t][0]&&n[t][0]["@list"]?n[t][0]["@list"]:m(v),d={"@list":[]};y(w,t,d);const s=o["@list"];for(const t of s)a.isSubjectReference(t)?c.frame({...e,embedded:!0},[t["@id"]],r,d,"@list"):y(d,"@list",i.clone(t))}else a.isSubjectReference(o)?c.frame({...e,embedded:!0},[o["@id"]],r,w,t):$(r[0],o)&&y(w,t,i.clone(o))}for(const e of Object.keys(n).sort()){if("@type"===e){if(!r.isObject(n[e][0])||!("@default"in n[e][0]))continue}else if(o(e))continue;const t=n[e][0]||{};if(!p(t,u,"omitDefault")&&!(e in w)){let n="@null";"@default"in t&&(n=i.clone(t["@default"])),r.isArray(n)||(n=[n]),w[e]=[{"@preserve":n}]}}for(const t of Object.keys(n["@reverse"]||{}).sort()){const o=n["@reverse"][t];for(const n of Object.keys(e.subjects))i.getValues(e.subjects[n],t).some((e=>e["@id"]===f))&&(w["@reverse"]=w["@reverse"]||{},i.addValue(w["@reverse"],t,[],{propertyIsArray:!0}),c.frame({...e,embedded:!0},[n],o,w["@reverse"][t],l))}y(d,l,w),e.subjectStack.pop()}else y(d,l,w);else y(d,l,w)}},c.cleanupNull=(e,t)=>{if(r.isArray(e)){const n=e.map((e=>c.cleanupNull(e,t)));return n.filter((e=>e))}if("@null"===e)return null;if(r.isObject(e)){if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)e[n]=c.cleanupNull(e[n],t)}return e}},3947:(e,t,n)=>{const o=n(2207),a=n(3978),r=n(7382),{REGEX_BCP47:i,addValue:d}=n(9263),{handleEvent:s}=n(2246),{RDF_LIST:l,RDF_FIRST:u,RDF_REST:c,RDF_NIL:m,RDF_TYPE:h,RDF_JSON_LITERAL:p,XSD_BOOLEAN:f,XSD_DOUBLE:N,XSD_INTEGER:g,XSD_STRING:v}=n(9378),y={};function b(e,t,n,a){if(e.termType.endsWith("Node"))return{"@id":e.value};const d={"@value":e.value};if(e.language)e.language.match(i)||a.eventHandler&&s({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e.language}},options:a}),d["@language"]=e.language;else{let l=e.datatype.value;if(l||(l=v),l===p){l="@json";try{d["@value"]=JSON.parse(d["@value"])}catch(e){throw new o("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:d["@value"],cause:e})}}if(t){if(l===f)"true"===d["@value"]?d["@value"]=!0:"false"===d["@value"]&&(d["@value"]=!1);else if(r.isNumeric(d["@value"]))if(l===g){const e=parseInt(d["@value"],10);e.toFixed(0)===d["@value"]&&(d["@value"]=e)}else l===N&&(d["@value"]=parseFloat(d["@value"]));[f,g,N,v].includes(l)||(d["@type"]=l)}else if("i18n-datatype"===n&&l.startsWith("https://www.w3.org/ns/i18n#")){const[,e,t]=l.split(/[#_]/);e.length>0&&(d["@language"]=e,e.match(i)||a.eventHandler&&s({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:a})),d["@direction"]=t}else l!==v&&(d["@type"]=l)}return d}e.exports=y,y.fromRDF=async(e,t)=>{const{useRdfType:n=!1,useNativeTypes:i=!1,rdfDirection:s=null}=t,p={},f={"@default":p},N={};if(s){if("compound-literal"===s)throw new o("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:s});if("i18n-datatype"!==s)throw new o("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:s})}for(const o of e){const e="DefaultGraph"===o.graph.termType?"@default":o.graph.value;e in f||(f[e]={}),"@default"===e||e in p||(p[e]={"@id":e});const a=f[e],r=o.subject.value,l=o.predicate.value,u=o.object;r in a||(a[r]={"@id":r});const c=a[r],g=u.termType.endsWith("Node");if(g&&!(u.value in a)&&(a[u.value]={"@id":u.value}),l===h&&!n&&g){d(c,"@type",u.value,{propertyIsArray:!0});continue}const v=b(u,i,s,t);if(d(c,l,v,{propertyIsArray:!0}),g)if(u.value===m){const e=a[u.value];"usages"in e||(e.usages=[]),e.usages.push({node:c,property:l,value:v})}else u.value in N?N[u.value]=!1:N[u.value]={node:c,property:l,value:v}}for(const e in f){const t=f[e];if(!(m in t))continue;const n=t[m];if(n.usages){for(let e of n.usages){let n=e.node,o=e.property,i=e.value;const d=[],s=[];let m=Object.keys(n).length;for(;o===c&&r.isObject(N[n["@id"]])&&r.isArray(n[u])&&1===n[u].length&&r.isArray(n[c])&&1===n[c].length&&(3===m||4===m&&r.isArray(n["@type"])&&1===n["@type"].length&&n["@type"][0]===l)&&(d.push(n[u][0]),s.push(n["@id"]),e=N[n["@id"]],n=e.node,o=e.property,i=e.value,m=Object.keys(n).length,a.isBlankNode(n)););delete i["@id"],i["@list"]=d.reverse();for(const e of s)delete t[e]}delete n.usages}}const g=[],v=Object.keys(p).sort();for(const e of v){const t=p[e];if(e in f){const n=t["@graph"]=[],o=f[e],r=Object.keys(o).sort();for(const e of r){const t=o[e];a.isSubjectReference(t)||n.push(t)}}a.isSubjectReference(t)||g.push(t)}return g}},3978:(e,t,n)=>{const o=n(7382),a={};e.exports=a,a.isSubject=e=>!(!o.isObject(e)||"@value"in e||"@set"in e||"@list"in e)&&(Object.keys(e).length>1||!("@id"in e)),a.isSubjectReference=e=>o.isObject(e)&&1===Object.keys(e).length&&"@id"in e,a.isValue=e=>o.isObject(e)&&"@value"in e,a.isList=e=>o.isObject(e)&&"@list"in e,a.isGraph=e=>o.isObject(e)&&"@graph"in e&&1===Object.keys(e).filter((e=>"@id"!==e&&"@index"!==e)).length,a.isSimpleGraph=e=>a.isGraph(e)&&!("@id"in e),a.isBlankNode=e=>{if(o.isObject(e)){if("@id"in e){const t=e["@id"];return!o.isString(t)||0===t.indexOf("_:")}return 0===Object.keys(e).length||!("@value"in e||"@set"in e||"@list"in e)}return!1}},4841:(e,t,n)=>{const o=n(989),a=n(701),r=n(9263),i=n(7034),d=r.IdentifierIssuer,s=n(2207),l=n(9749),u=n(8229),{expand:c}=n(4019),{flatten:m}=n(5229),{fromRDF:h}=n(3947),{toRDF:p}=n(9180),{frameMergedOrDefault:f,cleanupNull:N}=n(7946),{isArray:g,isObject:v,isString:y}=n(7382),{isSubjectReference:b}=n(3978),{expandIri:$,getInitialContext:x,process:w,processingMode:_}=n(1972),{compact:C,compactIri:S}=n(1058),{createNodeMap:q,createMergedNodeMap:E,mergeNodeMaps:I}=n(9233),{logEventHandler:A,logWarningEventHandler:T,safeEventHandler:R,setDefaultEventHandler:L,setupEventHandler:k,strictEventHandler:P,unhandledEventHandler:j}=n(2246),O=function(e){const t={},O=new l({max:100});function D(t,{documentLoader:n=e.documentLoader,...o}){if(t&&"compactionMap"in t)throw new s('"compactionMap" not supported.',"jsonld.OptionsError");if(t&&"expansionMap"in t)throw new s('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:n},o,t,{eventHandler:k({options:t})})}return e.compact=async function(t,n,o){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(null===n)throw new s("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(null===t)return null;let a;(o=D(o,{base:y(t)?t:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new d("_:b"),contextResolver:new i({sharedCache:O})})).link&&(o.skipExpansion=!0),o.compactToRelative||delete o.base,a=o.skipExpansion?t:await e.expand(t,o);const l=await e.processContext(x(o),n,o);let u=await C({activeCtx:l,element:a,options:o});o.compactArrays&&!o.graph&&g(u)?1===u.length?u=u[0]:0===u.length&&(u={}):o.graph&&v(u)&&(u=[u]),v(n)&&"@context"in n&&(n=n["@context"]),n=r.clone(n),g(n)||(n=[n]);const c=n;n=[];for(let e=0;e<c.length;++e)(!v(c[e])||Object.keys(c[e]).length>0)&&n.push(c[e]);const m=n.length>0;if(1===n.length&&(n=n[0]),g(u)){const e=S({activeCtx:l,iri:"@graph",relativeTo:{vocab:!0}}),t=u;u={},m&&(u["@context"]=n),u[e]=t}else if(v(u)&&m){const e=u;u={"@context":n};for(const t in e)u[t]=e[t]}return u},e.expand=async function(t,n){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const o={},a=[];if("expandContext"in(n=D(n,{keepFreeFloatingNodes:!1,contextResolver:new i({sharedCache:O})}))){const e=r.clone(n.expandContext);v(e)&&"@context"in e?o.expandContext=e:o.expandContext={"@context":e},a.push(o.expandContext)}let d;if(y(t)){const r=await e.get(t,n);d=r.documentUrl,o.input=r.document,r.contextUrl&&(o.remoteContext={"@context":r.contextUrl},a.push(o.remoteContext))}else o.input=r.clone(t);"base"in n||(n.base=d||"");let s=x(n);for(const e of a)s=await w({activeCtx:s,localCtx:e,options:n});let l=await c({activeCtx:s,element:o.input,options:n});return v(l)&&"@graph"in l&&1===Object.keys(l).length?l=l["@graph"]:null===l&&(l=[]),g(l)||(l=[l]),l},e.flatten=async function(t,n,o){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");n="function"==typeof n?null:n||null,o=D(o,{base:y(t)?t:"",contextResolver:new i({sharedCache:O})});const a=await e.expand(t,o),r=m(a);return null===n?r:(o.graph=!0,o.skipExpansion=!0,await e.compact(r,n,o))},e.frame=async function(t,n,o){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(o=D(o,{base:y(t)?t:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new i({sharedCache:O})}),y(n)){const t=await e.get(n,o);if(n=t.document,t.contextUrl){let e=n["@context"];e?g(e)?e.push(t.contextUrl):e=[e,t.contextUrl]:e=t.contextUrl,n["@context"]=e}}const a=n&&n["@context"]||{},r=await e.processContext(x(o),a,o);o.hasOwnProperty("omitGraph")||(o.omitGraph=_(r,1.1)),o.hasOwnProperty("pruneBlankNodeIdentifiers")||(o.pruneBlankNodeIdentifiers=_(r,1.1));const d=await e.expand(t,o),s={...o};s.isFrame=!0,s.keepFreeFloatingNodes=!0;const l=await e.expand(n,s),u=Object.keys(n).map((e=>$(r,e,{vocab:!0})));s.merged=!u.includes("@graph"),s.is11=_(r,1.1);const c=f(d,l,s);s.graph=!o.omitGraph,s.skipExpansion=!0,s.link={},s.framing=!0;let m=await e.compact(c,a,s);return s.link={},m=N(m,s),m},e.link=async function(t,n,o){const a={};return n&&(a["@context"]=n),a["@embed"]="@link",e.frame(t,a,o)},e.normalize=e.canonize=async function(t,n){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if("inputFormat"in(n=D(n,{base:y(t)?t:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new i({sharedCache:O})}))){if("application/n-quads"!==n.inputFormat&&"application/nquads"!==n.inputFormat)throw new s("Unknown canonicalization input format.","jsonld.CanonizeError");const e=u.parse(t);return o.canonize(e,n)}const a={...n};delete a.format,a.produceGeneralizedRdf=!1;const r=await e.toRDF(t,a);return o.canonize(r,n)},e.fromRDF=async function(e,n){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");n=D(n,{format:y(e)?"application/n-quads":void 0});const{format:o}=n;let{rdfParser:a}=n;if(o){if(a=a||t[o],!a)throw new s("Unknown input format.","jsonld.UnknownFormat",{format:o})}else a=()=>e;const r=await a(e);return h(r,n)},e.toRDF=async function(t,n){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let o;o=(n=D(n,{base:y(t)?t:"",skipExpansion:!1,contextResolver:new i({sharedCache:O})})).skipExpansion?t:await e.expand(t,n);const a=p(o,n);if(n.format){if("application/n-quads"===n.format||"application/nquads"===n.format)return u.serialize(a);throw new s("Unknown output format.","jsonld.UnknownFormat",{format:n.format})}return a},e.createNodeMap=async function(t,n){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");n=D(n,{base:y(t)?t:"",contextResolver:new i({sharedCache:O})});const o=await e.expand(t,n);return E(o,n)},e.merge=async function(t,n,o){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!g(t))throw new TypeError('Could not merge, "docs" must be an array.');n="function"==typeof n?null:n||null,o=D(o,{contextResolver:new i({sharedCache:O})});const a=await Promise.all(t.map((t=>{const n={...o};return e.expand(t,n)})));let s=!0;"mergeNodes"in o&&(s=o.mergeNodes);const l=o.issuer||new d("_:b"),u={"@default":{}};for(let e=0;e<a.length;++e){const t=r.relabelBlankNodes(a[e],{issuer:new d("_:b"+e+"-")}),n=s||0===e?u:{"@default":{}};if(q(t,n,"@default",l),n!==u)for(const e in n){const t=n[e];if(!(e in u)){u[e]=t;continue}const o=u[e];for(const e in t)e in o||(o[e]=t[e])}}const c=I(u),m=[],h=Object.keys(c).sort();for(let e=0;e<h.length;++e){const t=c[h[e]];b(t)||m.push(t)}return null===n?m:(o.graph=!0,o.skipExpansion=!0,await e.compact(m,n,o))},Object.defineProperty(e,"documentLoader",{get:()=>e._documentLoader,set:t=>e._documentLoader=t}),e.documentLoader=async e=>{throw new s("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:e})},e.get=async function(t,n){let o;o="function"==typeof n.documentLoader?n.documentLoader:e.documentLoader;const a=await o(t);try{if(!a.document)throw new s("No remote document found at the given URL.","jsonld.NullRemoteDocument");y(a.document)&&(a.document=JSON.parse(a.document))}catch(e){throw new s("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:e,remoteDoc:a})}return a},e.processContext=async function(e,t,n){return n=D(n,{base:"",contextResolver:new i({sharedCache:O})}),null===t?x(n):(t=r.clone(t),v(t)&&"@context"in t||(t={"@context":t}),w({activeCtx:e,localCtx:t,options:n}))},e.getContextValue=n(1972).getContextValue,e.documentLoaders={},e.useDocumentLoader=function(t){if(!(t in e.documentLoaders))throw new s('Unknown document loader type: "'+t+'"',"jsonld.UnknownDocumentLoader",{type:t});e.documentLoader=e.documentLoaders[t].apply(e,Array.prototype.slice.call(arguments,1))},e.registerRDFParser=function(e,n){t[e]=n},e.unregisterRDFParser=function(e){delete t[e]},e.registerRDFParser("application/n-quads",u.parse),e.registerRDFParser("application/nquads",u.parse),e.url=n(470),e.logEventHandler=A,e.logWarningEventHandler=T,e.safeEventHandler=R,e.setDefaultEventHandler=L,e.strictEventHandler=P,e.unhandledEventHandler=j,e.util=r,Object.assign(e,r),e.promises=e,e.RequestQueue=n(3743),e.JsonLdProcessor=n(5445)(e),a.setupGlobals(e),a.setupDocumentLoaders(e),e},D=function(){return O((function(){return D()}))};O(D),e.exports=D},9233:(e,t,n)=>{const{isKeyword:o}=n(1972),a=n(3978),r=n(7382),i=n(9263),d=n(2207),s={};e.exports=s,s.createMergedNodeMap=(e,t)=>{const n=(t=t||{}).issuer||new i.IdentifierIssuer("_:b"),o={"@default":{}};return s.createNodeMap(e,o,"@default",n),s.mergeNodeMaps(o)},s.createNodeMap=(e,t,n,l,u,c)=>{if(r.isArray(e)){for(const o of e)s.createNodeMap(o,t,n,l,void 0,c);return}if(!r.isObject(e))return void(c&&c.push(e));if(a.isValue(e)){if("@type"in e){let t=e["@type"];0===t.indexOf("_:")&&(e["@type"]=t=l.getId(t))}return void(c&&c.push(e))}if(c&&a.isList(e)){const o=[];return s.createNodeMap(e["@list"],t,n,l,u,o),void c.push({"@list":o})}if("@type"in e){const t=e["@type"];for(const e of t)0===e.indexOf("_:")&&l.getId(e)}r.isUndefined(u)&&(u=a.isBlankNode(e)?l.getId(e["@id"]):e["@id"]),c&&c.push({"@id":u});const m=t[n],h=m[u]=m[u]||{};h["@id"]=u;const p=Object.keys(e).sort();for(let r of p){if("@id"===r)continue;if("@reverse"===r){const o={"@id":u},r=e["@reverse"];for(const e in r){const d=r[e];for(const r of d){let d=r["@id"];a.isBlankNode(r)&&(d=l.getId(d)),s.createNodeMap(r,t,n,l,d),i.addValue(m[d],e,o,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if("@graph"===r){u in t||(t[u]={}),s.createNodeMap(e[r],t,u,l);continue}if("@included"===r){s.createNodeMap(e[r],t,n,l);continue}if("@type"!==r&&o(r)){if("@index"===r&&r in h&&(e[r]!==h[r]||e[r]["@id"]!==h[r]["@id"]))throw new d("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:h});h[r]=e[r];continue}const c=e[r];if(0===r.indexOf("_:")&&(r=l.getId(r)),0!==c.length)for(let e of c)if("@type"===r&&(e=0===e.indexOf("_:")?l.getId(e):e),a.isSubject(e)||a.isSubjectReference(e)){if("@id"in e&&!e["@id"])continue;const o=a.isBlankNode(e)?l.getId(e["@id"]):e["@id"];i.addValue(h,r,{"@id":o},{propertyIsArray:!0,allowDuplicate:!1}),s.createNodeMap(e,t,n,l,o)}else if(a.isValue(e))i.addValue(h,r,e,{propertyIsArray:!0,allowDuplicate:!1});else if(a.isList(e)){const o=[];s.createNodeMap(e["@list"],t,n,l,u,o),e={"@list":o},i.addValue(h,r,e,{propertyIsArray:!0,allowDuplicate:!1})}else s.createNodeMap(e,t,n,l,u),i.addValue(h,r,e,{propertyIsArray:!0,allowDuplicate:!1});else i.addValue(h,r,[],{propertyIsArray:!0})}},s.mergeNodeMapGraphs=e=>{const t={};for(const n of Object.keys(e).sort())for(const a of Object.keys(e[n]).sort()){const r=e[n][a];a in t||(t[a]={"@id":a});const d=t[a];for(const e of Object.keys(r).sort())if(o(e)&&"@type"!==e)d[e]=i.clone(r[e]);else for(const t of r[e])i.addValue(d,e,i.clone(t),{propertyIsArray:!0,allowDuplicate:!1})}return t},s.mergeNodeMaps=e=>{const t=e["@default"],n=Object.keys(e).sort();for(const o of n){if("@default"===o)continue;const n=e[o];let r=t[o];r?"@graph"in r||(r["@graph"]=[]):t[o]=r={"@id":o,"@graph":[]};const i=r["@graph"];for(const e of Object.keys(n).sort()){const t=n[e];a.isSubjectReference(t)||i.push(t)}}return t}},701:(e,t,n)=>{const o=n(6957),a={};e.exports=a,a.setupDocumentLoaders=function(e){"undefined"!=typeof XMLHttpRequest&&(e.documentLoaders.xhr=o,e.useDocumentLoader("xhr"))},a.setupGlobals=function(e){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})}},9180:(e,t,n)=>{const{createNodeMap:o}=n(9233),{isKeyword:a}=n(1972),r=n(3978),i=n(2341),d=n(2207),s=n(7382),l=n(9263),{handleEvent:u}=n(2246),{RDF_FIRST:c,RDF_REST:m,RDF_NIL:h,RDF_TYPE:p,RDF_JSON_LITERAL:f,RDF_LANGSTRING:N,XSD_BOOLEAN:g,XSD_DOUBLE:v,XSD_INTEGER:y,XSD_STRING:b}=n(9378),{isAbsolute:$}=n(470),x={};function w(e,t,n,o,r){const i=Object.keys(t).sort();for(const d of i){const i=t[d],s=Object.keys(i).sort();for(let t of s){const s=i[t];if("@type"===t)t=p;else if(a(t))continue;for(const a of s){const i={termType:d.startsWith("_:")?"BlankNode":"NamedNode",value:d};if(!$(d)){r.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:d}},options:r});continue}const s={termType:t.startsWith("_:")?"BlankNode":"NamedNode",value:t};if(!$(t)){r.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:t}},options:r});continue}if("BlankNode"===s.termType&&!r.produceGeneralizedRdf){r.eventHandler&&u({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:o.getOldIds().find((e=>o.getId(e)===t))}},options:r});continue}const l=_(a,o,e,n,r.rdfDirection,r);l&&e.push({subject:i,predicate:s,object:l,graph:n})}}}}function _(e,t,n,o,a,l){const p={};if(r.isValue(e)){p.termType="Literal",p.value=void 0,p.datatype={termType:"NamedNode"};let t=e["@value"];const n=e["@type"]||null;if("@json"===n)p.value=i(t),p.datatype.value=f;else if(s.isBoolean(t))p.value=t.toString(),p.datatype.value=n||g;else if(s.isDouble(t)||n===v)s.isDouble(t)||(t=parseFloat(t)),p.value=t.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),p.datatype.value=n||v;else if(s.isNumber(t))p.value=t.toFixed(0),p.datatype.value=n||y;else if("@direction"in e&&"i18n-datatype"===a){const n=`https://www.w3.org/ns/i18n#${(e["@language"]||"").toLowerCase()}_${e["@direction"]}`;p.datatype.value=n,p.value=t}else{if("@direction"in e&&"compound-literal"===a)throw new d("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:a});if("@direction"in e&&a)throw new d("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:a});"@language"in e?("@direction"in e&&!a&&l.eventHandler&&u({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:p.value}},options:l}),p.value=t,p.datatype.value=n||N,p.language=e["@language"]):("@direction"in e&&!a&&l.eventHandler&&u({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:p.value}},options:l}),p.value=t,p.datatype.value=n||b)}}else if(r.isList(e)){const r=function(e,t,n,o,a,r){const i={termType:"NamedNode",value:c},d={termType:"NamedNode",value:m},s={termType:"NamedNode",value:h},l=e.pop(),u=l?{termType:"BlankNode",value:t.getId()}:s;let p=u;for(const s of e){const e=_(s,t,n,o,a,r),l={termType:"BlankNode",value:t.getId()};n.push({subject:p,predicate:i,object:e,graph:o}),n.push({subject:p,predicate:d,object:l,graph:o}),p=l}if(l){const e=_(l,t,n,o,a,r);n.push({subject:p,predicate:i,object:e,graph:o}),n.push({subject:p,predicate:d,object:s,graph:o})}return u}(e["@list"],t,n,o,a,l);p.termType=r.termType,p.value=r.value}else{const t=s.isObject(e)?e["@id"]:e;p.termType=t.startsWith("_:")?"BlankNode":"NamedNode",p.value=t}return"NamedNode"!==p.termType||$(p.value)?p:(l.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:p.value}},options:l}),null)}e.exports=x,x.toRDF=(e,t)=>{const n=new l.IdentifierIssuer("_:b"),a={"@default":{}};o(e,a,"@default",n);const r=[],i=Object.keys(a).sort();for(const e of i){let o;if("@default"===e)o={termType:"DefaultGraph",value:""};else{if(!$(e)){t.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:e}},options:t});continue}o=e.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},o.value=e}w(r,a[e],o,n,t)}return r}},7382:e=>{const t={};e.exports=t,t.isArray=Array.isArray,t.isBoolean=e=>"boolean"==typeof e||"[object Boolean]"===Object.prototype.toString.call(e),t.isDouble=e=>t.isNumber(e)&&(-1!==String(e).indexOf(".")||Math.abs(e)>=1e21),t.isEmptyObject=e=>t.isObject(e)&&0===Object.keys(e).length,t.isNumber=e=>"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e),t.isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),t.isObject=e=>"[object Object]"===Object.prototype.toString.call(e),t.isString=e=>"string"==typeof e||"[object String]"===Object.prototype.toString.call(e),t.isUndefined=e=>void 0===e},470:(e,t,n)=>{const o=n(7382),a={};e.exports=a,a.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},a.parse=(e,t)=>{const n={},o=a.parsers[t||"full"],r=o.regex.exec(e);let i=o.keys.length;for(;i--;)n[o.keys[i]]=void 0===r[i]?null:r[i];return("https"===n.scheme&&"443"===n.port||"http"===n.scheme&&"80"===n.port)&&(n.href=n.href.replace(":"+n.port,""),n.authority=n.authority.replace(":"+n.port,""),n.port=null),n.normalizedPath=a.removeDotSegments(n.path),n},a.prependBase=(e,t)=>{if(null===e)return t;if(a.isAbsolute(t))return t;e&&!o.isString(e)||(e=a.parse(e||""));const n=a.parse(t),r={protocol:e.protocol||""};if(null!==n.authority)r.authority=n.authority,r.path=n.path,r.query=n.query;else if(r.authority=e.authority,""===n.path)r.path=e.path,null!==n.query?r.query=n.query:r.query=e.query;else{if(0===n.path.indexOf("/"))r.path=n.path;else{let t=e.path;t=t.substr(0,t.lastIndexOf("/")+1),(t.length>0||e.authority)&&"/"!==t.substr(-1)&&(t+="/"),t+=n.path,r.path=t}r.query=n.query}""!==n.path&&(r.path=a.removeDotSegments(r.path));let i=r.protocol;return null!==r.authority&&(i+="//"+r.authority),i+=r.path,null!==r.query&&(i+="?"+r.query),null!==n.fragment&&(i+="#"+n.fragment),""===i&&(i="./"),i},a.removeBase=(e,t)=>{if(null===e)return t;e&&!o.isString(e)||(e=a.parse(e||""));let n="";if(""!==e.href?n+=(e.protocol||"")+"//"+(e.authority||""):t.indexOf("//")&&(n+="//"),0!==t.indexOf(n))return t;const r=a.parse(t.substr(n.length)),i=e.normalizedPath.split("/"),d=r.normalizedPath.split("/"),s=r.fragment||r.query?0:1;for(;i.length>0&&d.length>s&&i[0]===d[0];)i.shift(),d.shift();let l="";if(i.length>0){i.pop();for(let e=0;e<i.length;++e)l+="../"}return l+=d.join("/"),null!==r.query&&(l+="?"+r.query),null!==r.fragment&&(l+="#"+r.fragment),""===l&&(l="./"),l},a.removeDotSegments=e=>{if(0===e.length)return"";const t=e.split("/"),n=[];for(;t.length>0;){const e=t.shift(),o=0===t.length;"."!==e?".."!==e?n.push(e):(n.pop(),o&&n.push("")):o&&n.push("")}return"/"===e[0]&&n.length>0&&""!==n[0]&&n.unshift(""),1===n.length&&""===n[0]?"/":n.join("/")};const r=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;a.isAbsolute=e=>o.isString(e)&&r.test(e),a.isRelative=e=>o.isString(e)},9263:(e,t,n)=>{const o=n(3978),a=n(7382),r=n(989).IdentifierIssuer,i=n(2207),d=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,s=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,l=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,u="application/ld+json, application/json",c={};function m(e,t){if(a.isArray(t))for(let n=0;n<t.length;++n)t[n]=m(e,t[n]);else if(o.isList(t))t["@list"]=m(e,t["@list"]);else if(a.isObject(t)){o.isBlankNode(t)&&(t["@id"]=e.getId(t["@id"]));const n=Object.keys(t).sort();for(let o=0;o<n.length;++o){const a=n[o];"@id"!==a&&(t[a]=m(e,t[a]))}}return t}e.exports=c,c.IdentifierIssuer=r,c.REGEX_BCP47=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,c.REGEX_KEYWORD=/^@[a-zA-Z]+$/,c.clone=function(e){if(e&&"object"==typeof e){let t;if(a.isArray(e)){t=[];for(let n=0;n<e.length;++n)t[n]=c.clone(e[n])}else if(e instanceof Map){t=new Map;for(const[n,o]of e)t.set(n,c.clone(o))}else if(e instanceof Set){t=new Set;for(const n of e)t.add(c.clone(n))}else if(a.isObject(e)){t={};for(const n in e)t[n]=c.clone(e[n])}else t=e.toString();return t}return e},c.asArray=function(e){return Array.isArray(e)?e:[e]},c.buildHeaders=(e={})=>{const t=Object.keys(e).some((e=>"accept"===e.toLowerCase()));if(t)throw new RangeError('Accept header may not be specified; only "'+u+'" is supported.');return Object.assign({Accept:u},e)},c.parseLinkHeader=e=>{const t={},n=e.match(d);for(let e=0;e<n.length;++e){let o=n[e].match(s);if(!o)continue;const a={target:o[1]},r=o[2];for(;o=l.exec(r);)a[o[1]]=void 0===o[2]?o[3]:o[2];const i=a.rel||"";Array.isArray(t[i])?t[i].push(a):t.hasOwnProperty(i)?t[i]=[t[i],a]:t[i]=a}return t},c.validateTypeValue=(e,t)=>{if(!(a.isString(e)||a.isArray(e)&&e.every((e=>a.isString(e))))){if(t&&a.isObject(e))switch(Object.keys(e).length){case 0:return;case 1:if("@default"in e&&c.asArray(e["@default"]).every((e=>a.isString(e))))return}throw new i('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:e})}},c.hasProperty=(e,t)=>{if(e.hasOwnProperty(t)){const n=e[t];return!a.isArray(n)||n.length>0}return!1},c.hasValue=(e,t,n)=>{if(c.hasProperty(e,t)){let r=e[t];const i=o.isList(r);if(a.isArray(r)||i){i&&(r=r["@list"]);for(let e=0;e<r.length;++e)if(c.compareValues(n,r[e]))return!0}else if(!a.isArray(n))return c.compareValues(n,r)}return!1},c.addValue=(e,t,n,o)=>{if("propertyIsArray"in(o=o||{})||(o.propertyIsArray=!1),"valueIsArray"in o||(o.valueIsArray=!1),"allowDuplicate"in o||(o.allowDuplicate=!0),"prependValue"in o||(o.prependValue=!1),o.valueIsArray)e[t]=n;else if(a.isArray(n)){0===n.length&&o.propertyIsArray&&!e.hasOwnProperty(t)&&(e[t]=[]),o.prependValue&&(n=n.concat(e[t]),e[t]=[]);for(let a=0;a<n.length;++a)c.addValue(e,t,n[a],o)}else if(e.hasOwnProperty(t)){const r=!o.allowDuplicate&&c.hasValue(e,t,n);a.isArray(e[t])||r&&!o.propertyIsArray||(e[t]=[e[t]]),r||(o.prependValue?e[t].unshift(n):e[t].push(n))}else e[t]=o.propertyIsArray?[n]:n},c.getValues=(e,t)=>[].concat(e[t]||[]),c.removeProperty=(e,t)=>{delete e[t]},c.removeValue=(e,t,n,o)=>{"propertyIsArray"in(o=o||{})||(o.propertyIsArray=!1);const a=c.getValues(e,t).filter((e=>!c.compareValues(e,n)));0===a.length?c.removeProperty(e,t):1!==a.length||o.propertyIsArray?e[t]=a:e[t]=a[0]},c.relabelBlankNodes=(e,t)=>m((t=t||{}).issuer||new r("_:b"),e),c.compareValues=(e,t)=>e===t||!(!o.isValue(e)||!o.isValue(t)||e["@value"]!==t["@value"]||e["@type"]!==t["@type"]||e["@language"]!==t["@language"]||e["@index"]!==t["@index"])||!!(a.isObject(e)&&"@id"in e&&a.isObject(t)&&"@id"in t)&&e["@id"]===t["@id"],c.compareShortestLeast=(e,t)=>e.length<t.length?-1:t.length<e.length?1:e===t?0:e<t?-1:1},9749:(e,t,n)=>{const o=n(8799),a=Symbol("max"),r=Symbol("length"),i=Symbol("lengthCalculator"),d=Symbol("allowStale"),s=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),c=Symbol("lruList"),m=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1,f=(e,t,n)=>{const o=e[m].get(t);if(o){const t=o.value;if(N(e,t)){if(v(e,o),!e[d])return}else n&&(e[h]&&(o.value.now=Date.now()),e[c].unshiftNode(o));return t.value}},N=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[s]&&n>e[s]},g=e=>{if(e[r]>e[a])for(let t=e[c].tail;e[r]>e[a]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[l]&&e[l](n.key,n.value),e[r]-=n.length,e[m].delete(n.key),e[c].removeNode(t)}};class y{constructor(e,t,n,o,a){this.key=e,this.value=t,this.length=n,this.now=o,this.maxAge=a||0}}const b=(e,t,n,o)=>{let a=n.value;N(e,a)&&(v(e,n),e[d]||(a=void 0)),a&&t.call(o,a.value,a.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[a]=e.max||1/0;const t=e.length||p;if(this[i]="function"!=typeof t?p:t,this[d]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[s]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||1/0,g(this)}get max(){return this[a]}set allowStale(e){this[d]=!!e}get allowStale(){return this[d]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[s]=e,g(this)}get maxAge(){return this[s]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[i]&&(this[i]=e,this[r]=0,this[c].forEach((e=>{e.length=this[i](e.value,e.key),this[r]+=e.length}))),g(this)}get lengthCalculator(){return this[i]}get length(){return this[r]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let n=this[c].tail;null!==n;){const o=n.prev;b(this,e,n,t),n=o}}forEach(e,t){t=t||this;for(let n=this[c].head;null!==n;){const o=n.next;b(this,e,n,t),n=o}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){this[l]&&this[c]&&this[c].length&&this[c].forEach((e=>this[l](e.key,e.value))),this[m]=new Map,this[c]=new o,this[r]=0}dump(){return this[c].map((e=>!N(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,t,n){if((n=n||this[s])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const o=n?Date.now():0,d=this[i](t,e);if(this[m].has(e)){if(d>this[a])return v(this,this[m].get(e)),!1;const i=this[m].get(e).value;return this[l]&&(this[u]||this[l](e,i.value)),i.now=o,i.maxAge=n,i.value=t,this[r]+=d-i.length,i.length=d,this.get(e),g(this),!0}const h=new y(e,t,d,o,n);return h.length>this[a]?(this[l]&&this[l](e,t),!1):(this[r]+=h.length,this[c].unshift(h),this[m].set(e,this[c].head),g(this),!0)}has(e){if(!this[m].has(e))return!1;const t=this[m].get(e).value;return!N(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[c].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[m].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n],a=o.e||0;if(0===a)this.set(o.k,o.v);else{const e=a-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[m].forEach(((e,t)=>f(this,t,!1)))}}},6585:e=>{var t=1e3,n=60*t,o=60*n,a=24*o,r=7*a;function i(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}e.exports=function(e,d){d=d||{};var s,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var d=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*d;case"weeks":case"week":case"w":return d*r;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*o;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}(e);if("number"===u&&isFinite(e))return d.long?(s=e,(l=Math.abs(s))>=a?i(s,l,a,"day"):l>=o?i(s,l,o,"hour"):l>=n?i(s,l,n,"minute"):l>=t?i(s,l,t,"second"):s+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=o?Math.round(e/o)+"h":r>=n?Math.round(e/n)+"m":r>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5606:e=>{var t,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var d,s=[],l=!1,u=-1;function c(){l&&d&&(l=!1,d.length?s=d.concat(s):u=-1,s.length&&m())}function m(){if(!l){var e=i(c);l=!0;for(var t=s.length;t;){for(d=s,s=[];++u<t;)d&&d[u].run();u=-1,t=s.length}d=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||i(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},9596:(e,t,n)=>{let o;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:n.g):e=>(o||(o=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},989:(e,t,n)=>{e.exports=n(4005)},2985:e=>{e.exports=class e{constructor(e,t=new Map,n=0){this.prefix=e,this._existing=t,this.counter=n}clone(){const{prefix:t,_existing:n,counter:o}=this;return new e(t,new Map(n),o)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const n=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,n),n}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}}},3751:(e,t,n)=>{n(2791);const o=self.crypto||self.msCrypto;e.exports=class{constructor(e){if(!o||!o.subtle)throw new Error("crypto.subtle not found.");if("sha256"===e)this.algorithm={name:"SHA-256"};else{if("sha1"!==e)throw new Error(`Unsupported algorithm "${e}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(e){this._content+=e}async digest(){const e=(new TextEncoder).encode(this._content),t=new Uint8Array(await o.subtle.digest(this.algorithm,e));let n="";for(let e=0;e<t.length;++e)n+=t[e].toString(16).padStart(2,"0");return n}}},1227:e=>{const t="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",n="http://www.w3.org/2001/XMLSchema#string",o="NamedNode",a="BlankNode",r="Literal",i="DefaultGraph",d={};(()=>{const e="(?:<([^:]+:[^>]*)>)",t="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_",n=t+"0-9-·̀-ͯ‿-⁀",o="(_:(?:["+t+"0-9])(?:(?:["+n+".])*(?:["+n+"]))?)",a="[ \\t]+",r="[ \\t]*",i="(?:"+e+"|"+o+")"+a,s=e+a,l="(?:"+e+"|"+o+'|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^'+e+")|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))"+r,u="(?:\\.|(?:(?:"+e+"|"+o+")"+r+"\\.))";d.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,d.empty=new RegExp("^"+r+"$"),d.quad=new RegExp("^"+r+i+s+l+u+r+"$")})(),e.exports=class e{static parse(e){const s=[],l={},c=e.split(d.eoln);let m=0;for(const e of c){if(m++,d.empty.test(e))continue;const c=e.match(d.quad);if(null===c)throw new Error("N-Quads parse error on line "+m+".");const f={subject:null,predicate:null,object:null,graph:null};if(void 0!==c[1]?f.subject={termType:o,value:c[1]}:f.subject={termType:a,value:c[2]},f.predicate={termType:o,value:c[3]},void 0!==c[4]?f.object={termType:o,value:c[4]}:void 0!==c[5]?f.object={termType:a,value:c[5]}:(f.object={termType:r,value:void 0,datatype:{termType:o}},void 0!==c[7]?f.object.datatype.value=c[7]:void 0!==c[8]?(f.object.datatype.value=t,f.object.language=c[8]):f.object.datatype.value=n,f.object.value=u(c[6])),void 0!==c[9]?f.graph={termType:o,value:c[9]}:void 0!==c[10]?f.graph={termType:a,value:c[10]}:f.graph={termType:i,value:""},f.graph.value in l){let e=!0;const t=l[f.graph.value];for(const n of t)if(p=f,(h=n).subject.termType===p.subject.termType&&h.object.termType===p.object.termType&&h.subject.value===p.subject.value&&h.predicate.value===p.predicate.value&&h.object.value===p.object.value&&(h.object.termType!==r||h.object.datatype.termType===p.object.datatype.termType&&h.object.language===p.object.language&&h.object.datatype.value===p.object.datatype.value)){e=!1;break}e&&(t.push(f),s.push(f))}else l[f.graph.value]=[f],s.push(f)}var h,p;return s}static serialize(t){Array.isArray(t)||(t=e.legacyDatasetToQuads(t));const n=[];for(const o of t)n.push(e.serializeQuad(o));return n.sort().join("")}static serializeQuadComponents(e,r,i,d){let l="";return e.termType===o?l+=`<${e.value}>`:l+=`${e.value}`,l+=` <${r.value}> `,i.termType===o?l+=`<${i.value}>`:i.termType===a?l+=i.value:(l+=`"${function(e){return e.replace(s,(function(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}}))}(i.value)}"`,i.datatype.value===t?i.language&&(l+=`@${i.language}`):i.datatype.value!==n&&(l+=`^^<${i.datatype.value}>`)),d.termType===o?l+=` <${d.value}>`:d.termType===a&&(l+=` ${d.value}`),l+=" .\n",l}static serializeQuad(t){return e.serializeQuadComponents(t.subject,t.predicate,t.object,t.graph)}static legacyDatasetToQuads(e){const d=[],s={"blank node":a,IRI:o,literal:r};for(const l in e)e[l].forEach((e=>{const u={};for(const a in e){const i=e[a],d={termType:s[i.type],value:i.value};d.termType===r&&(d.datatype={termType:o},"datatype"in i&&(d.datatype.value=i.datatype),"language"in i?("datatype"in i||(d.datatype.value=t),d.language=i.language):"datatype"in i||(d.datatype.value=n)),u[a]=d}u.graph="@default"===l?{termType:i,value:""}:{termType:l.startsWith("_:")?a:o,value:l},d.push(u)}));return d}};const s=/["\\\n\r]/g,l=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function u(e){return e.replace(l,(function(e,t,n,o){if(t)switch(t){case"t":return"\t";case"b":return"\b";case"n":return"\n";case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(n)return String.fromCharCode(parseInt(n,16));if(o)throw new Error("Unsupported U escape")}))}},9925:e=>{e.exports=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;t<e.length;++t)this.dir.set(e[t],!0)}hasNext(){return!this.done}next(){const{current:e,dir:t}=this,n=e.slice();let o=null,a=0;const r=e.length;for(let n=0;n<r;++n){const i=e[n],d=t.get(i);(null===o||i>o)&&(d&&n>0&&i>e[n-1]||!d&&n<r-1&&i>e[n+1])&&(o=i,a=n)}if(null===o)this.done=!0;else{const n=t.get(o)?a-1:a+1;e[a]=e[n],e[n]=o;for(const n of e)n>o&&t.set(n,!t.get(n))}return n}}},3513:(e,t,n)=>{const o=n(2985),a=n(3751),r=n(9925),i=n(1227);function d(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=class{constructor({createMessageDigest:e=(()=>new a("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:n=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new o("_:c14n",t),this.createMessageDigest=e,this.maxDeepIterations=n,this.quads=null,this.deepIterations=null}async main(e){this.deepIterations=new Map,this.quads=e;for(const t of e)this._addBlankNodeQuadInfo({quad:t,component:t.subject}),this._addBlankNodeQuadInfo({quad:t,component:t.object}),this._addBlankNodeQuadInfo({quad:t,component:t.graph});const t=new Map,n=[...this.blankNodeInfo.keys()];let a=0;for(const e of n)++a%100==0&&await this._yield(),await this._hashAndTrackBlankNode({id:e,hashToBlankNodes:t});const r=[...t.keys()].sort(),s=[];for(const e of r){const n=t.get(e);if(n.length>1){s.push(n);continue}const o=n[0];this.canonicalIssuer.getId(o)}for(const e of s){const t=[];for(const n of e){if(this.canonicalIssuer.hasId(n))continue;const e=new o("_:b");e.getId(n);const a=await this.hashNDegreeQuads(n,e);t.push(a)}t.sort(d);for(const e of t){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const l=[];for(const e of this.quads){const t=i.serializeQuadComponents(this._componentWithCanonicalId(e.subject),e.predicate,this._componentWithCanonicalId(e.object),this._componentWithCanonicalId(e.graph));l.push(t)}return l.sort(),l.join("")}async hashFirstDegreeQuads(e){const t=[],n=this.blankNodeInfo.get(e),o=n.quads;for(const n of o){const o={subject:null,predicate:n.predicate,object:null,graph:null};o.subject=this.modifyFirstDegreeComponent(e,n.subject,"subject"),o.object=this.modifyFirstDegreeComponent(e,n.object,"object"),o.graph=this.modifyFirstDegreeComponent(e,n.graph,"graph"),t.push(i.serializeQuad(o))}t.sort();const a=this.createMessageDigest();for(const e of t)a.update(e);return n.hash=await a.digest(),n.hash}async hashRelatedBlankNode(e,t,n,o){let a;a=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):n.hasId(e)?n.getId(e):this.blankNodeInfo.get(e).hash;const r=this.createMessageDigest();return r.update(o),"g"!==o&&r.update(this.getRelatedPredicate(t)),r.update(a),r.digest()}async hashNDegreeQuads(e,t){const n=this.deepIterations.get(e)||0;if(n>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(e,n+1);const o=this.createMessageDigest(),a=await this.createHashToRelated(e,t),i=[...a.keys()].sort();for(const e of i){o.update(e);let n,i="";const d=new r(a.get(e));let s=0;for(;d.hasNext();){const e=d.next();++s%3==0&&await this._yield();let o=t.clone(),a="";const r=[];let l=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?a+=this.canonicalIssuer.getId(t):(o.hasId(t)||r.push(t),a+=o.getId(t)),0!==i.length&&a>i){l=!0;break}if(!l){for(const e of r){const t=await this.hashNDegreeQuads(e,o);if(a+=o.getId(e),a+=`<${t.hash}>`,o=t.issuer,0!==i.length&&a>i){l=!0;break}}l||(0===i.length||a<i)&&(i=a,n=o)}}o.update(i),t=n}return{hash:await o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}async createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;let a=0;for(const r of o)++a%100==0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:r,component:r.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:r,component:r.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:r,component:r.graph,position:"g",id:e,issuer:t,hashToRelated:n})]);return n}async _hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const n=await this.hashFirstDegreeQuads(e),o=t.get(n);o?o.push(e):t.set(n,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const n=t.value,o=this.blankNodeInfo.get(n);o?o.quads.add(e):this.blankNodeInfo.set(n,{quads:new Set([e]),hash:null})}async _addRelatedBlankNodeHash({quad:e,component:t,position:n,id:o,issuer:a,hashToRelated:r}){if("BlankNode"!==t.termType||t.value===o)return;const i=t.value,d=await this.hashRelatedBlankNode(i,e,a,n),s=r.get(d);s?s.push(i):r.set(d,[i])}_componentWithCanonicalId(e){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}async _yield(){return new Promise((e=>setImmediate(e)))}}},2438:(e,t,n)=>{const o=n(2985),a=n(3751),r=n(9925),i=n(1227);function d(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=class{constructor({createMessageDigest:e=(()=>new a("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:n=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new o("_:c14n",t),this.createMessageDigest=e,this.maxDeepIterations=n,this.quads=null,this.deepIterations=null}main(e){this.deepIterations=new Map,this.quads=e;for(const t of e)this._addBlankNodeQuadInfo({quad:t,component:t.subject}),this._addBlankNodeQuadInfo({quad:t,component:t.object}),this._addBlankNodeQuadInfo({quad:t,component:t.graph});const t=new Map,n=[...this.blankNodeInfo.keys()];for(const e of n)this._hashAndTrackBlankNode({id:e,hashToBlankNodes:t});const a=[...t.keys()].sort(),r=[];for(const e of a){const n=t.get(e);if(n.length>1){r.push(n);continue}const o=n[0];this.canonicalIssuer.getId(o)}for(const e of r){const t=[];for(const n of e){if(this.canonicalIssuer.hasId(n))continue;const e=new o("_:b");e.getId(n);const a=this.hashNDegreeQuads(n,e);t.push(a)}t.sort(d);for(const e of t){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const s=[];for(const e of this.quads){const t=i.serializeQuadComponents(this._componentWithCanonicalId({component:e.subject}),e.predicate,this._componentWithCanonicalId({component:e.object}),this._componentWithCanonicalId({component:e.graph}));s.push(t)}return s.sort(),s.join("")}hashFirstDegreeQuads(e){const t=[],n=this.blankNodeInfo.get(e),o=n.quads;for(const n of o){const o={subject:null,predicate:n.predicate,object:null,graph:null};o.subject=this.modifyFirstDegreeComponent(e,n.subject,"subject"),o.object=this.modifyFirstDegreeComponent(e,n.object,"object"),o.graph=this.modifyFirstDegreeComponent(e,n.graph,"graph"),t.push(i.serializeQuad(o))}t.sort();const a=this.createMessageDigest();for(const e of t)a.update(e);return n.hash=a.digest(),n.hash}hashRelatedBlankNode(e,t,n,o){let a;a=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):n.hasId(e)?n.getId(e):this.blankNodeInfo.get(e).hash;const r=this.createMessageDigest();return r.update(o),"g"!==o&&r.update(this.getRelatedPredicate(t)),r.update(a),r.digest()}hashNDegreeQuads(e,t){const n=this.deepIterations.get(e)||0;if(n>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(e,n+1);const o=this.createMessageDigest(),a=this.createHashToRelated(e,t),i=[...a.keys()].sort();for(const e of i){o.update(e);let n,i="";const d=new r(a.get(e));for(;d.hasNext();){const e=d.next();let o=t.clone(),a="";const r=[];let s=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?a+=this.canonicalIssuer.getId(t):(o.hasId(t)||r.push(t),a+=o.getId(t)),0!==i.length&&a>i){s=!0;break}if(!s){for(const e of r){const t=this.hashNDegreeQuads(e,o);if(a+=o.getId(e),a+=`<${t.hash}>`,o=t.issuer,0!==i.length&&a>i){s=!0;break}}s||(0===i.length||a<i)&&(i=a,n=o)}}o.update(i),t=n}return{hash:o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;for(const a of o)this._addRelatedBlankNodeHash({quad:a,component:a.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:a,component:a.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:a,component:a.graph,position:"g",id:e,issuer:t,hashToRelated:n});return n}_hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const n=this.hashFirstDegreeQuads(e),o=t.get(n);o?o.push(e):t.set(n,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const n=t.value,o=this.blankNodeInfo.get(n);o?o.quads.add(e):this.blankNodeInfo.set(n,{quads:new Set([e]),hash:null})}_addRelatedBlankNodeHash({quad:e,component:t,position:n,id:o,issuer:a,hashToRelated:r}){if("BlankNode"!==t.termType||t.value===o)return;const i=t.value,d=this.hashRelatedBlankNode(i,e,a,n),s=r.get(d);s?s.push(i):r.set(d,[i])}_componentWithCanonicalId({component:e}){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}}},3845:(e,t,n)=>{const o=n(3751),a=n(3513);e.exports=class extends a{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new o("sha1")}modifyFirstDegreeComponent(e,t,n){return"BlankNode"!==t.termType?t:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return e.predicate.value}async createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;let a=0;for(const r of o){let o,i;if("BlankNode"===r.subject.termType&&r.subject.value!==e)i=r.subject.value,o="p";else{if("BlankNode"!==r.object.termType||r.object.value===e)continue;i=r.object.value,o="r"}++a%100==0&&await this._yield();const d=await this.hashRelatedBlankNode(i,r,t,o),s=n.get(d);s?s.push(i):n.set(d,[i])}return n}}},378:(e,t,n)=>{const o=n(3751),a=n(2438);e.exports=class extends a{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new o("sha1")}modifyFirstDegreeComponent(e,t,n){return"BlankNode"!==t.termType?t:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return e.predicate.value}createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;for(const a of o){let o,r;if("BlankNode"===a.subject.termType&&a.subject.value!==e)r=a.subject.value,o="p";else{if("BlankNode"!==a.object.termType||a.object.value===e)continue;r=a.object.value,o="r"}const i=this.hashRelatedBlankNode(r,a,t,o),d=n.get(i);d?d.push(r):n.set(i,[r])}return n}}},4005:(e,t,n)=>{const o=n(3513),a=n(3845),r=n(2438),i=n(378);let d;try{d=n(7789)}catch(e){}function s(e){return Array.isArray(e)?e:t.NQuads.legacyDatasetToQuads(e)}t.NQuads=n(1227),t.IdentifierIssuer=n(2985),t._rdfCanonizeNative=function(e){return e&&(d=e),d},t.canonize=async function(e,t){const n=s(e);if(t.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise(((e,o)=>d.canonize(n,t,((t,n)=>t?o(t):e(n)))))}if("URDNA2015"===t.algorithm)return new o(t).main(n);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new a(t).main(n)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)},t._canonizeSync=function(e,t){const n=s(e);if(t.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return d.canonizeSync(n,t)}if("URDNA2015"===t.algorithm)return new r(t).main(n);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new i(t).main(n)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)}},7793:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(9931),t),a(n(8483),t),a(n(2142),t),a(n(2426),t),a(n(3988),t),a(n(6754),t),a(n(8401),t)},9931:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlankNode=void 0,t.BlankNode=class{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&"BlankNode"===e.termType&&e.value===this.value}}},8483:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataFactory=void 0;const o=n(9931),a=n(2142),r=n(2426),i=n(3988),d=n(6754),s=n(8401);let l=0;t.DataFactory=class{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${l++}_`}namedNode(e){return new i.NamedNode(e)}blankNode(e){return new o.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,t){return new r.Literal(e,t)}variable(e){return new s.Variable(e)}defaultGraph(){return a.DefaultGraph.INSTANCE}quad(e,t,n,o){return new d.Quad(e,t,n,o||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(r.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}}},2142:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultGraph=void 0;class n{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&"DefaultGraph"===e.termType}}t.DefaultGraph=n,n.INSTANCE=new n},2426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Literal=void 0;const o=n(3988);class a{constructor(e,t){this.termType="Literal",this.value=e,"string"==typeof t?(this.language=t,this.datatype=a.RDF_LANGUAGE_STRING):t?(this.language="",this.datatype=t):(this.language="",this.datatype=a.XSD_STRING)}equals(e){return!!e&&"Literal"===e.termType&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}}t.Literal=a,a.RDF_LANGUAGE_STRING=new o.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),a.XSD_STRING=new o.NamedNode("http://www.w3.org/2001/XMLSchema#string")},3988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamedNode=void 0,t.NamedNode=class{constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&"NamedNode"===e.termType&&e.value===this.value}}},6754:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Quad=void 0,t.Quad=class{constructor(e,t,n,o){this.termType="Quad",this.value="",this.subject=e,this.predicate=t,this.object=n,this.graph=o}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}}},8401:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Variable=void 0,t.Variable=class{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&"Variable"===e.termType&&e.value===this.value}}},9349:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const r=n(7793),i=n(4802),d=n(103);a(n(4802),t),a(n(5448),t),a(n(103),t);const s=new r.DataFactory,l=new d.Translator;function u(e,t){return l.fromRdf(e,t)}l.registerHandler(new i.TypeHandlerString,i.TypeHandlerString.TYPES.map((e=>s.namedNode(e))),["string"]),l.registerHandler(new i.TypeHandlerBoolean,[i.TypeHandlerBoolean.TYPE].map((e=>s.namedNode(e))),["boolean"]),l.registerHandler(new i.TypeHandlerNumberDouble,i.TypeHandlerNumberDouble.TYPES.map((e=>s.namedNode(e))),["number"]),l.registerHandler(new i.TypeHandlerNumberInteger,i.TypeHandlerNumberInteger.TYPES.map((e=>s.namedNode(e))),["number"]),l.registerHandler(new i.TypeHandlerDate,i.TypeHandlerDate.TYPES.map((e=>s.namedNode(e))),["object"]),t.fromRdf=u,t.toRdf=function(e,t){return t&&"namedNode"in t&&(t={dataFactory:t}),(t=t||{})&&!t.dataFactory&&(t.dataFactory=s),l.toRdf(e,t)},t.getTermRaw=function(e,t){return"Literal"===e.termType?u(e,t):e.value},t.getSupportedRdfDatatypes=function(){return l.getSupportedRdfDatatypes()},t.getSupportedJavaScriptPrimitives=function(){return l.getSupportedJavaScriptPrimitives()}},5448:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},103:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Translator=void 0,t.Translator=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(e){throw new Error(`Invalid RDF ${e.datatype.value} value: '${e.value}'`)}registerHandler(e,t,n){for(const n of t)this.supportedRdfDatatypes.push(n),this.fromRdfHandlers[n.value]=e;for(const t of n){let n=this.toRdfHandlers[t];n||(this.toRdfHandlers[t]=n=[]),n.push(e)}}fromRdf(e,t){const n=this.fromRdfHandlers[e.datatype.value];return n?n.fromRdf(e,t):e.value}toRdf(e,t){const n=this.toRdfHandlers[typeof e];if(n)for(const o of n){const n=o.toRdf(e,t);if(n)return n}throw new Error(`Invalid JavaScript value: '${e}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}}},92:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerBoolean=void 0;const o=n(103);class a{fromRdf(e,t){switch(e.value){case"true":case"1":return!0;case"false":case"0":return!1}return t&&o.Translator.incorrectRdfDataType(e),!1}toRdf(e,{datatype:t,dataFactory:n}){return n.literal(e?"true":"false",t||n.namedNode(a.TYPE))}}a.TYPE="http://www.w3.org/2001/XMLSchema#boolean",t.TypeHandlerBoolean=a},7258:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerDate=void 0;const o=n(103);class a{fromRdf(e,t){switch(t&&!e.value.match(a.VALIDATORS[e.datatype.value.substr(33,e.datatype.value.length)])&&o.Translator.incorrectRdfDataType(e),e.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(e.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const t=e.value.split("-");return new Date(0,parseInt(t[0],10)-1,parseInt(t[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(e.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(e.value+"-01");default:return new Date(e.value)}}toRdf(e,{datatype:t,dataFactory:n}){if(t=t||n.namedNode(a.TYPES[0]),!(e instanceof Date))return null;const o=e;let r;switch(t.value){case"http://www.w3.org/2001/XMLSchema#gDay":r=String(o.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":r=o.getUTCMonth()+1+"-"+o.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":r=String(o.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":r=o.getUTCFullYear()+"-"+(o.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":r=o.toISOString().replace(/T.*$/,"");break;default:r=o.toISOString()}return n.literal(r,t)}}a.TYPES=["http://www.w3.org/2001/XMLSchema#dateTime","http://www.w3.org/2001/XMLSchema#date","http://www.w3.org/2001/XMLSchema#gDay","http://www.w3.org/2001/XMLSchema#gMonthDay","http://www.w3.org/2001/XMLSchema#gYear","http://www.w3.org/2001/XMLSchema#gYearMonth"],a.VALIDATORS={date:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,dateTime:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,gDay:/^[0-9]+$/,gMonthDay:/^[0-9]+-[0-9][0-9]$/,gYear:/^[0-9]+$/,gYearMonth:/^[0-9]+-[0-9][0-9]$/},t.TypeHandlerDate=a},2406:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerNumberDouble=void 0;const o=n(103);class a{fromRdf(e,t){const n=parseFloat(e.value);return t&&isNaN(n)&&o.Translator.incorrectRdfDataType(e),n}toRdf(e,{datatype:t,dataFactory:n}){return t=t||n.namedNode(a.TYPES[0]),isNaN(e)?n.literal("NaN",t):isFinite(e)?e%1==0?null:n.literal(e.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),t):n.literal(e>0?"INF":"-INF",t)}}a.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],t.TypeHandlerNumberDouble=a},6925:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerNumberInteger=void 0;const o=n(103);class a{fromRdf(e,t){const n=parseInt(e.value,10);return t&&(isNaN(n)||e.value.indexOf(".")>=0)&&o.Translator.incorrectRdfDataType(e),n}toRdf(e,{datatype:t,dataFactory:n}){return n.literal(String(e),t||(e<=a.MAX_INT&&e>=a.MIN_INT?n.namedNode(a.TYPES[0]):n.namedNode(a.TYPES[1])))}}a.TYPES=["http://www.w3.org/2001/XMLSchema#integer","http://www.w3.org/2001/XMLSchema#long","http://www.w3.org/2001/XMLSchema#int","http://www.w3.org/2001/XMLSchema#byte","http://www.w3.org/2001/XMLSchema#short","http://www.w3.org/2001/XMLSchema#negativeInteger","http://www.w3.org/2001/XMLSchema#nonNegativeInteger","http://www.w3.org/2001/XMLSchema#nonPositiveInteger","http://www.w3.org/2001/XMLSchema#positiveInteger","http://www.w3.org/2001/XMLSchema#unsignedByte","http://www.w3.org/2001/XMLSchema#unsignedInt","http://www.w3.org/2001/XMLSchema#unsignedLong","http://www.w3.org/2001/XMLSchema#unsignedShort"],a.MAX_INT=2147483647,a.MIN_INT=-2147483648,t.TypeHandlerNumberInteger=a},4191:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerString=void 0;class n{fromRdf(e){return e.value}toRdf(e,{datatype:t,dataFactory:n}){return n.literal(e,t)}}n.TYPES=["http://www.w3.org/2001/XMLSchema#string","http://www.w3.org/2001/XMLSchema#normalizedString","http://www.w3.org/2001/XMLSchema#anyURI","http://www.w3.org/2001/XMLSchema#base64Binary","http://www.w3.org/2001/XMLSchema#language","http://www.w3.org/2001/XMLSchema#Name","http://www.w3.org/2001/XMLSchema#NCName","http://www.w3.org/2001/XMLSchema#NMTOKEN","http://www.w3.org/2001/XMLSchema#token","http://www.w3.org/2001/XMLSchema#hexBinary","http://www.w3.org/1999/02/22-rdf-syntax-ns#langString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"],t.TypeHandlerString=n},4802:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(92),t),a(n(7258),t),a(n(2406),t),a(n(6925),t),a(n(4191),t)},4147:(e,t,n)=>{const{SymbolDispose:o}=n(4134),{AbortError:a,codes:r}=n(6371),{isNodeStream:i,isWebStream:d,kControllerErrorFunction:s}=n(6115),l=n(6238),{ERR_INVALID_ARG_TYPE:u}=r;let c;e.exports.addAbortSignal=function(t,n){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new u("signal","AbortSignal",e)})(t),!i(n)&&!d(n))throw new u("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const r=i(t)?()=>{t.destroy(new a(void 0,{cause:e.reason}))}:()=>{t[s](new a(void 0,{cause:e.reason}))};if(e.aborted)r();else{c=c||n(7760).addAbortListener;const a=c(e,r);l(t,a[o])}return t}},345:(e,t,n)=>{const{StringPrototypeSlice:o,SymbolIterator:a,TypedArrayPrototypeSet:r,Uint8Array:i}=n(4134),{Buffer:d}=n(8287),{inspect:s}=n(7760);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return d.alloc(0);const t=d.allocUnsafe(e>>>0);let n=this.head,o=0;for(;n;)r(t,n.data,o),o+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[a](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,a=0;do{const r=n.data;if(!(e>r.length)){e===r.length?(t+=r,++a,n.next?this.head=n.next:this.head=this.tail=null):(t+=o(r,0,e),this.head=n,n.data=o(r,e));break}t+=r,e-=r.length,++a}while(null!==(n=n.next));return this.length-=a,t}_getBuffer(e){const t=d.allocUnsafe(e),n=e;let o=this.head,a=0;do{const d=o.data;if(!(e>d.length)){e===d.length?(r(t,d,n-e),++a,o.next?this.head=o.next:this.head=this.tail=null):(r(t,new i(d.buffer,d.byteOffset,e),n-e),this.head=o,o.data=d.slice(e));break}r(t,d,n-e),e-=d.length,++a}while(null!==(o=o.next));return this.length-=a,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}},7830:(e,t,n)=>{const{pipeline:o}=n(7758),a=n(3370),{destroyer:r}=n(5896),{isNodeStream:i,isReadable:d,isWritable:s,isWebStream:l,isTransformStream:u,isWritableStream:c,isReadableStream:m}=n(6115),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:f}}=n(6371),N=n(6238);e.exports=function(...e){if(0===e.length)throw new f("streams");if(1===e.length)return a.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=a.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=a.from(e[t])}for(let n=0;n<e.length;++n)if(i(e[n])||l(e[n])){if(n<e.length-1&&!(d(e[n])||m(e[n])||u(e[n])))throw new p(`streams[${n}]`,t[n],"must be readable");if(n>0&&!(s(e[n])||c(e[n])||u(e[n])))throw new p(`streams[${n}]`,t[n],"must be writable")}let n,g,v,y,b;const $=e[0],x=o(e,(function(e){const t=y;y=null,t?t(e):e?b.destroy(e):_||w||b.destroy()})),w=!!(s($)||c($)||u($)),_=!!(d(x)||m(x)||u(x));if(b=new a({writableObjectMode:!(null==$||!$.writableObjectMode),readableObjectMode:!(null==x||!x.readableObjectMode),writable:w,readable:_}),w){if(i($))b._write=function(e,t,o){$.write(e,t)?o():n=o},b._final=function(e){$.end(),g=e},$.on("drain",(function(){if(n){const e=n;n=null,e()}}));else if(l($)){const e=(u($)?$.writable:$).getWriter();b._write=async function(t,n,o){try{await e.ready,e.write(t).catch((()=>{})),o()}catch(e){o(e)}},b._final=async function(t){try{await e.ready,e.close().catch((()=>{})),g=t}catch(e){t(e)}}}const e=u(x)?x.readable:x;N(e,(()=>{if(g){const e=g;g=null,e()}}))}if(_)if(i(x))x.on("readable",(function(){if(v){const e=v;v=null,e()}})),x.on("end",(function(){b.push(null)})),b._read=function(){for(;;){const e=x.read();if(null===e)return void(v=b._read);if(!b.push(e))return}};else if(l(x)){const e=(u(x)?x.readable:x).getReader();b._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!b.push(t))return;if(n)return void b.push(null)}catch{return}}}return b._destroy=function(e,t){e||null===y||(e=new h),v=null,n=null,g=null,null===y?t(e):(y=t,i(x)&&r(x,e))},b}},5896:(e,t,n)=>{const o=n(5606),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:r},AbortError:i}=n(6371),{Symbol:d}=n(4134),{kIsDestroyed:s,isDestroyed:l,isFinished:u,isServerRequest:c}=n(6115),m=d("kDestroy"),h=d("kConstruct");function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function f(e,t,n){let a=!1;function r(t){if(a)return;a=!0;const r=e._readableState,i=e._writableState;p(t,i,r),i&&(i.closed=!0),r&&(r.closed=!0),"function"==typeof n&&n(t),t?o.nextTick(N,e,t):o.nextTick(g,e)}try{e._destroy(t||null,r)}catch(t){r(t)}}function N(e,t){v(e,t),g(e)}function g(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function v(e,t){const n=e._readableState,o=e._writableState;null!=o&&o.errorEmitted||null!=n&&n.errorEmitted||(o&&(o.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function y(e,t,n){const a=e._readableState,r=e._writableState;if(null!=r&&r.destroyed||null!=a&&a.destroyed)return this;null!=a&&a.autoDestroy||null!=r&&r.autoDestroy?e.destroy(t):t&&(t.stack,r&&!r.errored&&(r.errored=t),a&&!a.errored&&(a.errored=t),n?o.nextTick(v,e,t):v(e,t))}function b(e){let t=!1;function n(n){if(t)return void y(e,null!=n?n:new r);t=!0;const a=e._readableState,i=e._writableState,d=i||a;a&&(a.constructed=!0),i&&(i.constructed=!0),d.destroyed?e.emit(m,n):n?y(e,n,!0):o.nextTick($,e)}try{e._construct((e=>{o.nextTick(n,e)}))}catch(e){o.nextTick(n,e)}}function $(e){e.emit(h)}function x(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function w(e){e.emit("close")}function _(e,t){e.emit("error",t),o.nextTick(w,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const n=e._readableState,a=e._writableState;n&&(n.constructed=!1),a&&(a.constructed=!1),e.once(h,t),e.listenerCount(h)>1||o.nextTick(b,e)},destroyer:function(e,t){e&&!l(e)&&(t||u(e)||(t=new i),c(e)?(e.socket=null,e.destroy(t)):x(e)?e.abort():x(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?o.nextTick(_,e,t):o.nextTick(w,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){const n=this._readableState,o=this._writableState,r=o||n;return null!=o&&o.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(p(e,o,n),o&&(o.destroyed=!0),n&&(n.destroyed=!0),r.constructed?f(this,e,t):this.once(m,(function(n){f(this,a(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:y}},3370:(e,t,n)=>{const{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:r,ObjectSetPrototypeOf:i}=n(4134);e.exports=l;const d=n(7576),s=n(8584);i(l.prototype,d.prototype),i(l,d);{const e=r(s.prototype);for(let t=0;t<e.length;t++){const n=e[t];l.prototype[n]||(l.prototype[n]=s.prototype[n])}}function l(e){if(!(this instanceof l))return new l(e);d.call(this,e),s.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,c;function m(){return void 0===u&&(u={}),u}o(l.prototype,{writable:{__proto__:null,...a(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...a(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...a(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...a(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...a(s.prototype,"writableLength")},writableFinished:{__proto__:null,...a(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...a(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...a(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...a(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),l.fromWeb=function(e,t){return m().newStreamDuplexFromReadableWritablePair(e,t)},l.toWeb=function(e){return m().newReadableWritablePairFromDuplex(e)},l.from=function(e){return c||(c=n(6706)),c(e,"body")}},6706:(e,t,n)=>{const o=n(5606),a=n(8287),{isReadable:r,isWritable:i,isIterable:d,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:c,isReadableStream:m,isWritableStream:h}=n(6115),p=n(6238),{AbortError:f,codes:{ERR_INVALID_ARG_TYPE:N,ERR_INVALID_RETURN_VALUE:g}}=n(6371),{destroyer:v}=n(5896),y=n(3370),b=n(7576),$=n(8584),{createDeferredPromise:x}=n(7760),w=n(6532),_=globalThis.Blob||a.Blob,C=void 0!==_?function(e){return e instanceof _}:function(e){return!1},S=globalThis.AbortController||n(5568).AbortController,{FunctionPrototypeCall:q}=n(4134);class E extends y{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function I(e){const t=e.readable&&"function"!=typeof e.readable.read?b.wrap(e.readable):e.readable,n=e.writable;let o,a,d,s,l,u=!!r(t),c=!!i(n);function m(e){const t=s;s=null,t?t(e):e&&l.destroy(e)}return l=new E({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==n||!n.writableObjectMode),readable:u,writable:c}),c&&(p(n,(e=>{c=!1,e&&v(t,e),m(e)})),l._write=function(e,t,a){n.write(e,t)?a():o=a},l._final=function(e){n.end(),a=e},n.on("drain",(function(){if(o){const e=o;o=null,e()}})),n.on("finish",(function(){if(a){const e=a;a=null,e()}}))),u&&(p(t,(e=>{u=!1,e&&v(t,e),m(e)})),t.on("readable",(function(){if(d){const e=d;d=null,e()}})),t.on("end",(function(){l.push(null)})),l._read=function(){for(;;){const e=t.read();if(null===e)return void(d=l._read);if(!l.push(e))return}}),l._destroy=function(e,r){e||null===s||(e=new f),d=null,o=null,a=null,null===s?r(e):(s=r,v(n,e),v(t,e))},l}e.exports=function e(t,n){if(c(t))return t;if(l(t))return I({readable:t});if(u(t))return I({writable:t});if(s(t))return I({writable:!1,readable:!1});if(m(t))return I({readable:b.fromWeb(t)});if(h(t))return I({writable:$.fromWeb(t)});if("function"==typeof t){const{value:e,write:a,final:r,destroy:i}=function(e){let{promise:t,resolve:n}=x();const a=new S,r=a.signal;return{value:e(async function*(){for(;;){const e=t;t=null;const{chunk:a,done:i,cb:d}=await e;if(o.nextTick(d),i)return;if(r.aborted)throw new f(void 0,{cause:r.reason});({promise:t,resolve:n}=x()),yield a}}(),{signal:r}),write(e,t,o){const a=n;n=null,a({chunk:e,done:!1,cb:o})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){a.abort(),t(e)}}}(t);if(d(e))return w(E,e,{objectMode:!0,write:a,final:r,destroy:i});const s=null==e?void 0:e.then;if("function"==typeof s){let t;const n=q(s,e,(e=>{if(null!=e)throw new g("nully","body",e)}),(e=>{v(t,e)}));return t=new E({objectMode:!0,readable:!1,write:a,final(e){r((async()=>{try{await n,o.nextTick(e,null)}catch(t){o.nextTick(e,t)}}))},destroy:i})}throw new g("Iterable, AsyncIterable or AsyncFunction",n,e)}if(C(t))return e(t.arrayBuffer());if(d(t))return w(E,t,{objectMode:!0,writable:!1});if(m(null==t?void 0:t.readable)&&h(null==t?void 0:t.writable))return E.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return I({readable:null!=t&&t.readable?l(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});const a=null==t?void 0:t.then;if("function"==typeof a){let e;return q(a,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{v(e,t)})),e=new E({objectMode:!0,writable:!1,read(){}})}throw new N(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},6238:(e,t,n)=>{const o=n(5606),{AbortError:a,codes:r}=n(6371),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:d}=r,{kEmptyObject:s,once:l}=n(7760),{validateAbortSignal:u,validateFunction:c,validateObject:m,validateBoolean:h}=n(277),{Promise:p,PromisePrototypeThen:f,SymbolDispose:N}=n(4134),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:b,isReadableFinished:$,isReadableErrored:x,isWritable:w,isWritableNodeStream:_,isWritableStream:C,isWritableFinished:S,isWritableErrored:q,isNodeStream:E,willEmitClose:I,kIsClosedPromise:A}=n(6115);let T;const R=()=>{};function L(e,t,r){var h,p;if(2===arguments.length?(r=t,t=s):null==t?t=s:m(t,"options"),c(r,"callback"),u(t.signal,"options.signal"),r=l(r),b(e)||C(e))return function(e,t,r){let i=!1,d=R;if(t.signal)if(d=()=>{i=!0,r.call(e,new a(void 0,{cause:t.signal.reason}))},t.signal.aborted)o.nextTick(d);else{T=T||n(7760).addAbortListener;const o=T(t.signal,d),a=r;r=l(((...t)=>{o[N](),a.apply(e,t)}))}const s=(...t)=>{i||o.nextTick((()=>r.apply(e,t)))};return f(e[A].promise,s,s),R}(e,t,r);if(!E(e))throw new i("stream",["ReadableStream","WritableStream","Stream"],e);const L=null!==(h=t.readable)&&void 0!==h?h:y(e),k=null!==(p=t.writable)&&void 0!==p?p:_(e),P=e._writableState,j=e._readableState,O=()=>{e.writable||B()};let D=I(e)&&y(e)===L&&_(e)===k,M=S(e,!1);const B=()=>{M=!0,e.destroyed&&(D=!1),(!D||e.readable&&!L)&&(L&&!F||r.call(e))};let F=$(e,!1);const V=()=>{F=!0,e.destroyed&&(D=!1),(!D||e.writable&&!k)&&(k&&!M||r.call(e))},U=t=>{r.call(e,t)};let z=g(e);const Q=()=>{z=!0;const t=q(e)||x(e);return t&&"boolean"!=typeof t?r.call(e,t):L&&!F&&y(e,!0)&&!$(e,!1)?r.call(e,new d):!k||M||S(e,!1)?void r.call(e):r.call(e,new d)},G=()=>{z=!0;const t=q(e)||x(e);if(t&&"boolean"!=typeof t)return r.call(e,t);r.call(e)},H=()=>{e.req.on("finish",B)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?k&&!P&&(e.on("end",O),e.on("close",O)):(e.on("complete",B),D||e.on("abort",Q),e.req?H():e.on("request",H)),D||"boolean"!=typeof e.aborted||e.on("aborted",Q),e.on("end",V),e.on("finish",B),!1!==t.error&&e.on("error",U),e.on("close",Q),z?o.nextTick(Q):null!=P&&P.errorEmitted||null!=j&&j.errorEmitted?D||o.nextTick(G):(L||D&&!v(e)||!M&&!1!==w(e))&&(k||D&&!w(e)||!F&&!1!==v(e))?j&&e.req&&e.aborted&&o.nextTick(G):o.nextTick(G);const J=()=>{r=R,e.removeListener("aborted",Q),e.removeListener("complete",B),e.removeListener("abort",Q),e.removeListener("request",H),e.req&&e.req.removeListener("finish",B),e.removeListener("end",O),e.removeListener("close",O),e.removeListener("finish",B),e.removeListener("end",V),e.removeListener("error",U),e.removeListener("close",Q)};if(t.signal&&!z){const i=()=>{const n=r;J(),n.call(e,new a(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)o.nextTick(i);else{T=T||n(7760).addAbortListener;const o=T(t.signal,i),a=r;r=l(((...t)=>{o[N](),a.apply(e,t)}))}}return J}e.exports=L,e.exports.finished=function(e,t){var n;let o=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(h(t.cleanup,"cleanup"),o=t.cleanup),new p(((n,a)=>{const r=L(e,t,(e=>{o&&r(),e?a(e):n()}))}))}},6532:(e,t,n)=>{const o=n(5606),{PromisePrototypeThen:a,SymbolAsyncIterator:r,SymbolIterator:i}=n(4134),{Buffer:d}=n(8287),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=n(6371).codes;e.exports=function(e,t,n){let u,c;if("string"==typeof t||t instanceof d)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[r])c=!0,u=t[r]();else{if(!t||!t[i])throw new s("iterable",["Iterable"],t);c=!1,u=t[i]()}const m=new e({objectMode:!0,highWaterMark:1,...n});let h=!1;return m._read=function(){h||(h=!0,async function(){for(;;){try{const{value:e,done:t}=c?await u.next():u.next();if(t)m.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw h=!1,new l;if(m.push(t))continue;h=!1}}catch(e){m.destroy(e)}break}}())},m._destroy=function(e,t){a(async function(e){const t=null!=e,n="function"==typeof u.throw;if(t&&n){const{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>o.nextTick(t,e)),(n=>o.nextTick(t,n||e)))},m}},4259:(e,t,n)=>{const{ArrayIsArray:o,ObjectSetPrototypeOf:a}=n(4134),{EventEmitter:r}=n(7007);function i(e){r.call(this,e)}function d(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}a(i.prototype,r.prototype),a(i,r),i.prototype.pipe=function(e,t){const n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));let i=!1;function s(){i||(i=!0,e.end())}function l(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){c(),0===r.listenerCount(this,"error")&&this.emit("error",e)}function c(){n.removeListener("data",o),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return d(n,"error",u),d(e,"error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e},e.exports={Stream:i,prependListener:d}},823:(e,t,n)=>{const o=globalThis.AbortController||n(5568).AbortController,{codes:{ERR_INVALID_ARG_VALUE:a,ERR_INVALID_ARG_TYPE:r,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:d},AbortError:s}=n(6371),{validateAbortSignal:l,validateInteger:u,validateObject:c}=n(277),m=n(4134).Symbol("kWeak"),h=n(4134).Symbol("kResistStopPropagation"),{finished:p}=n(6238),f=n(7830),{addAbortSignalNoValidate:N}=n(4147),{isWritable:g,isNodeStream:v}=n(6115),{deprecate:y}=n(7760),{ArrayPrototypePush:b,Boolean:$,MathFloor:x,Number:w,NumberIsNaN:_,Promise:C,PromiseReject:S,PromiseResolve:q,PromisePrototypeThen:E,Symbol:I}=n(4134),A=I("kEmpty"),T=I("kEof");function R(e,t){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal");let o=1;null!=(null==t?void 0:t.concurrency)&&(o=x(t.concurrency));let a=o-1;return null!=(null==t?void 0:t.highWaterMark)&&(a=x(t.highWaterMark)),u(o,"options.concurrency",1),u(a,"options.highWaterMark",0),a+=o,async function*(){const r=n(7760).AbortSignalAny([null==t?void 0:t.signal].filter($)),i=this,d=[],l={signal:r};let u,c,m=!1,h=0;function p(){m=!0,f()}function f(){h-=1,N()}function N(){c&&!m&&h<o&&d.length<a&&(c(),c=null)}!async function(){try{for await(let t of i){if(m)return;if(r.aborted)throw new s;try{if(t=e(t,l),t===A)continue;t=q(t)}catch(e){t=S(e)}h+=1,E(t,f,p),d.push(t),u&&(u(),u=null),!m&&(d.length>=a||h>=o)&&await new C((e=>{c=e}))}d.push(T)}catch(e){const t=S(e);E(t,f,p),d.push(t)}finally{m=!0,u&&(u(),u=null)}}();try{for(;;){for(;d.length>0;){const e=await d[0];if(e===T)return;if(r.aborted)throw new s;e!==A&&(yield e),d.shift(),N()}await new C((e=>{u=e}))}}finally{m=!0,c&&(c(),c=null)}}.call(this)}async function L(e,t=void 0){for await(const n of k.call(this,e,t))return!0;return!1}function k(e,t){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);return R.call(this,(async function(t,n){return await e(t,n)?t:A}),t)}class P extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function j(e){if(e=w(e),_(e))return 0;if(e<0)throw new d("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:y((function(e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&l(e.signal,"options.signal"),async function*(){let t=0;for await(const o of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,o]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),e=j(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var o;if(null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted)throw new s;e--<=0&&(yield n)}}.call(this)},filter:k,flatMap:function(e,t){const n=R.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:R,take:function(e,t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),e=j(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var o;if(null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted)throw new s;if(e-- >0&&(yield n),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),v(e)&&!g(e))throw new a("stream",e,"must be writable");const n=f(this,e);return null!=t&&t.signal&&N(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);return!await L.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);for await(const n of R.call(this,(async function(t,n){return await e(t,n),A}),t));},reduce:async function(e,t,n){var a;if("function"!=typeof e)throw new r("reducer",["Function","AsyncFunction"],e);null!=n&&c(n,"options"),null!=(null==n?void 0:n.signal)&&l(n.signal,"options.signal");let i=arguments.length>1;if(null!=n&&null!==(a=n.signal)&&void 0!==a&&a.aborted){const e=new s(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const d=new o,u=d.signal;if(null!=n&&n.signal){const e={once:!0,[m]:this,[h]:!0};n.signal.addEventListener("abort",(()=>d.abort()),e)}let f=!1;try{for await(const o of this){var N;if(f=!0,null!=n&&null!==(N=n.signal)&&void 0!==N&&N.aborted)throw new s;i?t=await e(t,o,{signal:u}):(t=o,i=!0)}if(!f&&!i)throw new P}finally{d.abort()}return t},toArray:async function(e){null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&l(e.signal,"options.signal");const t=[];for await(const o of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});b(t,o)}return t},some:L,find:async function(e,t){for await(const n of k.call(this,e,t))return n}}},6524:(e,t,n)=>{const{ObjectSetPrototypeOf:o}=n(4134);e.exports=r;const a=n(5001);function r(e){if(!(this instanceof r))return new r(e);a.call(this,e)}o(r.prototype,a.prototype),o(r,a),r.prototype._transform=function(e,t,n){n(null,e)}},7758:(e,t,n)=>{const o=n(5606),{ArrayIsArray:a,Promise:r,SymbolAsyncIterator:i,SymbolDispose:d}=n(4134),s=n(6238),{once:l}=n(7760),u=n(5896),c=n(3370),{aggregateTwoErrors:m,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:f,ERR_STREAM_DESTROYED:N,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=n(6371),{validateFunction:y,validateAbortSignal:b}=n(277),{isIterable:$,isReadable:x,isReadableNodeStream:w,isNodeStream:_,isTransformStream:C,isWebStream:S,isReadableStream:q,isReadableFinished:E}=n(6115),I=globalThis.AbortController||n(5568).AbortController;let A,T,R;function L(e,t,n){let o=!1;return e.on("close",(()=>{o=!0})),{destroy:t=>{o||(o=!0,u.destroyer(e,t||new N("pipe")))},cleanup:s(e,{readable:t,writable:n},(e=>{o=!e}))}}function k(e){if($(e))return e;if(w(e))return async function*(e){T||(T=n(7576)),yield*T.prototype[i].call(e)}(e);throw new h("val",["Readable","Iterable","AsyncIterable"],e)}async function P(e,t,n,{end:o}){let a,i=null;const d=e=>{if(e&&(a=e),i){const e=i;i=null,e()}},l=()=>new r(((e,t)=>{a?t(a):i=()=>{a?t(a):e()}}));t.on("drain",d);const u=s(t,{readable:!1},d);try{t.writableNeedDrain&&await l();for await(const n of e)t.write(n)||await l();o&&(t.end(),await l()),n()}catch(e){n(a!==e?m(a,e):e)}finally{u(),t.off("drain",d)}}async function j(e,t,n,{end:o}){C(t)&&(t=t.writable);const a=t.getWriter();try{for await(const t of e)await a.ready,a.write(t).catch((()=>{}));await a.ready,o&&await a.close(),n()}catch(e){try{await a.abort(e),n(e)}catch(e){n(e)}}}function O(e,t,r){if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new f("streams");const i=new I,s=i.signal,l=null==r?void 0:r.signal,u=[];function m(){B(new v)}let N,g,y;b(l,"options.signal"),R=R||n(7760).addAbortListener,l&&(N=R(l,m));const E=[];let T,O=0;function M(e){B(e,0==--O)}function B(e,n){var a;if(!e||g&&"ERR_STREAM_PREMATURE_CLOSE"!==g.code||(g=e),g||n){for(;E.length;)E.shift()(g);null===(a=N)||void 0===a||a[d](),i.abort(),n&&(g||u.forEach((e=>e())),o.nextTick(t,g,y))}}for(let U=0;U<e.length;U++){const z=e[U],Q=U<e.length-1,G=U>0,H=Q||!1!==(null==r?void 0:r.end),J=U===e.length-1;if(_(z)){if(H){const{destroy:K,cleanup:X}=L(z,Q,G);E.push(K),x(z)&&J&&u.push(X)}function W(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&M(e)}z.on("error",W),x(z)&&J&&u.push((()=>{z.removeListener("error",W)}))}if(0===U)if("function"==typeof z){if(T=z({signal:s}),!$(T))throw new p("Iterable, AsyncIterable or Stream","source",T)}else T=$(z)||w(z)||C(z)?z:c.from(z);else if("function"==typeof z){var F;if(T=C(T)?k(null===(F=T)||void 0===F?void 0:F.readable):k(T),T=z(T,{signal:s}),Q){if(!$(T,!0))throw new p("AsyncIterable",`transform[${U-1}]`,T)}else{var V;A||(A=n(6524));const Y=new A({objectMode:!0}),Z=null===(V=T)||void 0===V?void 0:V.then;if("function"==typeof Z)O++,Z.call(T,(e=>{y=e,null!=e&&Y.write(e),H&&Y.end(),o.nextTick(M)}),(e=>{Y.destroy(e),o.nextTick(M,e)}));else if($(T,!0))O++,P(T,Y,M,{end:H});else{if(!q(T)&&!C(T))throw new p("AsyncIterable or Promise","destination",T);{const ne=T.readable||T;O++,P(ne,Y,M,{end:H})}}T=Y;const{destroy:ee,cleanup:te}=L(T,!1,!0);E.push(ee),J&&u.push(te)}}else if(_(z)){if(w(T)){O+=2;const oe=D(T,z,M,{end:H});x(z)&&J&&u.push(oe)}else if(C(T)||q(T)){const ae=T.readable||T;O++,P(ae,z,M,{end:H})}else{if(!$(T))throw new h("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],T);O++,P(T,z,M,{end:H})}T=z}else if(S(z)){if(w(T))O++,j(k(T),z,M,{end:H});else if(q(T)||$(T))O++,j(T,z,M,{end:H});else{if(!C(T))throw new h("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],T);O++,j(T.readable,z,M,{end:H})}T=z}else T=c.from(z)}return(null!=s&&s.aborted||null!=l&&l.aborted)&&o.nextTick(m),T}function D(e,t,n,{end:a}){let r=!1;if(t.on("close",(()=>{r||n(new g)})),e.pipe(t,{end:!1}),a){function i(){r=!0,t.end()}E(e)?o.nextTick(i):e.once("end",i)}else n();return s(e,{readable:!0,writable:!1},(t=>{const o=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&o&&o.ended&&!o.errored&&!o.errorEmitted?e.once("end",n).once("error",n):n(t)})),s(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:O,pipeline:function(...e){return O(e,l(function(e){return y(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},7576:(e,t,n)=>{const o=n(5606),{ArrayPrototypeIndexOf:a,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:d,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:u,Promise:c,SafeSet:m,SymbolAsyncDispose:h,SymbolAsyncIterator:p,Symbol:f}=n(4134);e.exports=W,W.ReadableState=J;const{EventEmitter:N}=n(7007),{Stream:g,prependListener:v}=n(4259),{Buffer:y}=n(8287),{addAbortSignal:b}=n(4147),$=n(6238);let x=n(7760).debuglog("stream",(e=>{x=e}));const w=n(345),_=n(5896),{getHighWaterMark:C,getDefaultHighWaterMark:S}=n(5291),{aggregateTwoErrors:q,codes:{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:A,ERR_STREAM_PUSH_AFTER_EOF:T,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:L}=n(6371),{validateObject:k}=n(277),P=f("kPaused"),{StringDecoder:j}=n(3141),O=n(6532);u(W.prototype,g.prototype),u(W,g);const D=()=>{},{errorOrDestroy:M}=_,B=1,F=16,V=32,U=64,z=2048,Q=4096,G=65536;function H(e){return{enumerable:!1,get(){return!!(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function J(e,t,o){"boolean"!=typeof o&&(o=t instanceof n(3370)),this.state=z|Q|F|V,e&&e.objectMode&&(this.state|=B),o&&e&&e.readableObjectMode&&(this.state|=B),this.highWaterMark=e?C(this,e,"readableHighWaterMark",o):S(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[P]=null,e&&!1===e.emitClose&&(this.state&=~z),e&&!1===e.autoDestroy&&(this.state&=~Q),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new j(e.encoding),this.encoding=e.encoding)}function W(e){if(!(this instanceof W))return new W(e);const t=this instanceof n(3370);this._readableState=new J(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&b(e.signal,this)),g.call(this,e),_.construct(this,(()=>{this._readableState.needReadable&&te(this,this._readableState)}))}function K(e,t,n,o){x("readableAddChunk",t);const a=e._readableState;let r;if(a.state&B||("string"==typeof t?(n=n||a.defaultEncoding,a.encoding!==n&&(o&&a.encoding?t=y.from(t,n).toString(a.encoding):(t=y.from(t,n),n=""))):t instanceof y?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(r=new E("chunk",["string","Buffer","Uint8Array"],t))),r)M(e,r);else if(null===t)a.state&=-9,function(e,t){if(x("onEofChunk"),!t.ended){if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Z(e):(t.needReadable=!1,t.emittedReadable=!0,ee(e))}}(e,a);else if(a.state&B||t&&t.length>0)if(o)if(4&a.state)M(e,new R);else{if(a.destroyed||a.errored)return!1;X(e,a,t,!0)}else if(a.ended)M(e,new T);else{if(a.destroyed||a.errored)return!1;a.state&=-9,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?X(e,a,t,!1):te(e,a)):X(e,a,t,!1)}else o||(a.state&=-9,te(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function X(e,t,n,o){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.state&G?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.state&U&&Z(e)),te(e,t)}function Y(e,t){return e<=0||0===t.length&&t.ended?0:t.state&B?1:i(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Z(e){const t=e._readableState;x("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(x("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(ee,e))}function ee(e){const t=e._readableState;x("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function te(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,o.nextTick(ne,e,t))}function ne(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(x("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function oe(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[P]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function ae(e){x("readable nexttick read 0"),e.read(0)}function re(e,t){x("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(x("flow",t.flowing);t.flowing&&null!==e.read(););}function de(e,t){"function"!=typeof e.read&&(e=W.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,o=D;function a(t){this===e?(o(),o=D):o=t}e.on("readable",a);const r=$(e,{writable:!1},(e=>{n=e?q(n,e):null,o(),o=D}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new c(a)}}}catch(e){throw n=q(n,e),n}finally{!n&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",a),r()):_.destroyer(e,null)}}(e,t);return n.stream=e,n}function se(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function le(e){const t=e._readableState;x("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(ue,t,e))}function ue(e,t){if(x("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)o.nextTick(ce,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function ce(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let me;function he(){return void 0===me&&(me={}),me}s(J.prototype,{objectMode:H(B),ended:H(2),endEmitted:H(4),reading:H(8),constructed:H(F),sync:H(V),needReadable:H(U),emittedReadable:H(128),readableListening:H(256),resumeScheduled:H(512),errorEmitted:H(1024),emitClose:H(z),autoDestroy:H(Q),destroyed:H(8192),closed:H(16384),closeEmitted:H(32768),multiAwaitDrain:H(G),readingMore:H(1<<17),dataEmitted:H(1<<18)}),W.prototype.destroy=_.destroy,W.prototype._undestroy=_.undestroy,W.prototype._destroy=function(e,t){t(e)},W.prototype[N.captureRejectionSymbol]=function(e){this.destroy(e)},W.prototype[h]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new L,this.destroy(e)),new c(((t,n)=>$(this,(o=>o&&o!==e?n(o):t(null)))))},W.prototype.push=function(e,t){return K(this,e,t,!1)},W.prototype.unshift=function(e,t){return K(this,e,t,!0)},W.prototype.isPaused=function(){const e=this._readableState;return!0===e[P]||!1===e.flowing},W.prototype.setEncoding=function(e){const t=new j(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let o="";for(const e of n)o+=t.write(e);return n.clear(),""!==o&&n.push(o),this._readableState.length=o.length,this},W.prototype.read=function(e){x("read",e),void 0===e?e=NaN:r(e)||(e=d(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new A("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return x("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?le(this):Z(this),null;if(0===(e=Y(e,t))&&t.ended)return 0===t.length&&le(this),null;let o,a=!!(t.state&U);if(x("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&(a=!0,x("length less than watermark",a)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)a=!1,x("reading, ended or constructing",a);else if(a){x("do read"),t.state|=8|V,0===t.length&&(t.state|=U);try{this._read(t.highWaterMark)}catch(e){M(this,e)}t.state&=~V,t.reading||(e=Y(n,t))}return o=e>0?se(e,t):null,null===o?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&le(this)),null===o||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",o)),o},W.prototype._read=function(e){throw new I("_read()")},W.prototype.pipe=function(e,t){const n=this,a=this._readableState;1===a.pipes.length&&(a.multiAwaitDrain||(a.multiAwaitDrain=!0,a.awaitDrainWriters=new m(a.awaitDrainWriters?[a.awaitDrainWriters]:[]))),a.pipes.push(e),x("pipe count=%d opts=%j",a.pipes.length,t);const r=t&&!1===t.end||e===o.stdout||e===o.stderr?f:i;function i(){x("onend"),e.end()}let d;a.endEmitted?o.nextTick(r):n.once("end",r),e.on("unpipe",(function t(o,r){x("onunpipe"),o===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,x("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),d&&e.removeListener("drain",d),e.removeListener("error",c),e.removeListener("unpipe",t),n.removeListener("end",i),n.removeListener("end",f),n.removeListener("data",u),s=!0,d&&a.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&d())}));let s=!1;function l(){s||(1===a.pipes.length&&a.pipes[0]===e?(x("false write response, pause",0),a.awaitDrainWriters=e,a.multiAwaitDrain=!1):a.pipes.length>1&&a.pipes.includes(e)&&(x("false write response, pause",a.awaitDrainWriters.size),a.awaitDrainWriters.add(e)),n.pause()),d||(d=function(e,t){return function(){const n=e._readableState;n.awaitDrainWriters===t?(x("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(x("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",d))}function u(t){x("ondata");const n=e.write(t);x("dest.write",n),!1===n&&l()}function c(t){if(x("onerror",t),f(),e.removeListener("error",c),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?M(e,t):e.emit("error",t)}}function h(){e.removeListener("finish",p),f()}function p(){x("onfinish"),e.removeListener("close",h),f()}function f(){x("unpipe"),n.unpipe(e)}return n.on("data",u),v(e,"error",c),e.once("close",h),e.once("finish",p),e.emit("pipe",n),!0===e.writableNeedDrain?l():a.flowing||(x("pipe resume"),n.resume()),e},W.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=a(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},W.prototype.on=function(e,t){const n=g.prototype.on.call(this,e,t),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,x("on readable",a.length,a.reading),a.length?Z(this):a.reading||o.nextTick(ae,this))),n},W.prototype.addListener=W.prototype.on,W.prototype.removeListener=function(e,t){const n=g.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(oe,this),n},W.prototype.off=W.prototype.removeListener,W.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||o.nextTick(oe,this),t},W.prototype.resume=function(){const e=this._readableState;return e.flowing||(x("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(re,e,t))}(this,e)),e[P]=!1,this},W.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[P]=!0,this},W.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{M(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=l(e);for(let t=1;t<n.length;t++){const o=n[t];void 0===this[o]&&"function"==typeof e[o]&&(this[o]=e[o].bind(e))}return this},W.prototype[p]=function(){return de(this)},W.prototype.iterator=function(e){return void 0!==e&&k(e,"options"),de(this,e)},s(W.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),s(J.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[P]},set(e){this[P]=!!e}}}),W._fromList=se,W.from=function(e,t){return O(W,e,t)},W.fromWeb=function(e,t){return he().newStreamReadableFromReadableStream(e,t)},W.toWeb=function(e,t){return he().newReadableStreamFromStreamReadable(e,t)},W.wrap=function(e,t){var n,o;return new W({objectMode:null===(n=null!==(o=e.readableObjectMode)&&void 0!==o?o:e.objectMode)||void 0===n||n,...t,destroy(t,n){_.destroyer(e,t),n(t)}}).wrap(e)}},5291:(e,t,n)=>{const{MathFloor:o,NumberIsInteger:a}=n(4134),{validateInteger:r}=n(277),{ERR_INVALID_ARG_VALUE:i}=n(6371).codes;let d=16384,s=16;function l(e){return e?s:d}e.exports={getHighWaterMark:function(e,t,n,r){const d=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=d){if(!a(d)||d<0)throw new i(r?`options.${n}`:"options.highWaterMark",d);return o(d)}return l(e.objectMode)},getDefaultHighWaterMark:l,setDefaultHighWaterMark:function(e,t){r(t,"value",0),e?s=t:d=t}}},5001:(e,t,n)=>{const{ObjectSetPrototypeOf:o,Symbol:a}=n(4134);e.exports=l;const{ERR_METHOD_NOT_IMPLEMENTED:r}=n(6371).codes,i=n(3370),{getHighWaterMark:d}=n(5291);o(l.prototype,i.prototype),o(l,i);const s=a("kCallback");function l(e){if(!(this instanceof l))return new l(e);const t=e?d(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),i.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function c(){this._final!==u&&u.call(this)}l.prototype._final=u,l.prototype._transform=function(e,t,n){throw new r("_transform()")},l.prototype._write=function(e,t,n){const o=this._readableState,a=this._writableState,r=o.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),a.ended||r===o.length||o.length<o.highWaterMark?n():this[s]=n)}))},l.prototype._read=function(){if(this[s]){const e=this[s];this[s]=null,e()}}},6115:(e,t,n)=>{const{SymbolAsyncIterator:o,SymbolIterator:a,SymbolFor:r}=n(4134),i=r("nodejs.stream.destroyed"),d=r("nodejs.stream.errored"),s=r("nodejs.stream.readable"),l=r("nodejs.stream.writable"),u=r("nodejs.stream.disturbed"),c=r("nodejs.webstream.isClosedPromise"),m=r("nodejs.webstream.controllerErrorFunction");function h(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function f(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function N(e){return!(!e||f(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function g(e){return!(!e||f(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function v(e){return!(!e||f(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!f(e))return null;const t=e._writableState,n=e._readableState,o=t||n;return!!(e.destroyed||e[i]||null!=o&&o.destroyed)}function b(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function $(e,t){if(!h(e))return null;const n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function x(e){return e&&null!=e[s]?e[s]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!y(e)&&h(e)&&e.readable&&!$(e)}function w(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!y(e)&&p(e)&&e.writable&&!b(e)}function _(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function C(e){return"boolean"==typeof e._sent100&&_(e)}e.exports={isDestroyed:y,kIsDestroyed:i,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,n,o,a,r,i,s,l,u,c;return!(!e||!(null!==(t=null!==(n=null!==(o=null!==(a=null!==(r=null!==(i=e[d])&&void 0!==i?i:e.readableErrored)&&void 0!==r?r:e.writableErrored)&&void 0!==a?a:null===(s=e._readableState)||void 0===s?void 0:s.errorEmitted)&&void 0!==o?o:null===(l=e._writableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(c=e._writableState)||void 0===c?void 0:c.errored))},kIsErrored:d,isReadable:x,kIsReadable:s,kIsClosedPromise:c,kControllerErrorFunction:m,kIsWritable:l,isClosed:function(e){if(!f(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==n?void 0:n.closed)?(null==t?void 0:t.closed)||(null==n?void 0:n.closed):"boolean"==typeof e._closed&&_(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return f(e)?!(!y(e)&&(!1!==(null==t?void 0:t.readable)&&x(e)||!1!==(null==t?void 0:t.writable)&&w(e))):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[o]:!1===t?"function"==typeof e[a]:"function"==typeof e[o]||"function"==typeof e[a])},isReadableNodeStream:h,isReadableStream:N,isReadableEnded:function(e){if(!h(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:$,isReadableErrored:function(e){var t,n;return f(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:f,isWebStream:function(e){return N(e)||g(e)||v(e)},isWritable:w,isWritableNodeStream:p,isWritableStream:g,isWritableEnded:b,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return f(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:C,willEmitClose:function(e){if(!f(e))return null;const t=e._writableState,n=e._readableState,o=t||n;return!o&&C(e)||!!(o&&o.autoDestroy&&o.emitClose&&!1===o.closed)},isTransformStream:v}},8584:(e,t,n)=>{const o=n(5606),{ArrayPrototypeSlice:a,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:d,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:m}=n(4134);e.exports=k,k.WritableState=R;const{EventEmitter:h}=n(7007),p=n(4259).Stream,{Buffer:f}=n(8287),N=n(5896),{addAbortSignal:g}=n(4147),{getHighWaterMark:v,getDefaultHighWaterMark:y}=n(5291),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:$,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:_,ERR_STREAM_ALREADY_FINISHED:C,ERR_STREAM_NULL_VALUES:S,ERR_STREAM_WRITE_AFTER_END:q,ERR_UNKNOWN_ENCODING:E}=n(6371).codes,{errorOrDestroy:I}=N;function A(){}l(k.prototype,p.prototype),l(k,p);const T=c("kOnFinished");function R(e,t,o){"boolean"!=typeof o&&(o=t instanceof n(3370)),this.objectMode=!(!e||!e.objectMode),o&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",o):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const a=!(!e||!1!==e.decodeStrings);this.decodeStrings=!a,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=D.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[T]=[]}function L(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function k(e){const t=this instanceof n(3370);if(!t&&!i(k,this))return new k(e);this._writableState=new R(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&g(e.signal,this)),p.call(this,e),N.construct(this,(()=>{const e=this._writableState;e.writing||V(this,e),z(this,e)}))}function P(e,t,n,a){const r=e._writableState;if("function"==typeof n)a=n,n=r.defaultEncoding;else{if(n){if("buffer"!==n&&!f.isEncoding(n))throw new E(n)}else n=r.defaultEncoding;"function"!=typeof a&&(a=A)}if(null===t)throw new S;if(!r.objectMode)if("string"==typeof t)!1!==r.decodeStrings&&(t=f.from(t,n),n="buffer");else if(t instanceof f)n="buffer";else{if(!p._isUint8Array(t))throw new b("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),n="buffer"}let i;return r.ending?i=new q:r.destroyed&&(i=new _("write")),i?(o.nextTick(a,i),I(e,i,!0),i):(r.pendingcb++,function(e,t,n,o,a){const r=t.objectMode?1:n.length;t.length+=r;const i=t.length<t.highWaterMark;return i||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:o,callback:a}),t.allBuffers&&"buffer"!==o&&(t.allBuffers=!1),t.allNoop&&a!==A&&(t.allNoop=!1)):(t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,e._write(n,o,t.onwrite),t.sync=!1),i&&!t.errored&&!t.destroyed}(e,r,t,n,a))}function j(e,t,n,o,a,r,i){t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):n?e._writev(a,t.onwrite):e._write(a,r,t.onwrite),t.sync=!1}function O(e,t,n,o){--t.pendingcb,o(n),F(t),I(e,n)}function D(e,t){const n=e._writableState,a=n.sync,r=n.writecb;"function"==typeof r?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),a?o.nextTick(O,e,n,t,r):O(e,n,t,r)):(n.buffered.length>n.bufferedIndex&&V(e,n),a?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===r?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:r,stream:e,state:n},o.nextTick(M,n.afterWriteTickInfo)):B(e,n,1,r))):I(e,new x)}function M({stream:e,state:t,count:n,cb:o}){return t.afterWriteTickInfo=null,B(e,t,n,o)}function B(e,t,n,o){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,o();t.destroyed&&F(t),z(e,t)}function F(e){if(e.writing)return;for(let n=e.bufferedIndex;n<e.buffered.length;++n){var t;const{chunk:o,callback:a}=e.buffered[n],r=e.objectMode?1:o.length;e.length-=r,a(null!==(t=e.errored)&&void 0!==t?t:new _("write"))}const n=e[T].splice(0);for(let t=0;t<n.length;t++){var o;n[t](null!==(o=e.errored)&&void 0!==o?o:new _("end"))}L(e)}function V(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:o,objectMode:r}=t,i=n.length-o;if(!i)return;let d=o;if(t.bufferProcessing=!0,i>1&&e._writev){t.pendingcb-=i-1;const o=t.allNoop?A:e=>{for(let t=d;t<n.length;++t)n[t].callback(e)},r=t.allNoop&&0===d?n:a(n,d);r.allBuffers=t.allBuffers,j(e,t,!0,t.length,r,"",o),L(t)}else{do{const{chunk:o,encoding:a,callback:i}=n[d];n[d++]=null,j(e,t,!1,r?1:o.length,o,a,i)}while(d<n.length&&!t.writing);d===n.length?L(t):d>256?(n.splice(0,d),t.bufferedIndex=0):t.bufferedIndex=d}t.bufferProcessing=!1}function U(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function z(e,t,n){U(t)&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function a(a){if(n)I(e,null!=a?a:x());else if(n=!0,t.pendingcb--,a){const n=t[T].splice(0);for(let e=0;e<n.length;e++)n[e](a);I(e,a,t.sync)}else U(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,o.nextTick(Q,e,t))}t.sync=!0,t.pendingcb++;try{e._final(a)}catch(e){a(e)}t.sync=!1}(e,t)))}(e,t),0===t.pendingcb&&(n?(t.pendingcb++,o.nextTick(((e,t)=>{U(t)?Q(e,t):t.pendingcb--}),e,t)):U(t)&&(t.pendingcb++,Q(e,t))))}function Q(e,t){t.pendingcb--,t.finished=!0;const n=t[T].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}R.prototype.getBuffer=function(){return a(this.buffered,this.bufferedIndex)},d(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),d(k,m,{__proto__:null,value:function(e){return!!i(this,e)||this===k&&e&&e._writableState instanceof R}}),k.prototype.pipe=function(){I(this,new w)},k.prototype.write=function(e,t,n){return!0===P(this,e,t,n)},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||V(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!f.isEncoding(e))throw new E(e);return this._writableState.defaultEncoding=e,this},k.prototype._write=function(e,t,n){if(!this._writev)throw new $("_write()");this._writev([{chunk:e,encoding:t}],n)},k.prototype._writev=null,k.prototype.end=function(e,t,n){const a=this._writableState;let i;if("function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e){const n=P(this,e,t);n instanceof r&&(i=n)}return a.corked&&(a.corked=1,this.uncork()),i||(a.errored||a.ending?a.finished?i=new C("end"):a.destroyed&&(i=new _("end")):(a.ending=!0,z(this,a,!0),a.ended=!0)),"function"==typeof n&&(i||a.finished?o.nextTick(n,i):a[T].push(n)),this},s(k.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const G=N.destroy;let H;function J(){return void 0===H&&(H={}),H}k.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[T].length)&&o.nextTick(F,n),G.call(this,e,t),this},k.prototype._undestroy=N.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},k.fromWeb=function(e,t){return J().newStreamWritableFromWritableStream(e,t)},k.toWeb=function(e){return J().newWritableStreamFromStreamWritable(e)}},277:(e,t,n)=>{const{ArrayIsArray:o,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:r,ArrayPrototypeMap:i,NumberIsInteger:d,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:m,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:f,StringPrototypeTrim:N}=n(4134),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:$,ERR_UNKNOWN_SIGNAL:x}}=n(6371),{normalizeEncoding:w}=n(7760),{isAsyncFunction:_,isArrayBufferView:C}=n(7760).types,S={},q=/^[0-7]+$/,E=g(((e,t,n=u,o=l)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!d(e))throw new $(t,"an integer",e);if(e<n||e>o)throw new $(t,`>= ${n} && <= ${o}`,e)})),I=g(((e,t,n=-2147483648,o=2147483647)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!d(e))throw new $(t,"an integer",e);if(e<n||e>o)throw new $(t,`>= ${n} && <= ${o}`,e)})),A=g(((e,t,n=!1)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!d(e))throw new $(t,"an integer",e);const o=n?1:0,a=4294967295;if(e<o||e>a)throw new $(t,`>= ${o} && <= ${a}`,e)}));function T(e,t){if("string"!=typeof e)throw new y(t,"string",e)}const R=g(((e,t,n)=>{if(!a(n,e)){const o=r(i(n,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new b(t,e,"must be one of: "+o)}}));function L(e,t){if("boolean"!=typeof e)throw new y(t,"boolean",e)}function k(e,t,n){return null!=e&&m(e,t)?e[t]:n}const P=g(((e,t,n=null)=>{const a=k(n,"allowArray",!1),r=k(n,"allowFunction",!1);if(!k(n,"nullable",!1)&&null===e||!a&&o(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new y(t,"Object",e)})),j=g(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),O=g(((e,t,n=0)=>{if(!o(e))throw new y(t,"Array",e);if(e.length<n)throw new b(t,e,`must be longer than ${n}`)})),D=g(((e,t="buffer")=>{if(!C(e))throw new y(t,["Buffer","TypedArray","DataView"],e)})),M=g(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),B=g(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),F=g(((e,t)=>{if("function"!=typeof e||_(e))throw new y(t,"Function",e)})),V=g(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)})),U=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function z(e,t){if(void 0===e||!h(U,e))throw new b(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(void 0===e&&(e=n),"string"==typeof e){if(null===h(q,e))throw new b(t,e,"must be a 32-bit unsigned integer or an octal string");e=c(e,8)}return A(e,t),e},validateArray:O,validateStringArray:function(e,t){O(e,t);for(let n=0;n<e.length;n++)T(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){O(e,t);for(let n=0;n<e.length;n++)L(e[n],`${t}[${n}]`)},validateAbortSignalArray:function(e,t){O(e,t);for(let n=0;n<e.length;n++){const o=e[n],a=`${t}[${n}]`;if(null==o)throw new y(a,"AbortSignal",o);M(o,a)}},validateBoolean:L,validateBuffer:D,validateDictionary:j,validateEncoding:function(e,t){const n=w(t),o=e.length;if("hex"===n&&o%2!=0)throw new b("encoding",t,`is invalid for data of length ${o}`)},validateFunction:B,validateInt32:I,validateInteger:E,validateNumber:function(e,t,n=void 0,o){if("number"!=typeof e)throw new y(t,"number",e);if(null!=n&&e<n||null!=o&&e>o||(null!=n||null!=o)&&s(e))throw new $(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=o?" && ":""}${null!=o?`<= ${o}`:""}`,e)},validateObject:P,validateOneOf:R,validatePlainFunction:F,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===N(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new v(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(T(e,t),void 0===S[e]){if(void 0!==S[f(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}},validateString:T,validateUint32:A,validateUndefined:V,validateUnion:function(e,t,n){if(!a(n,e))throw new y(t,`('${r(n,"|")}')`,e)},validateAbortSignal:M,validateLinkHeaderValue:function(e){if("string"==typeof e)return z(e,"hints"),e;if(o(e)){const t=e.length;let n="";if(0===t)return n;for(let o=0;o<t;o++){const a=e[o];z(a,"hints"),n+=a,o!==t-1&&(n+=", ")}return n}throw new b("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},9198:(e,t,n)=>{const o=n(5506),a=n(3095),r=o.Readable.destroy;e.exports=o.Readable,e.exports._uint8ArrayToBuffer=o._uint8ArrayToBuffer,e.exports._isUint8Array=o._isUint8Array,e.exports.isDisturbed=o.isDisturbed,e.exports.isErrored=o.isErrored,e.exports.isReadable=o.isReadable,e.exports.Readable=o.Readable,e.exports.Writable=o.Writable,e.exports.Duplex=o.Duplex,e.exports.Transform=o.Transform,e.exports.PassThrough=o.PassThrough,e.exports.addAbortSignal=o.addAbortSignal,e.exports.finished=o.finished,e.exports.destroy=o.destroy,e.exports.destroy=r,e.exports.pipeline=o.pipeline,e.exports.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get:()=>a}),e.exports.Stream=o.Stream,e.exports.default=e.exports},6371:(e,t,n)=>{const{format:o,inspect:a,AggregateError:r}=n(7760),i=globalThis.AggregateError||r,d=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,u={};function c(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function m(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function h(e,t,n){n||(n=Error);class a extends n{constructor(...n){super(function(e,t,n){if("function"==typeof t)return c(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const a=(t.match(/%[dfijoOs]/g)||[]).length;return c(a===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${a}).`),0===n.length?t:o(t,...n)}(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=e,a.prototype[d]=!0,u[e]=a}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class f extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",((e,t,n)=>{c("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let o="The ";e.endsWith(" argument")?o+=`${e} `:o+=`"${e}" ${e.includes(".")?"property":"argument"} `,o+="must be ";const r=[],i=[],d=[];for(const e of t)c("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?r.push(e.toLowerCase()):l.test(e)?i.push(e):(c("object"!==e,'The value "object" should be written as "Object"'),d.push(e));if(i.length>0){const e=r.indexOf("object");-1!==e&&(r.splice(r,e,1),i.push("Object"))}if(r.length>0){switch(r.length){case 1:o+=`of type ${r[0]}`;break;case 2:o+=`one of type ${r[0]} or ${r[1]}`;break;default:{const e=r.pop();o+=`one of type ${r.join(", ")}, or ${e}`}}(i.length>0||d.length>0)&&(o+=" or ")}if(i.length>0){switch(i.length){case 1:o+=`an instance of ${i[0]}`;break;case 2:o+=`an instance of ${i[0]} or ${i[1]}`;break;default:{const e=i.pop();o+=`an instance of ${i.join(", ")}, or ${e}`}}d.length>0&&(o+=" or ")}switch(d.length){case 0:break;case 1:d[0].toLowerCase()!==d[0]&&(o+="an "),o+=`${d[0]}`;break;case 2:o+=`one of ${d[0]} or ${d[1]}`;break;default:{const e=d.pop();o+=`one of ${d.join(", ")}, or ${e}`}}if(null==n)o+=`. Received ${n}`;else if("function"==typeof n&&n.name)o+=`. Received function ${n.name}`;else if("object"==typeof n){var u;null!==(u=n.constructor)&&void 0!==u&&u.name?o+=`. Received an instance of ${n.constructor.name}`:o+=`. Received ${a(n,{depth:-1})}`}else{let e=a(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),o+=`. Received type ${typeof n} (${e})`}return o}),TypeError),h("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let o=a(t);return o.length>128&&(o=o.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${o}`}),TypeError),h("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var o;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(o=n.constructor)&&void 0!==o&&o.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),h("ERR_MISSING_ARGS",((...e)=>{let t;c(e.length>0,"At least one arg needs to be specified");const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),h("ERR_OUT_OF_RANGE",((e,t,n)=>{let o;return c(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?o=m(String(n)):"bigint"==typeof n?(o=String(n),(n>2n**32n||n<-(2n**32n))&&(o=m(o)),o+="n"):o=a(n),`The value of "${e}" is out of range. It must be ${t}. Received ${o}`}),RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:f,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new i([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:p,codes:u}},4134:e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error,FunctionPrototypeCall:(e,t,...n)=>e.call(t,...n),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Boolean,Uint8Array}},7760:(e,t,n)=>{const o=n(8287),{kResistStopPropagation:a,SymbolDispose:r}=n(4134),i=globalThis.AbortSignal||n(5568).AbortSignal,d=globalThis.AbortController||n(5568).AbortController,s=Object.getPrototypeOf((async function(){})).constructor,l=globalThis.Blob||o.Blob,u=void 0!==l?function(e){return e instanceof l}:function(e){return!1},c=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)};class m extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:m,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e(((e,...o)=>e?n(e):t(...o)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,n]){const o=t.shift();return"f"===n?o.toFixed(6):"j"===n?JSON.stringify(o):"s"===n&&"object"==typeof o?`${o.constructor!==Object?o.constructor.name:""} {}`.trim():o.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof s,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:u,deprecate:(e,t)=>e,addAbortListener:n(7007).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);let n;return c(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE("listener","Function",e)})(t),e.aborted?queueMicrotask((()=>t())):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),n=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[r](){var e;null===(e=n)||void 0===e||e()}}},AbortSignalAny:i.any||function(e){if(1===e.length)return e[0];const t=new d,n=()=>t.abort();return e.forEach((e=>{c(e,"signals"),e.addEventListener("abort",n,{once:!0})})),t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",n)))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},5506:(e,t,n)=>{const{Buffer:o}=n(8287),{ObjectDefineProperty:a,ObjectKeys:r,ReflectApply:i}=n(4134),{promisify:{custom:d}}=n(7760),{streamReturningOperators:s,promiseReturningOperators:l}=n(823),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=n(6371),c=n(7830),{setDefaultHighWaterMark:m,getDefaultHighWaterMark:h}=n(5291),{pipeline:p}=n(7758),{destroyer:f}=n(5896),N=n(6238),g=n(3095),v=n(6115),y=e.exports=n(4259).Stream;y.isDestroyed=v.isDestroyed,y.isDisturbed=v.isDisturbed,y.isErrored=v.isErrored,y.isReadable=v.isReadable,y.isWritable=v.isWritable,y.Readable=n(7576);for(const $ of r(s)){const x=s[$];function w(...e){if(new.target)throw u();return y.Readable.from(i(x,this,e))}a(w,"name",{__proto__:null,value:x.name}),a(w,"length",{__proto__:null,value:x.length}),a(y.Readable.prototype,$,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(const _ of r(l)){const C=l[_];function S(...e){if(new.target)throw u();return i(C,this,e)}a(S,"name",{__proto__:null,value:C.name}),a(S,"length",{__proto__:null,value:C.length}),a(y.Readable.prototype,_,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}y.Writable=n(8584),y.Duplex=n(3370),y.Transform=n(5001),y.PassThrough=n(6524),y.pipeline=p;const{addAbortSignal:b}=n(4147);y.addAbortSignal=b,y.finished=N,y.destroy=f,y.compose=c,y.setDefaultHighWaterMark=m,y.getDefaultHighWaterMark=h,a(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>g}),a(p,d,{__proto__:null,enumerable:!0,get:()=>g.pipeline}),a(N,d,{__proto__:null,enumerable:!0,get:()=>g.finished}),y.Stream=y,y._isUint8Array=function(e){return e instanceof Uint8Array},y._uint8ArrayToBuffer=function(e){return o.from(e.buffer,e.byteOffset,e.byteLength)}},3095:(e,t,n)=>{const{ArrayPrototypePop:o,Promise:a}=n(4134),{isIterable:r,isNodeStream:i,isWebStream:d}=n(6115),{pipelineImpl:s}=n(7758),{finished:l}=n(6238);n(5506),e.exports={finished:l,pipeline:function(...e){return new a(((t,n)=>{let a,l;const u=e[e.length-1];if(u&&"object"==typeof u&&!i(u)&&!r(u)&&!d(u)){const t=o(e);a=t.signal,l=t.end}s(e,((e,o)=>{e?n(e):t(o)}),{signal:a,end:l})}))}}},2861:(e,t,n)=>{var o=n(8287),a=o.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(r(o,t),t.Buffer=i),i.prototype=Object.create(a.prototype),r(a,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=a(e);return void 0!==t?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},2791:function(e,t,n){!function(e,t){if(!e.setImmediate){var n,o,a,r,i,d=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(r="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&h(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),n=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):n=function(e){setTimeout(h,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),o=0;o<t.length;o++)t[o]=arguments[o+1];var a={callback:e,args:t};return s[d]=a,n(d),d++},c.clearImmediate=m}function m(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{m(e),l=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},3141:(e,t,n)=>{var o=n(2861).Buffer,a=o.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(o.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=l,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=u,this.end=c,t=3;break;default:return this.write=m,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function d(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var o=n.charCodeAt(n.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},r.prototype.text=function(e,t){var n=function(e,t,n){var o=t.length-1;if(o<n)return 0;var a=i(t[o]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--o<n||-2===a?0:(a=i(t[o]))>=0?(a>0&&(e.lastNeed=a-2),a):--o<n||-2===a?0:(a=i(t[o]))>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var o=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},259:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8799:(e,t,n)=>{function o(e){var t=this;if(t instanceof o||(t=new o),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n<a;n++)t.push(arguments[n]);return t}function a(e,t,n){var o=t===e.head?new d(n,null,t,e):new d(n,t,t.next,e);return null===o.next&&(e.tail=o),null===o.prev&&(e.head=o),e.length++,o}function r(e,t){e.tail=new d(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new d(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function d(e,t,n,o){if(!(this instanceof d))return new d(e,t,n,o);this.list=o,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=o,o.Node=d,o.create=o,o.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},o.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},o.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},o.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},o.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},o.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},o.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},o.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,o=0;null!==n;o++)e.call(t,n.value,o,this),n=n.next},o.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,o=this.length-1;null!==n;o--)e.call(t,n.value,o,this),n=n.prev},o.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},o.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},o.prototype.map=function(e,t){t=t||this;for(var n=new o,a=this.head;null!==a;)n.push(e.call(t,a.value,this)),a=a.next;return n},o.prototype.mapReverse=function(e,t){t=t||this;for(var n=new o,a=this.tail;null!==a;)n.push(e.call(t,a.value,this)),a=a.prev;return n},o.prototype.reduce=function(e,t){var n,o=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,n=this.head.value}for(var a=0;null!==o;a++)n=e(n,o.value,a),o=o.next;return n},o.prototype.reduceReverse=function(e,t){var n,o=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,n=this.tail.value}for(var a=this.length-1;null!==o;a--)n=e(n,o.value,a),o=o.prev;return n},o.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},o.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},o.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new o;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=0,r=this.head;null!==r&&a<e;a++)r=r.next;for(;null!==r&&a<t;a++,r=r.next)n.push(r.value);return n},o.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new o;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=this.length,r=this.tail;null!==r&&a>t;a--)r=r.prev;for(;null!==r&&a>e;a--,r=r.prev)n.push(r.value);return n},o.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,r=this.head;null!==r&&o<e;o++)r=r.next;var i=[];for(o=0;r&&o<t;o++)i.push(r.value),r=this.removeNode(r);for(null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev),o=0;o<n.length;o++)r=a(this,r,n[o]);return i},o.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var o=n.prev;n.prev=n.next,n.next=o}return this.head=t,this.tail=e,this};try{n(259)(o)}catch(e){}},7789:()=>{}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};n.d(o,{TS:()=>ze,aH:()=>Ve,k_:()=>le,a6:()=>pd,nt:()=>G,Sx:()=>H,E7:()=>M,F3:()=>se});const a="http://www.w3.org/1999/02/22-rdf-syntax-ns#",r="http://www.w3.org/2001/XMLSchema#",i="http://www.w3.org/2000/10/swap/",d={xsd:{decimal:`${r}decimal`,boolean:`${r}boolean`,double:`${r}double`,integer:`${r}integer`,string:`${r}string`},rdf:{type:`${a}type`,nil:`${a}nil`,first:`${a}first`,rest:`${a}rest`,langString:`${a}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${i}reify#forSome`,forAll:`${i}reify#forAll`},log:{implies:`${i}log#implies`}},{rdf:s,xsd:l}=d;let u,c=0;const m={namedNode:function(e){return new f(e)},blankNode:function(e){return new g(e||"n3-"+c++)},variable:function(e){return new v(e)},literal:function(e,t){if("string"==typeof t)return new N(`"${e}"@${t.toLowerCase()}`);let n=t?t.value:"";return""===n&&("boolean"==typeof e?n=l.boolean:"number"==typeof e&&(Number.isFinite(e)?n=Number.isInteger(e)?l.integer:l.double:(n=l.double,Number.isNaN(e)||(e=e>0?"INF":"-INF")))),""===n||n===l.string?new N(`"${e}"`):new N(`"${e}"^^${n}`)},defaultGraph:function(){return u},quad:x,triple:x},h=m;class p{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof p?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class f extends p{get termType(){return"NamedNode"}}class N extends p{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let t=e.lastIndexOf('"')+1;return t<e.length&&"@"===e[t++]?e.substr(t).toLowerCase():""}get datatype(){return new f(this.datatypeString)}get datatypeString(){const e=this.id,t=e.lastIndexOf('"')+1,n=t<e.length?e[t]:"";return"^"===n?e.substr(t+2):"@"!==n?l.string:s.langString}equals(e){return e instanceof N?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&this.datatype.value===e.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}}class g extends p{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}}class v extends p{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}}function y(e,t,n){if(t=t||m,!e)return t.defaultGraph();switch(e[0]){case"?":return t.variable(e.substr(1));case"_":return t.blankNode(e.substr(2));case'"':if(t===m)return new N(e);if('"'===e[e.length-1])return t.literal(e.substr(1,e.length-2));const o=e.lastIndexOf('"',e.length-1);return t.literal(e.substr(1,o-1),"@"===e[o+1]?e.substr(o+2):t.namedNode(e.substr(o+3)));case"[":e=JSON.parse(e);break;default:if(!n||!Array.isArray(e))return t.namedNode(e)}return t.quad(y(e[0],t,!0),y(e[1],t,!0),y(e[2],t,!0),e[3]&&y(e[3],t,!0))}function b(e,t){if("string"==typeof e)return e;if(e instanceof p&&"Quad"!==e.termType)return e.id;if(!e)return u.id;switch(e.termType){case"NamedNode":return e.value;case"BlankNode":return`_:${e.value}`;case"Variable":return`?${e.value}`;case"DefaultGraph":return"";case"Literal":return`"${e.value}"${e.language?`@${e.language}`:e.datatype&&e.datatype.value!==l.string?`^^${e.datatype.value}`:""}`;case"Quad":const n=[b(e.subject,!0),b(e.predicate,!0),b(e.object,!0)];return e.graph&&"DefaultGraph"!==e.graph.termType&&n.push(b(e.graph,!0)),t?n:JSON.stringify(n);default:throw new Error(`Unexpected termType: ${e.termType}`)}}u=new class extends p{constructor(){return super(""),u||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};class $ extends p{constructor(e,t,n,o){super(""),this._subject=e,this._predicate=t,this._object=n,this._graph=o||u}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}}function x(e,t,n,o){return new $(e,t,n,o)}const w="http://www.w3.org/ns/shacl#",_="http://www.w3.org/2001/XMLSchema#",C="http://www.w3.org/1999/02/22-rdf-syntax-ns#",S="http://www.w3.org/2000/01/rdf-schema#",q="http://www.w3.org/2004/02/skos/core#",E="http://www.w3.org/2002/07/owl#",I=h.namedNode("shapes"),A=h.namedNode(E+"imports"),T=h.namedNode(C+"type"),R=h.namedNode(S+"subClassOf"),L=h.namedNode(q+"broader"),k=h.namedNode(E+"NamedIndividual"),P=h.namedNode(w+"NodeShape"),j=h.namedNode(w+"class"),O=h.namedNode(w+"targetClass");function D(e,t,n=w,o){let a="";const r=function(e,t,n=w,o){let a;const r=n+t;for(const t of e)if(t.predicate.value===r){if(!o)return t.object;if(t.object.id.endsWith(`@${o}`))return t.object;t.object.id.indexOf("@")<0?a=t.object:a||(a=t.object)}return a}(e,t,n,o);return r&&(a=r.value),a}function M(e,t){return D(e,"prefLabel",q,t)||D(e,"label",S,t)}function B(e,t,n){const o=[];for(const a of e)o.push({value:a,label:M(t.getQuads(a,null,null,null),n)});return o}function F(e,t){for(const n in t)e=e.replace(t[n],"");return e}function V(e,t){const n=B(t.shapesGraph.getSubjects(T,e,null),t.shapesGraph,t.attributes.language);for(const o of t.shapesGraph.getSubjects(R,e,null))n.push(...V(o,t));if(t.shapesGraph.has(new $(e,T,k,I))){n.push(...B([e],t.shapesGraph,t.attributes.language));for(const o of t.shapesGraph.getSubjects(L,e,null))n.push(...V(o,t))}return n}function U(e){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}function z(e,t,n){const o=document.createElement("div");o.classList.add("shacl-or-constraint");const a=[];if(a.push({label:"--- please choose ---",value:""}),t instanceof be){const r=[];for(let o=0;o<e.length;o++){const i=new ue(e[o],n,t.nodeId);r.push(i),a.push({label:i.template.label,value:o.toString()})}const i=n.theme.createListEditor("Please choose",null,!1,a),d=i.querySelector(".editor");d.onchange=()=>{d.value&&o.replaceWith(r[parseInt(d.value)])},o.appendChild(i)}else{const r=[];for(let t=0;t<e.length;t++){const o=n.shapesGraph.getQuads(e[t],null,null,I);o.length&&(r.push(o),a.push({label:M(o,n.attributes.language)||F(o[0].predicate.value,n.prefixes)+" = "+F(o[0].object.value,n.prefixes),value:t.toString()}))}const i=n.theme.createListEditor(t.template.label+"?",null,!1,a,t.template),d=i.querySelector(".editor");d.onchange=()=>{d.value&&o.replaceWith(ce(t.template.clone().merge(r[parseInt(d.value)]),void 0,!0))},o.appendChild(i)}return o}const Q={[`${w}name`]:(e,t)=>{const n=t;e.name&&n.language!==e.config.attributes.language||(e.name=n)},[`${w}description`]:(e,t)=>{const n=t;e.description&&n.language!==e.config.attributes.language||(e.description=n)},[`${w}path`]:(e,t)=>{e.path=t.value},[`${w}node`]:(e,t)=>{e.node=t},[`${w}datatype`]:(e,t)=>{e.datatype=t},[`${w}nodeKind`]:(e,t)=>{e.nodeKind=t},[`${w}minCount`]:(e,t)=>{e.minCount=parseInt(t.value)},[`${w}maxCount`]:(e,t)=>{e.maxCount=parseInt(t.value)},[`${w}minLength`]:(e,t)=>{e.minLength=parseInt(t.value)},[`${w}maxLength`]:(e,t)=>{e.maxLength=parseInt(t.value)},[`${w}minInclusive`]:(e,t)=>{e.minInclusive=parseInt(t.value)},[`${w}maxInclusive`]:(e,t)=>{e.maxInclusive=parseInt(t.value)},[`${w}minExclusive`]:(e,t)=>{e.minExclusive=parseInt(t.value)},[`${w}maxExclusive`]:(e,t)=>{e.maxExclusive=parseInt(t.value)},[`${w}pattern`]:(e,t)=>{e.pattern=t.value},[`${w}order`]:(e,t)=>{e.order=parseInt(t.value)},"http://datashapes.org/dash#singleLine":(e,t)=>{e.singleLine="true"===t.value},"http://www.w3.org/ns/oa#styleClass":(e,t)=>{e.cssClass=t.value},[`${w}and`]:(e,t)=>{e.shaclAnd=t.value},[`${w}in`]:(e,t)=>{e.shaclIn=t.value},[`${w}languageIn`]:(e,t)=>{e.languageIn=e.config.lists[t.value],e.datatype=h.namedNode(C+"langString")},[`${w}defaultValue`]:(e,t)=>{e.defaultValue=t},[`${w}hasValue`]:(e,t)=>{e.hasValue=t},[j.value]:(e,t)=>{e.class=t;const n=e.config.shapesGraph.getSubjects(O,t,I);n.length>0&&(e.node=n[0])},[`${w}or`]:(e,t)=>{const n=e.config.lists[t.value];(null==n?void 0:n.length)?e.shaclOr=n:console.error("list not found:",t.value,"existing lists:",e.config.lists)}};class G{constructor(e,t,n){this.label="",this.config=n,this.nodeId=t,this.merge(e)}merge(e){var t,n;for(const n of e)null===(t=Q[n.predicate.id])||void 0===t||t.call(this,this,n.object);if(this.label=(null===(n=this.name)||void 0===n?void 0:n.value)||M(e,this.config.attributes.language),this.label||this.node||this.shaclAnd||(this.label=this.path?F(this.path,this.config.prefixes):"unknown"),(this.node||this.shaclAnd)&&(this.extendedShapes=[],this.node&&this.extendedShapes.push(this.node),this.shaclAnd)){const e=this.config.lists[this.shaclAnd];if(null==e?void 0:e.length)for(const t of e)this.extendedShapes.push(t)}return this}clone(){const e=Object.assign({},this);return e.merge=this.merge.bind(e),e.clone=this.clone.bind(e),e}}class H{constructor(e){let t="form { box-sizing: border-box; display:block; --label-width: 8em; --caret-size: 10px; }\nform.mode-edit { padding-left: 1em; }\nform *, form ::after, form ::before { box-sizing: inherit; }\nshacl-node, .shacl-group { display: flex; flex-direction: column; width: 100%; position: relative; }\nshacl-node .control-button { text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 4px; padding: 2px 4px; }\nshacl-node .control-button:hover { border-color: inherit; }\nshacl-node .remove-button { margin-left: 4px; }\nshacl-node .add-button { font-size: 0.8rem; color: #555; margin: 4px 24px 0 0; }\nshacl-node .add-button:before { content: '+'; margin-right: 0.2em; }\nshacl-node .add-button:hover { color: inherit; }\nshacl-node h1 { font-size: 1.1rem; border-bottom: 1px solid; margin-top: 4px; color: #555; }\nshacl-property { display: flex; flex-direction: column; align-items: end; position: relative; }\nshacl-property:not(.may-add) > .add-button { display: none; }\nshacl-property:not(.may-remove) > .property-instance > .remove-button:not(.persistent) { visibility: hidden; }\nshacl-property:not(.may-remove) > .shacl-or-constraint > .remove-button:not(.persistent) { visibility: hidden; }\n.shacl-group { margin-bottom: 1em; padding-bottom: 1em; }\n.mode-view .shacl-group:not(:has(shacl-property)) { display: none; }\n.property-instance, .shacl-or-constraint { display: flex; align-items: flex-start; padding: 4px 0; width: 100%; position: relative; }\n.shacl-or-constraint label { display: inline-block; word-break: break-word; width: var(--label-width); line-height: 1em; padding-top: 0.15em; padding-right: 1em; flex-shrink: 0; position: relative; }\n.property-instance label[title] { cursor: help; text-decoration: underline dashed #AAA; }\n.mode-edit .property-instance label.required::before { color: red; content: '\\2736'; font-size: 0.6rem; position: absolute; left: -1.4em; top: 0.15rem; }\n.property-instance.valid::before { position: absolute; left: calc(var(--label-width) - 1em); top: 6px; color: green; content: '\\2713'; }\n.editor:not([type='checkbox']), .shacl-or-constraint select { flex-grow: 1; }\n.shacl-or-constraint select { border: 1px solid #DDD; padding: 2px 4px; }\ntextarea.editor { resize: vertical; }\n.lang-chooser { position: absolute; top: 5px; right: 28px; border: 0; background-color: #e9e9ed; padding: 2px 4px; max-width: 40px; width: 40px; box-sizing: content-box; }\n.lang-chooser+.editor { padding-right: 55px; }\n.validation-error { position: absolute; left: calc(var(--label-width) - 1em); top: 6px; color: red; cursor: help; }\n.validation-error::before { content: '\\26a0' }\n.validation-error.node { left: -1em; }\n.invalid > .editor { border-color: red !important; }\n.ml-0 { margin-left: 0 !important; }\n.pr-0 { padding-right: 0 !important; }\n.mode-view .property-instance:not(:first-child) > label { visibility: hidden; }\n.mode-view .property-instance label { width: var(--label-width); }\n\n.d-flex { display: flex; }\n.lang { opacity: 0.65; font-size: 0.6em; }\na, a:visited { color: inherit; }\n\n.fadeIn, .fadeOut { animation: fadeIn 0.2s ease-out; }\n.fadeOut { animation-direction: reverse; animation-timing-function: ease-out;}\n@keyframes fadeIn {\n 0% { opacity: 0; transform: scaleY(0.8); }\n 100% { opacity: 1; transform: scaleY(1); }\n}\n \n.collapsible > .activator { display: flex; justify-content: space-between; align-items: center; cursor: pointer; width: 100%; border: 0; padding: 8px 0; transition: 0.2s; }\n.collapsible > .activator:hover, .collapsible.open > .activator { background-color: #F5F5F5; }\n.collapsible > .activator::after { content:''; width: var(--caret-size); height: var(--caret-size); border-style: none solid solid none; border-width: calc(0.3 * var(--caret-size)); transform: rotate(45deg); transition: transform .15s ease-out; margin-right: calc(0.5 * var(--caret-size)); }\n.collapsible.open > .activator::after { transform: rotate(225deg); }\n.collapsible > *:not(.activator) { transition: all 0.2s ease-out; opacity: 1; }\n.collapsible:not(.open) > *:not(.activator) { max-height: 0; padding: 0; opacity: 0; overflow: hidden; }\n.collapsible shacl-node > h1 { display: none; }\n.collapsible.open > .property-instance:nth-child(odd) { background-color: #F5F5F5; }";e&&(t+="\n"+e),this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t)}apply(e){}createViewer(e,t,n){const o=document.createElement("div"),a=document.createElement("label");a.innerHTML=e+":",n.description&&a.setAttribute("title",n.description.value),o.appendChild(a);let r,i=t.value,d=null;if(t instanceof f){const e=n.config.shapesGraph.getQuads(i,null,null,I);if(e.length){const t=M(e,n.config.attributes.language);t&&(i=t)}}else t instanceof N&&(t.language?(d=document.createElement("span"),d.classList.add("lang"),d.innerText=`@${t.language}`):t.datatype.value===`${_}date`?i=new Date(Date.parse(t.value)).toDateString():t.datatype.value===`${_}dateTime`&&(i=new Date(Date.parse(t.value)).toLocaleString()));return U(t.value)?(r=document.createElement("a"),r.setAttribute("href",t.value)):r=document.createElement("div"),r.classList.add("d-flex"),r.innerText=i,d&&r.appendChild(d),o.appendChild(r),o}}function J(e,t){var n,o,a;if(e.config.editMode){const r=void 0!==e.minCount&&e.minCount>0;if(e.class)return e.config.theme.createListEditor(e.label,t,r,V(e.class,e.config),e);if(e.shaclIn){const n=e.config.lists[e.shaclIn];if(null==n?void 0:n.length){const o=B(n,e.config.shapesGraph,e.config.attributes.language);return e.config.theme.createListEditor(e.label,t,r,o,e)}console.error("list not found:",e.shaclIn,"existing lists:",e.config.lists)}if((null===(n=e.datatype)||void 0===n?void 0:n.value)===`${C}langString`||(null===(o=e.languageIn)||void 0===o?void 0:o.length))return e.config.theme.createLangStringEditor(e.label,t,r,e);switch(null===(a=e.datatype)||void 0===a?void 0:a.value.replace(_,"")){case"integer":case"float":case"double":case"decimal":return e.config.theme.createNumberEditor(e.label,t,r,e);case"date":case"dateTime":return e.config.theme.createDateEditor(e.label,t,r,e);case"boolean":return e.config.theme.createBooleanEditor(e.label,t,r,e);case"base64Binary":return e.config.theme.createFileEditor(e.label,t,r,e)}return e.config.theme.createTextEditor(e.label,t,r,e)}{if(t)return e.config.theme.createViewer(e.label,t,e);const n=document.createElement("div");return n.innerHTML="No value",n}}function W(e){return!!e&&"DefaultGraph"===e.termType}const K=h.defaultGraph(),{rdf:X,xsd:Y}=d,Z=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,ee=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,te={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class ne extends p{equals(e){return e===this}}class oe{constructor(e,t){if(this._prefixRegex=/$0^/,e&&"function"!=typeof e.write&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=void 0===t.end||!!t.end;else{let e="";this._outputStream={write(t,n,o){e+=t,o&&o()},end:t=>{t&&t(null,e)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=K,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${re(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return K.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,n,o,a){try{o.equals(this._graph)||(this._write((null===this._subject?"":this._inDefaultGraph?".\n":"\n}\n")+(K.equals(o)?"":`${this._encodeIriOrBlank(o)} {\n`)),this._graph=o,this._subject=null),e.equals(this._subject)?t.equals(this._predicate)?this._write(`, ${this._encodeObject(n)}`,a):this._write(`;\n ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,a):this._write(`${(null===this._subject?"":".\n")+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,a)}catch(e){a&&a(e)}}_writeQuadLine(e,t,n,o,a){delete this._prefixMatch,this._write(this.quadToString(e,t,n,o),a)}quadToString(e,t,n,o){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(t)} ${this._encodeObject(n)}${o&&o.value?` ${this._encodeIriOrBlank(o)} .\n`:" .\n"}`}quadsToString(e){return e.map((e=>this.quadToString(e.subject,e.predicate,e.object,e.graph))).join("")}_encodeSubject(e){return"Quad"===e.termType?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if("NamedNode"!==e.termType)return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let t=e.value;this._baseMatcher&&this._baseMatcher.test(t)&&(t=t.substr(this._baseLength)),Z.test(t)&&(t=t.replace(ee,ae));const n=this._prefixRegex.exec(t);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:t:`<${t}>`}_encodeLiteral(e){let t=e.value;if(Z.test(t)&&(t=t.replace(ee,ae)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Y.string)return`"${t}"`}else switch(e.datatype.value){case Y.string:return`"${t}"`;case Y.boolean:if("true"===t||"false"===t)return t;break;case Y.integer:if(/^[+-]?\d+$/.test(t))return t;break;case Y.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case Y.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===X.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:t,object:n,graph:o}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(n)}${W(o)?"":` ${this._encodeIriOrBlank(o)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,n,o,a){void 0===n?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):"function"==typeof o?this._writeQuad(e,t,n,K,o):this._writeQuad(e,t,n,o||K,a)}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}addPrefix(e,t,n){const o={};o[e]=t,this.addPrefixes(o,n)}addPrefixes(e,t){if(!this._prefixIRIs)return t&&t();let n=!1;for(let t in e){let o=e[t];"string"!=typeof o&&(o=o.value),n=!0,null!==this._subject&&(this._write(this._inDefaultGraph?".\n":"\n}\n"),this._subject=null,this._graph=""),this._prefixIRIs[o]=t+=":",this._write(`@prefix ${t} <${o}>.\n`)}if(n){let e="",t="";for(const n in this._prefixIRIs)e+=e?`|${n}`:n,t+=(t?"|":"")+this._prefixIRIs[n];e=re(e),this._prefixRegex=new RegExp(`^(?:${t})[^/]*$|^(${e})([_a-zA-Z][\\-_a-zA-Z0-9]*)$`)}this._write(n?"\n":"",t)}blank(e,t){let n,o,a=e;switch(void 0===e?a=[]:e.termType?a=[{predicate:e,object:t}]:"length"in e||(a=[e]),o=a.length){case 0:return new ne("[]");case 1:if(n=a[0],!(n.object instanceof ne))return new ne(`[ ${this._encodePredicate(n.predicate)} ${this._encodeObject(n.object)} ]`);default:let t="[";for(let r=0;r<o;r++)n=a[r],n.predicate.equals(e)?t+=`, ${this._encodeObject(n.object)}`:(t+=`${(r?";\n ":"\n ")+this._encodePredicate(n.predicate)} ${this._encodeObject(n.object)}`,e=n.predicate);return new ne(`${t}\n]`)}}list(e){const t=e&&e.length||0,n=new Array(t);for(let o=0;o<t;o++)n[o]=this._encodeObject(e[o]);return new ne(`(${n.join(" ")})`)}end(e){null!==this._subject&&(this._write(this._inDefaultGraph?".\n":"\n}\n"),this._subject=null),this._write=this._blockedWrite;let t=e&&((n,o)=>{t=null,e(n,o)});if(this._endStream)try{return this._outputStream.end(t)}catch(e){}t&&t()}}function ae(e){let t=te[e];return void 0===t&&(1===e.length?(t=e.charCodeAt(0).toString(16),t="\\u0000".substr(0,6-t.length)+t):(t=(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)+9216).toString(16),t="\\U00000000".substr(0,10-t.length)+t)),t}function re(e){return e.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}function ie(e){let t=e.shaclDatatype,n=e.value;return n?e.dataset.class||e.dataset.nodeKind===w+"IRI"?h.namedNode(n):(e.dataset.lang?t=e.dataset.lang:"number"===e.type?n=parseFloat(n):"file"===e.type&&e.binaryData&&(n=e.binaryData),h.literal(n,t)):"checkbox"!==e.type&&"checkbox"!==e.getAttribute("type")||!(e.checked||parseInt(e.dataset.minCount||"0")>0)?void 0:h.literal(e.checked?"true":"false",t)}const de={};function se(e){void 0===e.predicate&&void 0===e.datatype?console.warn('not registering plugin because it does neither define "predicate" nor "datatype"',e):de[`${e.predicate}^${e.datatype}`]=e}class le{constructor(e,t){this.predicate=e.predicate,this.datatype=e.datatype,t&&(this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t))}createViewer(e,t){return e.config.theme.createViewer(e.label,t,e)}}class ue extends HTMLElement{constructor(e,t,n,o){var a;if(super(),this.template=new G(t.shapesGraph.getQuads(e,null,null,I),n,t),this.dataset.nodeId=this.template.nodeId.id,void 0!==this.template.order&&(this.style.order=`${this.template.order}`),this.template.cssClass&&this.classList.add(this.template.cssClass),t.editMode&&(this.addButton=document.createElement("a"),this.addButton.innerText=this.template.label,this.addButton.title="Add "+this.template.label,this.addButton.classList.add("control-button","add-button"),this.addButton.addEventListener("click",(e=>{const t=this.addPropertyInstance();t.classList.add("fadeIn"),this.updateControls(),function(e){var t;null===(t=e.querySelector("input,select,textarea"))||void 0===t||t.focus()}(t),setTimeout((()=>{t.classList.remove("fadeIn")}),200)})),this.appendChild(this.addButton)),this.template.path){const e=o?t.dataGraph.getQuads(o,this.template.path,null,null):[];let n=!1;for(const t of e)this.addPropertyInstance(t.object),this.template.hasValue&&t.object.equals(this.template.hasValue)&&(n=!0);t.editMode&&this.template.hasValue&&!n&&this.addPropertyInstance(this.template.hasValue)}if(t.editMode&&(this.addEventListener("change",(()=>{this.updateControls()})),this.updateControls()),(null===(a=this.template.extendedShapes)||void 0===a?void 0:a.length)&&null!==this.template.config.attributes.collapse&&(!this.template.maxCount||this.template.maxCount>1)&&(t.editMode||this.childElementCount>0)){const e=this;e.classList.add("collapsible"),"open"===this.template.config.attributes.collapse&&e.classList.add("open");const t=document.createElement("h1");t.classList.add("activator"),t.innerText=this.template.label,t.addEventListener("click",(()=>{e.classList.toggle("open")})),this.prepend(t)}}addPropertyInstance(e){var t;let n;return(null===(t=this.template.shaclOr)||void 0===t?void 0:t.length)?e?n=ce(function(e,t){if(!e.shaclOr)return console.warn("can't resolve sh:or because template has no options",e),e;if(t instanceof N){const n=t.datatype;for(const t of e.shaclOr){const o=e.config.shapesGraph.getQuads(t,null,null,I);for(const t of o)if(t.predicate.value===`${w}datatype`&&t.object.equals(n))return e.clone().merge(o)}}else{let n=e.config.dataGraph.getObjects(t,T,null);if(n.push(...e.config.shapesGraph.getObjects(t,T,I)),n.length>0)for(const t of e.shaclOr){const o=e.config.shapesGraph.getQuads(t,null,null,I);for(const t of o){if(t.predicate.value===`${w}node`)for(const a of n)if(e.config.shapesGraph.has(new $(t.object,O,a,I)))return e.clone().merge(o);if(t.predicate.equals(j))for(const a of n)if(t.object.equals(a))return e.clone().merge(o)}}}return console.error("couldn't resolve sh:or for value",t),e}(this.template,e),e,!0):(n=z(this.template.shaclOr,this,this.template.config),me(n,"")):n=ce(this.template,e),this.template.config.editMode?this.insertBefore(n,this.addButton):this.appendChild(n),n}updateControls(){var e;let t,n=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length;0===n&&(!(null===(e=this.template.extendedShapes)||void 0===e?void 0:e.length)||void 0!==this.template.minCount&&this.template.minCount>0)&&(this.addPropertyInstance(),n=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length),t=void 0!==this.template.minCount?n>this.template.minCount:this.template.extendedShapes&&this.template.extendedShapes.length>0||n>1;const o=void 0===this.template.maxCount||n<this.template.maxCount;this.classList.toggle("may-remove",t),this.classList.toggle("may-add",o)}toRDF(e,t){for(const n of this.querySelectorAll(":scope > .property-instance")){const o=h.namedNode(n.dataset.path);if(n.firstChild instanceof be){const a=e.size,r=n.firstChild.toRDF(e);e.size>a&&e.addQuad(t,o,r)}else{const a=ie(n.querySelector(".editor"));a&&e.addQuad(t,o,a)}}}}function ce(e,t,n=!1){var o,a;let r;if(null===(o=e.extendedShapes)||void 0===o?void 0:o.length){r=document.createElement("div"),r.classList.add("property-instance");for(const n of e.extendedShapes)r.appendChild(new be(n,e.config,t,e.nodeKind,e.label))}else{const n=function(e,t){let n=de[`${e}^${t}`];return n||(n=de[`${e}^undefined`],n||de[`undefined^${t}`])}(e.path,null===(a=e.datatype)||void 0===a?void 0:a.value);r=n?e.config.editMode?n.createEditor(e,t):n.createViewer(e,t):J(e,t||null),r.classList.add("property-instance")}return e.config.editMode&&me(r,e.label,n),r.dataset.path=e.path,r}function me(e,t,n=!1){const o=document.createElement("a");o.innerText="×",o.classList.add("control-button","btn","remove-button"),o.title="Remove "+t,o.addEventListener("click",(t=>{e.classList.remove("fadeIn"),e.classList.add("fadeOut"),setTimeout((()=>{const t=e.parentElement;e.remove(),null==t||t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}),200)})),n&&o.classList.add("persistent"),e.appendChild(o)}function he(e,t){const n=document.createElement("div");n.dataset.subject=e,n.classList.add("shacl-group");let o=e;const a=t.shapesGraph.getQuads(e,null,null,I),r=D(a,"label",S,t.attributes.language);r&&(o=r);const i=D(a,"order");i&&(n.style.order=i);const d=document.createElement("h1");return d.innerText=o,n.appendChild(d),null!==t.attributes.collapse&&(n.classList.add("collapsible"),"open"===t.attributes.collapse&&n.classList.add("open"),d.classList.add("activator"),d.addEventListener("click",(()=>{n.classList.toggle("open")}))),n}window.customElements.define("shacl-property",ue);const pe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let fe;const Ne=new Uint8Array(16);function ge(){if(!fe&&(fe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fe(Ne)}const ve=[];for(let e=0;e<256;++e)ve.push((e+256).toString(16).slice(1));const ye=function(e,t,n){if(pe.randomUUID&&!t&&!e)return pe.randomUUID();const o=(e=e||{}).random||(e.rng||ge)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return ve[e[t+0]]+ve[e[t+1]]+ve[e[t+2]]+ve[e[t+3]]+"-"+ve[e[t+4]]+ve[e[t+5]]+"-"+ve[e[t+6]]+ve[e[t+7]]+"-"+ve[e[t+8]]+ve[e[t+9]]+"-"+ve[e[t+10]]+ve[e[t+11]]+ve[e[t+12]]+ve[e[t+13]]+ve[e[t+14]]+ve[e[t+15]]}(o)};class be extends HTMLElement{constructor(e,t,n,o,a){super(),this.config=t,this.shaclSubject=e;let r=n;if(!r){if(!o){const n=t.shapesGraph.getObjects(e,`${w}nodeKind`,I);n.length&&(o=n[0])}r=void 0===o&&t.attributes.valuesNamespace||(null==o?void 0:o.id)===`${w}IRI`?h.namedNode(t.attributes.valuesNamespace+ye()):h.blankNode(ye())}this.nodeId=r,this.dataset.nodeId=this.nodeId.id;const i=t.shapesGraph.getQuads(e,null,null,I);let d;for(const e of i)switch(e.predicate.id){case`${w}property`:let o=this;const a=t.shapesGraph.getQuads(e.object,`${w}group`,null,I);if(a.length>0){const e=a[0].object.value;if(t.groups.indexOf(e)>-1){let n=this.querySelector(`:scope > .shacl-group[data-subject='${e}']`);n||(n=he(e,t),this.appendChild(n)),o=n}else console.warn("ignoring unknown group reference",a[0])}const r=new ue(e.object,t,this.nodeId,n);r.childElementCount>0&&o.appendChild(r);break;case`${w}and`:if(d=t.lists[e.object.value],null==d?void 0:d.length)for(const e of d)this.prepend(new be(e,t,n));else console.error("list not found:",e.object.value,"existing lists:",t.lists);break;case`${w}node`:this.prepend(new be(e.object,t,n));break;case`${w}targetClass`:this.targetClass=e.object;break;case`${w}or`:d=t.lists[e.object.value],(null==d?void 0:d.length)?this.appendChild(z(d,this,t)):console.error("list not found:",e.object.value,"existing lists:",t.lists)}if(a){const e=document.createElement("h1");e.innerText=a,this.prepend(e)}}toRDF(e,t){t||(t=this.nodeId);for(const n of this.querySelectorAll(":scope > shacl-node, :scope > .shacl-group > shacl-node, :scope > shacl-property, :scope > .shacl-group > shacl-property"))n.toRDF(e,t);return this.targetClass&&e.addQuad(t,T,this.targetClass),this.closest("shacl-node shacl-node")||e.addQuad(t,T,this.shaclSubject),t}}window.customElements.define("shacl-node",be);var $e=n(9198);class xe{constructor(e,t){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,t||!e||e[0]||(t=e,e=null),t=t||{},this._factory=t.factory||h,e&&this.addQuads(e)}_termFromId(e,t){if("."===e[0]){const t=this._entities,n=e.split(".");return this._factory.quad(this._termFromId(t[n[1]]),this._termFromId(t[n[2]]),this._termFromId(t[n[3]]),n[4]&&this._termFromId(t[n[4]]))}return y(e,t)}_termToNumericId(e){if("Quad"===e.termType){const t=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),o=this._termToNumericId(e.object);let a;return t&&n&&o&&(W(e.graph)||(a=this._termToNumericId(e.graph)))&&this._ids[a?`.${t}.${n}.${o}.${a}`:`.${t}.${n}.${o}`]}return this._ids[b(e)]}_termToNewNumericId(e){const t=e&&"Quad"===e.termType?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${W(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:b(e);return this._ids[t]||(this._ids[this._entities[++this._id]=t]=this._id)}get size(){let e=this._size;if(null!==e)return e;e=0;const t=this._graphs;let n,o;for(const a in t)for(const r in n=t[a].subjects)for(const t in o=n[r])e+=Object.keys(o[t]).length;return this._size=e}_addToIndex(e,t,n,o){const a=e[t]||(e[t]={}),r=a[n]||(a[n]={}),i=o in r;return i||(r[o]=null),!i}_removeFromIndex(e,t,n,o){const a=e[t],r=a[n];delete r[o];for(const e in r)return;delete a[n];for(const e in a)return;delete e[t]}*_findInIndex(e,t,n,o,a,r,i,d){let s,l,u;const c=this._entities,m=this._termFromId(d,this._factory),h={subject:null,predicate:null,object:null};t&&((s=e,e={})[t]=s[t]);for(const t in e)if(l=e[t]){h[a]=this._termFromId(c[t],this._factory),n&&((s=l,l={})[n]=s[n]);for(const e in l)if(u=l[e]){h[r]=this._termFromId(c[e],this._factory);const t=o?o in u?[o]:[]:Object.keys(u);for(let e=0;e<t.length;e++)h[i]=this._termFromId(c[t[e]],this._factory),yield this._factory.quad(h.subject,h.predicate,h.object,m)}}}_loop(e,t){for(const n in e)t(n)}_loopByKey0(e,t,n){let o,a;if(o=e[t])for(a in o)n(a)}_loopByKey1(e,t,n){let o,a;for(o in e)a=e[o],a[t]&&n(o)}_loopBy2Keys(e,t,n,o){let a,r,i;if((a=e[t])&&(r=a[n]))for(i in r)o(i)}_countInIndex(e,t,n,o){let a,r,i,d=0;t&&((a=e,e={})[t]=a[t]);for(const t in e)if(r=e[t]){n&&((a=r,r={})[n]=a[n]);for(const e in r)(i=r[e])&&(o?o in i&&d++:d+=Object.keys(i).length)}return d}_getGraphs(e){if(!function(e){return"string"==typeof e||e instanceof String}(e))return this._graphs;const t={};return t[e]=this._graphs[e],t}_uniqueEntities(e){const t=Object.create(null);return n=>{n in t||(t[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,t,n,o){t||(o=e.graph,n=e.object,t=e.predicate,e=e.subject),o=b(o);let a=this._graphs[o];a||(a=this._graphs[o]={subjects:{},predicates:{},objects:{}},Object.freeze(a)),e=this._termToNewNumericId(e),t=this._termToNewNumericId(t),n=this._termToNewNumericId(n);const r=this._addToIndex(a.subjects,e,t,n);return this._addToIndex(a.predicates,t,n,e),this._addToIndex(a.objects,n,e,t),this._size=null,r}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}delete(e){return this.removeQuad(e),this}has(e,t,n,o){return e&&e.subject&&({subject:e,predicate:t,object:n,graph:o}=e),!this.readQuads(e,t,n,o).next().done}import(e){return e.on("data",(e=>{this.addQuad(e)})),e}removeQuad(e,t,n,o){t||(o=e.graph,n=e.object,t=e.predicate,e=e.subject),o=b(o);const a=this._graphs;let r,i,d;if(!((e=e&&this._termToNumericId(e))&&(t=t&&this._termToNumericId(t))&&(n=n&&this._termToNumericId(n))&&(r=a[o])&&(i=r.subjects[e])&&(d=i[t])&&n in d))return!1;for(e in this._removeFromIndex(r.subjects,e,t,n),this._removeFromIndex(r.predicates,t,n,e),this._removeFromIndex(r.objects,n,e,t),null!==this._size&&this._size--,r.subjects)return!0;return delete a[o],!0}removeQuads(e){for(let t=0;t<e.length;t++)this.removeQuad(e[t])}remove(e){return e.on("data",(e=>{this.removeQuad(e)})),e}removeMatches(e,t,n,o){const a=new $e.Readable({objectMode:!0});return a._read=()=>{for(const r of this.readQuads(e,t,n,o))a.push(r);a.push(null)},this.remove(a)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,t,n,o){return[...this.readQuads(e,t,n,o)]}*readQuads(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d,s;if(!(e&&!(i=this._termToNumericId(e))||t&&!(d=this._termToNumericId(t))||n&&!(s=this._termToNumericId(n))))for(const e in a)(r=a[e])&&(i?s?yield*this._findInIndex(r.objects,s,i,d,"object","subject","predicate",e):yield*this._findInIndex(r.subjects,i,d,null,"subject","predicate","object",e):d?yield*this._findInIndex(r.predicates,d,s,null,"predicate","object","subject",e):s?yield*this._findInIndex(r.objects,s,null,null,"object","subject","predicate",e):yield*this._findInIndex(r.subjects,null,null,null,"subject","predicate","object",e))}match(e,t,n,o){return new we(this,e,t,n,o)}countQuads(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d,s,l=0;if(e&&!(i=this._termToNumericId(e))||t&&!(d=this._termToNumericId(t))||n&&!(s=this._termToNumericId(n)))return 0;for(const o in a)(r=a[o])&&(l+=e?n?this._countInIndex(r.objects,s,i,d):this._countInIndex(r.subjects,i,d,s):t?this._countInIndex(r.predicates,d,s,i):this._countInIndex(r.objects,s,i,d));return l}forEach(e,t,n,o,a){this.some((t=>(e(t),!1)),t,n,o,a)}every(e,t,n,o,a){let r=!1;const i=!this.some((t=>(r=!0,!e(t))),t,n,o,a);return r&&i}some(e,t,n,o,a){for(const r of this.readQuads(t,n,o,a))if(e(r))return!0;return!1}getSubjects(e,t,n){const o=[];return this.forSubjects((e=>{o.push(e)}),e,t,n),o}forSubjects(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d;if(e=this._uniqueEntities(e),!(t&&!(i=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(o in a)(r=a[o])&&(i?d?this._loopBy2Keys(r.predicates,i,d,e):this._loopByKey1(r.subjects,i,e):d?this._loopByKey0(r.objects,d,e):this._loop(r.subjects,e))}getPredicates(e,t,n){const o=[];return this.forPredicates((e=>{o.push(e)}),e,t,n),o}forPredicates(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d;if(e=this._uniqueEntities(e),!(t&&!(i=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(o in a)(r=a[o])&&(i?d?this._loopBy2Keys(r.objects,d,i,e):this._loopByKey0(r.subjects,i,e):d?this._loopByKey1(r.predicates,d,e):this._loop(r.predicates,e))}getObjects(e,t,n){const o=[];return this.forObjects((e=>{o.push(e)}),e,t,n),o}forObjects(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d;if(e=this._uniqueEntities(e),!(t&&!(i=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(o in a)(r=a[o])&&(i?d?this._loopBy2Keys(r.subjects,i,d,e):this._loopByKey1(r.objects,i,e):d?this._loopByKey0(r.predicates,d,e):this._loop(r.objects,e))}getGraphs(e,t,n){const o=[];return this.forGraphs((e=>{o.push(e)}),e,t,n),o}forGraphs(e,t,n,o){for(const a in this._graphs)this.some((t=>(e(t.graph),!0)),t,n,o,a)}createBlankNode(e){let t,n;if(e)for(t=e=`_:${e}`,n=1;this._ids[t];)t=e+n++;else do{t="_:b"+this._blankNodeIndex++}while(this._ids[t]);return this._ids[t]=++this._id,this._entities[this._id]=t,this._factory.blankNode(t.substr(2))}extractLists({remove:e=!1,ignoreErrors:t=!1}={}){const n={},o=t?()=>!0:(e,t)=>{throw new Error(`${e.value} ${t}`)},a=this.getQuads(null,d.rdf.rest,d.rdf.nil,null),r=e?[...a]:[];return a.forEach((t=>{const a=[];let i,s,l=!1;const u=t.graph;let c=t.subject;for(;c&&!l;){const e=this.getQuads(null,null,c,null),t=this.getQuads(c,null,null,null);let n,m=null,h=null,p=null;for(let a=0;a<t.length&&!l;a++)n=t[a],n.graph.equals(u)?i?l=o(c,"has non-list arcs out"):n.predicate.value===d.rdf.first?m?l=o(c,"has multiple rdf:first arcs"):r.push(m=n):n.predicate.value===d.rdf.rest?h?l=o(c,"has multiple rdf:rest arcs"):r.push(h=n):e.length?l=o(c,"can't be subject and object"):(i=n,s="subject"):l=o(c,"not confined to single graph");for(let t=0;t<e.length&&!l;++t)n=e[t],i?l=o(c,"can't have coreferences"):n.predicate.value===d.rdf.rest?p?l=o(c,"has incoming rdf:rest arcs"):p=n:(i=n,s="object");m?a.unshift(m.object):l=o(c,"has no list head"),c=p&&p.subject}l?e=!1:i&&(n[i[s].value]=a)})),e&&this.removeQuads(r),n}*[Symbol.iterator](){yield*this.readQuads()}}class we extends $e.Readable{constructor(e,t,n,o,a){super({objectMode:!0}),Object.assign(this,{n3Store:e,subject:t,predicate:n,object:o,graph:a})}get filtered(){if(!this._filtered){const{n3Store:e,graph:t,object:n,predicate:o,subject:a}=this,r=this._filtered=new xe({factory:e._factory});for(const i of e.readQuads(a,o,n,t))r.addQuad(i)}return this._filtered}get size(){return this.filtered.size}_read(){for(const e of this)this.push(e);this.push(null)}add(e){return this.filtered.add(e)}delete(e){return this.filtered.delete(e)}has(e){return this.filtered.has(e)}match(e,t,n,o){return new we(this.filtered,e,t,n,o)}*[Symbol.iterator](){yield*this._filtered||this.n3Store.readQuads(this.subject,this.predicate,this.object,this.graph)}}var _e=n(8287),Ce=n(9596),Se=n.n(Ce);const{xsd:qe}=d,Ee=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Ie={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Ae=/[\x00-\x20<>\\"\{\}\|\^\`]/,Te={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Re=/$0^/;class Le{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const e in this)!(e in Te)&&this[e]instanceof RegExp&&(this[e]=Re)}else this._n3Mode=!1!==e.n3;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,t){let n=this._input,o=n.length;for(;;){let e,i;for(;e=this._newline.exec(n);)this._comments&&(i=this._comment.exec(e[0]))&&a("comment",i[1],"",this._line,e[0].length),n=n.substr(e[0].length,n.length),o=n.length,this._line++;if(!e&&(e=this._whitespace.exec(n))&&(n=n.substr(e[0].length,n.length)),this._endOfFile.test(n))return t&&(this._comments&&(i=this._comment.exec(n))&&a("comment",i[1],"",this._line,n.length),n=null,a("eof","","",this._line,0)),this._input=n;const d=this._line,s=n[0];let l="",u="",c="",m=null,h=0,p=!1;switch(s){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(h=1,l="^");break}if(this._previousMarker="^^",n=n.substr(2),"<"!==n[0]){p=!0;break}case"<":if(m=this._unescapedIri.exec(n))l="IRI",u=m[1];else if(m=this._iri.exec(n)){if(u=this._unescape(m[1]),null===u||Ae.test(u))return r(this);l="IRI"}else n.length>1&&"<"===n[1]?(l="<<",h=2):this._n3Mode&&n.length>1&&"="===n[1]&&(l="inverse",h=2,u=">");break;case">":n.length>1&&">"===n[1]&&(l=">>",h=2);break;case"_":((m=this._blank.exec(n))||t&&(m=this._blank.exec(`${n} `)))&&(l="blank",c="_",u=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))u=m[1];else if(({value:u,matchLength:h}=this._parseLiteral(n)),null===u)return r(this);null===m&&0===h||(l="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))u=m[1];else if(({value:u,matchLength:h}=this._parseLiteral(n)),null===u)return r(this);null===m&&0===h||(l="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(l="var",u=m[0]);break;case"@":"literal"===this._previousMarker&&(m=this._langcode.exec(n))?(l="langcode",u=m[1]):(m=this._keyword.exec(n))&&(l=m[0]);break;case".":if(1===n.length?t:n[1]<"0"||n[1]>"9"){l=".",h=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(n)||t&&(m=this._number.exec(`${n} `)))&&(l="literal",u=m[0],c="string"==typeof m[1]?qe.double:"string"==typeof m[2]?qe.decimal:qe.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?l=m[0].toUpperCase():p=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(l="literal",u=m[0],c=qe.boolean):p=!0;break;case"a":(m=this._shortPredicates.exec(n))?(l="abbreviation",u="a"):p=!0;break;case"=":this._n3Mode&&n.length>1&&(l="abbreviation",">"!==n[1]?(h=1,u="="):(h=2,u=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(h=1,l=s);break;case"{":!this._lineMode&&n.length>=2&&("|"===n[1]?(l="{|",h=2):(l=s,h=1));break;case"|":n.length>=2&&"}"===n[1]&&(l="|}",h=2);break;default:p=!0}if(p&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(m=this._prefix.exec(n))?((m=this._prefixed.exec(n))||t&&(m=this._prefixed.exec(`${n} `)))&&(l="prefixed",c=m[1]||"",u=this._unescape(m[2])):(l="prefix",u=m[1]||"")),"^^"===this._previousMarker)switch(l){case"prefixed":l="type";break;case"IRI":l="typeIRI";break;default:l=""}if(!l)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?r(this):this._input=n;const f=h||m[0].length,N=a(l,u,c,d,f);this.previousToken=N,this._previousMarker=l,n=n.substr(f,n.length)}function a(t,a,r,i,d){const s=n?o-n.length:o,l={type:t,value:a,prefix:r,line:i,start:s,end:s+d};return e(null,l),l}function r(t){e(t._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let t=!1;const n=e.replace(Ee,((e,n,o,a)=>{if("string"==typeof n)return String.fromCharCode(Number.parseInt(n,16));if("string"==typeof o){let e=Number.parseInt(o,16);return e<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e))}return a in Ie?Ie[a]:(t=!0,"")}));return t?null:n}_parseLiteral(e){if(e.length>=3){const t=e.match(/^(?:"""|"|'''|'|)/)[0],n=t.length;let o=Math.max(this._literalClosingPos,n);for(;(o=e.indexOf(t,o))>0;){let t=0;for(;"\\"===e[o-t-1];)t++;if(t%2==0){const t=e.substring(n,o),a=t.split(/\r\n|\r|\n/).length-1,r=o+n;if(1===n&&0!==a||3===n&&this._lineMode)break;return this._line+=a,{value:this._unescape(t),matchLength:r}}o++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const t=new Error(`Unexpected "${e}" on line ${this._line}.`);return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t}_readStartingBom(e){return e.startsWith("\ufeff")?e.substr(1):e}tokenize(e,t){if(this._line=1,"string"==typeof e){if(this._input=this._readStartingBom(e),"function"!=typeof t){const e=[];let t;if(this._tokenizeToEnd(((n,o)=>n?t=n:e.push(o)),!0),t)throw t;return e}Se()((()=>this._tokenizeToEnd(t,!0)))}else this._pendingBuffer=null,"function"==typeof e.setEncoding&&e.setEncoding("utf8"),e.on("data",(e=>{null!==this._input&&0!==e.length&&(this._pendingBuffer&&(e=_e.Buffer.concat([this._pendingBuffer,e]),this._pendingBuffer=null),128&e[e.length-1]?this._pendingBuffer=e:(void 0===this._input?this._input=this._readStartingBom("string"==typeof e?e:e.toString()):this._input+=e,this._tokenizeToEnd(t,!1)))})),e.on("end",(()=>{"string"==typeof this._input&&this._tokenizeToEnd(t,!0)})),e.on("error",t)}}let ke=0;class Pe{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&Oe(this,e.factory);const t="string"==typeof e.format?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(t),o=/trig/.test(t),a=/triple/.test(t),r=/quad/.test(t),i=this._n3Mode=/n3/.test(t),d=a||r;(this._supportsNamedGraphs=!(n||i))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||o||a||i),this._supportsRDFStar=""===t||/star|\*$/.test(t),d&&(this._resolveRelativeIRI=e=>null),this._blankNodePrefix="string"!=typeof e.blankNodePrefix?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new Le({lineMode:d,n3:i}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){ke=0}_setBase(e){if(e){const t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}else this._base="",this._basePath=""}_saveContext(e,t,n,o,a){const r=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:o,object:a,graph:t,inverse:!!r&&this._inversePredicate,blankPrefix:r?this._prefixes._:"",quantified:r?this._quantified:null}),r&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,t){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${t.type}`,t);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return null!==this._graph?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}_readEntity(e,t){let n;switch(e.type){case"IRI":case"typeIRI":const t=this._resolveIRI(e.value);if(null===t)return this._error("Invalid IRI",e);n=this._namedNode(t);break;case"type":case"prefixed":const o=this._prefixes[e.prefix];if(void 0===o)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(o+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!t&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(0===e.prefix.length)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if(void 0===(this._subject=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const t=e.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return null===this._predicate?this._error(`Unexpected ${t}`,e):(this._subject=null,"]"===t?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if(void 0===(this._predicate=this._readEntity(e)))return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(0===e.prefix.length)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if(void 0===(this._object=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return"{"===e.type?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return"{"!==e.type?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return"]"===e.type?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if("]"!==e.type)return this._readBlankNodePunctuation(e);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);const t=null===this._predicate;return this._restoreContext("blank",e),null!==this._object?this._getContextEndReader():null!==this._predicate?this._readObject:t?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let t=null,n=null,o=this._readListItem;const a=this._subject,r=this._contextStack,i=r[r.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=t=this._blankNode()),o=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),0!==r.length&&"list"===r[r.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(o=this._readPredicate,this._subject===this.RDF_NIL)return o}else if(o=this._getContextEndReader(),this._object===this.RDF_NIL)return o;n=this.RDF_NIL;break;case"literal":0===e.prefix.length?(this._literalValue=e.value,o=this._readListItemDataTypeOrLang):(t=this._literal(e.value,this._namedNode(e.prefix)),o=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if(void 0===(t=this._readEntity(e)))return}if(null===n&&(this._subject=n=this._blankNode()),null===a?null===i.predicate?i.subject=n:i.object=n:this._emit(a,this.RDF_REST,n,this._graph),null!==t){if(this._n3Mode&&("IRI"===e.type||"prefixed"===e.type))return this._saveContext("item",this._graph,n,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,t,this._graph)}return o}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let t=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(void 0===n)return;t=this._literal(this._literalValue,n),e=null;break;case"langcode":t=this._literal(this._literalValue,e.value),e=null}return{token:e,literal:t}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,t){const n=this._completeLiteral(e);if(n)return this._object=n.literal,t&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===n.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return"}"!==e.type?this._readPunctuation(e):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),null===this._object?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let t,n=this._graph;const o=this._subject,a=this._inversePredicate;switch(e.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,t=this._contextStack.length?this._readSubject:this._readInTopContext,a&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const r=this._predicate,i=this._object;this._subject=this._quad(o,r,i,this.DEFAULTGRAPH),t=this._readPredicate;break;case"|}":if("Quad"!==this._subject.termType)return this._error("Unexpected asserted triple closing",e);this._subject=null,t=this._readPunctuation;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(n=this._readEntity(e))){t=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(null!==o){const e=this._predicate,t=this._object;a?this._emit(t,e,o,n):this._emit(o,e,t,n)}return t}_readBlankNodePunctuation(e){let t;switch(e.type){case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),t}_readQuadPunctuation(e){return"."!==e.type?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return"prefix"!==e.type?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if("IRI"!==e.type)return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const t=this._readEntity(e);return this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}_readBaseIRI(e){const t="IRI"===e.type&&this._resolveIRI(e.value);return t?(this._setBase(t),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return"]"!==e.type?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):"."!==e.type?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let t;switch(e.type){case"IRI":case"prefixed":if(void 0!==(t=this._readEntity(e,!0)))break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(null===this._subject?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):this._quantified[t.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return","===e.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const t=this._contextStack,n=t.length&&t[t.length-1];if(n&&"item"===n.type){const t=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,t,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let t,n;const o=this._blankNode();if(void 0!==(n=this._readEntity(e)))return null===this._predicate?(t=this._subject,this._subject=o):(t=this._object,this._object=o),this._emit(t,n,o,this._graph),this._readPath}_readBackwardPath(e){const t=this._blankNode();let n,o;if(void 0!==(n=this._readEntity(e)))return null===this._predicate?(o=this._subject,this._subject=t):(o=this._object,this._object=t),this._emit(t,n,o,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return">>"!==e.type?this._supportsQuads&&null===this._graph&&void 0!==(this._graph=this._readEntity(e))?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(">>"!==e.type)return this._error(`Expected >> but got ${e.type}`,e);const t=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),null===this._subject?(this._subject=t,this._readPredicate):(this._object=t,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,t,n,o){this._callback(null,this._quad(e,t,n,o||this.DEFAULTGRAPH))}_error(e,t){const n=new Error(`${e} on line ${t.line}.`);n.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=je}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return("/"===e[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const t=e.length;let n="",o=-1,a=-1,r=0,i="/";for(;o<t;){switch(i){case":":if(a<0&&"/"===e[++o]&&"/"===e[++o])for(;(a=o+1)<t&&"/"!==e[a];)o=a;break;case"?":case"#":o=t;break;case"/":if("."===e[o+1])switch(i=e[1+ ++o],i){case"/":n+=e.substring(r,o-1),r=o+1;break;case void 0:case"?":case"#":return n+e.substring(r,o)+e.substr(o+1);case".":if(i=e[1+ ++o],void 0===i||"/"===i||"?"===i||"#"===i){if(n+=e.substring(r,o-2),(r=n.lastIndexOf("/"))>=a&&(n=n.substr(0,r)),"/"!==i)return`${n}/${e.substr(o+1)}`;r=o+1}}}i=e[++o]}return n+e.substring(r)}parse(e,t,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${ke++}_`,this._prefixCallback=n||je,this._inversePredicate=!1,this._quantified=Object.create(null),!t){const t=[];let n;if(this._callback=(e,o)=>{e?n=e:o&&t.push(o)},this._lexer.tokenize(e).every((e=>this._readCallback=this._readCallback(e))),n)throw n;return t}this._callback=t,this._lexer.tokenize(e,((e,t)=>{null!==e?(this._callback(e),this._callback=je):this._readCallback&&(this._readCallback=this._readCallback(t))}))}}function je(){}function Oe(e,t){const n=t.namedNode;e._namedNode=n,e._blankNode=t.blankNode,e._literal=t.literal,e._variable=t.variable,e._quad=t.quad,e.DEFAULTGRAPH=t.defaultGraph(),e.RDF_FIRST=n(d.rdf.first),e.RDF_REST=n(d.rdf.rest),e.RDF_NIL=n(d.rdf.nil),e.N3_FORALL=n(d.r.forAll),e.N3_FORSOME=n(d.r.forSome),e.ABBREVIATIONS={a:n(d.rdf.type),"=":n(d.owl.sameAs),">":n(d.log.implies)},e.QUANTIFIERS_GRAPH=n("urn:n3:quantifiers")}Oe(Pe.prototype,h);var De=n(4841),Me=function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,d)}s((o=o.apply(e,t||[])).next())}))};const Be={},Fe={};class Ve{constructor(e){this.loadedOwlImports=[],this.loadedClasses=[],this.config=e}loadGraphs(){return Me(this,void 0,void 0,(function*(){this.loadedOwlImports=[],this.loadedClasses=[];const e=new xe,t=new xe;this.config.prefixes={},yield Promise.all([this.importRDF(this.config.attributes.shapes?this.config.attributes.shapes:this.config.attributes.shapesUrl?this.fetchRDF(this.config.attributes.shapesUrl):"",e,I),this.importRDF(this.config.attributes.values?this.config.attributes.values:this.config.attributes.valuesUrl?this.fetchRDF(this.config.attributes.valuesUrl):"",t,void 0,new Pe({blankNodePrefix:""}))]),this.config.shapesGraph=e,this.config.dataGraph=t}))}importRDF(e,t,n,o){return Me(this,void 0,void 0,(function*(){const a=o||new Pe,r=e=>Me(this,void 0,void 0,(function*(){const r=[];yield new Promise(((i,d)=>{a.parse(e,((e,a,s)=>{if(e)return d(e);if(a){if(t.add(new $(a.subject,a.predicate,a.object,n)),null===this.config.attributes.ignoreOwlImports&&A.equals(a.predicate)){const e=this.toURL(a.object.value);e&&this.loadedOwlImports.indexOf(e)<0&&(this.loadedOwlImports.push(e),r.push(this.importRDF(this.fetchRDF(e),t,n,o)))}if(this.config.classInstanceProvider&&j.equals(a.predicate)){const e=a.object.value;if(this.loadedClasses.indexOf(e)<0){let a;e in Fe?a=Fe[e]:(a=this.config.classInstanceProvider(e),Fe[e]=a),this.loadedClasses.push(e),r.push(this.importRDF(a,t,n,o))}}}else s&&this.config.registerPrefixes(s),i(null)}))}));try{yield Promise.all(r)}catch(e){console.warn(e)}}));if(e instanceof Promise&&(e=yield e),e){try{e=yield(0,De.toRDF)(JSON.parse(e),{format:"application/n-quads"})}catch(e){}yield r(e)}}))}fetchRDF(e){return Me(this,void 0,void 0,(function*(){if(e in Be)return Be[e];const t=fetch(e,{headers:{Accept:"text/turtle, application/trig, application/n-triples, application/n-quads, text/n3, application/ld+json"}}).then((e=>e.text()));return Be[e]=t,t}))}toURL(e){if(U(e))return e;if(this.config.prefixes){const t=e.split(":");if(2===t.length){const n=this.config.prefixes[t[0]];if(n&&U(e=e.replace(`${t[0]}:`,n)))return e}}return null}}class Ue{constructor(){this.shapes=null,this.shapesUrl=null,this.shapeSubject=null,this.values=null,this.valuesUrl=null,this.valueSubject=null,this.valuesSubject=null,this.valuesNamespace="",this.view=null,this.language=navigator.language,this.loading="Loading…",this.ignoreOwlImports=null,this.collapse=null,this.submitButton=null}}class ze{constructor(e,t){this.attributes=new Ue,this.loader=new Ve(this),this.prefixes={},this.editMode=!0,this.dataGraph=new xe,this.lists={},this.groups=[],this._shapesGraph=new xe,this.theme=e,this.form=t}updateAttributes(e){const t=new Ue;Object.keys(t).forEach((n=>{const o=e.dataset[n];void 0!==o&&(t[n]=o)})),this.editMode=null===t.view,this.attributes=t,this.attributes.valueSubject&&!this.attributes.valuesSubject&&(this.attributes.valuesSubject=this.attributes.valueSubject)}static dataAttributes(){const e=new Ue;return Object.keys(e).map((e=>(e=e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),"data-"+e)))}get shapesGraph(){return this._shapesGraph}set shapesGraph(e){this._shapesGraph=e,this.lists=e.extractLists(),this.groups=[],e.getQuads(null,T,`${w}PropertyGroup`,I).forEach((e=>{this.groups.push(e.subject.value)}))}registerPrefixes(e){for(const t in e)t&&(this.prefixes[t]=e[t])}}const Qe=e=>{const t=e.namespace("http://www.w3.org/2001/XMLSchema#"),n=e.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:n.first,nil:n.nil,rest:n.rest,langString:n.langString,xsd:t}};function Ge(e,t){return null==e?t:Array.isArray(e)?e:"string"!=typeof e&&e[Symbol.iterator]?[...e]:[e]}class He{constructor(e,{bind:t=!1}={}){this._factories=e.slice();for(const e of this._factories){"function"==typeof e.prototype.init&&e.prototype.init.call(this);for(const n of e.exports||[])this[n]=t?e.prototype[n].bind(this):e.prototype[n]}}clone(){const e=new He(this._factories);for(const t of e._factories)"function"==typeof t.prototype.clone&&t.prototype.clone.call(e,this);return e}}const Je=He;class We{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}We.prototype.termType="BlankNode";const Ke=We;class Xe{equals(e){return!!e&&e.termType===this.termType}}Xe.prototype.termType="DefaultGraph",Xe.prototype.value="";const Ye=Xe,Ze=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const n=e.fromTerm(t.subject),o=e.fromTerm(t.predicate),a=e.fromTerm(t.object),r=e.fromTerm(t.graph);return e.quad(n,o,a,r)}if("Variable"===t.termType)return e.variable(t.value);throw new Error(`unknown termType ${t.termType}`)};class et{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}et.prototype.termType="Literal";const tt=et;class nt{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}nt.prototype.termType="NamedNode";const ot=nt;class at{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}at.prototype.termType="Quad",at.prototype.value="";const rt=at;class it{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}it.prototype.termType="Variable";const dt=it,st=new ot("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),lt=new ot("http://www.w3.org/2001/XMLSchema#string");class ut{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new Ye}}namedNode(e){return new ot(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new Ke(e)}literal(e,t){return"string"==typeof t?new tt(e,t,st):new tt(e,"",t||lt)}variable(e){return new dt(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new rt(e,t,n,o)}fromTerm(e){return Ze(this,e)}fromQuad(e){return Ze(this,e)}}ut.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const ct=ut,mt=new ct,ht={apply:(e,t,n)=>e(n[0]),get:(e,t)=>e(t)},pt=function(e,{factory:t=mt}={}){const n=(n="")=>t.namedNode(`${e}${n.raw||n}`);return"undefined"==typeof Proxy?n:new Proxy(n,ht)};class ft{namespace(e){return pt(e,{factory:this})}}ft.exports=["namespace"];const Nt=ft,gt=new Je([Nt,ct]),{xsd:vt}=Qe(gt);function yt(e,t){if("string"!=typeof e)throw new Error("Named node must be an IRI string");return t.namedNode(e)}function bt(e,t="Literal",n,o){if(e&&"object"==typeof e&&e.termType)return e;if(e&&"URL"===e.constructor.name)return yt(e.toString(),o);if("BlankNode"===t)return function(e,t){if(e&&"string"!=typeof e)throw new Error("Blank node identifier must be a string");return t.blankNode(e)}(e,o);if(null!=e){if("Literal"===t)return function(e,t,n){if("string"==typeof e)return(t=t&&(t.value||t.toString()))&&-1!==t.indexOf(":")&&(t=n.namedNode(t)),n.literal(e.toString(),t);const o=function(e,t=gt){return function(e,t=gt){return"boolean"!=typeof e?null:t.literal(e.toString(),vt("boolean"))}(e,t)||function(e,t=gt){return"number"!=typeof e?null:Number.isInteger(e)?t.literal(e.toString(10),vt("integer")):t.literal(e.toString(10),vt("double"))}(e,t)||function(e,t=gt){return"string"!=typeof e?null:t.literal(e)}(e,t)}(e,n);if(!o)throw new Error("The value cannot be converted to a literal node");return o}(e,n,o);if("NamedNode"===t)return yt(e,o);throw new Error("unknown type")}}const $t=Qe(gt);function xt(e,t){const n="Literal"!==t.termType,o=$t.langString.equals(t.datatype)||$t.xsd.string.equals(t.datatype);if(n||!o)return e;const a=t.language.toLowerCase();return e.has(a)?e.get(a).push(t):e.set(a,[t]),e}class wt{constructor({dataset:e,graph:t,value:n,factory:o,namespace:a}){this.dataset=e,this.graph=t,this.factory=o,this.namespace=a,this.term=bt(n,void 0,void 0,o)}clone({dataset:e=this.dataset,graph:t=this.graph,value:n,factory:o=this.factory,namespace:a=this.namespace}){return new wt({dataset:e,graph:t,value:n,factory:o,namespace:a})}has(e,t){return this.matchProperty(Ge(this.term),e,t,Ge(this.graph),"subject").map((e=>this.clone({value:e})))}in(e){return this.matchProperty(null,e,Ge(this.term),Ge(this.graph),"subject").map((e=>this.clone({value:e})))}out(e,{language:t}={}){let n=this.matchProperty(Ge(this.term),e,null,Ge(this.graph),"object");return void 0!==t&&(n=function(e,{language:t}){const n="string"==typeof t?[t]:t,o=function(e){const t=e.reduce(xt,new Map),n=[...t.entries()];return e=>{const o=e.toLowerCase();if("*"===o)return n[0]&&n[0][1];const a=t.get(o);if(a)return a;const r=n.find((([e])=>e.startsWith(o)));return r&&r[1]}}(e);return n.map(o).find(Boolean)||[]}(n,{language:t})),n.map((e=>this.clone({value:e})))}addIn(e,t){const n=[];return this.term&&t.forEach((t=>{e.forEach((e=>{this.dataset.add(this.factory.quad(t,e,this.term,this.graph))})),n.push(this.clone({value:t}))})),n}addOut(e,t){const n=[];return this.term&&t.forEach((t=>{e.forEach((e=>{this.dataset.add(this.factory.quad(this.term,e,t,this.graph))})),n.push(this.clone({value:t}))})),n}addList(e,t){this.term&&e.forEach((e=>{const n=t.map((()=>this.factory.blankNode()));this.dataset.add(this.factory.quad(this.term,e,n[0]||this.namespace.nil,this.graph));for(let e=0;e<n.length;e++)this.dataset.add(this.factory.quad(n[e],this.namespace.first,t[e],this.graph)),this.dataset.add(this.factory.quad(n[e],this.namespace.rest,n[e+1]||this.namespace.nil,this.graph))}))}deleteIn(e,t){this.deleteMatch(t,e,Ge(this.term),Ge(this.graph))}deleteOut(e,t){this.deleteMatch(Ge(this.term),e,t,Ge(this.graph))}deleteList(e){e.forEach((e=>{for(const t of this.dataset.match(this.term,e))this.deleteItems(t)}))}deleteItems(e){let t=[e];for(;!t[t.length-1].object.equals(this.namespace.nil);){const e=t[t.length-1].object;t=t.concat([...this.dataset.match(e)])}t.forEach((e=>{this.dataset.delete(e)}))}match(e,t,n,o){if(!(e||t||n||o))return[...this.dataset];e=e||[null],t=t||[null],n=n||[null],o=o||[null];const a=[];for(const r of o)for(const o of e)for(const e of t)for(const t of n)for(const n of this.dataset.match(o,e,t,r))a.push(n);return a}matchProperty(e,t,n,o,a){return this.match(e,t,n,o).map((e=>e[a]))}deleteMatch(e,t,n,o){this.match(e,t,n,o).forEach((e=>{this.dataset.delete(e)}))}}class _t{constructor({dataset:e,graph:t,term:n,value:o,factory:a,_context:r}){if(this.factory=a,this.namespace=Qe(a),r)return void(this._context=r);const i=n&&Ge(n)||o&&Ge(o)||[null];this._context=i.map((n=>new wt({dataset:e,graph:t,value:n,factory:this.factory,namespace:this.namespace})))}get term(){const e=this.terms;if(1===e.length)return e[0]}get terms(){return this._context.map((e=>e.term)).filter(Boolean)}get value(){const e=this.term;return e&&e.value}get values(){return this.terms.map((e=>e.value))}get dataset(){const e=this.datasets;if(1===e.length)return e[0]}get datasets(){return this._context.map((e=>e.dataset)).filter(Boolean)}any(){return _t.fromContext(this._context.map((e=>e.clone({}))),this)}isList(){return!(!this.term||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term)}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term){if("NamedNode"!==this.term.termType&&"BlankNode"!==this.term.termType)return null;if(!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term)return null}let e=this;return{[Symbol.iterator]:()=>({next:()=>{if(!e.term||e.term.equals(this.namespace.nil))return{done:!0};const t=e.out(this.namespace.first);if(t.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${e.value}`);const n=e.out(this.namespace.rest);if(n.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${e.value}`);return e=n,{done:!1,value:t}}})}}toArray(){return this._context.map((e=>_t.fromContext(e,this))).filter((e=>e.terms.some(Boolean)))}filter(e){const t=this._context.map((e=>_t.fromContext(e,this)));return _t.fromContext(this._context.filter(((n,o)=>e(_t.fromContext(n,this),o,t))),this)}forEach(e){return this.toArray().forEach(e),this}map(e){return this.toArray().map(e)}toString(){return this.values.join()}node(e,{type:t,datatype:n,language:o}={}){const a=(e=this._toTermArray(e,t,n||o)||[null]).reduce(((e,t)=>e.concat(this._context.reduce(((e,n)=>e.concat([n.clone({value:t})])),[]))),[]);return _t.fromContext(a,{factory:this.factory})}blankNode(e){return this.node(e,{type:"BlankNode"})}literal(e,t){return this.node(e,{type:"Literal",datatype:t})}namedNode(e){return this.node(e,{type:"NamedNode"})}in(e){e=this._toTermArray(e);const t=this._context.reduce(((t,n)=>t.concat(n.in(e))),[]);return _t.fromContext(t,this)}out(e,t={}){e=this._toTermArray(e);const n=this._context.reduce(((n,o)=>n.concat(o.out(e,t))),[]);return _t.fromContext(n,this)}has(e,t){e=this._toTermArray(e),t=this._toTermArray(t);const n=this._context.reduce(((n,o)=>n.concat(o.has(e,t))),[]);return _t.fromContext(n,this)}addIn(e,t,n){if(!e)throw new Error("predicate parameter is required");"function"==typeof t&&(n=t,t=null),e=this._toTermArray(e),t=this._toTermArray(t)||[this.factory.blankNode()];const o=this._context.map((n=>n.addIn(e,t)));return n&&_t.fromContext(o,this).forEach(n),this}addOut(e,t,n){if(!e)throw new Error("predicate parameter is required");"function"==typeof t&&(n=t,t=null),e=this._toTermArray(e),t=this._toTermArray(t)||[this.factory.blankNode()];const o=this._context.map((n=>n.addOut(e,t)));return n&&_t.fromContext(o,this).forEach(n),this}addList(e,t){if(!e||!t)throw new Error("predicate and items parameter is required");return e=this._toTermArray(e),t=this._toTermArray(t),this._context.forEach((n=>n.addList(e,t))),this}deleteIn(e,t){return e=this._toTermArray(e),t=this._toTermArray(t),this._context.forEach((n=>n.deleteIn(e,t))),this}deleteOut(e,t){return e=this._toTermArray(e),t=this._toTermArray(t),this._context.forEach((n=>n.deleteOut(e,t))),this}deleteList(e){if(!e)throw new Error("predicate parameter is required");return e=this._toTermArray(e),this._context.forEach((t=>t.deleteList(e))),this}_toTermArray(e,t,n){return function(e,t,n,o){return null!=e||t?(Ge(e)||[void 0]).reduce(((e,a)=>"object"==typeof a&&a.terms?e.concat(a.terms):(e.push(bt(a,t,n,o)),e)),[]):e}(e,t,n,this.factory)}static fromContext(e,{factory:t}){return new _t({_context:Ge(e),factory:t})}}function Ct({dataset:e,graph:t,term:n,value:o,factory:a=gt,_context:r}){return new _t({dataset:e,graph:t,term:n,value:o,factory:a,_context:r})}function St(e){return"string"==typeof e||e instanceof String}function qt(e){if("string"==typeof e)return e;if(!e)return"";if(void 0!==e.id&&"Quad"!==e.termType)return e.id;let t,n,o,a;switch(e.termType){case"NamedNode":return e.value;case"BlankNode":return`_:${e.value}`;case"Variable":return`?${e.value}`;case"DefaultGraph":return"";case"Literal":return e.language?`"${e.value}"@${e.language}`:`"${e.value}"${e.datatype&&"http://www.w3.org/2001/XMLSchema#string"!==e.datatype.value?`^^${e.datatype.value}`:""}`;case"Quad":return t=It(qt(e.subject)),n=It(qt(e.predicate)),o=It(qt(e.object)),a="DefaultGraph"===e.graph.termType?"":` ${qt(e.graph)}`,`<<${t} ${n} ${o}${a}>>`;default:throw new Error(`Unexpected termType: ${e.termType}`)}}const Et=/^"(.*".*)(?="[^"]*$)/;function It(e){return e.replace(Et,((e,t)=>`"${t.replace(/"/g,'""')}`))}class At{constructor(e){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,e)for(const t of e)this.add(t)}get size(){let e=this._size;if(null!==e)return e;e=0;const t=this._graphs;let n,o;for(const a in t)for(const r in n=t[a].subjects)for(const t in o=n[r])e+=Object.keys(o[t]).length;return this._size=e,this._size}add(e){let t=qt(e.subject),n=qt(e.predicate),o=qt(e.object);const a=qt(e.graph);let r=this._graphs[a];r||(r=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(r));const i=this._ids,d=this._entities;return t=i[t]||(i[d[++this._id]=t]=this._id),n=i[n]||(i[d[++this._id]=n]=this._id),o=i[o]||(i[d[++this._id]=o]=this._id),this._addToIndex(r.subjects,t,n,o),this._addToIndex(r.predicates,n,o,t),this._addToIndex(r.objects,o,t,n),this._setQuad(t,n,o,a,e),this._size=null,this}delete(e){let t=qt(e.subject),n=qt(e.predicate),o=qt(e.object);const a=qt(e.graph),r=this._ids,i=this._graphs;let d,s,l;if(!((t=r[t])&&(n=r[n])&&(o=r[o])&&(d=i[a])&&(s=d.subjects[t])&&(l=s[n])&&o in l))return this;for(t in this._removeFromIndex(d.subjects,t,n,o),this._removeFromIndex(d.predicates,n,o,t),this._removeFromIndex(d.objects,o,t,n),null!==this._size&&this._size--,this._deleteQuad(t,n,o,a),d.subjects)return this;return delete i[a],this}has(e){const t=qt(e.subject),n=qt(e.predicate),o=qt(e.object),a=qt(e.graph),r=this._graphs[a];if(!r)return!1;const i=this._ids;let d,s,l;return!(St(t)&&!(d=i[t])||St(n)&&!(s=i[n])||St(o)&&!(l=i[o]))&&1===this._countInIndex(r.objects,l,d,s)}match(e,t,n,o){return this._createDataset(this._match(e,t,n,o))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(e,t,n,o){const a=e[t]||(e[t]={}),r=a[n]||(a[n]={}),i=o in r;return i||(r[o]=null),!i}_removeFromIndex(e,t,n,o){const a=e[t],r=a[n];delete r[o];for(const e in r)return;delete a[n];for(const e in a)return;delete e[t]}_findInIndex(e,t,n,o,a,r,i,d,s,l){let u,c,m;t&&((u=e,e={})[t]=u[t]);for(const t in e)if(c=e[t],c){n&&((u=c,c={})[n]=u[n]);for(const e in c)if(m=c[e],m){const n=o?o in m?[o]:[]:Object.keys(m);for(let o=0;o<n.length;o++){const u={[a]:t,[r]:e,[i]:n[o]},c=this._getQuad(u.subject,u.predicate,u.object,d);if(l)l.push(c);else if(s(c))return!0}}}return l}_countInIndex(e,t,n,o){let a,r,i,d=0;t&&((a=e,e={})[t]=a[t]);for(const t in e)if(r=e[t],r){n&&((a=r,r={})[n]=a[n]);for(const e in r)i=r[e],i&&(o?o in i&&d++:d+=Object.keys(i).length)}return d}_getGraphs(e){return St(e)?{[e]:this._graphs[e]}:this._graphs}_match(e,t,n,o){e=e&&qt(e),t=t&&qt(t),n=n&&qt(n),o=o&&qt(o);const a=[],r=this._getGraphs(o),i=this._ids;let d,s,l,u;if(St(e)&&!(s=i[e])||St(t)&&!(l=i[t])||St(n)&&!(u=i[n]))return a;for(const e in r)d=r[e],d&&(s?u?this._findInIndex(d.objects,u,s,l,"object","subject","predicate",e,null,a):this._findInIndex(d.subjects,s,l,null,"subject","predicate","object",e,null,a):l?this._findInIndex(d.predicates,l,u,null,"predicate","object","subject",e,null,a):u?this._findInIndex(d.objects,u,null,null,"object","subject","predicate",e,null,a):this._findInIndex(d.subjects,null,null,null,"subject","predicate","object",e,null,a));return a}_getQuad(e,t,n,o){return this._quads.get(this._toId(e,t,n,o))}_setQuad(e,t,n,o,a){this._quads.set(this._toId(e,t,n,o),a)}_deleteQuad(e,t,n,o){this._quads.delete(this._toId(e,t,n,o))}_createDataset(e){return new this.constructor(e)}_toId(e,t,n,o){return`${e}:${t}:${n}:${o}`}}const Tt=At;class Rt{dataset(e){return new Tt(e)}}Rt.exports=["dataset"];const Lt=new Je([ct,Rt,Nt]);function kt(e){return{sh:pt("http://www.w3.org/ns/shacl#",{factory:e}),xsd:pt("http://www.w3.org/2001/XMLSchema#",{factory:e}),rdf:pt("http://www.w3.org/1999/02/22-rdf-syntax-ns#",{factory:e}),rdfs:pt("http://www.w3.org/2000/01/rdf-schema#",{factory:e})}}const Pt=kt(),jt=function(e){return"<"+e.value+">"},Ot=/["\\\\\n\r]/,Dt=/["\\\\\n\r]/g,Mt={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Bt(e){return Mt[e]}const Ft=function e(t){if(!t)return null;if("BlankNode"===t.termType)return"_:"+t.value;if("DefaultGraph"===t.termType)return"";if("Literal"===t.termType)return function(e){const t=(n=e.value,Ot.test(n)?n.replace(Dt,Bt):n);var n;return"http://www.w3.org/2001/XMLSchema#string"===e.datatype.value?'"'+t+'"':"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"===e.datatype.value?'"'+t+'"@'+e.language:'"'+t+'"^^'+jt(e.datatype)}(t);if("NamedNode"===t.termType)return jt(t);if("Quad"===t.termType||t.subject&&t.predicate&&t.object&&t.graph)return function(e,t){const n=t(e.subject),o=t(e.predicate),a=t(e.object),r=t(e.graph);return`${n} ${o} ${a} ${r?r+" ":""}.`}(t,e);if("Variable"===t.termType)return"?"+t.value;if(t[Symbol.iterator])return function(e,t){return[...e].map((e=>t(e))).join("\n")+"\n"}(t,e);throw new Error(`unknown termType ${t.termType}`)};function Vt(e){try{return Ft(e)}catch(e){return null}}class Ut{constructor(e){if(this.index=new Map,e)for(const t of e)this.add(t)}get size(){return this.index.size}add(e){const t=Ft(e);return this.index.has(t)||this.index.set(t,e),this}clear(){this.index.clear()}delete(e){return!!e&&this.index.delete(Vt(e))}entries(){return this.values().entries()}forEach(e,t){return this.values().forEach(e,t)}has(e){return!!e&&this.index.has(Vt(e))}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}const zt=Ut,Qt=class extends zt{addAll(e){for(const t of e)this.add(t)}},Gt="undefined"!=typeof window?window:global,Ht=class{constructor(e,t,n){this.context=e,this.funcName=t,this.func=n}execute(e,t,n){return this.func.apply(Gt,[this.context,e,t,n])}};pt("http://www.w3.org/ns/auth/acl#"),pt("https://www.w3.org/ns/activitystreams#"),pt("http://purl.org/ontology/bibo/"),pt("http://creativecommons.org/ns#"),pt("http://www.w3.org/ns/auth/cert#"),pt("http://www.w3.org/2011/content#"),pt("http://qudt.org/vocab/constant/"),pt("http://www.cidoc-crm.org/cidoc-crm/");const Jt=pt("http://www.w3.org/ns/csvw#"),Wt=(pt("http://commontag.org/ns#"),pt("http://datashapes.org/sparql#"),pt("http://datashapes.org/dash#"),pt("http://dbpedia.org/ontology/"),pt("http://purl.org/dc/elements/1.1/"),pt("http://purl.org/dc/dcam/"),pt("http://www.w3.org/ns/dcat#"),pt("http://purl.org/dc/dcmitype/"),pt("http://purl.org/dc/terms/"),pt("http://www.ics.forth.gr/isl/CRMdig/"),pt("http://qudt.org/vocab/discipline/"),pt("http://usefulinc.com/ns/doap#"),pt("http://www.w3.org/ns/dpv#"),pt("http://www.w3.org/ns/dqv#"),pt("http://www.linkedmodel.org/schema/dtype#"),pt("http://www.w3.org/ns/duv#"),pt("http://www.w3.org/ns/earl#"),pt("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),pt("http://www.w3.org/2003/12/exif/ns#"),pt("http://xmlns.com/foaf/0.1/"),pt("http://purl.org/vocab/frbr/core#"),pt("http://www.opengis.net/ont/geosparql#"),pt("http://www.opengis.net/def/function/geosparql/"),pt("http://www.opengis.net/def/rule/geosparql/"),pt("http://www.opengis.net/ont/gml#"),pt("http://www.geonames.org/ontology#"),pt("http://purl.org/goodrelations/v1#"),pt("http://www.w3.org/2003/g/data-view#"),pt("https://gs1.org/voc/"),pt("http://vocab.gtfs.org/terms#"),pt("http://www.w3.org/2011/http#"),pt("http://www.w3.org/ns/hydra/core#"),pt("http://www.w3.org/2002/12/cal/icaltzd#"),pt("https://linked.art/ns/terms/"),pt("http://www.w3.org/ns/ldp#"),pt("http://www.w3.org/2000/10/swap/list#"),pt("http://www.w3.org/ns/locn#"),pt("http://www.w3.org/2000/10/swap/log#"),pt("http://lexvo.org/ontology#"),pt("http://w3id.org/nfdi4ing/metadata4ing#"),pt("http://www.w3.org/ns/ma-ont#"),pt("http://www.loc.gov/mads/rdf/v1#"),pt("http://www.w3.org/2000/10/swap/math#"),pt("http://www.w3.org/ns/oa#"),pt("http://ogp.me/ns#"),pt("http://www.w3.org/ns/solid/oidc#"),pt("http://www.w3.org/ns/org#"),pt("http://www.w3.org/2002/07/owl#"),pt("http://www.w3.org/ns/pim/space#"),pt("http://qudt.org/vocab/prefix/"),pt("http://www.w3.org/ns/prov#"),pt("http://purl.org/linked-data/cube#"),pt("http://qudt.org/vocab/dimensionvector/"),pt("http://qudt.org/vocab/quantitykind/"),pt("http://qudt.org/schema/qudt/"),pt("http://rdaregistry.info/Elements/u/"),pt("http://www.w3.org/1999/02/22-rdf-syntax-ns#")),Kt=(pt("http://www.w3.org/ns/rdfa#"),pt("http://www.w3.org/2000/01/rdf-schema#"),pt("http://purl.org/stuff/rev#"),pt("https://www.ica.org/standards/RiC/ontology#"),pt("http://www.w3.org/ns/r2rml#"),pt("http://purl.org/rss/1.0/"),pt("http://schema.org/"),pt("http://www.w3.org/ns/sparql-service-description#"),pt("http://purl.org/linked-data/sdmx#"),pt("http://semanticweb.cs.vu.nl/2009/11/sem/"),pt("http://www.w3.org/2000/10/swap/set#"),pt("http://www.opengis.net/ont/sf#"),pt("http://www.w3.org/ns/shacl#"),pt("http://www.w3.org/ns/shex#"),pt("https://www.w3.org/ns/shacl-shacl#"),pt("http://rdfs.org/sioc/ns#"),pt("http://www.w3.org/2004/02/skos/core#"),pt("http://www.w3.org/2008/05/skos-xl#"),pt("http://www.w3.org/ns/solid/terms#"),pt("http://www.w3.org/ns/sosa/"),pt("http://qudt.org/vocab/sou/"),pt("http://www.w3.org/ns/ssn/"),pt("http://www.w3.org/ns/posix/stat#"),pt("http://www.w3.org/2000/10/swap/string#"),pt("http://www.w3.org/2006/03/test-description#"),pt("http://www.w3.org/2006/time#"),pt("http://qudt.org/vocab/unit/"),pt("http://www.linkedmodel.org/schema/vaem#"),pt("http://purl.org/vocab/vann/"),pt("http://www.w3.org/2006/vcard/ns#"),pt("http://rdfs.org/ns/void#"),pt("http://www.w3.org/2003/06/sw-vocab-status/ns#"),pt("http://www.w3.org/2007/05/powder-s#"),pt("http://www.w3.org/2003/01/geo/wgs84_pos#"),pt("http://www.w3.org/1999/xhtml/vocab#"),pt("http://rdf-vocabulary.ddialliance.org/xkos#"),pt("http://www.w3.org/2001/XMLSchema#"));pt("http://www.w3.org/2007/rif#"),pt("http://rdf.data-vocabulary.org/#"),pt("http://www.w3.org/2007/05/powder#"),pt("http://www.w3.org/XML/1998/namespace/");class Xt{constructor(e){if(this.index=new Map,e)for(const[t,n]of e)this.set(t,n)}get size(){return this.index.size}clear(){this.index.clear()}delete(e){return this.index.delete(Ft(e))}*entries(){for(const[,{term:e,value:t}]of this.index)yield[e,t]}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}get(e){const t=this.index.get(Ft(e));return t&&t.value}has(e){return this.index.has(Ft(e))}*keys(){for(const[,{term:e}]of this.index)yield e}set(e,t){const n=Ft(e);return this.index.set(n,{term:e,value:t}),this}*values(){for(const[,{value:e}]of this.index)yield e}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}const Yt=Xt,Zt=new class{validators;constructor(){this.validators=new Yt}register(e,t){this.validators.set(e,t)}find(e){return e?this.validators.get(e):null}};function en(e){return!["\n","\r","\t"].some((t=>e.includes(t)))}Zt.register(Kt.anySimpleType,(()=>!0)),Zt.register(Kt.anyAtomicType,(()=>!0)),Zt.register(Kt.string,(()=>!0)),Zt.register(Kt.normalizedString,(e=>en(e))),Zt.register(Kt.token,(e=>en(e)&&!e.startsWith(" ")&&!e.endsWith(" ")&&!e.includes(" ")));const tn=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/;Zt.register(Kt.language,(e=>tn.test(e)));const nn=/^[^\ufffe\uffff]*$/;Zt.register(Kt.anyURI,(e=>nn.test(e)));const on="(\\+|-)?",an=new RegExp(`^${on}\\d+$`);Zt.register(Kt.integer,(e=>an.test(e))),Zt.register(Kt.nonNegativeInteger,(e=>an.test(e)&&BigInt(e)>=BigInt("0"))),Zt.register(Kt.positiveInteger,(e=>an.test(e)&&BigInt(e)>BigInt("0"))),Zt.register(Kt.nonPositiveInteger,(e=>an.test(e)&&BigInt(e)<=BigInt("0"))),Zt.register(Kt.negativeInteger,(e=>an.test(e)&&BigInt(e)<BigInt("0"))),Zt.register(Kt.int,(e=>an.test(e)&&BigInt(e)>=BigInt("-2147483647")&&BigInt(e)<=BigInt("2147483648"))),Zt.register(Kt.unsignedInt,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("4294967295"))),Zt.register(Kt.long,(e=>an.test(e)&&BigInt(e)>=BigInt("-9223372036854775808")&&BigInt(e)<=BigInt("9223372036854775807"))),Zt.register(Kt.unsignedLong,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("18446744073709551615"))),Zt.register(Kt.short,(e=>an.test(e)&&BigInt(e)>=BigInt("-32768")&&BigInt(e)<=BigInt("32767"))),Zt.register(Kt.unsignedShort,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("65535"))),Zt.register(Kt.byte,(e=>an.test(e)&&BigInt(e)>=BigInt("-128")&&BigInt(e)<=BigInt("127"))),Zt.register(Kt.unsignedByte,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("255"))),Zt.register(Kt.boolean,(e=>"1"===e||"true"===e||"0"===e||"false"===e));const rn=`${on}(\\d+\\.?\\d*|\\.\\d+)`,dn=new RegExp(`^${on}${rn}$`);Zt.register(Kt.decimal,(e=>dn.test(e))),Zt.register(Kt.float,ln),Zt.register(Kt.double,ln);const sn=new RegExp(`^${on}${rn}((E|e)(\\+|-)?\\d+)?$`);function ln(e){return"INF"===e||"-INF"===e||"NaN"===e||sn.test(e)}const un="-?",cn="\\d+M",mn="\\d+M",hn="\\d+(\\.\\d+)?S",pn=`(\\d+Y(${cn})?|${cn})`,fn=`T((\\d+H(${mn})?(${hn})?)|(${mn}(${hn})?)|${hn})`,Nn=`(\\d+D(${fn})?|${fn})`,gn=new RegExp(`^${un}P((${pn}(${Nn})?)|${Nn})$`);Zt.register(Kt.duration,(e=>gn.test(e)));const vn=new RegExp(`^${un}P${Nn}$`);Zt.register(Kt.dayTimeDuration,(e=>vn.test(e)));const yn=new RegExp(`^${un}P${pn}$`);Zt.register(Kt.yearMonthDuration,(e=>yn.test(e)));const bn=`${un}(([1-9]\\d{3,})|(0\\d{3}))`,$n="(((\\+|-)\\d{2}:\\d{2})|Z)",xn="\\d{2}",wn="\\d{2}",_n=`${bn}-${xn}-${wn}`,Cn="\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?",Sn=new RegExp(`^${_n}T${Cn}${$n}?$`);Zt.register(Kt.dateTime,(e=>Sn.test(e)));const qn=new RegExp(`^${_n}T${Cn}${$n}$`);Zt.register(Kt.dateTimeStamp,(e=>qn.test(e)));const En=new RegExp(`^${_n}${$n}?$`);Zt.register(Kt.date,(e=>En.test(e)));const In=new RegExp(`^${wn}${$n}?$`);Zt.register(Kt.gDay,(e=>In.test(e)));const An=new RegExp(`^--${xn}${$n}?$`);Zt.register(Kt.gMonth,(e=>An.test(e)));const Tn=new RegExp(`^${xn}-${wn}${$n}?$`);Zt.register(Kt.gMonthDay,(e=>Tn.test(e)));const Rn=new RegExp(`^${bn}${$n}?$`);Zt.register(Kt.gYear,(e=>Rn.test(e)));const Ln=new RegExp(`^${bn}-${xn}${$n}?$`);Zt.register(Kt.gYearMonth,(e=>Ln.test(e)));const kn=new RegExp(`^${Cn}${$n}?$`);Zt.register(Kt.time,(e=>kn.test(e)));const Pn=/^([0-9a-fA-F]{2})*$/;Zt.register(Kt.hexBinary,(e=>Pn.test(e)));const jn="[A-Za-z0-9+/]",On=`(${jn} ?)`,Dn=new RegExp(`^((${On}{4})*((${On}{3}${jn})|(${On}{2}([AEIMQUYcgkosw048] ?)=)|(${On}([AQgw] ?)= ?=)))?$`);Zt.register(Kt.base64Binary,(e=>Dn.test(e))),Zt.register(Jt.JSON,(e=>{try{return JSON.parse(e),!0}catch(e){return!1}})),Zt.register(Kt.NOTATION,(()=>!0)),Zt.register(Kt.QName,(()=>!0)),Zt.register(Kt.Name,(()=>!0)),Zt.register(Kt.NCName,(()=>!0)),Zt.register(Kt.ENTITY,(()=>!0)),Zt.register(Kt.ID,(()=>!0)),Zt.register(Kt.IDREF,(()=>!0)),Zt.register(Kt.NMTOKEN,(()=>!0)),Zt.register(Kt.ENTITIES,(()=>!0)),Zt.register(Kt.IDREFS,(()=>!0)),Zt.register(Kt.NMTOKENS,(()=>!0)),Zt.register(Wt.XMLLiteral,(()=>!0)),Zt.register(Wt.HTML,(()=>!0));var Mn=n(9349);function Bn(e,t,n){if("NamedNode"===e.term.termType&&!n)return e.term;if("BlankNode"===e.term.termType||"NamedNode"===e.term.termType){if(e.out(t.rdf.first).term)return[...e.list()].map((e=>Bn(e,t,n)));const o=e.out(t.sh.alternativePath);if(o.term)return{or:[...o.list()].map((e=>Bn(e,t,n)))};const a=e.out(t.sh.zeroOrMorePath);if(a.term)return{zeroOrMore:Bn(a,t,n)};const r=e.out(t.sh.oneOrMorePath);if(r.term)return{oneOrMore:Bn(r,t,n)};const i=e.out(t.sh.zeroOrOnePath);if(i.term)return{zeroOrOne:Bn(i,t,n)};const d=e.out(t.sh.inversePath);return d.term?{inverse:Bn(d,t,n)}:e.term}throw new Error(`Unsupported SHACL path: ${e.term.value}`)}function Fn(e,t,n){return[...Vn(e,t,n)]}function Vn(e,t,n){if("NamedNode"===n.termType)return function(e,t,n){return new Qt(e.node(t).out(n).terms)}(e,t,n);if(Array.isArray(n))return function(e,t,n){let o=new Qt([t]);for(const t of n)o=new Qt(zn(o,(n=>Fn(e,n,t))));return o}(e,t,n);if(n.or)return function(e,t,n){return new Qt(zn(n.or,(n=>Fn(e,t,n))))}(e,t,n);if(n.inverse)return function(e,t,n){if("NamedNode"!==n.inverse.termType)throw new Error("Unsupported: Inverse paths only work for named nodes");return new Qt(e.node(t).in(n.inverse).terms)}(e,t,n);if(n.zeroOrOne)return function(e,t,n){const o=Vn(e,t,n.zeroOrOne);return o.add(t),o}(e,t,n);if(n.zeroOrMore)return function(e,t,n){const o=Un(e,t,n.zeroOrMore);return o.add(t),o}(e,t,n);if(n.oneOrMore)return function(e,t,n){return Un(e,t,n.oneOrMore)}(e,t,n);throw new Error(`Unsupported path object: ${n}`)}function Un(e,t,n,o){(o=o||new Qt).add(t);const a=Vn(e,t,n),r=zn(a,(t=>o.has(t)?[]:[...Un(e,t,n,o)]));return a.addAll(r),a}function zn(e,t){return[...e].reduce(((e,n)=>e.concat(t(n))),[])}function*Qn(e,t,n=new zt){if("BlankNode"===t.termType&&!n.has(t)){n.add(t);for(const o of e.match(t,null,null))yield o,yield*Qn(e,o.object,n)}}function*Gn(e,t,n,o=new zt){if("BlankNode"!==n.termType||o.has(n))return;const{factory:a}=e.context,{sh:r,rdfs:i}=e.context.ns,d=t=>{const n=e.constraints.find((e=>e.paramValue.equals(t)));return n?.nodeSet.size};o.add(n);for(const s of t.match(n,null,null))if(s.predicate.equals(r.in)&&d(s.object)>3){const e=`sh:in has ${d(s.object)} elements and has been removed from the report for brevity. Please refer the original shape`;yield a.quad(s.subject,i.comment,a.literal(e))}else yield s,yield*Gn(e,t,s.object,o)}function Hn(e,t){const n=Jn(e,t);return n.add(e.term),[...n].reduce(((n,o)=>{const a=e.node(o).in(t.rdf.type).terms;return n.addAll(a),n}),new Qt)}function Jn(e,t){const n=e.in(t.rdfs.subClassOf),o=n.toArray().reduce(((e,n)=>{const o=Jn(n,t);return e.addAll(o),e}),new Qt);return new Qt([...n.terms,...o])}function Wn(e,t,n){const o=Jn(t,n);return o.add(t.term),e.out(n.rdf.type).terms.some((e=>o.has(e)))}function Kn(e){return[...e.list()].map((({term:e})=>e))}function Xn(e,t,n){const{sh:o,xsd:a}=e.ns,r=n.shape.shapeNode,i=n.getParameterValue(o.qualifiedValueShapesDisjoint),d=n.getParameterValue(o.qualifiedValueShape),s=e.factory.literal("true",a.boolean),l=new Qt;if(s.equals(i)){const t=e.$shapes.node(r).in(o.property).out(o.property).out(o.qualifiedValueShape).filter((({term:e})=>!e.equals(d))).terms;l.addAll(t)}const u=n.shape.pathObject;return Fn(e.$data,t,u).filter((t=>e.nodeConformsToShape(t,d)&&!function(e,t,n){for(let o=0;o<n.length;o++)if(e.nodeConformsToShape(t,n[o]))return!0;return!1}(e,t,[...l]))).length}function Yn(e,t,n){if(!e||!t||"Literal"!==e.termType||"Literal"!==t.termType)return null;if(Zn(e,n)!==Zn(t,n))return null;const o=(0,Mn.fromRdf)(e),a=(0,Mn.fromRdf)(t);return typeof o!=typeof a?null:"string"==typeof o?o.localeCompare(a):o-a}function Zn(e,t){return t.xsd.dateTime.equals(e.datatype)&&/^.*(((\+|-)\d{2}:\d{2})|Z)$/.test(e.value)}const eo={validateAnd:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.and);return Kn(e.$shapes.node(r)).every((t=>e.nodeConformsToShape(n,t)))},validateClass:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.class);return Wn(e.$data.node(n),e.$data.node(r),e.ns)},validateClosed:function(e,t,n,o){const{sh:a,xsd:r}=e.ns,i=o.getParameterValue(a.closed),d=o.getParameterValue(a.ignoredProperties),s=o.shape.shapeNode;if(!e.factory.literal("true",r.boolean).equals(i))return;const l=new Qt(e.$shapes.node(s).out(a.property).out(a.path).terms.filter((e=>"NamedNode"===e.termType)));d&&l.addAll(Kn(e.$shapes.node(d)));const u=[];return[...e.$data.dataset.match(n,null,null)].filter((({predicate:e})=>!l.has(e))).forEach((({predicate:e,object:t})=>{u.push({path:e,value:t})})),u},validateDatatype:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.datatype);return"Literal"===n.termType&&r.equals(n.datatype)&&function(e){if("Literal"!==e.termType)throw new Error("Cannot validate non-literal terms");const t=Zt.find(e.datatype);return!t||t(e.value)}(n)},validateDisjoint:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.disjoint);return 0===e.$data.dataset.match(t,r,n).size},validateEqualsNode:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.equals),i=[];let d=0;return Fn(e.$data,t,r).forEach((e=>{d++,e.equals(t)||i.push({value:e})})),0===i.length&&0===d&&i.push({value:t}),i},validateEqualsProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=o.getParameterValue(a.equals),d=[];return Fn(e.$data,t,r).forEach((n=>{0===e.$data.dataset.match(t,i,n).size&&d.push({value:n})})),[...e.$data.dataset.match(t,i,null)].forEach((({object:n})=>{const o=n;Fn(e.$data,t,r).some((e=>e.equals(o)))||d.push({value:o})})),d},validateHasValueNode:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.hasValue);return t.equals(r)},validateHasValueProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=o.getParameterValue(a.hasValue);return Fn(e.$data,t,r).some((e=>e.equals(i)))},validateIn:function(e,t,n,o){return o.nodeSet.has(n)},validateLanguageIn:function(e,t,n,o){const{sh:a}=e.ns;if("Literal"!==n.termType)return!1;const r=n.language;if(!r||""===r)return!1;const i=o.getParameterValue(a.languageIn);return Kn(e.$shapes.node(i)).some((e=>r.startsWith(e.value)))},validateLessThanProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r),d=o.getParameterValue(a.lessThan),s=e.$data.node(t).out(d).terms,l=[];for(const t of i)for(const n of s){const o=Yn(t,n,e.ns);(null===o||o>=0)&&l.push({value:t})}return l},validateLessThanOrEqualsProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r),d=o.getParameterValue(a.lessThanOrEquals),s=e.$data.node(t).out(d).terms,l=[];for(const t of i)for(const n of s){const o=Yn(t,n,e.ns);(null===o||o>0)&&l.push({value:t})}return l},validateMaxCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r).length,d=o.getParameterValue(a.maxCount);return i<=Number(d.value)},validateMaxExclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.maxExclusive),e.ns);return null!==r&&r<0},validateMaxInclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.maxInclusive),e.ns);return null!==r&&r<=0},validateMaxLength:function(e,t,n,o){if("BlankNode"===n.termType)return!1;const{sh:a}=e.ns,r=o.getParameterValue(a.maxLength);return n.value.length<=Number(r.value)},validateMinCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r).length,d=o.getParameterValue(a.minCount);return i>=Number(d.value)},validateMinExclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.minExclusive),e.ns);return null!==r&&r>0},validateMinInclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.minInclusive),e.ns);return null!==r&&r>=0},validateMinLength:function(e,t,n,o){if("BlankNode"===n.termType)return!1;const{sh:a}=e.ns,r=o.getParameterValue(a.minLength);return n.value.length>=Number(r.value)},validateNode:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.node);return e.validateNodeAgainstShape(n,r)},validateNodeKind:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.nodeKind);return"BlankNode"===n.termType?a.BlankNode.equals(r)||a.BlankNodeOrIRI.equals(r)||a.BlankNodeOrLiteral.equals(r):"NamedNode"===n.termType?a.IRI.equals(r)||a.BlankNodeOrIRI.equals(r)||a.IRIOrLiteral.equals(r):"Literal"===n.termType?a.Literal.equals(r)||a.BlankNodeOrLiteral.equals(r)||a.IRIOrLiteral.equals(r):void 0},validateNot:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.not);return!e.nodeConformsToShape(n,r)},validateOr:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.or);return Kn(e.$shapes.node(r)).some((t=>e.nodeConformsToShape(n,t)))},validatePattern:function(e,t,n,o){if("BlankNode"===n.termType)return!1;const{sh:a}=e.ns,r=o.getParameterValue(a.flags),i=o.getParameterValue(a.pattern);return(r?new RegExp(i.value,r.value):new RegExp(i.value)).test(n.value)},validateQualifiedMaxCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=Xn(e,t,o),i=o.getParameterValue(a.qualifiedMaxCount);return"Literal"===i.termType&&r<=Number(i.value)},validateQualifiedMinCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=Xn(e,t,o),i=o.getParameterValue(a.qualifiedMinCount);return"Literal"===i.termType&&r>=Number(i.value)},validateUniqueLangProperty:function(e,t,n,o){const{sh:a,xsd:r}=e.ns,i=o.getParameterValue(a.uniqueLang);if(!e.factory.literal("true",r.boolean).equals(i))return;const d=o.shape.pathObject,s={};Fn(e.$data,t,d).forEach((e=>{const t=e.language;if(t&&""!==t){const e=s[t];s[t]=e?e+1:1}}));const l=[];for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e)){const t=s[e];t>1&&l.push('Language "'+e+'" has been used by '+t+" values")}return l},validateXone:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.xone);return 1===Kn(e.$shapes.node(r)).map((t=>e.nodeConformsToShape(n,t))).filter(Boolean).length}},to={[Pt.sh.AndConstraintComponent.value]:{validator:{func:eo.validateAnd}},[Pt.sh.ClassConstraintComponent.value]:{validator:{func:eo.validateClass}},[Pt.sh.ClosedConstraintComponent.value]:{validator:{func:eo.validateClosed,message:"Predicate is not allowed (closed shape)"}},[Pt.sh.DatatypeConstraintComponent.value]:{validator:{func:eo.validateDatatype,message:"Value does not have datatype {$datatype}"}},[Pt.sh.DisjointConstraintComponent.value]:{validator:{func:eo.validateDisjoint,message:"Value node must not also be one of the values of {$disjoint}"}},[Pt.sh.EqualsConstraintComponent.value]:{nodeValidator:{func:eo.validateEqualsNode,message:"Must have same values as {$equals}"},propertyValidator:{func:eo.validateEqualsProperty,message:"Must have same values as {$equals}"}},[Pt.sh.HasValueConstraintComponent.value]:{nodeValidator:{func:eo.validateHasValueNode,message:"Value must be {$hasValue}"},propertyValidator:{func:eo.validateHasValueProperty,message:"Missing expected value {$hasValue}"}},[Pt.sh.InConstraintComponent.value]:{validator:{func:eo.validateIn,message:"Value is not one of the allowed values: {$in}"}},[Pt.sh.LanguageInConstraintComponent.value]:{validator:{func:eo.validateLanguageIn,message:"Language does not match any of {$languageIn}"}},[Pt.sh.LessThanConstraintComponent.value]:{propertyValidator:{func:eo.validateLessThanProperty,message:"Value is not less than value of {$lessThan}"}},[Pt.sh.LessThanOrEqualsConstraintComponent.value]:{propertyValidator:{func:eo.validateLessThanOrEqualsProperty,message:"Value is not less than or equal to value of {$lessThanOrEquals}"}},[Pt.sh.MaxCountConstraintComponent.value]:{propertyValidator:{func:eo.validateMaxCountProperty,message:"More than {$maxCount} values"}},[Pt.sh.MaxExclusiveConstraintComponent.value]:{validator:{func:eo.validateMaxExclusive,message:"Value is not less than {$maxExclusive}"}},[Pt.sh.MaxInclusiveConstraintComponent.value]:{validator:{func:eo.validateMaxInclusive,message:"Value is not less than or equal to {$maxInclusive}"}},[Pt.sh.MaxLengthConstraintComponent.value]:{validator:{func:eo.validateMaxLength,message:"Value has more than {$maxLength} characters"}},[Pt.sh.MinCountConstraintComponent.value]:{propertyValidator:{func:eo.validateMinCountProperty,message:"Less than {$minCount} values"}},[Pt.sh.MinExclusiveConstraintComponent.value]:{validator:{func:eo.validateMinExclusive,message:"Value is not greater than {$minExclusive}"}},[Pt.sh.MinInclusiveConstraintComponent.value]:{validator:{func:eo.validateMinInclusive,message:"Value is not greater than or equal to {$minInclusive}"}},[Pt.sh.MinLengthConstraintComponent.value]:{validator:{func:eo.validateMinLength,message:"Value has less than {$minLength} characters"}},[Pt.sh.NodeConstraintComponent.value]:{validator:{func:eo.validateNode,message:"Value does not have shape {$node}"}},[Pt.sh.NodeKindConstraintComponent.value]:{validator:{func:eo.validateNodeKind,message:"Value does not have node kind {$nodeKind}"}},[Pt.sh.NotConstraintComponent.value]:{validator:{func:eo.validateNot,message:"Value does have shape {$not}"}},[Pt.sh.OrConstraintComponent.value]:{validator:{func:eo.validateOr}},[Pt.sh.PatternConstraintComponent.value]:{validator:{func:eo.validatePattern,message:'Value does not match pattern "{$pattern}"'}},[Pt.sh.QualifiedMaxCountConstraintComponent.value]:{propertyValidator:{func:eo.validateQualifiedMaxCountProperty,message:"More than {$qualifiedMaxCount} values have shape {$qualifiedValueShape}"}},[Pt.sh.QualifiedMinCountConstraintComponent.value]:{propertyValidator:{func:eo.validateQualifiedMinCountProperty,message:"Less than {$qualifiedMinCount} values have shape {$qualifiedValueShape}"}},[Pt.sh.UniqueLangConstraintComponent.value]:{propertyValidator:{func:eo.validateUniqueLangProperty,message:'Language "{?lang}" used more than once'}},[Pt.sh.XoneConstraintComponent.value]:{validator:{func:eo.validateXone}}};class no{constructor(e,t,n,o){this.shape=e,this.component=t,this.paramValue=n,this.shapeNodePointer=o.node(e.shapeNode)}getParameterValue(e){return this.paramValue||this.shapeNodePointer.out(e).term}get validationFunction(){return this.shape.isPropertyShape?this.component.propertyValidationFunction:this.component.nodeValidationFunction}get isValidationFunctionGeneric(){return this.shape.isPropertyShape?this.component.propertyValidationFunctionGeneric:this.component.nodeValidationFunctionGeneric}get componentMessages(){return this.component.getMessages(this.shape)}get nodeSet(){const{sh:e}=this.shape.context.ns;return this.inNodeSet||(this.inNodeSet=new Qt(Kn(this.shapeNodePointer.out(e.in)))),this.inNodeSet}}class oo{constructor(e,t){const{$shapes:n,factory:o,ns:a}=t,{sh:r,xsd:i}=a;this.context=t,this.node=e,this.nodePointer=n.node(e),this.parameters=[],this.parameterNodes=[],this.requiredParameters=[],this.optionals={};const d=o.literal("true",i.boolean);this.nodePointer.out(r.parameter).forEach((e=>{const t=e.term;e.out(r.path).forEach((({term:e})=>{this.parameters.push(e),this.parameterNodes.push(t),n.dataset.match(t,r.optional,d).size>0?this.optionals[e.value]=!0:this.requiredParameters.push(e)}))})),this.nodeValidationFunction=this.findValidationFunction(r.nodeValidator),this.nodeValidationFunction||(this.nodeValidationFunction=this.findValidationFunction(r.validator),this.nodeValidationFunctionGeneric=!0),this.propertyValidationFunction=this.findValidationFunction(r.propertyValidator),this.propertyValidationFunction||(this.propertyValidationFunction=this.findValidationFunction(r.validator),this.propertyValidationFunctionGeneric=!0)}findValidationFunction(e){const t=e.value.split("#").slice(-1)[0],n=this.findValidator(t);return n?new Ht(this.context,n.func.name,n.func):null}getMessages(e){const t=(e.isPropertyShape?this.propertyValidationFunctionGeneric:this.nodeValidationFunctionGeneric)?"validator":e.isPropertyShape?"propertyValidator":"nodeValidator",n=this.findValidator(t);if(!n)return[];const o=n.message;return o?[o]:[]}findValidator(e){const t=to[this.node.value];return t&&t[e]||null}isComplete(e){return!this.parameters.some((t=>this.isRequired(t.value)&&0===this.context.$shapes.dataset.match(e,t,null).size))}isRequired(e){return!this.optionals[e]}}class ao{constructor(e,t){const{$shapes:n,ns:o,shapesGraph:a}=e,{sh:r}=o;this.context=e,this.shapeNode=t,this.shapeNodePointer=n.node(t),this.severity=this.shapeNodePointer.out(r.severity).term||r.Violation,this.deactivated="true"===this.shapeNodePointer.out(r.deactivated).value,this.path=this.shapeNodePointer.out(r.path).term,this.isPropertyShape=null!=this.path,this._pathObject=void 0,this.constraints=[];const i=new Qt;[...n.dataset.match(t,null,null)].forEach((e=>{const o=a.getComponentWithParameter(e.predicate);o&&!i.has(o.node)&&(1===o.parameters.length?this.constraints.push(new no(this,o,e.object,n)):o.isComplete(t)&&(this.constraints.push(new no(this,o,void 0,n)),i.add(o.node)))}))}get pathObject(){const{$shapes:e,ns:t,allowNamedNodeInList:n}=this.context;return void 0===this._pathObject&&(this._pathObject=this.path?Bn(e.node(this.path),t,n):null),this._pathObject}getTargetNodes(e){const{$shapes:t,ns:n}=this.context,{rdfs:o,sh:a}=n,r=new Qt;Wn(t.node(this.shapeNode),t.node(o.Class),n)&&r.addAll(Hn(e.node(this.shapeNode),n)),[...t.dataset.match(this.shapeNode,a.targetClass,null)].forEach((({object:t})=>{r.addAll(Hn(e.node(t),n))}));const i=this.shapeNodePointer.out(a.targetNode).terms.filter((t=>e.dataset.match(t).size>0||e.dataset.match(null,t).size>0||e.dataset.match(null,null,t).size>0));return r.addAll(i),this.shapeNodePointer.out(a.targetSubjectsOf).terms.forEach((t=>{const n=[...e.dataset.match(null,t,null)].map((({subject:e})=>e));r.addAll(n)})),this.shapeNodePointer.out(a.targetObjectsOf).terms.forEach((t=>{const n=[...e.dataset.match(null,t,null)].map((({object:e})=>e));r.addAll(n)})),[...r]}getValueNodes(e,t){return this.path?Fn(t,e,this.pathObject):[e]}}const ro=class{constructor(e){this.context=e;const{sh:t}=e.ns,n=Hn(e.$shapes.node(t.ConstraintComponent),e.ns);this._components=[...n].map((t=>new oo(t,e))),this._parametersMap=new Map;for(const e of this._components)for(const t of e.parameters)this._parametersMap.set(t.value,e);this._shapes=new Map}getComponentWithParameter(e){return this._parametersMap.get(e.value)}getShape(e){if(!this._shapes.has(e.value)){const t=new ao(this.context,e);this._shapes.set(e.value,t)}return this._shapes.get(e.value)}get shapeNodesWithConstraints(){if(!this._shapeNodesWithConstraints){const e=new Qt;for(const t of this._components){const n=t.requiredParameters;for(const t of n){const n=[...this.context.$shapes.dataset.match(null,t,null)].map((({subject:e})=>e));e.addAll(n)}}this._shapeNodesWithConstraints=[...e]}return this._shapeNodesWithConstraints}get shapesWithTarget(){const{$shapes:e,ns:t}=this.context,{rdfs:n,sh:o}=t;return this._shapesWithTarget||(this._shapesWithTarget=this.shapeNodesWithConstraints.filter((a=>Wn(e.node(a),e.node(n.Class),t)||e.node(a).out([o.targetClass,o.targetNode,o.targetSubjectsOf,o.targetObjectsOf,o.target]).terms.length>0)).map((e=>this.getShape(e)))),this._shapesWithTarget}};var io=n(7833);class so{constructor(e,t){this.pointer=e,this.term=e.term,this.dataset=e.dataset,this.ns=t}get message(){return this.pointer.out(this.ns.sh.resultMessage).terms||[]}get path(){return this.pointer.out(this.ns.sh.resultPath).term||null}get focusNode(){return this.pointer.out(this.ns.sh.focusNode).term||null}get severity(){return this.pointer.out(this.ns.sh.resultSeverity).term||null}get sourceConstraintComponent(){return this.pointer.out(this.ns.sh.sourceConstraintComponent).term||null}get sourceShape(){return this.pointer.out(this.ns.sh.sourceShape).term||null}get value(){return this.pointer.out(this.ns.sh.value).term||null}get detail(){return this.pointer.out(this.ns.sh.detail).map((e=>new so(e,this.ns)))}}const lo=class{constructor(e,t){t=t||{},this.factory=t.factory||Lt,this.ns=t.ns||kt(this.factory);const{sh:n,xsd:o}=this.ns;this.pointer=e,this.term=e.term,this.dataset=e.dataset;const a=e.out(n.result),r=0===a.terms.length;e.addOut(n.conforms,this.factory.literal(r.toString(),o.boolean)),this.conforms=r,this.results=a.toArray().map((e=>new so(e,this.ns)))}},uo=io("validation-enging::error");class co{constructor(e,t){this.context=e,this.factory=e.factory,this.maxErrors=t.maxErrors,this.initReport(),this.recordErrorsLevel=0,this.violationsCount=0,this.validationError=null,this.nestedResults={}}clone(){return new co(this.context,{maxErrors:this.maxErrors})}initReport(){const{rdf:e,sh:t}=this.context.ns;this.reportPointer=Ct({dataset:this.factory.dataset(),factory:this.factory,term:this.factory.blankNode("report")}).addOut(e.type,t.ValidationReport)}validateAll(e){if(this.maxErrorsReached())return!0;this.validationError=null;try{this.initReport();let t=!1;const n=this.context.shapesGraph.shapesWithTarget;for(const o of n){const n=o.getTargetNodes(e);for(const a of n)this.validateNodeAgainstShape(a,o,e)&&(t=!0)}return t}catch(e){return this.validationError=e,!0}}validateNodeAgainstShape(e,t,n){if(this.maxErrorsReached())return!0;if(t.deactivated)return!1;const o=t.getValueNodes(e,n);let a=!1;for(const r of t.constraints)this.validateNodeAgainstConstraint(e,o,r,n)&&(a=!0);return a}validateNodeAgainstConstraint(e,t,n,o){const{sh:a}=this.context.ns;if(this.maxErrorsReached())return!0;if(a.PropertyConstraintComponent.equals(n.component.node)){let e=!1;for(const a of t)this.validateNodeAgainstShape(a,this.context.shapesGraph.getShape(n.paramValue),o)&&(e=!0);return e}if(!n.validationFunction)throw new Error("Cannot find validator for constraint component "+n.component.node.value);if(n.isValidationFunctionGeneric){let o=!1;for(const a of t){if(this.maxErrorsReached())break;const t=this.validateValueNodeAgainstConstraint(e,a,n);t&&this.violationsCount++,o=o||t}return o}return this.validateValueNodeAgainstConstraint(e,null,n)}validateValueNodeAgainstConstraint(e,t,n){const{sh:o}=this.context.ns;this.recordErrorsLevel++;const a=n.validationFunction.execute(e,t,n),r=(Array.isArray(a)?a:[a]).map((o=>this.createResultFromObject(o,n,e,t))).filter(Boolean);if(1===this.recordErrorsLevel)for(const e of r)mo(e,this.reportPointer,o.result);else this.nestedResults[this.recordErrorsLevel]=(this.nestedResults[this.recordErrorsLevel]||[]).concat(r);return this.recordErrorsLevel--,r.length>0}maxErrorsReached(){return!!this.maxErrors&&this.violationsCount>=this.maxErrors}getReport(){if(this.validationError)throw uo("Validation Failure: "+this.validationError),this.validationError;return new lo(this.reportPointer,{factory:this.factory,ns:this.context.ns})}createResultFromObject(e,t,n,o){const{sh:a}=this.context.ns,r=this.normalizeValidationResult(e,o);if(!r)return null;const i=this.createResult(t,n);r.path?(i.addOut(a.resultPath,r.path),this.copyNestedStructure(r.path,i)):t.shape.isPropertyShape&&(i.addOut(a.resultPath,t.shape.path),this.copyNestedStructure(t.shape.path,i)),r.value?(i.addOut(a.value,r.value),this.copyNestedStructure(r.value,i)):o&&(i.addOut(a.value,o),this.copyNestedStructure(o,i));const d=this.createResultMessages(r,t);for(const e of d)i.addOut(a.resultMessage,e);return i}normalizeValidationResult(e,t){return!1===e?{value:t}:"string"==typeof e?{message:e,value:t}:"object"==typeof e?e:null}createResult(e,t){const{rdf:n,sh:o}=this.context.ns,a=e.shape.severity,r=e.component.node,i=e.shape.shapeNode,d=this.factory.blankNode(),s=Ct({dataset:this.factory.dataset(),term:d});s.addOut(n.type,o.ValidationResult).addOut(o.resultSeverity,a).addOut(o.sourceConstraintComponent,r).addOut(o.sourceShape,i).addOut(o.focusNode,t),this.copySourceShapeStructure(e.shape,s),this.copyNestedStructure(t,s);const l=this.nestedResults[this.recordErrorsLevel+1];if(l){if(r.equals(o.NodeConstraintComponent))for(const e of l)mo(e,s,o.detail);this.nestedResults[this.recordErrorsLevel+1]=[]}return s}copyNestedStructure(e,t){const n=Qn(this.context.$shapes.dataset,e);for(const e of n)t.dataset.add(e)}copySourceShapeStructure(e,t){const n=Gn(e,this.context.$shapes.dataset,e.shapeNode);for(const e of n)t.dataset.add(e)}createResultMessages(e,t){const{$shapes:n,ns:o}=this.context,{sh:a}=o;let r=[];return e.message&&(r=[this.factory.literal(e.message)]),0===r.length&&(r=n.node(t.shape.shapeNode).out(a.message).terms),0===r.length&&(r=t.componentMessages.map((e=>this.factory.literal(e)))),0===r.length&&(r=n.node(t.component.node).out(a.message).terms),r.map((e=>function(e,t,n){const o=t.component.parameters.reduce(((e,n)=>{const o=function(e){let t=e.lastIndexOf("#");if(t<0&&(t=e.lastIndexOf("/")),t<0)throw new Error(`Cannot get local name of ${e}`);return e.substring(t+1)}(n.value),a=function(e,t){const n=e.getParameterValue(t);if(!n)return"NULL";if("NamedNode"===n.termType)return"<"+n.value+">";if("BlankNode"===n.termType){if(e.nodeSet){const t=3;if(e.nodeSet.size>t){const n=Array.from(function*(e,t){let n=0;for(const o of t){if(n++===e)break;yield o}}(t,e.nodeSet)).map((e=>e.value));return n.join(", ")+` ... (and ${e.nodeSet.size-t} more)`}return Array.from(e.nodeSet).map((e=>e.value)).join(", ")}return"Blank node "+n.value}return n.value}(t,n);return e.replace(`{$${o}}`,a).replace(`{?${o}}`,a)}),e.value);return n.literal(o,e.language||e.datatype)}(e,t,this.factory)))}}function mo(e,t,n){for(const n of e.dataset)t.dataset.add(n);t.addOut(n,e)}const ho=co,po=class{constructor(e,t){t=t||{},this.factory=t.factory||Lt,this.ns=kt(this.factory),this.allowNamedNodeInList=void 0!==t.allowNamedNodeInList&&t.allowNamedNodeInList,this.loadShapes(e),this.validationEngine=new ho(this,t),this.depth=0}validate(e){return this.$data=Ct({dataset:e,factory:this.factory}),this.validationEngine.validateAll(this.$data),this.validationEngine.getReport()}validateNode(e,t,n){return this.$data=Ct({dataset:e,factory:this.factory}),this.nodeConformsToShape(t,n,this.validationEngine),this.validationEngine.getReport()}loadShapes(e){const t=(({factory:e})=>{const t=e,n="http://www.w3.org/ns/shacl#",o="http://www.w3.org/1999/02/22-rdf-syntax-ns#",a="http://www.w3.org/2002/07/owl#",r="http://www.w3.org/2000/01/rdf-schema#",i="http://www.w3.org/ns/shacl-shacl#",d="http://www.w3.org/2001/XMLSchema#",s="http://datashapes.org/dash#",l=[];for(let e=0;e<76;e++)l.push(t.blankNode());return[t.quad(t.namedNode(n),t.namedNode(`${o}type`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${r}comment`),t.literal("This vocabulary defines terms used in SHACL, the W3C Shapes Constraint Language.","en"),t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${r}label`),t.literal("W3C Shapes Constraint Language (SHACL) Vocabulary","en"),t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${n}declare`),l[0],t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(i),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}comment`),t.literal("The base class of validation results, typically not instantiated directly.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}label`),t.literal("Abstract result","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(`${n}path`),t.namedNode(`${n}and`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to test whether a value node conforms to all members of a provided list of shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${r}label`),t.literal("And constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${r}comment`),t.literal("The node kind of all blank nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${r}label`),t.literal("Blank node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${r}comment`),t.literal("The node kind of all blank nodes or IRIs.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${r}label`),t.literal("Blank node or IRI","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${r}comment`),t.literal("The node kind of all blank nodes or literals.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${r}label`),t.literal("Blank node or literal","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${n}path`),t.namedNode(`${n}class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that each value node is an instance of a given type.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${r}label`),t.literal("Class constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${n}path`),t.namedNode(`${n}closed`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${n}path`),t.namedNode(`${n}ignoredProperties`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to indicate that focus nodes must only have values for those properties that have been explicitly enumerated via sh:property/sh:path.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${r}label`),t.literal("Closed constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}comment`),t.literal("The class of constraint components.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}label`),t.literal("Constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${r}comment`),t.literal("A count expression is a blank node with exactly one value for the property sh:count which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${r}label`),t.literal("Count Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${n}property`),l[1],t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}count`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${n}path`),t.namedNode(`${n}datatype`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the datatype of all value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${r}label`),t.literal("Datatype constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${n}path`),t.namedNode(`${n}disjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that the set of value nodes is disjoint with the the set of nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${r}label`),t.literal("Disjoint constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${r}comment`),t.literal("A distinct expression is a blank node with exactly one value for the property sh:distinct which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${r}label`),t.literal("Distinct Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${n}property`),l[2],t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}distinct`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${n}path`),t.namedNode(`${n}equals`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that the set of value nodes is equal to the set of nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${r}label`),t.literal("Equals constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${r}comment`),t.literal("An exists expression is a blank node with exactly one value for sh:exists (which is a well-formed shape)."),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${r}label`),t.literal("Exists Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${n}property`),l[3],t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}exists`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(`${n}path`),t.namedNode(`${n}expression`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that a given node expression produces true for all value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${r}label`),t.literal("Expression constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${r}comment`),t.literal("A filter shape expression is a blank node with exactly one value for sh:filterShape (which is a well-formed shape) and at most one value for sh:nodes (which is a well-formed node expression)."),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${r}label`),t.literal("Filter Shape Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}property`),l[4],t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}property`),l[5],t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}filterShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FocusNodeOrConstantTermExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FocusNodeOrConstantTermExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRIOrLiteral`),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}comment`),t.literal("The class of SHACL functions.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}label`),t.literal("Function","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${r}comment`),t.literal("A function expression is a blank node that does not fulfill any of the syntax rules of the other node expression types and which is the subject of exactly one triple T where the object is a well-formed SHACL list, and each member of that list is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${r}label`),t.literal("Function Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${r}comment`),t.literal("A group concat expression is a blank node with exactly one value for the property sh:groupConcat which is a well-formed node expression. A group concat expression can have a single value for the property sh:separator which is literal with datatype xsd:string."),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${r}label`),t.literal("Group Concat Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}property`),l[6],t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}property`),l[7],t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}groupConcat`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(`${n}path`),t.namedNode(`${n}hasValue`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that one of the value nodes is a given RDF node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${r}label`),t.literal("Has-value constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${r}comment`),t.literal("The node kind of all IRIs.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${r}label`),t.literal("IRI","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${r}comment`),t.literal("The node kind of all IRIs or literals.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${r}label`),t.literal("IRI or literal","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${r}comment`),t.literal("An if expression is a blank node with exactly one value for sh:if (which is a well-formed node expression), at most one value for sh:then (which is a well-formed node expression) and at most one value for sh:else (which is a well-formed node expression)."),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${r}label`),t.literal("If Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}property`),l[8],t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}property`),l[9],t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}property`),l[10],t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}else`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}if`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}then`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${n}path`),t.namedNode(`${n}in`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to exclusively enumerate the permitted value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${r}label`),t.literal("In constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${o}type`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${r}comment`),t.literal("The severity for an informational validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${r}label`),t.literal("Info","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${r}comment`),t.literal("An intersection expression is a blank node with exactly one value for the property sh:intersection which is a well-formed SHACL list with at least two members (which are well-formed node expressions)."),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${r}label`),t.literal("Intersection Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${n}property`),l[11],t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}intersection`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint-js`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint-js`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint-js`),t.namedNode(`${n}path`),t.namedNode(`${n}js`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}comment`),t.literal("The class of constraints backed by a JavaScript function.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}label`),t.literal("JavaScript-based constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component with the parameter sh:js linking to a sh:JSConstraint containing a sh:script.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${r}label`),t.literal("JavaScript constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}JSConstraint-js`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}comment`),t.literal("Abstract base class of resources that declare an executable JavaScript.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}label`),t.literal("JavaScript executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}comment`),t.literal("The class of SHACL functions that execute a JavaScript function when called.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}label`),t.literal("JavaScript function","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Function`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}comment`),t.literal("Represents a JavaScript library, typically identified by one or more URLs of files to include.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}label`),t.literal("JavaScript library","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}comment`),t.literal("The class of SHACL rules expressed using JavaScript.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}label`),t.literal("JavaScript rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}comment`),t.literal("The class of targets that are based on JavaScript functions.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}label`),t.literal("JavaScript target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Target`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}comment`),t.literal("The (meta) class for parameterizable targets that are based on JavaScript functions.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}label`),t.literal("JavaScript target type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}TargetType`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}comment`),t.literal("A SHACL validator based on JavaScript. This can be used to declare SHACL constraint components that perform JavaScript-based validation when used.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}label`),t.literal("JavaScript validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${n}path`),t.namedNode(`${n}languageIn`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to enumerate language tags that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${r}label`),t.literal("Language-in constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${n}path`),t.namedNode(`${n}lessThan`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that each value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${r}label`),t.literal("Less-than constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${n}path`),t.namedNode(`${n}lessThanOrEquals`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that every value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${r}label`),t.literal("less-than-or-equals constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${r}comment`),t.literal("A limit expression is a blank node with exactly one value for the property sh:limit which is a literal with datatype xsd:integer and with exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${r}label`),t.literal("Limit Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}property`),l[12],t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}property`),l[13],t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}limit`),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${r}comment`),t.literal("The node kind of all literals.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${r}label`),t.literal("Literal","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${n}path`),t.namedNode(`${n}maxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the maximum number of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}maxExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a maximum exclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-exclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${r}comment`),t.literal("A max expression is a blank node with exactly one value for the property sh:max which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${r}label`),t.literal("Max Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${n}property`),l[14],t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}max`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}maxInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a maximum inclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-inclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${n}path`),t.namedNode(`${n}maxLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the maximum string length of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-length constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${n}path`),t.namedNode(`${n}minCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the minimum number of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}minExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a minimum exclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-exclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${r}comment`),t.literal("A min expression is a blank node with exactly one value for the property sh:min which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${r}label`),t.literal("Min Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${n}property`),l[15],t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}min`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}minInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a minimum inclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-inclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${n}path`),t.namedNode(`${n}minLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the minimum string length of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-length constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${r}comment`),t.literal("A minus expression is a blank node with exactly one value for the property sh:minus which is a well-formed node expression and exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${r}label`),t.literal("Minus Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}property`),l[16],t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}property`),l[17],t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}minus`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(`${n}path`),t.namedNode(`${n}node`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that all value nodes conform to the given node shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${r}label`),t.literal("Node constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${n}expression`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${n}values`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${n}xone`),l[18],t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}comment`),t.literal("The class of all node kinds, including sh:BlankNode, sh:IRI, sh:Literal or the combinations of these: sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral, sh:IRIOrLiteral.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}label`),t.literal("Node kind","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${n}in`),l[19],t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${n}path`),t.namedNode(`${n}nodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the RDF node kind of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${r}label`),t.literal("Node-kind constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}comment`),t.literal("A node shape is a shape that specifies constraint that need to be met with respect to focus nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}label`),t.literal("Node shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(`${n}path`),t.namedNode(`${n}not`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that value nodes do not conform to a given shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${r}label`),t.literal("Not constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${r}comment`),t.literal("An offset expression is a blank node with exactly one value for the property sh:offset which is a literal with datatype xsd:integer and with exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${r}label`),t.literal("Offset Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}property`),l[20],t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}property`),l[21],t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}offset`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(`${n}path`),t.namedNode(`${n}or`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the value nodes so that they conform to at least one out of several provided shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${r}label`),t.literal("Or constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${r}comment`),t.literal("An orderBy expression is a blank node with exactly one value for the property sh:orderBy which is a well-formed node expression and with exactly one value for the property sh:nodes which is a well-formed node expression. An orderBy expression can have one value for the property sh:desc which is either true or false."),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${r}label`),t.literal("OrderBy Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}property`),l[22],t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}property`),l[23],t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}property`),l[24],t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}orderBy`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}comment`),t.literal("The class of parameter declarations, consisting of a path predicate and (possibly) information about allowed value type, cardinality and other characteristics.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}label`),t.literal("Parameter","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}comment`),t.literal("Superclass of components that can take parameters, especially functions and constraint components.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}label`),t.literal("Parameterizable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${r}comment`),t.literal("A path expression is a blank node with exactly one value of the property sh:path (which are well-formed property paths) and at most one value for sh:nodes (which is a well-formed node expression)."),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${r}label`),t.literal("Path Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${n}property`),l[25],t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${n}property`),l[26],t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${n}path`),t.namedNode(`${n}flags`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${n}path`),t.namedNode(`${n}pattern`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that every value node matches a given regular expression.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${r}label`),t.literal("Pattern constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}comment`),t.literal("The class of prefix declarations, consisting of pairs of a prefix with a namespace.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}label`),t.literal("Prefix declaration","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(`${n}path`),t.namedNode(`${n}property`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that all value nodes conform to the given property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${r}label`),t.literal("Property constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}comment`),t.literal("Instances of this class represent groups of property shapes that belong together.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}label`),t.literal("Property group","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}comment`),t.literal("A property shape is a shape that specifies constraints on the values of a focus node for a given property or path.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}label`),t.literal("Property shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that a specified maximum number of value nodes conforms to a given shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Qualified-max-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedMinCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that a specified minimum number of value nodes conforms to a given shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Qualified-min-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}comment`),t.literal("A class of result annotations, which define the rules to derive the values of a given annotation property as extra values for a validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}label`),t.literal("Result annotation","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}comment`),t.literal("The class of SHACL rules. Never instantiated directly.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}label`),t.literal("Rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables that are based on an ASK query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL ASK executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${r}comment`),t.literal("A SPARQL ASK expression is a blank node with exactly one value for the property sh:ask which is string literal. The blank node may have values for the property sh:prefixes and these values are IRIs or blank nodes. Using the values of sh:prefixes as defined by 5.2.1 Prefix Declarations for SPARQL Queries, the value of sh:ask must be valid SPARQL 1.1 ASK query. The blank node may also have exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${r}label`),t.literal("SPARQL ASK Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}property`),l[27],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}property`),l[28],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}property`),l[29],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}ask`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}comment`),t.literal("The class of validators based on SPARQL ASK queries. The queries are evaluated for each value node and are supposed to return true if the given node conforms.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}label`),t.literal("SPARQL ASK validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}comment`),t.literal("The class of constraints based on SPARQL SELECT queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}label`),t.literal("SPARQL constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(`${n}path`),t.namedNode(`${n}sparql`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to define constraints based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${r}label`),t.literal("SPARQL constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables that are based on a CONSTRUCT query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL CONSTRUCT executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}comment`),t.literal("The class of resources that encapsulate a SPARQL query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}comment`),t.literal("A function backed by a SPARQL query - either ASK or SELECT.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}label`),t.literal("SPARQL function","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Function`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}comment`),t.literal("The class of SHACL rules based on SPARQL CONSTRUCT queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}label`),t.literal("SPARQL CONSTRUCT rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${n}property`),l[30],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${n}property`),l[31],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables based on a SELECT query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL SELECT executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${r}comment`),t.literal("A SPARQL SELECT expression is a blank node with exactly one value for the property sh:select which is string literal. The blank node may have values for the property sh:prefixes and these values are IRIs or blank nodes. Using the values of sh:prefixes as defined by 5.2.1 Prefix Declarations for SPARQL Queries, the value of sh:select must be valid SPARQL 1.1 SELECT query with exactly one result variable. The blank node may also have exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${r}label`),t.literal("SPARQL SELECT Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}property`),l[32],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}property`),l[33],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}property`),l[34],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}select`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}comment`),t.literal("The class of validators based on SPARQL SELECT queries. The queries are evaluated for each focus node and are supposed to produce bindings for all focus nodes that do not conform.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}label`),t.literal("SPARQL SELECT validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}comment`),t.literal("The class of targets that are based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}label`),t.literal("SPARQL target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Target`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}comment`),t.literal("The (meta) class for parameterizable targets that are based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}label`),t.literal("SPARQL target type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}TargetType`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables based on a SPARQL UPDATE.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL UPDATE executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}comment`),t.literal("The class of validation result severity levels, including violation and warning levels.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}label`),t.literal("Severity","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}comment`),t.literal("A shape is a collection of constraints that may be targeted for certain nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}label`),t.literal("Shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${r}comment`),t.literal("A sum expression is a blank node with exactly one value for the property sh:sum which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${r}label`),t.literal("Sum Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${n}property`),l[35],t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}sum`),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}comment`),t.literal("The base class of targets such as those based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}label`),t.literal("Target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}comment`),t.literal("The (meta) class for parameterizable targets.\tInstances of this are instantiated as values of the sh:target property.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}label`),t.literal("Target type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${r}label`),t.literal("A rule based on triple (subject, predicate, object) pattern.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${n}property`),l[36],t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${n}property`),l[37],t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${n}property`),l[38],t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${r}comment`),t.literal("A union expression is a blank node with exactly one value for the property sh:union which is a well-formed SHACL list with at least two members (which are well-formed node expressions)."),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${r}label`),t.literal("Union Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${n}property`),l[39],t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}union`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${n}path`),t.namedNode(`${n}uniqueLang`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to specify that no pair of value nodes may use the same language tag.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${r}label`),t.literal("Unique-languages constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}comment`),t.literal("The class of SHACL validation reports.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}label`),t.literal("Validation report","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}comment`),t.literal("The class of validation results.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}label`),t.literal("Validation result","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}comment`),t.literal("The class of validators, which provide instructions on how to process a constraint definition. This class serves as base class for the SPARQL-based validators and other possible implementations.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}label`),t.literal("Validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${o}type`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${r}comment`),t.literal("The severity for a violation validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${r}label`),t.literal("Violation","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${o}type`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${r}comment`),t.literal("The severity for a warning validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${r}label`),t.literal("Warning","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(`${n}path`),t.namedNode(`${n}xone`),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the value nodes so that they conform to exactly one out of several provided shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${r}label`),t.literal("Exactly one constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property must be a list of path elements, representing the elements of alternative paths.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}label`),t.literal("alternative path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}comment`),t.literal("RDF list of shapes to validate the value nodes against.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}label`),t.literal("and","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}comment`),t.literal("The annotation property that shall be set.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}domain`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}label`),t.literal("annotation property","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}comment`),t.literal("The (default) values of the annotation property.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}domain`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}label`),t.literal("annotation value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}comment`),t.literal("The name of the SPARQL variable from the SELECT clause that shall be used for the values.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}domain`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}label`),t.literal("annotation variable name","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}comment`),t.literal("The SPARQL ASK query to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}label`),t.literal("ask","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}comment`),t.literal("The type that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}label`),t.literal("class","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}range`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}comment`),t.literal("If set to true then the shape is closed.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}label`),t.literal("closed","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}comment`),t.literal("The shapes that the focus nodes need to conform to before a rule is executed on them.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}domain`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}label`),t.literal("condition","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}comment`),t.literal("True if the validation did not produce any validation results, and false otherwise.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}domain`),t.namedNode(`${n}ValidationReport`),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}label`),t.literal("conforms","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}comment`),t.literal("The SPARQL CONSTRUCT query to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}label`),t.literal("construct","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}count`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}comment`),t.literal("Specifies an RDF datatype that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}label`),t.literal("datatype","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}range`),t.namedNode(`${r}Datatype`),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}comment`),t.literal("If set to true then all nodes conform to this.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}label`),t.literal("deactivated","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}comment`),t.literal("Links a resource with its namespace prefix declarations.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}label`),t.literal("declare","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}range`),t.namedNode(`${n}PrefixDeclaration`),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}comment`),t.literal("A default value for a property, for example for user interface tools to pre-populate input fields.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}label`),t.literal("default value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}desc`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}comment`),t.literal("Human-readable descriptions for the property in the context of the surrounding shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}label`),t.literal("description","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}comment`),t.literal("Links a result with other results that provide more details, for example to describe violations against nested shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}label`),t.literal("detail","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}range`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}comment`),t.literal("Specifies a property where the set of values must be disjoint with the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}label`),t.literal("disjoint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}distinct`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}else`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}comment`),t.literal("An entailment regime that indicates what kind of inferencing is required by a shapes graph.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}label`),t.literal("entailment","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}comment`),t.literal("Specifies a property that must have the same values as the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}label`),t.literal("equals","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}exists`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${r}comment`),t.literal("The node expression that must return true for the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${r}label`),t.literal("expression","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}comment`),t.literal("The shape that all input nodes of the expression need to conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}label`),t.literal("filter shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}comment`),t.literal("An optional flag to be used with regular expression pattern matching.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}label`),t.literal("flags","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}comment`),t.literal("The focus node that was validated when the result was produced.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}label`),t.literal("focus node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}comment`),t.literal("Can be used to link to a property group to indicate that a property shape belongs to a group of related property shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}label`),t.literal("group","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}range`),t.namedNode(`${n}PropertyGroup`),t.namedNode(n)),t.quad(t.namedNode(`${n}groupConcat`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${r}comment`),t.literal("Specifies a value that must be among the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${r}label`),t.literal("has value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}if`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}comment`),t.literal("An optional RDF list of properties that are also permitted in addition to those explicitly enumerated via sh:property/sh:path.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}label`),t.literal("ignored properties","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}comment`),t.literal("Specifies a list of allowed values so that each value node must be among the members of the given list.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}label`),t.literal("in","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${r}comment`),t.literal("A list of node expressions that shall be intersected.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${r}label`),t.literal("intersection","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents an inverse path (object to subject).","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}label`),t.literal("inverse path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}comment`),t.literal("Constraints expressed in JavaScript."),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}label`),t.literal("JavaScript constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}range`),t.namedNode(`${n}JSConstraint`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}comment`),t.literal("The name of the JavaScript function to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}domain`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}label`),t.literal("JavaScript function name","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}comment`),t.literal("Declares which JavaScript libraries are needed to execute this.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}label`),t.literal("JavaScript library","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}range`),t.namedNode(`${n}JSLibrary`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}comment`),t.literal("Declares the URLs of a JavaScript library. This should be the absolute URL of a JavaScript file. Implementations may redirect those to local files.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}domain`),t.namedNode(`${n}JSLibrary`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}label`),t.literal("JavaScript library URL","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}range`),t.namedNode(`${d}anyURI`),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}comment`),t.literal("Outlines how human-readable labels of instances of the associated Parameterizable shall be produced. The values can contain {?paramName} as placeholders for the actual values of the given parameter.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}domain`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}label`),t.literal("label template","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}comment`),t.literal("Specifies a list of language tags that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}label`),t.literal("language in","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}comment`),t.literal("Specifies a property that must have smaller values than the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}label`),t.literal("less than","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}comment`),t.literal("Specifies a property that must have smaller or equal values than the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}label`),t.literal("less than or equals","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}limit`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}max`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum number of values in the set of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}label`),t.literal("max count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum exclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${r}label`),t.literal("max exclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum inclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${r}label`),t.literal("max inclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum string length of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}label`),t.literal("max length","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${r}comment`),t.literal("A human-readable message (possibly with placeholders for variables) explaining the cause of the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${r}label`),t.literal("message","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}min`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum number of values in the set of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}label`),t.literal("min count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum exclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${r}label`),t.literal("min exclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum inclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${r}label`),t.literal("min inclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum string length of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}label`),t.literal("min length","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}minus`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}comment`),t.literal("Human-readable labels for the property in the context of the surrounding shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}label`),t.literal("name","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}comment`),t.literal("The namespace associated with a prefix in a prefix declaration.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}domain`),t.namedNode(`${n}PrefixDeclaration`),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}label`),t.literal("namespace","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}range`),t.namedNode(`${d}anyURI`),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}comment`),t.literal("Specifies the node shape that all value nodes must conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}label`),t.literal("node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}range`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}comment`),t.literal("Specifies the node kind (e.g. IRI or literal) each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}label`),t.literal("node kind","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}range`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}comment`),t.literal("The validator(s) used to evaluate a constraint in the context of a node shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}domain`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}label`),t.literal("shape validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}range`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${r}comment`),t.literal("The node expression producing the input nodes of a filter shape expression.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${r}label`),t.literal("nodes","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}comment`),t.literal("Specifies a shape that the value nodes must not conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}label`),t.literal("not","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}comment`),t.literal("An expression producing the nodes that shall be inferred as objects.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}domain`),t.namedNode(`${n}TripleRule`),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}label`),t.literal("object","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}offset`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents a path that is matched one or more times.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}label`),t.literal("one or more path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}comment`),t.literal("Indicates whether a parameter is optional.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}domain`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}label`),t.literal("optional","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}comment`),t.literal("Specifies a list of shapes so that the value nodes must conform to at least one of the shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}label`),t.literal("or","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${r}comment`),t.literal("Specifies the relative order of this compared to its siblings. For example use 0 for the first, 1 for the second.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${r}label`),t.literal("order","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}orderBy`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}comment`),t.literal("The parameters of a function or constraint component.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}domain`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}label`),t.literal("parameter","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}range`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}comment`),t.literal("Specifies the property path of a property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}label`),t.literal("path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}comment`),t.literal("Specifies a regular expression pattern that the string representations of the value nodes must match.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}label`),t.literal("pattern","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}comment`),t.literal("An expression producing the properties that shall be inferred as predicates.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}domain`),t.namedNode(`${n}TripleRule`),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}label`),t.literal("predicate","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}comment`),t.literal("The prefix of a prefix declaration.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}domain`),t.namedNode(`${n}PrefixDeclaration`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}label`),t.literal("prefix","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}comment`),t.literal("The prefixes that shall be applied before parsing the associated SPARQL query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}label`),t.literal("prefixes","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}range`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}comment`),t.literal("Links a shape to its property shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}label`),t.literal("property","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}range`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}comment`),t.literal("The validator(s) used to evaluate a constraint in the context of a property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}domain`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}label`),t.literal("property validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}range`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}comment`),t.literal("The maximum number of value nodes that can conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}label`),t.literal("qualified max count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}comment`),t.literal("The minimum number of value nodes that must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}label`),t.literal("qualified min count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}comment`),t.literal("The shape that a specified number of values must conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}label`),t.literal("qualified value shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}comment`),t.literal("Can be used to mark the qualified value shape to be disjoint with its sibling shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}label`),t.literal("qualified value shapes disjoint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}comment`),t.literal("The validation results contained in a validation report.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}domain`),t.namedNode(`${n}ValidationReport`),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}label`),t.literal("result","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}range`),t.namedNode(`${n}ValidationResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}comment`),t.literal("Links a SPARQL validator with zero or more sh:ResultAnnotation instances, defining how to derive additional result properties based on the variables of the SELECT query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}label`),t.literal("result annotation","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}range`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}comment`),t.literal("Human-readable messages explaining the cause of the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}label`),t.literal("result message","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}comment`),t.literal("The path of a validation result, based on the path of the validated property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}label`),t.literal("result path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}comment`),t.literal("The severity of the result, e.g. warning.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}label`),t.literal("result severity","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}range`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}comment`),t.literal("The expected type of values returned by the associated function.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}domain`),t.namedNode(`${n}Function`),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}label`),t.literal("return type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}range`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}comment`),t.literal("The rules linked to a shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}label`),t.literal("rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}range`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}comment`),t.literal("The SPARQL SELECT query to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}label`),t.literal("select","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}separator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}comment`),t.literal("Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}label`),t.literal("severity","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}range`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}comment`),t.literal("Shapes graphs that should be used when validating this data graph.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}label`),t.literal("shapes graph","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}range`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}comment`),t.literal("If true then the validation engine was certain that the shapes graph has passed all SHACL syntax requirements during the validation process.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}domain`),t.namedNode(`${n}ValidationReport`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}label`),t.literal("shapes graph well-formed","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}comment`),t.literal("The constraint that was validated when the result was produced.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}label`),t.literal("source constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}comment`),t.literal("The constraint component that is the source of the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}label`),t.literal("source constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}range`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}comment`),t.literal("The shape that is was validated when the result was produced.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}label`),t.literal("source shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}comment`),t.literal("Links a shape with SPARQL constraints.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}label`),t.literal("constraint (in SPARQL)","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}range`),t.namedNode(`${n}SPARQLConstraint`),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}comment`),t.literal("An expression producing the resources that shall be inferred as subjects.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}domain`),t.namedNode(`${n}TripleRule`),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}label`),t.literal("subject","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}comment`),t.literal("Suggested shapes graphs for this ontology. The values of this property may be used in the absence of specific sh:shapesGraph statements.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}label`),t.literal("suggested shapes graph","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}range`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}sum`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}comment`),t.literal("Links a shape to a target specified by an extension language, for example instances of sh:SPARQLTarget.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}label`),t.literal("target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}range`),t.namedNode(`${n}Target`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}comment`),t.literal("Links a shape to a class, indicating that all instances of the class must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}label`),t.literal("target class","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}range`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}comment`),t.literal("Links a shape to individual nodes, indicating that these nodes must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}label`),t.literal("target node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}comment`),t.literal("Links a shape to a property, indicating that all all objects of triples that have the given property as their predicate must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}label`),t.literal("target objects of","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}comment`),t.literal("Links a shape to a property, indicating that all subjects of triples that have the given property as their predicate must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}label`),t.literal("target subjects of","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}then`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${o}type`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${r}comment`),t.literal("A node expression that represents the current focus node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${r}label`),t.literal("this","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${r}comment`),t.literal("A list of node expressions that shall be used together.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${r}label`),t.literal("union","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}comment`),t.literal("Specifies whether all node values must have a unique (or no) language tag.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}label`),t.literal("unique languages","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}comment`),t.literal("The SPARQL UPDATE to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}label`),t.literal("update","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}comment`),t.literal("The validator(s) used to evaluate constraints of either node or property shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}domain`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}label`),t.literal("validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}range`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}comment`),t.literal("An RDF node that has caused the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}label`),t.literal("value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}values`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}comment`),t.literal("Specifies a list of shapes so that the value nodes must conform to exactly one of the shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}label`),t.literal("exactly one","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents a path that is matched zero or more times.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}label`),t.literal("zero or more path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents a path that is matched zero or one times.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}label`),t.literal("zero or one path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}node`),t.namedNode(`${i}ShapeShape`),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}path`),t.namedNode(`${n}filterShape`),t.namedNode(n)),t.quad(l[40],t.namedNode(`${o}first`),t.namedNode(`${n}IfExpression`),t.namedNode(n)),t.quad(l[40],t.namedNode(`${o}rest`),l[41],t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}path`),t.namedNode(`${n}select`),t.namedNode(n)),t.quad(l[6],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[6],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[6],t.namedNode(`${n}path`),t.namedNode(`${n}separator`),t.namedNode(n)),t.quad(l[42],t.namedNode(`${o}first`),t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(n)),t.quad(l[42],t.namedNode(`${o}rest`),l[43],t.namedNode(n)),t.quad(l[19],t.namedNode(`${o}first`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(l[19],t.namedNode(`${o}rest`),l[44],t.namedNode(n)),t.quad(l[45],t.namedNode(`${o}first`),t.namedNode(`${n}MinExpression`),t.namedNode(n)),t.quad(l[45],t.namedNode(`${o}rest`),l[46],t.namedNode(n)),t.quad(l[47],t.namedNode(`${o}first`),t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(n)),t.quad(l[47],t.namedNode(`${o}rest`),l[48],t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}node`),t.namedNode(`${i}PathShape`),t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}path`),t.namedNode(`${n}path`),t.namedNode(n)),t.quad(l[49],t.namedNode(`${o}first`),t.namedNode(`${n}MinusExpression`),t.namedNode(n)),t.quad(l[49],t.namedNode(`${o}rest`),l[50],t.namedNode(n)),t.quad(l[46],t.namedNode(`${o}first`),t.namedNode(`${n}MaxExpression`),t.namedNode(n)),t.quad(l[46],t.namedNode(`${o}rest`),l[51],t.namedNode(n)),t.quad(l[52],t.namedNode(`${o}first`),t.namedNode(`${n}LimitExpression`),t.namedNode(n)),t.quad(l[52],t.namedNode(`${o}rest`),l[53],t.namedNode(n)),t.quad(l[8],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[8],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[8],t.namedNode(`${n}path`),t.namedNode(`${n}then`),t.namedNode(n)),t.quad(l[44],t.namedNode(`${o}first`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(l[44],t.namedNode(`${o}rest`),l[54],t.namedNode(n)),t.quad(l[55],t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${o}rest`),t.namedNode(n)),t.quad(l[5],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[5],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[5],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[56],t.namedNode(`${o}first`),l[57],t.namedNode(n)),t.quad(l[56],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[0],t.namedNode(`${n}namespace`),t.literal("http://www.w3.org/ns/shacl#"),t.namedNode(n)),t.quad(l[0],t.namedNode(`${n}prefix`),t.literal("sh"),t.namedNode(n)),t.quad(l[58],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(l[58],t.namedNode(`${n}not`),l[59],t.namedNode(n)),t.quad(l[18],t.namedNode(`${o}first`),t.namedNode(`${n}FocusNodeOrConstantTermExpression`),t.namedNode(n)),t.quad(l[18],t.namedNode(`${o}rest`),l[60],t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}path`),t.namedNode(`${n}min`),t.namedNode(n)),t.quad(l[30],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[30],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[30],t.namedNode(`${n}path`),t.namedNode(`${n}prefixes`),t.namedNode(n)),t.quad(l[61],t.namedNode(`${o}first`),l[55],t.namedNode(n)),t.quad(l[61],t.namedNode(`${o}rest`),l[62],t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}path`),t.namedNode(`${n}count`),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[33],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[33],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[33],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}node`),t.namedNode(`${s}ListShape`),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}path`),t.namedNode(`${n}intersection`),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}property`),l[64],t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}path`),t.namedNode(`${n}limit`),t.namedNode(n)),t.quad(l[59],t.namedNode(`${o}first`),t.namedNode(`${n}ExistsExpression`),t.namedNode(n)),t.quad(l[59],t.namedNode(`${o}rest`),l[40],t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}path`),t.namedNode(`${n}object`),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}path`),t.namedNode(`${n}distinct`),t.namedNode(n)),t.quad(l[65],t.namedNode(`${o}first`),t.namedNode(`${n}IntersectionExpression`),t.namedNode(n)),t.quad(l[65],t.namedNode(`${o}rest`),l[66],t.namedNode(n)),t.quad(l[57],t.namedNode(`${n}xone`),l[59],t.namedNode(n)),t.quad(l[34],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[34],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[34],t.namedNode(`${n}path`),t.namedNode(`${n}prefixes`),t.namedNode(n)),t.quad(l[67],t.namedNode(`${o}first`),t.namedNode(`${n}GroupConcatExpression`),t.namedNode(n)),t.quad(l[67],t.namedNode(`${o}rest`),l[68],t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[69],t.namedNode(`${n}property`),l[63],t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}path`),t.namedNode(`${n}ask`),t.namedNode(n)),t.quad(l[28],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[28],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[28],t.namedNode(`${n}path`),t.namedNode(`${n}prefixes`),t.namedNode(n)),t.quad(l[64],t.namedNode(`${n}minCount`),t.literal("2",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[64],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[64],t.namedNode(`${n}path`),l[61],t.namedNode(n)),t.quad(l[22],t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(l[22],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[22],t.namedNode(`${n}path`),t.namedNode(`${n}desc`),t.namedNode(n)),t.quad(l[29],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[29],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[29],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[41],t.namedNode(`${o}first`),t.namedNode(`${n}FilterShapeExpression`),t.namedNode(n)),t.quad(l[41],t.namedNode(`${o}rest`),l[70],t.namedNode(n)),t.quad(l[62],t.namedNode(`${o}first`),t.namedNode(`${o}first`),t.namedNode(n)),t.quad(l[62],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[48],t.namedNode(`${o}first`),t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(n)),t.quad(l[48],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[26],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[26],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[26],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[71],t.namedNode(`${o}first`),t.namedNode(`${n}CountExpression`),t.namedNode(n)),t.quad(l[71],t.namedNode(`${o}rest`),l[45],t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}path`),t.namedNode(`${n}groupConcat`),t.namedNode(n)),t.quad(l[54],t.namedNode(`${o}first`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(l[54],t.namedNode(`${o}rest`),l[72],t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}path`),t.namedNode(`${n}offset`),t.namedNode(n)),t.quad(l[50],t.namedNode(`${o}first`),t.namedNode(`${n}DistinctExpression`),t.namedNode(n)),t.quad(l[50],t.namedNode(`${o}rest`),l[71],t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}path`),t.namedNode(`${n}max`),t.namedNode(n)),t.quad(l[51],t.namedNode(`${o}first`),t.namedNode(`${n}SumExpression`),t.namedNode(n)),t.quad(l[51],t.namedNode(`${o}rest`),l[67],t.namedNode(n)),t.quad(l[68],t.namedNode(`${o}first`),t.namedNode(`${n}OrderByExpression`),t.namedNode(n)),t.quad(l[68],t.namedNode(`${o}rest`),l[52],t.namedNode(n)),t.quad(l[60],t.namedNode(`${o}first`),l[58],t.namedNode(n)),t.quad(l[60],t.namedNode(`${o}rest`),l[56],t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}path`),t.namedNode(`${n}orderBy`),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}path`),t.namedNode(`${n}sum`),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}node`),t.namedNode(`${i}ShapeShape`),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}path`),t.namedNode(`${n}exists`),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}path`),t.namedNode(`${n}subject`),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}and`),l[73],t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}node`),t.namedNode(`${s}ListShape`),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}path`),t.namedNode(`${n}intersection`),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}path`),t.namedNode(`${n}if`),t.namedNode(n)),t.quad(l[53],t.namedNode(`${o}first`),t.namedNode(`${n}OffsetExpression`),t.namedNode(n)),t.quad(l[53],t.namedNode(`${o}rest`),l[47],t.namedNode(n)),t.quad(l[72],t.namedNode(`${o}first`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[72],t.namedNode(`${o}rest`),l[42],t.namedNode(n)),t.quad(l[70],t.namedNode(`${o}first`),t.namedNode(`${n}PathExpression`),t.namedNode(n)),t.quad(l[70],t.namedNode(`${o}rest`),l[65],t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}path`),t.namedNode(`${n}predicate`),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}and`),l[74],t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}node`),t.namedNode(`${s}ListShape`),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}path`),t.namedNode(`${n}union`),t.namedNode(n)),t.quad(l[66],t.namedNode(`${o}first`),t.namedNode(`${n}UnionExpression`),t.namedNode(n)),t.quad(l[66],t.namedNode(`${o}rest`),l[49],t.namedNode(n)),t.quad(l[10],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[10],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[10],t.namedNode(`${n}path`),t.namedNode(`${n}else`),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}path`),t.namedNode(`${n}minus`),t.namedNode(n)),t.quad(l[74],t.namedNode(`${o}first`),l[75],t.namedNode(n)),t.quad(l[74],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[73],t.namedNode(`${o}first`),l[75],t.namedNode(n)),t.quad(l[73],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}path`),t.namedNode(`${n}construct`),t.namedNode(n)),t.quad(l[43],t.namedNode(`${o}first`),t.namedNode(`${n}IRIOrLiteral`),t.namedNode(n)),t.quad(l[43],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n))]})({factory:this.factory}),n=this.factory.dataset(t.concat([...e]));this.$shapes=Ct({dataset:n,factory:this.factory}),this.shapesGraph=new ro(this)}nodeConformsToShape(e,t,n=this.validationEngine.clone()){const o=this.shapesGraph.getShape(t);try{return this.depth++,!n.validateNodeAgainstShape(e,o,this.$data)}finally{this.depth--}}validateNodeAgainstShape(e,t){return this.nodeConformsToShape(e,t,this.validationEngine)}};var fo=function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,d)}s((o=o.apply(e,t||[])).next())}))};class No extends HTMLElement{static get observedAttributes(){return ze.dataAttributes()}constructor(e){super(),this.shape=null,this.attachShadow({mode:"open"}),this.form=document.createElement("form"),this.config=new ze(e,this.form),this.form.addEventListener("change",(e=>{e.stopPropagation(),this.config.editMode&&this.validate(!0).then((e=>{this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!0,detail:{valid:e}}))})).catch((e=>{console.log(e)}))}))}connectedCallback(){this.shadowRoot.prepend(this.form)}attributeChangedCallback(){this.config.updateAttributes(this),this.initialize()}initialize(){clearTimeout(this.initDebounceTimeout),this.initDebounceTimeout=setTimeout((()=>fo(this,void 0,void 0,(function*(){this.form.replaceChildren(document.createTextNode(this.config.attributes.loading));try{yield this.config.loader.loadGraphs(),this.form.replaceChildren();const e=this.findRootShaclShapeSubject();if(e){this.form.classList.forEach((e=>{this.form.classList.remove(e)})),this.form.classList.toggle("mode-edit",this.config.editMode),this.form.classList.toggle("mode-view",!this.config.editMode),this.config.theme.apply(this.form);const t=[this.config.theme.stylesheet];for(const e of Object.entries(de).map((e=>e[1])))e.stylesheet&&t.push(e.stylesheet);if(this.shadowRoot.adoptedStyleSheets=t,this.shape=new be(e,this.config,this.config.attributes.valuesSubject?h.namedNode(this.config.attributes.valuesSubject):void 0),this.form.appendChild(this.shape),this.config.editMode){if(null!==this.config.attributes.submitButton){const e=this.config.theme.createButton(this.config.attributes.submitButton||"Submit",!0);e.addEventListener("click",(e=>{e.preventDefault(),this.form.reportValidity()&&this.validate().then((e=>{var t;e?this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0})):null===(t=this.form.querySelector(":scope .invalid > .editor"))||void 0===t||t.focus()}))})),this.form.appendChild(e)}yield this.validate(!0)}}else if(this.config.shapesGraph.size>0)throw new Error("shacl root node shape not found")}catch(e){console.error(e);const t=document.createElement("div");t.innerText=String(e),this.form.replaceChildren(t)}}))),200)}serialize(e="text/turtle",t=this.toRDF()){return function(e,t,n){if("application/ld+json"===t)return function(e){const t=[];for(const n of e){const e={"@id":n.subject.id};if(n.predicate===T)e["@type"]=n.object.id;else{let t=n.object.value;n.object instanceof N?n.object.language?t={"@language":n.object.language,"@value":n.object.value}:n.object.datatype&&n.object.datatype.value!==`${_}#string`&&(t={"@type":n.object.datatype.value,"@value":n.object.value}):t={"@id":n.object.id},e[n.predicate.value]=t}t.push(e)}return JSON.stringify(t)}(e);{const o=new oe({format:t,prefixes:n});o.addQuads(e);let a="";return o.end(((e,t)=>{e&&console.error(e),a=t})),a}}(t.getQuads(null,null,null,null),e,this.config.prefixes)}toRDF(e=new xe){var t;return null===(t=this.shape)||void 0===t||t.toRDF(e),e}registerPlugin(e){se(e),this.initialize()}setTheme(e){this.config.theme=e,this.initialize()}setClassInstanceProvider(e){this.config.classInstanceProvider=e,this.initialize()}validate(){return fo(this,arguments,void 0,(function*(e=!1){var t,n,o;for(const e of this.form.querySelectorAll(":scope .validation-error"))e.remove();for(const e of this.form.querySelectorAll(":scope .property-instance"))e.classList.remove("invalid"),(null===(t=e.querySelector(":scope > .editor"))||void 0===t?void 0:t.value)?e.classList.add("valid"):e.classList.remove("valid");this.config.shapesGraph.deleteGraph(""),null===(n=this.shape)||void 0===n||n.toRDF(this.config.shapesGraph);try{const t=yield new po(this.config.shapesGraph).validate(this.config.shapesGraph);for(const n of t.results){const t=n.focusNode;if(n.path){const o=n.path;let a=this.form.querySelectorAll(`:scope [data-node-id='${t.id}'] [data-path='${o.id}'] > .editor`);0===a.length&&(a=this.form.querySelectorAll(`:scope [data-node-id='${t.id}'] [data-path='${o.id}']`));for(const t of a)if(t.classList.contains("editor")){if(!e||t.value){let e=t.parentElement;e.classList.add("invalid"),e.classList.remove("valid"),e.appendChild(this.createValidationErrorDisplay(n));do{e.classList.contains("collapsible")&&e.classList.add("open"),e=e.parentElement}while(e)}}else e||(t.classList.add("invalid"),t.classList.remove("valid"),t.appendChild(this.createValidationErrorDisplay(n,"node")))}else e||null===(o=this.form.querySelector(`:scope [data-node-id='${t.id}']`))||void 0===o||o.prepend(this.createValidationErrorDisplay(n,"node"))}return t.conforms}catch(e){return console.error(e),!1}}))}createValidationErrorDisplay(e,t){var n,o;const a=document.createElement("span");if(a.classList.add("validation-error"),t&&a.classList.add(t),e)if((null===(n=e.message)||void 0===n?void 0:n.length)>0)for(const t of e.message)a.title+=t.value+"\n";else a.title=null===(o=e.sourceConstraintComponent)||void 0===o?void 0:o.value;return a}findRootShaclShapeSubject(){let e=null;if(this.config.attributes.shapeSubject){if(e=h.namedNode(this.config.attributes.shapeSubject),!this.config.shapesGraph.has(new $(e,T,P,I)))return void console.warn(`shapes graph does not contain requested root shape ${this.config.attributes.shapeSubject}`)}else if(this.config.attributes.valuesSubject&&this.config.dataGraph.size>0){const t=h.namedNode(this.config.attributes.valuesSubject),n=this.config.dataGraph.getQuads(t,T,null,null);if(0===n.length)return void console.warn(`value subject '${this.config.attributes.valuesSubject}' has no ${T.id} statement`);for(const t of n)if(this.config.shapesGraph.has(new $(t.object,T,P,I))){e=t.object;break}if(!e){const t=this.config.shapesGraph.getQuads(null,O,n[0].object,I);if(0===t.length)return void console.error(`value subject '${this.config.attributes.valuesSubject}' has no shacl shape definition in the shapes graph`);if(t.length>1&&console.warn(`value subject '${this.config.attributes.valuesSubject}' has multiple shacl shape definitions in the shapes graph, choosing the first found (${t[0].subject})`),0===this.config.shapesGraph.getQuads(t[0].subject,T,P,I).length)return void console.error(`value subject '${this.config.attributes.valuesSubject}' references a shape which is not a NodeShape (${t[0].subject})`);e=t[0].subject}}else{const t=this.config.shapesGraph.getQuads(null,T,P,I);if(0==t.length)return void console.warn("shapes graph does not contain any root shapes");t.length>1&&(console.warn("shapes graph contains",t.length,"root shapes. choosing first found which is",t[0].subject.value),console.info('hint: set the shape to use with attribute "data-shape-subject"')),e=t[0].subject}return e}}function go(e,t,n,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var d=e.length-1;d>=0;d--)(a=e[d])&&(i=(r<3?a(i):r>3?a(t,n,i):a(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const vo=e=>(t,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},yo=globalThis,bo=yo.ShadowRoot&&(void 0===yo.ShadyCSS||yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$o=Symbol(),xo=new WeakMap;class wo{constructor(e,t,n){if(this._$cssResult$=!0,n!==$o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(bo&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=xo.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&xo.set(t,e))}return e}toString(){return this.cssText}}const _o=(e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[o+1]),e[0]);return new wo(n,e,$o)},Co=bo?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new wo("string"==typeof e?e:e+"",void 0,$o))(t)})(e):e,{is:So,defineProperty:qo,getOwnPropertyDescriptor:Eo,getOwnPropertyNames:Io,getOwnPropertySymbols:Ao,getPrototypeOf:To}=Object,Ro=globalThis,Lo=Ro.trustedTypes,ko=Lo?Lo.emptyScript:"",Po=Ro.reactiveElementPolyfillSupport,jo=(e,t)=>e,Oo={toAttribute(e,t){switch(t){case Boolean:e=e?ko:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},Do=(e,t)=>!So(e,t),Mo={attribute:!0,type:String,converter:Oo,reflect:!1,hasChanged:Do};Symbol.metadata??=Symbol("metadata"),Ro.litPropertyMetadata??=new WeakMap;class Bo extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Mo){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(e,n,t);void 0!==o&&qo(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:a}=Eo(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const r=o?.call(this);a.call(this,t),this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Mo}static _$Ei(){if(this.hasOwnProperty(jo("elementProperties")))return;const e=To(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(jo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jo("properties"))){const e=this.properties,t=[...Io(e),...Ao(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(Co(e))}else void 0!==e&&t.push(Co(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(bo)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),o=yo.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=n.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(void 0!==o&&!0===n.reflect){const a=(void 0!==n.converter?.toAttribute?n.converter:Oo).toAttribute(t,n.type);this._$Em=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(e,t){const n=this.constructor,o=n._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=n.getPropertyOptions(o),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:Oo;this._$Em=o,this[o]=a.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Do)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e)!0!==n.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}Bo.elementStyles=[],Bo.shadowRootOptions={mode:"open"},Bo[jo("elementProperties")]=new Map,Bo[jo("finalized")]=new Map,Po?.({ReactiveElement:Bo}),(Ro.reactiveElementVersions??=[]).push("2.0.4");const Fo={attribute:!0,type:String,converter:Oo,reflect:!1,hasChanged:Do},Vo=(e=Fo,t,n)=>{const{kind:o,metadata:a}=n;let r=globalThis.litPropertyMetadata.get(a);if(void 0===r&&globalThis.litPropertyMetadata.set(a,r=new Map),r.set(n.name,e),"accessor"===o){const{name:o}=n;return{set(n){const a=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,a,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=n;return function(n){const a=this[o];t.call(this,n),this.requestUpdate(o,a,e)}}throw Error("Unsupported decorator location: "+o)};function Uo(e){return(t,n)=>"object"==typeof n?Vo(e,t,n):((e,t,n)=>{const o=t.hasOwnProperty(n);return t.constructor.createProperty(n,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function zo(e){return Uo({...e,state:!0,attribute:!1})}const Qo=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function Go(e,t){return(n,o,a)=>{const r=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?n:a??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Qo(n,o,{get(){let n=e.call(this);return void 0===n&&(n=r(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return Qo(n,o,{get(){return r(this)}})}}let Ho;function Jo(e){return(t,n)=>{const{slot:o,selector:a}=e??{},r="slot"+(o?`[name=${o}]`:":not([name])");return Qo(t,n,{get(){const t=this.renderRoot?.querySelector(r),n=t?.assignedElements(e)??[];return void 0===a?n:n.filter((e=>e.matches(a)))}})}}const Wo=globalThis,Ko=Wo.trustedTypes,Xo=Ko?Ko.createPolicy("lit-html",{createHTML:e=>e}):void 0,Yo="$lit$",Zo=`lit$${Math.random().toFixed(9).slice(2)}$`,ea="?"+Zo,ta=`<${ea}>`,na=document,oa=()=>na.createComment(""),aa=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ra=Array.isArray,ia=e=>ra(e)||"function"==typeof e?.[Symbol.iterator],da="[ \t\n\f\r]",sa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,la=/-->/g,ua=/>/g,ca=RegExp(`>|${da}(?:([^\\s"'>=/]+)(${da}*=${da}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ma=/'/g,ha=/"/g,pa=/^(?:script|style|textarea|title)$/i,fa=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Na=fa(1),ga=fa(2),va=Symbol.for("lit-noChange"),ya=Symbol.for("lit-nothing"),ba=new WeakMap,$a=na.createTreeWalker(na,129);function xa(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Xo?Xo.createHTML(t):t}const wa=(e,t)=>{const n=e.length-1,o=[];let a,r=2===t?"<svg>":"",i=sa;for(let t=0;t<n;t++){const n=e[t];let d,s,l=-1,u=0;for(;u<n.length&&(i.lastIndex=u,s=i.exec(n),null!==s);)u=i.lastIndex,i===sa?"!--"===s[1]?i=la:void 0!==s[1]?i=ua:void 0!==s[2]?(pa.test(s[2])&&(a=RegExp("</"+s[2],"g")),i=ca):void 0!==s[3]&&(i=ca):i===ca?">"===s[0]?(i=a??sa,l=-1):void 0===s[1]?l=-2:(l=i.lastIndex-s[2].length,d=s[1],i=void 0===s[3]?ca:'"'===s[3]?ha:ma):i===ha||i===ma?i=ca:i===la||i===ua?i=sa:(i=ca,a=void 0);const c=i===ca&&e[t+1].startsWith("/>")?" ":"";r+=i===sa?n+ta:l>=0?(o.push(d),n.slice(0,l)+Yo+n.slice(l)+Zo+c):n+Zo+(-2===l?t:c)}return[xa(e,r+(e[n]||"<?>")+(2===t?"</svg>":"")),o]};class _a{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let a=0,r=0;const i=e.length-1,d=this.parts,[s,l]=wa(e,t);if(this.el=_a.createElement(s,n),$a.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=$a.nextNode())&&d.length<i;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(Yo)){const t=l[r++],n=o.getAttribute(e).split(Zo),i=/([.?@])?(.*)/.exec(t);d.push({type:1,index:a,name:i[2],strings:n,ctor:"."===i[1]?Ia:"?"===i[1]?Aa:"@"===i[1]?Ta:Ea}),o.removeAttribute(e)}else e.startsWith(Zo)&&(d.push({type:6,index:a}),o.removeAttribute(e));if(pa.test(o.tagName)){const e=o.textContent.split(Zo),t=e.length-1;if(t>0){o.textContent=Ko?Ko.emptyScript:"";for(let n=0;n<t;n++)o.append(e[n],oa()),$a.nextNode(),d.push({type:2,index:++a});o.append(e[t],oa())}}}else if(8===o.nodeType)if(o.data===ea)d.push({type:2,index:a});else{let e=-1;for(;-1!==(e=o.data.indexOf(Zo,e+1));)d.push({type:7,index:a}),e+=Zo.length-1}a++}}static createElement(e,t){const n=na.createElement("template");return n.innerHTML=e,n}}function Ca(e,t,n=e,o){if(t===va)return t;let a=void 0!==o?n._$Co?.[o]:n._$Cl;const r=aa(t)?void 0:t._$litDirective$;return a?.constructor!==r&&(a?._$AO?.(!1),void 0===r?a=void 0:(a=new r(e),a._$AT(e,n,o)),void 0!==o?(n._$Co??=[])[o]=a:n._$Cl=a),void 0!==a&&(t=Ca(e,a._$AS(e,t.values),a,o)),t}class Sa{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,o=(e?.creationScope??na).importNode(t,!0);$a.currentNode=o;let a=$a.nextNode(),r=0,i=0,d=n[0];for(;void 0!==d;){if(r===d.index){let t;2===d.type?t=new qa(a,a.nextSibling,this,e):1===d.type?t=new d.ctor(a,d.name,d.strings,this,e):6===d.type&&(t=new Ra(a,this,e)),this._$AV.push(t),d=n[++i]}r!==d?.index&&(a=$a.nextNode(),r++)}return $a.currentNode=na,o}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class qa{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=ya,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ca(this,e,t),aa(e)?e===ya||null==e||""===e?(this._$AH!==ya&&this._$AR(),this._$AH=ya):e!==this._$AH&&e!==va&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):ia(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==ya&&aa(this._$AH)?this._$AA.nextSibling.data=e:this.T(na.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=_a.createElement(xa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new Sa(o,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=ba.get(e.strings);return void 0===t&&ba.set(e.strings,t=new _a(e)),t}k(e){ra(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,o=0;for(const a of e)o===t.length?t.push(n=new qa(this.S(oa()),this.S(oa()),this,this.options)):n=t[o],n._$AI(a),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Ea{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,a){this.type=1,this._$AH=ya,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ya}_$AI(e,t=this,n,o){const a=this.strings;let r=!1;if(void 0===a)e=Ca(this,e,t,0),r=!aa(e)||e!==this._$AH&&e!==va,r&&(this._$AH=e);else{const o=e;let i,d;for(e=a[0],i=0;i<a.length-1;i++)d=Ca(this,o[n+i],t,i),d===va&&(d=this._$AH[i]),r||=!aa(d)||d!==this._$AH[i],d===ya?e=ya:e!==ya&&(e+=(d??"")+a[i+1]),this._$AH[i]=d}r&&!o&&this.j(e)}j(e){e===ya?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ia extends Ea{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ya?void 0:e}}class Aa extends Ea{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ya)}}class Ta extends Ea{constructor(e,t,n,o,a){super(e,t,n,o,a),this.type=5}_$AI(e,t=this){if((e=Ca(this,e,t,0)??ya)===va)return;const n=this._$AH,o=e===ya&&n!==ya||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==ya&&(n===ya||o);o&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ra{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ca(this,e)}}const La={P:Yo,A:Zo,C:ea,M:1,L:wa,R:Sa,D:ia,V:Ca,I:qa,H:Ea,N:Aa,U:Ta,B:Ia,F:Ra},ka=Wo.litHtmlPolyfillSupport;ka?.(_a,qa),(Wo.litHtmlVersions??=[]).push("3.1.4");const Pa=(e,t,n)=>{const o=n?.renderBefore??t;let a=o._$litPart$;if(void 0===a){const e=n?.renderBefore??null;o._$litPart$=a=new qa(t.insertBefore(oa(),e),e,void 0,n??{})}return a._$AI(e),a};class ja extends Bo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pa(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return va}}ja._$litElement$=!0,ja.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ja});const Oa=globalThis.litElementPolyfillSupport;Oa?.({LitElement:ja}),(globalThis.litElementVersions??=[]).push("4.0.6");const Da=e=>(...t)=>({_$litDirective$:e,values:t});class Ma{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Ba=Da(class extends Ma{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const o=!!t[e];o===this.st.has(e)||this.nt?.has(e)||(o?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return va}}),Fa="cubic-bezier(0.2, 0, 0, 1)",Va="cubic-bezier(.3,0,0,1)",Ua="cubic-bezier(.3,0,.8,.15)";class za extends ja{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,t=this.max??-1;return e<0||t<=0?"":`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&void 0!==e.get("disabled")&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){const e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),o={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return Na`
2
+ var e={5568:e=>{const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},7526:(e,t)=>{t.byteLength=function(e){var t=d(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,r=d(e),i=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,i,s)),u=0,c=s>0?i-4:i;for(n=0;n<c;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,o=e.length,a=o%3,r=[],i=16383,d=0,l=o-a;d<l;d+=i)r.push(s(e,d,d+i>l?l:d+i));return 1===a?(t=e[o-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[o-2]<<8)+e[o-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),r.join("")};for(var n=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)n[i]=r[i],o[r.charCodeAt(i)]=i;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,o){for(var a,r,i=[],d=t;d<o;d+=3)a=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(255&e[d+2]),i.push(n[(r=a)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},8287:(e,t,n)=>{const o=n(7526),a=n(251),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50;const i=2147483647;function d(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let o=d(n);const a=o.write(e,t);return a!==n&&(o=o.slice(0,a)),o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return s.from(o,t,n);const a=function(e){if(s.isBuffer(e)){const t=0|p(e.length),n=d(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?d(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),d(e<0?0:0|p(e))}function m(e){const t=e.length<0?0:0|p(e.length),n=d(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,s.prototype),o}function p(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(a)return o?-1:G(e).length;t=(""+t).toLowerCase(),a=!0}}function N(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function v(e,t,n,o,a){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=s.from(t,o)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,o,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,o,a);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,o,a){let r,i=1,d=e.length,s=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;i=2,d/=2,s/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){let o=-1;for(r=n;r<d;r++)if(l(e,r)===l(t,-1===o?0:r-o)){if(-1===o&&(o=r),r-o+1===s)return o*i}else-1!==o&&(r-=r-o),o=-1}else for(n+s>d&&(n=d-s),r=n;r>=0;r--){let n=!0;for(let o=0;o<s;o++)if(l(e,r+o)!==l(t,o)){n=!1;break}if(n)return r}return-1}function b(e,t,n,o){n=Number(n)||0;const a=e.length-n;o?(o=Number(o))>a&&(o=a):o=a;const r=t.length;let i;for(o>r/2&&(o=r/2),i=0;i<o;++i){const o=parseInt(t.substr(2*i,2),16);if(K(o))return i;e[n+i]=o}return i}function $(e,t,n,o){return J(G(t,e.length-n),e,n,o)}function x(e,t,n,o){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function w(e,t,n,o){return J(H(t),e,n,o)}function _(e,t,n,o){return J(function(e,t){let n,o,a;const r=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),o=n>>8,a=n%256,r.push(a),r.push(o);return r}(t,e.length-n),e,n,o)}function C(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const o=[];let a=t;for(;a<n;){const t=e[a];let r=null,i=t>239?4:t>223?3:t>191?2:1;if(a+i<=n){let n,o,d,s;switch(i){case 1:t<128&&(r=t);break;case 2:n=e[a+1],128==(192&n)&&(s=(31&t)<<6|63&n,s>127&&(r=s));break;case 3:n=e[a+1],o=e[a+2],128==(192&n)&&128==(192&o)&&(s=(15&t)<<12|(63&n)<<6|63&o,s>2047&&(s<55296||s>57343)&&(r=s));break;case 4:n=e[a+1],o=e[a+2],d=e[a+3],128==(192&n)&&128==(192&o)&&128==(192&d)&&(s=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&d,s>65535&&s<1114112&&(r=s))}}null===r?(r=65533,i=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),a+=i}return function(e){const t=e.length;if(t<=q)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=q));return n}(o)}t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?d(e):void 0!==t?"string"==typeof n?d(e).fill(t,n):d(e).fill(t):d(e)}(e,t,n)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let a=0,r=Math.min(n,o);a<r;++a)if(e[a]!==t[a]){n=e[a],o=t[a];break}return n<o?-1:o<n?1:0},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const o=s.allocUnsafe(t);let a=0;for(n=0;n<e.length;++n){let t=e[n];if(W(t,Uint8Array))a+t.length>o.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(o,a)):Uint8Array.prototype.set.call(o,t,a);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,a)}a+=t.length}return o},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):N.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,o,a){if(W(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===a&&(a=this.length),t<0||n>e.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&t>=n)return 0;if(o>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(a>>>=0)-(o>>>=0),i=(n>>>=0)-(t>>>=0);const d=Math.min(r,i),l=this.slice(o,a),u=e.slice(t,n);for(let e=0;e<d;++e)if(l[e]!==u[e]){r=l[e],i=u[e];break}return r<i?-1:i<r?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return $(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const q=4096;function E(e,t,n){let o="";n=Math.min(e.length,n);for(let a=t;a<n;++a)o+=String.fromCharCode(127&e[a]);return o}function I(e,t,n){let o="";n=Math.min(e.length,n);for(let a=t;a<n;++a)o+=String.fromCharCode(e[a]);return o}function A(e,t,n){const o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let a="";for(let o=t;o<n;++o)a+=X[e[o]];return a}function T(e,t,n){const o=e.slice(t,n);let a="";for(let e=0;e<o.length-1;e+=2)a+=String.fromCharCode(o[e]+256*o[e+1]);return a}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,o,a,r){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function k(e,t,n,o,a){V(t,o,a,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,n}function P(e,t,n,o,a){V(t,o,a,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=i,i>>=8,e[n+2]=i,i>>=8,e[n+1]=i,i>>=8,e[n]=i,n+8}function j(e,t,n,o,a,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,o,r){return t=+t,n>>>=0,r||j(e,0,n,4),a.write(e,t,n,o,23,4),n+4}function D(e,t,n,o,r){return t=+t,n>>>=0,r||j(e,0,n,8),a.write(e,t,n,o,52,8),n+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,s.prototype),o},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=this[e],a=1,r=0;for(;++r<t&&(a*=256);)o+=this[e+r]*a;return o},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=this[e+--t],a=1;for(;t>0&&(a*=256);)o+=this[e+--t]*a;return o},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(o)+(BigInt(a)<<BigInt(32))})),s.prototype.readBigUInt64BE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(a)})),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=this[e],a=1,r=0;for(;++r<t&&(a*=256);)o+=this[e+r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let o=t,a=1,r=this[e+--o];for(;o>0&&(a*=256);)r+=this[e+--o]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=Y((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||L(this,e,t,n,Math.pow(2,8*n)-1,0);let a=1,r=0;for(this[t]=255&e;++r<n&&(a*=256);)this[t+r]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,o){e=+e,t>>>=0,n>>>=0,o||L(this,e,t,n,Math.pow(2,8*n)-1,0);let a=n-1,r=1;for(this[t+a]=255&e;--a>=0&&(r*=256);)this[t+a]=e/r&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Y((function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=Y((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}let a=0,r=1,i=0;for(this[t]=255&e;++a<n&&(r*=256);)e<0&&0===i&&0!==this[t+a-1]&&(i=1),this[t+a]=(e/r|0)-i&255;return t+n},s.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}let a=n-1,r=1,i=0;for(this[t+a]=255&e;--a>=0&&(r*=256);)e<0&&0===i&&0!==this[t+a+1]&&(i=1),this[t+a]=(e/r|0)-i&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Y((function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=Y((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,o){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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),e.length-t<o-n&&(o=e.length-t+n);const a=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),a},s.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!s.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{const r=s.isBuffer(e)?e:s.from(e,o),i=r.length;if(0===i)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=r[a%i]}return this};const M={};function B(e,t,n){M[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,o,a,r){if(e>n||e<t){const o="bigint"==typeof t?"n":"";let a;throw a=r>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(r+1)}${o}`:`>= -(2${o} ** ${8*(r+1)-1}${o}) and < 2 ** ${8*(r+1)-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new M.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(o,a,r)}function U(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let o=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=F(String(n)):"bigint"==typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=F(a)),a+="n"),o+=` It must be ${t}. Received ${a}`,o}),RangeError);const Q=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const o=e.length;let a=null;const r=[];for(let i=0;i<o;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(i+1===o){(t-=3)>-1&&r.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&r.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function H(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,o){let a;for(a=0;a<o&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let a=0;a<16;++a)t[o+a]=e[n]+e[a]}return t}();function Y(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},2341:e=>{e.exports=function e(t){return null===t||"object"!=typeof t||null!=t.toJSON?JSON.stringify(t):Array.isArray(t)?"["+t.reduce(((t,n,o)=>t+(0===o?"":",")+e(void 0===n||"symbol"==typeof n?null:n)),"")+"]":"{"+Object.keys(t).sort().reduce(((n,o,a)=>void 0===t[o]||"symbol"==typeof t[o]?n:n+(0===n.length?"":",")+e(o)+":"+e(t[o])),"")+"}"}},7833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(a=o))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,a,r,i=null;function d(...e){if(!d.enabled)return;const o=d,a=Number(new Date),r=a-(n||a);o.diff=r,o.prev=n,o.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,a)=>{if("%%"===n)return"%";i++;const r=t.formatters[a];if("function"==typeof r){const t=e[i];n=r.call(o,t),e.splice(i,1),i--}return n})),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return d.namespace=e,d.useColors=t.useColors(),d.color=t.selectColor(e),d.extend=o,d.destroy=t.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(a!==t.namespaces&&(a=t.namespaces,r=t.enabled(e)),r),set:e=>{i=e}}),"function"==typeof t.init&&t.init(d),d}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),a=o.length;for(n=0;n<a;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},7007:e=>{var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function r(){r.init.call(this)}e.exports=r,e.exports.once=function(e,t){return new Promise((function(n,o){function a(n){e.removeListener(t,r),o(n)}function r(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}f(e,t,r,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,{once:!0})}(e,a)}))},r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var i=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function l(e,t,n,o){var a,r,i,l;if(d(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=o?[n,i]:[i,n]:o?i.unshift(n):i.push(n),(a=s(e))>0&&i.length>a&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){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 c(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(o);return a.listener=n,o.wrapFn=a,a}function m(e,t,n){var o=e._events;if(void 0===o)return[];var a=o[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):p(a,a.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}function f(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(r){o.once&&e.removeEventListener(t,a),n(r)}))}}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),r.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},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return s(this)},r.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,r=this._events;if(void 0!==r)a=a&&void 0===r.error;else if(!a)return!1;if(a){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var d=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw d.context=i,d}var s=r[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,t);else{var l=s.length,u=p(s,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},r.prototype.addListener=function(e,t){return l(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return l(this,e,t,!0)},r.prototype.once=function(e,t){return d(t),this.on(e,c(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,c(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,o,a,r,i;if(d(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,a=r;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,i||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,r=Object.keys(n);for(o=0;o<r.length;++o)"removeListener"!==(a=r[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},r.prototype.listeners=function(e){return m(this,e,!0)},r.prototype.rawListeners=function(e){return m(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},r.prototype.listenerCount=h,r.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},251:(e,t)=>{t.read=function(e,t,n,o,a){var r,i,d=8*a-o-1,s=(1<<d)-1,l=s>>1,u=-7,c=n?a-1:0,m=n?-1:1,h=e[t+c];for(c+=m,r=h&(1<<-u)-1,h>>=-u,u+=d;u>0;r=256*r+e[t+c],c+=m,u-=8);for(i=r&(1<<-u)-1,r>>=-u,u+=o;u>0;i=256*i+e[t+c],c+=m,u-=8);if(0===r)r=1-l;else{if(r===s)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,o),r-=l}return(h?-1:1)*i*Math.pow(2,r-o)},t.write=function(e,t,n,o,a,r){var i,d,s,l=8*r-a-1,u=(1<<l)-1,c=u>>1,m=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:r-1,p=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+c>=1?m/s:m*Math.pow(2,1-c))*s>=2&&(i++,s/=2),i+c>=u?(d=0,i=u):i+c>=1?(d=(t*s-1)*Math.pow(2,a),i+=c):(d=t*Math.pow(2,c-1)*Math.pow(2,a),i=0));a>=8;e[n+h]=255&d,h+=p,d/=256,a-=8);for(i=i<<a|d,l+=a;l>0;e[n+h]=255&i,h+=p,i/=256,l-=8);e[n+h-p]|=128*f}},7034:(e,t,n)=>{const{isArray:o,isObject:a,isString:r}=n(7382),{asArray:i}=n(9263),{prependBase:d}=n(470),s=n(2207),l=n(7532);function u(e){throw new s("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:e})}function c({context:e,base:t}){if(!e)return;const n=e["@context"];if(r(n))e["@context"]=d(t,n);else if(o(n))for(let e=0;e<n.length;++e){const o=n[e];r(o)?n[e]=d(t,o):a(o)&&c({context:{"@context":o},base:t})}else if(a(n))for(const e in n)c({context:n[e],base:t})}e.exports=class{constructor({sharedCache:e}){this.perOpCache=new Map,this.sharedCache=e}async resolve({activeCtx:e,context:t,documentLoader:n,base:d,cycles:s=new Set}){t&&a(t)&&t["@context"]&&(t=t["@context"]),t=i(t);const c=[];for(const i of t){if(r(i)){let t=this._get(i);t||(t=await this._resolveRemoteContext({activeCtx:e,url:i,documentLoader:n,base:d,cycles:s})),o(t)?c.push(...t):c.push(t);continue}if(null===i){c.push(new l({document:null}));continue}a(i)||u(t);const m=JSON.stringify(i);let h=this._get(m);h||(h=new l({document:i}),this._cacheResolvedContext({key:m,resolved:h,tag:"static"})),c.push(h)}return c}_get(e){let t=this.perOpCache.get(e);if(!t){const n=this.sharedCache.get(e);n&&(t=n.get("static"),t&&this.perOpCache.set(e,t))}return t}_cacheResolvedContext({key:e,resolved:t,tag:n}){if(this.perOpCache.set(e,t),void 0!==n){let o=this.sharedCache.get(e);o||(o=new Map,this.sharedCache.set(e,o)),o.set(n,t)}return t}async _resolveRemoteContext({activeCtx:e,url:t,documentLoader:n,base:o,cycles:a}){t=d(o,t);const{context:r,remoteDoc:i}=await this._fetchContext({activeCtx:e,url:t,documentLoader:n,cycles:a});c({context:r,base:o=i.documentUrl||t});const s=await this.resolve({activeCtx:e,context:r,documentLoader:n,base:o,cycles:a});return this._cacheResolvedContext({key:t,resolved:s,tag:i.tag}),s}async _fetchContext({activeCtx:e,url:t,documentLoader:n,cycles:i}){if(i.size>10)throw new s("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"json-ld-1.0"===e.processingMode?"loading remote context failed":"context overflow",max:10});if(i.has(t))throw new s("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:"json-ld-1.0"===e.processingMode?"recursive context inclusion":"context overflow",url:t});let d,l;i.add(t);try{l=await n(t),d=l.document||null,r(d)&&(d=JSON.parse(d))}catch(e){throw new s("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:t,cause:e})}if(!a(d))throw new s("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:t});return d="@context"in d?{"@context":d["@context"]}:{"@context":{}},l.contextUrl&&(o(d["@context"])||(d["@context"]=[d["@context"]]),d["@context"].push(l.contextUrl)),{context:d,remoteDoc:l}}}},2207:e=>{e.exports=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",n={}){super(e),this.name=t,this.message=e,this.details=n}}},5445:e=>{e.exports=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(t,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,n)},t.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(t)},t.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(t)},t}},8229:(e,t,n)=>{e.exports=n(989).NQuads},3743:e=>{e.exports=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}},7532:(e,t,n)=>{const o=n(9749);e.exports=class{constructor({document:e}){this.document=e,this.cache=new o({max:10})}getProcessed(e){return this.cache.get(e)}setProcessed(e,t){this.cache.set(e,t)}}},1058:(e,t,n)=>{const o=n(2207),{isArray:a,isObject:r,isString:i,isUndefined:d}=n(7382),{isList:s,isValue:l,isGraph:u,isSimpleGraph:c,isSubjectReference:m}=n(3978),{expandIri:h,getContextValue:p,isKeyword:f,process:N,processingMode:g}=n(1972),{removeBase:v,prependBase:y}=n(470),{REGEX_KEYWORD:b,addValue:$,asArray:x,compareShortestLeast:w}=n(9263),_={};function C(e,t,n){if("@nest"!==h(e,t,{vocab:!0},n))throw new o("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}e.exports=_,_.compact=async({activeCtx:e,activeProperty:t=null,element:n,options:h={}})=>{if(a(n)){let o=[];for(let a=0;a<n.length;++a){const r=await _.compact({activeCtx:e,activeProperty:t,element:n[a],options:h});null!==r&&o.push(r)}return h.compactArrays&&1===o.length&&0===(p(e,t,"@container")||[]).length&&(o=o[0]),o}const v=p(e,t,"@context");if(d(v)||(e=await N({activeCtx:e,localCtx:v,propagate:!0,overrideProtected:!0,options:h})),r(n)){if(h.link&&"@id"in n&&h.link.hasOwnProperty(n["@id"])){const e=h.link[n["@id"]];for(let t=0;t<e.length;++t)if(e[t].expanded===n)return e[t].compacted}if(l(n)||m(n)){const o=_.compactValue({activeCtx:e,activeProperty:t,value:n,options:h});return h.link&&m(n)&&(h.link.hasOwnProperty(n["@id"])||(h.link[n["@id"]]=[]),h.link[n["@id"]].push({expanded:n,compacted:o})),o}if(s(n)&&(p(e,t,"@container")||[]).includes("@list"))return _.compact({activeCtx:e,activeProperty:t,element:n["@list"],options:h});const v="@reverse"===t,y={},b=e;l(n)||m(n)||(e=e.revertToPreviousContext());const w=p(b,t,"@context");d(w)||(e=await N({activeCtx:e,localCtx:w,propagate:!0,overrideProtected:!0,options:h})),h.link&&"@id"in n&&(h.link.hasOwnProperty(n["@id"])||(h.link[n["@id"]]=[]),h.link[n["@id"]].push({expanded:n,compacted:y}));let S=n["@type"]||[];S.length>1&&(S=Array.from(S).sort());const q=e;for(const t of S){const n=_.compactIri({activeCtx:q,iri:t,relativeTo:{vocab:!0}}),o=p(b,n,"@context");d(o)||(e=await N({activeCtx:e,localCtx:o,options:h,propagate:!1}))}const E=Object.keys(n).sort();for(const d of E){const m=n[d];if("@id"!==d)if("@type"!==d)if("@reverse"!==d)if("@preserve"!==d)if("@index"!==d)if("@graph"!==d&&"@list"!==d&&"@included"!==d&&f(d)){const t=_.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});$(y,t,m)}else{if(!a(m))throw new o("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===m.length){const t=_.compactIri({activeCtx:e,iri:d,value:m,relativeTo:{vocab:!0},reverse:v}),n=e.mappings.has(t)?e.mappings.get(t)["@nest"]:null;let o=y;n&&(C(e,n,h),r(y[n])||(y[n]={}),o=y[n]),$(o,t,m,{propertyIsArray:!0})}for(const t of m){const n=_.compactIri({activeCtx:e,iri:d,value:t,relativeTo:{vocab:!0},reverse:v}),o=e.mappings.has(n)?e.mappings.get(n)["@nest"]:null;let m=y;o&&(C(e,o,h),r(y[o])||(y[o]={}),m=y[o]);const f=p(e,n,"@container")||[],N=u(t),g=s(t);let b;g?b=t["@list"]:N&&(b=t["@graph"]);let w=await _.compact({activeCtx:e,activeProperty:n,element:g||N?b:t,options:h});if(g){if(a(w)||(w=[w]),f.includes("@list")){$(m,n,w,{valueIsArray:!0,allowDuplicate:!0});continue}w={[_.compactIri({activeCtx:e,iri:"@list",relativeTo:{vocab:!0}})]:w},"@index"in t&&(w[_.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=t["@index"])}if(N)if(f.includes("@graph")&&(f.includes("@id")||f.includes("@index")&&c(t))){let o;m.hasOwnProperty(n)?o=m[n]:m[n]=o={};const a=(f.includes("@id")?t["@id"]:t["@index"])||_.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}});$(o,a,w,{propertyIsArray:!h.compactArrays||f.includes("@set")})}else f.includes("@graph")&&c(t)?(a(w)&&w.length>1&&(w={"@included":w}),$(m,n,w,{propertyIsArray:!h.compactArrays||f.includes("@set")})):(a(w)&&1===w.length&&h.compactArrays&&(w=w[0]),w={[_.compactIri({activeCtx:e,iri:"@graph",relativeTo:{vocab:!0}})]:w},"@id"in t&&(w[_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=t["@id"]),"@index"in t&&(w[_.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=t["@index"]),$(m,n,w,{propertyIsArray:!h.compactArrays||f.includes("@set")}));else if(f.includes("@language")||f.includes("@index")||f.includes("@id")||f.includes("@type")){let o,a;if(m.hasOwnProperty(n)?o=m[n]:m[n]=o={},f.includes("@language"))l(w)&&(w=w["@value"]),a=t["@language"];else if(f.includes("@index")){const o=p(e,n,"@index")||"@index",r=_.compactIri({activeCtx:e,iri:o,relativeTo:{vocab:!0}});if("@index"===o)a=t["@index"],delete w[r];else{let e;if([a,...e]=x(w[o]||[]),i(a))switch(e.length){case 0:delete w[o];break;case 1:w[o]=e[0];break;default:w[o]=e}else a=null}}else if(f.includes("@id")){const t=_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}});a=w[t],delete w[t]}else if(f.includes("@type")){const o=_.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}});let r;switch([a,...r]=x(w[o]||[]),r.length){case 0:delete w[o];break;case 1:w[o]=r[0];break;default:w[o]=r}1===Object.keys(w).length&&"@id"in t&&(w=await _.compact({activeCtx:e,activeProperty:n,element:{"@id":t["@id"]},options:h}))}a||(a=_.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}})),$(o,a,w,{propertyIsArray:f.includes("@set")})}else{const e=!h.compactArrays||f.includes("@set")||f.includes("@list")||a(w)&&0===w.length||"@list"===d||"@graph"===d;$(m,n,w,{propertyIsArray:e})}}}else{if((p(e,t,"@container")||[]).includes("@index"))continue;const n=_.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});$(y,n,m)}else{const n=await _.compact({activeCtx:e,activeProperty:t,element:m,options:h});a(n)&&0===n.length||$(y,d,n)}else{const t=await _.compact({activeCtx:e,activeProperty:"@reverse",element:m,options:h});for(const n in t)if(e.mappings.has(n)&&e.mappings.get(n).reverse){const o=t[n],a=(p(e,n,"@container")||[]).includes("@set")||!h.compactArrays;$(y,n,o,{propertyIsArray:a}),delete t[n]}if(Object.keys(t).length>0){const n=_.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});$(y,n,t)}}else{let t=x(m).map((e=>_.compactIri({activeCtx:b,iri:e,relativeTo:{vocab:!0}})));1===t.length&&(t=t[0]);const n=_.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}}),o=(p(e,n,"@container")||[]).includes("@set")&&g(e,1.1)||a(t)&&0===m.length;$(y,n,t,{propertyIsArray:o})}else{let t=x(m).map((t=>_.compactIri({activeCtx:e,iri:t,relativeTo:{vocab:!1},base:h.base})));1===t.length&&(t=t[0]),y[_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=t}}return y}return n},_.compactIri=({activeCtx:e,iri:t,value:n=null,relativeTo:a={vocab:!1},reverse:i=!1,base:d=null})=>{if(null===t)return t;e.isPropertyTermScoped&&e.previousContext&&(e=e.previousContext);const c=e.getInverse();if(f(t)&&t in c&&"@none"in c[t]&&"@type"in c[t]["@none"]&&"@none"in c[t]["@none"]["@type"])return c[t]["@none"]["@type"]["@none"];if(a.vocab&&t in c){const o=e["@language"]||"@none",a=[];r(n)&&"@index"in n&&!("@graph"in n)&&a.push("@index","@index@set"),r(n)&&"@preserve"in n&&(n=n["@preserve"][0]),u(n)?("@index"in n&&a.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n&&a.push("@graph@id","@graph@id@set"),a.push("@graph","@graph@set","@set"),"@index"in n||a.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n||a.push("@graph@id","@graph@id@set")):r(n)&&!l(n)&&a.push("@id","@id@set","@type","@set@type");let d="@language",c="@null";if(i)d="@type",c="@reverse",a.push("@set");else if(s(n)){"@index"in n||a.push("@list");const e=n["@list"];if(0===e.length)d="@any",c="@none";else{let t=0===e.length?o:null,n=null;for(let o=0;o<e.length;++o){const a=e[o];let r="@none",i="@none";if(l(a)?"@direction"in a?r=`${(a["@language"]||"").toLowerCase()}_${a["@direction"]}`:"@language"in a?r=a["@language"].toLowerCase():"@type"in a?i=a["@type"]:r="@null":i="@id",null===t?t=r:r!==t&&l(a)&&(t="@none"),null===n?n=i:i!==n&&(n="@none"),"@none"===t&&"@none"===n)break}t=t||"@none",n=n||"@none","@none"!==n?(d="@type",c=n):c=t}}else{if(l(n))if("@language"in n&&!("@index"in n)){a.push("@language","@language@set"),c=n["@language"];const e=n["@direction"];e&&(c=`${c}_${e}`)}else"@direction"in n&&!("@index"in n)?c=`_${n["@direction"]}`:"@type"in n&&(d="@type",c=n["@type"]);else d="@type",c="@id";a.push("@set")}a.push("@none"),r(n)&&!("@index"in n)&&a.push("@index","@index@set"),l(n)&&1===Object.keys(n).length&&a.push("@language","@language@set");const m=function(e,t,n,o,a,i){null===i&&(i="@null");const d=[];if(("@id"===i||"@reverse"===i)&&r(n)&&"@id"in n){"@reverse"===i&&d.push("@reverse");const t=_.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:!0}});e.mappings.has(t)&&e.mappings.get(t)&&e.mappings.get(t)["@id"]===n["@id"]?d.push.apply(d,["@vocab","@id"]):d.push.apply(d,["@id","@vocab"])}else{d.push(i);const e=d.find((e=>e.includes("_")));e&&d.push(e.replace(/^[^_]+_/,"_"))}d.push("@none");const s=e.inverse[t];for(const e of o){if(!(e in s))continue;const t=s[e][a];for(const e of d)if(e in t)return t[e]}return null}(e,t,n,a,d,c);if(null!==m)return m}if(a.vocab&&"@vocab"in e){const n=e["@vocab"];if(0===t.indexOf(n)&&t!==n){const o=t.substr(n.length);if(!e.mappings.has(o))return o}}let m=null;const h=[];let p=e.fastCurieMap;const N=t.length-1;for(let e=0;e<N&&t[e]in p;++e)p=p[t[e]],""in p&&h.push(p[""][0]);for(let o=h.length-1;o>=0;--o){const a=h[o],r=a.terms;for(const o of r){const r=o+":"+t.substr(a.iri.length);e.mappings.get(o)._prefix&&(!e.mappings.has(r)||null===n&&e.mappings.get(r)["@id"]===t)&&(null===m||w(r,m)<0)&&(m=r)}}if(null!==m)return m;for(const[n,a]of e.mappings)if(a&&a._prefix&&t.startsWith(n+":"))throw new o(`Absolute IRI "${t}" confused with prefix "${n}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:e});if(!a.vocab){if("@base"in e){if(e["@base"]){const n=v(y(d,e["@base"]),t);return b.test(n)?`./${n}`:n}return t}return v(d,t)}return t},_.compactValue=({activeCtx:e,activeProperty:t,value:n,options:o})=>{if(l(n)){const o=p(e,t,"@type"),a=p(e,t,"@language"),r=p(e,t,"@direction"),d=p(e,t,"@container")||[],s="@index"in n&&!d.includes("@index");if(!s&&"@none"!==o){if(n["@type"]===o)return n["@value"];if("@language"in n&&n["@language"]===a&&"@direction"in n&&n["@direction"]===r)return n["@value"];if("@language"in n&&n["@language"]===a)return n["@value"];if("@direction"in n&&n["@direction"]===r)return n["@value"]}const l=Object.keys(n).length,u=1===l||2===l&&"@index"in n&&!s,c="@language"in e,m=i(n["@value"]),h=e.mappings.has(t)&&null===e.mappings.get(t)["@language"];if(u&&"@none"!==o&&(!c||!m||h))return n["@value"];const f={};return s&&(f[_.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?f[_.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}})]=_.compactIri({activeCtx:e,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(f[_.compactIri({activeCtx:e,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(f[_.compactIri({activeCtx:e,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),f[_.compactIri({activeCtx:e,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],f}const a=h(e,t,{vocab:!0},o),r=p(e,t,"@type"),d=_.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:"@vocab"===r},base:o.base});return"@id"===r||"@vocab"===r||"@graph"===a?d:{[_.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]:d}}},9378:e=>{const t="http://www.w3.org/1999/02/22-rdf-syntax-ns#",n="http://www.w3.org/2001/XMLSchema#";e.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:t,RDF_LIST:t+"List",RDF_FIRST:t+"first",RDF_REST:t+"rest",RDF_NIL:t+"nil",RDF_TYPE:t+"type",RDF_PLAIN_LITERAL:t+"PlainLiteral",RDF_XML_LITERAL:t+"XMLLiteral",RDF_JSON_LITERAL:t+"JSON",RDF_OBJECT:t+"object",RDF_LANGSTRING:t+"langString",XSD:n,XSD_BOOLEAN:n+"boolean",XSD_DOUBLE:n+"double",XSD_INTEGER:n+"integer",XSD_STRING:n+"string"}},1972:(e,t,n)=>{const o=n(9263),a=n(2207),{isArray:r,isObject:i,isString:d,isUndefined:s}=n(7382),{isAbsolute:l,isRelative:u,prependBase:c}=n(470),{handleEvent:m}=n(2246),{REGEX_BCP47:h,REGEX_KEYWORD:p,asArray:f,compareShortestLeast:N}=n(9263),g=new Map,v={};function y(e,t,n,o,a,r){if(null===t||!d(t)||v.isKeyword(t))return t;if(t.match(p))return null;if(o&&o.hasOwnProperty(t)&&!0!==a.get(t)&&v.createTermDefinition({activeCtx:e,localCtx:o,term:t,defined:a,options:r}),(n=n||{}).vocab){const n=e.mappings.get(t);if(null===n)return null;if(i(n)&&"@id"in n)return n["@id"]}const s=t.indexOf(":");if(s>0){const n=t.substr(0,s),i=t.substr(s+1);if("_"===n||0===i.indexOf("//"))return t;o&&o.hasOwnProperty(n)&&v.createTermDefinition({activeCtx:e,localCtx:o,term:n,defined:a,options:r});const d=e.mappings.get(n);if(d&&d._prefix)return d["@id"]+i;if(l(t))return t}if(n.vocab&&"@vocab"in e)t=e["@vocab"]+t;else if(n.base){let n,o;"@base"in e?e["@base"]?(o=c(r.base,e["@base"]),n=c(o,t)):(o=e["@base"],n=t):(o=r.base,n=c(r.base,t)),t=n}return t}function b(e,t){if(!e||"object"!=typeof e||!t||"object"!=typeof t)return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!b(e[n],t[n]))return!1;return!0}const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(const n in e){let o=e[n],a=t[n];if("@container"===n&&Array.isArray(o)&&Array.isArray(a)&&(o=o.slice().sort(),a=a.slice().sort()),!b(o,a))return!1}return!0}e.exports=v,v.process=async({activeCtx:e,localCtx:t,options:n,propagate:o=!0,overrideProtected:s=!1,cycles:p=new Set})=>{if(i(t)&&"@context"in t&&r(t["@context"])&&(t=t["@context"]),0===f(t).length)return e;const N=[],g=[({event:e,next:t})=>{N.push(e),t()}];n.eventHandler&&g.push(n.eventHandler);const b=n;n={...n,eventHandler:g};const $=await n.contextResolver.resolve({activeCtx:e,context:t,documentLoader:n.documentLoader,base:n.base});i($[0].document)&&"boolean"==typeof $[0].document["@propagate"]&&(o=$[0].document["@propagate"]);let x=e;o||x.previousContext||(x=x.clone(),x.previousContext=e);for(const o of $){let{document:r}=o;if(e=x,null===r){if(!s&&0!==Object.keys(e.protected).length)throw new a("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});x=e=v.getInitialContext(n).clone();continue}const f=o.getProcessed(e);if(f){if(b.eventHandler)for(const e of f.events)m({event:e,options:b});x=e=f.context;continue}if(i(r)&&"@context"in r&&(r=r["@context"]),!i(r))throw new a("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:r});x=x.clone();const g=new Map;if("@version"in r){if(1.1!==r["@version"])throw new a("Unsupported JSON-LD version: "+r["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:r});if(e.processingMode&&"json-ld-1.0"===e.processingMode)throw new a("@version: "+r["@version"]+" not compatible with "+e.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:r});x.processingMode="json-ld-1.1",x["@version"]=r["@version"],g.set("@version",!0)}if(x.processingMode=x.processingMode||e.processingMode,"@base"in r){let e=r["@base"];if(null===e||l(e));else{if(!u(e))throw new a('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:r});e=c(x["@base"],e)}x["@base"]=e,g.set("@base",!0)}if("@vocab"in r){const e=r["@vocab"];if(null===e)delete x["@vocab"];else{if(!d(e))throw new a('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:r});if(!l(e)&&v.processingMode(x,1))throw new a('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:r});{const t=y(x,e,{vocab:!0,base:!0},void 0,void 0,n);l(t)||n.eventHandler&&m({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:t}},options:n}),x["@vocab"]=t}}g.set("@vocab",!0)}if("@language"in r){const e=r["@language"];if(null===e)delete x["@language"];else{if(!d(e))throw new a('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:r});e.match(h)||n.eventHandler&&m({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:n}),x["@language"]=e.toLowerCase()}g.set("@language",!0)}if("@direction"in r){const t=r["@direction"];if("json-ld-1.0"===e.processingMode)throw new a("Invalid JSON-LD syntax; @direction not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:r});if(null===t)delete x["@direction"];else{if("ltr"!==t&&"rtl"!==t)throw new a('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:r});x["@direction"]=t}g.set("@direction",!0)}if("@propagate"in r){const n=r["@propagate"];if("json-ld-1.0"===e.processingMode)throw new a("Invalid JSON-LD syntax; @propagate not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:r});if("boolean"!=typeof n)throw new a("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:t});g.set("@propagate",!0)}if("@import"in r){const o=r["@import"];if("json-ld-1.0"===e.processingMode)throw new a("Invalid JSON-LD syntax; @import not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:r});if(!d(o))throw new a("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:t});const i=await n.contextResolver.resolve({activeCtx:e,context:o,documentLoader:n.documentLoader,base:n.base});if(1!==i.length)throw new a("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:t});const s=i[0].getProcessed(e);if(s)r=s;else{const n=i[0].document;if("@import"in n)throw new a("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:t});for(const e in n)r.hasOwnProperty(e)||(r[e]=n[e]);i[0].setProcessed(e,r)}g.set("@import",!0)}g.set("@protected",r["@protected"]||!1);for(const e in r)if(v.createTermDefinition({activeCtx:x,localCtx:r,term:e,defined:g,options:n,overrideProtected:s}),i(r[e])&&"@context"in r[e]){const t=r[e]["@context"];let o=!0;if(d(t)){const e=c(n.base,t);p.has(e)?o=!1:p.add(e)}if(o)try{await v.process({activeCtx:x.clone(),localCtx:r[e]["@context"],overrideProtected:!0,options:n,cycles:p})}catch(t){throw new a("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:r[e]["@context"],term:e})}}o.setProcessed(e,{context:x,events:N})}return x},v.createTermDefinition=({activeCtx:e,localCtx:t,term:n,defined:o,options:s,overrideProtected:u=!1})=>{if(o.has(n)){if(o.get(n))return;throw new a("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:t,term:n})}let c;if(o.set(n,!1),t.hasOwnProperty(n)&&(c=t[n]),"@type"===n&&i(c)&&"@set"===(c["@container"]||"@set")&&v.processingMode(e,1.1)){const e=["@container","@id","@protected"],o=Object.keys(c);if(0===o.length||o.some((t=>!e.includes(t))))throw new a("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n})}else{if(v.isKeyword(n))throw new a("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n});if(n.match(p))return void(s.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:n}},options:s}));if(""===n)throw new a("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:t})}const h=e.mappings.get(n);e.mappings.has(n)&&e.mappings.delete(n);let f=!1;if((d(c)||null===c)&&(f=!0,c={"@id":c}),!i(c))throw new a("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:t});const N={};e.mappings.set(n,N),N.reverse=!1;const g=["@container","@id","@language","@reverse","@type"];v.processingMode(e,1.1)&&g.push("@context","@direction","@index","@nest","@prefix","@protected");for(const e in c)if(!g.includes(e))throw new a("Invalid JSON-LD syntax; a term definition must not contain "+e,"jsonld.SyntaxError",{code:"invalid term definition",context:t});const $=n.indexOf(":");if(N._termHasColon=$>0,"@reverse"in c){if("@id"in c)throw new a("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});if("@nest"in c)throw new a("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});const r=c["@reverse"];if(!d(r))throw new a("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(r.match(p))return s.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:r}},options:s}),void(h?e.mappings.set(n,h):e.mappings.delete(n));const i=y(e,r,{vocab:!0,base:!1},t,o,s);if(!l(i))throw new a("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});N["@id"]=i,N.reverse=!0}else if("@id"in c){let r=c["@id"];if(r&&!d(r))throw new a("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(null===r)N["@id"]=null;else{if(!v.isKeyword(r)&&r.match(p))return s.eventHandler&&m({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:r}},options:s}),void(h?e.mappings.set(n,h):e.mappings.delete(n));if(r!==n){if(r=y(e,r,{vocab:!0,base:!1},t,o,s),!l(r)&&!v.isKeyword(r))throw new a("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(n.match(/(?::[^:])|\//)&&y(e,n,{vocab:!0,base:!1},t,new Map(o).set(n,!0),s)!==r)throw new a("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});N["@id"]=r,N._prefix=f&&!N._termHasColon&&null!==r.match(/[:\/\?#\[\]@]$/)}}}if(!("@id"in N))if(N._termHasColon){const a=n.substr(0,$);if(t.hasOwnProperty(a)&&v.createTermDefinition({activeCtx:e,localCtx:t,term:a,defined:o,options:s}),e.mappings.has(a)){const t=n.substr($+1);N["@id"]=e.mappings.get(a)["@id"]+t}else N["@id"]=n}else if("@type"===n)N["@id"]=n;else{if(!("@vocab"in e))throw new a("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t,term:n});N["@id"]=e["@vocab"]+n}if((!0===c["@protected"]||!0===o.get("@protected")&&!1!==c["@protected"])&&(e.protected[n]=!0,N.protected=!0),o.set(n,!0),"@type"in c){let n=c["@type"];if(!d(n))throw new a("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if("@json"===n||"@none"===n){if(v.processingMode(e,1))throw new a(`Invalid JSON-LD syntax; an @context @type value must not be "${n}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else if("@id"!==n&&"@vocab"!==n){if(n=y(e,n,{vocab:!0,base:!1},t,o,s),!l(n))throw new a("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if(0===n.indexOf("_:"))throw new a("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}N["@type"]=n}if("@container"in c){const n=d(c["@container"])?[c["@container"]]:c["@container"]||[],o=["@list","@set","@index","@language"];let i=!0;const s=n.includes("@set");if(v.processingMode(e,1.1)){if(o.push("@graph","@id","@type"),n.includes("@list")){if(1!==n.length)throw new a("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else if(n.includes("@graph")){if(n.some((e=>"@graph"!==e&&"@id"!==e&&"@index"!==e&&"@set"!==e)))throw new a("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else i&=n.length<=(s?2:1);if(n.includes("@type")&&(N["@type"]=N["@type"]||"@id",!["@id","@vocab"].includes(N["@type"])))throw new a("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else i&=!r(c["@container"]),i&=n.length<=1;if(i&=n.every((e=>o.includes(e))),i&=!(s&&n.includes("@list")),!i)throw new a("Invalid JSON-LD syntax; @context @container value must be one of the following: "+o.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:t});if(N.reverse&&!n.every((e=>["@index","@set"].includes(e))))throw new a("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});N["@container"]=n}if("@index"in c){if(!("@container"in c)||!N["@container"].includes("@index"))throw new a(`Invalid JSON-LD syntax; @index without @index in @container: "${c["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});if(!d(c["@index"])||0===c["@index"].indexOf("@"))throw new a(`Invalid JSON-LD syntax; @index must expand to an IRI: "${c["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});N["@index"]=c["@index"]}if("@context"in c&&(N["@context"]=c["@context"]),"@language"in c&&!("@type"in c)){let e=c["@language"];if(null!==e&&!d(e))throw new a("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:t});null!==e&&(e=e.toLowerCase()),N["@language"]=e}if("@prefix"in c){if(n.match(/:|\//))throw new a("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:t});if(v.isKeyword(N["@id"]))throw new a("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:t});if("boolean"!=typeof c["@prefix"])throw new a("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:t});N._prefix=!0===c["@prefix"]}if("@direction"in c){const e=c["@direction"];if(null!==e&&"ltr"!==e&&"rtl"!==e)throw new a('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:t});N["@direction"]=e}if("@nest"in c){const e=c["@nest"];if(!d(e)||"@nest"!==e&&0===e.indexOf("@"))throw new a("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:t});N["@nest"]=e}const x=N["@id"];if("@context"===x||"@preserve"===x)throw new a("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:t});if(h&&h.protected&&!u&&(e.protected[n]=!0,N.protected=!0,!b(h,N)))throw new a("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:t,term:n})},v.expandIri=(e,t,n,o)=>y(e,t,n,void 0,void 0,o),v.getInitialContext=e=>{const t=JSON.stringify({processingMode:e.processingMode}),n=g.get(t);if(n)return n;const a={processingMode:e.processingMode,mappings:new Map,inverse:null,getInverse:function(){const e=this;if(e.inverse)return e.inverse;const t=e.inverse={},n=e.fastCurieMap={},o={},a=(e["@language"]||"@none").toLowerCase(),d=e["@direction"],s=e.mappings,l=[...s.keys()].sort(N);for(const e of l){const r=s.get(e);if(null===r)continue;let l=r["@container"]||"@none";if(l=[].concat(l).sort().join(""),null===r["@id"])continue;const u=f(r["@id"]);for(const s of u){let u=t[s];const c=v.isKeyword(s);if(u)c||r._termHasColon||o[s].push(e);else if(t[s]=u={},!c&&!r._termHasColon){o[s]=[e];const t={iri:s,terms:o[s]};s[0]in n?n[s[0]].push(t):n[s[0]]=[t]}if(u[l]||(u[l]={"@language":{},"@type":{},"@any":{}}),u=u[l],i(e,u["@any"],"@none"),r.reverse)i(e,u["@type"],"@reverse");else if("@none"===r["@type"])i(e,u["@any"],"@none"),i(e,u["@language"],"@none"),i(e,u["@type"],"@none");else if("@type"in r)i(e,u["@type"],r["@type"]);else if("@language"in r&&"@direction"in r){const t=r["@language"],n=r["@direction"];i(e,u["@language"],t&&n?`${t}_${n}`.toLowerCase():t?t.toLowerCase():n?`_${n}`:"@null")}else"@language"in r?i(e,u["@language"],(r["@language"]||"@null").toLowerCase()):"@direction"in r?r["@direction"]?i(e,u["@language"],`_${r["@direction"]}`):i(e,u["@language"],"@none"):d?(i(e,u["@language"],`_${d}`),i(e,u["@language"],"@none"),i(e,u["@type"],"@none")):(i(e,u["@language"],a),i(e,u["@language"],"@none"),i(e,u["@type"],"@none"))}}for(const e in n)r(n,e,1);return t},clone:function(){const e={};return e.mappings=o.clone(this.mappings),e.clone=this.clone,e.inverse=null,e.getInverse=this.getInverse,e.protected=o.clone(this.protected),this.previousContext&&(e.previousContext=this.previousContext.clone()),e.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(e["@base"]=this["@base"]),"@language"in this&&(e["@language"]=this["@language"]),"@vocab"in this&&(e["@vocab"]=this["@vocab"]),e},revertToPreviousContext:function(){return this.previousContext?this.previousContext.clone():this},protected:{}};return 1e4===g.size&&g.clear(),g.set(t,a),a;function r(e,t,n){const o=e[t],a=e[t]={};let i,d;for(const e of o)i=e.iri,d=n>=i.length?"":i[n],d in a?a[d].push(e):a[d]=[e];for(const e in a)""!==e&&r(a,e,n+1)}function i(e,t,n){t.hasOwnProperty(n)||(t[n]=e)}},v.getContextValue=(e,t,n)=>{if(null===t){if("@context"===n)return;return null}if(e.mappings.has(t)){const o=e.mappings.get(t);if(s(n))return o;if(o.hasOwnProperty(n))return o[n]}return"@language"===n&&n in e||"@direction"===n&&n in e?e[n]:"@context"!==n?null:void 0},v.processingMode=(e,t)=>t.toString()>="1.1"?!e.processingMode||e.processingMode>="json-ld-"+t.toString():"json-ld-1.0"===e.processingMode,v.isKeyword=e=>{if(!d(e)||"@"!==e[0])return!1;switch(e){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},6957:(e,t,n)=>{const{parseLinkHeader:o,buildHeaders:a}=n(9263),{LINK_HEADER_CONTEXT:r}=n(9378),i=n(2207),d=n(3743),{prependBase:s}=n(470),l=/(^|(\r\n))link:/i;e.exports=({secure:e,headers:t={},xhr:n}={headers:{}})=>(t=a(t),(new d).wrapLoader((async function a(d){if(0!==d.indexOf("http:")&&0!==d.indexOf("https:"))throw new i('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:d});if(e&&0!==d.indexOf("https"))throw new i('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:d});let u;try{u=await function(e,t,n){const o=new(e=e||XMLHttpRequest);return new Promise(((e,a)=>{o.onload=()=>e(o),o.onerror=e=>a(e),o.open("GET",t,!0);for(const e in n)o.setRequestHeader(e,n[e]);o.send()}))}(n,d,t)}catch(e){throw new i("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:d,cause:e})}if(u.status>=400)throw new i("URL could not be dereferenced: "+u.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:d,httpStatusCode:u.status});let c={contextUrl:null,documentUrl:d,document:u.response},m=null;const h=u.getResponseHeader("Content-Type");let p;if(l.test(u.getAllResponseHeaders())&&(p=u.getResponseHeader("Link")),p&&"application/ld+json"!==h){const e=o(p),t=e[r];if(Array.isArray(t))throw new i("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:d});t&&(c.contextUrl=t.target),m=e.alternate,m&&"application/ld+json"==m.type&&!(h||"").match(/^application\/(\w*\+)?json$/)&&(c=await a(s(d,m.target)))}return c})))},2246:(e,t,n)=>{const o=n(2207),{isArray:a}=n(7382),{asArray:r}=n(9263),i={};function d({event:e,handlers:t}){let n=!0;for(let r=0;n&&r<t.length;++r){n=!1;const i=t[r];if(a(i))n=d({event:e,handlers:i});else if("function"==typeof i)i({event:e,next:()=>{n=!0}});else{if("object"!=typeof i)throw new o("Invalid event handler.","jsonld.InvalidEventHandler",{event:e});e.code in i?i[e.code]({event:e,next:()=>{n=!0}}):n=!0}}return n}e.exports=i,i.defaultEventHandler=null,i.setupEventHandler=({options:e={}})=>{const t=[].concat(e.safe?i.safeEventHandler:[],e.eventHandler?r(e.eventHandler):[],i.defaultEventHandler?i.defaultEventHandler:[]);return 0===t.length?null:t},i.handleEvent=({event:e,options:t})=>{d({event:e,handlers:t.eventHandler})};const s=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);i.safeEventHandler=function({event:e,next:t}){if("warning"===e.level&&s.has(e.code))throw new o("Safe mode validation error.","jsonld.ValidationError",{event:e});t()},i.logEventHandler=function({event:e,next:t}){console.log(`EVENT: ${e.message}`,{event:e}),t()},i.logWarningEventHandler=function({event:e,next:t}){"warning"===e.level&&console.warn(`WARNING: ${e.message}`,{event:e}),t()},i.unhandledEventHandler=function({event:e}){throw new o("No handler for event.","jsonld.UnhandledEvent",{event:e})},i.setDefaultEventHandler=function({eventHandler:e}={}){i.defaultEventHandler=e?r(e):null}},4019:(e,t,n)=>{const o=n(2207),{isArray:a,isObject:r,isEmptyObject:i,isString:d,isUndefined:s}=n(7382),{isList:l,isValue:u,isGraph:c,isSubject:m}=n(3978),{expandIri:h,getContextValue:p,isKeyword:f,process:N,processingMode:g}=n(1972),{isAbsolute:v}=n(470),{REGEX_BCP47:y,REGEX_KEYWORD:b,addValue:$,asArray:x,getValues:w,validateTypeValue:_}=n(9263),{handleEvent:C}=n(2246),S={};function q({value:e,count:t,options:n}){if(0===t||"@value"in e||"@list"in e||1===t&&"@id"in e){if(n.eventHandler){let o,a;0===t?(o="empty object",a="Dropping empty object."):"@value"in e?(o="object with only @value",a="Dropping object with only @value."):"@list"in e?(o="object with only @list",a="Dropping object with only @list."):1===t&&"@id"in e&&(o="object with only @id",a="Dropping object with only @id."),C({event:{type:["JsonLdEvent"],code:o,level:"warning",message:a,details:{value:e}},options:n})}return null}return e}async function E({activeCtx:e,activeProperty:t,expandedActiveProperty:n,element:c,expandedParent:b,options:w={},insideList:I,typeKey:R,typeScopedContext:L}){const k=Object.keys(c).sort(),P=[];let j;const O=c[R]&&"@json"===h(e,a(c[R])?c[R][0]:c[R],{vocab:!0},{...w,typeExpansion:!0});for(const E of k){let I,R=c[E];if("@context"===E)continue;const k=h(e,E,{vocab:!0},w);if(null===k||!v(k)&&!f(k)){w.eventHandler&&C({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:E,expandedProperty:k}},options:w});continue}if(f(k)){if("@reverse"===n)throw new o("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:R});if(k in b&&"@included"!==k&&"@type"!==k)throw new o("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:k})}if("@id"===k){if(!d(R)){if(!w.isFrame)throw new o('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:R});if(r(R)){if(!i(R))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:R})}else{if(!a(R))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:R});if(!R.every((e=>d(e))))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:R})}}$(b,"@id",x(R).map((t=>{if(d(t)){const n=h(e,t,{base:!0},w);return w.eventHandler&&(null===n?C(null===t?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:t}},options:w}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:t}},options:w}):v(n)||C({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:t,expandedId:n}},options:w})),n}return t})),{propertyIsArray:w.isFrame});continue}if("@type"===k){r(R)&&(R=Object.fromEntries(Object.entries(R).map((([e,t])=>[h(L,e,{vocab:!0}),x(t).map((e=>h(L,e,{base:!0,vocab:!0},{...w,typeExpansion:!0})))])))),_(R,w.isFrame),$(b,"@type",x(R).map((e=>{if(d(e)){const t=h(L,e,{base:!0,vocab:!0},{...w,typeExpansion:!0});return"@json"===t||v(t)||w.eventHandler&&C({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:e}},options:w}),t}return e})),{propertyIsArray:!!w.isFrame});continue}if("@included"===k&&g(e,1.1)){const n=x(await S.expand({activeCtx:e,activeProperty:t,element:R,options:w}));if(!n.every((e=>m(e))))throw new o("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:R});$(b,"@included",n,{propertyIsArray:!0});continue}if("@graph"===k&&!r(R)&&!a(R))throw new o('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:R});if("@value"===k){j=R,O&&g(e,1.1)?b["@value"]=R:$(b,"@value",R,{propertyIsArray:w.isFrame});continue}if("@language"===k){if(null===R)continue;if(!d(R)&&!w.isFrame)throw new o('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:R});R=x(R).map((e=>d(e)?e.toLowerCase():e));for(const e of R)d(e)&&!e.match(y)&&w.eventHandler&&C({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:w});$(b,"@language",R,{propertyIsArray:w.isFrame});continue}if("@direction"===k){if(!d(R)&&!w.isFrame)throw new o('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:R});R=x(R);for(const e of R)if(d(e)&&"ltr"!==e&&"rtl"!==e)throw new o('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:R});$(b,"@direction",R,{propertyIsArray:w.isFrame});continue}if("@index"===k){if(!d(R))throw new o('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:R});$(b,"@index",R);continue}if("@reverse"===k){if(!r(R))throw new o('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:R});if(I=await S.expand({activeCtx:e,activeProperty:"@reverse",element:R,options:w}),"@reverse"in I)for(const e in I["@reverse"])$(b,e,I["@reverse"][e],{propertyIsArray:!0});let t=b["@reverse"]||null;for(const e in I){if("@reverse"===e)continue;null===t&&(t=b["@reverse"]={}),$(t,e,[],{propertyIsArray:!0});const n=I[e];for(let a=0;a<n.length;++a){const r=n[a];if(u(r)||l(r))throw new o('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:I});$(t,e,r,{propertyIsArray:!0})}}continue}if("@nest"===k){P.push(E);continue}let D=e;const M=p(e,E,"@context");s(M)||(D=await N({activeCtx:e,localCtx:M,propagate:!0,overrideProtected:!0,options:w}));const B=p(e,E,"@container")||[];if(B.includes("@language")&&r(R))I=A(D,R,p(D,E,"@direction"),w);else if(B.includes("@index")&&r(R)){const t=B.includes("@graph"),n=p(D,E,"@index")||"@index",o="@index"!==n&&h(e,n,{vocab:!0},w);I=await T({activeCtx:D,options:w,activeProperty:E,value:R,asGraph:t,indexKey:n,propertyIndex:o})}else if(B.includes("@id")&&r(R)){const e=B.includes("@graph");I=await T({activeCtx:D,options:w,activeProperty:E,value:R,asGraph:e,indexKey:"@id"})}else if(B.includes("@type")&&r(R))I=await T({activeCtx:D.revertToPreviousContext(),options:w,activeProperty:E,value:R,asGraph:!1,indexKey:"@type"});else{const o="@list"===k;if(o||"@set"===k){let e=t;o&&"@graph"===n&&(e=null),I=await S.expand({activeCtx:D,activeProperty:e,element:R,options:w,insideList:o})}else I="@json"===p(e,E,"@type")?{"@type":"@json","@value":R}:await S.expand({activeCtx:D,activeProperty:E,element:R,options:w,insideList:!1})}if(null!==I||"@value"===k){if("@list"!==k&&!l(I)&&B.includes("@list")&&(I={"@list":x(I)}),B.includes("@graph")&&!B.some((e=>"@id"===e||"@index"===e))){if(I=x(I),w.isFrame||(I=I.filter((e=>null!==q({value:e,count:Object.keys(e).length,options:w})))),0===I.length)continue;I=I.map((e=>({"@graph":x(e)})))}if(D.mappings.has(E)&&D.mappings.get(E).reverse){const e=b["@reverse"]=b["@reverse"]||{};I=x(I);for(let t=0;t<I.length;++t){const n=I[t];if(u(n)||l(n))throw new o('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:I});$(e,k,n,{propertyIsArray:!0})}}else $(b,k,I,{propertyIsArray:!0})}}if("@value"in b)if("@json"===b["@type"]&&g(e,1.1));else if((r(j)||a(j))&&!w.isFrame)throw new o('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:j});for(const i of P){const d=a(c[i])?c[i]:[c[i]];for(const a of d){if(!r(a)||Object.keys(a).some((t=>"@value"===h(e,t,{vocab:!0},w))))throw new o("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:a});await E({activeCtx:e,activeProperty:t,expandedActiveProperty:n,element:a,expandedParent:b,options:w,insideList:I,typeScopedContext:L,typeKey:R})}}}function I({activeCtx:e,activeProperty:t,value:n,options:o}){if(null==n)return null;const a=h(e,t,{vocab:!0},o);if("@id"===a)return h(e,n,{base:!0},o);if("@type"===a)return h(e,n,{vocab:!0,base:!0},{...o,typeExpansion:!0});const r=p(e,t,"@type");if(("@id"===r||"@graph"===a)&&d(n)){const a=h(e,n,{base:!0},o);return null===a&&n.match(b)&&o.eventHandler&&C({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:t}},options:o}),{"@id":a}}if("@vocab"===r&&d(n))return{"@id":h(e,n,{vocab:!0,base:!0},o)};if(f(a))return n;const i={};if(r&&!["@id","@vocab","@none"].includes(r))i["@type"]=r;else if(d(n)){const n=p(e,t,"@language");null!==n&&(i["@language"]=n);const o=p(e,t,"@direction");null!==o&&(i["@direction"]=o)}return["boolean","number","string"].includes(typeof n)||(n=n.toString()),i["@value"]=n,i}function A(e,t,n,r){const i=[],s=Object.keys(t).sort();for(const l of s){const s=h(e,l,{vocab:!0},r);let u=t[l];a(u)||(u=[u]);for(const e of u){if(null===e)continue;if(!d(e))throw new o("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:t});const a={"@value":e};"@none"!==s&&(l.match(y)||r.eventHandler&&C({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:l}},options:r}),a["@language"]=l.toLowerCase()),n&&(a["@direction"]=n),i.push(a)}}return i}async function T({activeCtx:e,options:t,activeProperty:n,value:r,asGraph:i,indexKey:d,propertyIndex:l}){const m=[],f=Object.keys(r).sort(),g="@type"===d;for(let v of f){if(g){const n=p(e,v,"@context");s(n)||(e=await N({activeCtx:e,localCtx:n,propagate:!1,options:t}))}let f,y=r[v];a(y)||(y=[y]),y=await S.expand({activeCtx:e,activeProperty:n,element:y,options:t,insideList:!1,insideIndex:!0}),f=l?"@none"===v?"@none":I({activeCtx:e,activeProperty:d,value:v,options:t}):h(e,v,{vocab:!0},t),"@id"===d?v=h(e,v,{base:!0},t):g&&(v=f);for(let e of y){if(i&&!c(e)&&(e={"@graph":[e]}),"@type"===d)"@none"===f||(e["@type"]?e["@type"]=[v].concat(e["@type"]):e["@type"]=[v]);else{if(u(e)&&!["@language","@type","@index"].includes(d))throw new o(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${d}".`,"jsonld.SyntaxError",{code:"invalid value object",value:e});l?"@none"!==f&&$(e,l,f,{propertyIsArray:!0,prependValue:!0}):"@none"===f||d in e||(e[d]=v)}m.push(e)}}return m}e.exports=S,S.expand=async({activeCtx:e,activeProperty:t=null,element:n,options:l={},insideList:u=!1,insideIndex:c=!1,typeScopedContext:m=null})=>{if(null==n)return null;if("@default"===t&&(l=Object.assign({},l,{isFrame:!1})),!a(n)&&!r(n))return u||null!==t&&"@graph"!==h(e,t,{vocab:!0},l)?I({activeCtx:e,activeProperty:t,value:n,options:l}):(l.eventHandler&&C({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:n}},options:l}),null);if(a(n)){let o=[];const r=p(e,t,"@container")||[];u=u||r.includes("@list");for(let r=0;r<n.length;++r){let i=await S.expand({activeCtx:e,activeProperty:t,element:n[r],options:l,insideIndex:c,typeScopedContext:m});u&&a(i)&&(i={"@list":i}),null!==i&&(a(i)?o=o.concat(i):o.push(i))}return o}const f=h(e,t,{vocab:!0},l),y=p(e,t,"@context");m=m||(e.previousContext?e:null);let b=Object.keys(n).sort(),$=!c;if($&&m&&b.length<=2&&!b.includes("@context"))for(const t of b){const n=h(m,t,{vocab:!0},l);if("@value"===n){$=!1,e=m;break}if("@id"===n&&1===b.length){$=!1;break}}$&&(e=e.revertToPreviousContext()),s(y)||(e=await N({activeCtx:e,localCtx:y,propagate:!0,overrideProtected:!0,options:l})),"@context"in n&&(e=await N({activeCtx:e,localCtx:n["@context"],options:l})),m=e;let _=null;for(const t of b)if("@type"===h(e,t,{vocab:!0},l)){_=_||t;const o=n[t],a=Array.isArray(o)?o.length>1?o.slice().sort():o:[o];for(const t of a){const n=p(m,t,"@context");s(n)||(e=await N({activeCtx:e,localCtx:n,options:l,propagate:!1}))}}let A={};await E({activeCtx:e,activeProperty:t,expandedActiveProperty:f,element:n,expandedParent:A,options:l,insideList:u,typeKey:_,typeScopedContext:m}),b=Object.keys(A);let T=b.length;if("@value"in A){if("@type"in A&&("@language"in A||"@direction"in A))throw new o('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:A});let t=T-1;if("@type"in A&&(t-=1),"@index"in A&&(t-=1),"@language"in A&&(t-=1),"@direction"in A&&(t-=1),0!==t)throw new o('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:A});const n=null===A["@value"]?[]:x(A["@value"]),a=w(A,"@type");if(g(e,1.1)&&a.includes("@json")&&1===a.length);else if(0===n.length)l.eventHandler&&C({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:A}},options:l}),A=null;else{if(!n.every((e=>d(e)||i(e)))&&"@language"in A)throw new o("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:A});if(!a.every((e=>v(e)&&!(d(e)&&0===e.indexOf("_:"))||i(e))))throw new o('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:A})}}else if("@type"in A&&!a(A["@type"]))A["@type"]=[A["@type"]];else if("@set"in A||"@list"in A){if(T>1&&(2!==T||!("@index"in A)))throw new o('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:A});"@set"in A&&(A=A["@set"],b=Object.keys(A),T=b.length)}else 1===T&&"@language"in A&&(l.eventHandler&&C({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:A}},options:l}),A=null);return!r(A)||l.keepFreeFloatingNodes||u||null!==t&&"@graph"!==f&&!(p(e,t,"@container")||[]).includes("@graph")||(A=q({value:A,count:T,options:l})),A}},5229:(e,t,n)=>{const{isSubjectReference:o}=n(3978),{createMergedNodeMap:a}=n(9233),r={};e.exports=r,r.flatten=e=>{const t=a(e),n=[],r=Object.keys(t).sort();for(let e=0;e<r.length;++e){const a=t[r[e]];o(a)||n.push(a)}return n}},7946:(e,t,n)=>{const{isKeyword:o}=n(1972),a=n(3978),r=n(7382),i=n(9263),d=n(470),s=n(2207),{createNodeMap:l,mergeNodeMapGraphs:u}=n(9233),c={};function m(e){const t={};for(const n in e)void 0!==e[n]&&(t["@"+n]=[e[n]]);return[t]}function h(e,t,n){for(let o=n.length-1;o>=0;--o){const a=n[o];if(a.graph===t&&a.subject["@id"]===e["@id"])return!0}return!1}function p(e,t,n){const o="@"+n;let a=o in e?e[o][0]:t[n];if("embed"===n)if(!0===a)a="@once";else if(!1===a)a="@never";else if("@always"!==a&&"@never"!==a&&"@link"!==a&&"@first"!==a&&"@last"!==a&&"@once"!==a)throw new s("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:e});return a}function f(e){if(!r.isArray(e)||1!==e.length||!r.isObject(e[0]))throw new s("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e});if("@id"in e[0])for(const t of i.asArray(e[0]["@id"]))if(!r.isObject(t)&&!d.isAbsolute(t)||r.isString(t)&&0===t.indexOf("_:"))throw new s("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e});if("@type"in e[0])for(const t of i.asArray(e[0]["@type"]))if(!r.isObject(t)&&!d.isAbsolute(t)&&"@json"!==t||r.isString(t)&&0===t.indexOf("_:"))throw new s("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}function N(e,t,n,d){let s=!0,l=!1;for(const u in n){let c=!1;const m=i.getValues(t,u),h=0===i.getValues(n,u).length;if("@id"===u){if(r.isEmptyObject(n["@id"][0]||{})?c=!0:n["@id"].length>=0&&(c=n["@id"].includes(m[0])),!d.requireAll)return c}else if("@type"===u){if(s=!1,h){if(m.length>0)return!1;c=!0}else if(1===n["@type"].length&&r.isEmptyObject(n["@type"][0]))c=m.length>0;else for(const e of n["@type"])c=!(!r.isObject(e)||!("@default"in e))||c||m.some((t=>t===e));if(!d.requireAll)return c}else{if(o(u))continue;{const t=i.getValues(n,u)[0];let o=!1;if(t&&(f([t]),o="@default"in t),s=!1,0===m.length&&o)continue;if(m.length>0&&h)return!1;if(void 0===t){if(m.length>0)return!1;c=!0}else if(a.isList(t)){const n=t["@list"][0];if(a.isList(m[0])){const t=m[0]["@list"];a.isValue(n)?c=t.some((e=>$(n,e))):(a.isSubject(n)||a.isSubjectReference(n))&&(c=t.some((t=>b(e,n,t,d))))}}else c=a.isValue(t)?m.some((e=>$(t,e))):a.isSubjectReference(t)?m.some((n=>b(e,t,n,d))):!!r.isObject(t)&&m.length>0}}if(!c&&d.requireAll)return!1;l=l||c}return s||l}function g(e,t){const n=e.uniqueEmbeds[e.graph],o=n[t],a=o.parent,d=o.property,s={"@id":t};if(r.isArray(a)){for(let e=0;e<a.length;++e)if(i.compareValues(a[e],s)){a[e]=s;break}}else{const e=r.isArray(a[d]);i.removeValue(a,d,s,{propertyIsArray:e}),i.addValue(a,d,s,{propertyIsArray:e})}const l=e=>{const t=Object.keys(n);for(const o of t)o in n&&r.isObject(n[o].parent)&&n[o].parent["@id"]===e&&(delete n[o],l(o))};l(t)}function v(e,t){if(r.isArray(e))return e.map((e=>v(e,t)));if(r.isObject(e)){if("@preserve"in e)return e["@preserve"][0];if(a.isValue(e))return e;if(a.isList(e))return e["@list"]=v(e["@list"],t),e;if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)"@id"===n&&t.bnodesToClear.includes(e[n])?delete e["@id"]:e[n]=v(e[n],t)}return e}function y(e,t,n){r.isObject(e)?i.addValue(e,t,n,{propertyIsArray:!0}):e.push(n)}function b(e,t,n,o){if(!("@id"in n))return!1;const a=e.subjects[n["@id"]];return a&&N(e,a,t,o)}function $(e,t){const n=t["@value"],o=t["@type"],a=t["@language"],i=e["@value"]?r.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],d=e["@type"]?r.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],s=e["@language"]?r.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===i.length&&0===d.length&&0===s.length||!(!i.includes(n)&&!r.isEmptyObject(i[0]))&&!!(!o&&0===d.length||d.includes(o)||o&&r.isEmptyObject(d[0]))&&!!(!a&&0===s.length||s.includes(a)||a&&r.isEmptyObject(s[0]))}e.exports=c,c.frameMergedOrDefault=(e,t,n)=>{const o={options:n,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},a=new i.IdentifierIssuer("_:b");l(e,o.graphMap,"@default",a),n.merged&&(o.graphMap["@merged"]=u(o.graphMap),o.graph="@merged"),o.subjects=o.graphMap[o.graph];const r=[];return c.frame(o,Object.keys(o.subjects).sort(),t,r),n.pruneBlankNodeIdentifiers&&(n.bnodesToClear=Object.keys(o.bnodeMap).filter((e=>1===o.bnodeMap[e].length))),n.link={},v(r,n)},c.frame=(e,t,n,d,l=null)=>{f(n),n=n[0];const u=e.options,v={embed:p(n,u,"embed"),explicit:p(n,u,"explicit"),requireAll:p(n,u,"requireAll")};e.link.hasOwnProperty(e.graph)||(e.link[e.graph]={});const b=e.link[e.graph],x=function(e,t,n,o){const a={};for(const r of t){const t=e.graphMap[e.graph][r];N(e,t,n,o)&&(a[r]=t)}return a}(e,t,n,v),w=Object.keys(x).sort();for(const f of w){const N=x[f];if(null===l?e.uniqueEmbeds={[e.graph]:{}}:e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{},"@link"===v.embed&&f in b){y(d,l,b[f]);continue}const w={"@id":f};if(0===f.indexOf("_:")&&i.addValue(e.bnodeMap,f,w,{propertyIsArray:!0}),b[f]=w,("@first"===v.embed||"@last"===v.embed)&&e.is11)throw new s("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n});if(e.embedded||!e.uniqueEmbeds[e.graph].hasOwnProperty(f))if(!e.embedded||"@never"!==v.embed&&!h(N,e.graph,e.subjectStack))if(!e.embedded||"@first"!=v.embed&&"@once"!=v.embed||!e.uniqueEmbeds[e.graph].hasOwnProperty(f)){if("@last"===v.embed&&f in e.uniqueEmbeds[e.graph]&&g(e,f),e.uniqueEmbeds[e.graph][f]={parent:d,property:l},e.subjectStack.push({subject:N,graph:e.graph}),f in e.graphMap){let t=!1,o=null;"@graph"in n?(o=n["@graph"][0],t=!("@merged"===f||"@default"===f),r.isObject(o)||(o={})):(t="@merged"!==e.graph,o={}),t&&c.frame({...e,graph:f,embedded:!1},Object.keys(e.graphMap[f]).sort(),[o],w,"@graph")}"@included"in n&&c.frame({...e,embedded:!1},t,n["@included"],w,"@included");for(const t of Object.keys(N).sort())if(o(t)){if(w[t]=i.clone(N[t]),"@type"===t)for(const t of N["@type"])0===t.indexOf("_:")&&i.addValue(e.bnodeMap,t,w,{propertyIsArray:!0})}else if(!v.explicit||t in n)for(const o of N[t]){const r=t in n?n[t]:m(v);if(a.isList(o)){const r=n[t]&&n[t][0]&&n[t][0]["@list"]?n[t][0]["@list"]:m(v),d={"@list":[]};y(w,t,d);const s=o["@list"];for(const t of s)a.isSubjectReference(t)?c.frame({...e,embedded:!0},[t["@id"]],r,d,"@list"):y(d,"@list",i.clone(t))}else a.isSubjectReference(o)?c.frame({...e,embedded:!0},[o["@id"]],r,w,t):$(r[0],o)&&y(w,t,i.clone(o))}for(const e of Object.keys(n).sort()){if("@type"===e){if(!r.isObject(n[e][0])||!("@default"in n[e][0]))continue}else if(o(e))continue;const t=n[e][0]||{};if(!p(t,u,"omitDefault")&&!(e in w)){let n="@null";"@default"in t&&(n=i.clone(t["@default"])),r.isArray(n)||(n=[n]),w[e]=[{"@preserve":n}]}}for(const t of Object.keys(n["@reverse"]||{}).sort()){const o=n["@reverse"][t];for(const n of Object.keys(e.subjects))i.getValues(e.subjects[n],t).some((e=>e["@id"]===f))&&(w["@reverse"]=w["@reverse"]||{},i.addValue(w["@reverse"],t,[],{propertyIsArray:!0}),c.frame({...e,embedded:!0},[n],o,w["@reverse"][t],l))}y(d,l,w),e.subjectStack.pop()}else y(d,l,w);else y(d,l,w)}},c.cleanupNull=(e,t)=>{if(r.isArray(e)){const n=e.map((e=>c.cleanupNull(e,t)));return n.filter((e=>e))}if("@null"===e)return null;if(r.isObject(e)){if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)e[n]=c.cleanupNull(e[n],t)}return e}},3947:(e,t,n)=>{const o=n(2207),a=n(3978),r=n(7382),{REGEX_BCP47:i,addValue:d}=n(9263),{handleEvent:s}=n(2246),{RDF_LIST:l,RDF_FIRST:u,RDF_REST:c,RDF_NIL:m,RDF_TYPE:h,RDF_JSON_LITERAL:p,XSD_BOOLEAN:f,XSD_DOUBLE:N,XSD_INTEGER:g,XSD_STRING:v}=n(9378),y={};function b(e,t,n,a){if(e.termType.endsWith("Node"))return{"@id":e.value};const d={"@value":e.value};if(e.language)e.language.match(i)||a.eventHandler&&s({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e.language}},options:a}),d["@language"]=e.language;else{let l=e.datatype.value;if(l||(l=v),l===p){l="@json";try{d["@value"]=JSON.parse(d["@value"])}catch(e){throw new o("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:d["@value"],cause:e})}}if(t){if(l===f)"true"===d["@value"]?d["@value"]=!0:"false"===d["@value"]&&(d["@value"]=!1);else if(r.isNumeric(d["@value"]))if(l===g){const e=parseInt(d["@value"],10);e.toFixed(0)===d["@value"]&&(d["@value"]=e)}else l===N&&(d["@value"]=parseFloat(d["@value"]));[f,g,N,v].includes(l)||(d["@type"]=l)}else if("i18n-datatype"===n&&l.startsWith("https://www.w3.org/ns/i18n#")){const[,e,t]=l.split(/[#_]/);e.length>0&&(d["@language"]=e,e.match(i)||a.eventHandler&&s({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:a})),d["@direction"]=t}else l!==v&&(d["@type"]=l)}return d}e.exports=y,y.fromRDF=async(e,t)=>{const{useRdfType:n=!1,useNativeTypes:i=!1,rdfDirection:s=null}=t,p={},f={"@default":p},N={};if(s){if("compound-literal"===s)throw new o("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:s});if("i18n-datatype"!==s)throw new o("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:s})}for(const o of e){const e="DefaultGraph"===o.graph.termType?"@default":o.graph.value;e in f||(f[e]={}),"@default"===e||e in p||(p[e]={"@id":e});const a=f[e],r=o.subject.value,l=o.predicate.value,u=o.object;r in a||(a[r]={"@id":r});const c=a[r],g=u.termType.endsWith("Node");if(g&&!(u.value in a)&&(a[u.value]={"@id":u.value}),l===h&&!n&&g){d(c,"@type",u.value,{propertyIsArray:!0});continue}const v=b(u,i,s,t);if(d(c,l,v,{propertyIsArray:!0}),g)if(u.value===m){const e=a[u.value];"usages"in e||(e.usages=[]),e.usages.push({node:c,property:l,value:v})}else u.value in N?N[u.value]=!1:N[u.value]={node:c,property:l,value:v}}for(const e in f){const t=f[e];if(!(m in t))continue;const n=t[m];if(n.usages){for(let e of n.usages){let n=e.node,o=e.property,i=e.value;const d=[],s=[];let m=Object.keys(n).length;for(;o===c&&r.isObject(N[n["@id"]])&&r.isArray(n[u])&&1===n[u].length&&r.isArray(n[c])&&1===n[c].length&&(3===m||4===m&&r.isArray(n["@type"])&&1===n["@type"].length&&n["@type"][0]===l)&&(d.push(n[u][0]),s.push(n["@id"]),e=N[n["@id"]],n=e.node,o=e.property,i=e.value,m=Object.keys(n).length,a.isBlankNode(n)););delete i["@id"],i["@list"]=d.reverse();for(const e of s)delete t[e]}delete n.usages}}const g=[],v=Object.keys(p).sort();for(const e of v){const t=p[e];if(e in f){const n=t["@graph"]=[],o=f[e],r=Object.keys(o).sort();for(const e of r){const t=o[e];a.isSubjectReference(t)||n.push(t)}}a.isSubjectReference(t)||g.push(t)}return g}},3978:(e,t,n)=>{const o=n(7382),a={};e.exports=a,a.isSubject=e=>!(!o.isObject(e)||"@value"in e||"@set"in e||"@list"in e)&&(Object.keys(e).length>1||!("@id"in e)),a.isSubjectReference=e=>o.isObject(e)&&1===Object.keys(e).length&&"@id"in e,a.isValue=e=>o.isObject(e)&&"@value"in e,a.isList=e=>o.isObject(e)&&"@list"in e,a.isGraph=e=>o.isObject(e)&&"@graph"in e&&1===Object.keys(e).filter((e=>"@id"!==e&&"@index"!==e)).length,a.isSimpleGraph=e=>a.isGraph(e)&&!("@id"in e),a.isBlankNode=e=>{if(o.isObject(e)){if("@id"in e){const t=e["@id"];return!o.isString(t)||0===t.indexOf("_:")}return 0===Object.keys(e).length||!("@value"in e||"@set"in e||"@list"in e)}return!1}},4841:(e,t,n)=>{const o=n(989),a=n(701),r=n(9263),i=n(7034),d=r.IdentifierIssuer,s=n(2207),l=n(9749),u=n(8229),{expand:c}=n(4019),{flatten:m}=n(5229),{fromRDF:h}=n(3947),{toRDF:p}=n(9180),{frameMergedOrDefault:f,cleanupNull:N}=n(7946),{isArray:g,isObject:v,isString:y}=n(7382),{isSubjectReference:b}=n(3978),{expandIri:$,getInitialContext:x,process:w,processingMode:_}=n(1972),{compact:C,compactIri:S}=n(1058),{createNodeMap:q,createMergedNodeMap:E,mergeNodeMaps:I}=n(9233),{logEventHandler:A,logWarningEventHandler:T,safeEventHandler:R,setDefaultEventHandler:L,setupEventHandler:k,strictEventHandler:P,unhandledEventHandler:j}=n(2246),O=function(e){const t={},O=new l({max:100});function D(t,{documentLoader:n=e.documentLoader,...o}){if(t&&"compactionMap"in t)throw new s('"compactionMap" not supported.',"jsonld.OptionsError");if(t&&"expansionMap"in t)throw new s('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:n},o,t,{eventHandler:k({options:t})})}return e.compact=async function(t,n,o){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(null===n)throw new s("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(null===t)return null;let a;(o=D(o,{base:y(t)?t:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new d("_:b"),contextResolver:new i({sharedCache:O})})).link&&(o.skipExpansion=!0),o.compactToRelative||delete o.base,a=o.skipExpansion?t:await e.expand(t,o);const l=await e.processContext(x(o),n,o);let u=await C({activeCtx:l,element:a,options:o});o.compactArrays&&!o.graph&&g(u)?1===u.length?u=u[0]:0===u.length&&(u={}):o.graph&&v(u)&&(u=[u]),v(n)&&"@context"in n&&(n=n["@context"]),n=r.clone(n),g(n)||(n=[n]);const c=n;n=[];for(let e=0;e<c.length;++e)(!v(c[e])||Object.keys(c[e]).length>0)&&n.push(c[e]);const m=n.length>0;if(1===n.length&&(n=n[0]),g(u)){const e=S({activeCtx:l,iri:"@graph",relativeTo:{vocab:!0}}),t=u;u={},m&&(u["@context"]=n),u[e]=t}else if(v(u)&&m){const e=u;u={"@context":n};for(const t in e)u[t]=e[t]}return u},e.expand=async function(t,n){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const o={},a=[];if("expandContext"in(n=D(n,{keepFreeFloatingNodes:!1,contextResolver:new i({sharedCache:O})}))){const e=r.clone(n.expandContext);v(e)&&"@context"in e?o.expandContext=e:o.expandContext={"@context":e},a.push(o.expandContext)}let d;if(y(t)){const r=await e.get(t,n);d=r.documentUrl,o.input=r.document,r.contextUrl&&(o.remoteContext={"@context":r.contextUrl},a.push(o.remoteContext))}else o.input=r.clone(t);"base"in n||(n.base=d||"");let s=x(n);for(const e of a)s=await w({activeCtx:s,localCtx:e,options:n});let l=await c({activeCtx:s,element:o.input,options:n});return v(l)&&"@graph"in l&&1===Object.keys(l).length?l=l["@graph"]:null===l&&(l=[]),g(l)||(l=[l]),l},e.flatten=async function(t,n,o){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");n="function"==typeof n?null:n||null,o=D(o,{base:y(t)?t:"",contextResolver:new i({sharedCache:O})});const a=await e.expand(t,o),r=m(a);return null===n?r:(o.graph=!0,o.skipExpansion=!0,await e.compact(r,n,o))},e.frame=async function(t,n,o){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(o=D(o,{base:y(t)?t:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new i({sharedCache:O})}),y(n)){const t=await e.get(n,o);if(n=t.document,t.contextUrl){let e=n["@context"];e?g(e)?e.push(t.contextUrl):e=[e,t.contextUrl]:e=t.contextUrl,n["@context"]=e}}const a=n&&n["@context"]||{},r=await e.processContext(x(o),a,o);o.hasOwnProperty("omitGraph")||(o.omitGraph=_(r,1.1)),o.hasOwnProperty("pruneBlankNodeIdentifiers")||(o.pruneBlankNodeIdentifiers=_(r,1.1));const d=await e.expand(t,o),s={...o};s.isFrame=!0,s.keepFreeFloatingNodes=!0;const l=await e.expand(n,s),u=Object.keys(n).map((e=>$(r,e,{vocab:!0})));s.merged=!u.includes("@graph"),s.is11=_(r,1.1);const c=f(d,l,s);s.graph=!o.omitGraph,s.skipExpansion=!0,s.link={},s.framing=!0;let m=await e.compact(c,a,s);return s.link={},m=N(m,s),m},e.link=async function(t,n,o){const a={};return n&&(a["@context"]=n),a["@embed"]="@link",e.frame(t,a,o)},e.normalize=e.canonize=async function(t,n){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if("inputFormat"in(n=D(n,{base:y(t)?t:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new i({sharedCache:O})}))){if("application/n-quads"!==n.inputFormat&&"application/nquads"!==n.inputFormat)throw new s("Unknown canonicalization input format.","jsonld.CanonizeError");const e=u.parse(t);return o.canonize(e,n)}const a={...n};delete a.format,a.produceGeneralizedRdf=!1;const r=await e.toRDF(t,a);return o.canonize(r,n)},e.fromRDF=async function(e,n){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");n=D(n,{format:y(e)?"application/n-quads":void 0});const{format:o}=n;let{rdfParser:a}=n;if(o){if(a=a||t[o],!a)throw new s("Unknown input format.","jsonld.UnknownFormat",{format:o})}else a=()=>e;const r=await a(e);return h(r,n)},e.toRDF=async function(t,n){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let o;o=(n=D(n,{base:y(t)?t:"",skipExpansion:!1,contextResolver:new i({sharedCache:O})})).skipExpansion?t:await e.expand(t,n);const a=p(o,n);if(n.format){if("application/n-quads"===n.format||"application/nquads"===n.format)return u.serialize(a);throw new s("Unknown output format.","jsonld.UnknownFormat",{format:n.format})}return a},e.createNodeMap=async function(t,n){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");n=D(n,{base:y(t)?t:"",contextResolver:new i({sharedCache:O})});const o=await e.expand(t,n);return E(o,n)},e.merge=async function(t,n,o){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!g(t))throw new TypeError('Could not merge, "docs" must be an array.');n="function"==typeof n?null:n||null,o=D(o,{contextResolver:new i({sharedCache:O})});const a=await Promise.all(t.map((t=>{const n={...o};return e.expand(t,n)})));let s=!0;"mergeNodes"in o&&(s=o.mergeNodes);const l=o.issuer||new d("_:b"),u={"@default":{}};for(let e=0;e<a.length;++e){const t=r.relabelBlankNodes(a[e],{issuer:new d("_:b"+e+"-")}),n=s||0===e?u:{"@default":{}};if(q(t,n,"@default",l),n!==u)for(const e in n){const t=n[e];if(!(e in u)){u[e]=t;continue}const o=u[e];for(const e in t)e in o||(o[e]=t[e])}}const c=I(u),m=[],h=Object.keys(c).sort();for(let e=0;e<h.length;++e){const t=c[h[e]];b(t)||m.push(t)}return null===n?m:(o.graph=!0,o.skipExpansion=!0,await e.compact(m,n,o))},Object.defineProperty(e,"documentLoader",{get:()=>e._documentLoader,set:t=>e._documentLoader=t}),e.documentLoader=async e=>{throw new s("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:e})},e.get=async function(t,n){let o;o="function"==typeof n.documentLoader?n.documentLoader:e.documentLoader;const a=await o(t);try{if(!a.document)throw new s("No remote document found at the given URL.","jsonld.NullRemoteDocument");y(a.document)&&(a.document=JSON.parse(a.document))}catch(e){throw new s("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:e,remoteDoc:a})}return a},e.processContext=async function(e,t,n){return n=D(n,{base:"",contextResolver:new i({sharedCache:O})}),null===t?x(n):(t=r.clone(t),v(t)&&"@context"in t||(t={"@context":t}),w({activeCtx:e,localCtx:t,options:n}))},e.getContextValue=n(1972).getContextValue,e.documentLoaders={},e.useDocumentLoader=function(t){if(!(t in e.documentLoaders))throw new s('Unknown document loader type: "'+t+'"',"jsonld.UnknownDocumentLoader",{type:t});e.documentLoader=e.documentLoaders[t].apply(e,Array.prototype.slice.call(arguments,1))},e.registerRDFParser=function(e,n){t[e]=n},e.unregisterRDFParser=function(e){delete t[e]},e.registerRDFParser("application/n-quads",u.parse),e.registerRDFParser("application/nquads",u.parse),e.url=n(470),e.logEventHandler=A,e.logWarningEventHandler=T,e.safeEventHandler=R,e.setDefaultEventHandler=L,e.strictEventHandler=P,e.unhandledEventHandler=j,e.util=r,Object.assign(e,r),e.promises=e,e.RequestQueue=n(3743),e.JsonLdProcessor=n(5445)(e),a.setupGlobals(e),a.setupDocumentLoaders(e),e},D=function(){return O((function(){return D()}))};O(D),e.exports=D},9233:(e,t,n)=>{const{isKeyword:o}=n(1972),a=n(3978),r=n(7382),i=n(9263),d=n(2207),s={};e.exports=s,s.createMergedNodeMap=(e,t)=>{const n=(t=t||{}).issuer||new i.IdentifierIssuer("_:b"),o={"@default":{}};return s.createNodeMap(e,o,"@default",n),s.mergeNodeMaps(o)},s.createNodeMap=(e,t,n,l,u,c)=>{if(r.isArray(e)){for(const o of e)s.createNodeMap(o,t,n,l,void 0,c);return}if(!r.isObject(e))return void(c&&c.push(e));if(a.isValue(e)){if("@type"in e){let t=e["@type"];0===t.indexOf("_:")&&(e["@type"]=t=l.getId(t))}return void(c&&c.push(e))}if(c&&a.isList(e)){const o=[];return s.createNodeMap(e["@list"],t,n,l,u,o),void c.push({"@list":o})}if("@type"in e){const t=e["@type"];for(const e of t)0===e.indexOf("_:")&&l.getId(e)}r.isUndefined(u)&&(u=a.isBlankNode(e)?l.getId(e["@id"]):e["@id"]),c&&c.push({"@id":u});const m=t[n],h=m[u]=m[u]||{};h["@id"]=u;const p=Object.keys(e).sort();for(let r of p){if("@id"===r)continue;if("@reverse"===r){const o={"@id":u},r=e["@reverse"];for(const e in r){const d=r[e];for(const r of d){let d=r["@id"];a.isBlankNode(r)&&(d=l.getId(d)),s.createNodeMap(r,t,n,l,d),i.addValue(m[d],e,o,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if("@graph"===r){u in t||(t[u]={}),s.createNodeMap(e[r],t,u,l);continue}if("@included"===r){s.createNodeMap(e[r],t,n,l);continue}if("@type"!==r&&o(r)){if("@index"===r&&r in h&&(e[r]!==h[r]||e[r]["@id"]!==h[r]["@id"]))throw new d("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:h});h[r]=e[r];continue}const c=e[r];if(0===r.indexOf("_:")&&(r=l.getId(r)),0!==c.length)for(let e of c)if("@type"===r&&(e=0===e.indexOf("_:")?l.getId(e):e),a.isSubject(e)||a.isSubjectReference(e)){if("@id"in e&&!e["@id"])continue;const o=a.isBlankNode(e)?l.getId(e["@id"]):e["@id"];i.addValue(h,r,{"@id":o},{propertyIsArray:!0,allowDuplicate:!1}),s.createNodeMap(e,t,n,l,o)}else if(a.isValue(e))i.addValue(h,r,e,{propertyIsArray:!0,allowDuplicate:!1});else if(a.isList(e)){const o=[];s.createNodeMap(e["@list"],t,n,l,u,o),e={"@list":o},i.addValue(h,r,e,{propertyIsArray:!0,allowDuplicate:!1})}else s.createNodeMap(e,t,n,l,u),i.addValue(h,r,e,{propertyIsArray:!0,allowDuplicate:!1});else i.addValue(h,r,[],{propertyIsArray:!0})}},s.mergeNodeMapGraphs=e=>{const t={};for(const n of Object.keys(e).sort())for(const a of Object.keys(e[n]).sort()){const r=e[n][a];a in t||(t[a]={"@id":a});const d=t[a];for(const e of Object.keys(r).sort())if(o(e)&&"@type"!==e)d[e]=i.clone(r[e]);else for(const t of r[e])i.addValue(d,e,i.clone(t),{propertyIsArray:!0,allowDuplicate:!1})}return t},s.mergeNodeMaps=e=>{const t=e["@default"],n=Object.keys(e).sort();for(const o of n){if("@default"===o)continue;const n=e[o];let r=t[o];r?"@graph"in r||(r["@graph"]=[]):t[o]=r={"@id":o,"@graph":[]};const i=r["@graph"];for(const e of Object.keys(n).sort()){const t=n[e];a.isSubjectReference(t)||i.push(t)}}return t}},701:(e,t,n)=>{const o=n(6957),a={};e.exports=a,a.setupDocumentLoaders=function(e){"undefined"!=typeof XMLHttpRequest&&(e.documentLoaders.xhr=o,e.useDocumentLoader("xhr"))},a.setupGlobals=function(e){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})}},9180:(e,t,n)=>{const{createNodeMap:o}=n(9233),{isKeyword:a}=n(1972),r=n(3978),i=n(2341),d=n(2207),s=n(7382),l=n(9263),{handleEvent:u}=n(2246),{RDF_FIRST:c,RDF_REST:m,RDF_NIL:h,RDF_TYPE:p,RDF_JSON_LITERAL:f,RDF_LANGSTRING:N,XSD_BOOLEAN:g,XSD_DOUBLE:v,XSD_INTEGER:y,XSD_STRING:b}=n(9378),{isAbsolute:$}=n(470),x={};function w(e,t,n,o,r){const i=Object.keys(t).sort();for(const d of i){const i=t[d],s=Object.keys(i).sort();for(let t of s){const s=i[t];if("@type"===t)t=p;else if(a(t))continue;for(const a of s){const i={termType:d.startsWith("_:")?"BlankNode":"NamedNode",value:d};if(!$(d)){r.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:d}},options:r});continue}const s={termType:t.startsWith("_:")?"BlankNode":"NamedNode",value:t};if(!$(t)){r.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:t}},options:r});continue}if("BlankNode"===s.termType&&!r.produceGeneralizedRdf){r.eventHandler&&u({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:o.getOldIds().find((e=>o.getId(e)===t))}},options:r});continue}const l=_(a,o,e,n,r.rdfDirection,r);l&&e.push({subject:i,predicate:s,object:l,graph:n})}}}}function _(e,t,n,o,a,l){const p={};if(r.isValue(e)){p.termType="Literal",p.value=void 0,p.datatype={termType:"NamedNode"};let t=e["@value"];const n=e["@type"]||null;if("@json"===n)p.value=i(t),p.datatype.value=f;else if(s.isBoolean(t))p.value=t.toString(),p.datatype.value=n||g;else if(s.isDouble(t)||n===v)s.isDouble(t)||(t=parseFloat(t)),p.value=t.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),p.datatype.value=n||v;else if(s.isNumber(t))p.value=t.toFixed(0),p.datatype.value=n||y;else if("@direction"in e&&"i18n-datatype"===a){const n=`https://www.w3.org/ns/i18n#${(e["@language"]||"").toLowerCase()}_${e["@direction"]}`;p.datatype.value=n,p.value=t}else{if("@direction"in e&&"compound-literal"===a)throw new d("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:a});if("@direction"in e&&a)throw new d("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:a});"@language"in e?("@direction"in e&&!a&&l.eventHandler&&u({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:p.value}},options:l}),p.value=t,p.datatype.value=n||N,p.language=e["@language"]):("@direction"in e&&!a&&l.eventHandler&&u({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:p.value}},options:l}),p.value=t,p.datatype.value=n||b)}}else if(r.isList(e)){const r=function(e,t,n,o,a,r){const i={termType:"NamedNode",value:c},d={termType:"NamedNode",value:m},s={termType:"NamedNode",value:h},l=e.pop(),u=l?{termType:"BlankNode",value:t.getId()}:s;let p=u;for(const s of e){const e=_(s,t,n,o,a,r),l={termType:"BlankNode",value:t.getId()};n.push({subject:p,predicate:i,object:e,graph:o}),n.push({subject:p,predicate:d,object:l,graph:o}),p=l}if(l){const e=_(l,t,n,o,a,r);n.push({subject:p,predicate:i,object:e,graph:o}),n.push({subject:p,predicate:d,object:s,graph:o})}return u}(e["@list"],t,n,o,a,l);p.termType=r.termType,p.value=r.value}else{const t=s.isObject(e)?e["@id"]:e;p.termType=t.startsWith("_:")?"BlankNode":"NamedNode",p.value=t}return"NamedNode"!==p.termType||$(p.value)?p:(l.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:p.value}},options:l}),null)}e.exports=x,x.toRDF=(e,t)=>{const n=new l.IdentifierIssuer("_:b"),a={"@default":{}};o(e,a,"@default",n);const r=[],i=Object.keys(a).sort();for(const e of i){let o;if("@default"===e)o={termType:"DefaultGraph",value:""};else{if(!$(e)){t.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:e}},options:t});continue}o=e.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},o.value=e}w(r,a[e],o,n,t)}return r}},7382:e=>{const t={};e.exports=t,t.isArray=Array.isArray,t.isBoolean=e=>"boolean"==typeof e||"[object Boolean]"===Object.prototype.toString.call(e),t.isDouble=e=>t.isNumber(e)&&(-1!==String(e).indexOf(".")||Math.abs(e)>=1e21),t.isEmptyObject=e=>t.isObject(e)&&0===Object.keys(e).length,t.isNumber=e=>"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e),t.isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),t.isObject=e=>"[object Object]"===Object.prototype.toString.call(e),t.isString=e=>"string"==typeof e||"[object String]"===Object.prototype.toString.call(e),t.isUndefined=e=>void 0===e},470:(e,t,n)=>{const o=n(7382),a={};e.exports=a,a.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},a.parse=(e,t)=>{const n={},o=a.parsers[t||"full"],r=o.regex.exec(e);let i=o.keys.length;for(;i--;)n[o.keys[i]]=void 0===r[i]?null:r[i];return("https"===n.scheme&&"443"===n.port||"http"===n.scheme&&"80"===n.port)&&(n.href=n.href.replace(":"+n.port,""),n.authority=n.authority.replace(":"+n.port,""),n.port=null),n.normalizedPath=a.removeDotSegments(n.path),n},a.prependBase=(e,t)=>{if(null===e)return t;if(a.isAbsolute(t))return t;e&&!o.isString(e)||(e=a.parse(e||""));const n=a.parse(t),r={protocol:e.protocol||""};if(null!==n.authority)r.authority=n.authority,r.path=n.path,r.query=n.query;else if(r.authority=e.authority,""===n.path)r.path=e.path,null!==n.query?r.query=n.query:r.query=e.query;else{if(0===n.path.indexOf("/"))r.path=n.path;else{let t=e.path;t=t.substr(0,t.lastIndexOf("/")+1),(t.length>0||e.authority)&&"/"!==t.substr(-1)&&(t+="/"),t+=n.path,r.path=t}r.query=n.query}""!==n.path&&(r.path=a.removeDotSegments(r.path));let i=r.protocol;return null!==r.authority&&(i+="//"+r.authority),i+=r.path,null!==r.query&&(i+="?"+r.query),null!==n.fragment&&(i+="#"+n.fragment),""===i&&(i="./"),i},a.removeBase=(e,t)=>{if(null===e)return t;e&&!o.isString(e)||(e=a.parse(e||""));let n="";if(""!==e.href?n+=(e.protocol||"")+"//"+(e.authority||""):t.indexOf("//")&&(n+="//"),0!==t.indexOf(n))return t;const r=a.parse(t.substr(n.length)),i=e.normalizedPath.split("/"),d=r.normalizedPath.split("/"),s=r.fragment||r.query?0:1;for(;i.length>0&&d.length>s&&i[0]===d[0];)i.shift(),d.shift();let l="";if(i.length>0){i.pop();for(let e=0;e<i.length;++e)l+="../"}return l+=d.join("/"),null!==r.query&&(l+="?"+r.query),null!==r.fragment&&(l+="#"+r.fragment),""===l&&(l="./"),l},a.removeDotSegments=e=>{if(0===e.length)return"";const t=e.split("/"),n=[];for(;t.length>0;){const e=t.shift(),o=0===t.length;"."!==e?".."!==e?n.push(e):(n.pop(),o&&n.push("")):o&&n.push("")}return"/"===e[0]&&n.length>0&&""!==n[0]&&n.unshift(""),1===n.length&&""===n[0]?"/":n.join("/")};const r=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;a.isAbsolute=e=>o.isString(e)&&r.test(e),a.isRelative=e=>o.isString(e)},9263:(e,t,n)=>{const o=n(3978),a=n(7382),r=n(989).IdentifierIssuer,i=n(2207),d=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,s=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,l=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,u="application/ld+json, application/json",c={};function m(e,t){if(a.isArray(t))for(let n=0;n<t.length;++n)t[n]=m(e,t[n]);else if(o.isList(t))t["@list"]=m(e,t["@list"]);else if(a.isObject(t)){o.isBlankNode(t)&&(t["@id"]=e.getId(t["@id"]));const n=Object.keys(t).sort();for(let o=0;o<n.length;++o){const a=n[o];"@id"!==a&&(t[a]=m(e,t[a]))}}return t}e.exports=c,c.IdentifierIssuer=r,c.REGEX_BCP47=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,c.REGEX_KEYWORD=/^@[a-zA-Z]+$/,c.clone=function(e){if(e&&"object"==typeof e){let t;if(a.isArray(e)){t=[];for(let n=0;n<e.length;++n)t[n]=c.clone(e[n])}else if(e instanceof Map){t=new Map;for(const[n,o]of e)t.set(n,c.clone(o))}else if(e instanceof Set){t=new Set;for(const n of e)t.add(c.clone(n))}else if(a.isObject(e)){t={};for(const n in e)t[n]=c.clone(e[n])}else t=e.toString();return t}return e},c.asArray=function(e){return Array.isArray(e)?e:[e]},c.buildHeaders=(e={})=>{const t=Object.keys(e).some((e=>"accept"===e.toLowerCase()));if(t)throw new RangeError('Accept header may not be specified; only "'+u+'" is supported.');return Object.assign({Accept:u},e)},c.parseLinkHeader=e=>{const t={},n=e.match(d);for(let e=0;e<n.length;++e){let o=n[e].match(s);if(!o)continue;const a={target:o[1]},r=o[2];for(;o=l.exec(r);)a[o[1]]=void 0===o[2]?o[3]:o[2];const i=a.rel||"";Array.isArray(t[i])?t[i].push(a):t.hasOwnProperty(i)?t[i]=[t[i],a]:t[i]=a}return t},c.validateTypeValue=(e,t)=>{if(!(a.isString(e)||a.isArray(e)&&e.every((e=>a.isString(e))))){if(t&&a.isObject(e))switch(Object.keys(e).length){case 0:return;case 1:if("@default"in e&&c.asArray(e["@default"]).every((e=>a.isString(e))))return}throw new i('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:e})}},c.hasProperty=(e,t)=>{if(e.hasOwnProperty(t)){const n=e[t];return!a.isArray(n)||n.length>0}return!1},c.hasValue=(e,t,n)=>{if(c.hasProperty(e,t)){let r=e[t];const i=o.isList(r);if(a.isArray(r)||i){i&&(r=r["@list"]);for(let e=0;e<r.length;++e)if(c.compareValues(n,r[e]))return!0}else if(!a.isArray(n))return c.compareValues(n,r)}return!1},c.addValue=(e,t,n,o)=>{if("propertyIsArray"in(o=o||{})||(o.propertyIsArray=!1),"valueIsArray"in o||(o.valueIsArray=!1),"allowDuplicate"in o||(o.allowDuplicate=!0),"prependValue"in o||(o.prependValue=!1),o.valueIsArray)e[t]=n;else if(a.isArray(n)){0===n.length&&o.propertyIsArray&&!e.hasOwnProperty(t)&&(e[t]=[]),o.prependValue&&(n=n.concat(e[t]),e[t]=[]);for(let a=0;a<n.length;++a)c.addValue(e,t,n[a],o)}else if(e.hasOwnProperty(t)){const r=!o.allowDuplicate&&c.hasValue(e,t,n);a.isArray(e[t])||r&&!o.propertyIsArray||(e[t]=[e[t]]),r||(o.prependValue?e[t].unshift(n):e[t].push(n))}else e[t]=o.propertyIsArray?[n]:n},c.getValues=(e,t)=>[].concat(e[t]||[]),c.removeProperty=(e,t)=>{delete e[t]},c.removeValue=(e,t,n,o)=>{"propertyIsArray"in(o=o||{})||(o.propertyIsArray=!1);const a=c.getValues(e,t).filter((e=>!c.compareValues(e,n)));0===a.length?c.removeProperty(e,t):1!==a.length||o.propertyIsArray?e[t]=a:e[t]=a[0]},c.relabelBlankNodes=(e,t)=>m((t=t||{}).issuer||new r("_:b"),e),c.compareValues=(e,t)=>e===t||!(!o.isValue(e)||!o.isValue(t)||e["@value"]!==t["@value"]||e["@type"]!==t["@type"]||e["@language"]!==t["@language"]||e["@index"]!==t["@index"])||!!(a.isObject(e)&&"@id"in e&&a.isObject(t)&&"@id"in t)&&e["@id"]===t["@id"],c.compareShortestLeast=(e,t)=>e.length<t.length?-1:t.length<e.length?1:e===t?0:e<t?-1:1},9749:(e,t,n)=>{const o=n(8799),a=Symbol("max"),r=Symbol("length"),i=Symbol("lengthCalculator"),d=Symbol("allowStale"),s=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),c=Symbol("lruList"),m=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1,f=(e,t,n)=>{const o=e[m].get(t);if(o){const t=o.value;if(N(e,t)){if(v(e,o),!e[d])return}else n&&(e[h]&&(o.value.now=Date.now()),e[c].unshiftNode(o));return t.value}},N=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[s]&&n>e[s]},g=e=>{if(e[r]>e[a])for(let t=e[c].tail;e[r]>e[a]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[l]&&e[l](n.key,n.value),e[r]-=n.length,e[m].delete(n.key),e[c].removeNode(t)}};class y{constructor(e,t,n,o,a){this.key=e,this.value=t,this.length=n,this.now=o,this.maxAge=a||0}}const b=(e,t,n,o)=>{let a=n.value;N(e,a)&&(v(e,n),e[d]||(a=void 0)),a&&t.call(o,a.value,a.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[a]=e.max||1/0;const t=e.length||p;if(this[i]="function"!=typeof t?p:t,this[d]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[s]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||1/0,g(this)}get max(){return this[a]}set allowStale(e){this[d]=!!e}get allowStale(){return this[d]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[s]=e,g(this)}get maxAge(){return this[s]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[i]&&(this[i]=e,this[r]=0,this[c].forEach((e=>{e.length=this[i](e.value,e.key),this[r]+=e.length}))),g(this)}get lengthCalculator(){return this[i]}get length(){return this[r]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let n=this[c].tail;null!==n;){const o=n.prev;b(this,e,n,t),n=o}}forEach(e,t){t=t||this;for(let n=this[c].head;null!==n;){const o=n.next;b(this,e,n,t),n=o}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){this[l]&&this[c]&&this[c].length&&this[c].forEach((e=>this[l](e.key,e.value))),this[m]=new Map,this[c]=new o,this[r]=0}dump(){return this[c].map((e=>!N(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,t,n){if((n=n||this[s])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const o=n?Date.now():0,d=this[i](t,e);if(this[m].has(e)){if(d>this[a])return v(this,this[m].get(e)),!1;const i=this[m].get(e).value;return this[l]&&(this[u]||this[l](e,i.value)),i.now=o,i.maxAge=n,i.value=t,this[r]+=d-i.length,i.length=d,this.get(e),g(this),!0}const h=new y(e,t,d,o,n);return h.length>this[a]?(this[l]&&this[l](e,t),!1):(this[r]+=h.length,this[c].unshift(h),this[m].set(e,this[c].head),g(this),!0)}has(e){if(!this[m].has(e))return!1;const t=this[m].get(e).value;return!N(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[c].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[m].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n],a=o.e||0;if(0===a)this.set(o.k,o.v);else{const e=a-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[m].forEach(((e,t)=>f(this,t,!1)))}}},6585:e=>{var t=1e3,n=60*t,o=60*n,a=24*o,r=7*a;function i(e,t,n,o){var a=t>=1.5*n;return Math.round(e/n)+" "+o+(a?"s":"")}e.exports=function(e,d){d=d||{};var s,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var d=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*d;case"weeks":case"week":case"w":return d*r;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*o;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}(e);if("number"===u&&isFinite(e))return d.long?(s=e,(l=Math.abs(s))>=a?i(s,l,a,"day"):l>=o?i(s,l,o,"hour"):l>=n?i(s,l,n,"minute"):l>=t?i(s,l,t,"second"):s+" ms"):function(e){var r=Math.abs(e);return r>=a?Math.round(e/a)+"d":r>=o?Math.round(e/o)+"h":r>=n?Math.round(e/n)+"m":r>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5606:e=>{var t,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var d,s=[],l=!1,u=-1;function c(){l&&d&&(l=!1,d.length?s=d.concat(s):u=-1,s.length&&m())}function m(){if(!l){var e=i(c);l=!0;for(var t=s.length;t;){for(d=s,s=[];++u<t;)d&&d[u].run();u=-1,t=s.length}d=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||i(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},9596:(e,t,n)=>{let o;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:n.g):e=>(o||(o=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},989:(e,t,n)=>{e.exports=n(4005)},2985:e=>{e.exports=class e{constructor(e,t=new Map,n=0){this.prefix=e,this._existing=t,this.counter=n}clone(){const{prefix:t,_existing:n,counter:o}=this;return new e(t,new Map(n),o)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const n=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,n),n}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}}},3751:(e,t,n)=>{n(2791);const o=self.crypto||self.msCrypto;e.exports=class{constructor(e){if(!o||!o.subtle)throw new Error("crypto.subtle not found.");if("sha256"===e)this.algorithm={name:"SHA-256"};else{if("sha1"!==e)throw new Error(`Unsupported algorithm "${e}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(e){this._content+=e}async digest(){const e=(new TextEncoder).encode(this._content),t=new Uint8Array(await o.subtle.digest(this.algorithm,e));let n="";for(let e=0;e<t.length;++e)n+=t[e].toString(16).padStart(2,"0");return n}}},1227:e=>{const t="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",n="http://www.w3.org/2001/XMLSchema#string",o="NamedNode",a="BlankNode",r="Literal",i="DefaultGraph",d={};(()=>{const e="(?:<([^:]+:[^>]*)>)",t="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_",n=t+"0-9-·̀-ͯ‿-⁀",o="(_:(?:["+t+"0-9])(?:(?:["+n+".])*(?:["+n+"]))?)",a="[ \\t]+",r="[ \\t]*",i="(?:"+e+"|"+o+")"+a,s=e+a,l="(?:"+e+"|"+o+'|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^'+e+")|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))"+r,u="(?:\\.|(?:(?:"+e+"|"+o+")"+r+"\\.))";d.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,d.empty=new RegExp("^"+r+"$"),d.quad=new RegExp("^"+r+i+s+l+u+r+"$")})(),e.exports=class e{static parse(e){const s=[],l={},c=e.split(d.eoln);let m=0;for(const e of c){if(m++,d.empty.test(e))continue;const c=e.match(d.quad);if(null===c)throw new Error("N-Quads parse error on line "+m+".");const f={subject:null,predicate:null,object:null,graph:null};if(void 0!==c[1]?f.subject={termType:o,value:c[1]}:f.subject={termType:a,value:c[2]},f.predicate={termType:o,value:c[3]},void 0!==c[4]?f.object={termType:o,value:c[4]}:void 0!==c[5]?f.object={termType:a,value:c[5]}:(f.object={termType:r,value:void 0,datatype:{termType:o}},void 0!==c[7]?f.object.datatype.value=c[7]:void 0!==c[8]?(f.object.datatype.value=t,f.object.language=c[8]):f.object.datatype.value=n,f.object.value=u(c[6])),void 0!==c[9]?f.graph={termType:o,value:c[9]}:void 0!==c[10]?f.graph={termType:a,value:c[10]}:f.graph={termType:i,value:""},f.graph.value in l){let e=!0;const t=l[f.graph.value];for(const n of t)if(p=f,(h=n).subject.termType===p.subject.termType&&h.object.termType===p.object.termType&&h.subject.value===p.subject.value&&h.predicate.value===p.predicate.value&&h.object.value===p.object.value&&(h.object.termType!==r||h.object.datatype.termType===p.object.datatype.termType&&h.object.language===p.object.language&&h.object.datatype.value===p.object.datatype.value)){e=!1;break}e&&(t.push(f),s.push(f))}else l[f.graph.value]=[f],s.push(f)}var h,p;return s}static serialize(t){Array.isArray(t)||(t=e.legacyDatasetToQuads(t));const n=[];for(const o of t)n.push(e.serializeQuad(o));return n.sort().join("")}static serializeQuadComponents(e,r,i,d){let l="";return e.termType===o?l+=`<${e.value}>`:l+=`${e.value}`,l+=` <${r.value}> `,i.termType===o?l+=`<${i.value}>`:i.termType===a?l+=i.value:(l+=`"${function(e){return e.replace(s,(function(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}}))}(i.value)}"`,i.datatype.value===t?i.language&&(l+=`@${i.language}`):i.datatype.value!==n&&(l+=`^^<${i.datatype.value}>`)),d.termType===o?l+=` <${d.value}>`:d.termType===a&&(l+=` ${d.value}`),l+=" .\n",l}static serializeQuad(t){return e.serializeQuadComponents(t.subject,t.predicate,t.object,t.graph)}static legacyDatasetToQuads(e){const d=[],s={"blank node":a,IRI:o,literal:r};for(const l in e)e[l].forEach((e=>{const u={};for(const a in e){const i=e[a],d={termType:s[i.type],value:i.value};d.termType===r&&(d.datatype={termType:o},"datatype"in i&&(d.datatype.value=i.datatype),"language"in i?("datatype"in i||(d.datatype.value=t),d.language=i.language):"datatype"in i||(d.datatype.value=n)),u[a]=d}u.graph="@default"===l?{termType:i,value:""}:{termType:l.startsWith("_:")?a:o,value:l},d.push(u)}));return d}};const s=/["\\\n\r]/g,l=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function u(e){return e.replace(l,(function(e,t,n,o){if(t)switch(t){case"t":return"\t";case"b":return"\b";case"n":return"\n";case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(n)return String.fromCharCode(parseInt(n,16));if(o)throw new Error("Unsupported U escape")}))}},9925:e=>{e.exports=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;t<e.length;++t)this.dir.set(e[t],!0)}hasNext(){return!this.done}next(){const{current:e,dir:t}=this,n=e.slice();let o=null,a=0;const r=e.length;for(let n=0;n<r;++n){const i=e[n],d=t.get(i);(null===o||i>o)&&(d&&n>0&&i>e[n-1]||!d&&n<r-1&&i>e[n+1])&&(o=i,a=n)}if(null===o)this.done=!0;else{const n=t.get(o)?a-1:a+1;e[a]=e[n],e[n]=o;for(const n of e)n>o&&t.set(n,!t.get(n))}return n}}},3513:(e,t,n)=>{const o=n(2985),a=n(3751),r=n(9925),i=n(1227);function d(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=class{constructor({createMessageDigest:e=(()=>new a("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:n=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new o("_:c14n",t),this.createMessageDigest=e,this.maxDeepIterations=n,this.quads=null,this.deepIterations=null}async main(e){this.deepIterations=new Map,this.quads=e;for(const t of e)this._addBlankNodeQuadInfo({quad:t,component:t.subject}),this._addBlankNodeQuadInfo({quad:t,component:t.object}),this._addBlankNodeQuadInfo({quad:t,component:t.graph});const t=new Map,n=[...this.blankNodeInfo.keys()];let a=0;for(const e of n)++a%100==0&&await this._yield(),await this._hashAndTrackBlankNode({id:e,hashToBlankNodes:t});const r=[...t.keys()].sort(),s=[];for(const e of r){const n=t.get(e);if(n.length>1){s.push(n);continue}const o=n[0];this.canonicalIssuer.getId(o)}for(const e of s){const t=[];for(const n of e){if(this.canonicalIssuer.hasId(n))continue;const e=new o("_:b");e.getId(n);const a=await this.hashNDegreeQuads(n,e);t.push(a)}t.sort(d);for(const e of t){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const l=[];for(const e of this.quads){const t=i.serializeQuadComponents(this._componentWithCanonicalId(e.subject),e.predicate,this._componentWithCanonicalId(e.object),this._componentWithCanonicalId(e.graph));l.push(t)}return l.sort(),l.join("")}async hashFirstDegreeQuads(e){const t=[],n=this.blankNodeInfo.get(e),o=n.quads;for(const n of o){const o={subject:null,predicate:n.predicate,object:null,graph:null};o.subject=this.modifyFirstDegreeComponent(e,n.subject,"subject"),o.object=this.modifyFirstDegreeComponent(e,n.object,"object"),o.graph=this.modifyFirstDegreeComponent(e,n.graph,"graph"),t.push(i.serializeQuad(o))}t.sort();const a=this.createMessageDigest();for(const e of t)a.update(e);return n.hash=await a.digest(),n.hash}async hashRelatedBlankNode(e,t,n,o){let a;a=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):n.hasId(e)?n.getId(e):this.blankNodeInfo.get(e).hash;const r=this.createMessageDigest();return r.update(o),"g"!==o&&r.update(this.getRelatedPredicate(t)),r.update(a),r.digest()}async hashNDegreeQuads(e,t){const n=this.deepIterations.get(e)||0;if(n>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(e,n+1);const o=this.createMessageDigest(),a=await this.createHashToRelated(e,t),i=[...a.keys()].sort();for(const e of i){o.update(e);let n,i="";const d=new r(a.get(e));let s=0;for(;d.hasNext();){const e=d.next();++s%3==0&&await this._yield();let o=t.clone(),a="";const r=[];let l=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?a+=this.canonicalIssuer.getId(t):(o.hasId(t)||r.push(t),a+=o.getId(t)),0!==i.length&&a>i){l=!0;break}if(!l){for(const e of r){const t=await this.hashNDegreeQuads(e,o);if(a+=o.getId(e),a+=`<${t.hash}>`,o=t.issuer,0!==i.length&&a>i){l=!0;break}}l||(0===i.length||a<i)&&(i=a,n=o)}}o.update(i),t=n}return{hash:await o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}async createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;let a=0;for(const r of o)++a%100==0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:r,component:r.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:r,component:r.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:r,component:r.graph,position:"g",id:e,issuer:t,hashToRelated:n})]);return n}async _hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const n=await this.hashFirstDegreeQuads(e),o=t.get(n);o?o.push(e):t.set(n,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const n=t.value,o=this.blankNodeInfo.get(n);o?o.quads.add(e):this.blankNodeInfo.set(n,{quads:new Set([e]),hash:null})}async _addRelatedBlankNodeHash({quad:e,component:t,position:n,id:o,issuer:a,hashToRelated:r}){if("BlankNode"!==t.termType||t.value===o)return;const i=t.value,d=await this.hashRelatedBlankNode(i,e,a,n),s=r.get(d);s?s.push(i):r.set(d,[i])}_componentWithCanonicalId(e){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}async _yield(){return new Promise((e=>setImmediate(e)))}}},2438:(e,t,n)=>{const o=n(2985),a=n(3751),r=n(9925),i=n(1227);function d(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=class{constructor({createMessageDigest:e=(()=>new a("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:n=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new o("_:c14n",t),this.createMessageDigest=e,this.maxDeepIterations=n,this.quads=null,this.deepIterations=null}main(e){this.deepIterations=new Map,this.quads=e;for(const t of e)this._addBlankNodeQuadInfo({quad:t,component:t.subject}),this._addBlankNodeQuadInfo({quad:t,component:t.object}),this._addBlankNodeQuadInfo({quad:t,component:t.graph});const t=new Map,n=[...this.blankNodeInfo.keys()];for(const e of n)this._hashAndTrackBlankNode({id:e,hashToBlankNodes:t});const a=[...t.keys()].sort(),r=[];for(const e of a){const n=t.get(e);if(n.length>1){r.push(n);continue}const o=n[0];this.canonicalIssuer.getId(o)}for(const e of r){const t=[];for(const n of e){if(this.canonicalIssuer.hasId(n))continue;const e=new o("_:b");e.getId(n);const a=this.hashNDegreeQuads(n,e);t.push(a)}t.sort(d);for(const e of t){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const s=[];for(const e of this.quads){const t=i.serializeQuadComponents(this._componentWithCanonicalId({component:e.subject}),e.predicate,this._componentWithCanonicalId({component:e.object}),this._componentWithCanonicalId({component:e.graph}));s.push(t)}return s.sort(),s.join("")}hashFirstDegreeQuads(e){const t=[],n=this.blankNodeInfo.get(e),o=n.quads;for(const n of o){const o={subject:null,predicate:n.predicate,object:null,graph:null};o.subject=this.modifyFirstDegreeComponent(e,n.subject,"subject"),o.object=this.modifyFirstDegreeComponent(e,n.object,"object"),o.graph=this.modifyFirstDegreeComponent(e,n.graph,"graph"),t.push(i.serializeQuad(o))}t.sort();const a=this.createMessageDigest();for(const e of t)a.update(e);return n.hash=a.digest(),n.hash}hashRelatedBlankNode(e,t,n,o){let a;a=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):n.hasId(e)?n.getId(e):this.blankNodeInfo.get(e).hash;const r=this.createMessageDigest();return r.update(o),"g"!==o&&r.update(this.getRelatedPredicate(t)),r.update(a),r.digest()}hashNDegreeQuads(e,t){const n=this.deepIterations.get(e)||0;if(n>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(e,n+1);const o=this.createMessageDigest(),a=this.createHashToRelated(e,t),i=[...a.keys()].sort();for(const e of i){o.update(e);let n,i="";const d=new r(a.get(e));for(;d.hasNext();){const e=d.next();let o=t.clone(),a="";const r=[];let s=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?a+=this.canonicalIssuer.getId(t):(o.hasId(t)||r.push(t),a+=o.getId(t)),0!==i.length&&a>i){s=!0;break}if(!s){for(const e of r){const t=this.hashNDegreeQuads(e,o);if(a+=o.getId(e),a+=`<${t.hash}>`,o=t.issuer,0!==i.length&&a>i){s=!0;break}}s||(0===i.length||a<i)&&(i=a,n=o)}}o.update(i),t=n}return{hash:o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;for(const a of o)this._addRelatedBlankNodeHash({quad:a,component:a.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:a,component:a.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:a,component:a.graph,position:"g",id:e,issuer:t,hashToRelated:n});return n}_hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const n=this.hashFirstDegreeQuads(e),o=t.get(n);o?o.push(e):t.set(n,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const n=t.value,o=this.blankNodeInfo.get(n);o?o.quads.add(e):this.blankNodeInfo.set(n,{quads:new Set([e]),hash:null})}_addRelatedBlankNodeHash({quad:e,component:t,position:n,id:o,issuer:a,hashToRelated:r}){if("BlankNode"!==t.termType||t.value===o)return;const i=t.value,d=this.hashRelatedBlankNode(i,e,a,n),s=r.get(d);s?s.push(i):r.set(d,[i])}_componentWithCanonicalId({component:e}){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}}},3845:(e,t,n)=>{const o=n(3751),a=n(3513);e.exports=class extends a{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new o("sha1")}modifyFirstDegreeComponent(e,t,n){return"BlankNode"!==t.termType?t:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return e.predicate.value}async createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;let a=0;for(const r of o){let o,i;if("BlankNode"===r.subject.termType&&r.subject.value!==e)i=r.subject.value,o="p";else{if("BlankNode"!==r.object.termType||r.object.value===e)continue;i=r.object.value,o="r"}++a%100==0&&await this._yield();const d=await this.hashRelatedBlankNode(i,r,t,o),s=n.get(d);s?s.push(i):n.set(d,[i])}return n}}},378:(e,t,n)=>{const o=n(3751),a=n(2438);e.exports=class extends a{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new o("sha1")}modifyFirstDegreeComponent(e,t,n){return"BlankNode"!==t.termType?t:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return e.predicate.value}createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;for(const a of o){let o,r;if("BlankNode"===a.subject.termType&&a.subject.value!==e)r=a.subject.value,o="p";else{if("BlankNode"!==a.object.termType||a.object.value===e)continue;r=a.object.value,o="r"}const i=this.hashRelatedBlankNode(r,a,t,o),d=n.get(i);d?d.push(r):n.set(i,[r])}return n}}},4005:(e,t,n)=>{const o=n(3513),a=n(3845),r=n(2438),i=n(378);let d;try{d=n(7789)}catch(e){}function s(e){return Array.isArray(e)?e:t.NQuads.legacyDatasetToQuads(e)}t.NQuads=n(1227),t.IdentifierIssuer=n(2985),t._rdfCanonizeNative=function(e){return e&&(d=e),d},t.canonize=async function(e,t){const n=s(e);if(t.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise(((e,o)=>d.canonize(n,t,((t,n)=>t?o(t):e(n)))))}if("URDNA2015"===t.algorithm)return new o(t).main(n);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new a(t).main(n)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)},t._canonizeSync=function(e,t){const n=s(e);if(t.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return d.canonizeSync(n,t)}if("URDNA2015"===t.algorithm)return new r(t).main(n);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new i(t).main(n)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)}},7793:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(9931),t),a(n(8483),t),a(n(2142),t),a(n(2426),t),a(n(3988),t),a(n(6754),t),a(n(8401),t)},9931:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlankNode=void 0,t.BlankNode=class{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&"BlankNode"===e.termType&&e.value===this.value}}},8483:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataFactory=void 0;const o=n(9931),a=n(2142),r=n(2426),i=n(3988),d=n(6754),s=n(8401);let l=0;t.DataFactory=class{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${l++}_`}namedNode(e){return new i.NamedNode(e)}blankNode(e){return new o.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,t){return new r.Literal(e,t)}variable(e){return new s.Variable(e)}defaultGraph(){return a.DefaultGraph.INSTANCE}quad(e,t,n,o){return new d.Quad(e,t,n,o||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(r.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}}},2142:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultGraph=void 0;class n{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&"DefaultGraph"===e.termType}}t.DefaultGraph=n,n.INSTANCE=new n},2426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Literal=void 0;const o=n(3988);class a{constructor(e,t){this.termType="Literal",this.value=e,"string"==typeof t?(this.language=t,this.datatype=a.RDF_LANGUAGE_STRING):t?(this.language="",this.datatype=t):(this.language="",this.datatype=a.XSD_STRING)}equals(e){return!!e&&"Literal"===e.termType&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}}t.Literal=a,a.RDF_LANGUAGE_STRING=new o.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),a.XSD_STRING=new o.NamedNode("http://www.w3.org/2001/XMLSchema#string")},3988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamedNode=void 0,t.NamedNode=class{constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&"NamedNode"===e.termType&&e.value===this.value}}},6754:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Quad=void 0,t.Quad=class{constructor(e,t,n,o){this.termType="Quad",this.value="",this.subject=e,this.predicate=t,this.object=n,this.graph=o}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}}},8401:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Variable=void 0,t.Variable=class{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&"Variable"===e.termType&&e.value===this.value}}},9349:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const r=n(7793),i=n(4802),d=n(103);a(n(4802),t),a(n(5448),t),a(n(103),t);const s=new r.DataFactory,l=new d.Translator;function u(e,t){return l.fromRdf(e,t)}l.registerHandler(new i.TypeHandlerString,i.TypeHandlerString.TYPES.map((e=>s.namedNode(e))),["string"]),l.registerHandler(new i.TypeHandlerBoolean,[i.TypeHandlerBoolean.TYPE].map((e=>s.namedNode(e))),["boolean"]),l.registerHandler(new i.TypeHandlerNumberDouble,i.TypeHandlerNumberDouble.TYPES.map((e=>s.namedNode(e))),["number"]),l.registerHandler(new i.TypeHandlerNumberInteger,i.TypeHandlerNumberInteger.TYPES.map((e=>s.namedNode(e))),["number"]),l.registerHandler(new i.TypeHandlerDate,i.TypeHandlerDate.TYPES.map((e=>s.namedNode(e))),["object"]),t.fromRdf=u,t.toRdf=function(e,t){return t&&"namedNode"in t&&(t={dataFactory:t}),(t=t||{})&&!t.dataFactory&&(t.dataFactory=s),l.toRdf(e,t)},t.getTermRaw=function(e,t){return"Literal"===e.termType?u(e,t):e.value},t.getSupportedRdfDatatypes=function(){return l.getSupportedRdfDatatypes()},t.getSupportedJavaScriptPrimitives=function(){return l.getSupportedJavaScriptPrimitives()}},5448:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},103:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Translator=void 0,t.Translator=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(e){throw new Error(`Invalid RDF ${e.datatype.value} value: '${e.value}'`)}registerHandler(e,t,n){for(const n of t)this.supportedRdfDatatypes.push(n),this.fromRdfHandlers[n.value]=e;for(const t of n){let n=this.toRdfHandlers[t];n||(this.toRdfHandlers[t]=n=[]),n.push(e)}}fromRdf(e,t){const n=this.fromRdfHandlers[e.datatype.value];return n?n.fromRdf(e,t):e.value}toRdf(e,t){const n=this.toRdfHandlers[typeof e];if(n)for(const o of n){const n=o.toRdf(e,t);if(n)return n}throw new Error(`Invalid JavaScript value: '${e}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}}},92:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerBoolean=void 0;const o=n(103);class a{fromRdf(e,t){switch(e.value){case"true":case"1":return!0;case"false":case"0":return!1}return t&&o.Translator.incorrectRdfDataType(e),!1}toRdf(e,{datatype:t,dataFactory:n}){return n.literal(e?"true":"false",t||n.namedNode(a.TYPE))}}a.TYPE="http://www.w3.org/2001/XMLSchema#boolean",t.TypeHandlerBoolean=a},7258:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerDate=void 0;const o=n(103);class a{fromRdf(e,t){switch(t&&!e.value.match(a.VALIDATORS[e.datatype.value.substr(33,e.datatype.value.length)])&&o.Translator.incorrectRdfDataType(e),e.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(e.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const t=e.value.split("-");return new Date(0,parseInt(t[0],10)-1,parseInt(t[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(e.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(e.value+"-01");default:return new Date(e.value)}}toRdf(e,{datatype:t,dataFactory:n}){if(t=t||n.namedNode(a.TYPES[0]),!(e instanceof Date))return null;const o=e;let r;switch(t.value){case"http://www.w3.org/2001/XMLSchema#gDay":r=String(o.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":r=o.getUTCMonth()+1+"-"+o.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":r=String(o.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":r=o.getUTCFullYear()+"-"+(o.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":r=o.toISOString().replace(/T.*$/,"");break;default:r=o.toISOString()}return n.literal(r,t)}}a.TYPES=["http://www.w3.org/2001/XMLSchema#dateTime","http://www.w3.org/2001/XMLSchema#date","http://www.w3.org/2001/XMLSchema#gDay","http://www.w3.org/2001/XMLSchema#gMonthDay","http://www.w3.org/2001/XMLSchema#gYear","http://www.w3.org/2001/XMLSchema#gYearMonth"],a.VALIDATORS={date:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,dateTime:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,gDay:/^[0-9]+$/,gMonthDay:/^[0-9]+-[0-9][0-9]$/,gYear:/^[0-9]+$/,gYearMonth:/^[0-9]+-[0-9][0-9]$/},t.TypeHandlerDate=a},2406:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerNumberDouble=void 0;const o=n(103);class a{fromRdf(e,t){const n=parseFloat(e.value);return t&&isNaN(n)&&o.Translator.incorrectRdfDataType(e),n}toRdf(e,{datatype:t,dataFactory:n}){return t=t||n.namedNode(a.TYPES[0]),isNaN(e)?n.literal("NaN",t):isFinite(e)?e%1==0?null:n.literal(e.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),t):n.literal(e>0?"INF":"-INF",t)}}a.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],t.TypeHandlerNumberDouble=a},6925:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerNumberInteger=void 0;const o=n(103);class a{fromRdf(e,t){const n=parseInt(e.value,10);return t&&(isNaN(n)||e.value.indexOf(".")>=0)&&o.Translator.incorrectRdfDataType(e),n}toRdf(e,{datatype:t,dataFactory:n}){return n.literal(String(e),t||(e<=a.MAX_INT&&e>=a.MIN_INT?n.namedNode(a.TYPES[0]):n.namedNode(a.TYPES[1])))}}a.TYPES=["http://www.w3.org/2001/XMLSchema#integer","http://www.w3.org/2001/XMLSchema#long","http://www.w3.org/2001/XMLSchema#int","http://www.w3.org/2001/XMLSchema#byte","http://www.w3.org/2001/XMLSchema#short","http://www.w3.org/2001/XMLSchema#negativeInteger","http://www.w3.org/2001/XMLSchema#nonNegativeInteger","http://www.w3.org/2001/XMLSchema#nonPositiveInteger","http://www.w3.org/2001/XMLSchema#positiveInteger","http://www.w3.org/2001/XMLSchema#unsignedByte","http://www.w3.org/2001/XMLSchema#unsignedInt","http://www.w3.org/2001/XMLSchema#unsignedLong","http://www.w3.org/2001/XMLSchema#unsignedShort"],a.MAX_INT=2147483647,a.MIN_INT=-2147483648,t.TypeHandlerNumberInteger=a},4191:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerString=void 0;class n{fromRdf(e){return e.value}toRdf(e,{datatype:t,dataFactory:n}){return n.literal(e,t)}}n.TYPES=["http://www.w3.org/2001/XMLSchema#string","http://www.w3.org/2001/XMLSchema#normalizedString","http://www.w3.org/2001/XMLSchema#anyURI","http://www.w3.org/2001/XMLSchema#base64Binary","http://www.w3.org/2001/XMLSchema#language","http://www.w3.org/2001/XMLSchema#Name","http://www.w3.org/2001/XMLSchema#NCName","http://www.w3.org/2001/XMLSchema#NMTOKEN","http://www.w3.org/2001/XMLSchema#token","http://www.w3.org/2001/XMLSchema#hexBinary","http://www.w3.org/1999/02/22-rdf-syntax-ns#langString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"],t.TypeHandlerString=n},4802:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(92),t),a(n(7258),t),a(n(2406),t),a(n(6925),t),a(n(4191),t)},4147:(e,t,n)=>{const{SymbolDispose:o}=n(4134),{AbortError:a,codes:r}=n(6371),{isNodeStream:i,isWebStream:d,kControllerErrorFunction:s}=n(6115),l=n(6238),{ERR_INVALID_ARG_TYPE:u}=r;let c;e.exports.addAbortSignal=function(t,n){if(((e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new u("signal","AbortSignal",e)})(t),!i(n)&&!d(n))throw new u("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const r=i(t)?()=>{t.destroy(new a(void 0,{cause:e.reason}))}:()=>{t[s](new a(void 0,{cause:e.reason}))};if(e.aborted)r();else{c=c||n(7760).addAbortListener;const a=c(e,r);l(t,a[o])}return t}},345:(e,t,n)=>{const{StringPrototypeSlice:o,SymbolIterator:a,TypedArrayPrototypeSet:r,Uint8Array:i}=n(4134),{Buffer:d}=n(8287),{inspect:s}=n(7760);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return d.alloc(0);const t=d.allocUnsafe(e>>>0);let n=this.head,o=0;for(;n;)r(t,n.data,o),o+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[a](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,a=0;do{const r=n.data;if(!(e>r.length)){e===r.length?(t+=r,++a,n.next?this.head=n.next:this.head=this.tail=null):(t+=o(r,0,e),this.head=n,n.data=o(r,e));break}t+=r,e-=r.length,++a}while(null!==(n=n.next));return this.length-=a,t}_getBuffer(e){const t=d.allocUnsafe(e),n=e;let o=this.head,a=0;do{const d=o.data;if(!(e>d.length)){e===d.length?(r(t,d,n-e),++a,o.next?this.head=o.next:this.head=this.tail=null):(r(t,new i(d.buffer,d.byteOffset,e),n-e),this.head=o,o.data=d.slice(e));break}r(t,d,n-e),e-=d.length,++a}while(null!==(o=o.next));return this.length-=a,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}}},7830:(e,t,n)=>{const{pipeline:o}=n(7758),a=n(3370),{destroyer:r}=n(5896),{isNodeStream:i,isReadable:d,isWritable:s,isWebStream:l,isTransformStream:u,isWritableStream:c,isReadableStream:m}=n(6115),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:f}}=n(6371),N=n(6238);e.exports=function(...e){if(0===e.length)throw new f("streams");if(1===e.length)return a.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=a.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=a.from(e[t])}for(let n=0;n<e.length;++n)if(i(e[n])||l(e[n])){if(n<e.length-1&&!(d(e[n])||m(e[n])||u(e[n])))throw new p(`streams[${n}]`,t[n],"must be readable");if(n>0&&!(s(e[n])||c(e[n])||u(e[n])))throw new p(`streams[${n}]`,t[n],"must be writable")}let n,g,v,y,b;const $=e[0],x=o(e,(function(e){const t=y;y=null,t?t(e):e?b.destroy(e):_||w||b.destroy()})),w=!!(s($)||c($)||u($)),_=!!(d(x)||m(x)||u(x));if(b=new a({writableObjectMode:!(null==$||!$.writableObjectMode),readableObjectMode:!(null==x||!x.readableObjectMode),writable:w,readable:_}),w){if(i($))b._write=function(e,t,o){$.write(e,t)?o():n=o},b._final=function(e){$.end(),g=e},$.on("drain",(function(){if(n){const e=n;n=null,e()}}));else if(l($)){const e=(u($)?$.writable:$).getWriter();b._write=async function(t,n,o){try{await e.ready,e.write(t).catch((()=>{})),o()}catch(e){o(e)}},b._final=async function(t){try{await e.ready,e.close().catch((()=>{})),g=t}catch(e){t(e)}}}const e=u(x)?x.readable:x;N(e,(()=>{if(g){const e=g;g=null,e()}}))}if(_)if(i(x))x.on("readable",(function(){if(v){const e=v;v=null,e()}})),x.on("end",(function(){b.push(null)})),b._read=function(){for(;;){const e=x.read();if(null===e)return void(v=b._read);if(!b.push(e))return}};else if(l(x)){const e=(u(x)?x.readable:x).getReader();b._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!b.push(t))return;if(n)return void b.push(null)}catch{return}}}return b._destroy=function(e,t){e||null===y||(e=new h),v=null,n=null,g=null,null===y?t(e):(y=t,i(x)&&r(x,e))},b}},5896:(e,t,n)=>{const o=n(5606),{aggregateTwoErrors:a,codes:{ERR_MULTIPLE_CALLBACK:r},AbortError:i}=n(6371),{Symbol:d}=n(4134),{kIsDestroyed:s,isDestroyed:l,isFinished:u,isServerRequest:c}=n(6115),m=d("kDestroy"),h=d("kConstruct");function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function f(e,t,n){let a=!1;function r(t){if(a)return;a=!0;const r=e._readableState,i=e._writableState;p(t,i,r),i&&(i.closed=!0),r&&(r.closed=!0),"function"==typeof n&&n(t),t?o.nextTick(N,e,t):o.nextTick(g,e)}try{e._destroy(t||null,r)}catch(t){r(t)}}function N(e,t){v(e,t),g(e)}function g(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function v(e,t){const n=e._readableState,o=e._writableState;null!=o&&o.errorEmitted||null!=n&&n.errorEmitted||(o&&(o.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function y(e,t,n){const a=e._readableState,r=e._writableState;if(null!=r&&r.destroyed||null!=a&&a.destroyed)return this;null!=a&&a.autoDestroy||null!=r&&r.autoDestroy?e.destroy(t):t&&(t.stack,r&&!r.errored&&(r.errored=t),a&&!a.errored&&(a.errored=t),n?o.nextTick(v,e,t):v(e,t))}function b(e){let t=!1;function n(n){if(t)return void y(e,null!=n?n:new r);t=!0;const a=e._readableState,i=e._writableState,d=i||a;a&&(a.constructed=!0),i&&(i.constructed=!0),d.destroyed?e.emit(m,n):n?y(e,n,!0):o.nextTick($,e)}try{e._construct((e=>{o.nextTick(n,e)}))}catch(e){o.nextTick(n,e)}}function $(e){e.emit(h)}function x(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function w(e){e.emit("close")}function _(e,t){e.emit("error",t),o.nextTick(w,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const n=e._readableState,a=e._writableState;n&&(n.constructed=!1),a&&(a.constructed=!1),e.once(h,t),e.listenerCount(h)>1||o.nextTick(b,e)},destroyer:function(e,t){e&&!l(e)&&(t||u(e)||(t=new i),c(e)?(e.socket=null,e.destroy(t)):x(e)?e.abort():x(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?o.nextTick(_,e,t):o.nextTick(w,e),e.destroyed||(e[s]=!0))},destroy:function(e,t){const n=this._readableState,o=this._writableState,r=o||n;return null!=o&&o.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(p(e,o,n),o&&(o.destroyed=!0),n&&(n.destroyed=!0),r.constructed?f(this,e,t):this.once(m,(function(n){f(this,a(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:y}},3370:(e,t,n)=>{const{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:a,ObjectKeys:r,ObjectSetPrototypeOf:i}=n(4134);e.exports=l;const d=n(7576),s=n(8584);i(l.prototype,d.prototype),i(l,d);{const e=r(s.prototype);for(let t=0;t<e.length;t++){const n=e[t];l.prototype[n]||(l.prototype[n]=s.prototype[n])}}function l(e){if(!(this instanceof l))return new l(e);d.call(this,e),s.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let u,c;function m(){return void 0===u&&(u={}),u}o(l.prototype,{writable:{__proto__:null,...a(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...a(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...a(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...a(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...a(s.prototype,"writableLength")},writableFinished:{__proto__:null,...a(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...a(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...a(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...a(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),l.fromWeb=function(e,t){return m().newStreamDuplexFromReadableWritablePair(e,t)},l.toWeb=function(e){return m().newReadableWritablePairFromDuplex(e)},l.from=function(e){return c||(c=n(6706)),c(e,"body")}},6706:(e,t,n)=>{const o=n(5606),a=n(8287),{isReadable:r,isWritable:i,isIterable:d,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:u,isDuplexNodeStream:c,isReadableStream:m,isWritableStream:h}=n(6115),p=n(6238),{AbortError:f,codes:{ERR_INVALID_ARG_TYPE:N,ERR_INVALID_RETURN_VALUE:g}}=n(6371),{destroyer:v}=n(5896),y=n(3370),b=n(7576),$=n(8584),{createDeferredPromise:x}=n(7760),w=n(6532),_=globalThis.Blob||a.Blob,C=void 0!==_?function(e){return e instanceof _}:function(e){return!1},S=globalThis.AbortController||n(5568).AbortController,{FunctionPrototypeCall:q}=n(4134);class E extends y{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function I(e){const t=e.readable&&"function"!=typeof e.readable.read?b.wrap(e.readable):e.readable,n=e.writable;let o,a,d,s,l,u=!!r(t),c=!!i(n);function m(e){const t=s;s=null,t?t(e):e&&l.destroy(e)}return l=new E({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==n||!n.writableObjectMode),readable:u,writable:c}),c&&(p(n,(e=>{c=!1,e&&v(t,e),m(e)})),l._write=function(e,t,a){n.write(e,t)?a():o=a},l._final=function(e){n.end(),a=e},n.on("drain",(function(){if(o){const e=o;o=null,e()}})),n.on("finish",(function(){if(a){const e=a;a=null,e()}}))),u&&(p(t,(e=>{u=!1,e&&v(t,e),m(e)})),t.on("readable",(function(){if(d){const e=d;d=null,e()}})),t.on("end",(function(){l.push(null)})),l._read=function(){for(;;){const e=t.read();if(null===e)return void(d=l._read);if(!l.push(e))return}}),l._destroy=function(e,r){e||null===s||(e=new f),d=null,o=null,a=null,null===s?r(e):(s=r,v(n,e),v(t,e))},l}e.exports=function e(t,n){if(c(t))return t;if(l(t))return I({readable:t});if(u(t))return I({writable:t});if(s(t))return I({writable:!1,readable:!1});if(m(t))return I({readable:b.fromWeb(t)});if(h(t))return I({writable:$.fromWeb(t)});if("function"==typeof t){const{value:e,write:a,final:r,destroy:i}=function(e){let{promise:t,resolve:n}=x();const a=new S,r=a.signal;return{value:e(async function*(){for(;;){const e=t;t=null;const{chunk:a,done:i,cb:d}=await e;if(o.nextTick(d),i)return;if(r.aborted)throw new f(void 0,{cause:r.reason});({promise:t,resolve:n}=x()),yield a}}(),{signal:r}),write(e,t,o){const a=n;n=null,a({chunk:e,done:!1,cb:o})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){a.abort(),t(e)}}}(t);if(d(e))return w(E,e,{objectMode:!0,write:a,final:r,destroy:i});const s=null==e?void 0:e.then;if("function"==typeof s){let t;const n=q(s,e,(e=>{if(null!=e)throw new g("nully","body",e)}),(e=>{v(t,e)}));return t=new E({objectMode:!0,readable:!1,write:a,final(e){r((async()=>{try{await n,o.nextTick(e,null)}catch(t){o.nextTick(e,t)}}))},destroy:i})}throw new g("Iterable, AsyncIterable or AsyncFunction",n,e)}if(C(t))return e(t.arrayBuffer());if(d(t))return w(E,t,{objectMode:!0,writable:!1});if(m(null==t?void 0:t.readable)&&h(null==t?void 0:t.writable))return E.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return I({readable:null!=t&&t.readable?l(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});const a=null==t?void 0:t.then;if("function"==typeof a){let e;return q(a,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{v(e,t)})),e=new E({objectMode:!0,writable:!1,read(){}})}throw new N(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},6238:(e,t,n)=>{const o=n(5606),{AbortError:a,codes:r}=n(6371),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:d}=r,{kEmptyObject:s,once:l}=n(7760),{validateAbortSignal:u,validateFunction:c,validateObject:m,validateBoolean:h}=n(277),{Promise:p,PromisePrototypeThen:f,SymbolDispose:N}=n(4134),{isClosed:g,isReadable:v,isReadableNodeStream:y,isReadableStream:b,isReadableFinished:$,isReadableErrored:x,isWritable:w,isWritableNodeStream:_,isWritableStream:C,isWritableFinished:S,isWritableErrored:q,isNodeStream:E,willEmitClose:I,kIsClosedPromise:A}=n(6115);let T;const R=()=>{};function L(e,t,r){var h,p;if(2===arguments.length?(r=t,t=s):null==t?t=s:m(t,"options"),c(r,"callback"),u(t.signal,"options.signal"),r=l(r),b(e)||C(e))return function(e,t,r){let i=!1,d=R;if(t.signal)if(d=()=>{i=!0,r.call(e,new a(void 0,{cause:t.signal.reason}))},t.signal.aborted)o.nextTick(d);else{T=T||n(7760).addAbortListener;const o=T(t.signal,d),a=r;r=l(((...t)=>{o[N](),a.apply(e,t)}))}const s=(...t)=>{i||o.nextTick((()=>r.apply(e,t)))};return f(e[A].promise,s,s),R}(e,t,r);if(!E(e))throw new i("stream",["ReadableStream","WritableStream","Stream"],e);const L=null!==(h=t.readable)&&void 0!==h?h:y(e),k=null!==(p=t.writable)&&void 0!==p?p:_(e),P=e._writableState,j=e._readableState,O=()=>{e.writable||B()};let D=I(e)&&y(e)===L&&_(e)===k,M=S(e,!1);const B=()=>{M=!0,e.destroyed&&(D=!1),(!D||e.readable&&!L)&&(L&&!F||r.call(e))};let F=$(e,!1);const V=()=>{F=!0,e.destroyed&&(D=!1),(!D||e.writable&&!k)&&(k&&!M||r.call(e))},U=t=>{r.call(e,t)};let z=g(e);const Q=()=>{z=!0;const t=q(e)||x(e);return t&&"boolean"!=typeof t?r.call(e,t):L&&!F&&y(e,!0)&&!$(e,!1)?r.call(e,new d):!k||M||S(e,!1)?void r.call(e):r.call(e,new d)},G=()=>{z=!0;const t=q(e)||x(e);if(t&&"boolean"!=typeof t)return r.call(e,t);r.call(e)},H=()=>{e.req.on("finish",B)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?k&&!P&&(e.on("end",O),e.on("close",O)):(e.on("complete",B),D||e.on("abort",Q),e.req?H():e.on("request",H)),D||"boolean"!=typeof e.aborted||e.on("aborted",Q),e.on("end",V),e.on("finish",B),!1!==t.error&&e.on("error",U),e.on("close",Q),z?o.nextTick(Q):null!=P&&P.errorEmitted||null!=j&&j.errorEmitted?D||o.nextTick(G):(L||D&&!v(e)||!M&&!1!==w(e))&&(k||D&&!w(e)||!F&&!1!==v(e))?j&&e.req&&e.aborted&&o.nextTick(G):o.nextTick(G);const J=()=>{r=R,e.removeListener("aborted",Q),e.removeListener("complete",B),e.removeListener("abort",Q),e.removeListener("request",H),e.req&&e.req.removeListener("finish",B),e.removeListener("end",O),e.removeListener("close",O),e.removeListener("finish",B),e.removeListener("end",V),e.removeListener("error",U),e.removeListener("close",Q)};if(t.signal&&!z){const i=()=>{const n=r;J(),n.call(e,new a(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)o.nextTick(i);else{T=T||n(7760).addAbortListener;const o=T(t.signal,i),a=r;r=l(((...t)=>{o[N](),a.apply(e,t)}))}}return J}e.exports=L,e.exports.finished=function(e,t){var n;let o=!1;return null===t&&(t=s),null!==(n=t)&&void 0!==n&&n.cleanup&&(h(t.cleanup,"cleanup"),o=t.cleanup),new p(((n,a)=>{const r=L(e,t,(e=>{o&&r(),e?a(e):n()}))}))}},6532:(e,t,n)=>{const o=n(5606),{PromisePrototypeThen:a,SymbolAsyncIterator:r,SymbolIterator:i}=n(4134),{Buffer:d}=n(8287),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=n(6371).codes;e.exports=function(e,t,n){let u,c;if("string"==typeof t||t instanceof d)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[r])c=!0,u=t[r]();else{if(!t||!t[i])throw new s("iterable",["Iterable"],t);c=!1,u=t[i]()}const m=new e({objectMode:!0,highWaterMark:1,...n});let h=!1;return m._read=function(){h||(h=!0,async function(){for(;;){try{const{value:e,done:t}=c?await u.next():u.next();if(t)m.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw h=!1,new l;if(m.push(t))continue;h=!1}}catch(e){m.destroy(e)}break}}())},m._destroy=function(e,t){a(async function(e){const t=null!=e,n="function"==typeof u.throw;if(t&&n){const{value:t,done:n}=await u.throw(e);if(await t,n)return}if("function"==typeof u.return){const{value:e}=await u.return();await e}}(e),(()=>o.nextTick(t,e)),(n=>o.nextTick(t,n||e)))},m}},4259:(e,t,n)=>{const{ArrayIsArray:o,ObjectSetPrototypeOf:a}=n(4134),{EventEmitter:r}=n(7007);function i(e){r.call(this,e)}function d(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}a(i.prototype,r.prototype),a(i,r),i.prototype.pipe=function(e,t){const n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));let i=!1;function s(){i||(i=!0,e.end())}function l(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){c(),0===r.listenerCount(this,"error")&&this.emit("error",e)}function c(){n.removeListener("data",o),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return d(n,"error",u),d(e,"error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e},e.exports={Stream:i,prependListener:d}},823:(e,t,n)=>{const o=globalThis.AbortController||n(5568).AbortController,{codes:{ERR_INVALID_ARG_VALUE:a,ERR_INVALID_ARG_TYPE:r,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:d},AbortError:s}=n(6371),{validateAbortSignal:l,validateInteger:u,validateObject:c}=n(277),m=n(4134).Symbol("kWeak"),h=n(4134).Symbol("kResistStopPropagation"),{finished:p}=n(6238),f=n(7830),{addAbortSignalNoValidate:N}=n(4147),{isWritable:g,isNodeStream:v}=n(6115),{deprecate:y}=n(7760),{ArrayPrototypePush:b,Boolean:$,MathFloor:x,Number:w,NumberIsNaN:_,Promise:C,PromiseReject:S,PromiseResolve:q,PromisePrototypeThen:E,Symbol:I}=n(4134),A=I("kEmpty"),T=I("kEof");function R(e,t){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal");let o=1;null!=(null==t?void 0:t.concurrency)&&(o=x(t.concurrency));let a=o-1;return null!=(null==t?void 0:t.highWaterMark)&&(a=x(t.highWaterMark)),u(o,"options.concurrency",1),u(a,"options.highWaterMark",0),a+=o,async function*(){const r=n(7760).AbortSignalAny([null==t?void 0:t.signal].filter($)),i=this,d=[],l={signal:r};let u,c,m=!1,h=0;function p(){m=!0,f()}function f(){h-=1,N()}function N(){c&&!m&&h<o&&d.length<a&&(c(),c=null)}!async function(){try{for await(let t of i){if(m)return;if(r.aborted)throw new s;try{if(t=e(t,l),t===A)continue;t=q(t)}catch(e){t=S(e)}h+=1,E(t,f,p),d.push(t),u&&(u(),u=null),!m&&(d.length>=a||h>=o)&&await new C((e=>{c=e}))}d.push(T)}catch(e){const t=S(e);E(t,f,p),d.push(t)}finally{m=!0,u&&(u(),u=null)}}();try{for(;;){for(;d.length>0;){const e=await d[0];if(e===T)return;if(r.aborted)throw new s;e!==A&&(yield e),d.shift(),N()}await new C((e=>{u=e}))}}finally{m=!0,c&&(c(),c=null)}}.call(this)}async function L(e,t=void 0){for await(const n of k.call(this,e,t))return!0;return!1}function k(e,t){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);return R.call(this,(async function(t,n){return await e(t,n)?t:A}),t)}class P extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function j(e){if(e=w(e),_(e))return 0;if(e<0)throw new d("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:y((function(e=void 0){return null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&l(e.signal,"options.signal"),async function*(){let t=0;for await(const o of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s({cause:e.signal.reason});yield[t++,o]}}.call(this)}),"readable.asIndexedPairs will be removed in a future version."),drop:function(e,t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),e=j(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var o;if(null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted)throw new s;e--<=0&&(yield n)}}.call(this)},filter:k,flatMap:function(e,t){const n=R.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:R,take:function(e,t=void 0){return null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),e=j(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new s;for await(const n of this){var o;if(null!=t&&null!==(o=t.signal)&&void 0!==o&&o.aborted)throw new s;if(e-- >0&&(yield n),e<=0)return}}.call(this)},compose:function(e,t){if(null!=t&&c(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),v(e)&&!g(e))throw new a("stream",e,"must be writable");const n=f(this,e);return null!=t&&t.signal&&N(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);return!await L.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new r("fn",["Function","AsyncFunction"],e);for await(const n of R.call(this,(async function(t,n){return await e(t,n),A}),t));},reduce:async function(e,t,n){var a;if("function"!=typeof e)throw new r("reducer",["Function","AsyncFunction"],e);null!=n&&c(n,"options"),null!=(null==n?void 0:n.signal)&&l(n.signal,"options.signal");let i=arguments.length>1;if(null!=n&&null!==(a=n.signal)&&void 0!==a&&a.aborted){const e=new s(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const d=new o,u=d.signal;if(null!=n&&n.signal){const e={once:!0,[m]:this,[h]:!0};n.signal.addEventListener("abort",(()=>d.abort()),e)}let f=!1;try{for await(const o of this){var N;if(f=!0,null!=n&&null!==(N=n.signal)&&void 0!==N&&N.aborted)throw new s;i?t=await e(t,o,{signal:u}):(t=o,i=!0)}if(!f&&!i)throw new P}finally{d.abort()}return t},toArray:async function(e){null!=e&&c(e,"options"),null!=(null==e?void 0:e.signal)&&l(e.signal,"options.signal");const t=[];for await(const o of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new s(void 0,{cause:e.signal.reason});b(t,o)}return t},some:L,find:async function(e,t){for await(const n of k.call(this,e,t))return n}}},6524:(e,t,n)=>{const{ObjectSetPrototypeOf:o}=n(4134);e.exports=r;const a=n(5001);function r(e){if(!(this instanceof r))return new r(e);a.call(this,e)}o(r.prototype,a.prototype),o(r,a),r.prototype._transform=function(e,t,n){n(null,e)}},7758:(e,t,n)=>{const o=n(5606),{ArrayIsArray:a,Promise:r,SymbolAsyncIterator:i,SymbolDispose:d}=n(4134),s=n(6238),{once:l}=n(7760),u=n(5896),c=n(3370),{aggregateTwoErrors:m,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:f,ERR_STREAM_DESTROYED:N,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=n(6371),{validateFunction:y,validateAbortSignal:b}=n(277),{isIterable:$,isReadable:x,isReadableNodeStream:w,isNodeStream:_,isTransformStream:C,isWebStream:S,isReadableStream:q,isReadableFinished:E}=n(6115),I=globalThis.AbortController||n(5568).AbortController;let A,T,R;function L(e,t,n){let o=!1;return e.on("close",(()=>{o=!0})),{destroy:t=>{o||(o=!0,u.destroyer(e,t||new N("pipe")))},cleanup:s(e,{readable:t,writable:n},(e=>{o=!e}))}}function k(e){if($(e))return e;if(w(e))return async function*(e){T||(T=n(7576)),yield*T.prototype[i].call(e)}(e);throw new h("val",["Readable","Iterable","AsyncIterable"],e)}async function P(e,t,n,{end:o}){let a,i=null;const d=e=>{if(e&&(a=e),i){const e=i;i=null,e()}},l=()=>new r(((e,t)=>{a?t(a):i=()=>{a?t(a):e()}}));t.on("drain",d);const u=s(t,{readable:!1},d);try{t.writableNeedDrain&&await l();for await(const n of e)t.write(n)||await l();o&&(t.end(),await l()),n()}catch(e){n(a!==e?m(a,e):e)}finally{u(),t.off("drain",d)}}async function j(e,t,n,{end:o}){C(t)&&(t=t.writable);const a=t.getWriter();try{for await(const t of e)await a.ready,a.write(t).catch((()=>{}));await a.ready,o&&await a.close(),n()}catch(e){try{await a.abort(e),n(e)}catch(e){n(e)}}}function O(e,t,r){if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new f("streams");const i=new I,s=i.signal,l=null==r?void 0:r.signal,u=[];function m(){B(new v)}let N,g,y;b(l,"options.signal"),R=R||n(7760).addAbortListener,l&&(N=R(l,m));const E=[];let T,O=0;function M(e){B(e,0==--O)}function B(e,n){var a;if(!e||g&&"ERR_STREAM_PREMATURE_CLOSE"!==g.code||(g=e),g||n){for(;E.length;)E.shift()(g);null===(a=N)||void 0===a||a[d](),i.abort(),n&&(g||u.forEach((e=>e())),o.nextTick(t,g,y))}}for(let U=0;U<e.length;U++){const z=e[U],Q=U<e.length-1,G=U>0,H=Q||!1!==(null==r?void 0:r.end),J=U===e.length-1;if(_(z)){if(H){const{destroy:K,cleanup:X}=L(z,Q,G);E.push(K),x(z)&&J&&u.push(X)}function W(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&M(e)}z.on("error",W),x(z)&&J&&u.push((()=>{z.removeListener("error",W)}))}if(0===U)if("function"==typeof z){if(T=z({signal:s}),!$(T))throw new p("Iterable, AsyncIterable or Stream","source",T)}else T=$(z)||w(z)||C(z)?z:c.from(z);else if("function"==typeof z){var F;if(T=C(T)?k(null===(F=T)||void 0===F?void 0:F.readable):k(T),T=z(T,{signal:s}),Q){if(!$(T,!0))throw new p("AsyncIterable",`transform[${U-1}]`,T)}else{var V;A||(A=n(6524));const Y=new A({objectMode:!0}),Z=null===(V=T)||void 0===V?void 0:V.then;if("function"==typeof Z)O++,Z.call(T,(e=>{y=e,null!=e&&Y.write(e),H&&Y.end(),o.nextTick(M)}),(e=>{Y.destroy(e),o.nextTick(M,e)}));else if($(T,!0))O++,P(T,Y,M,{end:H});else{if(!q(T)&&!C(T))throw new p("AsyncIterable or Promise","destination",T);{const ne=T.readable||T;O++,P(ne,Y,M,{end:H})}}T=Y;const{destroy:ee,cleanup:te}=L(T,!1,!0);E.push(ee),J&&u.push(te)}}else if(_(z)){if(w(T)){O+=2;const oe=D(T,z,M,{end:H});x(z)&&J&&u.push(oe)}else if(C(T)||q(T)){const ae=T.readable||T;O++,P(ae,z,M,{end:H})}else{if(!$(T))throw new h("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],T);O++,P(T,z,M,{end:H})}T=z}else if(S(z)){if(w(T))O++,j(k(T),z,M,{end:H});else if(q(T)||$(T))O++,j(T,z,M,{end:H});else{if(!C(T))throw new h("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],T);O++,j(T.readable,z,M,{end:H})}T=z}else T=c.from(z)}return(null!=s&&s.aborted||null!=l&&l.aborted)&&o.nextTick(m),T}function D(e,t,n,{end:a}){let r=!1;if(t.on("close",(()=>{r||n(new g)})),e.pipe(t,{end:!1}),a){function i(){r=!0,t.end()}E(e)?o.nextTick(i):e.once("end",i)}else n();return s(e,{readable:!0,writable:!1},(t=>{const o=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&o&&o.ended&&!o.errored&&!o.errorEmitted?e.once("end",n).once("error",n):n(t)})),s(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:O,pipeline:function(...e){return O(e,l(function(e){return y(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},7576:(e,t,n)=>{const o=n(5606),{ArrayPrototypeIndexOf:a,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:d,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:u,Promise:c,SafeSet:m,SymbolAsyncDispose:h,SymbolAsyncIterator:p,Symbol:f}=n(4134);e.exports=W,W.ReadableState=J;const{EventEmitter:N}=n(7007),{Stream:g,prependListener:v}=n(4259),{Buffer:y}=n(8287),{addAbortSignal:b}=n(4147),$=n(6238);let x=n(7760).debuglog("stream",(e=>{x=e}));const w=n(345),_=n(5896),{getHighWaterMark:C,getDefaultHighWaterMark:S}=n(5291),{aggregateTwoErrors:q,codes:{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:A,ERR_STREAM_PUSH_AFTER_EOF:T,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:L}=n(6371),{validateObject:k}=n(277),P=f("kPaused"),{StringDecoder:j}=n(3141),O=n(6532);u(W.prototype,g.prototype),u(W,g);const D=()=>{},{errorOrDestroy:M}=_,B=1,F=16,V=32,U=64,z=2048,Q=4096,G=65536;function H(e){return{enumerable:!1,get(){return!!(this.state&e)},set(t){t?this.state|=e:this.state&=~e}}}function J(e,t,o){"boolean"!=typeof o&&(o=t instanceof n(3370)),this.state=z|Q|F|V,e&&e.objectMode&&(this.state|=B),o&&e&&e.readableObjectMode&&(this.state|=B),this.highWaterMark=e?C(this,e,"readableHighWaterMark",o):S(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[P]=null,e&&!1===e.emitClose&&(this.state&=~z),e&&!1===e.autoDestroy&&(this.state&=~Q),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new j(e.encoding),this.encoding=e.encoding)}function W(e){if(!(this instanceof W))return new W(e);const t=this instanceof n(3370);this._readableState=new J(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&b(e.signal,this)),g.call(this,e),_.construct(this,(()=>{this._readableState.needReadable&&te(this,this._readableState)}))}function K(e,t,n,o){x("readableAddChunk",t);const a=e._readableState;let r;if(a.state&B||("string"==typeof t?(n=n||a.defaultEncoding,a.encoding!==n&&(o&&a.encoding?t=y.from(t,n).toString(a.encoding):(t=y.from(t,n),n=""))):t instanceof y?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(r=new E("chunk",["string","Buffer","Uint8Array"],t))),r)M(e,r);else if(null===t)a.state&=-9,function(e,t){if(x("onEofChunk"),!t.ended){if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?Z(e):(t.needReadable=!1,t.emittedReadable=!0,ee(e))}}(e,a);else if(a.state&B||t&&t.length>0)if(o)if(4&a.state)M(e,new R);else{if(a.destroyed||a.errored)return!1;X(e,a,t,!0)}else if(a.ended)M(e,new T);else{if(a.destroyed||a.errored)return!1;a.state&=-9,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?X(e,a,t,!1):te(e,a)):X(e,a,t,!1)}else o||(a.state&=-9,te(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function X(e,t,n,o){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.state&G?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.state&U&&Z(e)),te(e,t)}function Y(e,t){return e<=0||0===t.length&&t.ended?0:t.state&B?1:i(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function Z(e){const t=e._readableState;x("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(x("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(ee,e))}function ee(e){const t=e._readableState;x("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function te(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,o.nextTick(ne,e,t))}function ne(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(x("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function oe(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[P]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function ae(e){x("readable nexttick read 0"),e.read(0)}function re(e,t){x("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ie(e),t.flowing&&!t.reading&&e.read(0)}function ie(e){const t=e._readableState;for(x("flow",t.flowing);t.flowing&&null!==e.read(););}function de(e,t){"function"!=typeof e.read&&(e=W.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,o=D;function a(t){this===e?(o(),o=D):o=t}e.on("readable",a);const r=$(e,{writable:!1},(e=>{n=e?q(n,e):null,o(),o=D}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new c(a)}}}catch(e){throw n=q(n,e),n}finally{!n&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",a),r()):_.destroyer(e,null)}}(e,t);return n.stream=e,n}function se(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function le(e){const t=e._readableState;x("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(ue,t,e))}function ue(e,t){if(x("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)o.nextTick(ce,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function ce(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let me;function he(){return void 0===me&&(me={}),me}s(J.prototype,{objectMode:H(B),ended:H(2),endEmitted:H(4),reading:H(8),constructed:H(F),sync:H(V),needReadable:H(U),emittedReadable:H(128),readableListening:H(256),resumeScheduled:H(512),errorEmitted:H(1024),emitClose:H(z),autoDestroy:H(Q),destroyed:H(8192),closed:H(16384),closeEmitted:H(32768),multiAwaitDrain:H(G),readingMore:H(1<<17),dataEmitted:H(1<<18)}),W.prototype.destroy=_.destroy,W.prototype._undestroy=_.undestroy,W.prototype._destroy=function(e,t){t(e)},W.prototype[N.captureRejectionSymbol]=function(e){this.destroy(e)},W.prototype[h]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new L,this.destroy(e)),new c(((t,n)=>$(this,(o=>o&&o!==e?n(o):t(null)))))},W.prototype.push=function(e,t){return K(this,e,t,!1)},W.prototype.unshift=function(e,t){return K(this,e,t,!0)},W.prototype.isPaused=function(){const e=this._readableState;return!0===e[P]||!1===e.flowing},W.prototype.setEncoding=function(e){const t=new j(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let o="";for(const e of n)o+=t.write(e);return n.clear(),""!==o&&n.push(o),this._readableState.length=o.length,this},W.prototype.read=function(e){x("read",e),void 0===e?e=NaN:r(e)||(e=d(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new A("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.state&=-129),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return x("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?le(this):Z(this),null;if(0===(e=Y(e,t))&&t.ended)return 0===t.length&&le(this),null;let o,a=!!(t.state&U);if(x("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&(a=!0,x("length less than watermark",a)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)a=!1,x("reading, ended or constructing",a);else if(a){x("do read"),t.state|=8|V,0===t.length&&(t.state|=U);try{this._read(t.highWaterMark)}catch(e){M(this,e)}t.state&=~V,t.reading||(e=Y(n,t))}return o=e>0?se(e,t):null,null===o?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&le(this)),null===o||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",o)),o},W.prototype._read=function(e){throw new I("_read()")},W.prototype.pipe=function(e,t){const n=this,a=this._readableState;1===a.pipes.length&&(a.multiAwaitDrain||(a.multiAwaitDrain=!0,a.awaitDrainWriters=new m(a.awaitDrainWriters?[a.awaitDrainWriters]:[]))),a.pipes.push(e),x("pipe count=%d opts=%j",a.pipes.length,t);const r=t&&!1===t.end||e===o.stdout||e===o.stderr?f:i;function i(){x("onend"),e.end()}let d;a.endEmitted?o.nextTick(r):n.once("end",r),e.on("unpipe",(function t(o,r){x("onunpipe"),o===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,x("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),d&&e.removeListener("drain",d),e.removeListener("error",c),e.removeListener("unpipe",t),n.removeListener("end",i),n.removeListener("end",f),n.removeListener("data",u),s=!0,d&&a.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&d())}));let s=!1;function l(){s||(1===a.pipes.length&&a.pipes[0]===e?(x("false write response, pause",0),a.awaitDrainWriters=e,a.multiAwaitDrain=!1):a.pipes.length>1&&a.pipes.includes(e)&&(x("false write response, pause",a.awaitDrainWriters.size),a.awaitDrainWriters.add(e)),n.pause()),d||(d=function(e,t){return function(){const n=e._readableState;n.awaitDrainWriters===t?(x("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(x("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",d))}function u(t){x("ondata");const n=e.write(t);x("dest.write",n),!1===n&&l()}function c(t){if(x("onerror",t),f(),e.removeListener("error",c),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?M(e,t):e.emit("error",t)}}function h(){e.removeListener("finish",p),f()}function p(){x("onfinish"),e.removeListener("close",h),f()}function f(){x("unpipe"),n.unpipe(e)}return n.on("data",u),v(e,"error",c),e.once("close",h),e.once("finish",p),e.emit("pipe",n),!0===e.writableNeedDrain?l():a.flowing||(x("pipe resume"),n.resume()),e},W.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=a(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},W.prototype.on=function(e,t){const n=g.prototype.on.call(this,e,t),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,x("on readable",a.length,a.reading),a.length?Z(this):a.reading||o.nextTick(ae,this))),n},W.prototype.addListener=W.prototype.on,W.prototype.removeListener=function(e,t){const n=g.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(oe,this),n},W.prototype.off=W.prototype.removeListener,W.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||o.nextTick(oe,this),t},W.prototype.resume=function(){const e=this._readableState;return e.flowing||(x("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(re,e,t))}(this,e)),e[P]=!1,this},W.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[P]=!0,this},W.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{M(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=l(e);for(let t=1;t<n.length;t++){const o=n[t];void 0===this[o]&&"function"==typeof e[o]&&(this[o]=e[o].bind(e))}return this},W.prototype[p]=function(){return de(this)},W.prototype.iterator=function(e){return void 0!==e&&k(e,"options"),de(this,e)},s(W.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),s(J.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[P]},set(e){this[P]=!!e}}}),W._fromList=se,W.from=function(e,t){return O(W,e,t)},W.fromWeb=function(e,t){return he().newStreamReadableFromReadableStream(e,t)},W.toWeb=function(e,t){return he().newReadableStreamFromStreamReadable(e,t)},W.wrap=function(e,t){var n,o;return new W({objectMode:null===(n=null!==(o=e.readableObjectMode)&&void 0!==o?o:e.objectMode)||void 0===n||n,...t,destroy(t,n){_.destroyer(e,t),n(t)}}).wrap(e)}},5291:(e,t,n)=>{const{MathFloor:o,NumberIsInteger:a}=n(4134),{validateInteger:r}=n(277),{ERR_INVALID_ARG_VALUE:i}=n(6371).codes;let d=16384,s=16;function l(e){return e?s:d}e.exports={getHighWaterMark:function(e,t,n,r){const d=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=d){if(!a(d)||d<0)throw new i(r?`options.${n}`:"options.highWaterMark",d);return o(d)}return l(e.objectMode)},getDefaultHighWaterMark:l,setDefaultHighWaterMark:function(e,t){r(t,"value",0),e?s=t:d=t}}},5001:(e,t,n)=>{const{ObjectSetPrototypeOf:o,Symbol:a}=n(4134);e.exports=l;const{ERR_METHOD_NOT_IMPLEMENTED:r}=n(6371).codes,i=n(3370),{getHighWaterMark:d}=n(5291);o(l.prototype,i.prototype),o(l,i);const s=a("kCallback");function l(e){if(!(this instanceof l))return new l(e);const t=e?d(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),i.call(this,e),this._readableState.sync=!1,this[s]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function c(){this._final!==u&&u.call(this)}l.prototype._final=u,l.prototype._transform=function(e,t,n){throw new r("_transform()")},l.prototype._write=function(e,t,n){const o=this._readableState,a=this._writableState,r=o.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),a.ended||r===o.length||o.length<o.highWaterMark?n():this[s]=n)}))},l.prototype._read=function(){if(this[s]){const e=this[s];this[s]=null,e()}}},6115:(e,t,n)=>{const{SymbolAsyncIterator:o,SymbolIterator:a,SymbolFor:r}=n(4134),i=r("nodejs.stream.destroyed"),d=r("nodejs.stream.errored"),s=r("nodejs.stream.readable"),l=r("nodejs.stream.writable"),u=r("nodejs.stream.disturbed"),c=r("nodejs.webstream.isClosedPromise"),m=r("nodejs.webstream.controllerErrorFunction");function h(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function f(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function N(e){return!(!e||f(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function g(e){return!(!e||f(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function v(e){return!(!e||f(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function y(e){if(!f(e))return null;const t=e._writableState,n=e._readableState,o=t||n;return!!(e.destroyed||e[i]||null!=o&&o.destroyed)}function b(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function $(e,t){if(!h(e))return null;const n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function x(e){return e&&null!=e[s]?e[s]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!y(e)&&h(e)&&e.readable&&!$(e)}function w(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!y(e)&&p(e)&&e.writable&&!b(e)}function _(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function C(e){return"boolean"==typeof e._sent100&&_(e)}e.exports={isDestroyed:y,kIsDestroyed:i,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:u,isErrored:function(e){var t,n,o,a,r,i,s,l,u,c;return!(!e||!(null!==(t=null!==(n=null!==(o=null!==(a=null!==(r=null!==(i=e[d])&&void 0!==i?i:e.readableErrored)&&void 0!==r?r:e.writableErrored)&&void 0!==a?a:null===(s=e._readableState)||void 0===s?void 0:s.errorEmitted)&&void 0!==o?o:null===(l=e._writableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(c=e._writableState)||void 0===c?void 0:c.errored))},kIsErrored:d,isReadable:x,kIsReadable:s,kIsClosedPromise:c,kControllerErrorFunction:m,kIsWritable:l,isClosed:function(e){if(!f(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==n?void 0:n.closed)?(null==t?void 0:t.closed)||(null==n?void 0:n.closed):"boolean"==typeof e._closed&&_(e)?e._closed:null},isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return f(e)?!(!y(e)&&(!1!==(null==t?void 0:t.readable)&&x(e)||!1!==(null==t?void 0:t.writable)&&w(e))):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[o]:!1===t?"function"==typeof e[a]:"function"==typeof e[o]||"function"==typeof e[a])},isReadableNodeStream:h,isReadableStream:N,isReadableEnded:function(e){if(!h(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:$,isReadableErrored:function(e){var t,n;return f(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:f,isWebStream:function(e){return N(e)||g(e)||v(e)},isWritable:w,isWritableNodeStream:p,isWritableStream:g,isWritableEnded:b,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return f(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:C,willEmitClose:function(e){if(!f(e))return null;const t=e._writableState,n=e._readableState,o=t||n;return!o&&C(e)||!!(o&&o.autoDestroy&&o.emitClose&&!1===o.closed)},isTransformStream:v}},8584:(e,t,n)=>{const o=n(5606),{ArrayPrototypeSlice:a,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:d,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:m}=n(4134);e.exports=k,k.WritableState=R;const{EventEmitter:h}=n(7007),p=n(4259).Stream,{Buffer:f}=n(8287),N=n(5896),{addAbortSignal:g}=n(4147),{getHighWaterMark:v,getDefaultHighWaterMark:y}=n(5291),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:$,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:_,ERR_STREAM_ALREADY_FINISHED:C,ERR_STREAM_NULL_VALUES:S,ERR_STREAM_WRITE_AFTER_END:q,ERR_UNKNOWN_ENCODING:E}=n(6371).codes,{errorOrDestroy:I}=N;function A(){}l(k.prototype,p.prototype),l(k,p);const T=c("kOnFinished");function R(e,t,o){"boolean"!=typeof o&&(o=t instanceof n(3370)),this.objectMode=!(!e||!e.objectMode),o&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?v(this,e,"writableHighWaterMark",o):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const a=!(!e||!1!==e.decodeStrings);this.decodeStrings=!a,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=D.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,L(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[T]=[]}function L(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function k(e){const t=this instanceof n(3370);if(!t&&!i(k,this))return new k(e);this._writableState=new R(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&g(e.signal,this)),p.call(this,e),N.construct(this,(()=>{const e=this._writableState;e.writing||V(this,e),z(this,e)}))}function P(e,t,n,a){const r=e._writableState;if("function"==typeof n)a=n,n=r.defaultEncoding;else{if(n){if("buffer"!==n&&!f.isEncoding(n))throw new E(n)}else n=r.defaultEncoding;"function"!=typeof a&&(a=A)}if(null===t)throw new S;if(!r.objectMode)if("string"==typeof t)!1!==r.decodeStrings&&(t=f.from(t,n),n="buffer");else if(t instanceof f)n="buffer";else{if(!p._isUint8Array(t))throw new b("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),n="buffer"}let i;return r.ending?i=new q:r.destroyed&&(i=new _("write")),i?(o.nextTick(a,i),I(e,i,!0),i):(r.pendingcb++,function(e,t,n,o,a){const r=t.objectMode?1:n.length;t.length+=r;const i=t.length<t.highWaterMark;return i||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:o,callback:a}),t.allBuffers&&"buffer"!==o&&(t.allBuffers=!1),t.allNoop&&a!==A&&(t.allNoop=!1)):(t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,e._write(n,o,t.onwrite),t.sync=!1),i&&!t.errored&&!t.destroyed}(e,r,t,n,a))}function j(e,t,n,o,a,r,i){t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):n?e._writev(a,t.onwrite):e._write(a,r,t.onwrite),t.sync=!1}function O(e,t,n,o){--t.pendingcb,o(n),F(t),I(e,n)}function D(e,t){const n=e._writableState,a=n.sync,r=n.writecb;"function"==typeof r?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),a?o.nextTick(O,e,n,t,r):O(e,n,t,r)):(n.buffered.length>n.bufferedIndex&&V(e,n),a?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===r?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:r,stream:e,state:n},o.nextTick(M,n.afterWriteTickInfo)):B(e,n,1,r))):I(e,new x)}function M({stream:e,state:t,count:n,cb:o}){return t.afterWriteTickInfo=null,B(e,t,n,o)}function B(e,t,n,o){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,o();t.destroyed&&F(t),z(e,t)}function F(e){if(e.writing)return;for(let n=e.bufferedIndex;n<e.buffered.length;++n){var t;const{chunk:o,callback:a}=e.buffered[n],r=e.objectMode?1:o.length;e.length-=r,a(null!==(t=e.errored)&&void 0!==t?t:new _("write"))}const n=e[T].splice(0);for(let t=0;t<n.length;t++){var o;n[t](null!==(o=e.errored)&&void 0!==o?o:new _("end"))}L(e)}function V(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:o,objectMode:r}=t,i=n.length-o;if(!i)return;let d=o;if(t.bufferProcessing=!0,i>1&&e._writev){t.pendingcb-=i-1;const o=t.allNoop?A:e=>{for(let t=d;t<n.length;++t)n[t].callback(e)},r=t.allNoop&&0===d?n:a(n,d);r.allBuffers=t.allBuffers,j(e,t,!0,t.length,r,"",o),L(t)}else{do{const{chunk:o,encoding:a,callback:i}=n[d];n[d++]=null,j(e,t,!1,r?1:o.length,o,a,i)}while(d<n.length&&!t.writing);d===n.length?L(t):d>256?(n.splice(0,d),t.bufferedIndex=0):t.bufferedIndex=d}t.bufferProcessing=!1}function U(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function z(e,t,n){U(t)&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function a(a){if(n)I(e,null!=a?a:x());else if(n=!0,t.pendingcb--,a){const n=t[T].splice(0);for(let e=0;e<n.length;e++)n[e](a);I(e,a,t.sync)}else U(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,o.nextTick(Q,e,t))}t.sync=!0,t.pendingcb++;try{e._final(a)}catch(e){a(e)}t.sync=!1}(e,t)))}(e,t),0===t.pendingcb&&(n?(t.pendingcb++,o.nextTick(((e,t)=>{U(t)?Q(e,t):t.pendingcb--}),e,t)):U(t)&&(t.pendingcb++,Q(e,t))))}function Q(e,t){t.pendingcb--,t.finished=!0;const n=t[T].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}R.prototype.getBuffer=function(){return a(this.buffered,this.bufferedIndex)},d(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),d(k,m,{__proto__:null,value:function(e){return!!i(this,e)||this===k&&e&&e._writableState instanceof R}}),k.prototype.pipe=function(){I(this,new w)},k.prototype.write=function(e,t,n){return!0===P(this,e,t,n)},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||V(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=u(e)),!f.isEncoding(e))throw new E(e);return this._writableState.defaultEncoding=e,this},k.prototype._write=function(e,t,n){if(!this._writev)throw new $("_write()");this._writev([{chunk:e,encoding:t}],n)},k.prototype._writev=null,k.prototype.end=function(e,t,n){const a=this._writableState;let i;if("function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e){const n=P(this,e,t);n instanceof r&&(i=n)}return a.corked&&(a.corked=1,this.uncork()),i||(a.errored||a.ending?a.finished?i=new C("end"):a.destroyed&&(i=new _("end")):(a.ending=!0,z(this,a,!0),a.ended=!0)),"function"==typeof n&&(i||a.finished?o.nextTick(n,i):a[T].push(n)),this},s(k.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const G=N.destroy;let H;function J(){return void 0===H&&(H={}),H}k.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[T].length)&&o.nextTick(F,n),G.call(this,e,t),this},k.prototype._undestroy=N.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},k.fromWeb=function(e,t){return J().newStreamWritableFromWritableStream(e,t)},k.toWeb=function(e){return J().newWritableStreamFromStreamWritable(e)}},277:(e,t,n)=>{const{ArrayIsArray:o,ArrayPrototypeIncludes:a,ArrayPrototypeJoin:r,ArrayPrototypeMap:i,NumberIsInteger:d,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:m,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:f,StringPrototypeTrim:N}=n(4134),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:v,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:$,ERR_UNKNOWN_SIGNAL:x}}=n(6371),{normalizeEncoding:w}=n(7760),{isAsyncFunction:_,isArrayBufferView:C}=n(7760).types,S={},q=/^[0-7]+$/,E=g(((e,t,n=u,o=l)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!d(e))throw new $(t,"an integer",e);if(e<n||e>o)throw new $(t,`>= ${n} && <= ${o}`,e)})),I=g(((e,t,n=-2147483648,o=2147483647)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!d(e))throw new $(t,"an integer",e);if(e<n||e>o)throw new $(t,`>= ${n} && <= ${o}`,e)})),A=g(((e,t,n=!1)=>{if("number"!=typeof e)throw new y(t,"number",e);if(!d(e))throw new $(t,"an integer",e);const o=n?1:0,a=4294967295;if(e<o||e>a)throw new $(t,`>= ${o} && <= ${a}`,e)}));function T(e,t){if("string"!=typeof e)throw new y(t,"string",e)}const R=g(((e,t,n)=>{if(!a(n,e)){const o=r(i(n,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new b(t,e,"must be one of: "+o)}}));function L(e,t){if("boolean"!=typeof e)throw new y(t,"boolean",e)}function k(e,t,n){return null!=e&&m(e,t)?e[t]:n}const P=g(((e,t,n=null)=>{const a=k(n,"allowArray",!1),r=k(n,"allowFunction",!1);if(!k(n,"nullable",!1)&&null===e||!a&&o(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new y(t,"Object",e)})),j=g(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new y(t,"a dictionary",e)})),O=g(((e,t,n=0)=>{if(!o(e))throw new y(t,"Array",e);if(e.length<n)throw new b(t,e,`must be longer than ${n}`)})),D=g(((e,t="buffer")=>{if(!C(e))throw new y(t,["Buffer","TypedArray","DataView"],e)})),M=g(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new y(t,"AbortSignal",e)})),B=g(((e,t)=>{if("function"!=typeof e)throw new y(t,"Function",e)})),F=g(((e,t)=>{if("function"!=typeof e||_(e))throw new y(t,"Function",e)})),V=g(((e,t)=>{if(void 0!==e)throw new y(t,"undefined",e)})),U=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function z(e,t){if(void 0===e||!h(U,e))throw new b(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(void 0===e&&(e=n),"string"==typeof e){if(null===h(q,e))throw new b(t,e,"must be a 32-bit unsigned integer or an octal string");e=c(e,8)}return A(e,t),e},validateArray:O,validateStringArray:function(e,t){O(e,t);for(let n=0;n<e.length;n++)T(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){O(e,t);for(let n=0;n<e.length;n++)L(e[n],`${t}[${n}]`)},validateAbortSignalArray:function(e,t){O(e,t);for(let n=0;n<e.length;n++){const o=e[n],a=`${t}[${n}]`;if(null==o)throw new y(a,"AbortSignal",o);M(o,a)}},validateBoolean:L,validateBuffer:D,validateDictionary:j,validateEncoding:function(e,t){const n=w(t),o=e.length;if("hex"===n&&o%2!=0)throw new b("encoding",t,`is invalid for data of length ${o}`)},validateFunction:B,validateInt32:I,validateInteger:E,validateNumber:function(e,t,n=void 0,o){if("number"!=typeof e)throw new y(t,"number",e);if(null!=n&&e<n||null!=o&&e>o||(null!=n||null!=o)&&s(e))throw new $(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=o?" && ":""}${null!=o?`<= ${o}`:""}`,e)},validateObject:P,validateOneOf:R,validatePlainFunction:F,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===N(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new v(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(T(e,t),void 0===S[e]){if(void 0!==S[f(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}},validateString:T,validateUint32:A,validateUndefined:V,validateUnion:function(e,t,n){if(!a(n,e))throw new y(t,`('${r(n,"|")}')`,e)},validateAbortSignal:M,validateLinkHeaderValue:function(e){if("string"==typeof e)return z(e,"hints"),e;if(o(e)){const t=e.length;let n="";if(0===t)return n;for(let o=0;o<t;o++){const a=e[o];z(a,"hints"),n+=a,o!==t-1&&(n+=", ")}return n}throw new b("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},9198:(e,t,n)=>{const o=n(5506),a=n(3095),r=o.Readable.destroy;e.exports=o.Readable,e.exports._uint8ArrayToBuffer=o._uint8ArrayToBuffer,e.exports._isUint8Array=o._isUint8Array,e.exports.isDisturbed=o.isDisturbed,e.exports.isErrored=o.isErrored,e.exports.isReadable=o.isReadable,e.exports.Readable=o.Readable,e.exports.Writable=o.Writable,e.exports.Duplex=o.Duplex,e.exports.Transform=o.Transform,e.exports.PassThrough=o.PassThrough,e.exports.addAbortSignal=o.addAbortSignal,e.exports.finished=o.finished,e.exports.destroy=o.destroy,e.exports.destroy=r,e.exports.pipeline=o.pipeline,e.exports.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get:()=>a}),e.exports.Stream=o.Stream,e.exports.default=e.exports},6371:(e,t,n)=>{const{format:o,inspect:a,AggregateError:r}=n(7760),i=globalThis.AggregateError||r,d=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,u={};function c(e,t){if(!e)throw new u.ERR_INTERNAL_ASSERTION(t)}function m(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function h(e,t,n){n||(n=Error);class a extends n{constructor(...n){super(function(e,t,n){if("function"==typeof t)return c(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const a=(t.match(/%[dfijoOs]/g)||[]).length;return c(a===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${a}).`),0===n.length?t:o(t,...n)}(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=e,a.prototype[d]=!0,u[e]=a}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class f extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new u.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",((e,t,n)=>{c("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let o="The ";e.endsWith(" argument")?o+=`${e} `:o+=`"${e}" ${e.includes(".")?"property":"argument"} `,o+="must be ";const r=[],i=[],d=[];for(const e of t)c("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?r.push(e.toLowerCase()):l.test(e)?i.push(e):(c("object"!==e,'The value "object" should be written as "Object"'),d.push(e));if(i.length>0){const e=r.indexOf("object");-1!==e&&(r.splice(r,e,1),i.push("Object"))}if(r.length>0){switch(r.length){case 1:o+=`of type ${r[0]}`;break;case 2:o+=`one of type ${r[0]} or ${r[1]}`;break;default:{const e=r.pop();o+=`one of type ${r.join(", ")}, or ${e}`}}(i.length>0||d.length>0)&&(o+=" or ")}if(i.length>0){switch(i.length){case 1:o+=`an instance of ${i[0]}`;break;case 2:o+=`an instance of ${i[0]} or ${i[1]}`;break;default:{const e=i.pop();o+=`an instance of ${i.join(", ")}, or ${e}`}}d.length>0&&(o+=" or ")}switch(d.length){case 0:break;case 1:d[0].toLowerCase()!==d[0]&&(o+="an "),o+=`${d[0]}`;break;case 2:o+=`one of ${d[0]} or ${d[1]}`;break;default:{const e=d.pop();o+=`one of ${d.join(", ")}, or ${e}`}}if(null==n)o+=`. Received ${n}`;else if("function"==typeof n&&n.name)o+=`. Received function ${n.name}`;else if("object"==typeof n){var u;null!==(u=n.constructor)&&void 0!==u&&u.name?o+=`. Received an instance of ${n.constructor.name}`:o+=`. Received ${a(n,{depth:-1})}`}else{let e=a(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),o+=`. Received type ${typeof n} (${e})`}return o}),TypeError),h("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let o=a(t);return o.length>128&&(o=o.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${o}`}),TypeError),h("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var o;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(o=n.constructor)&&void 0!==o&&o.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),h("ERR_MISSING_ARGS",((...e)=>{let t;c(e.length>0,"At least one arg needs to be specified");const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),h("ERR_OUT_OF_RANGE",((e,t,n)=>{let o;return c(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?o=m(String(n)):"bigint"==typeof n?(o=String(n),(n>2n**32n||n<-(2n**32n))&&(o=m(o)),o+="n"):o=a(n),`The value of "${e}" is out of range. It must be ${t}. Received ${o}`}),RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:f,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new i([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:p,codes:u}},4134:e=>{e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error,FunctionPrototypeCall:(e,t,...n)=>e.call(t,...n),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Boolean,Uint8Array}},7760:(e,t,n)=>{const o=n(8287),{kResistStopPropagation:a,SymbolDispose:r}=n(4134),i=globalThis.AbortSignal||n(5568).AbortSignal,d=globalThis.AbortController||n(5568).AbortController,s=Object.getPrototypeOf((async function(){})).constructor,l=globalThis.Blob||o.Blob,u=void 0!==l?function(e){return e instanceof l}:function(e){return!1},c=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ERR_INVALID_ARG_TYPE(t,"AbortSignal",e)};class m extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:m,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e(((e,...o)=>e?n(e):t(...o)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,n]){const o=t.shift();return"f"===n?o.toFixed(6):"j"===n?JSON.stringify(o):"s"===n&&"object"==typeof o?`${o.constructor!==Object?o.constructor.name:""} {}`.trim():o.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof s,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:u,deprecate:(e,t)=>e,addAbortListener:n(7007).addAbortListener||function(e,t){if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);let n;return c(e,"signal"),((e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE("listener","Function",e)})(t),e.aborted?queueMicrotask((()=>t())):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),n=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[r](){var e;null===(e=n)||void 0===e||e()}}},AbortSignalAny:i.any||function(e){if(1===e.length)return e[0];const t=new d,n=()=>t.abort();return e.forEach((e=>{c(e,"signals"),e.addEventListener("abort",n,{once:!0})})),t.signal.addEventListener("abort",(()=>{e.forEach((e=>e.removeEventListener("abort",n)))}),{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},5506:(e,t,n)=>{const{Buffer:o}=n(8287),{ObjectDefineProperty:a,ObjectKeys:r,ReflectApply:i}=n(4134),{promisify:{custom:d}}=n(7760),{streamReturningOperators:s,promiseReturningOperators:l}=n(823),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=n(6371),c=n(7830),{setDefaultHighWaterMark:m,getDefaultHighWaterMark:h}=n(5291),{pipeline:p}=n(7758),{destroyer:f}=n(5896),N=n(6238),g=n(3095),v=n(6115),y=e.exports=n(4259).Stream;y.isDestroyed=v.isDestroyed,y.isDisturbed=v.isDisturbed,y.isErrored=v.isErrored,y.isReadable=v.isReadable,y.isWritable=v.isWritable,y.Readable=n(7576);for(const $ of r(s)){const x=s[$];function w(...e){if(new.target)throw u();return y.Readable.from(i(x,this,e))}a(w,"name",{__proto__:null,value:x.name}),a(w,"length",{__proto__:null,value:x.length}),a(y.Readable.prototype,$,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(const _ of r(l)){const C=l[_];function S(...e){if(new.target)throw u();return i(C,this,e)}a(S,"name",{__proto__:null,value:C.name}),a(S,"length",{__proto__:null,value:C.length}),a(y.Readable.prototype,_,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}y.Writable=n(8584),y.Duplex=n(3370),y.Transform=n(5001),y.PassThrough=n(6524),y.pipeline=p;const{addAbortSignal:b}=n(4147);y.addAbortSignal=b,y.finished=N,y.destroy=f,y.compose=c,y.setDefaultHighWaterMark=m,y.getDefaultHighWaterMark=h,a(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>g}),a(p,d,{__proto__:null,enumerable:!0,get:()=>g.pipeline}),a(N,d,{__proto__:null,enumerable:!0,get:()=>g.finished}),y.Stream=y,y._isUint8Array=function(e){return e instanceof Uint8Array},y._uint8ArrayToBuffer=function(e){return o.from(e.buffer,e.byteOffset,e.byteLength)}},3095:(e,t,n)=>{const{ArrayPrototypePop:o,Promise:a}=n(4134),{isIterable:r,isNodeStream:i,isWebStream:d}=n(6115),{pipelineImpl:s}=n(7758),{finished:l}=n(6238);n(5506),e.exports={finished:l,pipeline:function(...e){return new a(((t,n)=>{let a,l;const u=e[e.length-1];if(u&&"object"==typeof u&&!i(u)&&!r(u)&&!d(u)){const t=o(e);a=t.signal,l=t.end}s(e,((e,o)=>{e?n(e):t(o)}),{signal:a,end:l})}))}}},2861:(e,t,n)=>{var o=n(8287),a=o.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(r(o,t),t.Buffer=i),i.prototype=Object.create(a.prototype),r(a,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=a(e);return void 0!==t?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},2791:function(e,t,n){!function(e,t){if(!e.setImmediate){var n,o,a,r,i,d=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(r="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&h(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),n=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):n=function(e){setTimeout(h,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),o=0;o<t.length;o++)t[o]=arguments[o+1];var a={callback:e,args:t};return s[d]=a,n(d),d++},c.clearImmediate=m}function m(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{m(e),l=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},3141:(e,t,n)=>{var o=n(2861).Buffer,a=o.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(o.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=l,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=u,this.end=c,t=3;break;default:return this.write=m,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function d(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var o=n.charCodeAt(n.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},r.prototype.text=function(e,t){var n=function(e,t,n){var o=t.length-1;if(o<n)return 0;var a=i(t[o]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--o<n||-2===a?0:(a=i(t[o]))>=0?(a>0&&(e.lastNeed=a-2),a):--o<n||-2===a?0:(a=i(t[o]))>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var o=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},259:e=>{e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8799:(e,t,n)=>{function o(e){var t=this;if(t instanceof o||(t=new o),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n<a;n++)t.push(arguments[n]);return t}function a(e,t,n){var o=t===e.head?new d(n,null,t,e):new d(n,t,t.next,e);return null===o.next&&(e.tail=o),null===o.prev&&(e.head=o),e.length++,o}function r(e,t){e.tail=new d(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new d(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function d(e,t,n,o){if(!(this instanceof d))return new d(e,t,n,o);this.list=o,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=o,o.Node=d,o.create=o,o.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},o.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},o.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},o.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},o.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},o.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},o.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},o.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,o=0;null!==n;o++)e.call(t,n.value,o,this),n=n.next},o.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,o=this.length-1;null!==n;o--)e.call(t,n.value,o,this),n=n.prev},o.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},o.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},o.prototype.map=function(e,t){t=t||this;for(var n=new o,a=this.head;null!==a;)n.push(e.call(t,a.value,this)),a=a.next;return n},o.prototype.mapReverse=function(e,t){t=t||this;for(var n=new o,a=this.tail;null!==a;)n.push(e.call(t,a.value,this)),a=a.prev;return n},o.prototype.reduce=function(e,t){var n,o=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,n=this.head.value}for(var a=0;null!==o;a++)n=e(n,o.value,a),o=o.next;return n},o.prototype.reduceReverse=function(e,t){var n,o=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,n=this.tail.value}for(var a=this.length-1;null!==o;a--)n=e(n,o.value,a),o=o.prev;return n},o.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},o.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},o.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new o;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=0,r=this.head;null!==r&&a<e;a++)r=r.next;for(;null!==r&&a<t;a++,r=r.next)n.push(r.value);return n},o.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new o;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=this.length,r=this.tail;null!==r&&a>t;a--)r=r.prev;for(;null!==r&&a>e;a--,r=r.prev)n.push(r.value);return n},o.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,r=this.head;null!==r&&o<e;o++)r=r.next;var i=[];for(o=0;r&&o<t;o++)i.push(r.value),r=this.removeNode(r);for(null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev),o=0;o<n.length;o++)r=a(this,r,n[o]);return i},o.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var o=n.prev;n.prev=n.next,n.next=o}return this.head=t,this.tail=e,this};try{n(259)(o)}catch(e){}},7789:()=>{}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};n.d(o,{TS:()=>ze,aH:()=>Ve,k_:()=>le,a6:()=>pd,nt:()=>G,Sx:()=>H,E7:()=>M,F3:()=>se});const a="http://www.w3.org/1999/02/22-rdf-syntax-ns#",r="http://www.w3.org/2001/XMLSchema#",i="http://www.w3.org/2000/10/swap/",d={xsd:{decimal:`${r}decimal`,boolean:`${r}boolean`,double:`${r}double`,integer:`${r}integer`,string:`${r}string`},rdf:{type:`${a}type`,nil:`${a}nil`,first:`${a}first`,rest:`${a}rest`,langString:`${a}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${i}reify#forSome`,forAll:`${i}reify#forAll`},log:{implies:`${i}log#implies`}},{rdf:s,xsd:l}=d;let u,c=0;const m={namedNode:function(e){return new f(e)},blankNode:function(e){return new g(e||"n3-"+c++)},variable:function(e){return new v(e)},literal:function(e,t){if("string"==typeof t)return new N(`"${e}"@${t.toLowerCase()}`);let n=t?t.value:"";return""===n&&("boolean"==typeof e?n=l.boolean:"number"==typeof e&&(Number.isFinite(e)?n=Number.isInteger(e)?l.integer:l.double:(n=l.double,Number.isNaN(e)||(e=e>0?"INF":"-INF")))),""===n||n===l.string?new N(`"${e}"`):new N(`"${e}"^^${n}`)},defaultGraph:function(){return u},quad:x,triple:x},h=m;class p{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof p?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class f extends p{get termType(){return"NamedNode"}}class N extends p{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let t=e.lastIndexOf('"')+1;return t<e.length&&"@"===e[t++]?e.substr(t).toLowerCase():""}get datatype(){return new f(this.datatypeString)}get datatypeString(){const e=this.id,t=e.lastIndexOf('"')+1,n=t<e.length?e[t]:"";return"^"===n?e.substr(t+2):"@"!==n?l.string:s.langString}equals(e){return e instanceof N?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&this.datatype.value===e.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}}class g extends p{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}}class v extends p{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}}function y(e,t,n){if(t=t||m,!e)return t.defaultGraph();switch(e[0]){case"?":return t.variable(e.substr(1));case"_":return t.blankNode(e.substr(2));case'"':if(t===m)return new N(e);if('"'===e[e.length-1])return t.literal(e.substr(1,e.length-2));const o=e.lastIndexOf('"',e.length-1);return t.literal(e.substr(1,o-1),"@"===e[o+1]?e.substr(o+2):t.namedNode(e.substr(o+3)));case"[":e=JSON.parse(e);break;default:if(!n||!Array.isArray(e))return t.namedNode(e)}return t.quad(y(e[0],t,!0),y(e[1],t,!0),y(e[2],t,!0),e[3]&&y(e[3],t,!0))}function b(e,t){if("string"==typeof e)return e;if(e instanceof p&&"Quad"!==e.termType)return e.id;if(!e)return u.id;switch(e.termType){case"NamedNode":return e.value;case"BlankNode":return`_:${e.value}`;case"Variable":return`?${e.value}`;case"DefaultGraph":return"";case"Literal":return`"${e.value}"${e.language?`@${e.language}`:e.datatype&&e.datatype.value!==l.string?`^^${e.datatype.value}`:""}`;case"Quad":const n=[b(e.subject,!0),b(e.predicate,!0),b(e.object,!0)];return e.graph&&"DefaultGraph"!==e.graph.termType&&n.push(b(e.graph,!0)),t?n:JSON.stringify(n);default:throw new Error(`Unexpected termType: ${e.termType}`)}}u=new class extends p{constructor(){return super(""),u||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};class $ extends p{constructor(e,t,n,o){super(""),this._subject=e,this._predicate=t,this._object=n,this._graph=o||u}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}}function x(e,t,n,o){return new $(e,t,n,o)}const w="http://www.w3.org/ns/shacl#",_="http://www.w3.org/2001/XMLSchema#",C="http://www.w3.org/1999/02/22-rdf-syntax-ns#",S="http://www.w3.org/2000/01/rdf-schema#",q="http://www.w3.org/2004/02/skos/core#",E="http://www.w3.org/2002/07/owl#",I=h.namedNode("shapes"),A=h.namedNode(E+"imports"),T=h.namedNode(C+"type"),R=h.namedNode(S+"subClassOf"),L=h.namedNode(q+"broader"),k=h.namedNode(E+"NamedIndividual"),P=h.namedNode(w+"NodeShape"),j=h.namedNode(w+"class"),O=h.namedNode(w+"targetClass");function D(e,t,n=w,o){let a="";const r=function(e,t,n=w,o){let a;const r=n+t;for(const t of e)if(t.predicate.value===r){if(!o)return t.object;if(t.object.id.endsWith(`@${o}`))return t.object;t.object.id.indexOf("@")<0?a=t.object:a||(a=t.object)}return a}(e,t,n,o);return r&&(a=r.value),a}function M(e,t){return D(e,"prefLabel",q,t)||D(e,"label",S,t)}function B(e,t,n){const o=[];for(const a of e)o.push({value:a,label:M(t.getQuads(a,null,null,null),n)});return o}function F(e,t){for(const n in t)e=e.replace(t[n],"");return e}function V(e,t){const n=B(t.shapesGraph.getSubjects(T,e,null),t.shapesGraph,t.attributes.language);for(const o of t.shapesGraph.getSubjects(R,e,null))n.push(...V(o,t));if(t.shapesGraph.has(new $(e,T,k,I))){n.push(...B([e],t.shapesGraph,t.attributes.language));for(const o of t.shapesGraph.getSubjects(L,e,null))n.push(...V(o,t))}return n}function U(e){let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}function z(e,t,n){const o=document.createElement("div");o.classList.add("shacl-or-constraint");const a=[];if(a.push({label:"--- please choose ---",value:""}),t instanceof be){const r=[];for(let o=0;o<e.length;o++){const i=new ue(e[o],n,t.nodeId);r.push(i),a.push({label:i.template.label,value:o.toString()})}const i=n.theme.createListEditor("Please choose",null,!1,a),d=i.querySelector(".editor");d.onchange=()=>{d.value&&o.replaceWith(r[parseInt(d.value)])},o.appendChild(i)}else{const r=[];for(let t=0;t<e.length;t++){const o=n.shapesGraph.getQuads(e[t],null,null,I);o.length&&(r.push(o),a.push({label:M(o,n.attributes.language)||F(o[0].predicate.value,n.prefixes)+" = "+F(o[0].object.value,n.prefixes),value:t.toString()}))}const i=n.theme.createListEditor(t.template.label+"?",null,!1,a,t.template),d=i.querySelector(".editor");d.onchange=()=>{d.value&&o.replaceWith(ce(t.template.clone().merge(r[parseInt(d.value)]),void 0,!0))},o.appendChild(i)}return o}const Q={[`${w}name`]:(e,t)=>{const n=t;e.name&&n.language!==e.config.attributes.language||(e.name=n)},[`${w}description`]:(e,t)=>{const n=t;e.description&&n.language!==e.config.attributes.language||(e.description=n)},[`${w}path`]:(e,t)=>{e.path=t.value},[`${w}node`]:(e,t)=>{e.node=t},[`${w}datatype`]:(e,t)=>{e.datatype=t},[`${w}nodeKind`]:(e,t)=>{e.nodeKind=t},[`${w}minCount`]:(e,t)=>{e.minCount=parseInt(t.value)},[`${w}maxCount`]:(e,t)=>{e.maxCount=parseInt(t.value)},[`${w}minLength`]:(e,t)=>{e.minLength=parseInt(t.value)},[`${w}maxLength`]:(e,t)=>{e.maxLength=parseInt(t.value)},[`${w}minInclusive`]:(e,t)=>{e.minInclusive=parseInt(t.value)},[`${w}maxInclusive`]:(e,t)=>{e.maxInclusive=parseInt(t.value)},[`${w}minExclusive`]:(e,t)=>{e.minExclusive=parseInt(t.value)},[`${w}maxExclusive`]:(e,t)=>{e.maxExclusive=parseInt(t.value)},[`${w}pattern`]:(e,t)=>{e.pattern=t.value},[`${w}order`]:(e,t)=>{e.order=parseInt(t.value)},"http://datashapes.org/dash#singleLine":(e,t)=>{e.singleLine="true"===t.value},"http://www.w3.org/ns/oa#styleClass":(e,t)=>{e.cssClass=t.value},[`${w}and`]:(e,t)=>{e.shaclAnd=t.value},[`${w}in`]:(e,t)=>{e.shaclIn=t.value},[`${w}languageIn`]:(e,t)=>{e.languageIn=e.config.lists[t.value],e.datatype=h.namedNode(C+"langString")},[`${w}defaultValue`]:(e,t)=>{e.defaultValue=t},[`${w}hasValue`]:(e,t)=>{e.hasValue=t},[j.value]:(e,t)=>{e.class=t;const n=e.config.shapesGraph.getSubjects(O,t,I);n.length>0&&(e.node=n[0])},[`${w}or`]:(e,t)=>{const n=e.config.lists[t.value];(null==n?void 0:n.length)?e.shaclOr=n:console.error("list not found:",t.value,"existing lists:",e.config.lists)}};class G{constructor(e,t,n){this.label="",this.config=n,this.nodeId=t,this.merge(e)}merge(e){var t,n;for(const n of e)null===(t=Q[n.predicate.id])||void 0===t||t.call(this,this,n.object);if(this.label=(null===(n=this.name)||void 0===n?void 0:n.value)||M(e,this.config.attributes.language),this.label||this.node||this.shaclAnd||(this.label=this.path?F(this.path,this.config.prefixes):"unknown"),(this.node||this.shaclAnd)&&(this.extendedShapes=[],this.node&&this.extendedShapes.push(this.node),this.shaclAnd)){const e=this.config.lists[this.shaclAnd];if(null==e?void 0:e.length)for(const t of e)this.extendedShapes.push(t)}return this}clone(){const e=Object.assign({},this);return e.merge=this.merge.bind(e),e.clone=this.clone.bind(e),e}}class H{constructor(e){let t="form { box-sizing: border-box; display:block; --label-width: 8em; --caret-size: 10px; }\nform.mode-edit { padding-left: 1em; }\nform *, form ::after, form ::before { box-sizing: inherit; }\nshacl-node, .shacl-group { display: flex; flex-direction: column; width: 100%; position: relative; }\nshacl-node .control-button { text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 4px; padding: 2px 4px; }\nshacl-node .control-button:hover { border-color: inherit; }\nshacl-node .remove-button { margin-left: 4px; }\nshacl-node .add-button { font-size: 0.8rem; color: #555; margin: 4px 24px 0 0; }\nshacl-node .add-button:before { content: '+'; margin-right: 0.2em; }\nshacl-node .add-button:hover { color: inherit; }\nshacl-node h1 { font-size: 1.1rem; border-bottom: 1px solid; margin-top: 4px; color: #555; }\nshacl-property { display: flex; flex-direction: column; align-items: end; position: relative; }\nshacl-property:not(.may-add) > .add-button { display: none; }\nshacl-property:not(.may-remove) > .property-instance > .remove-button:not(.persistent) { visibility: hidden; }\nshacl-property:not(.may-remove) > .shacl-or-constraint > .remove-button:not(.persistent) { visibility: hidden; }\n.shacl-group { margin-bottom: 1em; padding-bottom: 1em; }\n.mode-view .shacl-group:not(:has(shacl-property)) { display: none; }\n.property-instance, .shacl-or-constraint { display: flex; align-items: flex-start; padding: 4px 0; width: 100%; position: relative; }\n.shacl-or-constraint label { display: inline-block; word-break: break-word; width: var(--label-width); line-height: 1em; padding-top: 0.15em; padding-right: 1em; flex-shrink: 0; position: relative; }\n.property-instance label[title] { cursor: help; text-decoration: underline dashed #AAA; }\n.mode-edit .property-instance label.required::before { color: red; content: '\\2736'; font-size: 0.6rem; position: absolute; left: -1.4em; top: 0.15rem; }\n.property-instance.valid::before { position: absolute; left: calc(var(--label-width) - 1em); top: 6px; color: green; content: '\\2713'; }\n.editor:not([type='checkbox']), .shacl-or-constraint select { flex-grow: 1; }\n.shacl-or-constraint select { border: 1px solid #DDD; padding: 2px 4px; }\ntextarea.editor { resize: vertical; }\n.lang-chooser { position: absolute; top: 5px; right: 28px; border: 0; background-color: #e9e9ed; padding: 2px 4px; max-width: 40px; width: 40px; box-sizing: content-box; }\n.lang-chooser+.editor { padding-right: 55px; }\n.validation-error { position: absolute; left: calc(var(--label-width) - 1em); top: 6px; color: red; cursor: help; }\n.validation-error::before { content: '\\26a0' }\n.validation-error.node { left: -1em; }\n.invalid > .editor { border-color: red !important; }\n.ml-0 { margin-left: 0 !important; }\n.pr-0 { padding-right: 0 !important; }\n.mode-view .property-instance:not(:first-child) > label { visibility: hidden; }\n.mode-view .property-instance label { width: var(--label-width); }\n\n.d-flex { display: flex; }\n.lang { opacity: 0.65; font-size: 0.6em; }\na, a:visited { color: inherit; }\n\n.fadeIn, .fadeOut { animation: fadeIn 0.2s ease-out; }\n.fadeOut { animation-direction: reverse; animation-timing-function: ease-out;}\n@keyframes fadeIn {\n 0% { opacity: 0; transform: scaleY(0.8); }\n 100% { opacity: 1; transform: scaleY(1); }\n}\n \n.collapsible > .activator { display: flex; justify-content: space-between; align-items: center; cursor: pointer; width: 100%; border: 0; padding: 8px 0; transition: 0.2s; }\n.collapsible > .activator:hover, .collapsible.open > .activator { background-color: #F5F5F5; }\n.collapsible > .activator::after { content:''; width: var(--caret-size); height: var(--caret-size); border-style: none solid solid none; border-width: calc(0.3 * var(--caret-size)); transform: rotate(45deg); transition: transform .15s ease-out; margin-right: calc(0.5 * var(--caret-size)); }\n.collapsible.open > .activator::after { transform: rotate(225deg); }\n.collapsible > *:not(.activator) { transition: all 0.2s ease-out; opacity: 1; }\n.collapsible:not(.open) > *:not(.activator) { max-height: 0; padding: 0; opacity: 0; overflow: hidden; }\n.collapsible shacl-node > h1 { display: none; }\n.collapsible.open > .property-instance:nth-child(odd) { background-color: #F5F5F5; }";e&&(t+="\n"+e),this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t)}apply(e){}createViewer(e,t,n){const o=document.createElement("div"),a=document.createElement("label");a.innerHTML=e+":",n.description&&a.setAttribute("title",n.description.value),o.appendChild(a);let r,i=t.value,d=null;if(t instanceof f){const e=n.config.shapesGraph.getQuads(i,null,null,I);if(e.length){const t=M(e,n.config.attributes.language);t&&(i=t)}}else t instanceof N&&(t.language?(d=document.createElement("span"),d.classList.add("lang"),d.innerText=`@${t.language}`):t.datatype.value===`${_}date`?i=new Date(Date.parse(t.value)).toDateString():t.datatype.value===`${_}dateTime`&&(i=new Date(Date.parse(t.value)).toLocaleString()));return U(t.value)?(r=document.createElement("a"),r.setAttribute("href",t.value)):r=document.createElement("div"),r.classList.add("d-flex"),r.innerText=i,d&&r.appendChild(d),o.appendChild(r),o}}function J(e,t){var n,o,a;if(e.config.editMode){const r=void 0!==e.minCount&&e.minCount>0;if(e.class)return e.config.theme.createListEditor(e.label,t,r,V(e.class,e.config),e);if(e.shaclIn){const n=e.config.lists[e.shaclIn];if(null==n?void 0:n.length){const o=B(n,e.config.shapesGraph,e.config.attributes.language);return e.config.theme.createListEditor(e.label,t,r,o,e)}console.error("list not found:",e.shaclIn,"existing lists:",e.config.lists)}if((null===(n=e.datatype)||void 0===n?void 0:n.value)===`${C}langString`||(null===(o=e.languageIn)||void 0===o?void 0:o.length))return e.config.theme.createLangStringEditor(e.label,t,r,e);switch(null===(a=e.datatype)||void 0===a?void 0:a.value.replace(_,"")){case"integer":case"float":case"double":case"decimal":return e.config.theme.createNumberEditor(e.label,t,r,e);case"date":case"dateTime":return e.config.theme.createDateEditor(e.label,t,r,e);case"boolean":return e.config.theme.createBooleanEditor(e.label,t,r,e);case"base64Binary":return e.config.theme.createFileEditor(e.label,t,r,e)}return e.config.theme.createTextEditor(e.label,t,r,e)}{if(t)return e.config.theme.createViewer(e.label,t,e);const n=document.createElement("div");return n.innerHTML="No value",n}}function W(e){return!!e&&"DefaultGraph"===e.termType}const K=h.defaultGraph(),{rdf:X,xsd:Y}=d,Z=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,ee=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,te={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class ne extends p{equals(e){return e===this}}class oe{constructor(e,t){if(this._prefixRegex=/$0^/,e&&"function"!=typeof e.write&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=void 0===t.end||!!t.end;else{let e="";this._outputStream={write(t,n,o){e+=t,o&&o()},end:t=>{t&&t(null,e)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=K,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${re(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return K.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,n,o,a){try{o.equals(this._graph)||(this._write((null===this._subject?"":this._inDefaultGraph?".\n":"\n}\n")+(K.equals(o)?"":`${this._encodeIriOrBlank(o)} {\n`)),this._graph=o,this._subject=null),e.equals(this._subject)?t.equals(this._predicate)?this._write(`, ${this._encodeObject(n)}`,a):this._write(`;\n ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,a):this._write(`${(null===this._subject?"":".\n")+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,a)}catch(e){a&&a(e)}}_writeQuadLine(e,t,n,o,a){delete this._prefixMatch,this._write(this.quadToString(e,t,n,o),a)}quadToString(e,t,n,o){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(t)} ${this._encodeObject(n)}${o&&o.value?` ${this._encodeIriOrBlank(o)} .\n`:" .\n"}`}quadsToString(e){return e.map((e=>this.quadToString(e.subject,e.predicate,e.object,e.graph))).join("")}_encodeSubject(e){return"Quad"===e.termType?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if("NamedNode"!==e.termType)return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let t=e.value;this._baseMatcher&&this._baseMatcher.test(t)&&(t=t.substr(this._baseLength)),Z.test(t)&&(t=t.replace(ee,ae));const n=this._prefixRegex.exec(t);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:t:`<${t}>`}_encodeLiteral(e){let t=e.value;if(Z.test(t)&&(t=t.replace(ee,ae)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Y.string)return`"${t}"`}else switch(e.datatype.value){case Y.string:return`"${t}"`;case Y.boolean:if("true"===t||"false"===t)return t;break;case Y.integer:if(/^[+-]?\d+$/.test(t))return t;break;case Y.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case Y.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===X.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:t,object:n,graph:o}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(n)}${W(o)?"":` ${this._encodeIriOrBlank(o)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,n,o,a){void 0===n?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):"function"==typeof o?this._writeQuad(e,t,n,K,o):this._writeQuad(e,t,n,o||K,a)}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}addPrefix(e,t,n){const o={};o[e]=t,this.addPrefixes(o,n)}addPrefixes(e,t){if(!this._prefixIRIs)return t&&t();let n=!1;for(let t in e){let o=e[t];"string"!=typeof o&&(o=o.value),n=!0,null!==this._subject&&(this._write(this._inDefaultGraph?".\n":"\n}\n"),this._subject=null,this._graph=""),this._prefixIRIs[o]=t+=":",this._write(`@prefix ${t} <${o}>.\n`)}if(n){let e="",t="";for(const n in this._prefixIRIs)e+=e?`|${n}`:n,t+=(t?"|":"")+this._prefixIRIs[n];e=re(e),this._prefixRegex=new RegExp(`^(?:${t})[^/]*$|^(${e})([_a-zA-Z][\\-_a-zA-Z0-9]*)$`)}this._write(n?"\n":"",t)}blank(e,t){let n,o,a=e;switch(void 0===e?a=[]:e.termType?a=[{predicate:e,object:t}]:"length"in e||(a=[e]),o=a.length){case 0:return new ne("[]");case 1:if(n=a[0],!(n.object instanceof ne))return new ne(`[ ${this._encodePredicate(n.predicate)} ${this._encodeObject(n.object)} ]`);default:let t="[";for(let r=0;r<o;r++)n=a[r],n.predicate.equals(e)?t+=`, ${this._encodeObject(n.object)}`:(t+=`${(r?";\n ":"\n ")+this._encodePredicate(n.predicate)} ${this._encodeObject(n.object)}`,e=n.predicate);return new ne(`${t}\n]`)}}list(e){const t=e&&e.length||0,n=new Array(t);for(let o=0;o<t;o++)n[o]=this._encodeObject(e[o]);return new ne(`(${n.join(" ")})`)}end(e){null!==this._subject&&(this._write(this._inDefaultGraph?".\n":"\n}\n"),this._subject=null),this._write=this._blockedWrite;let t=e&&((n,o)=>{t=null,e(n,o)});if(this._endStream)try{return this._outputStream.end(t)}catch(e){}t&&t()}}function ae(e){let t=te[e];return void 0===t&&(1===e.length?(t=e.charCodeAt(0).toString(16),t="\\u0000".substr(0,6-t.length)+t):(t=(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)+9216).toString(16),t="\\U00000000".substr(0,10-t.length)+t)),t}function re(e){return e.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}function ie(e){let t=e.shaclDatatype,n=e.value;return n?e.dataset.class||e.dataset.nodeKind===w+"IRI"?h.namedNode(n):(e.dataset.lang?t=e.dataset.lang:"number"===e.type?n=parseFloat(n):"file"===e.type&&e.binaryData?n=e.binaryData:"datetime-local"===e.type&&(n=new Date(n).toISOString().slice(0,19)),h.literal(n,t)):"checkbox"!==e.type&&"checkbox"!==e.getAttribute("type")||!(e.checked||parseInt(e.dataset.minCount||"0")>0)?void 0:h.literal(e.checked?"true":"false",t)}const de={};function se(e){void 0===e.predicate&&void 0===e.datatype?console.warn('not registering plugin because it does neither define "predicate" nor "datatype"',e):de[`${e.predicate}^${e.datatype}`]=e}class le{constructor(e,t){this.predicate=e.predicate,this.datatype=e.datatype,t&&(this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t))}createViewer(e,t){return e.config.theme.createViewer(e.label,t,e)}}class ue extends HTMLElement{constructor(e,t,n,o){var a;if(super(),this.template=new G(t.shapesGraph.getQuads(e,null,null,I),n,t),this.dataset.nodeId=this.template.nodeId.id,void 0!==this.template.order&&(this.style.order=`${this.template.order}`),this.template.cssClass&&this.classList.add(this.template.cssClass),t.editMode&&(this.addButton=document.createElement("a"),this.addButton.innerText=this.template.label,this.addButton.title="Add "+this.template.label,this.addButton.classList.add("control-button","add-button"),this.addButton.addEventListener("click",(e=>{const t=this.addPropertyInstance();t.classList.add("fadeIn"),this.updateControls(),function(e){var t;null===(t=e.querySelector("input,select,textarea"))||void 0===t||t.focus()}(t),setTimeout((()=>{t.classList.remove("fadeIn")}),200)})),this.appendChild(this.addButton)),this.template.path){const e=o?t.dataGraph.getQuads(o,this.template.path,null,null):[];let n=!1;for(const t of e)this.addPropertyInstance(t.object),this.template.hasValue&&t.object.equals(this.template.hasValue)&&(n=!0);t.editMode&&this.template.hasValue&&!n&&this.addPropertyInstance(this.template.hasValue)}if(t.editMode&&(this.addEventListener("change",(()=>{this.updateControls()})),this.updateControls()),(null===(a=this.template.extendedShapes)||void 0===a?void 0:a.length)&&null!==this.template.config.attributes.collapse&&(!this.template.maxCount||this.template.maxCount>1)&&(t.editMode||this.childElementCount>0)){const e=this;e.classList.add("collapsible"),"open"===this.template.config.attributes.collapse&&e.classList.add("open");const t=document.createElement("h1");t.classList.add("activator"),t.innerText=this.template.label,t.addEventListener("click",(()=>{e.classList.toggle("open")})),this.prepend(t)}}addPropertyInstance(e){var t;let n;return(null===(t=this.template.shaclOr)||void 0===t?void 0:t.length)?e?n=ce(function(e,t){if(!e.shaclOr)return console.warn("can't resolve sh:or because template has no options",e),e;if(t instanceof N){const n=t.datatype;for(const t of e.shaclOr){const o=e.config.shapesGraph.getQuads(t,null,null,I);for(const t of o)if(t.predicate.value===`${w}datatype`&&t.object.equals(n))return e.clone().merge(o)}}else{let n=e.config.dataGraph.getObjects(t,T,null);if(n.push(...e.config.shapesGraph.getObjects(t,T,I)),n.length>0)for(const t of e.shaclOr){const o=e.config.shapesGraph.getQuads(t,null,null,I);for(const t of o){if(t.predicate.value===`${w}node`)for(const a of n)if(e.config.shapesGraph.has(new $(t.object,O,a,I)))return e.clone().merge(o);if(t.predicate.equals(j))for(const a of n)if(t.object.equals(a))return e.clone().merge(o)}}}return console.error("couldn't resolve sh:or for value",t),e}(this.template,e),e,!0):(n=z(this.template.shaclOr,this,this.template.config),me(n,"")):n=ce(this.template,e),this.template.config.editMode?this.insertBefore(n,this.addButton):this.appendChild(n),n}updateControls(){var e;let t,n=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length;0===n&&(!(null===(e=this.template.extendedShapes)||void 0===e?void 0:e.length)||void 0!==this.template.minCount&&this.template.minCount>0)&&(this.addPropertyInstance(),n=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length),t=void 0!==this.template.minCount?n>this.template.minCount:this.template.extendedShapes&&this.template.extendedShapes.length>0||n>1;const o=void 0===this.template.maxCount||n<this.template.maxCount;this.classList.toggle("may-remove",t),this.classList.toggle("may-add",o)}toRDF(e,t){for(const n of this.querySelectorAll(":scope > .property-instance")){const o=h.namedNode(n.dataset.path);if(n.firstChild instanceof be){const a=e.size,r=n.firstChild.toRDF(e);e.size>a&&e.addQuad(t,o,r)}else{const a=ie(n.querySelector(".editor"));a&&e.addQuad(t,o,a)}}}}function ce(e,t,n=!1){var o,a;let r;if(null===(o=e.extendedShapes)||void 0===o?void 0:o.length){r=document.createElement("div"),r.classList.add("property-instance");for(const n of e.extendedShapes)r.appendChild(new be(n,e.config,t,e.nodeKind,e.label))}else{const n=function(e,t){let n=de[`${e}^${t}`];return n||(n=de[`${e}^undefined`],n||de[`undefined^${t}`])}(e.path,null===(a=e.datatype)||void 0===a?void 0:a.value);r=n?e.config.editMode?n.createEditor(e,t):n.createViewer(e,t):J(e,t||null),r.classList.add("property-instance")}return e.config.editMode&&me(r,e.label,n),r.dataset.path=e.path,r}function me(e,t,n=!1){const o=document.createElement("a");o.innerText="×",o.classList.add("control-button","btn","remove-button"),o.title="Remove "+t,o.addEventListener("click",(t=>{e.classList.remove("fadeIn"),e.classList.add("fadeOut"),setTimeout((()=>{const t=e.parentElement;e.remove(),null==t||t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}),200)})),n&&o.classList.add("persistent"),e.appendChild(o)}function he(e,t){const n=document.createElement("div");n.dataset.subject=e,n.classList.add("shacl-group");let o=e;const a=t.shapesGraph.getQuads(e,null,null,I),r=D(a,"label",S,t.attributes.language);r&&(o=r);const i=D(a,"order");i&&(n.style.order=i);const d=document.createElement("h1");return d.innerText=o,n.appendChild(d),null!==t.attributes.collapse&&(n.classList.add("collapsible"),"open"===t.attributes.collapse&&n.classList.add("open"),d.classList.add("activator"),d.addEventListener("click",(()=>{n.classList.toggle("open")}))),n}window.customElements.define("shacl-property",ue);const pe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let fe;const Ne=new Uint8Array(16);function ge(){if(!fe&&(fe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fe(Ne)}const ve=[];for(let e=0;e<256;++e)ve.push((e+256).toString(16).slice(1));const ye=function(e,t,n){if(pe.randomUUID&&!t&&!e)return pe.randomUUID();const o=(e=e||{}).random||(e.rng||ge)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return ve[e[t+0]]+ve[e[t+1]]+ve[e[t+2]]+ve[e[t+3]]+"-"+ve[e[t+4]]+ve[e[t+5]]+"-"+ve[e[t+6]]+ve[e[t+7]]+"-"+ve[e[t+8]]+ve[e[t+9]]+"-"+ve[e[t+10]]+ve[e[t+11]]+ve[e[t+12]]+ve[e[t+13]]+ve[e[t+14]]+ve[e[t+15]]}(o)};class be extends HTMLElement{constructor(e,t,n,o,a){super(),this.config=t,this.shaclSubject=e;let r=n;if(!r){if(!o){const n=t.shapesGraph.getObjects(e,`${w}nodeKind`,I);n.length&&(o=n[0])}r=void 0===o&&t.attributes.valuesNamespace||(null==o?void 0:o.id)===`${w}IRI`?h.namedNode(t.attributes.valuesNamespace+ye()):h.blankNode(ye())}this.nodeId=r,this.dataset.nodeId=this.nodeId.id;const i=t.shapesGraph.getQuads(e,null,null,I);let d;for(const e of i)switch(e.predicate.id){case`${w}property`:let o=this;const a=t.shapesGraph.getQuads(e.object,`${w}group`,null,I);if(a.length>0){const e=a[0].object.value;if(t.groups.indexOf(e)>-1){let n=this.querySelector(`:scope > .shacl-group[data-subject='${e}']`);n||(n=he(e,t),this.appendChild(n)),o=n}else console.warn("ignoring unknown group reference",a[0])}const r=new ue(e.object,t,this.nodeId,n);r.childElementCount>0&&o.appendChild(r);break;case`${w}and`:if(d=t.lists[e.object.value],null==d?void 0:d.length)for(const e of d)this.prepend(new be(e,t,n));else console.error("list not found:",e.object.value,"existing lists:",t.lists);break;case`${w}node`:this.prepend(new be(e.object,t,n));break;case`${w}targetClass`:this.targetClass=e.object;break;case`${w}or`:d=t.lists[e.object.value],(null==d?void 0:d.length)?this.appendChild(z(d,this,t)):console.error("list not found:",e.object.value,"existing lists:",t.lists)}if(a){const e=document.createElement("h1");e.innerText=a,this.prepend(e)}}toRDF(e,t){t||(t=this.nodeId);for(const n of this.querySelectorAll(":scope > shacl-node, :scope > .shacl-group > shacl-node, :scope > shacl-property, :scope > .shacl-group > shacl-property"))n.toRDF(e,t);return this.targetClass&&e.addQuad(t,T,this.targetClass),this.closest("shacl-node shacl-node")||e.addQuad(t,T,this.shaclSubject),t}}window.customElements.define("shacl-node",be);var $e=n(9198);class xe{constructor(e,t){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,t||!e||e[0]||(t=e,e=null),t=t||{},this._factory=t.factory||h,e&&this.addQuads(e)}_termFromId(e,t){if("."===e[0]){const t=this._entities,n=e.split(".");return this._factory.quad(this._termFromId(t[n[1]]),this._termFromId(t[n[2]]),this._termFromId(t[n[3]]),n[4]&&this._termFromId(t[n[4]]))}return y(e,t)}_termToNumericId(e){if("Quad"===e.termType){const t=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),o=this._termToNumericId(e.object);let a;return t&&n&&o&&(W(e.graph)||(a=this._termToNumericId(e.graph)))&&this._ids[a?`.${t}.${n}.${o}.${a}`:`.${t}.${n}.${o}`]}return this._ids[b(e)]}_termToNewNumericId(e){const t=e&&"Quad"===e.termType?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${W(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:b(e);return this._ids[t]||(this._ids[this._entities[++this._id]=t]=this._id)}get size(){let e=this._size;if(null!==e)return e;e=0;const t=this._graphs;let n,o;for(const a in t)for(const r in n=t[a].subjects)for(const t in o=n[r])e+=Object.keys(o[t]).length;return this._size=e}_addToIndex(e,t,n,o){const a=e[t]||(e[t]={}),r=a[n]||(a[n]={}),i=o in r;return i||(r[o]=null),!i}_removeFromIndex(e,t,n,o){const a=e[t],r=a[n];delete r[o];for(const e in r)return;delete a[n];for(const e in a)return;delete e[t]}*_findInIndex(e,t,n,o,a,r,i,d){let s,l,u;const c=this._entities,m=this._termFromId(d,this._factory),h={subject:null,predicate:null,object:null};t&&((s=e,e={})[t]=s[t]);for(const t in e)if(l=e[t]){h[a]=this._termFromId(c[t],this._factory),n&&((s=l,l={})[n]=s[n]);for(const e in l)if(u=l[e]){h[r]=this._termFromId(c[e],this._factory);const t=o?o in u?[o]:[]:Object.keys(u);for(let e=0;e<t.length;e++)h[i]=this._termFromId(c[t[e]],this._factory),yield this._factory.quad(h.subject,h.predicate,h.object,m)}}}_loop(e,t){for(const n in e)t(n)}_loopByKey0(e,t,n){let o,a;if(o=e[t])for(a in o)n(a)}_loopByKey1(e,t,n){let o,a;for(o in e)a=e[o],a[t]&&n(o)}_loopBy2Keys(e,t,n,o){let a,r,i;if((a=e[t])&&(r=a[n]))for(i in r)o(i)}_countInIndex(e,t,n,o){let a,r,i,d=0;t&&((a=e,e={})[t]=a[t]);for(const t in e)if(r=e[t]){n&&((a=r,r={})[n]=a[n]);for(const e in r)(i=r[e])&&(o?o in i&&d++:d+=Object.keys(i).length)}return d}_getGraphs(e){if(!function(e){return"string"==typeof e||e instanceof String}(e))return this._graphs;const t={};return t[e]=this._graphs[e],t}_uniqueEntities(e){const t=Object.create(null);return n=>{n in t||(t[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,t,n,o){t||(o=e.graph,n=e.object,t=e.predicate,e=e.subject),o=b(o);let a=this._graphs[o];a||(a=this._graphs[o]={subjects:{},predicates:{},objects:{}},Object.freeze(a)),e=this._termToNewNumericId(e),t=this._termToNewNumericId(t),n=this._termToNewNumericId(n);const r=this._addToIndex(a.subjects,e,t,n);return this._addToIndex(a.predicates,t,n,e),this._addToIndex(a.objects,n,e,t),this._size=null,r}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}delete(e){return this.removeQuad(e),this}has(e,t,n,o){return e&&e.subject&&({subject:e,predicate:t,object:n,graph:o}=e),!this.readQuads(e,t,n,o).next().done}import(e){return e.on("data",(e=>{this.addQuad(e)})),e}removeQuad(e,t,n,o){t||(o=e.graph,n=e.object,t=e.predicate,e=e.subject),o=b(o);const a=this._graphs;let r,i,d;if(!((e=e&&this._termToNumericId(e))&&(t=t&&this._termToNumericId(t))&&(n=n&&this._termToNumericId(n))&&(r=a[o])&&(i=r.subjects[e])&&(d=i[t])&&n in d))return!1;for(e in this._removeFromIndex(r.subjects,e,t,n),this._removeFromIndex(r.predicates,t,n,e),this._removeFromIndex(r.objects,n,e,t),null!==this._size&&this._size--,r.subjects)return!0;return delete a[o],!0}removeQuads(e){for(let t=0;t<e.length;t++)this.removeQuad(e[t])}remove(e){return e.on("data",(e=>{this.removeQuad(e)})),e}removeMatches(e,t,n,o){const a=new $e.Readable({objectMode:!0});return a._read=()=>{for(const r of this.readQuads(e,t,n,o))a.push(r);a.push(null)},this.remove(a)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,t,n,o){return[...this.readQuads(e,t,n,o)]}*readQuads(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d,s;if(!(e&&!(i=this._termToNumericId(e))||t&&!(d=this._termToNumericId(t))||n&&!(s=this._termToNumericId(n))))for(const e in a)(r=a[e])&&(i?s?yield*this._findInIndex(r.objects,s,i,d,"object","subject","predicate",e):yield*this._findInIndex(r.subjects,i,d,null,"subject","predicate","object",e):d?yield*this._findInIndex(r.predicates,d,s,null,"predicate","object","subject",e):s?yield*this._findInIndex(r.objects,s,null,null,"object","subject","predicate",e):yield*this._findInIndex(r.subjects,null,null,null,"subject","predicate","object",e))}match(e,t,n,o){return new we(this,e,t,n,o)}countQuads(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d,s,l=0;if(e&&!(i=this._termToNumericId(e))||t&&!(d=this._termToNumericId(t))||n&&!(s=this._termToNumericId(n)))return 0;for(const o in a)(r=a[o])&&(l+=e?n?this._countInIndex(r.objects,s,i,d):this._countInIndex(r.subjects,i,d,s):t?this._countInIndex(r.predicates,d,s,i):this._countInIndex(r.objects,s,i,d));return l}forEach(e,t,n,o,a){this.some((t=>(e(t),!1)),t,n,o,a)}every(e,t,n,o,a){let r=!1;const i=!this.some((t=>(r=!0,!e(t))),t,n,o,a);return r&&i}some(e,t,n,o,a){for(const r of this.readQuads(t,n,o,a))if(e(r))return!0;return!1}getSubjects(e,t,n){const o=[];return this.forSubjects((e=>{o.push(e)}),e,t,n),o}forSubjects(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d;if(e=this._uniqueEntities(e),!(t&&!(i=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(o in a)(r=a[o])&&(i?d?this._loopBy2Keys(r.predicates,i,d,e):this._loopByKey1(r.subjects,i,e):d?this._loopByKey0(r.objects,d,e):this._loop(r.subjects,e))}getPredicates(e,t,n){const o=[];return this.forPredicates((e=>{o.push(e)}),e,t,n),o}forPredicates(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d;if(e=this._uniqueEntities(e),!(t&&!(i=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(o in a)(r=a[o])&&(i?d?this._loopBy2Keys(r.objects,d,i,e):this._loopByKey0(r.subjects,i,e):d?this._loopByKey1(r.predicates,d,e):this._loop(r.predicates,e))}getObjects(e,t,n){const o=[];return this.forObjects((e=>{o.push(e)}),e,t,n),o}forObjects(e,t,n,o){o=o&&b(o);const a=this._getGraphs(o);let r,i,d;if(e=this._uniqueEntities(e),!(t&&!(i=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(o in a)(r=a[o])&&(i?d?this._loopBy2Keys(r.subjects,i,d,e):this._loopByKey1(r.objects,i,e):d?this._loopByKey0(r.predicates,d,e):this._loop(r.objects,e))}getGraphs(e,t,n){const o=[];return this.forGraphs((e=>{o.push(e)}),e,t,n),o}forGraphs(e,t,n,o){for(const a in this._graphs)this.some((t=>(e(t.graph),!0)),t,n,o,a)}createBlankNode(e){let t,n;if(e)for(t=e=`_:${e}`,n=1;this._ids[t];)t=e+n++;else do{t="_:b"+this._blankNodeIndex++}while(this._ids[t]);return this._ids[t]=++this._id,this._entities[this._id]=t,this._factory.blankNode(t.substr(2))}extractLists({remove:e=!1,ignoreErrors:t=!1}={}){const n={},o=t?()=>!0:(e,t)=>{throw new Error(`${e.value} ${t}`)},a=this.getQuads(null,d.rdf.rest,d.rdf.nil,null),r=e?[...a]:[];return a.forEach((t=>{const a=[];let i,s,l=!1;const u=t.graph;let c=t.subject;for(;c&&!l;){const e=this.getQuads(null,null,c,null),t=this.getQuads(c,null,null,null);let n,m=null,h=null,p=null;for(let a=0;a<t.length&&!l;a++)n=t[a],n.graph.equals(u)?i?l=o(c,"has non-list arcs out"):n.predicate.value===d.rdf.first?m?l=o(c,"has multiple rdf:first arcs"):r.push(m=n):n.predicate.value===d.rdf.rest?h?l=o(c,"has multiple rdf:rest arcs"):r.push(h=n):e.length?l=o(c,"can't be subject and object"):(i=n,s="subject"):l=o(c,"not confined to single graph");for(let t=0;t<e.length&&!l;++t)n=e[t],i?l=o(c,"can't have coreferences"):n.predicate.value===d.rdf.rest?p?l=o(c,"has incoming rdf:rest arcs"):p=n:(i=n,s="object");m?a.unshift(m.object):l=o(c,"has no list head"),c=p&&p.subject}l?e=!1:i&&(n[i[s].value]=a)})),e&&this.removeQuads(r),n}*[Symbol.iterator](){yield*this.readQuads()}}class we extends $e.Readable{constructor(e,t,n,o,a){super({objectMode:!0}),Object.assign(this,{n3Store:e,subject:t,predicate:n,object:o,graph:a})}get filtered(){if(!this._filtered){const{n3Store:e,graph:t,object:n,predicate:o,subject:a}=this,r=this._filtered=new xe({factory:e._factory});for(const i of e.readQuads(a,o,n,t))r.addQuad(i)}return this._filtered}get size(){return this.filtered.size}_read(){for(const e of this)this.push(e);this.push(null)}add(e){return this.filtered.add(e)}delete(e){return this.filtered.delete(e)}has(e){return this.filtered.has(e)}match(e,t,n,o){return new we(this.filtered,e,t,n,o)}*[Symbol.iterator](){yield*this._filtered||this.n3Store.readQuads(this.subject,this.predicate,this.object,this.graph)}}var _e=n(8287),Ce=n(9596),Se=n.n(Ce);const{xsd:qe}=d,Ee=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Ie={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Ae=/[\x00-\x20<>\\"\{\}\|\^\`]/,Te={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Re=/$0^/;class Le{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const e in this)!(e in Te)&&this[e]instanceof RegExp&&(this[e]=Re)}else this._n3Mode=!1!==e.n3;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,t){let n=this._input,o=n.length;for(;;){let e,i;for(;e=this._newline.exec(n);)this._comments&&(i=this._comment.exec(e[0]))&&a("comment",i[1],"",this._line,e[0].length),n=n.substr(e[0].length,n.length),o=n.length,this._line++;if(!e&&(e=this._whitespace.exec(n))&&(n=n.substr(e[0].length,n.length)),this._endOfFile.test(n))return t&&(this._comments&&(i=this._comment.exec(n))&&a("comment",i[1],"",this._line,n.length),n=null,a("eof","","",this._line,0)),this._input=n;const d=this._line,s=n[0];let l="",u="",c="",m=null,h=0,p=!1;switch(s){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(h=1,l="^");break}if(this._previousMarker="^^",n=n.substr(2),"<"!==n[0]){p=!0;break}case"<":if(m=this._unescapedIri.exec(n))l="IRI",u=m[1];else if(m=this._iri.exec(n)){if(u=this._unescape(m[1]),null===u||Ae.test(u))return r(this);l="IRI"}else n.length>1&&"<"===n[1]?(l="<<",h=2):this._n3Mode&&n.length>1&&"="===n[1]&&(l="inverse",h=2,u=">");break;case">":n.length>1&&">"===n[1]&&(l=">>",h=2);break;case"_":((m=this._blank.exec(n))||t&&(m=this._blank.exec(`${n} `)))&&(l="blank",c="_",u=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))u=m[1];else if(({value:u,matchLength:h}=this._parseLiteral(n)),null===u)return r(this);null===m&&0===h||(l="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))u=m[1];else if(({value:u,matchLength:h}=this._parseLiteral(n)),null===u)return r(this);null===m&&0===h||(l="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(l="var",u=m[0]);break;case"@":"literal"===this._previousMarker&&(m=this._langcode.exec(n))?(l="langcode",u=m[1]):(m=this._keyword.exec(n))&&(l=m[0]);break;case".":if(1===n.length?t:n[1]<"0"||n[1]>"9"){l=".",h=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(m=this._number.exec(n)||t&&(m=this._number.exec(`${n} `)))&&(l="literal",u=m[0],c="string"==typeof m[1]?qe.double:"string"==typeof m[2]?qe.decimal:qe.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?l=m[0].toUpperCase():p=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(l="literal",u=m[0],c=qe.boolean):p=!0;break;case"a":(m=this._shortPredicates.exec(n))?(l="abbreviation",u="a"):p=!0;break;case"=":this._n3Mode&&n.length>1&&(l="abbreviation",">"!==n[1]?(h=1,u="="):(h=2,u=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(h=1,l=s);break;case"{":!this._lineMode&&n.length>=2&&("|"===n[1]?(l="{|",h=2):(l=s,h=1));break;case"|":n.length>=2&&"}"===n[1]&&(l="|}",h=2);break;default:p=!0}if(p&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(m=this._prefix.exec(n))?((m=this._prefixed.exec(n))||t&&(m=this._prefixed.exec(`${n} `)))&&(l="prefixed",c=m[1]||"",u=this._unescape(m[2])):(l="prefix",u=m[1]||"")),"^^"===this._previousMarker)switch(l){case"prefixed":l="type";break;case"IRI":l="typeIRI";break;default:l=""}if(!l)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?r(this):this._input=n;const f=h||m[0].length,N=a(l,u,c,d,f);this.previousToken=N,this._previousMarker=l,n=n.substr(f,n.length)}function a(t,a,r,i,d){const s=n?o-n.length:o,l={type:t,value:a,prefix:r,line:i,start:s,end:s+d};return e(null,l),l}function r(t){e(t._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let t=!1;const n=e.replace(Ee,((e,n,o,a)=>{if("string"==typeof n)return String.fromCharCode(Number.parseInt(n,16));if("string"==typeof o){let e=Number.parseInt(o,16);return e<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e))}return a in Ie?Ie[a]:(t=!0,"")}));return t?null:n}_parseLiteral(e){if(e.length>=3){const t=e.match(/^(?:"""|"|'''|'|)/)[0],n=t.length;let o=Math.max(this._literalClosingPos,n);for(;(o=e.indexOf(t,o))>0;){let t=0;for(;"\\"===e[o-t-1];)t++;if(t%2==0){const t=e.substring(n,o),a=t.split(/\r\n|\r|\n/).length-1,r=o+n;if(1===n&&0!==a||3===n&&this._lineMode)break;return this._line+=a,{value:this._unescape(t),matchLength:r}}o++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const t=new Error(`Unexpected "${e}" on line ${this._line}.`);return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t}_readStartingBom(e){return e.startsWith("\ufeff")?e.substr(1):e}tokenize(e,t){if(this._line=1,"string"==typeof e){if(this._input=this._readStartingBom(e),"function"!=typeof t){const e=[];let t;if(this._tokenizeToEnd(((n,o)=>n?t=n:e.push(o)),!0),t)throw t;return e}Se()((()=>this._tokenizeToEnd(t,!0)))}else this._pendingBuffer=null,"function"==typeof e.setEncoding&&e.setEncoding("utf8"),e.on("data",(e=>{null!==this._input&&0!==e.length&&(this._pendingBuffer&&(e=_e.Buffer.concat([this._pendingBuffer,e]),this._pendingBuffer=null),128&e[e.length-1]?this._pendingBuffer=e:(void 0===this._input?this._input=this._readStartingBom("string"==typeof e?e:e.toString()):this._input+=e,this._tokenizeToEnd(t,!1)))})),e.on("end",(()=>{"string"==typeof this._input&&this._tokenizeToEnd(t,!0)})),e.on("error",t)}}let ke=0;class Pe{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&Oe(this,e.factory);const t="string"==typeof e.format?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(t),o=/trig/.test(t),a=/triple/.test(t),r=/quad/.test(t),i=this._n3Mode=/n3/.test(t),d=a||r;(this._supportsNamedGraphs=!(n||i))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||o||a||i),this._supportsRDFStar=""===t||/star|\*$/.test(t),d&&(this._resolveRelativeIRI=e=>null),this._blankNodePrefix="string"!=typeof e.blankNodePrefix?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new Le({lineMode:d,n3:i}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){ke=0}_setBase(e){if(e){const t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}else this._base="",this._basePath=""}_saveContext(e,t,n,o,a){const r=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:o,object:a,graph:t,inverse:!!r&&this._inversePredicate,blankPrefix:r?this._prefixes._:"",quantified:r?this._quantified:null}),r&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,t){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${t.type}`,t);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return null!==this._graph?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}_readEntity(e,t){let n;switch(e.type){case"IRI":case"typeIRI":const t=this._resolveIRI(e.value);if(null===t)return this._error("Invalid IRI",e);n=this._namedNode(t);break;case"type":case"prefixed":const o=this._prefixes[e.prefix];if(void 0===o)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(o+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!t&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(0===e.prefix.length)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if(void 0===(this._subject=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const t=e.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return null===this._predicate?this._error(`Unexpected ${t}`,e):(this._subject=null,"]"===t?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if(void 0===(this._predicate=this._readEntity(e)))return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(0===e.prefix.length)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if(void 0===(this._object=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return"{"===e.type?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return"{"!==e.type?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return"]"===e.type?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if("]"!==e.type)return this._readBlankNodePunctuation(e);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);const t=null===this._predicate;return this._restoreContext("blank",e),null!==this._object?this._getContextEndReader():null!==this._predicate?this._readObject:t?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let t=null,n=null,o=this._readListItem;const a=this._subject,r=this._contextStack,i=r[r.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=t=this._blankNode()),o=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),0!==r.length&&"list"===r[r.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(o=this._readPredicate,this._subject===this.RDF_NIL)return o}else if(o=this._getContextEndReader(),this._object===this.RDF_NIL)return o;n=this.RDF_NIL;break;case"literal":0===e.prefix.length?(this._literalValue=e.value,o=this._readListItemDataTypeOrLang):(t=this._literal(e.value,this._namedNode(e.prefix)),o=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if(void 0===(t=this._readEntity(e)))return}if(null===n&&(this._subject=n=this._blankNode()),null===a?null===i.predicate?i.subject=n:i.object=n:this._emit(a,this.RDF_REST,n,this._graph),null!==t){if(this._n3Mode&&("IRI"===e.type||"prefixed"===e.type))return this._saveContext("item",this._graph,n,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,t,this._graph)}return o}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let t=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(void 0===n)return;t=this._literal(this._literalValue,n),e=null;break;case"langcode":t=this._literal(this._literalValue,e.value),e=null}return{token:e,literal:t}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,t){const n=this._completeLiteral(e);if(n)return this._object=n.literal,t&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===n.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return"}"!==e.type?this._readPunctuation(e):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),null===this._object?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let t,n=this._graph;const o=this._subject,a=this._inversePredicate;switch(e.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,t=this._contextStack.length?this._readSubject:this._readInTopContext,a&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const r=this._predicate,i=this._object;this._subject=this._quad(o,r,i,this.DEFAULTGRAPH),t=this._readPredicate;break;case"|}":if("Quad"!==this._subject.termType)return this._error("Unexpected asserted triple closing",e);this._subject=null,t=this._readPunctuation;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(n=this._readEntity(e))){t=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(null!==o){const e=this._predicate,t=this._object;a?this._emit(t,e,o,n):this._emit(o,e,t,n)}return t}_readBlankNodePunctuation(e){let t;switch(e.type){case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),t}_readQuadPunctuation(e){return"."!==e.type?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return"prefix"!==e.type?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if("IRI"!==e.type)return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const t=this._readEntity(e);return this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}_readBaseIRI(e){const t="IRI"===e.type&&this._resolveIRI(e.value);return t?(this._setBase(t),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return"]"!==e.type?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):"."!==e.type?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let t;switch(e.type){case"IRI":case"prefixed":if(void 0!==(t=this._readEntity(e,!0)))break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(null===this._subject?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):this._quantified[t.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return","===e.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const t=this._contextStack,n=t.length&&t[t.length-1];if(n&&"item"===n.type){const t=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,t,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let t,n;const o=this._blankNode();if(void 0!==(n=this._readEntity(e)))return null===this._predicate?(t=this._subject,this._subject=o):(t=this._object,this._object=o),this._emit(t,n,o,this._graph),this._readPath}_readBackwardPath(e){const t=this._blankNode();let n,o;if(void 0!==(n=this._readEntity(e)))return null===this._predicate?(o=this._subject,this._subject=t):(o=this._object,this._object=t),this._emit(t,n,o,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return">>"!==e.type?this._supportsQuads&&null===this._graph&&void 0!==(this._graph=this._readEntity(e))?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(">>"!==e.type)return this._error(`Expected >> but got ${e.type}`,e);const t=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),null===this._subject?(this._subject=t,this._readPredicate):(this._object=t,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,t,n,o){this._callback(null,this._quad(e,t,n,o||this.DEFAULTGRAPH))}_error(e,t){const n=new Error(`${e} on line ${t.line}.`);n.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=je}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return("/"===e[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const t=e.length;let n="",o=-1,a=-1,r=0,i="/";for(;o<t;){switch(i){case":":if(a<0&&"/"===e[++o]&&"/"===e[++o])for(;(a=o+1)<t&&"/"!==e[a];)o=a;break;case"?":case"#":o=t;break;case"/":if("."===e[o+1])switch(i=e[1+ ++o],i){case"/":n+=e.substring(r,o-1),r=o+1;break;case void 0:case"?":case"#":return n+e.substring(r,o)+e.substr(o+1);case".":if(i=e[1+ ++o],void 0===i||"/"===i||"?"===i||"#"===i){if(n+=e.substring(r,o-2),(r=n.lastIndexOf("/"))>=a&&(n=n.substr(0,r)),"/"!==i)return`${n}/${e.substr(o+1)}`;r=o+1}}}i=e[++o]}return n+e.substring(r)}parse(e,t,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${ke++}_`,this._prefixCallback=n||je,this._inversePredicate=!1,this._quantified=Object.create(null),!t){const t=[];let n;if(this._callback=(e,o)=>{e?n=e:o&&t.push(o)},this._lexer.tokenize(e).every((e=>this._readCallback=this._readCallback(e))),n)throw n;return t}this._callback=t,this._lexer.tokenize(e,((e,t)=>{null!==e?(this._callback(e),this._callback=je):this._readCallback&&(this._readCallback=this._readCallback(t))}))}}function je(){}function Oe(e,t){const n=t.namedNode;e._namedNode=n,e._blankNode=t.blankNode,e._literal=t.literal,e._variable=t.variable,e._quad=t.quad,e.DEFAULTGRAPH=t.defaultGraph(),e.RDF_FIRST=n(d.rdf.first),e.RDF_REST=n(d.rdf.rest),e.RDF_NIL=n(d.rdf.nil),e.N3_FORALL=n(d.r.forAll),e.N3_FORSOME=n(d.r.forSome),e.ABBREVIATIONS={a:n(d.rdf.type),"=":n(d.owl.sameAs),">":n(d.log.implies)},e.QUANTIFIERS_GRAPH=n("urn:n3:quantifiers")}Oe(Pe.prototype,h);var De=n(4841),Me=function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,d)}s((o=o.apply(e,t||[])).next())}))};const Be={},Fe={};class Ve{constructor(e){this.loadedOwlImports=[],this.loadedClasses=[],this.config=e}loadGraphs(){return Me(this,void 0,void 0,(function*(){this.loadedOwlImports=[],this.loadedClasses=[];const e=new xe,t=new xe;this.config.prefixes={},yield Promise.all([this.importRDF(this.config.attributes.shapes?this.config.attributes.shapes:this.config.attributes.shapesUrl?this.fetchRDF(this.config.attributes.shapesUrl):"",e,I),this.importRDF(this.config.attributes.values?this.config.attributes.values:this.config.attributes.valuesUrl?this.fetchRDF(this.config.attributes.valuesUrl):"",t,void 0,new Pe({blankNodePrefix:""}))]),this.config.shapesGraph=e,this.config.dataGraph=t}))}importRDF(e,t,n,o){return Me(this,void 0,void 0,(function*(){const a=o||new Pe,r=e=>Me(this,void 0,void 0,(function*(){const r=[];yield new Promise(((i,d)=>{a.parse(e,((e,a,s)=>{if(e)return d(e);if(a){if(t.add(new $(a.subject,a.predicate,a.object,n)),null===this.config.attributes.ignoreOwlImports&&A.equals(a.predicate)){const e=this.toURL(a.object.value);e&&this.loadedOwlImports.indexOf(e)<0&&(this.loadedOwlImports.push(e),r.push(this.importRDF(this.fetchRDF(e),t,n,o)))}if(this.config.classInstanceProvider&&j.equals(a.predicate)){const e=a.object.value;if(this.loadedClasses.indexOf(e)<0){let a;e in Fe?a=Fe[e]:(a=this.config.classInstanceProvider(e),Fe[e]=a),this.loadedClasses.push(e),r.push(this.importRDF(a,t,n,o))}}}else s&&this.config.registerPrefixes(s),i(null)}))}));try{yield Promise.all(r)}catch(e){console.warn(e)}}));if(e instanceof Promise&&(e=yield e),e){try{e=yield(0,De.toRDF)(JSON.parse(e),{format:"application/n-quads"})}catch(e){}yield r(e)}}))}fetchRDF(e){return Me(this,void 0,void 0,(function*(){if(e in Be)return Be[e];const t=fetch(e,{headers:{Accept:"text/turtle, application/trig, application/n-triples, application/n-quads, text/n3, application/ld+json"}}).then((e=>e.text()));return Be[e]=t,t}))}toURL(e){if(U(e))return e;if(this.config.prefixes){const t=e.split(":");if(2===t.length){const n=this.config.prefixes[t[0]];if(n&&U(e=e.replace(`${t[0]}:`,n)))return e}}return null}}class Ue{constructor(){this.shapes=null,this.shapesUrl=null,this.shapeSubject=null,this.values=null,this.valuesUrl=null,this.valueSubject=null,this.valuesSubject=null,this.valuesNamespace="",this.view=null,this.language=navigator.language,this.loading="Loading…",this.ignoreOwlImports=null,this.collapse=null,this.submitButton=null}}class ze{constructor(e,t){this.attributes=new Ue,this.loader=new Ve(this),this.prefixes={},this.editMode=!0,this.dataGraph=new xe,this.lists={},this.groups=[],this._shapesGraph=new xe,this.theme=e,this.form=t}updateAttributes(e){const t=new Ue;Object.keys(t).forEach((n=>{const o=e.dataset[n];void 0!==o&&(t[n]=o)})),this.editMode=null===t.view,this.attributes=t,this.attributes.valueSubject&&!this.attributes.valuesSubject&&(this.attributes.valuesSubject=this.attributes.valueSubject)}static dataAttributes(){const e=new Ue;return Object.keys(e).map((e=>(e=e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),"data-"+e)))}get shapesGraph(){return this._shapesGraph}set shapesGraph(e){this._shapesGraph=e,this.lists=e.extractLists(),this.groups=[],e.getQuads(null,T,`${w}PropertyGroup`,I).forEach((e=>{this.groups.push(e.subject.value)}))}registerPrefixes(e){for(const t in e)t&&(this.prefixes[t]=e[t])}}const Qe=e=>{const t=e.namespace("http://www.w3.org/2001/XMLSchema#"),n=e.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:n.first,nil:n.nil,rest:n.rest,langString:n.langString,xsd:t}};function Ge(e,t){return null==e?t:Array.isArray(e)?e:"string"!=typeof e&&e[Symbol.iterator]?[...e]:[e]}class He{constructor(e,{bind:t=!1}={}){this._factories=e.slice();for(const e of this._factories){"function"==typeof e.prototype.init&&e.prototype.init.call(this);for(const n of e.exports||[])this[n]=t?e.prototype[n].bind(this):e.prototype[n]}}clone(){const e=new He(this._factories);for(const t of e._factories)"function"==typeof t.prototype.clone&&t.prototype.clone.call(e,this);return e}}const Je=He;class We{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}We.prototype.termType="BlankNode";const Ke=We;class Xe{equals(e){return!!e&&e.termType===this.termType}}Xe.prototype.termType="DefaultGraph",Xe.prototype.value="";const Ye=Xe,Ze=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const n=e.fromTerm(t.subject),o=e.fromTerm(t.predicate),a=e.fromTerm(t.object),r=e.fromTerm(t.graph);return e.quad(n,o,a,r)}if("Variable"===t.termType)return e.variable(t.value);throw new Error(`unknown termType ${t.termType}`)};class et{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}et.prototype.termType="Literal";const tt=et;class nt{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}nt.prototype.termType="NamedNode";const ot=nt;class at{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}at.prototype.termType="Quad",at.prototype.value="";const rt=at;class it{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}it.prototype.termType="Variable";const dt=it,st=new ot("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),lt=new ot("http://www.w3.org/2001/XMLSchema#string");class ut{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new Ye}}namedNode(e){return new ot(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new Ke(e)}literal(e,t){return"string"==typeof t?new tt(e,t,st):new tt(e,"",t||lt)}variable(e){return new dt(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new rt(e,t,n,o)}fromTerm(e){return Ze(this,e)}fromQuad(e){return Ze(this,e)}}ut.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const ct=ut,mt=new ct,ht={apply:(e,t,n)=>e(n[0]),get:(e,t)=>e(t)},pt=function(e,{factory:t=mt}={}){const n=(n="")=>t.namedNode(`${e}${n.raw||n}`);return"undefined"==typeof Proxy?n:new Proxy(n,ht)};class ft{namespace(e){return pt(e,{factory:this})}}ft.exports=["namespace"];const Nt=ft,gt=new Je([Nt,ct]),{xsd:vt}=Qe(gt);function yt(e,t){if("string"!=typeof e)throw new Error("Named node must be an IRI string");return t.namedNode(e)}function bt(e,t="Literal",n,o){if(e&&"object"==typeof e&&e.termType)return e;if(e&&"URL"===e.constructor.name)return yt(e.toString(),o);if("BlankNode"===t)return function(e,t){if(e&&"string"!=typeof e)throw new Error("Blank node identifier must be a string");return t.blankNode(e)}(e,o);if(null!=e){if("Literal"===t)return function(e,t,n){if("string"==typeof e)return(t=t&&(t.value||t.toString()))&&-1!==t.indexOf(":")&&(t=n.namedNode(t)),n.literal(e.toString(),t);const o=function(e,t=gt){return function(e,t=gt){return"boolean"!=typeof e?null:t.literal(e.toString(),vt("boolean"))}(e,t)||function(e,t=gt){return"number"!=typeof e?null:Number.isInteger(e)?t.literal(e.toString(10),vt("integer")):t.literal(e.toString(10),vt("double"))}(e,t)||function(e,t=gt){return"string"!=typeof e?null:t.literal(e)}(e,t)}(e,n);if(!o)throw new Error("The value cannot be converted to a literal node");return o}(e,n,o);if("NamedNode"===t)return yt(e,o);throw new Error("unknown type")}}const $t=Qe(gt);function xt(e,t){const n="Literal"!==t.termType,o=$t.langString.equals(t.datatype)||$t.xsd.string.equals(t.datatype);if(n||!o)return e;const a=t.language.toLowerCase();return e.has(a)?e.get(a).push(t):e.set(a,[t]),e}class wt{constructor({dataset:e,graph:t,value:n,factory:o,namespace:a}){this.dataset=e,this.graph=t,this.factory=o,this.namespace=a,this.term=bt(n,void 0,void 0,o)}clone({dataset:e=this.dataset,graph:t=this.graph,value:n,factory:o=this.factory,namespace:a=this.namespace}){return new wt({dataset:e,graph:t,value:n,factory:o,namespace:a})}has(e,t){return this.matchProperty(Ge(this.term),e,t,Ge(this.graph),"subject").map((e=>this.clone({value:e})))}in(e){return this.matchProperty(null,e,Ge(this.term),Ge(this.graph),"subject").map((e=>this.clone({value:e})))}out(e,{language:t}={}){let n=this.matchProperty(Ge(this.term),e,null,Ge(this.graph),"object");return void 0!==t&&(n=function(e,{language:t}){const n="string"==typeof t?[t]:t,o=function(e){const t=e.reduce(xt,new Map),n=[...t.entries()];return e=>{const o=e.toLowerCase();if("*"===o)return n[0]&&n[0][1];const a=t.get(o);if(a)return a;const r=n.find((([e])=>e.startsWith(o)));return r&&r[1]}}(e);return n.map(o).find(Boolean)||[]}(n,{language:t})),n.map((e=>this.clone({value:e})))}addIn(e,t){const n=[];return this.term&&t.forEach((t=>{e.forEach((e=>{this.dataset.add(this.factory.quad(t,e,this.term,this.graph))})),n.push(this.clone({value:t}))})),n}addOut(e,t){const n=[];return this.term&&t.forEach((t=>{e.forEach((e=>{this.dataset.add(this.factory.quad(this.term,e,t,this.graph))})),n.push(this.clone({value:t}))})),n}addList(e,t){this.term&&e.forEach((e=>{const n=t.map((()=>this.factory.blankNode()));this.dataset.add(this.factory.quad(this.term,e,n[0]||this.namespace.nil,this.graph));for(let e=0;e<n.length;e++)this.dataset.add(this.factory.quad(n[e],this.namespace.first,t[e],this.graph)),this.dataset.add(this.factory.quad(n[e],this.namespace.rest,n[e+1]||this.namespace.nil,this.graph))}))}deleteIn(e,t){this.deleteMatch(t,e,Ge(this.term),Ge(this.graph))}deleteOut(e,t){this.deleteMatch(Ge(this.term),e,t,Ge(this.graph))}deleteList(e){e.forEach((e=>{for(const t of this.dataset.match(this.term,e))this.deleteItems(t)}))}deleteItems(e){let t=[e];for(;!t[t.length-1].object.equals(this.namespace.nil);){const e=t[t.length-1].object;t=t.concat([...this.dataset.match(e)])}t.forEach((e=>{this.dataset.delete(e)}))}match(e,t,n,o){if(!(e||t||n||o))return[...this.dataset];e=e||[null],t=t||[null],n=n||[null],o=o||[null];const a=[];for(const r of o)for(const o of e)for(const e of t)for(const t of n)for(const n of this.dataset.match(o,e,t,r))a.push(n);return a}matchProperty(e,t,n,o,a){return this.match(e,t,n,o).map((e=>e[a]))}deleteMatch(e,t,n,o){this.match(e,t,n,o).forEach((e=>{this.dataset.delete(e)}))}}class _t{constructor({dataset:e,graph:t,term:n,value:o,factory:a,_context:r}){if(this.factory=a,this.namespace=Qe(a),r)return void(this._context=r);const i=n&&Ge(n)||o&&Ge(o)||[null];this._context=i.map((n=>new wt({dataset:e,graph:t,value:n,factory:this.factory,namespace:this.namespace})))}get term(){const e=this.terms;if(1===e.length)return e[0]}get terms(){return this._context.map((e=>e.term)).filter(Boolean)}get value(){const e=this.term;return e&&e.value}get values(){return this.terms.map((e=>e.value))}get dataset(){const e=this.datasets;if(1===e.length)return e[0]}get datasets(){return this._context.map((e=>e.dataset)).filter(Boolean)}any(){return _t.fromContext(this._context.map((e=>e.clone({}))),this)}isList(){return!(!this.term||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term)}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term){if("NamedNode"!==this.term.termType&&"BlankNode"!==this.term.termType)return null;if(!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term)return null}let e=this;return{[Symbol.iterator]:()=>({next:()=>{if(!e.term||e.term.equals(this.namespace.nil))return{done:!0};const t=e.out(this.namespace.first);if(t.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${e.value}`);const n=e.out(this.namespace.rest);if(n.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${e.value}`);return e=n,{done:!1,value:t}}})}}toArray(){return this._context.map((e=>_t.fromContext(e,this))).filter((e=>e.terms.some(Boolean)))}filter(e){const t=this._context.map((e=>_t.fromContext(e,this)));return _t.fromContext(this._context.filter(((n,o)=>e(_t.fromContext(n,this),o,t))),this)}forEach(e){return this.toArray().forEach(e),this}map(e){return this.toArray().map(e)}toString(){return this.values.join()}node(e,{type:t,datatype:n,language:o}={}){const a=(e=this._toTermArray(e,t,n||o)||[null]).reduce(((e,t)=>e.concat(this._context.reduce(((e,n)=>e.concat([n.clone({value:t})])),[]))),[]);return _t.fromContext(a,{factory:this.factory})}blankNode(e){return this.node(e,{type:"BlankNode"})}literal(e,t){return this.node(e,{type:"Literal",datatype:t})}namedNode(e){return this.node(e,{type:"NamedNode"})}in(e){e=this._toTermArray(e);const t=this._context.reduce(((t,n)=>t.concat(n.in(e))),[]);return _t.fromContext(t,this)}out(e,t={}){e=this._toTermArray(e);const n=this._context.reduce(((n,o)=>n.concat(o.out(e,t))),[]);return _t.fromContext(n,this)}has(e,t){e=this._toTermArray(e),t=this._toTermArray(t);const n=this._context.reduce(((n,o)=>n.concat(o.has(e,t))),[]);return _t.fromContext(n,this)}addIn(e,t,n){if(!e)throw new Error("predicate parameter is required");"function"==typeof t&&(n=t,t=null),e=this._toTermArray(e),t=this._toTermArray(t)||[this.factory.blankNode()];const o=this._context.map((n=>n.addIn(e,t)));return n&&_t.fromContext(o,this).forEach(n),this}addOut(e,t,n){if(!e)throw new Error("predicate parameter is required");"function"==typeof t&&(n=t,t=null),e=this._toTermArray(e),t=this._toTermArray(t)||[this.factory.blankNode()];const o=this._context.map((n=>n.addOut(e,t)));return n&&_t.fromContext(o,this).forEach(n),this}addList(e,t){if(!e||!t)throw new Error("predicate and items parameter is required");return e=this._toTermArray(e),t=this._toTermArray(t),this._context.forEach((n=>n.addList(e,t))),this}deleteIn(e,t){return e=this._toTermArray(e),t=this._toTermArray(t),this._context.forEach((n=>n.deleteIn(e,t))),this}deleteOut(e,t){return e=this._toTermArray(e),t=this._toTermArray(t),this._context.forEach((n=>n.deleteOut(e,t))),this}deleteList(e){if(!e)throw new Error("predicate parameter is required");return e=this._toTermArray(e),this._context.forEach((t=>t.deleteList(e))),this}_toTermArray(e,t,n){return function(e,t,n,o){return null!=e||t?(Ge(e)||[void 0]).reduce(((e,a)=>"object"==typeof a&&a.terms?e.concat(a.terms):(e.push(bt(a,t,n,o)),e)),[]):e}(e,t,n,this.factory)}static fromContext(e,{factory:t}){return new _t({_context:Ge(e),factory:t})}}function Ct({dataset:e,graph:t,term:n,value:o,factory:a=gt,_context:r}){return new _t({dataset:e,graph:t,term:n,value:o,factory:a,_context:r})}function St(e){return"string"==typeof e||e instanceof String}function qt(e){if("string"==typeof e)return e;if(!e)return"";if(void 0!==e.id&&"Quad"!==e.termType)return e.id;let t,n,o,a;switch(e.termType){case"NamedNode":return e.value;case"BlankNode":return`_:${e.value}`;case"Variable":return`?${e.value}`;case"DefaultGraph":return"";case"Literal":return e.language?`"${e.value}"@${e.language}`:`"${e.value}"${e.datatype&&"http://www.w3.org/2001/XMLSchema#string"!==e.datatype.value?`^^${e.datatype.value}`:""}`;case"Quad":return t=It(qt(e.subject)),n=It(qt(e.predicate)),o=It(qt(e.object)),a="DefaultGraph"===e.graph.termType?"":` ${qt(e.graph)}`,`<<${t} ${n} ${o}${a}>>`;default:throw new Error(`Unexpected termType: ${e.termType}`)}}const Et=/^"(.*".*)(?="[^"]*$)/;function It(e){return e.replace(Et,((e,t)=>`"${t.replace(/"/g,'""')}`))}class At{constructor(e){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,e)for(const t of e)this.add(t)}get size(){let e=this._size;if(null!==e)return e;e=0;const t=this._graphs;let n,o;for(const a in t)for(const r in n=t[a].subjects)for(const t in o=n[r])e+=Object.keys(o[t]).length;return this._size=e,this._size}add(e){let t=qt(e.subject),n=qt(e.predicate),o=qt(e.object);const a=qt(e.graph);let r=this._graphs[a];r||(r=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(r));const i=this._ids,d=this._entities;return t=i[t]||(i[d[++this._id]=t]=this._id),n=i[n]||(i[d[++this._id]=n]=this._id),o=i[o]||(i[d[++this._id]=o]=this._id),this._addToIndex(r.subjects,t,n,o),this._addToIndex(r.predicates,n,o,t),this._addToIndex(r.objects,o,t,n),this._setQuad(t,n,o,a,e),this._size=null,this}delete(e){let t=qt(e.subject),n=qt(e.predicate),o=qt(e.object);const a=qt(e.graph),r=this._ids,i=this._graphs;let d,s,l;if(!((t=r[t])&&(n=r[n])&&(o=r[o])&&(d=i[a])&&(s=d.subjects[t])&&(l=s[n])&&o in l))return this;for(t in this._removeFromIndex(d.subjects,t,n,o),this._removeFromIndex(d.predicates,n,o,t),this._removeFromIndex(d.objects,o,t,n),null!==this._size&&this._size--,this._deleteQuad(t,n,o,a),d.subjects)return this;return delete i[a],this}has(e){const t=qt(e.subject),n=qt(e.predicate),o=qt(e.object),a=qt(e.graph),r=this._graphs[a];if(!r)return!1;const i=this._ids;let d,s,l;return!(St(t)&&!(d=i[t])||St(n)&&!(s=i[n])||St(o)&&!(l=i[o]))&&1===this._countInIndex(r.objects,l,d,s)}match(e,t,n,o){return this._createDataset(this._match(e,t,n,o))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(e,t,n,o){const a=e[t]||(e[t]={}),r=a[n]||(a[n]={}),i=o in r;return i||(r[o]=null),!i}_removeFromIndex(e,t,n,o){const a=e[t],r=a[n];delete r[o];for(const e in r)return;delete a[n];for(const e in a)return;delete e[t]}_findInIndex(e,t,n,o,a,r,i,d,s,l){let u,c,m;t&&((u=e,e={})[t]=u[t]);for(const t in e)if(c=e[t],c){n&&((u=c,c={})[n]=u[n]);for(const e in c)if(m=c[e],m){const n=o?o in m?[o]:[]:Object.keys(m);for(let o=0;o<n.length;o++){const u={[a]:t,[r]:e,[i]:n[o]},c=this._getQuad(u.subject,u.predicate,u.object,d);if(l)l.push(c);else if(s(c))return!0}}}return l}_countInIndex(e,t,n,o){let a,r,i,d=0;t&&((a=e,e={})[t]=a[t]);for(const t in e)if(r=e[t],r){n&&((a=r,r={})[n]=a[n]);for(const e in r)i=r[e],i&&(o?o in i&&d++:d+=Object.keys(i).length)}return d}_getGraphs(e){return St(e)?{[e]:this._graphs[e]}:this._graphs}_match(e,t,n,o){e=e&&qt(e),t=t&&qt(t),n=n&&qt(n),o=o&&qt(o);const a=[],r=this._getGraphs(o),i=this._ids;let d,s,l,u;if(St(e)&&!(s=i[e])||St(t)&&!(l=i[t])||St(n)&&!(u=i[n]))return a;for(const e in r)d=r[e],d&&(s?u?this._findInIndex(d.objects,u,s,l,"object","subject","predicate",e,null,a):this._findInIndex(d.subjects,s,l,null,"subject","predicate","object",e,null,a):l?this._findInIndex(d.predicates,l,u,null,"predicate","object","subject",e,null,a):u?this._findInIndex(d.objects,u,null,null,"object","subject","predicate",e,null,a):this._findInIndex(d.subjects,null,null,null,"subject","predicate","object",e,null,a));return a}_getQuad(e,t,n,o){return this._quads.get(this._toId(e,t,n,o))}_setQuad(e,t,n,o,a){this._quads.set(this._toId(e,t,n,o),a)}_deleteQuad(e,t,n,o){this._quads.delete(this._toId(e,t,n,o))}_createDataset(e){return new this.constructor(e)}_toId(e,t,n,o){return`${e}:${t}:${n}:${o}`}}const Tt=At;class Rt{dataset(e){return new Tt(e)}}Rt.exports=["dataset"];const Lt=new Je([ct,Rt,Nt]);function kt(e){return{sh:pt("http://www.w3.org/ns/shacl#",{factory:e}),xsd:pt("http://www.w3.org/2001/XMLSchema#",{factory:e}),rdf:pt("http://www.w3.org/1999/02/22-rdf-syntax-ns#",{factory:e}),rdfs:pt("http://www.w3.org/2000/01/rdf-schema#",{factory:e})}}const Pt=kt(),jt=function(e){return"<"+e.value+">"},Ot=/["\\\\\n\r]/,Dt=/["\\\\\n\r]/g,Mt={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Bt(e){return Mt[e]}const Ft=function e(t){if(!t)return null;if("BlankNode"===t.termType)return"_:"+t.value;if("DefaultGraph"===t.termType)return"";if("Literal"===t.termType)return function(e){const t=(n=e.value,Ot.test(n)?n.replace(Dt,Bt):n);var n;return"http://www.w3.org/2001/XMLSchema#string"===e.datatype.value?'"'+t+'"':"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"===e.datatype.value?'"'+t+'"@'+e.language:'"'+t+'"^^'+jt(e.datatype)}(t);if("NamedNode"===t.termType)return jt(t);if("Quad"===t.termType||t.subject&&t.predicate&&t.object&&t.graph)return function(e,t){const n=t(e.subject),o=t(e.predicate),a=t(e.object),r=t(e.graph);return`${n} ${o} ${a} ${r?r+" ":""}.`}(t,e);if("Variable"===t.termType)return"?"+t.value;if(t[Symbol.iterator])return function(e,t){return[...e].map((e=>t(e))).join("\n")+"\n"}(t,e);throw new Error(`unknown termType ${t.termType}`)};function Vt(e){try{return Ft(e)}catch(e){return null}}class Ut{constructor(e){if(this.index=new Map,e)for(const t of e)this.add(t)}get size(){return this.index.size}add(e){const t=Ft(e);return this.index.has(t)||this.index.set(t,e),this}clear(){this.index.clear()}delete(e){return!!e&&this.index.delete(Vt(e))}entries(){return this.values().entries()}forEach(e,t){return this.values().forEach(e,t)}has(e){return!!e&&this.index.has(Vt(e))}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}const zt=Ut,Qt=class extends zt{addAll(e){for(const t of e)this.add(t)}},Gt="undefined"!=typeof window?window:global,Ht=class{constructor(e,t,n){this.context=e,this.funcName=t,this.func=n}execute(e,t,n){return this.func.apply(Gt,[this.context,e,t,n])}};pt("http://www.w3.org/ns/auth/acl#"),pt("https://www.w3.org/ns/activitystreams#"),pt("http://purl.org/ontology/bibo/"),pt("http://creativecommons.org/ns#"),pt("http://www.w3.org/ns/auth/cert#"),pt("http://www.w3.org/2011/content#"),pt("http://qudt.org/vocab/constant/"),pt("http://www.cidoc-crm.org/cidoc-crm/");const Jt=pt("http://www.w3.org/ns/csvw#"),Wt=(pt("http://commontag.org/ns#"),pt("http://datashapes.org/sparql#"),pt("http://datashapes.org/dash#"),pt("http://dbpedia.org/ontology/"),pt("http://purl.org/dc/elements/1.1/"),pt("http://purl.org/dc/dcam/"),pt("http://www.w3.org/ns/dcat#"),pt("http://purl.org/dc/dcmitype/"),pt("http://purl.org/dc/terms/"),pt("http://www.ics.forth.gr/isl/CRMdig/"),pt("http://qudt.org/vocab/discipline/"),pt("http://usefulinc.com/ns/doap#"),pt("http://www.w3.org/ns/dpv#"),pt("http://www.w3.org/ns/dqv#"),pt("http://www.linkedmodel.org/schema/dtype#"),pt("http://www.w3.org/ns/duv#"),pt("http://www.w3.org/ns/earl#"),pt("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),pt("http://www.w3.org/2003/12/exif/ns#"),pt("http://xmlns.com/foaf/0.1/"),pt("http://purl.org/vocab/frbr/core#"),pt("http://www.opengis.net/ont/geosparql#"),pt("http://www.opengis.net/def/function/geosparql/"),pt("http://www.opengis.net/def/rule/geosparql/"),pt("http://www.opengis.net/ont/gml#"),pt("http://www.geonames.org/ontology#"),pt("http://purl.org/goodrelations/v1#"),pt("http://www.w3.org/2003/g/data-view#"),pt("https://gs1.org/voc/"),pt("http://vocab.gtfs.org/terms#"),pt("http://www.w3.org/2011/http#"),pt("http://www.w3.org/ns/hydra/core#"),pt("http://www.w3.org/2002/12/cal/icaltzd#"),pt("https://linked.art/ns/terms/"),pt("http://www.w3.org/ns/ldp#"),pt("http://www.w3.org/2000/10/swap/list#"),pt("http://www.w3.org/ns/locn#"),pt("http://www.w3.org/2000/10/swap/log#"),pt("http://lexvo.org/ontology#"),pt("http://w3id.org/nfdi4ing/metadata4ing#"),pt("http://www.w3.org/ns/ma-ont#"),pt("http://www.loc.gov/mads/rdf/v1#"),pt("http://www.w3.org/2000/10/swap/math#"),pt("http://www.w3.org/ns/oa#"),pt("http://ogp.me/ns#"),pt("http://www.w3.org/ns/solid/oidc#"),pt("http://www.w3.org/ns/org#"),pt("http://www.w3.org/2002/07/owl#"),pt("http://www.w3.org/ns/pim/space#"),pt("http://qudt.org/vocab/prefix/"),pt("http://www.w3.org/ns/prov#"),pt("http://purl.org/linked-data/cube#"),pt("http://qudt.org/vocab/dimensionvector/"),pt("http://qudt.org/vocab/quantitykind/"),pt("http://qudt.org/schema/qudt/"),pt("http://rdaregistry.info/Elements/u/"),pt("http://www.w3.org/1999/02/22-rdf-syntax-ns#")),Kt=(pt("http://www.w3.org/ns/rdfa#"),pt("http://www.w3.org/2000/01/rdf-schema#"),pt("http://purl.org/stuff/rev#"),pt("https://www.ica.org/standards/RiC/ontology#"),pt("http://www.w3.org/ns/r2rml#"),pt("http://purl.org/rss/1.0/"),pt("http://schema.org/"),pt("http://www.w3.org/ns/sparql-service-description#"),pt("http://purl.org/linked-data/sdmx#"),pt("http://semanticweb.cs.vu.nl/2009/11/sem/"),pt("http://www.w3.org/2000/10/swap/set#"),pt("http://www.opengis.net/ont/sf#"),pt("http://www.w3.org/ns/shacl#"),pt("http://www.w3.org/ns/shex#"),pt("https://www.w3.org/ns/shacl-shacl#"),pt("http://rdfs.org/sioc/ns#"),pt("http://www.w3.org/2004/02/skos/core#"),pt("http://www.w3.org/2008/05/skos-xl#"),pt("http://www.w3.org/ns/solid/terms#"),pt("http://www.w3.org/ns/sosa/"),pt("http://qudt.org/vocab/sou/"),pt("http://www.w3.org/ns/ssn/"),pt("http://www.w3.org/ns/posix/stat#"),pt("http://www.w3.org/2000/10/swap/string#"),pt("http://www.w3.org/2006/03/test-description#"),pt("http://www.w3.org/2006/time#"),pt("http://qudt.org/vocab/unit/"),pt("http://www.linkedmodel.org/schema/vaem#"),pt("http://purl.org/vocab/vann/"),pt("http://www.w3.org/2006/vcard/ns#"),pt("http://rdfs.org/ns/void#"),pt("http://www.w3.org/2003/06/sw-vocab-status/ns#"),pt("http://www.w3.org/2007/05/powder-s#"),pt("http://www.w3.org/2003/01/geo/wgs84_pos#"),pt("http://www.w3.org/1999/xhtml/vocab#"),pt("http://rdf-vocabulary.ddialliance.org/xkos#"),pt("http://www.w3.org/2001/XMLSchema#"));pt("http://www.w3.org/2007/rif#"),pt("http://rdf.data-vocabulary.org/#"),pt("http://www.w3.org/2007/05/powder#"),pt("http://www.w3.org/XML/1998/namespace/");class Xt{constructor(e){if(this.index=new Map,e)for(const[t,n]of e)this.set(t,n)}get size(){return this.index.size}clear(){this.index.clear()}delete(e){return this.index.delete(Ft(e))}*entries(){for(const[,{term:e,value:t}]of this.index)yield[e,t]}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}get(e){const t=this.index.get(Ft(e));return t&&t.value}has(e){return this.index.has(Ft(e))}*keys(){for(const[,{term:e}]of this.index)yield e}set(e,t){const n=Ft(e);return this.index.set(n,{term:e,value:t}),this}*values(){for(const[,{value:e}]of this.index)yield e}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}const Yt=Xt,Zt=new class{validators;constructor(){this.validators=new Yt}register(e,t){this.validators.set(e,t)}find(e){return e?this.validators.get(e):null}};function en(e){return!["\n","\r","\t"].some((t=>e.includes(t)))}Zt.register(Kt.anySimpleType,(()=>!0)),Zt.register(Kt.anyAtomicType,(()=>!0)),Zt.register(Kt.string,(()=>!0)),Zt.register(Kt.normalizedString,(e=>en(e))),Zt.register(Kt.token,(e=>en(e)&&!e.startsWith(" ")&&!e.endsWith(" ")&&!e.includes(" ")));const tn=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/;Zt.register(Kt.language,(e=>tn.test(e)));const nn=/^[^\ufffe\uffff]*$/;Zt.register(Kt.anyURI,(e=>nn.test(e)));const on="(\\+|-)?",an=new RegExp(`^${on}\\d+$`);Zt.register(Kt.integer,(e=>an.test(e))),Zt.register(Kt.nonNegativeInteger,(e=>an.test(e)&&BigInt(e)>=BigInt("0"))),Zt.register(Kt.positiveInteger,(e=>an.test(e)&&BigInt(e)>BigInt("0"))),Zt.register(Kt.nonPositiveInteger,(e=>an.test(e)&&BigInt(e)<=BigInt("0"))),Zt.register(Kt.negativeInteger,(e=>an.test(e)&&BigInt(e)<BigInt("0"))),Zt.register(Kt.int,(e=>an.test(e)&&BigInt(e)>=BigInt("-2147483647")&&BigInt(e)<=BigInt("2147483648"))),Zt.register(Kt.unsignedInt,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("4294967295"))),Zt.register(Kt.long,(e=>an.test(e)&&BigInt(e)>=BigInt("-9223372036854775808")&&BigInt(e)<=BigInt("9223372036854775807"))),Zt.register(Kt.unsignedLong,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("18446744073709551615"))),Zt.register(Kt.short,(e=>an.test(e)&&BigInt(e)>=BigInt("-32768")&&BigInt(e)<=BigInt("32767"))),Zt.register(Kt.unsignedShort,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("65535"))),Zt.register(Kt.byte,(e=>an.test(e)&&BigInt(e)>=BigInt("-128")&&BigInt(e)<=BigInt("127"))),Zt.register(Kt.unsignedByte,(e=>an.test(e)&&BigInt(e)>=BigInt("0")&&BigInt(e)<=BigInt("255"))),Zt.register(Kt.boolean,(e=>"1"===e||"true"===e||"0"===e||"false"===e));const rn=`${on}(\\d+\\.?\\d*|\\.\\d+)`,dn=new RegExp(`^${on}${rn}$`);Zt.register(Kt.decimal,(e=>dn.test(e))),Zt.register(Kt.float,ln),Zt.register(Kt.double,ln);const sn=new RegExp(`^${on}${rn}((E|e)(\\+|-)?\\d+)?$`);function ln(e){return"INF"===e||"-INF"===e||"NaN"===e||sn.test(e)}const un="-?",cn="\\d+M",mn="\\d+M",hn="\\d+(\\.\\d+)?S",pn=`(\\d+Y(${cn})?|${cn})`,fn=`T((\\d+H(${mn})?(${hn})?)|(${mn}(${hn})?)|${hn})`,Nn=`(\\d+D(${fn})?|${fn})`,gn=new RegExp(`^${un}P((${pn}(${Nn})?)|${Nn})$`);Zt.register(Kt.duration,(e=>gn.test(e)));const vn=new RegExp(`^${un}P${Nn}$`);Zt.register(Kt.dayTimeDuration,(e=>vn.test(e)));const yn=new RegExp(`^${un}P${pn}$`);Zt.register(Kt.yearMonthDuration,(e=>yn.test(e)));const bn=`${un}(([1-9]\\d{3,})|(0\\d{3}))`,$n="(((\\+|-)\\d{2}:\\d{2})|Z)",xn="\\d{2}",wn="\\d{2}",_n=`${bn}-${xn}-${wn}`,Cn="\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?",Sn=new RegExp(`^${_n}T${Cn}${$n}?$`);Zt.register(Kt.dateTime,(e=>Sn.test(e)));const qn=new RegExp(`^${_n}T${Cn}${$n}$`);Zt.register(Kt.dateTimeStamp,(e=>qn.test(e)));const En=new RegExp(`^${_n}${$n}?$`);Zt.register(Kt.date,(e=>En.test(e)));const In=new RegExp(`^${wn}${$n}?$`);Zt.register(Kt.gDay,(e=>In.test(e)));const An=new RegExp(`^--${xn}${$n}?$`);Zt.register(Kt.gMonth,(e=>An.test(e)));const Tn=new RegExp(`^${xn}-${wn}${$n}?$`);Zt.register(Kt.gMonthDay,(e=>Tn.test(e)));const Rn=new RegExp(`^${bn}${$n}?$`);Zt.register(Kt.gYear,(e=>Rn.test(e)));const Ln=new RegExp(`^${bn}-${xn}${$n}?$`);Zt.register(Kt.gYearMonth,(e=>Ln.test(e)));const kn=new RegExp(`^${Cn}${$n}?$`);Zt.register(Kt.time,(e=>kn.test(e)));const Pn=/^([0-9a-fA-F]{2})*$/;Zt.register(Kt.hexBinary,(e=>Pn.test(e)));const jn="[A-Za-z0-9+/]",On=`(${jn} ?)`,Dn=new RegExp(`^((${On}{4})*((${On}{3}${jn})|(${On}{2}([AEIMQUYcgkosw048] ?)=)|(${On}([AQgw] ?)= ?=)))?$`);Zt.register(Kt.base64Binary,(e=>Dn.test(e))),Zt.register(Jt.JSON,(e=>{try{return JSON.parse(e),!0}catch(e){return!1}})),Zt.register(Kt.NOTATION,(()=>!0)),Zt.register(Kt.QName,(()=>!0)),Zt.register(Kt.Name,(()=>!0)),Zt.register(Kt.NCName,(()=>!0)),Zt.register(Kt.ENTITY,(()=>!0)),Zt.register(Kt.ID,(()=>!0)),Zt.register(Kt.IDREF,(()=>!0)),Zt.register(Kt.NMTOKEN,(()=>!0)),Zt.register(Kt.ENTITIES,(()=>!0)),Zt.register(Kt.IDREFS,(()=>!0)),Zt.register(Kt.NMTOKENS,(()=>!0)),Zt.register(Wt.XMLLiteral,(()=>!0)),Zt.register(Wt.HTML,(()=>!0));var Mn=n(9349);function Bn(e,t,n){if("NamedNode"===e.term.termType&&!n)return e.term;if("BlankNode"===e.term.termType||"NamedNode"===e.term.termType){if(e.out(t.rdf.first).term)return[...e.list()].map((e=>Bn(e,t,n)));const o=e.out(t.sh.alternativePath);if(o.term)return{or:[...o.list()].map((e=>Bn(e,t,n)))};const a=e.out(t.sh.zeroOrMorePath);if(a.term)return{zeroOrMore:Bn(a,t,n)};const r=e.out(t.sh.oneOrMorePath);if(r.term)return{oneOrMore:Bn(r,t,n)};const i=e.out(t.sh.zeroOrOnePath);if(i.term)return{zeroOrOne:Bn(i,t,n)};const d=e.out(t.sh.inversePath);return d.term?{inverse:Bn(d,t,n)}:e.term}throw new Error(`Unsupported SHACL path: ${e.term.value}`)}function Fn(e,t,n){return[...Vn(e,t,n)]}function Vn(e,t,n){if("NamedNode"===n.termType)return function(e,t,n){return new Qt(e.node(t).out(n).terms)}(e,t,n);if(Array.isArray(n))return function(e,t,n){let o=new Qt([t]);for(const t of n)o=new Qt(zn(o,(n=>Fn(e,n,t))));return o}(e,t,n);if(n.or)return function(e,t,n){return new Qt(zn(n.or,(n=>Fn(e,t,n))))}(e,t,n);if(n.inverse)return function(e,t,n){if("NamedNode"!==n.inverse.termType)throw new Error("Unsupported: Inverse paths only work for named nodes");return new Qt(e.node(t).in(n.inverse).terms)}(e,t,n);if(n.zeroOrOne)return function(e,t,n){const o=Vn(e,t,n.zeroOrOne);return o.add(t),o}(e,t,n);if(n.zeroOrMore)return function(e,t,n){const o=Un(e,t,n.zeroOrMore);return o.add(t),o}(e,t,n);if(n.oneOrMore)return function(e,t,n){return Un(e,t,n.oneOrMore)}(e,t,n);throw new Error(`Unsupported path object: ${n}`)}function Un(e,t,n,o){(o=o||new Qt).add(t);const a=Vn(e,t,n),r=zn(a,(t=>o.has(t)?[]:[...Un(e,t,n,o)]));return a.addAll(r),a}function zn(e,t){return[...e].reduce(((e,n)=>e.concat(t(n))),[])}function*Qn(e,t,n=new zt){if("BlankNode"===t.termType&&!n.has(t)){n.add(t);for(const o of e.match(t,null,null))yield o,yield*Qn(e,o.object,n)}}function*Gn(e,t,n,o=new zt){if("BlankNode"!==n.termType||o.has(n))return;const{factory:a}=e.context,{sh:r,rdfs:i}=e.context.ns,d=t=>{const n=e.constraints.find((e=>e.paramValue.equals(t)));return n?.nodeSet.size};o.add(n);for(const s of t.match(n,null,null))if(s.predicate.equals(r.in)&&d(s.object)>3){const e=`sh:in has ${d(s.object)} elements and has been removed from the report for brevity. Please refer the original shape`;yield a.quad(s.subject,i.comment,a.literal(e))}else yield s,yield*Gn(e,t,s.object,o)}function Hn(e,t){const n=Jn(e,t);return n.add(e.term),[...n].reduce(((n,o)=>{const a=e.node(o).in(t.rdf.type).terms;return n.addAll(a),n}),new Qt)}function Jn(e,t){const n=e.in(t.rdfs.subClassOf),o=n.toArray().reduce(((e,n)=>{const o=Jn(n,t);return e.addAll(o),e}),new Qt);return new Qt([...n.terms,...o])}function Wn(e,t,n){const o=Jn(t,n);return o.add(t.term),e.out(n.rdf.type).terms.some((e=>o.has(e)))}function Kn(e){return[...e.list()].map((({term:e})=>e))}function Xn(e,t,n){const{sh:o,xsd:a}=e.ns,r=n.shape.shapeNode,i=n.getParameterValue(o.qualifiedValueShapesDisjoint),d=n.getParameterValue(o.qualifiedValueShape),s=e.factory.literal("true",a.boolean),l=new Qt;if(s.equals(i)){const t=e.$shapes.node(r).in(o.property).out(o.property).out(o.qualifiedValueShape).filter((({term:e})=>!e.equals(d))).terms;l.addAll(t)}const u=n.shape.pathObject;return Fn(e.$data,t,u).filter((t=>e.nodeConformsToShape(t,d)&&!function(e,t,n){for(let o=0;o<n.length;o++)if(e.nodeConformsToShape(t,n[o]))return!0;return!1}(e,t,[...l]))).length}function Yn(e,t,n){if(!e||!t||"Literal"!==e.termType||"Literal"!==t.termType)return null;if(Zn(e,n)!==Zn(t,n))return null;const o=(0,Mn.fromRdf)(e),a=(0,Mn.fromRdf)(t);return typeof o!=typeof a?null:"string"==typeof o?o.localeCompare(a):o-a}function Zn(e,t){return t.xsd.dateTime.equals(e.datatype)&&/^.*(((\+|-)\d{2}:\d{2})|Z)$/.test(e.value)}const eo={validateAnd:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.and);return Kn(e.$shapes.node(r)).every((t=>e.nodeConformsToShape(n,t)))},validateClass:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.class);return Wn(e.$data.node(n),e.$data.node(r),e.ns)},validateClosed:function(e,t,n,o){const{sh:a,xsd:r}=e.ns,i=o.getParameterValue(a.closed),d=o.getParameterValue(a.ignoredProperties),s=o.shape.shapeNode;if(!e.factory.literal("true",r.boolean).equals(i))return;const l=new Qt(e.$shapes.node(s).out(a.property).out(a.path).terms.filter((e=>"NamedNode"===e.termType)));d&&l.addAll(Kn(e.$shapes.node(d)));const u=[];return[...e.$data.dataset.match(n,null,null)].filter((({predicate:e})=>!l.has(e))).forEach((({predicate:e,object:t})=>{u.push({path:e,value:t})})),u},validateDatatype:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.datatype);return"Literal"===n.termType&&r.equals(n.datatype)&&function(e){if("Literal"!==e.termType)throw new Error("Cannot validate non-literal terms");const t=Zt.find(e.datatype);return!t||t(e.value)}(n)},validateDisjoint:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.disjoint);return 0===e.$data.dataset.match(t,r,n).size},validateEqualsNode:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.equals),i=[];let d=0;return Fn(e.$data,t,r).forEach((e=>{d++,e.equals(t)||i.push({value:e})})),0===i.length&&0===d&&i.push({value:t}),i},validateEqualsProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=o.getParameterValue(a.equals),d=[];return Fn(e.$data,t,r).forEach((n=>{0===e.$data.dataset.match(t,i,n).size&&d.push({value:n})})),[...e.$data.dataset.match(t,i,null)].forEach((({object:n})=>{const o=n;Fn(e.$data,t,r).some((e=>e.equals(o)))||d.push({value:o})})),d},validateHasValueNode:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.hasValue);return t.equals(r)},validateHasValueProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=o.getParameterValue(a.hasValue);return Fn(e.$data,t,r).some((e=>e.equals(i)))},validateIn:function(e,t,n,o){return o.nodeSet.has(n)},validateLanguageIn:function(e,t,n,o){const{sh:a}=e.ns;if("Literal"!==n.termType)return!1;const r=n.language;if(!r||""===r)return!1;const i=o.getParameterValue(a.languageIn);return Kn(e.$shapes.node(i)).some((e=>r.startsWith(e.value)))},validateLessThanProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r),d=o.getParameterValue(a.lessThan),s=e.$data.node(t).out(d).terms,l=[];for(const t of i)for(const n of s){const o=Yn(t,n,e.ns);(null===o||o>=0)&&l.push({value:t})}return l},validateLessThanOrEqualsProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r),d=o.getParameterValue(a.lessThanOrEquals),s=e.$data.node(t).out(d).terms,l=[];for(const t of i)for(const n of s){const o=Yn(t,n,e.ns);(null===o||o>0)&&l.push({value:t})}return l},validateMaxCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r).length,d=o.getParameterValue(a.maxCount);return i<=Number(d.value)},validateMaxExclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.maxExclusive),e.ns);return null!==r&&r<0},validateMaxInclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.maxInclusive),e.ns);return null!==r&&r<=0},validateMaxLength:function(e,t,n,o){if("BlankNode"===n.termType)return!1;const{sh:a}=e.ns,r=o.getParameterValue(a.maxLength);return n.value.length<=Number(r.value)},validateMinCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=o.shape.pathObject,i=Fn(e.$data,t,r).length,d=o.getParameterValue(a.minCount);return i>=Number(d.value)},validateMinExclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.minExclusive),e.ns);return null!==r&&r>0},validateMinInclusive:function(e,t,n,o){const{sh:a}=e.ns,r=Yn(n,o.getParameterValue(a.minInclusive),e.ns);return null!==r&&r>=0},validateMinLength:function(e,t,n,o){if("BlankNode"===n.termType)return!1;const{sh:a}=e.ns,r=o.getParameterValue(a.minLength);return n.value.length>=Number(r.value)},validateNode:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.node);return e.validateNodeAgainstShape(n,r)},validateNodeKind:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.nodeKind);return"BlankNode"===n.termType?a.BlankNode.equals(r)||a.BlankNodeOrIRI.equals(r)||a.BlankNodeOrLiteral.equals(r):"NamedNode"===n.termType?a.IRI.equals(r)||a.BlankNodeOrIRI.equals(r)||a.IRIOrLiteral.equals(r):"Literal"===n.termType?a.Literal.equals(r)||a.BlankNodeOrLiteral.equals(r)||a.IRIOrLiteral.equals(r):void 0},validateNot:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.not);return!e.nodeConformsToShape(n,r)},validateOr:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.or);return Kn(e.$shapes.node(r)).some((t=>e.nodeConformsToShape(n,t)))},validatePattern:function(e,t,n,o){if("BlankNode"===n.termType)return!1;const{sh:a}=e.ns,r=o.getParameterValue(a.flags),i=o.getParameterValue(a.pattern);return(r?new RegExp(i.value,r.value):new RegExp(i.value)).test(n.value)},validateQualifiedMaxCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=Xn(e,t,o),i=o.getParameterValue(a.qualifiedMaxCount);return"Literal"===i.termType&&r<=Number(i.value)},validateQualifiedMinCountProperty:function(e,t,n,o){const{sh:a}=e.ns,r=Xn(e,t,o),i=o.getParameterValue(a.qualifiedMinCount);return"Literal"===i.termType&&r>=Number(i.value)},validateUniqueLangProperty:function(e,t,n,o){const{sh:a,xsd:r}=e.ns,i=o.getParameterValue(a.uniqueLang);if(!e.factory.literal("true",r.boolean).equals(i))return;const d=o.shape.pathObject,s={};Fn(e.$data,t,d).forEach((e=>{const t=e.language;if(t&&""!==t){const e=s[t];s[t]=e?e+1:1}}));const l=[];for(const e in s)if(Object.prototype.hasOwnProperty.call(s,e)){const t=s[e];t>1&&l.push('Language "'+e+'" has been used by '+t+" values")}return l},validateXone:function(e,t,n,o){const{sh:a}=e.ns,r=o.getParameterValue(a.xone);return 1===Kn(e.$shapes.node(r)).map((t=>e.nodeConformsToShape(n,t))).filter(Boolean).length}},to={[Pt.sh.AndConstraintComponent.value]:{validator:{func:eo.validateAnd}},[Pt.sh.ClassConstraintComponent.value]:{validator:{func:eo.validateClass}},[Pt.sh.ClosedConstraintComponent.value]:{validator:{func:eo.validateClosed,message:"Predicate is not allowed (closed shape)"}},[Pt.sh.DatatypeConstraintComponent.value]:{validator:{func:eo.validateDatatype,message:"Value does not have datatype {$datatype}"}},[Pt.sh.DisjointConstraintComponent.value]:{validator:{func:eo.validateDisjoint,message:"Value node must not also be one of the values of {$disjoint}"}},[Pt.sh.EqualsConstraintComponent.value]:{nodeValidator:{func:eo.validateEqualsNode,message:"Must have same values as {$equals}"},propertyValidator:{func:eo.validateEqualsProperty,message:"Must have same values as {$equals}"}},[Pt.sh.HasValueConstraintComponent.value]:{nodeValidator:{func:eo.validateHasValueNode,message:"Value must be {$hasValue}"},propertyValidator:{func:eo.validateHasValueProperty,message:"Missing expected value {$hasValue}"}},[Pt.sh.InConstraintComponent.value]:{validator:{func:eo.validateIn,message:"Value is not one of the allowed values: {$in}"}},[Pt.sh.LanguageInConstraintComponent.value]:{validator:{func:eo.validateLanguageIn,message:"Language does not match any of {$languageIn}"}},[Pt.sh.LessThanConstraintComponent.value]:{propertyValidator:{func:eo.validateLessThanProperty,message:"Value is not less than value of {$lessThan}"}},[Pt.sh.LessThanOrEqualsConstraintComponent.value]:{propertyValidator:{func:eo.validateLessThanOrEqualsProperty,message:"Value is not less than or equal to value of {$lessThanOrEquals}"}},[Pt.sh.MaxCountConstraintComponent.value]:{propertyValidator:{func:eo.validateMaxCountProperty,message:"More than {$maxCount} values"}},[Pt.sh.MaxExclusiveConstraintComponent.value]:{validator:{func:eo.validateMaxExclusive,message:"Value is not less than {$maxExclusive}"}},[Pt.sh.MaxInclusiveConstraintComponent.value]:{validator:{func:eo.validateMaxInclusive,message:"Value is not less than or equal to {$maxInclusive}"}},[Pt.sh.MaxLengthConstraintComponent.value]:{validator:{func:eo.validateMaxLength,message:"Value has more than {$maxLength} characters"}},[Pt.sh.MinCountConstraintComponent.value]:{propertyValidator:{func:eo.validateMinCountProperty,message:"Less than {$minCount} values"}},[Pt.sh.MinExclusiveConstraintComponent.value]:{validator:{func:eo.validateMinExclusive,message:"Value is not greater than {$minExclusive}"}},[Pt.sh.MinInclusiveConstraintComponent.value]:{validator:{func:eo.validateMinInclusive,message:"Value is not greater than or equal to {$minInclusive}"}},[Pt.sh.MinLengthConstraintComponent.value]:{validator:{func:eo.validateMinLength,message:"Value has less than {$minLength} characters"}},[Pt.sh.NodeConstraintComponent.value]:{validator:{func:eo.validateNode,message:"Value does not have shape {$node}"}},[Pt.sh.NodeKindConstraintComponent.value]:{validator:{func:eo.validateNodeKind,message:"Value does not have node kind {$nodeKind}"}},[Pt.sh.NotConstraintComponent.value]:{validator:{func:eo.validateNot,message:"Value does have shape {$not}"}},[Pt.sh.OrConstraintComponent.value]:{validator:{func:eo.validateOr}},[Pt.sh.PatternConstraintComponent.value]:{validator:{func:eo.validatePattern,message:'Value does not match pattern "{$pattern}"'}},[Pt.sh.QualifiedMaxCountConstraintComponent.value]:{propertyValidator:{func:eo.validateQualifiedMaxCountProperty,message:"More than {$qualifiedMaxCount} values have shape {$qualifiedValueShape}"}},[Pt.sh.QualifiedMinCountConstraintComponent.value]:{propertyValidator:{func:eo.validateQualifiedMinCountProperty,message:"Less than {$qualifiedMinCount} values have shape {$qualifiedValueShape}"}},[Pt.sh.UniqueLangConstraintComponent.value]:{propertyValidator:{func:eo.validateUniqueLangProperty,message:'Language "{?lang}" used more than once'}},[Pt.sh.XoneConstraintComponent.value]:{validator:{func:eo.validateXone}}};class no{constructor(e,t,n,o){this.shape=e,this.component=t,this.paramValue=n,this.shapeNodePointer=o.node(e.shapeNode)}getParameterValue(e){return this.paramValue||this.shapeNodePointer.out(e).term}get validationFunction(){return this.shape.isPropertyShape?this.component.propertyValidationFunction:this.component.nodeValidationFunction}get isValidationFunctionGeneric(){return this.shape.isPropertyShape?this.component.propertyValidationFunctionGeneric:this.component.nodeValidationFunctionGeneric}get componentMessages(){return this.component.getMessages(this.shape)}get nodeSet(){const{sh:e}=this.shape.context.ns;return this.inNodeSet||(this.inNodeSet=new Qt(Kn(this.shapeNodePointer.out(e.in)))),this.inNodeSet}}class oo{constructor(e,t){const{$shapes:n,factory:o,ns:a}=t,{sh:r,xsd:i}=a;this.context=t,this.node=e,this.nodePointer=n.node(e),this.parameters=[],this.parameterNodes=[],this.requiredParameters=[],this.optionals={};const d=o.literal("true",i.boolean);this.nodePointer.out(r.parameter).forEach((e=>{const t=e.term;e.out(r.path).forEach((({term:e})=>{this.parameters.push(e),this.parameterNodes.push(t),n.dataset.match(t,r.optional,d).size>0?this.optionals[e.value]=!0:this.requiredParameters.push(e)}))})),this.nodeValidationFunction=this.findValidationFunction(r.nodeValidator),this.nodeValidationFunction||(this.nodeValidationFunction=this.findValidationFunction(r.validator),this.nodeValidationFunctionGeneric=!0),this.propertyValidationFunction=this.findValidationFunction(r.propertyValidator),this.propertyValidationFunction||(this.propertyValidationFunction=this.findValidationFunction(r.validator),this.propertyValidationFunctionGeneric=!0)}findValidationFunction(e){const t=e.value.split("#").slice(-1)[0],n=this.findValidator(t);return n?new Ht(this.context,n.func.name,n.func):null}getMessages(e){const t=(e.isPropertyShape?this.propertyValidationFunctionGeneric:this.nodeValidationFunctionGeneric)?"validator":e.isPropertyShape?"propertyValidator":"nodeValidator",n=this.findValidator(t);if(!n)return[];const o=n.message;return o?[o]:[]}findValidator(e){const t=to[this.node.value];return t&&t[e]||null}isComplete(e){return!this.parameters.some((t=>this.isRequired(t.value)&&0===this.context.$shapes.dataset.match(e,t,null).size))}isRequired(e){return!this.optionals[e]}}class ao{constructor(e,t){const{$shapes:n,ns:o,shapesGraph:a}=e,{sh:r}=o;this.context=e,this.shapeNode=t,this.shapeNodePointer=n.node(t),this.severity=this.shapeNodePointer.out(r.severity).term||r.Violation,this.deactivated="true"===this.shapeNodePointer.out(r.deactivated).value,this.path=this.shapeNodePointer.out(r.path).term,this.isPropertyShape=null!=this.path,this._pathObject=void 0,this.constraints=[];const i=new Qt;[...n.dataset.match(t,null,null)].forEach((e=>{const o=a.getComponentWithParameter(e.predicate);o&&!i.has(o.node)&&(1===o.parameters.length?this.constraints.push(new no(this,o,e.object,n)):o.isComplete(t)&&(this.constraints.push(new no(this,o,void 0,n)),i.add(o.node)))}))}get pathObject(){const{$shapes:e,ns:t,allowNamedNodeInList:n}=this.context;return void 0===this._pathObject&&(this._pathObject=this.path?Bn(e.node(this.path),t,n):null),this._pathObject}getTargetNodes(e){const{$shapes:t,ns:n}=this.context,{rdfs:o,sh:a}=n,r=new Qt;Wn(t.node(this.shapeNode),t.node(o.Class),n)&&r.addAll(Hn(e.node(this.shapeNode),n)),[...t.dataset.match(this.shapeNode,a.targetClass,null)].forEach((({object:t})=>{r.addAll(Hn(e.node(t),n))}));const i=this.shapeNodePointer.out(a.targetNode).terms.filter((t=>e.dataset.match(t).size>0||e.dataset.match(null,t).size>0||e.dataset.match(null,null,t).size>0));return r.addAll(i),this.shapeNodePointer.out(a.targetSubjectsOf).terms.forEach((t=>{const n=[...e.dataset.match(null,t,null)].map((({subject:e})=>e));r.addAll(n)})),this.shapeNodePointer.out(a.targetObjectsOf).terms.forEach((t=>{const n=[...e.dataset.match(null,t,null)].map((({object:e})=>e));r.addAll(n)})),[...r]}getValueNodes(e,t){return this.path?Fn(t,e,this.pathObject):[e]}}const ro=class{constructor(e){this.context=e;const{sh:t}=e.ns,n=Hn(e.$shapes.node(t.ConstraintComponent),e.ns);this._components=[...n].map((t=>new oo(t,e))),this._parametersMap=new Map;for(const e of this._components)for(const t of e.parameters)this._parametersMap.set(t.value,e);this._shapes=new Map}getComponentWithParameter(e){return this._parametersMap.get(e.value)}getShape(e){if(!this._shapes.has(e.value)){const t=new ao(this.context,e);this._shapes.set(e.value,t)}return this._shapes.get(e.value)}get shapeNodesWithConstraints(){if(!this._shapeNodesWithConstraints){const e=new Qt;for(const t of this._components){const n=t.requiredParameters;for(const t of n){const n=[...this.context.$shapes.dataset.match(null,t,null)].map((({subject:e})=>e));e.addAll(n)}}this._shapeNodesWithConstraints=[...e]}return this._shapeNodesWithConstraints}get shapesWithTarget(){const{$shapes:e,ns:t}=this.context,{rdfs:n,sh:o}=t;return this._shapesWithTarget||(this._shapesWithTarget=this.shapeNodesWithConstraints.filter((a=>Wn(e.node(a),e.node(n.Class),t)||e.node(a).out([o.targetClass,o.targetNode,o.targetSubjectsOf,o.targetObjectsOf,o.target]).terms.length>0)).map((e=>this.getShape(e)))),this._shapesWithTarget}};var io=n(7833);class so{constructor(e,t){this.pointer=e,this.term=e.term,this.dataset=e.dataset,this.ns=t}get message(){return this.pointer.out(this.ns.sh.resultMessage).terms||[]}get path(){return this.pointer.out(this.ns.sh.resultPath).term||null}get focusNode(){return this.pointer.out(this.ns.sh.focusNode).term||null}get severity(){return this.pointer.out(this.ns.sh.resultSeverity).term||null}get sourceConstraintComponent(){return this.pointer.out(this.ns.sh.sourceConstraintComponent).term||null}get sourceShape(){return this.pointer.out(this.ns.sh.sourceShape).term||null}get value(){return this.pointer.out(this.ns.sh.value).term||null}get detail(){return this.pointer.out(this.ns.sh.detail).map((e=>new so(e,this.ns)))}}const lo=class{constructor(e,t){t=t||{},this.factory=t.factory||Lt,this.ns=t.ns||kt(this.factory);const{sh:n,xsd:o}=this.ns;this.pointer=e,this.term=e.term,this.dataset=e.dataset;const a=e.out(n.result),r=0===a.terms.length;e.addOut(n.conforms,this.factory.literal(r.toString(),o.boolean)),this.conforms=r,this.results=a.toArray().map((e=>new so(e,this.ns)))}},uo=io("validation-enging::error");class co{constructor(e,t){this.context=e,this.factory=e.factory,this.maxErrors=t.maxErrors,this.initReport(),this.recordErrorsLevel=0,this.violationsCount=0,this.validationError=null,this.nestedResults={}}clone(){return new co(this.context,{maxErrors:this.maxErrors})}initReport(){const{rdf:e,sh:t}=this.context.ns;this.reportPointer=Ct({dataset:this.factory.dataset(),factory:this.factory,term:this.factory.blankNode("report")}).addOut(e.type,t.ValidationReport)}validateAll(e){if(this.maxErrorsReached())return!0;this.validationError=null;try{this.initReport();let t=!1;const n=this.context.shapesGraph.shapesWithTarget;for(const o of n){const n=o.getTargetNodes(e);for(const a of n)this.validateNodeAgainstShape(a,o,e)&&(t=!0)}return t}catch(e){return this.validationError=e,!0}}validateNodeAgainstShape(e,t,n){if(this.maxErrorsReached())return!0;if(t.deactivated)return!1;const o=t.getValueNodes(e,n);let a=!1;for(const r of t.constraints)this.validateNodeAgainstConstraint(e,o,r,n)&&(a=!0);return a}validateNodeAgainstConstraint(e,t,n,o){const{sh:a}=this.context.ns;if(this.maxErrorsReached())return!0;if(a.PropertyConstraintComponent.equals(n.component.node)){let e=!1;for(const a of t)this.validateNodeAgainstShape(a,this.context.shapesGraph.getShape(n.paramValue),o)&&(e=!0);return e}if(!n.validationFunction)throw new Error("Cannot find validator for constraint component "+n.component.node.value);if(n.isValidationFunctionGeneric){let o=!1;for(const a of t){if(this.maxErrorsReached())break;const t=this.validateValueNodeAgainstConstraint(e,a,n);t&&this.violationsCount++,o=o||t}return o}return this.validateValueNodeAgainstConstraint(e,null,n)}validateValueNodeAgainstConstraint(e,t,n){const{sh:o}=this.context.ns;this.recordErrorsLevel++;const a=n.validationFunction.execute(e,t,n),r=(Array.isArray(a)?a:[a]).map((o=>this.createResultFromObject(o,n,e,t))).filter(Boolean);if(1===this.recordErrorsLevel)for(const e of r)mo(e,this.reportPointer,o.result);else this.nestedResults[this.recordErrorsLevel]=(this.nestedResults[this.recordErrorsLevel]||[]).concat(r);return this.recordErrorsLevel--,r.length>0}maxErrorsReached(){return!!this.maxErrors&&this.violationsCount>=this.maxErrors}getReport(){if(this.validationError)throw uo("Validation Failure: "+this.validationError),this.validationError;return new lo(this.reportPointer,{factory:this.factory,ns:this.context.ns})}createResultFromObject(e,t,n,o){const{sh:a}=this.context.ns,r=this.normalizeValidationResult(e,o);if(!r)return null;const i=this.createResult(t,n);r.path?(i.addOut(a.resultPath,r.path),this.copyNestedStructure(r.path,i)):t.shape.isPropertyShape&&(i.addOut(a.resultPath,t.shape.path),this.copyNestedStructure(t.shape.path,i)),r.value?(i.addOut(a.value,r.value),this.copyNestedStructure(r.value,i)):o&&(i.addOut(a.value,o),this.copyNestedStructure(o,i));const d=this.createResultMessages(r,t);for(const e of d)i.addOut(a.resultMessage,e);return i}normalizeValidationResult(e,t){return!1===e?{value:t}:"string"==typeof e?{message:e,value:t}:"object"==typeof e?e:null}createResult(e,t){const{rdf:n,sh:o}=this.context.ns,a=e.shape.severity,r=e.component.node,i=e.shape.shapeNode,d=this.factory.blankNode(),s=Ct({dataset:this.factory.dataset(),term:d});s.addOut(n.type,o.ValidationResult).addOut(o.resultSeverity,a).addOut(o.sourceConstraintComponent,r).addOut(o.sourceShape,i).addOut(o.focusNode,t),this.copySourceShapeStructure(e.shape,s),this.copyNestedStructure(t,s);const l=this.nestedResults[this.recordErrorsLevel+1];if(l){if(r.equals(o.NodeConstraintComponent))for(const e of l)mo(e,s,o.detail);this.nestedResults[this.recordErrorsLevel+1]=[]}return s}copyNestedStructure(e,t){const n=Qn(this.context.$shapes.dataset,e);for(const e of n)t.dataset.add(e)}copySourceShapeStructure(e,t){const n=Gn(e,this.context.$shapes.dataset,e.shapeNode);for(const e of n)t.dataset.add(e)}createResultMessages(e,t){const{$shapes:n,ns:o}=this.context,{sh:a}=o;let r=[];return e.message&&(r=[this.factory.literal(e.message)]),0===r.length&&(r=n.node(t.shape.shapeNode).out(a.message).terms),0===r.length&&(r=t.componentMessages.map((e=>this.factory.literal(e)))),0===r.length&&(r=n.node(t.component.node).out(a.message).terms),r.map((e=>function(e,t,n){const o=t.component.parameters.reduce(((e,n)=>{const o=function(e){let t=e.lastIndexOf("#");if(t<0&&(t=e.lastIndexOf("/")),t<0)throw new Error(`Cannot get local name of ${e}`);return e.substring(t+1)}(n.value),a=function(e,t){const n=e.getParameterValue(t);if(!n)return"NULL";if("NamedNode"===n.termType)return"<"+n.value+">";if("BlankNode"===n.termType){if(e.nodeSet){const t=3;if(e.nodeSet.size>t){const n=Array.from(function*(e,t){let n=0;for(const o of t){if(n++===e)break;yield o}}(t,e.nodeSet)).map((e=>e.value));return n.join(", ")+` ... (and ${e.nodeSet.size-t} more)`}return Array.from(e.nodeSet).map((e=>e.value)).join(", ")}return"Blank node "+n.value}return n.value}(t,n);return e.replace(`{$${o}}`,a).replace(`{?${o}}`,a)}),e.value);return n.literal(o,e.language||e.datatype)}(e,t,this.factory)))}}function mo(e,t,n){for(const n of e.dataset)t.dataset.add(n);t.addOut(n,e)}const ho=co,po=class{constructor(e,t){t=t||{},this.factory=t.factory||Lt,this.ns=kt(this.factory),this.allowNamedNodeInList=void 0!==t.allowNamedNodeInList&&t.allowNamedNodeInList,this.loadShapes(e),this.validationEngine=new ho(this,t),this.depth=0}validate(e){return this.$data=Ct({dataset:e,factory:this.factory}),this.validationEngine.validateAll(this.$data),this.validationEngine.getReport()}validateNode(e,t,n){return this.$data=Ct({dataset:e,factory:this.factory}),this.nodeConformsToShape(t,n,this.validationEngine),this.validationEngine.getReport()}loadShapes(e){const t=(({factory:e})=>{const t=e,n="http://www.w3.org/ns/shacl#",o="http://www.w3.org/1999/02/22-rdf-syntax-ns#",a="http://www.w3.org/2002/07/owl#",r="http://www.w3.org/2000/01/rdf-schema#",i="http://www.w3.org/ns/shacl-shacl#",d="http://www.w3.org/2001/XMLSchema#",s="http://datashapes.org/dash#",l=[];for(let e=0;e<76;e++)l.push(t.blankNode());return[t.quad(t.namedNode(n),t.namedNode(`${o}type`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${r}comment`),t.literal("This vocabulary defines terms used in SHACL, the W3C Shapes Constraint Language.","en"),t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${r}label`),t.literal("W3C Shapes Constraint Language (SHACL) Vocabulary","en"),t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${n}declare`),l[0],t.namedNode(n)),t.quad(t.namedNode(n),t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(i),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}comment`),t.literal("The base class of validation results, typically not instantiated directly.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}label`),t.literal("Abstract result","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AbstractResult`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(`${n}path`),t.namedNode(`${n}and`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to test whether a value node conforms to all members of a provided list of shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${r}label`),t.literal("And constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}AndConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}AndConstraintComponent-and`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${r}comment`),t.literal("The node kind of all blank nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNode`),t.namedNode(`${r}label`),t.literal("Blank node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${r}comment`),t.literal("The node kind of all blank nodes or IRIs.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(`${r}label`),t.literal("Blank node or IRI","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${r}comment`),t.literal("The node kind of all blank nodes or literals.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(`${r}label`),t.literal("Blank node or literal","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(`${n}path`),t.namedNode(`${n}class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that each value node is an instance of a given type.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${r}label`),t.literal("Class constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClassConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ClassConstraintComponent-class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(`${n}path`),t.namedNode(`${n}closed`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(`${n}path`),t.namedNode(`${n}ignoredProperties`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to indicate that focus nodes must only have values for those properties that have been explicitly enumerated via sh:property/sh:path.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${r}label`),t.literal("Closed constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ClosedConstraintComponent-closed`),t.namedNode(n)),t.quad(t.namedNode(`${n}ClosedConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ClosedConstraintComponent-ignoredProperties`),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}comment`),t.literal("The class of constraint components.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}label`),t.literal("Constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ConstraintComponent`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${r}comment`),t.literal("A count expression is a blank node with exactly one value for the property sh:count which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${r}label`),t.literal("Count Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${n}property`),l[1],t.namedNode(n)),t.quad(t.namedNode(`${n}CountExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}count`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(`${n}path`),t.namedNode(`${n}datatype`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the datatype of all value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${r}label`),t.literal("Datatype constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DatatypeConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}DatatypeConstraintComponent-datatype`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(`${n}path`),t.namedNode(`${n}disjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that the set of value nodes is disjoint with the the set of nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${r}label`),t.literal("Disjoint constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}DisjointConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}DisjointConstraintComponent-disjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${r}comment`),t.literal("A distinct expression is a blank node with exactly one value for the property sh:distinct which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${r}label`),t.literal("Distinct Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${n}property`),l[2],t.namedNode(n)),t.quad(t.namedNode(`${n}DistinctExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}distinct`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(`${n}path`),t.namedNode(`${n}equals`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that the set of value nodes is equal to the set of nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${r}label`),t.literal("Equals constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}EqualsConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}EqualsConstraintComponent-equals`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${r}comment`),t.literal("An exists expression is a blank node with exactly one value for sh:exists (which is a well-formed shape)."),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${r}label`),t.literal("Exists Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${n}property`),l[3],t.namedNode(n)),t.quad(t.namedNode(`${n}ExistsExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}exists`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(`${n}path`),t.namedNode(`${n}expression`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that a given node expression produces true for all value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${r}label`),t.literal("Expression constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ExpressionConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}ExpressionConstraintComponent-expression`),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${r}comment`),t.literal("A filter shape expression is a blank node with exactly one value for sh:filterShape (which is a well-formed shape) and at most one value for sh:nodes (which is a well-formed node expression)."),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${r}label`),t.literal("Filter Shape Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}property`),l[4],t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}property`),l[5],t.namedNode(n)),t.quad(t.namedNode(`${n}FilterShapeExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}filterShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FocusNodeOrConstantTermExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FocusNodeOrConstantTermExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRIOrLiteral`),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}comment`),t.literal("The class of SHACL functions.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}label`),t.literal("Function","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Function`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${r}comment`),t.literal("A function expression is a blank node that does not fulfill any of the syntax rules of the other node expression types and which is the subject of exactly one triple T where the object is a well-formed SHACL list, and each member of that list is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${r}label`),t.literal("Function Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}FunctionExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${r}comment`),t.literal("A group concat expression is a blank node with exactly one value for the property sh:groupConcat which is a well-formed node expression. A group concat expression can have a single value for the property sh:separator which is literal with datatype xsd:string."),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${r}label`),t.literal("Group Concat Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}property`),l[6],t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}property`),l[7],t.namedNode(n)),t.quad(t.namedNode(`${n}GroupConcatExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}groupConcat`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(`${n}path`),t.namedNode(`${n}hasValue`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that one of the value nodes is a given RDF node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${r}label`),t.literal("Has-value constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}HasValueConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}HasValueConstraintComponent-hasValue`),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${r}comment`),t.literal("The node kind of all IRIs.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}IRI`),t.namedNode(`${r}label`),t.literal("IRI","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${r}comment`),t.literal("The node kind of all IRIs or literals.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}IRIOrLiteral`),t.namedNode(`${r}label`),t.literal("IRI or literal","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${r}comment`),t.literal("An if expression is a blank node with exactly one value for sh:if (which is a well-formed node expression), at most one value for sh:then (which is a well-formed node expression) and at most one value for sh:else (which is a well-formed node expression)."),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${r}label`),t.literal("If Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}property`),l[8],t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}property`),l[9],t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}property`),l[10],t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}else`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}if`),t.namedNode(n)),t.quad(t.namedNode(`${n}IfExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}then`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(`${n}path`),t.namedNode(`${n}in`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to exclusively enumerate the permitted value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${r}label`),t.literal("In constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}InConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}InConstraintComponent-in`),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${o}type`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${r}comment`),t.literal("The severity for an informational validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Info`),t.namedNode(`${r}label`),t.literal("Info","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${r}comment`),t.literal("An intersection expression is a blank node with exactly one value for the property sh:intersection which is a well-formed SHACL list with at least two members (which are well-formed node expressions)."),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${r}label`),t.literal("Intersection Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${n}property`),l[11],t.namedNode(n)),t.quad(t.namedNode(`${n}IntersectionExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}intersection`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint-js`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint-js`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint-js`),t.namedNode(`${n}path`),t.namedNode(`${n}js`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}comment`),t.literal("The class of constraints backed by a JavaScript function.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}label`),t.literal("JavaScript-based constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraint`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component with the parameter sh:js linking to a sh:JSConstraint containing a sh:script.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${r}label`),t.literal("JavaScript constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}JSConstraint-js`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}comment`),t.literal("Abstract base class of resources that declare an executable JavaScript.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}label`),t.literal("JavaScript executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}comment`),t.literal("The class of SHACL functions that execute a JavaScript function when called.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}label`),t.literal("JavaScript function","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Function`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}comment`),t.literal("Represents a JavaScript library, typically identified by one or more URLs of files to include.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}label`),t.literal("JavaScript library","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSLibrary`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}comment`),t.literal("The class of SHACL rules expressed using JavaScript.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}label`),t.literal("JavaScript rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}comment`),t.literal("The class of targets that are based on JavaScript functions.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}label`),t.literal("JavaScript target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Target`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}comment`),t.literal("The (meta) class for parameterizable targets that are based on JavaScript functions.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}label`),t.literal("JavaScript target type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}TargetType`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}comment`),t.literal("A SHACL validator based on JavaScript. This can be used to declare SHACL constraint components that perform JavaScript-based validation when used.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}label`),t.literal("JavaScript validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}JSValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(`${n}path`),t.namedNode(`${n}languageIn`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to enumerate language tags that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${r}label`),t.literal("Language-in constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LanguageInConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}LanguageInConstraintComponent-languageIn`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(`${n}path`),t.namedNode(`${n}lessThan`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that each value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${r}label`),t.literal("Less-than constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}LessThanConstraintComponent-lessThan`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(`${n}path`),t.namedNode(`${n}lessThanOrEquals`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that every value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${r}label`),t.literal("less-than-or-equals constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}LessThanOrEqualsConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}LessThanOrEqualsConstraintComponent-lessThanOrEquals`),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${r}comment`),t.literal("A limit expression is a blank node with exactly one value for the property sh:limit which is a literal with datatype xsd:integer and with exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${r}label`),t.literal("Limit Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}property`),l[12],t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}property`),l[13],t.namedNode(n)),t.quad(t.namedNode(`${n}LimitExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}limit`),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${r}comment`),t.literal("The node kind of all literals.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Literal`),t.namedNode(`${r}label`),t.literal("Literal","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(`${n}path`),t.namedNode(`${n}maxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the maximum number of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxCountConstraintComponent-maxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}maxExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a maximum exclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-exclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxExclusiveConstraintComponent-maxExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${r}comment`),t.literal("A max expression is a blank node with exactly one value for the property sh:max which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${r}label`),t.literal("Max Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${n}property`),l[14],t.namedNode(n)),t.quad(t.namedNode(`${n}MaxExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}max`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}maxInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a maximum inclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-inclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxInclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxInclusiveConstraintComponent-maxInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(`${n}path`),t.namedNode(`${n}maxLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the maximum string length of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${r}label`),t.literal("Max-length constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MaxLengthConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MaxLengthConstraintComponent-maxLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(`${n}path`),t.namedNode(`${n}minCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the minimum number of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinCountConstraintComponent-minCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}minExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a minimum exclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-exclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinExclusiveConstraintComponent-minExclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${r}comment`),t.literal("A min expression is a blank node with exactly one value for the property sh:min which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${r}label`),t.literal("Min Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${n}property`),l[15],t.namedNode(n)),t.quad(t.namedNode(`${n}MinExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}min`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(`${n}path`),t.namedNode(`${n}minInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the range of value nodes with a minimum inclusive value.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-inclusive constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinInclusiveConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinInclusiveConstraintComponent-minInclusive`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(`${n}path`),t.namedNode(`${n}minLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the minimum string length of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${r}label`),t.literal("Min-length constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinLengthConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}MinLengthConstraintComponent-minLength`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${r}comment`),t.literal("A minus expression is a blank node with exactly one value for the property sh:minus which is a well-formed node expression and exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${r}label`),t.literal("Minus Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}property`),l[16],t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}property`),l[17],t.namedNode(n)),t.quad(t.namedNode(`${n}MinusExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}minus`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(`${n}path`),t.namedNode(`${n}node`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that all value nodes conform to the given node shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${r}label`),t.literal("Node constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}NodeConstraintComponent-node`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${n}expression`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${n}values`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeExpression`),t.namedNode(`${n}xone`),l[18],t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}comment`),t.literal("The class of all node kinds, including sh:BlankNode, sh:IRI, sh:Literal or the combinations of these: sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral, sh:IRIOrLiteral.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}label`),t.literal("Node kind","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKind`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${n}in`),l[19],t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(`${n}path`),t.namedNode(`${n}nodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the RDF node kind of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${r}label`),t.literal("Node-kind constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeKindConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}NodeKindConstraintComponent-nodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}comment`),t.literal("A node shape is a shape that specifies constraint that need to be met with respect to focus nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}label`),t.literal("Node shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NodeShape`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(`${n}path`),t.namedNode(`${n}not`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that value nodes do not conform to a given shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${r}label`),t.literal("Not constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}NotConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}NotConstraintComponent-not`),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${r}comment`),t.literal("An offset expression is a blank node with exactly one value for the property sh:offset which is a literal with datatype xsd:integer and with exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${r}label`),t.literal("Offset Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}property`),l[20],t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}property`),l[21],t.namedNode(n)),t.quad(t.namedNode(`${n}OffsetExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}offset`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(`${n}path`),t.namedNode(`${n}or`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the value nodes so that they conform to at least one out of several provided shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${r}label`),t.literal("Or constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}OrConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}OrConstraintComponent-or`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${r}comment`),t.literal("An orderBy expression is a blank node with exactly one value for the property sh:orderBy which is a well-formed node expression and with exactly one value for the property sh:nodes which is a well-formed node expression. An orderBy expression can have one value for the property sh:desc which is either true or false."),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${r}label`),t.literal("OrderBy Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}property`),l[22],t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}property`),l[23],t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}property`),l[24],t.namedNode(n)),t.quad(t.namedNode(`${n}OrderByExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}orderBy`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}comment`),t.literal("The class of parameter declarations, consisting of a path predicate and (possibly) information about allowed value type, cardinality and other characteristics.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}label`),t.literal("Parameter","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameter`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}comment`),t.literal("Superclass of components that can take parameters, especially functions and constraint components.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}label`),t.literal("Parameterizable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Parameterizable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${r}comment`),t.literal("A path expression is a blank node with exactly one value of the property sh:path (which are well-formed property paths) and at most one value for sh:nodes (which is a well-formed node expression)."),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${r}label`),t.literal("Path Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${n}property`),l[25],t.namedNode(n)),t.quad(t.namedNode(`${n}PathExpression`),t.namedNode(`${n}property`),l[26],t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(`${n}path`),t.namedNode(`${n}flags`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(`${n}path`),t.namedNode(`${n}pattern`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that every value node matches a given regular expression.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${r}label`),t.literal("Pattern constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}PatternConstraintComponent-flags`),t.namedNode(n)),t.quad(t.namedNode(`${n}PatternConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}PatternConstraintComponent-pattern`),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}comment`),t.literal("The class of prefix declarations, consisting of pairs of a prefix with a namespace.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}label`),t.literal("Prefix declaration","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PrefixDeclaration`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(`${n}path`),t.namedNode(`${n}property`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that all value nodes conform to the given property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${r}label`),t.literal("Property constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}PropertyConstraintComponent-property`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}comment`),t.literal("Instances of this class represent groups of property shapes that belong together.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}label`),t.literal("Property group","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyGroup`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}comment`),t.literal("A property shape is a shape that specifies constraints on the values of a focus node for a given property or path.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}label`),t.literal("Property shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}PropertyShape`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that a specified maximum number of value nodes conforms to a given shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Qualified-max-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedMaxCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMaxCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedMinCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}optional`),t.literal("true",t.namedNode(`${d}boolean`)),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(`${n}path`),t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to verify that a specified minimum number of value nodes conforms to a given shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${r}label`),t.literal("Qualified-min-count constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedMinCount`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}QualifiedMinCountConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint`),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}comment`),t.literal("A class of result annotations, which define the rules to derive the values of a given annotation property as extra values for a validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}label`),t.literal("Result annotation","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ResultAnnotation`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}comment`),t.literal("The class of SHACL rules. Never instantiated directly.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}label`),t.literal("Rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Rule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables that are based on an ASK query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL ASK executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${r}comment`),t.literal("A SPARQL ASK expression is a blank node with exactly one value for the property sh:ask which is string literal. The blank node may have values for the property sh:prefixes and these values are IRIs or blank nodes. Using the values of sh:prefixes as defined by 5.2.1 Prefix Declarations for SPARQL Queries, the value of sh:ask must be valid SPARQL 1.1 ASK query. The blank node may also have exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${r}label`),t.literal("SPARQL ASK Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}property`),l[27],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}property`),l[28],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}property`),l[29],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}ask`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}comment`),t.literal("The class of validators based on SPARQL ASK queries. The queries are evaluated for each value node and are supposed to return true if the given node conforms.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}label`),t.literal("SPARQL ASK validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLAskValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}comment`),t.literal("The class of constraints based on SPARQL SELECT queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}label`),t.literal("SPARQL constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraint`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(`${n}path`),t.namedNode(`${n}sparql`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to define constraints based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${r}label`),t.literal("SPARQL constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}SPARQLConstraintComponent-sparql`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables that are based on a CONSTRUCT query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL CONSTRUCT executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}comment`),t.literal("The class of resources that encapsulate a SPARQL query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}comment`),t.literal("A function backed by a SPARQL query - either ASK or SELECT.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}label`),t.literal("SPARQL function","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Function`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLFunction`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}comment`),t.literal("The class of SHACL rules based on SPARQL CONSTRUCT queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}label`),t.literal("SPARQL CONSTRUCT rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${n}property`),l[30],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLRule`),t.namedNode(`${n}property`),l[31],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables based on a SELECT query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL SELECT executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${r}comment`),t.literal("A SPARQL SELECT expression is a blank node with exactly one value for the property sh:select which is string literal. The blank node may have values for the property sh:prefixes and these values are IRIs or blank nodes. Using the values of sh:prefixes as defined by 5.2.1 Prefix Declarations for SPARQL Queries, the value of sh:select must be valid SPARQL 1.1 SELECT query with exactly one result variable. The blank node may also have exactly one value for the property sh:nodes which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${r}label`),t.literal("SPARQL SELECT Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}property`),l[32],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}property`),l[33],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}property`),l[34],t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}select`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}comment`),t.literal("The class of validators based on SPARQL SELECT queries. The queries are evaluated for each focus node and are supposed to produce bindings for all focus nodes that do not conform.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}label`),t.literal("SPARQL SELECT validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}comment`),t.literal("The class of targets that are based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}label`),t.literal("SPARQL target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTarget`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Target`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}comment`),t.literal("The (meta) class for parameterizable targets that are based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}label`),t.literal("SPARQL target type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLTargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}TargetType`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}comment`),t.literal("The class of SPARQL executables based on a SPARQL UPDATE.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}label`),t.literal("SPARQL UPDATE executable","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}comment`),t.literal("The class of validation result severity levels, including violation and warning levels.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}label`),t.literal("Severity","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Severity`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}comment`),t.literal("A shape is a collection of constraints that may be targeted for certain nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}label`),t.literal("Shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Shape`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${r}comment`),t.literal("A sum expression is a blank node with exactly one value for the property sh:sum which is a well-formed node expression."),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${r}label`),t.literal("Sum Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${n}property`),l[35],t.namedNode(n)),t.quad(t.namedNode(`${n}SumExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}sum`),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}comment`),t.literal("The base class of targets such as those based on SPARQL queries.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}label`),t.literal("Target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Target`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}comment`),t.literal("The (meta) class for parameterizable targets.\tInstances of this are instantiated as values of the sh:target property.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}label`),t.literal("Target type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}TargetType`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${r}label`),t.literal("A rule based on triple (subject, predicate, object) pattern.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${n}property`),l[36],t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${n}property`),l[37],t.namedNode(n)),t.quad(t.namedNode(`${n}TripleRule`),t.namedNode(`${n}property`),l[38],t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${o}type`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${r}comment`),t.literal("A union expression is a blank node with exactly one value for the property sh:union which is a well-formed SHACL list with at least two members (which are well-formed node expressions)."),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${r}label`),t.literal("Union Expression"),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${n}property`),l[39],t.namedNode(n)),t.quad(t.namedNode(`${n}UnionExpression`),t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${n}union`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(`${n}path`),t.namedNode(`${n}uniqueLang`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to specify that no pair of value nodes may use the same language tag.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${r}label`),t.literal("Unique-languages constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}UniqueLangConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}UniqueLangConstraintComponent-uniqueLang`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}comment`),t.literal("The class of SHACL validation reports.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}label`),t.literal("Validation report","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationReport`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}comment`),t.literal("The class of validation results.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}label`),t.literal("Validation result","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ValidationResult`),t.namedNode(`${r}subClassOf`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${o}type`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}comment`),t.literal("The class of validators, which provide instructions on how to process a constraint definition. This class serves as base class for the SPARQL-based validators and other possible implementations.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}label`),t.literal("Validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Validator`),t.namedNode(`${r}subClassOf`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${o}type`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${r}comment`),t.literal("The severity for a violation validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Violation`),t.namedNode(`${r}label`),t.literal("Violation","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${o}type`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${r}comment`),t.literal("The severity for a warning validation result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}Warning`),t.namedNode(`${r}label`),t.literal("Warning","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(`${o}type`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(`${n}path`),t.namedNode(`${n}xone`),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${r}comment`),t.literal("A constraint component that can be used to restrict the value nodes so that they conform to exactly one out of several provided shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${r}label`),t.literal("Exactly one constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}XoneConstraintComponent`),t.namedNode(`${n}parameter`),t.namedNode(`${n}XoneConstraintComponent-xone`),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property must be a list of path elements, representing the elements of alternative paths.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}label`),t.literal("alternative path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}alternativePath`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}comment`),t.literal("RDF list of shapes to validate the value nodes against.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}label`),t.literal("and","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}and`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}comment`),t.literal("The annotation property that shall be set.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}domain`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}label`),t.literal("annotation property","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationProperty`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}comment`),t.literal("The (default) values of the annotation property.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}domain`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationValue`),t.namedNode(`${r}label`),t.literal("annotation value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}comment`),t.literal("The name of the SPARQL variable from the SELECT clause that shall be used for the values.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}domain`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}label`),t.literal("annotation variable name","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}annotationVarName`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}comment`),t.literal("The SPARQL ASK query to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLAskExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}label`),t.literal("ask","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ask`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}comment`),t.literal("The type that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}label`),t.literal("class","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}class`),t.namedNode(`${r}range`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}comment`),t.literal("If set to true then the shape is closed.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}label`),t.literal("closed","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}closed`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}comment`),t.literal("The shapes that the focus nodes need to conform to before a rule is executed on them.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}domain`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}label`),t.literal("condition","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}condition`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}comment`),t.literal("True if the validation did not produce any validation results, and false otherwise.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}domain`),t.namedNode(`${n}ValidationReport`),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}label`),t.literal("conforms","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}conforms`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}comment`),t.literal("The SPARQL CONSTRUCT query to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLConstructExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}label`),t.literal("construct","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}construct`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}count`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}comment`),t.literal("Specifies an RDF datatype that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}label`),t.literal("datatype","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}datatype`),t.namedNode(`${r}range`),t.namedNode(`${r}Datatype`),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}comment`),t.literal("If set to true then all nodes conform to this.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}label`),t.literal("deactivated","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}deactivated`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}comment`),t.literal("Links a resource with its namespace prefix declarations.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}label`),t.literal("declare","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}declare`),t.namedNode(`${r}range`),t.namedNode(`${n}PrefixDeclaration`),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}comment`),t.literal("A default value for a property, for example for user interface tools to pre-populate input fields.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}defaultValue`),t.namedNode(`${r}label`),t.literal("default value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}desc`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}comment`),t.literal("Human-readable descriptions for the property in the context of the surrounding shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}description`),t.namedNode(`${r}label`),t.literal("description","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}comment`),t.literal("Links a result with other results that provide more details, for example to describe violations against nested shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}label`),t.literal("detail","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}detail`),t.namedNode(`${r}range`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}comment`),t.literal("Specifies a property where the set of values must be disjoint with the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}label`),t.literal("disjoint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}disjoint`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}distinct`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}else`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}comment`),t.literal("An entailment regime that indicates what kind of inferencing is required by a shapes graph.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}label`),t.literal("entailment","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}entailment`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}comment`),t.literal("Specifies a property that must have the same values as the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}label`),t.literal("equals","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}equals`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}exists`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${r}comment`),t.literal("The node expression that must return true for the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}expression`),t.namedNode(`${r}label`),t.literal("expression","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}comment`),t.literal("The shape that all input nodes of the expression need to conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}label`),t.literal("filter shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}filterShape`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}comment`),t.literal("An optional flag to be used with regular expression pattern matching.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}label`),t.literal("flags","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}flags`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}comment`),t.literal("The focus node that was validated when the result was produced.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}focusNode`),t.namedNode(`${r}label`),t.literal("focus node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}comment`),t.literal("Can be used to link to a property group to indicate that a property shape belongs to a group of related property shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}label`),t.literal("group","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}group`),t.namedNode(`${r}range`),t.namedNode(`${n}PropertyGroup`),t.namedNode(n)),t.quad(t.namedNode(`${n}groupConcat`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${r}comment`),t.literal("Specifies a value that must be among the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}hasValue`),t.namedNode(`${r}label`),t.literal("has value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}if`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}comment`),t.literal("An optional RDF list of properties that are also permitted in addition to those explicitly enumerated via sh:property/sh:path.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}label`),t.literal("ignored properties","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}ignoredProperties`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}comment`),t.literal("Specifies a list of allowed values so that each value node must be among the members of the given list.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}label`),t.literal("in","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}in`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${r}comment`),t.literal("A list of node expressions that shall be intersected.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}intersection`),t.namedNode(`${r}label`),t.literal("intersection","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents an inverse path (object to subject).","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}label`),t.literal("inverse path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}inversePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}comment`),t.literal("Constraints expressed in JavaScript."),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}label`),t.literal("JavaScript constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}js`),t.namedNode(`${r}range`),t.namedNode(`${n}JSConstraint`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}comment`),t.literal("The name of the JavaScript function to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}domain`),t.namedNode(`${n}JSExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}label`),t.literal("JavaScript function name","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsFunctionName`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}comment`),t.literal("Declares which JavaScript libraries are needed to execute this.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}label`),t.literal("JavaScript library","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibrary`),t.namedNode(`${r}range`),t.namedNode(`${n}JSLibrary`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}comment`),t.literal("Declares the URLs of a JavaScript library. This should be the absolute URL of a JavaScript file. Implementations may redirect those to local files.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}domain`),t.namedNode(`${n}JSLibrary`),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}label`),t.literal("JavaScript library URL","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}jsLibraryURL`),t.namedNode(`${r}range`),t.namedNode(`${d}anyURI`),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}comment`),t.literal("Outlines how human-readable labels of instances of the associated Parameterizable shall be produced. The values can contain {?paramName} as placeholders for the actual values of the given parameter.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}domain`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}labelTemplate`),t.namedNode(`${r}label`),t.literal("label template","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}comment`),t.literal("Specifies a list of language tags that all value nodes must have.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}label`),t.literal("language in","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}languageIn`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}comment`),t.literal("Specifies a property that must have smaller values than the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}label`),t.literal("less than","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThan`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}comment`),t.literal("Specifies a property that must have smaller or equal values than the value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}label`),t.literal("less than or equals","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}lessThanOrEquals`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}limit`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}max`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum number of values in the set of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}label`),t.literal("max count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum exclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxExclusive`),t.namedNode(`${r}label`),t.literal("max exclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum inclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxInclusive`),t.namedNode(`${r}label`),t.literal("max inclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}comment`),t.literal("Specifies the maximum string length of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}label`),t.literal("max length","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}maxLength`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${r}comment`),t.literal("A human-readable message (possibly with placeholders for variables) explaining the cause of the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}message`),t.namedNode(`${r}label`),t.literal("message","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}min`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum number of values in the set of value nodes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}label`),t.literal("min count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum exclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minExclusive`),t.namedNode(`${r}label`),t.literal("min exclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum inclusive value of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minInclusive`),t.namedNode(`${r}label`),t.literal("min inclusive","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}comment`),t.literal("Specifies the minimum string length of each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}label`),t.literal("min length","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}minLength`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}minus`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}comment`),t.literal("Human-readable labels for the property in the context of the surrounding shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}name`),t.namedNode(`${r}label`),t.literal("name","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}comment`),t.literal("The namespace associated with a prefix in a prefix declaration.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}domain`),t.namedNode(`${n}PrefixDeclaration`),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}label`),t.literal("namespace","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}namespace`),t.namedNode(`${r}range`),t.namedNode(`${d}anyURI`),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}comment`),t.literal("Specifies the node shape that all value nodes must conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}label`),t.literal("node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}node`),t.namedNode(`${r}range`),t.namedNode(`${n}NodeShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}comment`),t.literal("Specifies the node kind (e.g. IRI or literal) each value node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}label`),t.literal("node kind","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeKind`),t.namedNode(`${r}range`),t.namedNode(`${n}NodeKind`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}comment`),t.literal("The validator(s) used to evaluate a constraint in the context of a node shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}domain`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}label`),t.literal("shape validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodeValidator`),t.namedNode(`${r}range`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${r}comment`),t.literal("The node expression producing the input nodes of a filter shape expression.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}nodes`),t.namedNode(`${r}label`),t.literal("nodes","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}comment`),t.literal("Specifies a shape that the value nodes must not conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}label`),t.literal("not","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}not`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}comment`),t.literal("An expression producing the nodes that shall be inferred as objects.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}domain`),t.namedNode(`${n}TripleRule`),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}object`),t.namedNode(`${r}label`),t.literal("object","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}offset`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents a path that is matched one or more times.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}label`),t.literal("one or more path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}oneOrMorePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}comment`),t.literal("Indicates whether a parameter is optional.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}domain`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}label`),t.literal("optional","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}optional`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}comment`),t.literal("Specifies a list of shapes so that the value nodes must conform to at least one of the shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}label`),t.literal("or","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}or`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${r}comment`),t.literal("Specifies the relative order of this compared to its siblings. For example use 0 for the first, 1 for the second.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}order`),t.namedNode(`${r}label`),t.literal("order","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}orderBy`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}comment`),t.literal("The parameters of a function or constraint component.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}domain`),t.namedNode(`${n}Parameterizable`),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}label`),t.literal("parameter","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}parameter`),t.namedNode(`${r}range`),t.namedNode(`${n}Parameter`),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}comment`),t.literal("Specifies the property path of a property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}domain`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}label`),t.literal("path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}path`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}comment`),t.literal("Specifies a regular expression pattern that the string representations of the value nodes must match.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}label`),t.literal("pattern","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}pattern`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}comment`),t.literal("An expression producing the properties that shall be inferred as predicates.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}domain`),t.namedNode(`${n}TripleRule`),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}predicate`),t.namedNode(`${r}label`),t.literal("predicate","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}comment`),t.literal("The prefix of a prefix declaration.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}domain`),t.namedNode(`${n}PrefixDeclaration`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}label`),t.literal("prefix","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefix`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}comment`),t.literal("The prefixes that shall be applied before parsing the associated SPARQL query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}label`),t.literal("prefixes","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}prefixes`),t.namedNode(`${r}range`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}comment`),t.literal("Links a shape to its property shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}label`),t.literal("property","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}property`),t.namedNode(`${r}range`),t.namedNode(`${n}PropertyShape`),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}comment`),t.literal("The validator(s) used to evaluate a constraint in the context of a property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}domain`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}label`),t.literal("property validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}propertyValidator`),t.namedNode(`${r}range`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}comment`),t.literal("The maximum number of value nodes that can conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}label`),t.literal("qualified max count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMaxCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}comment`),t.literal("The minimum number of value nodes that must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}label`),t.literal("qualified min count","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedMinCount`),t.namedNode(`${r}range`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}comment`),t.literal("The shape that a specified number of values must conform to.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}label`),t.literal("qualified value shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShape`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}comment`),t.literal("Can be used to mark the qualified value shape to be disjoint with its sibling shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}label`),t.literal("qualified value shapes disjoint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}qualifiedValueShapesDisjoint`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}comment`),t.literal("The validation results contained in a validation report.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}domain`),t.namedNode(`${n}ValidationReport`),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}label`),t.literal("result","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}result`),t.namedNode(`${r}range`),t.namedNode(`${n}ValidationResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}comment`),t.literal("Links a SPARQL validator with zero or more sh:ResultAnnotation instances, defining how to derive additional result properties based on the variables of the SELECT query.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLSelectValidator`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}label`),t.literal("result annotation","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultAnnotation`),t.namedNode(`${r}range`),t.namedNode(`${n}ResultAnnotation`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}comment`),t.literal("Human-readable messages explaining the cause of the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultMessage`),t.namedNode(`${r}label`),t.literal("result message","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}comment`),t.literal("The path of a validation result, based on the path of the validated property shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}label`),t.literal("result path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultPath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}comment`),t.literal("The severity of the result, e.g. warning.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}label`),t.literal("result severity","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}resultSeverity`),t.namedNode(`${r}range`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}comment`),t.literal("The expected type of values returned by the associated function.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}domain`),t.namedNode(`${n}Function`),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}label`),t.literal("return type","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}returnType`),t.namedNode(`${r}range`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}comment`),t.literal("The rules linked to a shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}label`),t.literal("rule","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}rule`),t.namedNode(`${r}range`),t.namedNode(`${n}Rule`),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}comment`),t.literal("The SPARQL SELECT query to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLSelectExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}label`),t.literal("select","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}select`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}separator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}comment`),t.literal("Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}label`),t.literal("severity","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}severity`),t.namedNode(`${r}range`),t.namedNode(`${n}Severity`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}comment`),t.literal("Shapes graphs that should be used when validating this data graph.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}label`),t.literal("shapes graph","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraph`),t.namedNode(`${r}range`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}comment`),t.literal("If true then the validation engine was certain that the shapes graph has passed all SHACL syntax requirements during the validation process.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}domain`),t.namedNode(`${n}ValidationReport`),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}label`),t.literal("shapes graph well-formed","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}shapesGraphWellFormed`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}comment`),t.literal("The constraint that was validated when the result was produced.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraint`),t.namedNode(`${r}label`),t.literal("source constraint","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}comment`),t.literal("The constraint component that is the source of the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}label`),t.literal("source constraint component","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceConstraintComponent`),t.namedNode(`${r}range`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}comment`),t.literal("The shape that is was validated when the result was produced.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}label`),t.literal("source shape","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sourceShape`),t.namedNode(`${r}range`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}comment`),t.literal("Links a shape with SPARQL constraints.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}label`),t.literal("constraint (in SPARQL)","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}sparql`),t.namedNode(`${r}range`),t.namedNode(`${n}SPARQLConstraint`),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}comment`),t.literal("An expression producing the resources that shall be inferred as subjects.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}domain`),t.namedNode(`${n}TripleRule`),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}subject`),t.namedNode(`${r}label`),t.literal("subject","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}comment`),t.literal("Suggested shapes graphs for this ontology. The values of this property may be used in the absence of specific sh:shapesGraph statements.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}domain`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}label`),t.literal("suggested shapes graph","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}suggestedShapesGraph`),t.namedNode(`${r}range`),t.namedNode(`${a}Ontology`),t.namedNode(n)),t.quad(t.namedNode(`${n}sum`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}comment`),t.literal("Links a shape to a target specified by an extension language, for example instances of sh:SPARQLTarget.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}label`),t.literal("target","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}target`),t.namedNode(`${r}range`),t.namedNode(`${n}Target`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}comment`),t.literal("Links a shape to a class, indicating that all instances of the class must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}label`),t.literal("target class","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetClass`),t.namedNode(`${r}range`),t.namedNode(`${r}Class`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}comment`),t.literal("Links a shape to individual nodes, indicating that these nodes must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetNode`),t.namedNode(`${r}label`),t.literal("target node","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}comment`),t.literal("Links a shape to a property, indicating that all all objects of triples that have the given property as their predicate must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}label`),t.literal("target objects of","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetObjectsOf`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}comment`),t.literal("Links a shape to a property, indicating that all subjects of triples that have the given property as their predicate must conform to the shape.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}domain`),t.namedNode(`${n}Shape`),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}label`),t.literal("target subjects of","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}targetSubjectsOf`),t.namedNode(`${r}range`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}then`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${o}type`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${r}comment`),t.literal("A node expression that represents the current focus node.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}this`),t.namedNode(`${r}label`),t.literal("this","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${r}comment`),t.literal("A list of node expressions that shall be used together.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}union`),t.namedNode(`${r}label`),t.literal("union","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}comment`),t.literal("Specifies whether all node values must have a unique (or no) language tag.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}label`),t.literal("unique languages","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}uniqueLang`),t.namedNode(`${r}range`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}comment`),t.literal("The SPARQL UPDATE to execute.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}domain`),t.namedNode(`${n}SPARQLUpdateExecutable`),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}label`),t.literal("update","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}update`),t.namedNode(`${r}range`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}comment`),t.literal("The validator(s) used to evaluate constraints of either node or property shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}domain`),t.namedNode(`${n}ConstraintComponent`),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}label`),t.literal("validator","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}validator`),t.namedNode(`${r}range`),t.namedNode(`${n}Validator`),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}comment`),t.literal("An RDF node that has caused the result.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}domain`),t.namedNode(`${n}AbstractResult`),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}value`),t.namedNode(`${r}label`),t.literal("value","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}values`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}comment`),t.literal("Specifies a list of shapes so that the value nodes must conform to exactly one of the shapes.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}label`),t.literal("exactly one","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}xone`),t.namedNode(`${r}range`),t.namedNode(`${o}List`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents a path that is matched zero or more times.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}label`),t.literal("zero or more path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${o}type`),t.namedNode(`${o}Property`),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}comment`),t.literal("The (single) value of this property represents a path that is matched zero or one times.","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}isDefinedBy`),t.namedNode(n),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}label`),t.literal("zero or one path","en"),t.namedNode(n)),t.quad(t.namedNode(`${n}zeroOrOnePath`),t.namedNode(`${r}range`),t.namedNode(`${r}Resource`),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}node`),t.namedNode(`${i}ShapeShape`),t.namedNode(n)),t.quad(l[4],t.namedNode(`${n}path`),t.namedNode(`${n}filterShape`),t.namedNode(n)),t.quad(l[40],t.namedNode(`${o}first`),t.namedNode(`${n}IfExpression`),t.namedNode(n)),t.quad(l[40],t.namedNode(`${o}rest`),l[41],t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[16],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[32],t.namedNode(`${n}path`),t.namedNode(`${n}select`),t.namedNode(n)),t.quad(l[6],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[6],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[6],t.namedNode(`${n}path`),t.namedNode(`${n}separator`),t.namedNode(n)),t.quad(l[42],t.namedNode(`${o}first`),t.namedNode(`${n}BlankNodeOrLiteral`),t.namedNode(n)),t.quad(l[42],t.namedNode(`${o}rest`),l[43],t.namedNode(n)),t.quad(l[19],t.namedNode(`${o}first`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(l[19],t.namedNode(`${o}rest`),l[44],t.namedNode(n)),t.quad(l[45],t.namedNode(`${o}first`),t.namedNode(`${n}MinExpression`),t.namedNode(n)),t.quad(l[45],t.namedNode(`${o}rest`),l[46],t.namedNode(n)),t.quad(l[47],t.namedNode(`${o}first`),t.namedNode(`${n}SPARQLAskExpression`),t.namedNode(n)),t.quad(l[47],t.namedNode(`${o}rest`),l[48],t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}node`),t.namedNode(`${i}PathShape`),t.namedNode(n)),t.quad(l[25],t.namedNode(`${n}path`),t.namedNode(`${n}path`),t.namedNode(n)),t.quad(l[49],t.namedNode(`${o}first`),t.namedNode(`${n}MinusExpression`),t.namedNode(n)),t.quad(l[49],t.namedNode(`${o}rest`),l[50],t.namedNode(n)),t.quad(l[46],t.namedNode(`${o}first`),t.namedNode(`${n}MaxExpression`),t.namedNode(n)),t.quad(l[46],t.namedNode(`${o}rest`),l[51],t.namedNode(n)),t.quad(l[52],t.namedNode(`${o}first`),t.namedNode(`${n}LimitExpression`),t.namedNode(n)),t.quad(l[52],t.namedNode(`${o}rest`),l[53],t.namedNode(n)),t.quad(l[8],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[8],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[8],t.namedNode(`${n}path`),t.namedNode(`${n}then`),t.namedNode(n)),t.quad(l[44],t.namedNode(`${o}first`),t.namedNode(`${n}IRI`),t.namedNode(n)),t.quad(l[44],t.namedNode(`${o}rest`),l[54],t.namedNode(n)),t.quad(l[55],t.namedNode(`${n}zeroOrMorePath`),t.namedNode(`${o}rest`),t.namedNode(n)),t.quad(l[5],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[5],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[5],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[56],t.namedNode(`${o}first`),l[57],t.namedNode(n)),t.quad(l[56],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[0],t.namedNode(`${n}namespace`),t.literal("http://www.w3.org/ns/shacl#"),t.namedNode(n)),t.quad(l[0],t.namedNode(`${n}prefix`),t.literal("sh"),t.namedNode(n)),t.quad(l[58],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNode`),t.namedNode(n)),t.quad(l[58],t.namedNode(`${n}not`),l[59],t.namedNode(n)),t.quad(l[18],t.namedNode(`${o}first`),t.namedNode(`${n}FocusNodeOrConstantTermExpression`),t.namedNode(n)),t.quad(l[18],t.namedNode(`${o}rest`),l[60],t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[15],t.namedNode(`${n}path`),t.namedNode(`${n}min`),t.namedNode(n)),t.quad(l[30],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[30],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[30],t.namedNode(`${n}path`),t.namedNode(`${n}prefixes`),t.namedNode(n)),t.quad(l[61],t.namedNode(`${o}first`),l[55],t.namedNode(n)),t.quad(l[61],t.namedNode(`${o}rest`),l[62],t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[1],t.namedNode(`${n}path`),t.namedNode(`${n}count`),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[12],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[33],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[33],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[33],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}node`),t.namedNode(`${s}ListShape`),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}path`),t.namedNode(`${n}intersection`),t.namedNode(n)),t.quad(l[63],t.namedNode(`${n}property`),l[64],t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[13],t.namedNode(`${n}path`),t.namedNode(`${n}limit`),t.namedNode(n)),t.quad(l[59],t.namedNode(`${o}first`),t.namedNode(`${n}ExistsExpression`),t.namedNode(n)),t.quad(l[59],t.namedNode(`${o}rest`),l[40],t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[36],t.namedNode(`${n}path`),t.namedNode(`${n}object`),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[2],t.namedNode(`${n}path`),t.namedNode(`${n}distinct`),t.namedNode(n)),t.quad(l[65],t.namedNode(`${o}first`),t.namedNode(`${n}IntersectionExpression`),t.namedNode(n)),t.quad(l[65],t.namedNode(`${o}rest`),l[66],t.namedNode(n)),t.quad(l[57],t.namedNode(`${n}xone`),l[59],t.namedNode(n)),t.quad(l[34],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[34],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[34],t.namedNode(`${n}path`),t.namedNode(`${n}prefixes`),t.namedNode(n)),t.quad(l[67],t.namedNode(`${o}first`),t.namedNode(`${n}GroupConcatExpression`),t.namedNode(n)),t.quad(l[67],t.namedNode(`${o}rest`),l[68],t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[20],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[69],t.namedNode(`${n}property`),l[63],t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[27],t.namedNode(`${n}path`),t.namedNode(`${n}ask`),t.namedNode(n)),t.quad(l[28],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[28],t.namedNode(`${n}nodeKind`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[28],t.namedNode(`${n}path`),t.namedNode(`${n}prefixes`),t.namedNode(n)),t.quad(l[64],t.namedNode(`${n}minCount`),t.literal("2",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[64],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[64],t.namedNode(`${n}path`),l[61],t.namedNode(n)),t.quad(l[22],t.namedNode(`${n}datatype`),t.namedNode(`${d}boolean`),t.namedNode(n)),t.quad(l[22],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[22],t.namedNode(`${n}path`),t.namedNode(`${n}desc`),t.namedNode(n)),t.quad(l[29],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[29],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[29],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[41],t.namedNode(`${o}first`),t.namedNode(`${n}FilterShapeExpression`),t.namedNode(n)),t.quad(l[41],t.namedNode(`${o}rest`),l[70],t.namedNode(n)),t.quad(l[62],t.namedNode(`${o}first`),t.namedNode(`${o}first`),t.namedNode(n)),t.quad(l[62],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[48],t.namedNode(`${o}first`),t.namedNode(`${n}SPARQLSelectExpression`),t.namedNode(n)),t.quad(l[48],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[26],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[26],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[26],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[71],t.namedNode(`${o}first`),t.namedNode(`${n}CountExpression`),t.namedNode(n)),t.quad(l[71],t.namedNode(`${o}rest`),l[45],t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[7],t.namedNode(`${n}path`),t.namedNode(`${n}groupConcat`),t.namedNode(n)),t.quad(l[54],t.namedNode(`${o}first`),t.namedNode(`${n}Literal`),t.namedNode(n)),t.quad(l[54],t.namedNode(`${o}rest`),l[72],t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[23],t.namedNode(`${n}path`),t.namedNode(`${n}nodes`),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}datatype`),t.namedNode(`${d}integer`),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[21],t.namedNode(`${n}path`),t.namedNode(`${n}offset`),t.namedNode(n)),t.quad(l[50],t.namedNode(`${o}first`),t.namedNode(`${n}DistinctExpression`),t.namedNode(n)),t.quad(l[50],t.namedNode(`${o}rest`),l[71],t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[14],t.namedNode(`${n}path`),t.namedNode(`${n}max`),t.namedNode(n)),t.quad(l[51],t.namedNode(`${o}first`),t.namedNode(`${n}SumExpression`),t.namedNode(n)),t.quad(l[51],t.namedNode(`${o}rest`),l[67],t.namedNode(n)),t.quad(l[68],t.namedNode(`${o}first`),t.namedNode(`${n}OrderByExpression`),t.namedNode(n)),t.quad(l[68],t.namedNode(`${o}rest`),l[52],t.namedNode(n)),t.quad(l[60],t.namedNode(`${o}first`),l[58],t.namedNode(n)),t.quad(l[60],t.namedNode(`${o}rest`),l[56],t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[24],t.namedNode(`${n}path`),t.namedNode(`${n}orderBy`),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[35],t.namedNode(`${n}path`),t.namedNode(`${n}sum`),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}node`),t.namedNode(`${i}ShapeShape`),t.namedNode(n)),t.quad(l[3],t.namedNode(`${n}path`),t.namedNode(`${n}exists`),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[37],t.namedNode(`${n}path`),t.namedNode(`${n}subject`),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}and`),l[73],t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}node`),t.namedNode(`${s}ListShape`),t.namedNode(n)),t.quad(l[11],t.namedNode(`${n}path`),t.namedNode(`${n}intersection`),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[9],t.namedNode(`${n}path`),t.namedNode(`${n}if`),t.namedNode(n)),t.quad(l[53],t.namedNode(`${o}first`),t.namedNode(`${n}OffsetExpression`),t.namedNode(n)),t.quad(l[53],t.namedNode(`${o}rest`),l[47],t.namedNode(n)),t.quad(l[72],t.namedNode(`${o}first`),t.namedNode(`${n}BlankNodeOrIRI`),t.namedNode(n)),t.quad(l[72],t.namedNode(`${o}rest`),l[42],t.namedNode(n)),t.quad(l[70],t.namedNode(`${o}first`),t.namedNode(`${n}PathExpression`),t.namedNode(n)),t.quad(l[70],t.namedNode(`${o}rest`),l[65],t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[38],t.namedNode(`${n}path`),t.namedNode(`${n}predicate`),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}and`),l[74],t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}node`),t.namedNode(`${s}ListShape`),t.namedNode(n)),t.quad(l[39],t.namedNode(`${n}path`),t.namedNode(`${n}union`),t.namedNode(n)),t.quad(l[66],t.namedNode(`${o}first`),t.namedNode(`${n}UnionExpression`),t.namedNode(n)),t.quad(l[66],t.namedNode(`${o}rest`),l[49],t.namedNode(n)),t.quad(l[10],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[10],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[10],t.namedNode(`${n}path`),t.namedNode(`${n}else`),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}node`),t.namedNode(`${n}NodeExpression`),t.namedNode(n)),t.quad(l[17],t.namedNode(`${n}path`),t.namedNode(`${n}minus`),t.namedNode(n)),t.quad(l[74],t.namedNode(`${o}first`),l[75],t.namedNode(n)),t.quad(l[74],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[73],t.namedNode(`${o}first`),l[75],t.namedNode(n)),t.quad(l[73],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}datatype`),t.namedNode(`${d}string`),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}maxCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}minCount`),t.literal("1",t.namedNode(`${d}integer`)),t.namedNode(n)),t.quad(l[31],t.namedNode(`${n}path`),t.namedNode(`${n}construct`),t.namedNode(n)),t.quad(l[43],t.namedNode(`${o}first`),t.namedNode(`${n}IRIOrLiteral`),t.namedNode(n)),t.quad(l[43],t.namedNode(`${o}rest`),t.namedNode(`${o}nil`),t.namedNode(n))]})({factory:this.factory}),n=this.factory.dataset(t.concat([...e]));this.$shapes=Ct({dataset:n,factory:this.factory}),this.shapesGraph=new ro(this)}nodeConformsToShape(e,t,n=this.validationEngine.clone()){const o=this.shapesGraph.getShape(t);try{return this.depth++,!n.validateNodeAgainstShape(e,o,this.$data)}finally{this.depth--}}validateNodeAgainstShape(e,t){return this.nodeConformsToShape(e,t,this.validationEngine)}};var fo=function(e,t,n,o){return new(n||(n=Promise))((function(a,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,d)}s((o=o.apply(e,t||[])).next())}))};class No extends HTMLElement{static get observedAttributes(){return ze.dataAttributes()}constructor(e){super(),this.shape=null,this.attachShadow({mode:"open"}),this.form=document.createElement("form"),this.config=new ze(e,this.form),this.form.addEventListener("change",(e=>{e.stopPropagation(),this.config.editMode&&this.validate(!0).then((e=>{this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!0,detail:{valid:e}}))})).catch((e=>{console.log(e)}))}))}connectedCallback(){this.shadowRoot.prepend(this.form)}attributeChangedCallback(){this.config.updateAttributes(this),this.initialize()}initialize(){clearTimeout(this.initDebounceTimeout),this.initDebounceTimeout=setTimeout((()=>fo(this,void 0,void 0,(function*(){this.form.replaceChildren(document.createTextNode(this.config.attributes.loading));try{yield this.config.loader.loadGraphs(),this.form.replaceChildren();const e=this.findRootShaclShapeSubject();if(e){this.form.classList.forEach((e=>{this.form.classList.remove(e)})),this.form.classList.toggle("mode-edit",this.config.editMode),this.form.classList.toggle("mode-view",!this.config.editMode),this.config.theme.apply(this.form);const t=[this.config.theme.stylesheet];for(const e of Object.entries(de).map((e=>e[1])))e.stylesheet&&t.push(e.stylesheet);if(this.shadowRoot.adoptedStyleSheets=t,this.shape=new be(e,this.config,this.config.attributes.valuesSubject?h.namedNode(this.config.attributes.valuesSubject):void 0),this.form.appendChild(this.shape),this.config.editMode){if(null!==this.config.attributes.submitButton){const e=this.config.theme.createButton(this.config.attributes.submitButton||"Submit",!0);e.addEventListener("click",(e=>{e.preventDefault(),this.form.reportValidity()&&this.validate().then((e=>{var t;e?this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0})):null===(t=this.form.querySelector(":scope .invalid > .editor"))||void 0===t||t.focus()}))})),this.form.appendChild(e)}yield this.validate(!0)}}else if(this.config.shapesGraph.size>0)throw new Error("shacl root node shape not found")}catch(e){console.error(e);const t=document.createElement("div");t.innerText=String(e),this.form.replaceChildren(t)}}))),200)}serialize(e="text/turtle",t=this.toRDF()){return function(e,t,n){if("application/ld+json"===t)return function(e){const t=[];for(const n of e){const e={"@id":n.subject.id};if(n.predicate===T)e["@type"]=n.object.id;else{let t=n.object.value;n.object instanceof N?n.object.language?t={"@language":n.object.language,"@value":n.object.value}:n.object.datatype&&n.object.datatype.value!==`${_}#string`&&(t={"@type":n.object.datatype.value,"@value":n.object.value}):t={"@id":n.object.id},e[n.predicate.value]=t}t.push(e)}return JSON.stringify(t)}(e);{const o=new oe({format:t,prefixes:n});o.addQuads(e);let a="";return o.end(((e,t)=>{e&&console.error(e),a=t})),a}}(t.getQuads(null,null,null,null),e,this.config.prefixes)}toRDF(e=new xe){var t;return null===(t=this.shape)||void 0===t||t.toRDF(e),e}registerPlugin(e){se(e),this.initialize()}setTheme(e){this.config.theme=e,this.initialize()}setClassInstanceProvider(e){this.config.classInstanceProvider=e,this.initialize()}validate(){return fo(this,arguments,void 0,(function*(e=!1){var t,n,o;for(const e of this.form.querySelectorAll(":scope .validation-error"))e.remove();for(const e of this.form.querySelectorAll(":scope .property-instance"))e.classList.remove("invalid"),(null===(t=e.querySelector(":scope > .editor"))||void 0===t?void 0:t.value)?e.classList.add("valid"):e.classList.remove("valid");this.config.shapesGraph.deleteGraph(""),null===(n=this.shape)||void 0===n||n.toRDF(this.config.shapesGraph);try{const t=yield new po(this.config.shapesGraph).validate(this.config.shapesGraph);for(const n of t.results){const t=n.focusNode;if(n.path){const o=n.path;let a=this.form.querySelectorAll(`:scope [data-node-id='${t.id}'] [data-path='${o.id}'] > .editor`);0===a.length&&(a=this.form.querySelectorAll(`:scope [data-node-id='${t.id}'] [data-path='${o.id}']`));for(const t of a)if(t.classList.contains("editor")){if(!e||t.value){let e=t.parentElement;e.classList.add("invalid"),e.classList.remove("valid"),e.appendChild(this.createValidationErrorDisplay(n));do{e.classList.contains("collapsible")&&e.classList.add("open"),e=e.parentElement}while(e)}}else e||(t.classList.add("invalid"),t.classList.remove("valid"),t.appendChild(this.createValidationErrorDisplay(n,"node")))}else e||null===(o=this.form.querySelector(`:scope [data-node-id='${t.id}']`))||void 0===o||o.prepend(this.createValidationErrorDisplay(n,"node"))}return t.conforms}catch(e){return console.error(e),!1}}))}createValidationErrorDisplay(e,t){var n,o;const a=document.createElement("span");if(a.classList.add("validation-error"),t&&a.classList.add(t),e)if((null===(n=e.message)||void 0===n?void 0:n.length)>0)for(const t of e.message)a.title+=t.value+"\n";else a.title=null===(o=e.sourceConstraintComponent)||void 0===o?void 0:o.value;return a}findRootShaclShapeSubject(){let e=null;if(this.config.attributes.shapeSubject){if(e=h.namedNode(this.config.attributes.shapeSubject),!this.config.shapesGraph.has(new $(e,T,P,I)))return void console.warn(`shapes graph does not contain requested root shape ${this.config.attributes.shapeSubject}`)}else if(this.config.attributes.valuesSubject&&this.config.dataGraph.size>0){const t=h.namedNode(this.config.attributes.valuesSubject),n=this.config.dataGraph.getQuads(t,T,null,null);if(0===n.length)return void console.warn(`value subject '${this.config.attributes.valuesSubject}' has no ${T.id} statement`);for(const t of n)if(this.config.shapesGraph.has(new $(t.object,T,P,I))){e=t.object;break}if(!e){const t=this.config.shapesGraph.getQuads(null,O,n[0].object,I);if(0===t.length)return void console.error(`value subject '${this.config.attributes.valuesSubject}' has no shacl shape definition in the shapes graph`);if(t.length>1&&console.warn(`value subject '${this.config.attributes.valuesSubject}' has multiple shacl shape definitions in the shapes graph, choosing the first found (${t[0].subject})`),0===this.config.shapesGraph.getQuads(t[0].subject,T,P,I).length)return void console.error(`value subject '${this.config.attributes.valuesSubject}' references a shape which is not a NodeShape (${t[0].subject})`);e=t[0].subject}}else{const t=this.config.shapesGraph.getQuads(null,T,P,I);if(0==t.length)return void console.warn("shapes graph does not contain any root shapes");t.length>1&&(console.warn("shapes graph contains",t.length,"root shapes. choosing first found which is",t[0].subject.value),console.info('hint: set the shape to use with attribute "data-shape-subject"')),e=t[0].subject}return e}}function go(e,t,n,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var d=e.length-1;d>=0;d--)(a=e[d])&&(i=(r<3?a(i):r>3?a(t,n,i):a(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const vo=e=>(t,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},yo=globalThis,bo=yo.ShadowRoot&&(void 0===yo.ShadyCSS||yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$o=Symbol(),xo=new WeakMap;class wo{constructor(e,t,n){if(this._$cssResult$=!0,n!==$o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(bo&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=xo.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&xo.set(t,e))}return e}toString(){return this.cssText}}const _o=(e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[o+1]),e[0]);return new wo(n,e,$o)},Co=bo?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new wo("string"==typeof e?e:e+"",void 0,$o))(t)})(e):e,{is:So,defineProperty:qo,getOwnPropertyDescriptor:Eo,getOwnPropertyNames:Io,getOwnPropertySymbols:Ao,getPrototypeOf:To}=Object,Ro=globalThis,Lo=Ro.trustedTypes,ko=Lo?Lo.emptyScript:"",Po=Ro.reactiveElementPolyfillSupport,jo=(e,t)=>e,Oo={toAttribute(e,t){switch(t){case Boolean:e=e?ko:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},Do=(e,t)=>!So(e,t),Mo={attribute:!0,type:String,converter:Oo,reflect:!1,hasChanged:Do};Symbol.metadata??=Symbol("metadata"),Ro.litPropertyMetadata??=new WeakMap;class Bo extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Mo){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(e,n,t);void 0!==o&&qo(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:a}=Eo(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return o?.call(this)},set(t){const r=o?.call(this);a.call(this,t),this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Mo}static _$Ei(){if(this.hasOwnProperty(jo("elementProperties")))return;const e=To(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(jo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jo("properties"))){const e=this.properties,t=[...Io(e),...Ao(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(Co(e))}else void 0!==e&&t.push(Co(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(bo)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),o=yo.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=n.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(void 0!==o&&!0===n.reflect){const a=(void 0!==n.converter?.toAttribute?n.converter:Oo).toAttribute(t,n.type);this._$Em=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(e,t){const n=this.constructor,o=n._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=n.getPropertyOptions(o),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:Oo;this._$Em=o,this[o]=a.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Do)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e)!0!==n.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}Bo.elementStyles=[],Bo.shadowRootOptions={mode:"open"},Bo[jo("elementProperties")]=new Map,Bo[jo("finalized")]=new Map,Po?.({ReactiveElement:Bo}),(Ro.reactiveElementVersions??=[]).push("2.0.4");const Fo={attribute:!0,type:String,converter:Oo,reflect:!1,hasChanged:Do},Vo=(e=Fo,t,n)=>{const{kind:o,metadata:a}=n;let r=globalThis.litPropertyMetadata.get(a);if(void 0===r&&globalThis.litPropertyMetadata.set(a,r=new Map),r.set(n.name,e),"accessor"===o){const{name:o}=n;return{set(n){const a=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,a,e)},init(t){return void 0!==t&&this.P(o,void 0,e),t}}}if("setter"===o){const{name:o}=n;return function(n){const a=this[o];t.call(this,n),this.requestUpdate(o,a,e)}}throw Error("Unsupported decorator location: "+o)};function Uo(e){return(t,n)=>"object"==typeof n?Vo(e,t,n):((e,t,n)=>{const o=t.hasOwnProperty(n);return t.constructor.createProperty(n,o?{...e,wrapped:!0}:e),o?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function zo(e){return Uo({...e,state:!0,attribute:!1})}const Qo=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function Go(e,t){return(n,o,a)=>{const r=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?n:a??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Qo(n,o,{get(){let n=e.call(this);return void 0===n&&(n=r(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return Qo(n,o,{get(){return r(this)}})}}let Ho;function Jo(e){return(t,n)=>{const{slot:o,selector:a}=e??{},r="slot"+(o?`[name=${o}]`:":not([name])");return Qo(t,n,{get(){const t=this.renderRoot?.querySelector(r),n=t?.assignedElements(e)??[];return void 0===a?n:n.filter((e=>e.matches(a)))}})}}const Wo=globalThis,Ko=Wo.trustedTypes,Xo=Ko?Ko.createPolicy("lit-html",{createHTML:e=>e}):void 0,Yo="$lit$",Zo=`lit$${Math.random().toFixed(9).slice(2)}$`,ea="?"+Zo,ta=`<${ea}>`,na=document,oa=()=>na.createComment(""),aa=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ra=Array.isArray,ia=e=>ra(e)||"function"==typeof e?.[Symbol.iterator],da="[ \t\n\f\r]",sa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,la=/-->/g,ua=/>/g,ca=RegExp(`>|${da}(?:([^\\s"'>=/]+)(${da}*=${da}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ma=/'/g,ha=/"/g,pa=/^(?:script|style|textarea|title)$/i,fa=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Na=fa(1),ga=fa(2),va=Symbol.for("lit-noChange"),ya=Symbol.for("lit-nothing"),ba=new WeakMap,$a=na.createTreeWalker(na,129);function xa(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Xo?Xo.createHTML(t):t}const wa=(e,t)=>{const n=e.length-1,o=[];let a,r=2===t?"<svg>":"",i=sa;for(let t=0;t<n;t++){const n=e[t];let d,s,l=-1,u=0;for(;u<n.length&&(i.lastIndex=u,s=i.exec(n),null!==s);)u=i.lastIndex,i===sa?"!--"===s[1]?i=la:void 0!==s[1]?i=ua:void 0!==s[2]?(pa.test(s[2])&&(a=RegExp("</"+s[2],"g")),i=ca):void 0!==s[3]&&(i=ca):i===ca?">"===s[0]?(i=a??sa,l=-1):void 0===s[1]?l=-2:(l=i.lastIndex-s[2].length,d=s[1],i=void 0===s[3]?ca:'"'===s[3]?ha:ma):i===ha||i===ma?i=ca:i===la||i===ua?i=sa:(i=ca,a=void 0);const c=i===ca&&e[t+1].startsWith("/>")?" ":"";r+=i===sa?n+ta:l>=0?(o.push(d),n.slice(0,l)+Yo+n.slice(l)+Zo+c):n+Zo+(-2===l?t:c)}return[xa(e,r+(e[n]||"<?>")+(2===t?"</svg>":"")),o]};class _a{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let a=0,r=0;const i=e.length-1,d=this.parts,[s,l]=wa(e,t);if(this.el=_a.createElement(s,n),$a.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=$a.nextNode())&&d.length<i;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(Yo)){const t=l[r++],n=o.getAttribute(e).split(Zo),i=/([.?@])?(.*)/.exec(t);d.push({type:1,index:a,name:i[2],strings:n,ctor:"."===i[1]?Ia:"?"===i[1]?Aa:"@"===i[1]?Ta:Ea}),o.removeAttribute(e)}else e.startsWith(Zo)&&(d.push({type:6,index:a}),o.removeAttribute(e));if(pa.test(o.tagName)){const e=o.textContent.split(Zo),t=e.length-1;if(t>0){o.textContent=Ko?Ko.emptyScript:"";for(let n=0;n<t;n++)o.append(e[n],oa()),$a.nextNode(),d.push({type:2,index:++a});o.append(e[t],oa())}}}else if(8===o.nodeType)if(o.data===ea)d.push({type:2,index:a});else{let e=-1;for(;-1!==(e=o.data.indexOf(Zo,e+1));)d.push({type:7,index:a}),e+=Zo.length-1}a++}}static createElement(e,t){const n=na.createElement("template");return n.innerHTML=e,n}}function Ca(e,t,n=e,o){if(t===va)return t;let a=void 0!==o?n._$Co?.[o]:n._$Cl;const r=aa(t)?void 0:t._$litDirective$;return a?.constructor!==r&&(a?._$AO?.(!1),void 0===r?a=void 0:(a=new r(e),a._$AT(e,n,o)),void 0!==o?(n._$Co??=[])[o]=a:n._$Cl=a),void 0!==a&&(t=Ca(e,a._$AS(e,t.values),a,o)),t}class Sa{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,o=(e?.creationScope??na).importNode(t,!0);$a.currentNode=o;let a=$a.nextNode(),r=0,i=0,d=n[0];for(;void 0!==d;){if(r===d.index){let t;2===d.type?t=new qa(a,a.nextSibling,this,e):1===d.type?t=new d.ctor(a,d.name,d.strings,this,e):6===d.type&&(t=new Ra(a,this,e)),this._$AV.push(t),d=n[++i]}r!==d?.index&&(a=$a.nextNode(),r++)}return $a.currentNode=na,o}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class qa{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=ya,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ca(this,e,t),aa(e)?e===ya||null==e||""===e?(this._$AH!==ya&&this._$AR(),this._$AH=ya):e!==this._$AH&&e!==va&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):ia(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==ya&&aa(this._$AH)?this._$AA.nextSibling.data=e:this.T(na.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=_a.createElement(xa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new Sa(o,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=ba.get(e.strings);return void 0===t&&ba.set(e.strings,t=new _a(e)),t}k(e){ra(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,o=0;for(const a of e)o===t.length?t.push(n=new qa(this.S(oa()),this.S(oa()),this,this.options)):n=t[o],n._$AI(a),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Ea{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,a){this.type=1,this._$AH=ya,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ya}_$AI(e,t=this,n,o){const a=this.strings;let r=!1;if(void 0===a)e=Ca(this,e,t,0),r=!aa(e)||e!==this._$AH&&e!==va,r&&(this._$AH=e);else{const o=e;let i,d;for(e=a[0],i=0;i<a.length-1;i++)d=Ca(this,o[n+i],t,i),d===va&&(d=this._$AH[i]),r||=!aa(d)||d!==this._$AH[i],d===ya?e=ya:e!==ya&&(e+=(d??"")+a[i+1]),this._$AH[i]=d}r&&!o&&this.j(e)}j(e){e===ya?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ia extends Ea{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ya?void 0:e}}class Aa extends Ea{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ya)}}class Ta extends Ea{constructor(e,t,n,o,a){super(e,t,n,o,a),this.type=5}_$AI(e,t=this){if((e=Ca(this,e,t,0)??ya)===va)return;const n=this._$AH,o=e===ya&&n!==ya||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==ya&&(n===ya||o);o&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Ra{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ca(this,e)}}const La={P:Yo,A:Zo,C:ea,M:1,L:wa,R:Sa,D:ia,V:Ca,I:qa,H:Ea,N:Aa,U:Ta,B:Ia,F:Ra},ka=Wo.litHtmlPolyfillSupport;ka?.(_a,qa),(Wo.litHtmlVersions??=[]).push("3.1.4");const Pa=(e,t,n)=>{const o=n?.renderBefore??t;let a=o._$litPart$;if(void 0===a){const e=n?.renderBefore??null;o._$litPart$=a=new qa(t.insertBefore(oa(),e),e,void 0,n??{})}return a._$AI(e),a};class ja extends Bo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pa(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return va}}ja._$litElement$=!0,ja.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ja});const Oa=globalThis.litElementPolyfillSupport;Oa?.({LitElement:ja}),(globalThis.litElementVersions??=[]).push("4.0.6");const Da=e=>(...t)=>({_$litDirective$:e,values:t});class Ma{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Ba=Da(class extends Ma{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const o=!!t[e];o===this.st.has(e)||this.nt?.has(e)||(o?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return va}}),Fa="cubic-bezier(0.2, 0, 0, 1)",Va="cubic-bezier(.3,0,0,1)",Ua="cubic-bezier(.3,0,.8,.15)";class za extends ja{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,t=this.max??-1;return e<0||t<=0?"":`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&void 0!==e.get("disabled")&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){const e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),o={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return Na`
3
3
  <div class="field ${Ba(o)}">
4
4
  <div class="container-overflow">
5
5
  ${this.renderBackground?.()} ${this.renderIndicator?.()} ${n}