!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jsonld=t():e.jsonld=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=228)}([function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=r(3),a=r(52).f,o=r(50),i=r(31),s=r(135),u=r(175),c=r(114);e.exports=function(e,t){var r,l,f,d,p,v=e.target,h=e.global,y=e.stat;if(r=h?n:y?n[v]||s(v,{}):(n[v]||{}).prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=a(r,l))&&p.value:r[l],!c(h?l:v+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),i(r,l,d,e)}}},function(e,t,r){"use strict";var n=r(88),a=Function.prototype,o=a.call,i=n&&a.bind.bind(o,o);e.exports=n?i:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,r){"use strict";(function(t){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,r(168))},function(e,t,r){"use strict";var n=r(138),a=r(31),o=r(251);n||a(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n=r(170),a=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},function(e,t,r){"use strict";var n,a,o,i=r(210),s=r(10),u=r(3),c=r(5),l=r(12),f=r(13),d=r(61),p=r(66),v=r(50),h=r(31),y=r(57),g=r(54),x=r(99),b=r(83),m=r(8),w=r(91),k=r(41),j=k.enforce,S=k.get,O=u.Int8Array,I=O&&O.prototype,E=u.Uint8ClampedArray,A=E&&E.prototype,T=O&&x(O),N=I&&x(I),R=Object.prototype,_=u.TypeError,D=m("toStringTag"),L=w("TYPED_ARRAY_TAG"),C=i&&!!b&&"Opera"!==d(u.opera),M=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=x(e);if(l(t)){var r=S(t);return r&&f(r,"TypedArrayConstructor")?r.TypedArrayConstructor:B(t)}},J=function(e){if(!l(e))return!1;var t=d(e);return f(P,t)||f(F,t)};for(n in P)(o=(a=u[n])&&a.prototype)?j(o).TypedArrayConstructor=a:C=!1;for(n in F)(o=(a=u[n])&&a.prototype)&&(j(o).TypedArrayConstructor=a);if((!C||!c(T)||T===Function.prototype)&&(T=function(){throw new _("Incorrect invocation")},C))for(n in P)u[n]&&b(u[n],T);if((!C||!N||N===R)&&(N=T.prototype,C))for(n in P)u[n]&&b(u[n].prototype,N);if(C&&x(A)!==N&&b(A,N),s&&!f(N,D))for(n in M=!0,y(N,D,{configurable:!0,get:function(){return l(this)?this[L]:void 0}}),P)u[n]&&v(u[n],L,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:M&&L,aTypedArray:function(e){if(J(e))return e;throw new _("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||g(T,e)))return e;throw new _(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var a in P){var o=u[a];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}N[e]&&!r||h(N,e,r?t:C&&I[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(s){if(b){if(r)for(n in P)if((a=u[n])&&f(a,e))try{delete a[e]}catch(e){}if(T[e]&&!r)return;try{return h(T,e,r?t:C&&T[e]||t)}catch(e){}}for(n in P)!(a=u[n])||a[e]&&!r||h(a,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(P,t)||f(F,t)},isTypedArray:J,TypedArray:T,TypedArrayPrototype:N}},function(e,t,r){"use strict";var n=r(88),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},function(e,t,r){"use strict";var n=r(3),a=r(79),o=r(13),i=r(91),s=r(76),u=r(171),c=n.Symbol,l=a("wks"),f=u?c.for||c:c&&c.withoutSetter||i;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){"use strict";var n=r(35),a=r(141),o=r(98),i=r(41),s=r(30).f,u=r(145),c=r(146),l=r(48),f=r(10),d=i.set,p=i.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var v=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},function(e,t,r){"use strict";var n=r(5),a=r(170),o=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){"use strict";var n=r(2),a=r(21),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(a(e),t)}},function(e,t,r){"use strict";var n=r(3),a=r(184),o=r(185),i=r(11),s=r(50),u=r(62),c=r(8)("iterator"),l=i.values,f=function(e,t){if(e){if(e[c]!==l)try{s(e,c,l)}catch(t){e[c]=l}if(u(e,t,!0),a[t])for(var r in i)if(e[r]!==i[r])try{s(e,r,i[r])}catch(t){e[r]=i[r]}}};for(var d in a)f(n[d]&&n[d].prototype,d);f(o,"DOMTokenList")},function(e,t,r){"use strict";var n=r(12),a=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not an object")}},function(e,t,r){"use strict";var n=r(61),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},function(e,t,r){"use strict";var n=r(193).charAt,a=r(16),o=r(41),i=r(145),s=r(146),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){u(this,{type:"String Iterator",string:a(e),index:0})}),(function(){var e,t=c(this),r=t.string,a=t.index;return a>=r.length?s(void 0,!0):(e=n(r,a),t.index+=e.length,s(e,!1))}))},function(e,t,r){"use strict";var n=r(1),a=r(126);n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},function(e,t,r){"use strict";r(230),r(237),r(238),r(117),r(240)},function(e,t,r){"use strict";var n=r(49);e.exports=function(e){return n(e.length)}},function(e,t,r){"use strict";var n=r(39),a=Object;e.exports=function(e){return a(n(e))}},function(e,t,r){"use strict";var n=r(1),a=r(96),o=r(116),i=r(12),s=r(68),u=r(20),c=r(35),l=r(69),f=r(8),d=r(97),p=r(70),v=d("slice"),h=f("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var r,n,f,d=c(this),v=u(d),x=s(e,v),b=s(void 0===t?v:t,v);if(a(d)&&(r=d.constructor,(o(r)&&(r===y||a(r.prototype))||i(r)&&null===(r=r[h]))&&(r=void 0),r===y||void 0===r))return p(d,x,b);for(n=new(void 0===r?y:r)(g(b-x,0)),f=0;x<b;x++,f++)x in d&&l(n,f,d[x]);return n.length=f,n}})},function(e,t,r){"use strict";var n=r(92).PROPER,a=r(31),o=r(15),i=r(16),s=r(0),u=r(200),c=RegExp.prototype.toString,l=s((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),f=n&&"toString"!==c.name;(l||f)&&a(RegExp.prototype,"toString",(function(){var e=o(this);return"/"+i(e.source)+"/"+i(u(e))}),{unsafe:!0})},function(e,t,r){"use strict";r(18);var n,a,o=r(1),i=r(7),s=r(5),u=r(15),c=r(16),l=(n=!1,(a=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===a.test("abc")&&n),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=u(this),r=c(e),n=t.exec;if(!s(n))return i(f,t,r);var a=i(n,t,r);return null!==a&&(u(a),!0)}})},function(e,t,r){"use strict";var n=r(1),a=r(10),o=r(3),i=r(2),s=r(13),u=r(5),c=r(54),l=r(16),f=r(57),d=r(175),p=o.Symbol,v=p&&p.prototype;if(a&&u(p)&&(!("description"in v)||void 0!==p().description)){var h={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(v,this)?new p(e):void 0===e?p():p(e);return""===e&&(h[t]=!0),t};d(y,p),y.prototype=v,v.constructor=y;var g="Symbol(description detection)"===String(p("description detection")),x=i(v.valueOf),b=i(v.toString),m=/^Symbol\((.*)\)[^)]+$/,w=i("".replace),k=i("".slice);f(v,"description",{configurable:!0,get:function(){var e=x(this);if(s(h,e))return"";var t=b(e),r=g?k(t,7,-1):w(t,m,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},function(e,t,r){"use strict";r(182)("iterator")},function(e,t,r){"use strict";var n=r(10),a=r(92).EXISTS,o=r(2),i=r(57),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);n&&!a&&i(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(1),a=r(2),o=r(40),i=r(21),s=r(20),u=r(152),c=r(16),l=r(0),f=r(194),d=r(119),p=r(195),v=r(196),h=r(77),y=r(197),g=[],x=a(g.sort),b=a(g.push),m=l((function(){g.sort(void 0)})),w=l((function(){g.sort(null)})),k=d("sort"),j=!l((function(){if(h)return h<70;if(!(p&&p>3)){if(v)return!0;if(y)return y<603;var e,t,r,n,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)g.push({k:t+n,v:r})}for(g.sort((function(e,t){return t.v-e.v})),n=0;n<g.length;n++)t=g[n].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}}));n({target:"Array",proto:!0,forced:m||!w||!k||!j},{sort:function(e){void 0!==e&&o(e);var t=i(this);if(j)return void 0===e?x(t):x(t,e);var r,n,a=[],l=s(t);for(n=0;n<l;n++)n in t&&b(a,t[n]);for(f(a,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:c(t)>c(r)?1:-1}}(e)),r=s(a),n=0;n<r;)t[n]=a[n++];for(;n<l;)u(t,n++);return t}})},function(e,t,r){"use strict";var n=r(1),a=r(267);n({target:"Array",stat:!0,forced:!r(125)((function(e){Array.from(e)}))},{from:a})},function(e,t,r){"use strict";var n=r(10),a=r(172),o=r(173),i=r(15),s=r(89),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?o?function(e,t,r){if(i(e),t=s(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(i(e),t=s(t),i(r),a)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var n=r(5),a=r(30),o=r(174),i=r(135);e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&o(r,c,s),s.global)u?e[t]=r:i(t,r);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,r){"use strict";var n=r(1),a=r(21),o=r(94);n({target:"Object",stat:!0,forced:r(0)((function(){o(1)}))},{keys:function(e){return o(a(e))}})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(198);function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(75),a=r(39);e.exports=function(e){return n(a(e))}},function(e,t,r){"use strict";var n=r(63),a=r(2),o=r(75),i=r(21),s=r(20),u=r(139),c=a([].push),l=function(e){var t=1===e,r=2===e,a=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(v,h,y,g){for(var x,b,m=i(v),w=o(m),k=s(w),j=n(h,y),S=0,O=g||u,I=t?O(v,k):r||d?O(v,0):void 0;k>S;S++)if((p||S in w)&&(b=j(x=w[S],S,m),e))if(t)I[S]=b;else if(b)switch(e){case 3:return!0;case 5:return x;case 6:return S;case 2:c(I,x)}else switch(e){case 4:return!1;case 7:c(I,x)}return f?-1:a||l?l:I}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,r){var n=r(244)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";r(4),r(23),r(32);var n={};e.exports=n,n.isArray=Array.isArray,n.isBoolean=function(e){return"boolean"==typeof e||"[object Boolean]"===Object.prototype.toString.call(e)},n.isDouble=function(e){return n.isNumber(e)&&(-1!==String(e).indexOf(".")||Math.abs(e)>=1e21)},n.isEmptyObject=function(e){return n.isObject(e)&&0===Object.keys(e).length},n.isNumber=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},n.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},n.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},n.isString=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},n.isUndefined=function(e){return void 0===e}},function(e,t,r){"use strict";var n=r(53),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},function(e,t,r){"use strict";var n=r(5),a=r(66),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not a function")}},function(e,t,r){"use strict";var n,a,o,i=r(232),s=r(3),u=r(12),c=r(50),l=r(13),f=r(134),d=r(111),p=r(93),v=s.TypeError,h=s.WeakMap;if(i||f.state){var y=f.state||(f.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new v("Object already initialized");return t.facade=e,y.set(e,t),t},a=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var g=d("state");p[g]=!0,n=function(e,t){if(l(e,g))throw new v("Object already initialized");return t.facade=e,c(e,g,t),t},a=function(e){return l(e,g)?e[g]:{}},o=function(e){return l(e,g)}}e.exports={set:n,get:a,has:o,enforce:function(e){return o(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=a(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){"use strict";var n=r(233);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},function(e,t){function r(e,t,r,n,a,o,i){try{var s=e[o](i),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function s(e){r(i,a,o,s,u,"next",e)}function u(e){r(i,a,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r(22),r(27),r(29),r(24),r(19),r(25),r(26);var n=r(9);r(11),r(51),r(4),r(17),r(14),r(84),r(23),r(32),r(153),r(18),r(86),r(87),r(71),r(28);var a=n(r(132)),o=n(r(59));function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=r(60),c=r(38),l=r(154).IdentifierIssuer,f=r(45),d=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,p=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,v=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,h={accept:"application/ld+json, application/json"},y={};e.exports=y,y.IdentifierIssuer=l,y.REGEX_BCP47=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,y.REGEX_KEYWORD=/^@[a-zA-Z]+$/,y.clone=function(e){if(e&&"object"===(0,o.default)(e)){var t;if(c.isArray(e)){t=[];for(var r=0;r<e.length;++r)t[r]=y.clone(e[r])}else if(e instanceof Map){t=new Map;var n,s=i(e);try{for(s.s();!(n=s.n()).done;){var u=(0,a.default)(n.value,2),l=u[0],f=u[1];t.set(l,y.clone(f))}}catch(e){s.e(e)}finally{s.f()}}else if(e instanceof Set){t=new Set;var d,p=i(e);try{for(p.s();!(d=p.n()).done;){var v=d.value;t.add(y.clone(v))}}catch(e){p.e(e)}finally{p.f()}}else if(c.isObject(e))for(var h in t={},e)t[h]=y.clone(e[h]);else t=e.toString();return t}return e},y.asArray=function(e){return Array.isArray(e)?e:[e]},y.buildHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).some((function(e){return"accept"===e.toLowerCase()}));if(t)throw new RangeError('Accept header may not be specified; only "'+h.accept+'" is supported.');return Object.assign({Accept:h.accept},e)},y.parseLinkHeader=function(e){for(var t={},r=e.match(d),n=0;n<r.length;++n){var a=r[n].match(p);if(a){for(var o={target:a[1]},i=a[2];a=v.exec(i);)o[a[1]]=void 0===a[2]?a[3]:a[2];var s=o.rel||"";Array.isArray(t[s])?t[s].push(o):t.hasOwnProperty(s)?t[s]=[t[s],o]:t[s]=o}}return t},y.validateTypeValue=function(e,t){if(!(c.isString(e)||c.isArray(e)&&e.every((function(e){return c.isString(e)})))){if(t&&c.isObject(e))switch(Object.keys(e).length){case 0:return;case 1:if("@default"in e&&y.asArray(e["@default"]).every((function(e){return c.isString(e)})))return}throw new f('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})}},y.hasProperty=function(e,t){if(e.hasOwnProperty(t)){var r=e[t];return!c.isArray(r)||r.length>0}return!1},y.hasValue=function(e,t,r){if(y.hasProperty(e,t)){var n=e[t],a=u.isList(n);if(c.isArray(n)||a){a&&(n=n["@list"]);for(var o=0;o<n.length;++o)if(y.compareValues(r,n[o]))return!0}else if(!c.isArray(r))return y.compareValues(r,n)}return!1},y.addValue=function(e,t,r,n){if("propertyIsArray"in(n=n||{})||(n.propertyIsArray=!1),"valueIsArray"in n||(n.valueIsArray=!1),"allowDuplicate"in n||(n.allowDuplicate=!0),"prependValue"in n||(n.prependValue=!1),n.valueIsArray)e[t]=r;else if(c.isArray(r)){0===r.length&&n.propertyIsArray&&!e.hasOwnProperty(t)&&(e[t]=[]),n.prependValue&&(r=r.concat(e[t]),e[t]=[]);for(var a=0;a<r.length;++a)y.addValue(e,t,r[a],n)}else if(e.hasOwnProperty(t)){var o=!n.allowDuplicate&&y.hasValue(e,t,r);c.isArray(e[t])||o&&!n.propertyIsArray||(e[t]=[e[t]]),o||(n.prependValue?e[t].unshift(r):e[t].push(r))}else e[t]=n.propertyIsArray?[r]:r},y.getValues=function(e,t){return[].concat(e[t]||[])},y.removeProperty=function(e,t){delete e[t]},y.removeValue=function(e,t,r,n){"propertyIsArray"in(n=n||{})||(n.propertyIsArray=!1);var a=y.getValues(e,t).filter((function(e){return!y.compareValues(e,r)}));0===a.length?y.removeProperty(e,t):1!==a.length||n.propertyIsArray?e[t]=a:e[t]=a[0]},y.relabelBlankNodes=function(e,t){return function e(t,r){if(c.isArray(r))for(var n=0;n<r.length;++n)r[n]=e(t,r[n]);else if(u.isList(r))r["@list"]=e(t,r["@list"]);else if(c.isObject(r)){u.isBlankNode(r)&&(r["@id"]=t.getId(r["@id"]));for(var a=Object.keys(r).sort(),o=0;o<a.length;++o){var i=a[o];"@id"!==i&&(r[i]=e(t,r[i]))}}return r}((t=t||{}).issuer||new l("_:b"),e)},y.compareValues=function(e,t){return e===t||(!(!u.isValue(e)||!u.isValue(t)||e["@value"]!==t["@value"]||e["@type"]!==t["@type"]||e["@language"]!==t["@language"]||e["@index"]!==t["@index"])||!!(c.isObject(e)&&"@id"in e&&c.isObject(t)&&"@id"in t)&&e["@id"]===t["@id"])},y.compareShortestLeast=function(e,t){return e.length<t.length?-1:t.length<e.length?1:e===t?0:e<t?-1:1}},function(e,t,r){"use strict";r(4),r(162),r(163);var n=r(9);r(27);var a=n(r(34)),o=n(r(33)),i=n(r(164)),s=n(r(166)),u=n(r(131)),c=n(r(344));function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}e.exports=function(e){(0,i.default)(r,e);var t=l(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"An unspecified JSON-LD error occurred.",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jsonld.Error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.default)(this,r),(e=t.call(this,n)).name=a,e.message=n,e.details=i,e}return(0,a.default)(r)}((0,c.default)(Error))},function(e,t,r){"use strict";var n=r(2),a=n({}.toString),o=n("".slice);e.exports=function(e){return o(a(e),8,-1)}},function(e,t,r){"use strict";var n=r(3),a=r(5),o=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";var n=r(42),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t,r){"use strict";var n=r(10),a=r(30),o=r(74);e.exports=n?function(e,t,r){return a.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";r(269)},function(e,t,r){"use strict";var n=r(10),a=r(7),o=r(109),i=r(74),s=r(35),u=r(89),c=r(13),l=r(172),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return i(!a(o.f,e,t),e[t])}},function(e,t,r){"use strict";e.exports=function(e){return null==e}},function(e,t,r){"use strict";var n=r(2);e.exports=n({}.isPrototypeOf)},function(e,t,r){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,r){"use strict";var n,a=r(15),o=r(178),i=r(137),s=r(93),u=r(179),c=r(110),l=r(111),f=l("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?v(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):v(n);for(var r=i.length;r--;)delete h.prototype[i[r]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d.prototype=a(e),r=new d,d.prototype=null,r[f]=e):r=h(),void 0===t?r:o.f(r,t)}},function(e,t,r){"use strict";var n=r(174),a=r(30);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},function(e,t,r){"use strict";var n=r(88),a=Function.prototype,o=a.apply,i=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r(32),r(71),r(4);var n=r(38),a={};e.exports=a,a.isSubject=function(e){return!(!n.isObject(e)||"@value"in e||"@set"in e||"@list"in e)&&(Object.keys(e).length>1||!("@id"in e))},a.isSubjectReference=function(e){return n.isObject(e)&&1===Object.keys(e).length&&"@id"in e},a.isValue=function(e){return n.isObject(e)&&"@value"in e},a.isList=function(e){return n.isObject(e)&&"@list"in e},a.isGraph=function(e){return n.isObject(e)&&"@graph"in e&&1===Object.keys(e).filter((function(e){return"@id"!==e&&"@index"!==e})).length},a.isSimpleGraph=function(e){return a.isGraph(e)&&!("@id"in e)},a.isBlankNode=function(e){if(n.isObject(e)){if("@id"in e){var t=e["@id"];return!n.isString(t)||0===t.indexOf("_:")}return 0===Object.keys(e).length||!("@value"in e||"@set"in e||"@list"in e)}return!1}},function(e,t,r){"use strict";var n=r(138),a=r(5),o=r(46),i=r(8)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),i))?r:u?o(t):"Object"===(n=o(t))&&a(t.callee)?"Arguments":n}},function(e,t,r){"use strict";var n=r(30).f,a=r(13),o=r(8)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a(e,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(95),a=r(40),o=r(88),i=n(n.bind);e.exports=function(e,t){return a(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";r(252),r(258),r(259),r(260),r(261),r(262)},function(e,t,r){"use strict";r(18),r(11),r(4),r(14),r(130),r(106),r(24);var n=r(38),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=function(e,t){for(var r={},n=a.parsers[t||"full"],o=n.regex.exec(e),i=n.keys.length;i--;)r[n.keys[i]]=void 0===o[i]?null:o[i];return("https"===r.scheme&&"443"===r.port||"http"===r.scheme&&"80"===r.port)&&(r.href=r.href.replace(":"+r.port,""),r.authority=r.authority.replace(":"+r.port,""),r.port=null),r.normalizedPath=a.removeDotSegments(r.path),r},a.prependBase=function(e,t){if(null===e)return t;if(a.isAbsolute(t))return t;e&&!n.isString(e)||(e=a.parse(e||""));var r=a.parse(t),o={protocol:e.protocol||""};if(null!==r.authority)o.authority=r.authority,o.path=r.path,o.query=r.query;else if(o.authority=e.authority,""===r.path)o.path=e.path,null!==r.query?o.query=r.query:o.query=e.query;else{if(0===r.path.indexOf("/"))o.path=r.path;else{var i=e.path;((i=i.substr(0,i.lastIndexOf("/")+1)).length>0||e.authority)&&"/"!==i.substr(-1)&&(i+="/"),i+=r.path,o.path=i}o.query=r.query}""!==r.path&&(o.path=a.removeDotSegments(o.path));var s=o.protocol;return null!==o.authority&&(s+="//"+o.authority),s+=o.path,null!==o.query&&(s+="?"+o.query),null!==r.fragment&&(s+="#"+r.fragment),""===s&&(s="./"),s},a.removeBase=function(e,t){if(null===e)return t;e&&!n.isString(e)||(e=a.parse(e||""));var r="";if(""!==e.href?r+=(e.protocol||"")+"//"+(e.authority||""):t.indexOf("//")&&(r+="//"),0!==t.indexOf(r))return t;for(var o=a.parse(t.substr(r.length)),i=e.normalizedPath.split("/"),s=o.normalizedPath.split("/"),u=o.fragment||o.query?0:1;i.length>0&&s.length>u&&i[0]===s[0];)i.shift(),s.shift();var c="";if(i.length>0){i.pop();for(var l=0;l<i.length;++l)c+="../"}return c+=s.join("/"),null!==o.query&&(c+="?"+o.query),null!==o.fragment&&(c+="#"+o.fragment),""===c&&(c="./"),c},a.removeDotSegments=function(e){if(0===e.length)return"";for(var t=e.split("/"),r=[];t.length>0;){var n=t.shift(),a=0===t.length;"."!==n?".."!==n?r.push(n):(r.pop(),a&&r.push("")):a&&r.push("")}return"/"===e[0]&&r.length>0&&""!==r[0]&&r.unshift(""),1===r.length&&""===r[0]?"/":r.join("/")};var o=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;a.isAbsolute=function(e){return n.isString(e)&&o.test(e)},a.isRelative=function(e){return n.isString(e)}},function(e,t,r){"use strict";var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,r){"use strict";var n=r(177),a=r(137).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t,r){"use strict";var n=r(42),a=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):o(r,t)}},function(e,t,r){"use strict";var n=r(89),a=r(30),o=r(74);e.exports=function(e,t,r){var i=n(t);i in e?a.f(e,i,o(0,r)):e[i]=r}},function(e,t,r){"use strict";var n=r(2);e.exports=n([].slice)},function(e,t,r){"use strict";var n=r(1),a=r(36).filter;n({target:"Array",proto:!0,forced:!r(97)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(3),a=r(184),o=r(185),i=r(241),s=r(50),u=function(e){if(e&&e.forEach!==i)try{s(e,"forEach",i)}catch(t){e.forEach=i}};for(var c in a)a[c]&&u(n[c]&&n[c].prototype);u(o)},function(e,t,r){"use strict";r(19),r(71),r(118),r(72),r(120),r(27),r(29),r(24),r(25),r(26);var n=r(9),a=n(r(37)),o=n(r(59)),i=n(r(107)),s=n(r(105)),u=n(r(43));function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(11),r(51),r(4),r(17),r(14),r(84),r(32),r(18),r(86),r(81),r(82),r(106),r(87),r(117),r(28),r(23),r(22);var p=r(44),v=r(45),h=r(38),y=h.isArray,g=h.isObject,x=h.isString,b=h.isUndefined,m=r(65),w=m.isAbsolute,k=m.isRelative,j=m.prependBase,S=r(108).handleEvent,O=r(44),I=O.REGEX_BCP47,E=O.REGEX_KEYWORD,A=O.asArray,T=O.compareShortestLeast,N=new Map,R={};function _(e,t,r,n,a,o){if(null===t||!x(t)||R.isKeyword(t))return t;if(t.match(E))return null;if(n&&n.hasOwnProperty(t)&&!0!==a.get(t)&&R.createTermDefinition({activeCtx:e,localCtx:n,term:t,defined:a,options:o}),(r=r||{}).vocab){var i=e.mappings.get(t);if(null===i)return null;if(g(i)&&"@id"in i)return i["@id"]}var s=t.indexOf(":");if(s>0){var u=t.substr(0,s),c=t.substr(s+1);if("_"===u||0===c.indexOf("//"))return t;n&&n.hasOwnProperty(u)&&R.createTermDefinition({activeCtx:e,localCtx:n,term:u,defined:a,options:o});var l=e.mappings.get(u);if(l&&l._prefix)return l["@id"]+c;if(w(t))return t}if(r.vocab&&"@vocab"in e)t=e["@vocab"]+t;else if(r.base){var f,d;"@base"in e?e["@base"]?(d=j(o.base,e["@base"]),f=j(d,t)):(d=e["@base"],f=t):(d=o.base,f=j(o.base,t)),t=f}return t}e.exports=R,R.process=function(){var e=(0,u.default)(a.default.mark((function e(t){var r,n,o,i,s,u,l,f,p,h,b,m,O,E,T,N,D,L,C,M,P,F,B,J,U,H,V,q,G,z,W,$,K,Q,Y,X,Z,ee;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.activeCtx,n=t.localCtx,o=t.options,i=t.propagate,s=void 0===i||i,u=t.overrideProtected,l=void 0!==u&&u,f=t.cycles,p=void 0===f?new Set:f,g(n)&&"@context"in n&&y(n["@context"])&&(n=n["@context"]),0!==A(n).length){e.next=5;break}return e.abrupt("return",r);case 5:return h=[],b=[function(e){var t=e.event,r=e.next;h.push(t),r()}],o.eventHandler&&b.push(o.eventHandler),m=o,o=d(d({},o),{},{eventHandler:b}),e.next=12,o.contextResolver.resolve({activeCtx:r,context:n,documentLoader:o.documentLoader,base:o.base});case 12:O=e.sent,g(O[0].document)&&"boolean"==typeof O[0].document["@propagate"]&&(s=O[0].document["@propagate"]),E=r,s||E.previousContext||((E=E.clone()).previousContext=r),T=c(O),e.prev=17,T.s();case 19:if((N=T.n()).done){e.next=156;break}if(D=N.value,L=D.document,r=E,null!==L){e.next=28;break}if(l||0===Object.keys(r.protected).length){e.next=26;break}throw new v("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});case 26:return E=r=R.getInitialContext(o).clone(),e.abrupt("continue",154);case 28:if(!(C=D.getProcessed(r))){e.next=33;break}if(m.eventHandler){M=c(C.events);try{for(M.s();!(P=M.n()).done;)F=P.value,S({event:F,options:m})}catch(e){M.e(e)}finally{M.f()}}return E=r=C.context,e.abrupt("continue",154);case 33:if(g(L)&&"@context"in L&&(L=L["@context"]),g(L)){e.next=36;break}throw new v("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:L});case 36:if(E=E.clone(),B=new Map,!("@version"in L)){e.next=46;break}if(1.1===L["@version"]){e.next=41;break}throw new v("Unsupported JSON-LD version: "+L["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:L});case 41:if(!r.processingMode||"json-ld-1.0"!==r.processingMode){e.next=43;break}throw new v("@version: "+L["@version"]+" not compatible with "+r.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:L});case 43:E.processingMode="json-ld-1.1",E["@version"]=L["@version"],B.set("@version",!0);case 46:if(E.processingMode=E.processingMode||r.processingMode,!("@base"in L)){e.next=59;break}if(null!==(J=L["@base"])&&!w(J)){e.next=52;break}e.next=57;break;case 52:if(!k(J)){e.next=56;break}J=j(E["@base"],J),e.next=57;break;case 56:throw new v('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:L});case 57:E["@base"]=J,B.set("@base",!0);case 59:if(!("@vocab"in L)){e.next=77;break}if(null!==(U=L["@vocab"])){e.next=65;break}delete E["@vocab"],e.next=76;break;case 65:if(x(U)){e.next=69;break}throw new v('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:L});case 69:if(w(U)||!R.processingMode(E,1)){e.next=73;break}throw new v('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:L});case 73:H=_(E,U,{vocab:!0,base:!0},void 0,void 0,o),w(H)||o.eventHandler&&S({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:H}},options:o}),E["@vocab"]=H;case 76:B.set("@vocab",!0);case 77:if(!("@language"in L)){e.next=90;break}if(null!==(V=L["@language"])){e.next=83;break}delete E["@language"],e.next=89;break;case 83:if(x(V)){e.next=87;break}throw new v('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:L});case 87:V.match(I)||o.eventHandler&&S({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:V}},options:o}),E["@language"]=V.toLowerCase();case 89:B.set("@language",!0);case 90:if(!("@direction"in L)){e.next=104;break}if(q=L["@direction"],"json-ld-1.0"!==r.processingMode){e.next=94;break}throw new v("Invalid JSON-LD syntax; @direction not compatible with "+r.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:L});case 94:if(null!==q){e.next=98;break}delete E["@direction"],e.next=103;break;case 98:if("ltr"===q||"rtl"===q){e.next=102;break}throw new v('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:L});case 102:E["@direction"]=q;case 103:B.set("@direction",!0);case 104:if(!("@propagate"in L)){e.next=111;break}if(G=L["@propagate"],"json-ld-1.0"!==r.processingMode){e.next=108;break}throw new v("Invalid JSON-LD syntax; @propagate not compatible with "+r.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:L});case 108:if("boolean"==typeof G){e.next=110;break}throw new v("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:n});case 110:B.set("@propagate",!0);case 111:if(!("@import"in L)){e.next=133;break}if(z=L["@import"],"json-ld-1.0"!==r.processingMode){e.next=115;break}throw new v("Invalid JSON-LD syntax; @import not compatible with "+r.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:L});case 115:if(x(z)){e.next=117;break}throw new v("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:n});case 117:return e.next=119,o.contextResolver.resolve({activeCtx:r,context:z,documentLoader:o.documentLoader,base:o.base});case 119:if(1===(W=e.sent).length){e.next=122;break}throw new v("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:n});case 122:if(!($=W[0].getProcessed(r))){e.next=127;break}L=$,e.next=132;break;case 127:if(!("@import"in(K=W[0].document))){e.next=130;break}throw new v("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:n});case 130:for(Q in K)L.hasOwnProperty(Q)||(L[Q]=K[Q]);W[0].setProcessed(r,L);case 132:B.set("@import",!0);case 133:B.set("@protected",L["@protected"]||!1),e.t0=a.default.keys(L);case 135:if((e.t1=e.t0()).done){e.next=153;break}if(Y=e.t1.value,R.createTermDefinition({activeCtx:E,localCtx:L,term:Y,defined:B,options:o,overrideProtected:l}),!g(L[Y])||!("@context"in L[Y])){e.next=151;break}if(X=L[Y]["@context"],Z=!0,x(X)&&(ee=j(o.base,X),p.has(ee)?Z=!1:p.add(ee)),!Z){e.next=151;break}return e.prev=143,e.next=146,R.process({activeCtx:E.clone(),localCtx:L[Y]["@context"],overrideProtected:!0,options:o,cycles:p});case 146:e.next=151;break;case 148:throw e.prev=148,e.t2=e.catch(143),new v("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:L[Y]["@context"],term:Y});case 151:e.next=135;break;case 153:D.setProcessed(r,{context:E,events:h});case 154:e.next=19;break;case 156:e.next=161;break;case 158:e.prev=158,e.t3=e.catch(17),T.e(e.t3);case 161:return e.prev=161,T.f(),e.finish(161);case 164:return e.abrupt("return",E);case 165:case"end":return e.stop()}}),e,null,[[17,158,161,164],[143,148]])})));return function(t){return e.apply(this,arguments)}}(),R.createTermDefinition=function(e){var t,r=e.activeCtx,n=e.localCtx,a=e.term,i=e.defined,s=e.options,u=e.overrideProtected,c=void 0!==u&&u;if(i.has(a)){if(i.get(a))return;throw new v("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:n,term:a})}if(i.set(a,!1),n.hasOwnProperty(a)&&(t=n[a]),"@type"===a&&g(t)&&"@set"===(t["@container"]||"@set")&&R.processingMode(r,1.1)){var l=["@container","@id","@protected"],f=Object.keys(t);if(0===f.length||f.some((function(e){return!l.includes(e)})))throw new v("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:n,term:a})}else{if(R.isKeyword(a))throw new v("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:n,term:a});if(a.match(E))return void(s.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:a}},options:s}));if(""===a)throw new v("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:n})}var d=r.mappings.get(a);r.mappings.has(a)&&r.mappings.delete(a);var p=!1;if((x(t)||null===t)&&(p=!0,t={"@id":t}),!g(t))throw new v("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:n});var h={};r.mappings.set(a,h),h.reverse=!1;var b=["@container","@id","@language","@reverse","@type"];for(var m in R.processingMode(r,1.1)&&b.push("@context","@direction","@index","@nest","@prefix","@protected"),t)if(!b.includes(m))throw new v("Invalid JSON-LD syntax; a term definition must not contain "+m,"jsonld.SyntaxError",{code:"invalid term definition",context:n});var k=a.indexOf(":");if(h._termHasColon=k>0,"@reverse"in t){if("@id"in t)throw new v("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:n});if("@nest"in t)throw new v("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:n});var j=t["@reverse"];if(!x(j))throw new v("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n});if(j.match(E))return s.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:j}},options:s}),void(d?r.mappings.set(a,d):r.mappings.delete(a));var O=_(r,j,{vocab:!0,base:!1},n,i,s);if(!w(O))throw new v("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:n});h["@id"]=O,h.reverse=!0}else if("@id"in t){var I=t["@id"];if(I&&!x(I))throw new v("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n});if(null===I)h["@id"]=null;else{if(!R.isKeyword(I)&&I.match(E))return s.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:I}},options:s}),void(d?r.mappings.set(a,d):r.mappings.delete(a));if(I!==a){if(I=_(r,I,{vocab:!0,base:!1},n,i,s),!w(I)&&!R.isKeyword(I))throw new v("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:n});if(a.match(/(?::[^:])|\//))if(_(r,a,{vocab:!0,base:!1},n,new Map(i).set(a,!0),s)!==I)throw new v("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n});h["@id"]=I,h._prefix=p&&!h._termHasColon&&null!==I.match(/[:\/\?#\[\]@]$/)}}}if(!("@id"in h))if(h._termHasColon){var A=a.substr(0,k);if(n.hasOwnProperty(A)&&R.createTermDefinition({activeCtx:r,localCtx:n,term:A,defined:i,options:s}),r.mappings.has(A)){var T=a.substr(k+1);h["@id"]=r.mappings.get(A)["@id"]+T}else h["@id"]=a}else if("@type"===a)h["@id"]=a;else{if(!("@vocab"in r))throw new v("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n,term:a});h["@id"]=r["@vocab"]+a}if((!0===t["@protected"]||!0===i.get("@protected")&&!1!==t["@protected"])&&(r.protected[a]=!0,h.protected=!0),i.set(a,!0),"@type"in t){var N=t["@type"];if(!x(N))throw new v("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:n});if("@json"===N||"@none"===N){if(R.processingMode(r,1))throw new v("Invalid JSON-LD syntax; an @context @type value must not be "+'"'.concat(N,'" in JSON-LD 1.0 mode.'),"jsonld.SyntaxError",{code:"invalid type mapping",context:n})}else if("@id"!==N&&"@vocab"!==N){if(N=_(r,N,{vocab:!0,base:!1},n,i,s),!w(N))throw new v("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:n});if(0===N.indexOf("_:"))throw new v("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:n})}h["@type"]=N}if("@container"in t){var D=x(t["@container"])?[t["@container"]]:t["@container"]||[],L=["@list","@set","@index","@language"],C=!0,M=D.includes("@set");if(R.processingMode(r,1.1)){if(L.push("@graph","@id","@type"),D.includes("@list")){if(1!==D.length)throw new v("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:n})}else if(D.includes("@graph")){if(D.some((function(e){return"@graph"!==e&&"@id"!==e&&"@index"!==e&&"@set"!==e})))throw new v("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:n})}else C&=D.length<=(M?2:1);if(D.includes("@type")&&(h["@type"]=h["@type"]||"@id",!["@id","@vocab"].includes(h["@type"])))throw new v("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:n})}else C&=!y(t["@container"]),C&=D.length<=1;if(C&=D.every((function(e){return L.includes(e)})),!(C&=!(M&&D.includes("@list"))))throw new v("Invalid JSON-LD syntax; @context @container value must be one of the following: "+L.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:n});if(h.reverse&&!D.every((function(e){return["@index","@set"].includes(e)})))throw new v("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:n});h["@container"]=D}if("@index"in t){if(!("@container"in t)||!h["@container"].includes("@index"))throw new v("Invalid JSON-LD syntax; @index without @index in @container: "+'"'.concat(t["@index"],'" on term "').concat(a,'".'),"jsonld.SyntaxError",{code:"invalid term definition",context:n});if(!x(t["@index"])||0===t["@index"].indexOf("@"))throw new v("Invalid JSON-LD syntax; @index must expand to an IRI: "+'"'.concat(t["@index"],'" on term "').concat(a,'".'),"jsonld.SyntaxError",{code:"invalid term definition",context:n});h["@index"]=t["@index"]}if("@context"in t&&(h["@context"]=t["@context"]),"@language"in t&&!("@type"in t)){var P=t["@language"];if(null!==P&&!x(P))throw new v("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:n});null!==P&&(P=P.toLowerCase()),h["@language"]=P}if("@prefix"in t){if(a.match(/:|\//))throw new v("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:n});if(R.isKeyword(h["@id"]))throw new v("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:n});if("boolean"!=typeof t["@prefix"])throw new v("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:n});h._prefix=!0===t["@prefix"]}if("@direction"in t){var F=t["@direction"];if(null!==F&&"ltr"!==F&&"rtl"!==F)throw new v('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:n});h["@direction"]=F}if("@nest"in t){var B=t["@nest"];if(!x(B)||"@nest"!==B&&0===B.indexOf("@"))throw new v("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:n});h["@nest"]=B}
// disallow aliasing @context and @preserve
var J=h["@id"];if("@context"===J||"@preserve"===J)throw new v("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:n});if(d&&d.protected&&!c&&(r.protected[a]=!0,h.protected=!0,!function e(t,r){if(!t||"object"!==(0,o.default)(t)||!r||"object"!==(0,o.default)(r))return t===r;var n=Array.isArray(t);if(n!==Array.isArray(r))return!1;if(n){if(t.length!==r.length)return!1;for(var a=0;a<t.length;++a)if(!e(t[a],r[a]))return!1;return!0}var i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(var u in t){var c=t[u],l=r[u];if("@container"===u&&Array.isArray(c)&&Array.isArray(l)&&(c=c.slice().sort(),l=l.slice().sort()),!e(c,l))return!1}return!0}(d,h)))throw new v("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:n,term:a})},R.expandIri=function(e,t,r,n){return _(e,t,r,void 0,void 0,n)},R.getInitialContext=function(e){var t=JSON.stringify({processingMode:e.processingMode}),r=N.get(t);if(r)return r;var n={processingMode:e.processingMode,mappings:new Map,inverse:null,getInverse:function(){if(this.inverse)return this.inverse;var e,t=this.inverse={},r=this.fastCurieMap={},n={},s=(this["@language"]||"@none").toLowerCase(),u=this["@direction"],l=this.mappings,f=c((0,i.default)(l.keys()).sort(T));try{for(f.s();!(e=f.n()).done;){var d=e.value,p=l.get(d);if(null!==p){var v=p["@container"]||"@none";if(v=[].concat(v).sort().join(""),null!==p["@id"]){var h,y=c(A(p["@id"]));try{for(y.s();!(h=y.n()).done;){var g=h.value,x=t[g],b=R.isKeyword(g);if(x)b||p._termHasColon||n[g].push(d);else if(t[g]=x={},!b&&!p._termHasColon){n[g]=[d];var m={iri:g,terms:n[g]};g[0]in r?r[g[0]].push(m):r[g[0]]=[m]}if(x[v]||(x[v]={"@language":{},"@type":{},"@any":{}}),x=x[v],o(d,x["@any"],"@none"),p.reverse)o(d,x["@type"],"@reverse");else if("@none"===p["@type"])o(d,x["@any"],"@none"),o(d,x["@language"],"@none"),o(d,x["@type"],"@none");else if("@type"in p)o(d,x["@type"],p["@type"]);else if("@language"in p&&"@direction"in p){var w=p["@language"],k=p["@direction"];o(d,x["@language"],w&&k?"".concat(w,"_").concat(k).toLowerCase():w?w.toLowerCase():k?"_".concat(k):"@null")}else"@language"in p?o(d,x["@language"],(p["@language"]||"@null").toLowerCase()):"@direction"in p?p["@direction"]?o(d,x["@language"],"_".concat(p["@direction"])):o(d,x["@language"],"@none"):u?(o(d,x["@language"],"_".concat(u)),o(d,x["@language"],"@none"),o(d,x["@type"],"@none")):(o(d,x["@language"],s),o(d,x["@language"],"@none"),o(d,x["@type"],"@none"))}}catch(e){y.e(e)}finally{y.f()}}}}}catch(e){f.e(e)}finally{f.f()}for(var j in r)a(r,j,1);return t},clone:function(){var e={};e.mappings=p.clone(this.mappings),e.clone=this.clone,e.inverse=null,e.getInverse=this.getInverse,e.protected=p.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"]);return e},revertToPreviousContext:function(){if(!this.previousContext)return this;return this.previousContext.clone()},protected:{}};return 1e4===N.size&&N.clear(),N.set(t,n),n;function a(e,t,r){var n,o,i,s=e[t],u=e[t]={},l=c(s);try{for(l.s();!(i=l.n()).done;){var f=i.value;(o=r>=(n=f.iri).length?"":n[r])in u?u[o].push(f):u[o]=[f]}}catch(e){l.e(e)}finally{l.f()}for(var d in u)""!==d&&a(u,d,r+1)}function o(e,t,r){t.hasOwnProperty(r)||(t[r]=e)}},R.getContextValue=function(e,t,r){if(null===t){if("@context"===r)return;return null}if(e.mappings.has(t)){var n=e.mappings.get(t);if(b(r))return n;if(n.hasOwnProperty(r))return n[r]}return"@language"===r&&r in e||"@direction"===r&&r in e?e[r]:"@context"!==r?null:void 0},R.processingMode=function(e,t){return t.toString()>="1.1"?!e.processingMode||e.processingMode>="json-ld-"+t.toString():"json-ld-1.0"===e.processingMode},R.isKeyword=function(e){if(!x(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}},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var n=r(2),a=r(0),o=r(46),i=Object,s=n("".split);e.exports=a((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):i(e)}:i},function(e,t,r){"use strict";var n=r(77),a=r(0),o=r(3).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){"use strict";var n,a,o=r(3),i=r(55),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(a=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(a=+n[1]),e.exports=a},function(e,t,r){"use strict";var n=r(40),a=r(53);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},function(e,t,r){"use strict";var n=r(48),a=r(134);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.34.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,r){"use strict";var n=r(1),a=r(36).map;n({target:"Array",proto:!0,forced:!r(97)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(1),a=r(112).includes,o=r(0),i=r(141);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,r){"use strict";var n=r(1),a=r(2),o=r(142),i=r(39),s=r(16),u=r(144),c=a("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(s(i(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(249),a=r(15),o=r(250);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return a(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},function(e,t,r){"use strict";r(273)},function(e,t,r){"use strict";var n,a=r(1),o=r(95),i=r(52).f,s=r(49),u=r(16),c=r(142),l=r(39),f=r(144),d=r(48),p=o("".startsWith),v=o("".slice),h=Math.min,y=f("startsWith");a({target:"String",proto:!0,forced:!!(d||y||(n=i(String.prototype,"startsWith"),!n||n.writable))&&!y},{startsWith:function(e){var t=u(l(this));c(e);var r=s(h(arguments.length>1?arguments[1]:void 0,t.length)),n=u(e);return p?p(t,n,r):v(t,r,r+n.length)===n}})},function(e,t,r){"use strict";var n=r(7),a=r(159),o=r(15),i=r(53),s=r(49),u=r(16),c=r(39),l=r(78),f=r(160),d=r(161);a("match",(function(e,t,r){return[function(t){var r=c(this),a=i(t)?void 0:l(t,e);return a?n(a,t,r):new RegExp(t)[e](u(r))},function(e){var n=o(this),a=u(e),i=r(t,n,a);if(i.done)return i.value;if(!n.global)return d(n,a);var c=n.unicode;n.lastIndex=0;for(var l,p=[],v=0;null!==(l=d(n,a));){var h=u(l[0]);p[v]=h,""===h&&(n.lastIndex=f(a,s(n.lastIndex),c)),v++}return 0===v?null:p}]}))},function(e,t,r){"use strict";var n=r(1),a=r(0),o=r(96),i=r(12),s=r(21),u=r(20),c=r(221),l=r(69),f=r(139),d=r(97),p=r(8),v=r(77),h=p("isConcatSpreadable"),y=v>=51||!a((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),g=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!d("concat")},{concat:function(e){var t,r,n,a,o,i=s(this),d=f(i,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(g(o=-1===t?i:arguments[t]))for(a=u(o),c(p+a),r=0;r<a;r++,p++)r in o&&l(d,p,o[r]);else c(p+1),l(d,p++,o);return d.length=p,d}})},function(e,t,r){"use strict";var n=r(0);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,r){"use strict";var n=r(169),a=r(90);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},function(e,t,r){"use strict";var n=r(47),a=r(5),o=r(54),i=r(171),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&o(t.prototype,s(e))}},function(e,t,r){"use strict";var n=r(2),a=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++a+o,36)}},function(e,t,r){"use strict";var n=r(10),a=r(13),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,s=a(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=r(177),a=r(137);e.exports=Object.keys||function(e){return n(e,a)}},function(e,t,r){"use strict";var n=r(46),a=r(2);e.exports=function(e){if("Function"===n(e))return a(e)}},function(e,t,r){"use strict";var n=r(46);e.exports=Array.isArray||function(e){return"Array"===n(e)}},function(e,t,r){"use strict";var n=r(0),a=r(8),o=r(77),i=a("species");e.exports=function(e){return o>=51||!n((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=r(13),a=r(5),o=r(21),i=r(111),s=r(248),u=i("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(n(t,u))return t[u];var r=t.constructor;return a(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},function(e,t,r){"use strict";var n=r(54),a=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new a("Incorrect invocation")}},function(e,t,r){"use strict";var n=r(3);e.exports=n.Promise},function(e,t,r){"use strict";var n=r(3),a=r(101),o=r(5),i=r(114),s=r(136),u=r(8),c=r(257),l=r(190),f=r(48),d=r(77),p=a&&a.prototype,v=u("species"),h=!1,y=o(n.PromiseRejectionEvent),g=i("Promise",(function(){var e=s(a),t=e!==String(a);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new a((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[v]=n,!(h=r.then((function(){}))instanceof n))return!0}return!t&&(c||l)&&!y}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:y,SUBCLASSING:h}},function(e,t,r){"use strict";var n=r(40),a=TypeError,o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new a("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},function(e,t,r){"use strict";var n=r(63),a=r(7),o=r(15),i=r(66),s=r(150),u=r(20),c=r(54),l=r(151),f=r(124),d=r(191),p=TypeError,v=function(e,t){this.stopped=e,this.result=t},h=v.prototype;e.exports=function(e,t,r){var y,g,x,b,m,w,k,j=r&&r.that,S=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),A=n(t,j),T=function(e){return y&&d(y,"normal",e),new v(!0,e)},N=function(e){return S?(o(e),E?A(e[0],e[1],T):A(e[0],e[1])):E?A(e,T):A(e)};if(O)y=e.iterator;else if(I)y=e;else{if(!(g=f(e)))throw new p(i(e)+" is not iterable");if(s(g)){for(x=0,b=u(e);b>x;x++)if((m=N(e[x]))&&c(h,m))return m;return new v(!1)}y=l(e,g)}for(w=O?e.next:y.next;!(k=a(w,y)).done;){try{m=N(k.value)}catch(e){d(y,"throw",e)}if("object"==typeof m&&m&&c(h,m))return m}return new v(!1)}},function(e,t,r){var n=r(198);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(1),a=r(2),o=r(75),i=r(35),s=r(119),u=a([].join);n({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return u(i(this),void 0===e?",":e)}})},function(e,t,r){var n=r(279),a=r(209),o=r(156),i=r(280);e.exports=function(e){return n(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(9)(r(59));r(87),r(11),r(4),r(84),r(17),r(14);var a=r(45),o=r(38).isArray,i=r(44).asArray,s={};e.exports=s,s.defaultEventHandler=null,s.setupEventHandler=function(e){var t=e.options,r=void 0===t?{}:t,n=[].concat(r.safe?s.safeEventHandler:[],r.eventHandler?i(r.eventHandler):[],s.defaultEventHandler?s.defaultEventHandler:[]);return 0===n.length?null:n},s.handleEvent=function(e){!function e(t){for(var r=t.event,i=t.handlers,s=!0,u=0;s&&u<i.length;++u){s=!1;var c=i[u];if(o(c))s=e({event:r,handlers:c});else if("function"==typeof c)c({event:r,next:function(){s=!0}});else{if("object"!==(0,n.default)(c))throw new a("Invalid event handler.","jsonld.InvalidEventHandler",{event:r});r.code in c?c[r.code]({event:r,next:function(){s=!0}}):s=!0}}return s}({event:e.event,handlers:e.options.eventHandler})};var u=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"]);s.safeEventHandler=function(e){var t=e.event,r=e.next;if("warning"===t.level&&u.has(t.code))throw new a("Safe mode validation error.","jsonld.ValidationError",{event:t});r()},s.logEventHandler=function(e){var t=e.event,r=e.next;console.log("EVENT: ".concat(t.message),{event:t}),r()},s.logWarningEventHandler=function(e){var t=e.event,r=e.next;"warning"===t.level&&console.warn("WARNING: ".concat(t.message),{event:t}),r()},s.unhandledEventHandler=function(e){var t=e.event;throw new a("No handler for event.","jsonld.UnhandledEvent",{event:t})},s.setDefaultEventHandler=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventHandler;s.defaultEventHandler=t?i(t):null}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!n.call({1:2},1);t.f=o?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},function(e,t,r){"use strict";var n=r(3),a=r(12),o=n.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,r){"use strict";var n=r(79),a=r(91),o=n("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},function(e,t,r){"use strict";var n=r(35),a=r(68),o=r(20),i=function(e){return function(t,r,i){var s,u=n(t),c=o(u),l=a(i,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},function(e,t,r){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(0),a=r(5),o=/#|\.prototype\./,i=function(e,t){var r=u[s(e)];return r===l||r!==c&&(a(t)?n(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n=r(68),a=r(20),o=r(69),i=Array,s=Math.max;e.exports=function(e,t,r){for(var u=a(e),c=n(t,u),l=n(void 0===r?u:r,u),f=i(s(l-c,0)),d=0;c<l;c++,d++)o(f,d,e[c]);return f.length=d,f}},function(e,t,r){"use strict";var n=r(2),a=r(0),o=r(5),i=r(61),s=r(47),u=r(136),c=function(){},l=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),v=!d.test(c),h=function(e){if(!o(e))return!1;try{return f(c,l,e),!0}catch(e){return!1}},y=function(e){if(!o(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!p(d,u(e))}catch(e){return!0}};y.sham=!0,e.exports=!f||a((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?y:h},function(e,t,r){"use strict";var n=r(1),a=r(47),o=r(58),i=r(7),s=r(2),u=r(0),c=r(5),l=r(90),f=r(70),d=r(239),p=r(76),v=String,h=a("JSON","stringify"),y=s(/./.exec),g=s("".charAt),x=s("".charCodeAt),b=s("".replace),m=s(1..toString),w=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,S=!p||u((function(){var e=a("Symbol")("stringify detection");return"[null]"!==h([e])||"{}"!==h({a:e})||"{}"!==h(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),I=function(e,t){var r=f(arguments),n=d(t);if(c(n)||void 0!==e&&!l(e))return r[1]=function(e,t){if(c(n)&&(t=i(n,this,v(e),t)),!l(t))return t},o(h,null,r)},E=function(e,t,r){var n=g(r,t-1),a=g(r,t+1);return y(k,e)&&!y(j,a)||y(j,e)&&!y(k,n)?"\\u"+m(x(e,0),16):e};h&&n({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,r){var n=f(arguments),a=o(S?I:h,null,n);return O&&"string"==typeof a?b(a,w,E):a}})},function(e,t,r){"use strict";var n=r(1),a=r(0),o=r(35),i=r(52).f,s=r(10);n({target:"Object",stat:!0,forced:!s||a((function(){i(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(o(e),t)}})},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},function(e,t,r){"use strict";var n=r(1),a=r(10),o=r(176),i=r(35),s=r(52),u=r(69);n({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,r,n=i(e),a=s.f,c=o(n),l={},f=0;c.length>f;)void 0!==(r=a(n,t=c[f++]))&&u(l,t,r);return l}})},function(e,t,r){"use strict";var n=r(3),a=r(46);e.exports="process"===a(n.process)},function(e,t,r){"use strict";var n=r(47),a=r(57),o=r(8),i=r(10),s=o("species");e.exports=function(e){var t=n(e);i&&t&&!t[s]&&a(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var n,a,o,i,s=r(3),u=r(58),c=r(63),l=r(5),f=r(13),d=r(0),p=r(179),v=r(70),h=r(110),y=r(187),g=r(188),x=r(121),b=s.setImmediate,m=s.clearImmediate,w=s.process,k=s.Dispatch,j=s.Function,S=s.MessageChannel,O=s.String,I=0,E={};d((function(){n=s.location}));var A=function(e){if(f(E,e)){var t=E[e];delete E[e],t()}},T=function(e){return function(){A(e)}},N=function(e){A(e.data)},R=function(e){s.postMessage(O(e),n.protocol+"//"+n.host)};b&&m||(b=function(e){y(arguments.length,1);var t=l(e)?e:j(e),r=v(arguments,1);return E[++I]=function(){u(t,void 0,r)},a(I),I},m=function(e){delete E[e]},x?a=function(e){w.nextTick(T(e))}:k&&k.now?a=function(e){k.now(T(e))}:S&&!g?(i=(o=new S).port2,o.port1.onmessage=N,a=c(i.postMessage,i)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!d(R)?(a=R,s.addEventListener("message",N,!1)):a="onreadystatechange"in h("script")?function(e){p.appendChild(h("script")).onreadystatechange=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:m}},function(e,t,r){"use strict";var n=r(61),a=r(78),o=r(53),i=r(98),s=r(8)("iterator");e.exports=function(e){if(!o(e))return a(e,s)||a(e,"@@iterator")||i[n(e)]}},function(e,t,r){"use strict";var n=r(8)("iterator"),a=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){a=!0}};i[n]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!a)return!1}catch(e){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},function(e,t,r){"use strict";var n,a,o=r(7),i=r(2),s=r(16),u=r(201),c=r(127),l=r(79),f=r(56),d=r(41).get,p=r(202),v=r(203),h=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,x=i("".charAt),b=i("".indexOf),m=i("".replace),w=i("".slice),k=(a=/b*/g,o(y,n=/a/,"a"),o(y,a,"a"),0!==n.lastIndex||0!==a.lastIndex),j=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||j||p||v)&&(g=function(e){var t,r,n,a,i,c,l,p=this,v=d(p),O=s(e),I=v.raw;if(I)return I.lastIndex=p.lastIndex,t=o(g,I,O),p.lastIndex=I.lastIndex,t;var E=v.groups,A=j&&p.sticky,T=o(u,p),N=p.source,R=0,_=O;if(A&&(T=m(T,"y",""),-1===b(T,"g")&&(T+="g"),_=w(O,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==x(O,p.lastIndex-1))&&(N="(?: "+N+")",_=" "+_,R++),r=new RegExp("^(?:"+N+")",T)),S&&(r=new RegExp("^"+N+"$(?!\\s)",T)),k&&(n=p.lastIndex),a=o(y,A?r:p,_),A?a?(a.input=w(a.input,R),a[0]=w(a[0],R),a.index=p.lastIndex,p.lastIndex+=a[0].length):p.lastIndex=0:k&&a&&(p.lastIndex=p.global?a.index+a[0].length:n),S&&a&&a.length>1&&o(h,a[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(a[i]=void 0)})),a&&E)for(a.groups=c=f(null),i=0;i<E.length;i++)c[(l=E[i])[0]]=a[l[1]];return a}),e.exports=g},function(e,t,r){"use strict";var n=r(0),a=r(3).RegExp,o=n((function(){var e=a("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),i=o||n((function(){return!a("a","y").sticky})),s=o||n((function(){var e=a("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:i,UNSUPPORTED_Y:o}},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
 */var n=r(9),a=n(r(37));r(11),r(4),r(281),r(294),r(296),r(298),r(299),r(300),r(303),r(304),r(305),r(307),r(309),r(310),r(311),r(312),r(313),r(314),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(23);var o=n(r(43)),i=n(r(33)),s=n(r(34));r(330);var u=self.crypto||self.msCrypto;e.exports=function(){function e(t){if((0,i.default)(this,e),!u||!u.subtle)throw new Error("crypto.subtle not found.");if("sha256"===t)this.algorithm={name:"SHA-256"};else{if("sha1"!==t)throw new Error('Unsupported algorithm "'.concat(t,'".'));this.algorithm={name:"SHA-1"}}this._content=""}var t;return(0,s.default)(e,[{key:"update",value:function(e){this._content+=e}},{key:"digest",value:(t=(0,o.default)(a.default.mark((function e(){var t,r,n,o;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(new TextEncoder).encode(this._content),e.t0=Uint8Array,e.next=4,u.subtle.digest(this.algorithm,t);case 4:for(e.t1=e.sent,r=new e.t0(e.t1),n="",o=0;o<r.length;++o)n+=r[o].toString(16).padStart(2,"0");return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}()},function(e,t,r){"use strict";var n=r(6),a=r(147),o=n.aTypedArrayConstructor,i=n.getTypedArrayConstructor;e.exports=function(e){return o(a(e,i(e)))}},function(e,t,r){"use strict";var n=r(58),a=r(7),o=r(2),i=r(159),s=r(0),u=r(15),c=r(5),l=r(53),f=r(42),d=r(49),p=r(16),v=r(39),h=r(160),y=r(78),g=r(334),x=r(161),b=r(8)("replace"),m=Math.max,w=Math.min,k=o([].concat),j=o([].push),S=o("".indexOf),O=o("".slice),I="$0"==="a".replace(/./,"$0"),E=!!/./[b]&&""===/./[b]("a","$0");i("replace",(function(e,t,r){var o=E?"$":"$0";return[function(e,r){var n=v(this),o=l(e)?void 0:y(e,b);return o?a(o,e,n,r):a(t,p(n),e,r)},function(e,a){var i=u(this),s=p(e);if("string"==typeof a&&-1===S(a,o)&&-1===S(a,"$<")){var l=r(t,i,s,a);if(l.done)return l.value}var v=c(a);v||(a=p(a));var y,b=i.global;b&&(y=i.unicode,i.lastIndex=0);for(var I,E=[];null!==(I=x(i,s))&&(j(E,I),b);){""===p(I[0])&&(i.lastIndex=h(s,d(i.lastIndex),y))}for(var A,T="",N=0,R=0;R<E.length;R++){for(var _,D=p((I=E[R])[0]),L=m(w(f(I.index),s.length),0),C=[],M=1;M<I.length;M++)j(C,void 0===(A=I[M])?A:String(A));var P=I.groups;if(v){var F=k([D],C,L,s);void 0!==P&&j(F,P),_=p(n(a,void 0,F))}else _=g(D,s,L,C,P,a);L>=N&&(T+=O(s,N,L)+_,N=L+D.length)}return T+O(s,N)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!I||E)},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(222),a=r(343),o=r(156),i=r(223);e.exports=function(e,t){return n(e)||a(e,t)||o(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(22),r(4),r(23),r(27),r(29),r(17),r(18),r(24),r(19),r(25),r(26),r(11),r(14),r(28),r(32);var o=r(73).isKeyword,i=r(60),s=r(38),u=r(44),c=r(45),l={};e.exports=l,l.createMergedNodeMap=function(e,t){var r=(t=t||{}).issuer||new u.IdentifierIssuer("_:b"),n={"@default":{}};return l.createNodeMap(e,n,"@default",r),l.mergeNodeMaps(n)},l.createNodeMap=function(e,t,r,a,f,d){if(s.isArray(e)){var p,v=n(e);try{for(v.s();!(p=v.n()).done;){var h=p.value;l.createNodeMap(h,t,r,a,void 0,d)}}catch(e){v.e(e)}finally{v.f()}}else if(s.isObject(e))if(i.isValue(e)){if("@type"in e){var y=e["@type"];0===y.indexOf("_:")&&(e["@type"]=y=a.getId(y))}d&&d.push(e)}else{if(d&&i.isList(e)){var g=[];return l.createNodeMap(e["@list"],t,r,a,f,g),void d.push({"@list":g})}if("@type"in e){var x,b=n(e["@type"]);try{for(b.s();!(x=b.n()).done;){var m=x.value;0===m.indexOf("_:")&&a.getId(m)}}catch(e){b.e(e)}finally{b.f()}}s.isUndefined(f)&&(f=i.isBlankNode(e)?a.getId(e["@id"]):e["@id"]),d&&d.push({"@id":f});var w=t[r],k=w[f]=w[f]||{};k["@id"]=f;var j,S=n(Object.keys(e).sort());try{for(S.s();!(j=S.n()).done;){var O=j.value;if("@id"!==O)if("@reverse"!==O)if("@graph"!==O)if("@included"!==O)if("@type"!==O&&o(O)){if("@index"===O&&O in k&&(e[O]!==k[O]||e[O]["@id"]!==k[O]["@id"]))throw new c("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:k});k[O]=e[O]}else{var I=e[O];if(0===O.indexOf("_:")&&(O=a.getId(O)),0!==I.length){var E,A=n(I);try{for(A.s();!(E=A.n()).done;){var T=E.value;if("@type"===O&&(T=0===T.indexOf("_:")?a.getId(T):T),i.isSubject(T)||i.isSubjectReference(T)){if("@id"in T&&!T["@id"])continue;var N=i.isBlankNode(T)?a.getId(T["@id"]):T["@id"];u.addValue(k,O,{"@id":N},{propertyIsArray:!0,allowDuplicate:!1}),l.createNodeMap(T,t,r,a,N)}else if(i.isValue(T))u.addValue(k,O,T,{propertyIsArray:!0,allowDuplicate:!1});else if(i.isList(T)){var R=[];l.createNodeMap(T["@list"],t,r,a,f,R),T={"@list":R},u.addValue(k,O,T,{propertyIsArray:!0,allowDuplicate:!1})}else l.createNodeMap(T,t,r,a,f),u.addValue(k,O,T,{propertyIsArray:!0,allowDuplicate:!1})}}catch(e){A.e(e)}finally{A.f()}}else u.addValue(k,O,[],{propertyIsArray:!0})}else l.createNodeMap(e[O],t,r,a);else f in t||(t[f]={}),l.createNodeMap(e[O],t,f,a);else{var _={"@id":f},D=e["@reverse"];for(var L in D){var C,M=n(D[L]);try{for(M.s();!(C=M.n()).done;){var P=C.value,F=P["@id"];i.isBlankNode(P)&&(F=a.getId(F)),l.createNodeMap(P,t,r,a,F),u.addValue(w[F],L,_,{propertyIsArray:!0,allowDuplicate:!1})}}catch(e){M.e(e)}finally{M.f()}}}}}catch(e){S.e(e)}finally{S.f()}}else d&&d.push(e)},l.mergeNodeMapGraphs=function(e){var t,r={},a=n(Object.keys(e).sort());try{for(a.s();!(t=a.n()).done;){var i,s=t.value,c=n(Object.keys(e[s]).sort());try{for(c.s();!(i=c.n()).done;){var l=i.value,f=e[s][l];l in r||(r[l]={"@id":l});var d,p=r[l],v=n(Object.keys(f).sort());try{for(v.s();!(d=v.n()).done;){var h=d.value;if(o(h)&&"@type"!==h)p[h]=u.clone(f[h]);else{var y,g=n(f[h]);try{for(g.s();!(y=g.n()).done;){var x=y.value;u.addValue(p,h,u.clone(x),{propertyIsArray:!0,allowDuplicate:!1})}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){v.e(e)}finally{v.f()}}}catch(e){c.e(e)}finally{c.f()}}}catch(e){a.e(e)}finally{a.f()}return r},l.mergeNodeMaps=function(e){var t,r=e["@default"],a=n(Object.keys(e).sort());try{for(a.s();!(t=a.n()).done;){var o=t.value;if("@default"!==o){var s=e[o],u=r[o];u?"@graph"in u||(u["@graph"]=[]):r[o]=u={"@id":o,"@graph":[]};var c,l=u["@graph"],f=n(Object.keys(s).sort());try{for(f.s();!(c=f.n()).done;){var d=s[c.value];i.isSubjectReference(d)||l.push(d)}}catch(e){f.e(e)}finally{f.f()}}}}catch(e){a.e(e)}finally{a.f()}return r}},function(e,t,r){"use strict";var n=r(3),a=r(135),o=n["__core-js_shared__"]||a("__core-js_shared__",{});e.exports=o},function(e,t,r){"use strict";var n=r(3),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t,r){"use strict";var n=r(2),a=r(5),o=r(134),i=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},function(e,t,r){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){"use strict";var n={};n[r(8)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){"use strict";var n=r(236);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},function(e,t,r){"use strict";var n=r(1),a=r(245);n({target:"String",proto:!0,forced:r(246)("link")},{link:function(e){return a(this,"a","href",e)}})},function(e,t,r){"use strict";var n=r(8),a=r(56),o=r(30).f,i=n("unscopables"),s=Array.prototype;void 0===s[i]&&o(s,i,{configurable:!0,value:a(null)}),e.exports=function(e){s[i][e]=!0}},function(e,t,r){"use strict";var n=r(143),a=TypeError;e.exports=function(e){if(n(e))throw new a("The method doesn't accept regular expressions");return e}},function(e,t,r){"use strict";var n=r(12),a=r(46),o=r(8)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===a(e))}},function(e,t,r){"use strict";var n=r(8)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,r){"use strict";var n=r(1),a=r(7),o=r(48),i=r(92),s=r(5),u=r(247),c=r(99),l=r(83),f=r(62),d=r(50),p=r(31),v=r(8),h=r(98),y=r(186),g=i.PROPER,x=i.CONFIGURABLE,b=y.IteratorPrototype,m=y.BUGGY_SAFARI_ITERATORS,w=v("iterator"),k=function(){return this};e.exports=function(e,t,r,i,v,y,j){u(r,t,i);var S,O,I,E=function(e){if(e===v&&_)return _;if(!m&&e&&e in N)return N[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},A=t+" Iterator",T=!1,N=e.prototype,R=N[w]||N["@@iterator"]||v&&N[v],_=!m&&R||E(v),D="Array"===t&&N.entries||R;if(D&&(S=c(D.call(new e)))!==Object.prototype&&S.next&&(o||c(S)===b||(l?l(S,b):s(S[w])||p(S,w,k)),f(S,A,!0,!0),o&&(h[A]=k)),g&&"values"===v&&R&&"values"!==R.name&&(!o&&x?d(N,"name","values"):(T=!0,_=function(){return a(R,this)})),v)if(O={values:E("values"),keys:y?_:E("keys"),entries:E("entries")},j)for(I in O)(m||T||!(I in N))&&p(N,I,O[I]);else n({target:t,proto:!0,forced:m||T},O);return o&&!j||N[w]===_||p(N,w,_,{name:v}),h[t]=_,O}},function(e,t,r){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,r){"use strict";var n=r(15),a=r(148),o=r(53),i=r(8)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||o(r=n(s)[i])?t:a(r)}},function(e,t,r){"use strict";var n=r(116),a=r(66),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not a constructor")}},function(e,t,r){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){"use strict";var n=r(8),a=r(98),o=n("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[o]===e)}},function(e,t,r){"use strict";var n=r(7),a=r(40),o=r(15),i=r(66),s=r(124),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(a(r))return o(n(r,e));throw new u(i(e)+" is not iterable")}},function(e,t,r){"use strict";var n=r(66),a=TypeError;e.exports=function(e,t){if(!delete e[t])throw new a("Cannot delete property "+n(t)+" of "+n(e))}},function(e,t,r){"use strict";var n=r(1),a=r(264);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},function(e,t,r){"use strict";e.exports=r(266)},function(e,t,r){"use strict";var n=r(5),a=r(12),o=r(83);e.exports=function(e,t,r){var i,s;return o&&n(i=t.constructor)&&i!==r&&a(s=i.prototype)&&s!==r.prototype&&o(e,s),e}},function(e,t,r){var n=r(208);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(9);r(11),r(51),r(4),r(17),r(14);var a=n(r(107)),o=n(r(33)),i=n(r(34));e.exports=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;(0,o.default)(this,e),this.prefix=t,this._existing=r,this.counter=n}return(0,i.default)(e,[{key:"clone",value:function(){var t=this.prefix,r=this._existing,n=this.counter;return new e(t,new Map(r),n)}},{key:"getId",value:function(e){var t=e&&this._existing.get(e);if(t)return t;var r=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,r),r}},{key:"hasId",value:function(e){return this._existing.has(e)}},{key:"getOldIds",value:function(){return(0,a.default)(this._existing.keys())}}]),e}()},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
 */r(22),r(27),r(29),r(17),r(19),r(25),r(26),r(11),r(14);var n=r(9),a=n(r(33)),o=n(r(34));function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(331),r(18),r(333),r(23),r(219),r(24),r(86),r(106),r(28),r(4),r(72),r(85),r(130);var u="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",c="http://www.w3.org/2001/XMLSchema#string",l={};function f(e,t){return e.subject.termType===t.subject.termType&&e.object.termType===t.object.termType&&(e.subject.value===t.subject.value&&e.predicate.value===t.predicate.value&&e.object.value===t.object.value&&("Literal"!==e.object.termType||e.object.datatype.termType===t.object.datatype.termType&&e.object.language===t.object.language&&e.object.datatype.value===t.object.datatype.value))}l.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,l.empty=new RegExp("^[ \\t]*$"),l.quad=new RegExp('^[ \\t]*(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9])(?:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀.])*(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀]))?))[ \\t]+(?:<([^:]+:[^>]*)>)[ \\t]+(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9])(?:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀.])*(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀]))?)|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^(?:<([^:]+:[^>]*)>))|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))[ \\t]*(?:\\.|(?:(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9])(?:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀.])*(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀]))?))[ \\t]*\\.))[ \\t]*$'),e.exports=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,null,[{key:"parse",value:function(e){var t,r=[],n={},a=0,o=i(e.split(l.eoln));try{for(o.s();!(t=o.n()).done;){var s=t.value;if(a++,!l.empty.test(s)){var d=s.match(l.quad);if(null===d)throw new Error("N-Quads parse error on line "+a+".");var v={subject:null,predicate:null,object:null,graph:null};if(void 0!==d[1]?v.subject={termType:"NamedNode",value:d[1]}:v.subject={termType:"BlankNode",value:d[2]},v.predicate={termType:"NamedNode",value:d[3]},void 0!==d[4]?v.object={termType:"NamedNode",value:d[4]}:void 0!==d[5]?v.object={termType:"BlankNode",value:d[5]}:(v.object={termType:"Literal",value:void 0,datatype:{termType:"NamedNode"}},void 0!==d[7]?v.object.datatype.value=d[7]:void 0!==d[8]?(v.object.datatype.value=u,v.object.language=d[8]):v.object.datatype.value=c,v.object.value=d[6].replace(p,(function(e,t,r,n){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(r)return String.fromCharCode(parseInt(r,16));if(n)throw new Error("Unsupported U escape")}))),void 0!==d[9]?v.graph={termType:"NamedNode",value:d[9]}:void 0!==d[10]?v.graph={termType:"BlankNode",value:d[10]}:v.graph={termType:"DefaultGraph",value:""},v.graph.value in n){var h,y=!0,g=n[v.graph.value],x=i(g);try{for(x.s();!(h=x.n()).done;){if(f(h.value,v)){y=!1;break}}}catch(e){x.e(e)}finally{x.f()}y&&(g.push(v),r.push(v))}else n[v.graph.value]=[v],r.push(v)}}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"serialize",value:function(t){Array.isArray(t)||(t=e.legacyDatasetToQuads(t));var r,n=[],a=i(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.push(e.serializeQuad(o))}}catch(e){a.e(e)}finally{a.f()}return n.sort().join("")}},{key:"serializeQuadComponents",value:function(e,t,r,n){var a="";return"NamedNode"===e.termType?a+="<".concat(e.value,">"):a+="".concat(e.value),a+=" <".concat(t.value,"> "),"NamedNode"===r.termType?a+="<".concat(r.value,">"):"BlankNode"===r.termType?a+=r.value:(a+='"'.concat(function(e){return e.replace(d,(function(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}}))}(r.value),'"'),r.datatype.value===u?r.language&&(a+="@".concat(r.language)):r.datatype.value!==c&&(a+="^^<".concat(r.datatype.value,">"))),"NamedNode"===n.termType?a+=" <".concat(n.value,">"):"BlankNode"===n.termType&&(a+=" ".concat(n.value)),a+=" .\n"}},{key:"serializeQuad",value:function(t){return e.serializeQuadComponents(t.subject,t.predicate,t.object,t.graph)}},{key:"legacyDatasetToQuads",value:function(e){var t=[],r={"blank node":"BlankNode",IRI:"NamedNode",literal:"Literal"},n=function(n){e[n].forEach((function(e){var a={};for(var o in e){var i=e[o],s={termType:r[i.type],value:i.value};"Literal"===s.termType&&(s.datatype={termType:"NamedNode"},"datatype"in i&&(s.datatype.value=i.datatype),"language"in i?("datatype"in i||(s.datatype.value=u),s.language=i.language):"datatype"in i||(s.datatype.value=c)),a[o]=s}a.graph="@default"===n?{termType:"DefaultGraph",value:""}:{termType:n.startsWith("_:")?"BlankNode":"NamedNode",value:n},t.push(a)}))};for(var a in e)n(a);return t}}]),e}();var d=/["\\\n\r]/g;var p=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g},function(e,t,r){"use strict";r(18);var n=r(95),a=r(31),o=r(126),i=r(0),s=r(8),u=r(50),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var d=s(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),v=p&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!p||!v||r){var h=n(/./[d]),y=t(d,""[e],(function(e,t,r,a,i){var s=n(e),u=t.exec;return u===o||u===l.exec?p&&!i?{done:!0,value:h(t,r,a)}:{done:!0,value:s(r,t,a)}:{done:!1}}));a(String.prototype,e,y[0]),a(l,d,y[1])}f&&u(l[d],"sham",!0)}},function(e,t,r){"use strict";var n=r(193).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){"use strict";var n=r(7),a=r(15),o=r(5),i=r(46),s=r(126),u=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var c=n(r,e,t);return null!==c&&a(c),c}if("RegExp"===i(e))return n(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},function(e,t,r){"use strict";var n=r(1),a=r(3),o=r(62);n({global:!0},{Reflect:{}}),o(a.Reflect,"Reflect",!0)},function(e,t,r){"use strict";var n=r(1),a=r(47),o=r(58),i=r(336),s=r(148),u=r(15),c=r(12),l=r(56),f=r(0),d=a("Reflect","construct"),p=Object.prototype,v=[].push,h=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),y=!f((function(){d((function(){}))})),g=h||y;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),u(t);var r=arguments.length<3?e:s(arguments[2]);if(y&&!h)return d(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return o(v,n,t),new(o(i,e,n))}var a=r.prototype,f=l(c(a)?a:p),g=o(e,f,t);return c(g)?g:f}})},function(e,t,r){var n=r(165);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(59).default,a=r(337);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n="http://www.w3.org/1999/02/22-rdf-syntax-ns#",a="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:n,RDF_LIST:n+"List",RDF_FIRST:n+"first",RDF_REST:n+"rest",RDF_NIL:n+"nil",RDF_TYPE:n+"type",RDF_PLAIN_LITERAL:n+"PlainLiteral",RDF_XML_LITERAL:n+"XMLLiteral",RDF_JSON_LITERAL:n+"JSON",RDF_OBJECT:n+"object",RDF_LANGSTRING:n+"langString",XSD:a,XSD_BOOLEAN:a+"boolean",XSD_DOUBLE:a+"double",XSD_INTEGER:a+"integer",XSD_STRING:a+"string"}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(7),a=r(12),o=r(90),i=r(78),s=r(231),u=r(8),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!a(e)||o(e))return e;var r,u=i(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!a(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,r){"use strict";var n="object"==typeof document&&document.all,a=void 0===n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:a}},function(e,t,r){"use strict";var n=r(76);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){"use strict";var n=r(10),a=r(0),o=r(110);e.exports=!n&&!a((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";var n=r(10),a=r(0);e.exports=n&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,r){"use strict";var n=r(2),a=r(0),o=r(5),i=r(13),s=r(10),u=r(92).CONFIGURABLE,c=r(136),l=r(41),f=l.enforce,d=l.get,p=String,v=Object.defineProperty,h=n("".slice),y=n("".replace),g=n([].join),x=s&&!a((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),m=e.exports=function(e,t,r){"Symbol("===h(p(t),0,7)&&(t="["+y(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||u&&e.name!==t)&&(s?v(e,"name",{value:t,configurable:!0}):e.name=t),x&&r&&i(r,"arity")&&e.length!==r.arity&&v(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?s&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return i(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&d(this).source||c(this)}),"toString")},function(e,t,r){"use strict";var n=r(13),a=r(176),o=r(52),i=r(30);e.exports=function(e,t,r){for(var s=a(t),u=i.f,c=o.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||u(e,f,c(t,f))}}},function(e,t,r){"use strict";var n=r(47),a=r(2),o=r(67),i=r(113),s=r(15),u=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=i.f;return r?u(t,r(e)):t}},function(e,t,r){"use strict";var n=r(2),a=r(13),o=r(35),i=r(112).indexOf,s=r(93),u=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,l=[];for(r in n)!a(s,r)&&a(n,r)&&u(l,r);for(;t.length>c;)a(n,r=t[c++])&&(~i(l,r)||u(l,r));return l}},function(e,t,r){"use strict";var n=r(10),a=r(173),o=r(30),i=r(15),s=r(35),u=r(94);t.f=n&&!a?Object.defineProperties:function(e,t){i(e);for(var r,n=s(t),a=u(t),c=a.length,l=0;c>l;)o.f(e,r=a[l++],n[r]);return e}},function(e,t,r){"use strict";var n=r(47);e.exports=n("document","documentElement")},function(e,t,r){"use strict";var n=r(46),a=r(35),o=r(67).f,i=r(115),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return o(e)}catch(e){return i(s)}}(e):o(a(e))}},function(e,t,r){"use strict";var n=r(8);t.f=n},function(e,t,r){"use strict";var n=r(234),a=r(13),o=r(181),i=r(30).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||i(t,e,{value:o.f(e)})}},function(e,t,r){"use strict";var n=r(76);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,r){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(110)("span").classList,a=n&&n.constructor&&n.constructor.prototype;e.exports=a===Object.prototype?void 0:a},function(e,t,r){"use strict";var n,a,o,i=r(0),s=r(5),u=r(12),c=r(56),l=r(99),f=r(31),d=r(8),p=r(48),v=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(a=l(l(o)))!==Object.prototype&&(n=a):h=!0),!u(n)||i((function(){var e={};return n[v].call(e)!==e}))?n={}:p&&(n=c(n)),s(n[v])||f(n,v,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){"use strict";var n=TypeError;e.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},function(e,t,r){"use strict";var n=r(55);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(e,t,r){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=n},function(e,t,r){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,r){"use strict";var n=r(7),a=r(15),o=r(78);e.exports=function(e,t,r){var i,s;a(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=n(i,e)}catch(e){s=!0,i=e}if("throw"===t)throw r;if(s)throw i;return a(i),r}},function(e,t,r){"use strict";var n=r(101),a=r(125),o=r(102).CONSTRUCTOR;e.exports=o||!a((function(e){n.all(e).then(void 0,(function(){}))}))},function(e,t,r){"use strict";var n=r(2),a=r(42),o=r(16),i=r(39),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(e){return function(t,r){var n,l,f=o(i(t)),d=a(r),p=f.length;return d<0||d>=p?e?"":void 0:(n=u(f,d))<55296||n>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?e?s(f,d):n:e?c(f,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},function(e,t,r){"use strict";var n=r(115),a=Math.floor,o=function(e,t){var r=e.length,u=a(r/2);return r<8?i(e,t):s(e,o(n(e,0,u),t),o(n(e,u),t),t)},i=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e};e.exports=o},function(e,t,r){"use strict";var n=r(55).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,r){"use strict";var n=r(55);e.exports=/MSIE|Trident/.test(n)},function(e,t,r){"use strict";var n=r(55).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},function(e,t,r){var n=r(59).default,a=r(265);e.exports=function(e){var t=a(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
 */r(22),r(23),r(29),r(18),r(24),r(19),r(25),r(26);var n=r(9),a=n(r(37));r(11),r(51),r(4),r(17),r(14),r(27),r(28),r(106),r(64),r(84),r(85),r(274);var o=n(r(107)),i=n(r(43)),s=n(r(33)),u=n(r(34));function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=r(157),d=r(128),p=r(218),v=r(158);function h(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createMessageDigest,n=void 0===r?function(){return new d("sha256")}:r,a=t.canonicalIdMap,o=void 0===a?new Map:a,i=t.maxDeepIterations,u=void 0===i?1/0:i;(0,s.default)(this,e),this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new f("_:c14n",o),this.createMessageDigest=n,this.maxDeepIterations=u,this.quads=null,this.deepIterations=null}var t,r,n,l,y,g,x,b;return(0,u.default)(e,[{key:"main",value:(b=(0,i.default)(a.default.mark((function e(t){var r,n,i,s,u,l,d,p,y,g,x,b,m,w,k,j,S,O,I,E,A,T,N,R,_,D,L,C,M,P,F,B,J,U,H,V,q;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.deepIterations=new Map,this.quads=t,r=c(t);try{for(r.s();!(n=r.n()).done;)i=n.value,this._addBlankNodeQuadInfo({quad:i,component:i.subject}),this._addBlankNodeQuadInfo({quad:i,component:i.object}),this._addBlankNodeQuadInfo({quad:i,component:i.graph})}catch(e){r.e(e)}finally{r.f()}s=new Map,u=(0,o.default)(this.blankNodeInfo.keys()),l=0,d=c(u),e.prev=8,d.s();case 10:if((p=d.n()).done){e.next=19;break}if(y=p.value,++l%100!=0){e.next=15;break}return e.next=15,this._yield();case 15:return e.next=17,this._hashAndTrackBlankNode({id:y,hashToBlankNodes:s});case 17:e.next=10;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(8),d.e(e.t0);case 24:return e.prev=24,d.f(),e.finish(24);case 27:g=(0,o.default)(s.keys()).sort(),x=[],b=c(g),e.prev=30,b.s();case 32:if((m=b.n()).done){e.next=42;break}if(w=m.value,!((k=s.get(w)).length>1)){e.next=38;break}return x.push(k),e.abrupt("continue",40);case 38:j=k[0],this.canonicalIssuer.getId(j);case 40:e.next=32;break;case 42:e.next=47;break;case 44:e.prev=44,e.t1=e.catch(30),b.e(e.t1);case 47:return e.prev=47,b.f(),e.finish(47);case 50:S=0,O=x;case 51:if(!(S<O.length)){e.next=82;break}I=O[S],E=[],A=c(I),e.prev=55,A.s();case 57:if((T=A.n()).done){e.next=69;break}if(N=T.value,!this.canonicalIssuer.hasId(N)){e.next=61;break}return e.abrupt("continue",67);case 61:return(R=new f("_:b")).getId(N),e.next=65,this.hashNDegreeQuads(N,R);case 65:_=e.sent,E.push(_);case 67:e.next=57;break;case 69:e.next=74;break;case 71:e.prev=71,e.t2=e.catch(55),A.e(e.t2);case 74:return e.prev=74,A.f(),e.finish(74);case 77:for(E.sort(h),D=0,L=E;D<L.length;D++){C=L[D],M=C.issuer.getOldIds(),P=c(M);try{for(P.s();!(F=P.n()).done;)B=F.value,this.canonicalIssuer.getId(B)}catch(e){P.e(e)}finally{P.f()}}case 79:S++,e.next=51;break;case 82:J=[],U=c(this.quads);try{for(U.s();!(H=U.n()).done;)V=H.value,q=v.serializeQuadComponents(this._componentWithCanonicalId(V.subject),V.predicate,this._componentWithCanonicalId(V.object),this._componentWithCanonicalId(V.graph)),J.push(q)}catch(e){U.e(e)}finally{U.f()}return J.sort(),e.abrupt("return",J.join(""));case 87:case"end":return e.stop()}}),e,this,[[8,21,24,27],[30,44,47,50],[55,71,74,77]])}))),function(e){return b.apply(this,arguments)})},{key:"hashFirstDegreeQuads",value:(x=(0,i.default)(a.default.mark((function e(t){var r,n,o,i,s,u,l,f,d,p,h;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=this.blankNodeInfo.get(t),o=n.quads,i=c(o);try{for(i.s();!(s=i.n()).done;)u=s.value,(l={subject:null,predicate:u.predicate,object:null,graph:null}).subject=this.modifyFirstDegreeComponent(t,u.subject,"subject"),l.object=this.modifyFirstDegreeComponent(t,u.object,"object"),l.graph=this.modifyFirstDegreeComponent(t,u.graph,"graph"),r.push(v.serializeQuad(l))}catch(e){i.e(e)}finally{i.f()}for(r.sort(),f=this.createMessageDigest(),d=0,p=r;d<p.length;d++)h=p[d],f.update(h);return e.next=10,f.digest();case 10:return n.hash=e.sent,e.abrupt("return",n.hash);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"hashRelatedBlankNode",value:(g=(0,i.default)(a.default.mark((function e(t,r,n,o){var i,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.canonicalIssuer.hasId(t)?this.canonicalIssuer.getId(t):n.hasId(t)?n.getId(t):this.blankNodeInfo.get(t).hash,(s=this.createMessageDigest()).update(o),"g"!==o&&s.update(this.getRelatedPredicate(r)),s.update(i),e.abrupt("return",s.digest());case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return g.apply(this,arguments)})},{key:"hashNDegreeQuads",value:(y=(0,i.default)(a.default.mark((function e(t,r){var n,i,s,u,l,f,d,v,h,y,g,x,b,m,w,k,j,S,O,I,E,A,T;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=this.deepIterations.get(t)||0)>this.maxDeepIterations)){e.next=3;break}throw new Error("Maximum deep iterations (".concat(this.maxDeepIterations,") exceeded."));case 3:return this.deepIterations.set(t,n+1),i=this.createMessageDigest(),e.next=7,this.createHashToRelated(t,r);case 7:s=e.sent,u=(0,o.default)(s.keys()).sort(),l=c(u),e.prev=10,l.s();case 12:if((f=l.n()).done){e.next=73;break}d=f.value,i.update(d),v="",h=void 0,y=new p(s.get(d)),g=0;case 19:if(!y.hasNext()){e.next=69;break}if(x=y.next(),++g%3!=0){e.next=24;break}return e.next=24,this._yield();case 24:b=r.clone(),m="",w=[],k=!1,j=c(x),e.prev=29,j.s();case 31:if((S=j.n()).done){e.next=39;break}if(O=S.value,this.canonicalIssuer.hasId(O)?m+=this.canonicalIssuer.getId(O):(b.hasId(O)||w.push(O),m+=b.getId(O)),!(0!==v.length&&m>v)){e.next=37;break}return k=!0,e.abrupt("break",39);case 37:e.next=31;break;case 39:e.next=44;break;case 41:e.prev=41,e.t0=e.catch(29),j.e(e.t0);case 44:return e.prev=44,j.f(),e.finish(44);case 47:if(!k){e.next=49;break}return e.abrupt("continue",19);case 49:I=0,E=w;case 50:if(!(I<E.length)){e.next=64;break}return A=E[I],e.next=54,this.hashNDegreeQuads(A,b);case 54:if(T=e.sent,m+=b.getId(A),m+="<".concat(T.hash,">"),b=T.issuer,!(0!==v.length&&m>v)){e.next=61;break}return k=!0,e.abrupt("break",64);case 61:I++,e.next=50;break;case 64:if(!k){e.next=66;break}return e.abrupt("continue",19);case 66:(0===v.length||m<v)&&(v=m,h=b),e.next=19;break;case 69:i.update(v),r=h;case 71:e.next=12;break;case 73:e.next=78;break;case 75:e.prev=75,e.t1=e.catch(10),l.e(e.t1);case 78:return e.prev=78,l.f(),e.finish(78);case 81:return e.next=83,i.digest();case 83:return e.t2=e.sent,e.t3=r,e.abrupt("return",{hash:e.t2,issuer:e.t3});case 86:case"end":return e.stop()}}),e,this,[[10,75,78,81],[29,41,44,47]])}))),function(e,t){return y.apply(this,arguments)})},{key:"modifyFirstDegreeComponent",value:function(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}},{key:"getRelatedPredicate",value:function(e){return"<".concat(e.predicate.value,">")}},{key:"createHashToRelated",value:(l=(0,i.default)(a.default.mark((function e(t,r){var n,o,i,s,u,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Map,o=this.blankNodeInfo.get(t).quads,i=0,s=c(o),e.prev=4,s.s();case 6:if((u=s.n()).done){e.next=15;break}if(l=u.value,++i%100!=0){e.next=11;break}return e.next=11,this._yield();case 11:return e.next=13,Promise.all([this._addRelatedBlankNodeHash({quad:l,component:l.subject,position:"s",id:t,issuer:r,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:l,component:l.object,position:"o",id:t,issuer:r,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:l,component:l.graph,position:"g",id:t,issuer:r,hashToRelated:n})]);case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(4),s.e(e.t0);case 20:return e.prev=20,s.f(),e.finish(20);case 23:return e.abrupt("return",n);case 24:case"end":return e.stop()}}),e,this,[[4,17,20,23]])}))),function(e,t){return l.apply(this,arguments)})},{key:"_hashAndTrackBlankNode",value:(n=(0,i.default)(a.default.mark((function e(t){var r,n,o,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,n=t.hashToBlankNodes,e.next=3,this.hashFirstDegreeQuads(r);case 3:o=e.sent,(i=n.get(o))?i.push(r):n.set(o,[r]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_addBlankNodeQuadInfo",value:function(e){var t=e.quad,r=e.component;if("BlankNode"===r.termType){var n=r.value,a=this.blankNodeInfo.get(n);a?a.quads.add(t):this.blankNodeInfo.set(n,{quads:new Set([t]),hash:null})}}},{key:"_addRelatedBlankNodeHash",value:(r=(0,i.default)(a.default.mark((function e(t){var r,n,o,i,s,u,c,l,f;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.quad,n=t.component,o=t.position,i=t.id,s=t.issuer,u=t.hashToRelated,"BlankNode"===n.termType&&n.value!==i){e.next=3;break}return e.abrupt("return");case 3:return c=n.value,e.next=6,this.hashRelatedBlankNode(c,r,s,o);case 6:l=e.sent,(f=u.get(l))?f.push(c):u.set(l,[c]);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_componentWithCanonicalId",value:function(e){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}},{key:"_yield",value:(t=(0,i.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setImmediate(e)})));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}()},function(e,t,r){"use strict";var n=r(7),a=r(13),o=r(54),i=r(201),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||a(e,"flags")||!o(s,e)?t:n(i,e)}},function(e,t,r){"use strict";var n=r(15);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,r){"use strict";var n=r(0),a=r(3).RegExp;e.exports=n((function(){var e=a(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,r){"use strict";var n=r(0),a=r(3).RegExp;e.exports=n((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,r){"use strict";var n=r(1),a=r(3),o=r(2),i=r(114),s=r(31),u=r(205),c=r(104),l=r(100),f=r(5),d=r(53),p=r(12),v=r(0),h=r(125),y=r(62),g=r(155);e.exports=function(e,t,r){var x=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),m=x?"set":"add",w=a[e],k=w&&w.prototype,j=w,S={},O=function(e){var t=o(k[e]);s(k,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(i(e,!f(w)||!(b||k.forEach&&!v((function(){(new w).entries().next()})))))j=r.getConstructor(t,e,x,m),u.enable();else if(i(e,!0)){var I=new j,E=I[m](b?{}:-0,1)!==I,A=v((function(){I.has(1)})),T=h((function(e){new w(e)})),N=!b&&v((function(){for(var e=new w,t=5;t--;)e[m](t,t);return!e.has(-0)}));T||((j=t((function(e,t){l(e,k);var r=g(new w,e,j);return d(t)||c(t,r[m],{that:r,AS_ENTRIES:x}),r}))).prototype=k,k.constructor=j),(A||N)&&(O("delete"),O("has"),x&&O("get")),(N||E)&&O(m),b&&k.clear&&delete k.clear}return S[e]=j,n({global:!0,constructor:!0,forced:j!==w},S),y(j,e),b||r.setStrong(j,e,x),j}},function(e,t,r){"use strict";var n=r(1),a=r(2),o=r(93),i=r(12),s=r(13),u=r(30).f,c=r(67),l=r(180),f=r(270),d=r(91),p=r(272),v=!1,h=d("meta"),y=0,g=function(e){u(e,h,{value:{objectID:"O"+y++,weakData:{}}})},x=e.exports={enable:function(){x.enable=function(){},v=!0;var e=c.f,t=a([].splice),r={};r[h]=1,e(r).length&&(c.f=function(r){for(var n=e(r),a=0,o=n.length;a<o;a++)if(n[a]===h){t(n,a,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,h)){if(!f(e))return"F";if(!t)return"E";g(e)}return e[h].objectID},getWeakData:function(e,t){if(!s(e,h)){if(!f(e))return!0;if(!t)return!1;g(e)}return e[h].weakData},onFreeze:function(e){return p&&v&&f(e)&&!s(e,h)&&g(e),e}};o[h]=!0},function(e,t,r){"use strict";var n=r(56),a=r(57),o=r(207),i=r(63),s=r(100),u=r(53),c=r(104),l=r(145),f=r(146),d=r(122),p=r(10),v=r(205).fastKey,h=r(41),y=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,r,l){var f=e((function(e,a){s(e,d),y(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),u(a)||c(a,e[l],{that:e,AS_ENTRIES:r})})),d=f.prototype,h=g(t),x=function(e,t,r){var n,a,o=h(e),i=b(e,t);return i?i.value=r:(o.last=i={index:a=v(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=i),n&&(n.next=i),p?o.size++:e.size++,"F"!==a&&(o.index[a]=i)),e},b=function(e,t){var r,n=h(e),a=v(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key===t)return r};return o(d,{clear:function(){for(var e=h(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=h(this),r=b(this,e);if(r){var n=r.next,a=r.previous;delete t.index[r.index],r.removed=!0,a&&(a.next=n),n&&(n.previous=a),t.first===r&&(t.first=n),t.last===r&&(t.last=a),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=h(this),n=i(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(d,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return x(this,0===e?0:e,t)}}:{add:function(e){return x(this,e=0===e?0:e,e)}}),p&&a(d,"size",{configurable:!0,get:function(){return h(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",a=g(t),o=g(n);l(e,t,(function(e,t){y(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),d(t)}}},function(e,t,r){"use strict";var n=r(31);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){"use strict";var n=r(42),a=r(49),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=a(t);if(t!==r)throw new o("Wrong length or index");return r}},function(e,t,r){"use strict";var n=r(21),a=r(68),o=r(20);e.exports=function(e){for(var t=n(this),r=o(t),i=arguments.length,s=a(i>1?arguments[1]:void 0,r),u=i>2?arguments[2]:void 0,c=void 0===u?r:a(u,r);c>s;)t[s++]=e;return t}},function(e,t,r){"use strict";var n=r(290),a=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new a("Wrong offset");return r}},function(e,t,r){"use strict";var n=r(169),a=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new a("Can't convert number to bigint");return BigInt(t)}},function(e,t,r){"use strict";var n=r(63),a=r(75),o=r(21),i=r(20),s=function(e){var t=1===e;return function(r,s,u){for(var c,l=o(r),f=a(l),d=i(f),p=n(s,u);d-- >0;)if(p(c=f[d],d,l))switch(e){case 0:return c;case 1:return d}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},function(e,t,r){"use strict";var n=r(40),a=r(21),o=r(75),i=r(20),s=TypeError,u=function(e){return function(t,r,u,c){var l=a(t),f=o(l),d=i(l);n(r);var p=e?d-1:0,v=e?-1:1;if(u<2)for(;;){if(p in f){c=f[p],p+=v;break}if(p+=v,e?p<0:d<=p)throw new s("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=v)p in f&&(c=r(c,f[p],p,l));return c}};e.exports={left:u(!1),right:u(!0)}},function(e,t,r){"use strict";var n=r(42),a=r(16),o=r(39),i=RangeError;e.exports=function(e){var t=a(o(this)),r="",s=n(e);if(s<0||s===1/0)throw new i("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
 */r(23),r(27),r(29),r(18),r(24),r(19),r(25),r(26);var n=r(9);r(28),r(11),r(51),r(4),r(17),r(14),r(22);var a=n(r(33)),o=n(r(34));function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(){function e(t){(0,a.default)(this,e),this.current=t.sort(),this.done=!1,this.dir=new Map;for(var r=0;r<t.length;++r)this.dir.set(t[r],!0)}return(0,o.default)(e,[{key:"hasNext",value:function(){return!this.done}},{key:"next",value:function(){for(var e=this.current,t=this.dir,r=e.slice(),n=null,a=0,o=e.length,s=0;s<o;++s){var u=e[s],c=t.get(u);(null===n||u>n)&&(c&&s>0&&u>e[s-1]||!c&&s<o-1&&u>e[s+1])&&(n=u,a=s)}if(null===n)this.done=!0;else{var l=t.get(n)?a-1:a+1;e[a]=e[l],e[l]=n;var f,d=i(e);try{for(d.s();!(f=d.n()).done;){var p=f.value;p>n&&t.set(p,!t.get(p))}}catch(e){d.e(e)}finally{d.f()}}return r}}]),e}()},function(e,t,r){"use strict";var n=r(58),a=r(7),o=r(2),i=r(159),s=r(15),u=r(53),c=r(143),l=r(39),f=r(147),d=r(160),p=r(49),v=r(16),h=r(78),y=r(115),g=r(161),x=r(126),b=r(127),m=r(0),w=b.UNSUPPORTED_Y,k=Math.min,j=[].push,S=o(/./.exec),O=o(j),I=o("".slice);i("split",(function(e,t,r){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=v(l(this)),i=void 0===r?4294967295:r>>>0;if(0===i)return[];if(void 0===e)return[o];if(!c(e))return a(t,o,e,i);for(var s,u,f,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,g=new RegExp(e.source,p+"g");(s=a(x,g,o))&&!((u=g.lastIndex)>h&&(O(d,I(o,h,s.index)),s.length>1&&s.index<o.length&&n(j,d,y(s,1)),f=s[0].length,h=u,d.length>=i));)g.lastIndex===s.index&&g.lastIndex++;return h===o.length?!f&&S(g,"")||O(d,""):O(d,I(o,h)),d.length>i?y(d,0,i):d}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:a(t,this,e,r)}:t,[function(t,r){var n=l(this),i=u(t)?void 0:h(t,e);return i?a(i,t,n,r):a(o,v(n),t,r)},function(e,n){var a=s(this),i=v(e),u=r(o,a,i,n,o!==t);if(u.done)return u.value;var c=f(a,RegExp),l=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(w?"g":"y"),y=new c(w?"^(?:"+a.source+")":a,h),x=void 0===n?4294967295:n>>>0;if(0===x)return[];if(0===i.length)return null===g(y,i)?[i]:[];for(var b=0,m=0,j=[];m<i.length;){y.lastIndex=w?0:m;var S,E=g(y,w?I(i,m):i);if(null===E||(S=k(p(y.lastIndex+(w?m:0)),i.length))===b)m=d(i,m,l);else{if(O(j,I(i,b,m)),j.length===x)return j;for(var A=1;A<=E.length-1;A++)if(O(j,E[A]),j.length===x)return j;m=b=S}}return O(j,I(i,b)),j}]}),!!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),w)},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
 */r(22),r(23),r(29),r(18),r(24),r(19),r(25),r(26);var n=r(9);r(11),r(51),r(4),r(17),r(14),r(27),r(28),r(106),r(84),r(85);var a=n(r(107)),o=n(r(33)),i=n(r(34));function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=r(157),l=r(128),f=r(218),d=r(158);function p(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createMessageDigest,n=void 0===r?function(){return new l("sha256")}:r,a=t.canonicalIdMap,i=void 0===a?new Map:a,s=t.maxDeepIterations,u=void 0===s?1/0:s;(0,o.default)(this,e),this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new c("_:c14n",i),this.createMessageDigest=n,this.maxDeepIterations=u,this.quads=null,this.deepIterations=null}return(0,i.default)(e,[{key:"main",value:function(e){this.deepIterations=new Map,this.quads=e;var t,r=s(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this._addBlankNodeQuadInfo({quad:n,component:n.subject}),this._addBlankNodeQuadInfo({quad:n,component:n.object}),this._addBlankNodeQuadInfo({quad:n,component:n.graph})}}catch(e){r.e(e)}finally{r.f()}var o,i=new Map,u=s((0,a.default)(this.blankNodeInfo.keys()));try{for(u.s();!(o=u.n()).done;){var l=o.value;this._hashAndTrackBlankNode({id:l,hashToBlankNodes:i})}}catch(e){u.e(e)}finally{u.f()}var f,v=[],h=s((0,a.default)(i.keys()).sort());try{for(h.s();!(f=h.n()).done;){var y=f.value,g=i.get(y);if(g.length>1)v.push(g);else{var x=g[0];this.canonicalIssuer.getId(x)}}}catch(e){h.e(e)}finally{h.f()}for(var b=0,m=v;b<m.length;b++){var w,k=[],j=s(m[b]);try{for(j.s();!(w=j.n()).done;){var S=w.value;if(!this.canonicalIssuer.hasId(S)){var O=new c("_:b");O.getId(S);var I=this.hashNDegreeQuads(S,O);k.push(I)}}}catch(e){j.e(e)}finally{j.f()}k.sort(p);for(var E=0,A=k;E<A.length;E++){var T,N=s(A[E].issuer.getOldIds());try{for(N.s();!(T=N.n()).done;){var R=T.value;this.canonicalIssuer.getId(R)}}catch(e){N.e(e)}finally{N.f()}}}var _,D=[],L=s(this.quads);try{for(L.s();!(_=L.n()).done;){var C=_.value,M=d.serializeQuadComponents(this._componentWithCanonicalId({component:C.subject}),C.predicate,this._componentWithCanonicalId({component:C.object}),this._componentWithCanonicalId({component:C.graph}));D.push(M)}}catch(e){L.e(e)}finally{L.f()}return D.sort(),D.join("")}},{key:"hashFirstDegreeQuads",value:function(e){var t,r=[],n=this.blankNodeInfo.get(e),a=s(n.quads);try{for(a.s();!(t=a.n()).done;){var o=t.value,i={subject:null,predicate:o.predicate,object:null,graph:null};i.subject=this.modifyFirstDegreeComponent(e,o.subject,"subject"),i.object=this.modifyFirstDegreeComponent(e,o.object,"object"),i.graph=this.modifyFirstDegreeComponent(e,o.graph,"graph"),r.push(d.serializeQuad(i))}}catch(e){a.e(e)}finally{a.f()}r.sort();for(var u=this.createMessageDigest(),c=0,l=r;c<l.length;c++){var f=l[c];u.update(f)}return n.hash=u.digest(),n.hash}},{key:"hashRelatedBlankNode",value:function(e,t,r,n){var a;a=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):r.hasId(e)?r.getId(e):this.blankNodeInfo.get(e).hash;var o=this.createMessageDigest();return o.update(n),"g"!==n&&o.update(this.getRelatedPredicate(t)),o.update(a),o.digest()}},{key:"hashNDegreeQuads",value:function(e,t){var r=this.deepIterations.get(e)||0;if(r>this.maxDeepIterations)throw new Error("Maximum deep iterations (".concat(this.maxDeepIterations,") exceeded."));this.deepIterations.set(e,r+1);var n,o=this.createMessageDigest(),i=this.createHashToRelated(e,t),u=s((0,a.default)(i.keys()).sort());try{for(u.s();!(n=u.n()).done;){var c=n.value;o.update(c);for(var l="",d=void 0,p=new f(i.get(c));p.hasNext();){var v,h=p.next(),y=t.clone(),g="",x=[],b=!1,m=s(h);try{for(m.s();!(v=m.n()).done;){var w=v.value;if(this.canonicalIssuer.hasId(w)?g+=this.canonicalIssuer.getId(w):(y.hasId(w)||x.push(w),g+=y.getId(w)),0!==l.length&&g>l){b=!0;break}}}catch(e){m.e(e)}finally{m.f()}if(!b){for(var k=0,j=x;k<j.length;k++){var S=j[k],O=this.hashNDegreeQuads(S,y);if(g+=y.getId(S),g+="<".concat(O.hash,">"),y=O.issuer,0!==l.length&&g>l){b=!0;break}}b||(0===l.length||g<l)&&(l=g,d=y)}}o.update(l),t=d}}catch(e){u.e(e)}finally{u.f()}return{hash:o.digest(),issuer:t}}},{key:"modifyFirstDegreeComponent",value:function(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}},{key:"getRelatedPredicate",value:function(e){return"<".concat(e.predicate.value,">")}},{key:"createHashToRelated",value:function(e,t){var r,n=new Map,a=s(this.blankNodeInfo.get(e).quads);try{for(a.s();!(r=a.n()).done;){var o=r.value;this._addRelatedBlankNodeHash({quad:o,component:o.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:o,component:o.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:o,component:o.graph,position:"g",id:e,issuer:t,hashToRelated:n})}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"_hashAndTrackBlankNode",value:function(e){var t=e.id,r=e.hashToBlankNodes,n=this.hashFirstDegreeQuads(t),a=r.get(n);a?a.push(t):r.set(n,[t])}},{key:"_addBlankNodeQuadInfo",value:function(e){var t=e.quad,r=e.component;if("BlankNode"===r.termType){var n=r.value,a=this.blankNodeInfo.get(n);a?a.quads.add(t):this.blankNodeInfo.set(n,{quads:new Set([t]),hash:null})}}},{key:"_addRelatedBlankNodeHash",value:function(e){var t=e.quad,r=e.component,n=e.position,a=e.id,o=e.issuer,i=e.hashToRelated;if("BlankNode"===r.termType&&r.value!==a){var s=r.value,u=this.hashRelatedBlankNode(s,t,o,n),c=i.get(u);c?c.push(s):i.set(u,[s])}}},{key:"_componentWithCanonicalId",value:function(e){var t=e.component;return"BlankNode"!==t.termType||t.value.startsWith(this.canonicalIssuer.prefix)?t:{termType:"BlankNode",value:this.canonicalIssuer.getId(t.value)}}}]),e}()},function(e,t,r){"use strict";var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(9),a=n(r(37));r(4),r(64);var o=n(r(43)),i=n(r(33)),s=n(r(34));e.exports=function(){function e(){(0,i.default)(this,e),this._requests={}}var t;return(0,s.default)(e,[{key:"wrapLoader",value:function(e){var t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}},{key:"add",value:(t=(0,o.default)(a.default.mark((function e(t){var r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._requests[t])){e.next=3;break}return e.abrupt("return",Promise.resolve(r));case 3:return r=this._requests[t]=this._loader(t),e.prev=4,e.next=7,r;case 7:return e.abrupt("return",e.sent);case 8:return e.prev=8,delete this._requests[t],e.finish(8);case 11:case"end":return e.stop()}}),e,this,[[4,,8,11]])}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,r){"use strict";var n=r(9),a=n(r(33)),o=n(r(34));r(19),r(25),r(4),r(72),r(80),r(64),r(11),r(51),r(17),r(14),r(71);var i=r(350),s=Symbol("max"),u=Symbol("length"),c=Symbol("lengthCalculator"),l=Symbol("allowStale"),f=Symbol("maxAge"),d=Symbol("dispose"),p=Symbol("noDisposeOnSet"),v=Symbol("lruList"),h=Symbol("cache"),y=Symbol("updateAgeOnGet"),g=function(){return 1},x=function(){function e(t){if((0,a.default)(this,e),"number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[s]=t.max||1/0;var r=t.length||g;if(this[c]="function"!=typeof r?g:r,this[l]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[f]=t.maxAge||0,this[d]=t.dispose,this[p]=t.noDisposeOnSet||!1,this[y]=t.updateAgeOnGet||!1,this.reset()}return(0,o.default)(e,[{key:"max",get:function(){return this[s]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||1/0,w(this)}},{key:"allowStale",get:function(){return this[l]},set:function(e){this[l]=!!e}},{key:"maxAge",get:function(){return this[f]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[f]=e,w(this)}},{key:"lengthCalculator",get:function(){return this[c]},set:function(e){var t=this;"function"!=typeof e&&(e=g),e!==this[c]&&(this[c]=e,this[u]=0,this[v].forEach((function(e){e.length=t[c](e.value,e.key),t[u]+=e.length}))),w(this)}},{key:"length",get:function(){return this[u]}},{key:"itemCount",get:function(){return this[v].length}},{key:"rforEach",value:function(e,t){t=t||this;for(var r=this[v].tail;null!==r;){var n=r.prev;S(this,e,r,t),r=n}}},{key:"forEach",value:function(e,t){t=t||this;for(var r=this[v].head;null!==r;){var n=r.next;S(this,e,r,t),r=n}}},{key:"keys",value:function(){return this[v].toArray().map((function(e){return e.key}))}},{key:"values",value:function(){return this[v].toArray().map((function(e){return e.value}))}},{key:"reset",value:function(){var e=this;this[d]&&this[v]&&this[v].length&&this[v].forEach((function(t){return e[d](t.key,t.value)})),this[h]=new Map,this[v]=new i,this[u]=0}},{key:"dump",value:function(){var e=this;return this[v].map((function(t){return!m(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))}},{key:"dumpLru",value:function(){return this[v]}},{key:"set",value:function(e,t,r){if((r=r||this[f])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");var n=r?Date.now():0,a=this[c](t,e);if(this[h].has(e)){if(a>this[s])return k(this,this[h].get(e)),!1;var o=this[h].get(e).value;return this[d]&&(this[p]||this[d](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[u]+=a-o.length,o.length=a,this.get(e),w(this),!0}var i=new j(e,t,a,n,r);return i.length>this[s]?(this[d]&&this[d](e,t),!1):(this[u]+=i.length,this[v].unshift(i),this[h].set(e,this[v].head),w(this),!0)}},{key:"has",value:function(e){if(!this[h].has(e))return!1;var t=this[h].get(e).value;return!m(this,t)}},{key:"get",value:function(e){return b(this,e,!0)}},{key:"peek",value:function(e){return b(this,e,!1)}},{key:"pop",value:function(){var e=this[v].tail;return e?(k(this,e),e.value):null}},{key:"del",value:function(e){k(this,this[h].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],a=n.e||0;if(0===a)this.set(n.k,n.v);else{var o=a-t;o>0&&this.set(n.k,n.v,o)}}}},{key:"prune",value:function(){var e=this;this[h].forEach((function(t,r){return b(e,r,!1)}))}}]),e}(),b=function(e,t,r){var n=e[h].get(t);if(n){var a=n.value;if(m(e,a)){if(k(e,n),!e[l])return}else r&&(e[y]&&(n.value.now=Date.now()),e[v].unshiftNode(n));return a.value}},m=function(e,t){if(!t||!t.maxAge&&!e[f])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[f]&&r>e[f]},w=function(e){if(e[u]>e[s])for(var t=e[v].tail;e[u]>e[s]&&null!==t;){var r=t.prev;k(e,t),t=r}},k=function(e,t){if(t){var r=t.value;e[d]&&e[d](r.key,r.value),e[u]-=r.length,e[h].delete(r.key),e[v].removeNode(t)}},j=(0,o.default)((function e(t,r,n,o,i){(0,a.default)(this,e),this.key=t,this.value=r,this.length=n,this.now=o,this.maxAge=i||0})),S=function(e,t,r,n){var a=r.value;m(e,a)&&(k(e,r),e[l]||(a=void 0)),a&&t.call(n,a.value,a.key,e)};e.exports=x},function(e,t,r){"use strict";var n=r(1),a=r(2),o=r(42),i=r(362),s=r(217),u=r(0),c=RangeError,l=String,f=Math.floor,d=a(s),p=a("".slice),v=a(1..toFixed),h=function(e,t,r){return 0===t?r:t%2==1?h(e,t-1,r*e):h(e*e,t/2,r)},y=function(e,t,r){for(var n=-1,a=r;++n<6;)a+=t*e[n],e[n]=a%1e7,a=f(a/1e7)},g=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=f(n/t),n=n%t*1e7},x=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=l(e[t]);r=""===r?n:r+d("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:u((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!u((function(){v({})}))},{toFixed:function(e){var t,r,n,a,s=i(this),u=o(e),f=[0,0,0,0,0,0],v="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(v="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*h(2,69,1))-69)<0?s*h(2,-t,1):s/h(2,t,1),r*=4503599627370496,(t=52-t)>0){for(y(f,0,r),n=u;n>=7;)y(f,1e7,0),n-=7;for(y(f,h(10,n,1),0),n=t-1;n>=23;)g(f,1<<23),n-=23;g(f,1<<n),y(f,1,1),g(f,2),b=x(f)}else y(f,0,r),y(f,1<<-t,0),b=x(f)+d("0",u);return b=u>0?v+((a=b.length)<=u?"0."+d("0",u-a)+b:p(b,0,a-u)+"."+p(b,a-u)):v+b}})},function(e,t,r){"use strict";var n=r(1),a=r(36).find,o=r(141),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),n({target:"Array",proto:!0,forced:i},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,r){e.exports=r(229)},function(e,t,r){"use strict";r(19),r(71),r(118),r(72),r(120);var n=r(9),a=n(r(242)),o=n(r(37));r(140),r(32),r(80),r(81),r(82),r(11),r(4),r(64),r(17),r(14),r(28),r(22),r(153);var i=n(r(105)),s=n(r(43)),u=["documentLoader"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}
/**
 * A JavaScript implementation of the JSON-LD API.
 *
 * @author Dave Longley
 *
 * @license BSD 3-Clause License
 * Copyright (c) 2011-2022 Digital Bazaar, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 *
 * Neither the name of the Digital Bazaar, Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */var f=r(154),d=r(340),p=r(44),v=r(348),h=p.IdentifierIssuer,y=r(45),g=r(225),x=r(354),b=r(355).expand,m=r(359).flatten,w=r(360).fromRDF,k=r(363).toRDF,j=r(366),S=j.frameMergedOrDefault,O=j.cleanupNull,I=r(38),E=I.isArray,A=I.isObject,T=I.isString,N=r(60).isSubjectReference,R=r(73),_=R.expandIri,D=R.getInitialContext,L=R.process,C=R.processingMode,M=r(367),P=M.compact,F=M.compactIri,B=r(133),J=B.createNodeMap,U=B.createMergedNodeMap,H=B.mergeNodeMaps,V=r(108),q=V.logEventHandler,G=V.logWarningEventHandler,z=V.safeEventHandler,W=V.setDefaultEventHandler,$=V.setupEventHandler,K=V.strictEventHandler,Q=V.unhandledEventHandler,Y=function(e){var t={},n=new g({max:100});function i(t,r){var n=r.documentLoader,o=void 0===n?e.documentLoader:n,i=(0,a.default)(r,u);if(t&&"compactionMap"in t)throw new y('"compactionMap" not supported.',"jsonld.OptionsError");if(t&&"expansionMap"in t)throw new y('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:o},i,t,{eventHandler:$({options:t})})}return e.compact=function(){var t=(0,s.default)(o.default.mark((function t(r,a,s){var u,c,l,f,d,g,x,b,m,w,k=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(k.length<2)){t.next=2;break}throw new TypeError("Could not compact, too few arguments.");case 2:if(null!==a){t.next=4;break}throw new y("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});case 4:if(null!==r){t.next=6;break}return t.abrupt("return",null);case 6:if((s=i(s,{base:T(r)?r:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new h("_:b"),contextResolver:new v({sharedCache:n})})).link&&(s.skipExpansion=!0),s.compactToRelative||delete s.base,!s.skipExpansion){t.next=13;break}u=r,t.next=16;break;case 13:return t.next=15,e.expand(r,s);case 15:u=t.sent;case 16:return t.next=18,e.processContext(D(s),a,s);case 18:return c=t.sent,t.next=21,P({activeCtx:c,element:u,options:s});case 21:l=t.sent,s.compactArrays&&!s.graph&&E(l)?1===l.length?l=l[0]:0===l.length&&(l={}):s.graph&&A(l)&&(l=[l]),A(a)&&"@context"in a&&(a=a["@context"]),a=p.clone(a),E(a)||(a=[a]),f=a,a=[];for(d=0;d<f.length;++d)(!A(f[d])||Object.keys(f[d]).length>0)&&a.push(f[d]);if(g=a.length>0,1===a.length&&(a=a[0]),E(l))x=F({activeCtx:c,iri:"@graph",relativeTo:{vocab:!0}}),b=l,l={},g&&(l["@context"]=a),l[x]=b;else if(A(l)&&g)for(w in m=l,l={"@context":a},m)l[w]=m[w];return t.abrupt("return",l);case 33:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),e.expand=function(){var t=(0,s.default)(o.default.mark((function t(r,a){var s,u,c,l,f,d,h,y,g,x,m=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(m.length<1)){t.next=2;break}throw new TypeError("Could not expand, too few arguments.");case 2:if(a=i(a,{keepFreeFloatingNodes:!1,contextResolver:new v({sharedCache:n})}),s={},u=[],"expandContext"in a&&(c=p.clone(a.expandContext),A(c)&&"@context"in c?s.expandContext=c:s.expandContext={"@context":c},u.push(s.expandContext)),T(r)){t.next=10;break}s.input=p.clone(r),t.next=16;break;case 10:return t.next=12,e.get(r,a);case 12:f=t.sent,l=f.documentUrl,s.input=f.document,f.contextUrl&&(s.remoteContext={"@context":f.contextUrl},u.push(s.remoteContext));case 16:"base"in a||(a.base=l||""),d=D(a),h=0,y=u;case 19:if(!(h<y.length)){t.next=27;break}return g=y[h],t.next=23,L({activeCtx:d,localCtx:g,options:a});case 23:d=t.sent;case 24:h++,t.next=19;break;case 27:return t.next=29,b({activeCtx:d,element:s.input,options:a});case 29:return x=t.sent,A(x)&&"@graph"in x&&1===Object.keys(x).length?x=x["@graph"]:null===x&&(x=[]),E(x)||(x=[x]),t.abrupt("return",x);case 33:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.flatten=function(){var t=(0,s.default)(o.default.mark((function t(r,a,s){var u,c,l,f=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(f.length<1)){t.next=2;break}return t.abrupt("return",new TypeError("Could not flatten, too few arguments."));case 2:return a="function"==typeof a?null:a||null,s=i(s,{base:T(r)?r:"",contextResolver:new v({sharedCache:n})}),t.next=6,e.expand(r,s);case 6:if(u=t.sent,c=m(u),null!==a){t.next=10;break}return t.abrupt("return",c);case 10:return s.graph=!0,s.skipExpansion=!0,t.next=14,e.compact(c,a,s);case 14:return l=t.sent,t.abrupt("return",l);case 16:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),e.frame=function(){var t=(0,s.default)(o.default.mark((function t(r,a,s){var u,c,f,d,p,h,y,g,x,b,m=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(m.length<2)){t.next=2;break}throw new TypeError("Could not frame, too few arguments.");case 2:if(s=i(s,{base:T(r)?r:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new v({sharedCache:n})}),!T(a)){t.next=9;break}return t.next=6,e.get(a,s);case 6:u=t.sent,a=u.document,u.contextUrl&&((c=a["@context"])?E(c)?c.push(u.contextUrl):c=[c,u.contextUrl]:c=u.contextUrl,a["@context"]=c);case 9:return f=a&&a["@context"]||{},t.next=12,e.processContext(D(s),f,s);case 12:return d=t.sent,s.hasOwnProperty("omitGraph")||(s.omitGraph=C(d,1.1)),s.hasOwnProperty("pruneBlankNodeIdentifiers")||(s.pruneBlankNodeIdentifiers=C(d,1.1)),t.next=17,e.expand(r,s);case 17:return p=t.sent,(h=l({},s)).isFrame=!0,h.keepFreeFloatingNodes=!0,t.next=23,e.expand(a,h);case 23:return y=t.sent,g=Object.keys(a).map((function(e){return _(d,e,{vocab:!0})})),h.merged=!g.includes("@graph"),h.is11=C(d,1.1),x=S(p,y,h),h.graph=!s.omitGraph,h.skipExpansion=!0,h.link={},h.framing=!0,t.next=34,e.compact(x,f,h);case 34:return b=t.sent,h.link={},b=O(b,h),t.abrupt("return",b);case 38:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),e.link=function(){var t=(0,s.default)(o.default.mark((function t(r,n,a){var i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={},n&&(i["@context"]=n),i["@embed"]="@link",t.abrupt("return",e.frame(r,i,a));case 4:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),e.normalize=e.canonize=function(){var t=(0,s.default)(o.default.mark((function t(r,a){var s,u,c,d=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(d.length<1)){t.next=2;break}throw new TypeError("Could not canonize, too few arguments.");case 2:if(!("inputFormat"in(a=i(a,{base:T(r)?r:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new v({sharedCache:n})})))){t.next=8;break}if("application/n-quads"===a.inputFormat||"application/nquads"===a.inputFormat){t.next=6;break}throw new y("Unknown canonicalization input format.","jsonld.CanonizeError");case 6:return s=x.parse(r),t.abrupt("return",f.canonize(s,a));case 8:return delete(u=l({},a)).format,u.produceGeneralizedRdf=!1,t.next=13,e.toRDF(r,u);case 13:return c=t.sent,t.abrupt("return",f.canonize(c,a));case 15:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.fromRDF=function(){var e=(0,s.default)(o.default.mark((function e(r,n){var a,s,u,c=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.length<1)){e.next=2;break}throw new TypeError("Could not convert from RDF, too few arguments.");case 2:if(n=i(n,{format:T(r)?"application/n-quads":void 0}),a=n.format,s=n.rdfParser,!a){e.next=11;break}if(s=s||t[a]){e.next=9;break}throw new y("Unknown input format.","jsonld.UnknownFormat",{format:a});case 9:e.next=12;break;case 11:s=function(){return r};case 12:return e.next=14,s(r);case 14:return u=e.sent,e.abrupt("return",w(u,n));case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),e.toRDF=function(){var t=(0,s.default)(o.default.mark((function t(r,a){var s,u,c=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(c.length<1)){t.next=2;break}throw new TypeError("Could not convert to RDF, too few arguments.");case 2:if(!(a=i(a,{base:T(r)?r:"",skipExpansion:!1,contextResolver:new v({sharedCache:n})})).skipExpansion){t.next=7;break}s=r,t.next=10;break;case 7:return t.next=9,e.expand(r,a);case 9:s=t.sent;case 10:if(u=k(s,a),!a.format){t.next=15;break}if("application/n-quads"!==a.format&&"application/nquads"!==a.format){t.next=14;break}return t.abrupt("return",x.serialize(u));case 14:throw new y("Unknown output format.","jsonld.UnknownFormat",{format:a.format});case 15:return t.abrupt("return",u);case 16:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.createNodeMap=function(){var t=(0,s.default)(o.default.mark((function t(r,a){var s,u=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(u.length<1)){t.next=2;break}throw new TypeError("Could not create node map, too few arguments.");case 2:return a=i(a,{base:T(r)?r:"",contextResolver:new v({sharedCache:n})}),t.next=5,e.expand(r,a);case 5:return s=t.sent,t.abrupt("return",U(s,a));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.merge=function(){var t=(0,s.default)(o.default.mark((function t(r,a,s){var u,c,f,d,y,g,x,b,m,w,k,j,S,O,I,A,T,R=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(R.length<1)){t.next=2;break}throw new TypeError("Could not merge, too few arguments.");case 2:if(E(r)){t.next=4;break}throw new TypeError('Could not merge, "docs" must be an array.');case 4:return a="function"==typeof a?null:a||null,s=i(s,{contextResolver:new v({sharedCache:n})}),t.next=8,Promise.all(r.map((function(t){var r=l({},s);return e.expand(t,r)})));case 8:u=t.sent,c=!0,"mergeNodes"in s&&(c=s.mergeNodes),f=s.issuer||new h("_:b"),d={"@default":{}},y=0;case 14:if(!(y<u.length)){t.next=33;break}if(g=p.relabelBlankNodes(u[y],{issuer:new h("_:b"+y+"-")}),J(g,x=c||0===y?d:{"@default":{}},"@default",f),x===d){t.next=30;break}t.t0=o.default.keys(x);case 20:if((t.t1=t.t0()).done){t.next=30;break}if(b=t.t1.value,m=x[b],b in d){t.next=26;break}return d[b]=m,t.abrupt("continue",20);case 26:for(k in w=d[b],m)k in w||(w[k]=m[k]);t.next=20;break;case 30:++y,t.next=14;break;case 33:for(j=H(d),S=[],O=Object.keys(j).sort(),I=0;I<O.length;++I)A=j[O[I]],N(A)||S.push(A);if(null!==a){t.next=39;break}return t.abrupt("return",S);case 39:return s.graph=!0,s.skipExpansion=!0,t.next=43,e.compact(S,a,s);case 43:return T=t.sent,t.abrupt("return",T);case 45:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),Object.defineProperty(e,"documentLoader",{get:function(){return e._documentLoader},set:function(t){return e._documentLoader=t}}),e.documentLoader=function(){var e=(0,s.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new y("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:t});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e.get=function(){var t=(0,s.default)(o.default.mark((function t(r,n){var a,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="function"==typeof n.documentLoader?n.documentLoader:e.documentLoader,t.next=3,a(r);case 3:if(i=t.sent,t.prev=4,i.document){t.next=7;break}throw new y("No remote document found at the given URL.","jsonld.NullRemoteDocument");case 7:T(i.document)&&(i.document=JSON.parse(i.document)),t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(4),new y("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:t.t0,remoteDoc:i});case 13:return t.abrupt("return",i);case 14:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e,r){return t.apply(this,arguments)}}(),e.processContext=function(){var e=(0,s.default)(o.default.mark((function e(t,r,a){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=i(a,{base:"",contextResolver:new v({sharedCache:n})}),null!==r){e.next=3;break}return e.abrupt("return",D(a));case 3:return r=p.clone(r),A(r)&&"@context"in r||(r={"@context":r}),e.abrupt("return",L({activeCtx:t,localCtx:r,options:a}));case 6:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),e.getContextValue=r(73).getContextValue,e.documentLoaders={},e.useDocumentLoader=function(t){if(!(t in e.documentLoaders))throw new y('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,r){t[e]=r},e.unregisterRDFParser=function(e){delete t[e]},e.registerRDFParser("application/n-quads",x.parse),e.registerRDFParser("application/nquads",x.parse),e.url=r(65),e.logEventHandler=q,e.logWarningEventHandler=G,e.safeEventHandler=z,e.setDefaultEventHandler=W,e.strictEventHandler=K,e.unhandledEventHandler=Q,e.util=p,Object.assign(e,p),e.promises=e,e.RequestQueue=r(224),e.JsonLdProcessor=r(369)(e),d.setupGlobals(e),d.setupDocumentLoaders(e),e},X=function e(){return Y((function(){return e()}))};Y(X),e.exports=X},function(e,t,r){"use strict";var n=r(1),a=r(3),o=r(7),i=r(2),s=r(48),u=r(10),c=r(76),l=r(0),f=r(13),d=r(54),p=r(15),v=r(35),h=r(89),y=r(16),g=r(74),x=r(56),b=r(94),m=r(67),w=r(180),k=r(113),j=r(52),S=r(30),O=r(178),I=r(109),E=r(31),A=r(57),T=r(79),N=r(111),R=r(93),_=r(91),D=r(8),L=r(181),C=r(182),M=r(235),P=r(62),F=r(41),B=r(36).forEach,J=N("hidden"),U=F.set,H=F.getterFor("Symbol"),V=Object.prototype,q=a.Symbol,G=q&&q.prototype,z=a.RangeError,W=a.TypeError,$=a.QObject,K=j.f,Q=S.f,Y=w.f,X=I.f,Z=i([].push),ee=T("symbols"),te=T("op-symbols"),re=T("wks"),ne=!$||!$.prototype||!$.prototype.findChild,ae=function(e,t,r){var n=K(V,t);n&&delete V[t],Q(e,t,r),n&&e!==V&&Q(V,t,n)},oe=u&&l((function(){return 7!==x(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ae:Q,ie=function(e,t){var r=ee[e]=x(G);return U(r,{type:"Symbol",tag:e,description:t}),u||(r.description=t),r},se=function(e,t,r){e===V&&se(te,t,r),p(e);var n=h(t);return p(r),f(ee,n)?(r.enumerable?(f(e,J)&&e[J][n]&&(e[J][n]=!1),r=x(r,{enumerable:g(0,!1)})):(f(e,J)||Q(e,J,g(1,{})),e[J][n]=!0),oe(e,n,r)):Q(e,n,r)},ue=function(e,t){p(e);var r=v(t),n=b(r).concat(de(r));return B(n,(function(t){u&&!o(ce,r,t)||se(e,t,r[t])})),e},ce=function(e){var t=h(e),r=o(X,this,t);return!(this===V&&f(ee,t)&&!f(te,t))&&(!(r||!f(this,t)||!f(ee,t)||f(this,J)&&this[J][t])||r)},le=function(e,t){var r=v(e),n=h(t);if(r!==V||!f(ee,n)||f(te,n)){var a=K(r,n);return!a||!f(ee,n)||f(r,J)&&r[J][n]||(a.enumerable=!0),a}},fe=function(e){var t=Y(v(e)),r=[];return B(t,(function(e){f(ee,e)||f(R,e)||Z(r,e)})),r},de=function(e){var t=e===V,r=Y(t?te:v(e)),n=[];return B(r,(function(e){!f(ee,e)||t&&!f(V,e)||Z(n,ee[e])})),n};c||(E(G=(q=function(){if(d(G,this))throw new W("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=_(e),r=function(e){var n=void 0===this?a:this;n===V&&o(r,te,e),f(n,J)&&f(n[J],t)&&(n[J][t]=!1);var i=g(1,e);try{oe(n,t,i)}catch(e){if(!(e instanceof z))throw e;ae(n,t,i)}};return u&&ne&&oe(V,t,{configurable:!0,set:r}),ie(t,e)}).prototype,"toString",(function(){return H(this).tag})),E(q,"withoutSetter",(function(e){return ie(_(e),e)})),I.f=ce,S.f=se,O.f=ue,j.f=le,m.f=w.f=fe,k.f=de,L.f=function(e){return ie(D(e),e)},u&&(A(G,"description",{configurable:!0,get:function(){return H(this).description}}),s||E(V,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(b(re),(function(e){C(e)})),n({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?x(e):ue(x(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),M(),P(q,"Symbol"),R[J]=!0},function(e,t,r){"use strict";var n=r(7),a=r(5),o=r(12),i=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&a(r=e.toString)&&!o(s=n(r,e)))return s;if(a(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&a(r=e.toString)&&!o(s=n(r,e)))return s;throw new i("Can't convert object to primitive value")}},function(e,t,r){"use strict";var n=r(3),a=r(5),o=n.WeakMap;e.exports=a(o)&&/native code/.test(String(o))},function(e,t,r){"use strict";var n=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?a:n)(t)}},function(e,t,r){"use strict";var n=r(3);e.exports=n},function(e,t,r){"use strict";var n=r(7),a=r(47),o=r(8),i=r(31);e.exports=function(){var e=a("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&i(t,s,(function(e){return n(r,this)}),{arity:1})}},function(e,t,r){"use strict";var n=r(96),a=r(116),o=r(12),i=r(8)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(a(t)&&(t===s||n(t.prototype))||o(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?s:t}},function(e,t,r){"use strict";var n=r(1),a=r(47),o=r(13),i=r(16),s=r(79),u=r(183),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=i(e);if(o(c,t))return c[t];var r=a("Symbol")(t);return c[t]=r,l[r]=t,r}})},function(e,t,r){"use strict";var n=r(1),a=r(13),o=r(90),i=r(66),s=r(79),u=r(183),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw new TypeError(i(e)+" is not a symbol");if(a(c,e))return c[e]}})},function(e,t,r){"use strict";var n=r(2),a=r(96),o=r(5),i=r(46),s=r(16),u=n([].push);e.exports=function(e){if(o(e))return e;if(a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?u(r,c):"number"!=typeof c&&"Number"!==i(c)&&"String"!==i(c)||u(r,s(c))}var l=r.length,f=!0;return function(e,t){if(f)return f=!1,t;if(a(this))return t;for(var n=0;n<l;n++)if(r[n]===e)return t}}}},function(e,t,r){"use strict";var n=r(1),a=r(76),o=r(0),i=r(113),s=r(21);n({target:"Object",stat:!0,forced:!a||o((function(){i.f(1)}))},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(s(e)):[]}})},function(e,t,r){"use strict";var n=r(36).forEach,a=r(119)("forEach");e.exports=a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){var n=r(243);e.exports=function(e,t){if(null==e)return{};var r,a,o=n(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(59).default;function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=a=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,i=o.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),i=new _(n||[]);return s(o,"_invoke",{value:A(e,r,i)}),o}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var h="suspendedStart",y="executing",g="completed",x={};function b(){}function m(){}function w(){}var k={};d(k,c,(function(){return this}));var j=Object.getPrototypeOf,S=j&&j(j(D([])));S&&S!==o&&i.call(S,c)&&(k=S);var O=w.prototype=b.prototype=Object.create(k);function I(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,o,s,u){var c=v(e[a],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var a;s(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(o,o):o()}})}function A(e,r,n){var a=h;return function(o,i){if(a===y)throw new Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var u=T(s,n);if(u){if(u===x)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var c=v(e,r,n);if("normal"===c.type){if(a=n.done?g:"suspendedYield",c.arg===x)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function T(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),x;var o=v(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,x;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,x):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,x)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+" is not iterable")}return m.prototype=w,s(O,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:m,configurable:!0}),m.displayName=d(w,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,f,"GeneratorFunction")),e.prototype=Object.create(O),e},r.awrap=function(e){return{__await:e}},I(E.prototype),d(E.prototype,l,(function(){return this})),r.AsyncIterator=E,r.async=function(e,t,n,a,o){void 0===o&&(o=Promise);var i=new E(p(e,t,n,a),o);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},I(O),d(O,f,"Generator"),d(O,c,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=D,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,x):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),x},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),x}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;R(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),x}},r}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(2),a=r(39),o=r(16),i=/"/g,s=n("".replace);e.exports=function(e,t,r,n){var u=o(a(e)),c="<"+t;return""!==r&&(c+=" "+r+'="'+s(o(n),i,"&quot;")+'"'),c+">"+u+"</"+t+">"}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,r){"use strict";var n=r(186).IteratorPrototype,a=r(56),o=r(74),i=r(62),s=r(98),u=function(){return this};e.exports=function(e,t,r,c){var l=t+" Iterator";return e.prototype=a(n,{next:o(+!c,r)}),i(e,l,!1,!0),s[l]=u,e}},function(e,t,r){"use strict";var n=r(0);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){"use strict";var n=r(2),a=r(40);e.exports=function(e,t,r){try{return n(a(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},function(e,t,r){"use strict";var n=r(5),a=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw new o("Can't set "+a(e)+" as a prototype")}},function(e,t,r){"use strict";var n=r(138),a=r(61);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},function(e,t,r){"use strict";var n,a,o,i=r(1),s=r(48),u=r(121),c=r(3),l=r(7),f=r(31),d=r(83),p=r(62),v=r(122),h=r(40),y=r(5),g=r(12),x=r(100),b=r(147),m=r(123).set,w=r(253),k=r(256),j=r(149),S=r(189),O=r(41),I=r(101),E=r(102),A=r(103),T=E.CONSTRUCTOR,N=E.REJECTION_EVENT,R=E.SUBCLASSING,_=O.getterFor("Promise"),D=O.set,L=I&&I.prototype,C=I,M=L,P=c.TypeError,F=c.document,B=c.process,J=A.f,U=J,H=!!(F&&F.createEvent&&c.dispatchEvent),V=function(e){var t;return!(!g(e)||!y(t=e.then))&&t},q=function(e,t){var r,n,a,o=t.value,i=1===t.state,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{s?(i||(2===t.rejection&&K(t),t.rejection=1),!0===s?r=o:(f&&f.enter(),r=s(o),f&&(f.exit(),a=!0)),r===e.promise?c(new P("Promise-chain cycle")):(n=V(r))?l(n,r,u,c):u(r)):c(o)}catch(e){f&&!a&&f.exit(),c(e)}},G=function(e,t){e.notified||(e.notified=!0,w((function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&W(e)})))},z=function(e,t,r){var n,a;H?((n=F.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!N&&(a=c["on"+e])?a(n):"unhandledrejection"===e&&k("Unhandled promise rejection",r)},W=function(e){l(m,c,(function(){var t,r=e.facade,n=e.value;if($(e)&&(t=j((function(){u?B.emit("unhandledRejection",n,r):z("unhandledrejection",r,n)})),e.rejection=u||$(e)?2:1,t.error))throw t.value}))},$=function(e){return 1!==e.rejection&&!e.parent},K=function(e){l(m,c,(function(){var t=e.facade;u?B.emit("rejectionHandled",t):z("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},Y=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,G(e,!0))},X=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new P("Promise can't be resolved itself");var n=V(t);n?w((function(){var r={done:!1};try{l(n,t,Q(X,r,e),Q(Y,r,e))}catch(t){Y(r,t,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(t){Y({done:!1},t,e)}}};if(T&&(M=(C=function(e){x(this,M),h(e),l(n,this);var t=_(this);try{e(Q(X,t),Q(Y,t))}catch(e){Y(t,e)}}).prototype,(n=function(e){D(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(M,"then",(function(e,t){var r=_(this),n=J(b(this,C));return r.parent=!0,n.ok=!y(e)||e,n.fail=y(t)&&t,n.domain=u?B.domain:void 0,0===r.state?r.reactions.add(n):w((function(){q(n,r)})),n.promise})),a=function(){var e=new n,t=_(e);this.promise=e,this.resolve=Q(X,t),this.reject=Q(Y,t)},A.f=J=function(e){return e===C||void 0===e?new a(e):U(e)},!s&&y(I)&&L!==Object.prototype)){o=L.then,R||f(L,"then",(function(e,t){var r=this;return new C((function(e,t){l(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}d&&d(L,M)}i({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:C}),p(C,"Promise",!1,!0),v("Promise")},function(e,t,r){"use strict";var n,a,o,i,s,u=r(3),c=r(63),l=r(52).f,f=r(123).set,d=r(189),p=r(188),v=r(254),h=r(255),y=r(121),g=u.MutationObserver||u.WebKitMutationObserver,x=u.document,b=u.process,m=u.Promise,w=l(u,"queueMicrotask"),k=w&&w.value;if(!k){var j=new d,S=function(){var e,t;for(y&&(e=b.domain)&&e.exit();t=j.get();)try{t()}catch(e){throw j.head&&n(),e}e&&e.enter()};p||y||h||!g||!x?!v&&m&&m.resolve?((i=m.resolve(void 0)).constructor=m,s=c(i.then,i),n=function(){s(S)}):y?n=function(){b.nextTick(S)}:(f=c(f,u),n=function(){f(S)}):(a=!0,o=x.createTextNode(""),new g(S).observe(o,{characterData:!0}),n=function(){o.data=a=!a}),k=function(e){j.head||n(),j.add(e)}}e.exports=k},function(e,t,r){"use strict";var n=r(55);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},function(e,t,r){"use strict";var n=r(55);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,r){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},function(e,t,r){"use strict";var n=r(190),a=r(121);e.exports=!n&&!a&&"object"==typeof window&&"object"==typeof document},function(e,t,r){"use strict";var n=r(1),a=r(7),o=r(40),i=r(103),s=r(149),u=r(104);n({target:"Promise",stat:!0,forced:r(192)},{all:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,l=s((function(){var r=o(t.resolve),i=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,a(r,t,e).then((function(e){u||(u=!0,i[o]=e,--l||n(i))}),c)})),--l||n(i)}));return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var n=r(1),a=r(48),o=r(102).CONSTRUCTOR,i=r(101),s=r(47),u=r(5),c=r(31),l=i&&i.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!a&&u(i)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},function(e,t,r){"use strict";var n=r(1),a=r(7),o=r(40),i=r(103),s=r(149),u=r(104);n({target:"Promise",stat:!0,forced:r(192)},{race:function(e){var t=this,r=i.f(t),n=r.reject,c=s((function(){var i=o(t.resolve);u(e,(function(e){a(i,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(1),a=r(7),o=r(103);n({target:"Promise",stat:!0,forced:r(102).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return a(t.reject,void 0,e),t.promise}})},function(e,t,r){"use strict";var n=r(1),a=r(47),o=r(48),i=r(101),s=r(102).CONSTRUCTOR,u=r(263),c=a("Promise"),l=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(l&&this===c?i:this,e)}})},function(e,t,r){"use strict";var n=r(15),a=r(12),o=r(103);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(10),a=r(2),o=r(7),i=r(0),s=r(94),u=r(113),c=r(109),l=r(21),f=r(75),d=Object.assign,p=Object.defineProperty,v=a([].concat);e.exports=!d||i((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[r]||"abcdefghijklmnopqrst"!==s(d({},t)).join("")}))?function(e,t){for(var r=l(e),a=arguments.length,i=1,d=u.f,p=c.f;a>i;)for(var h,y=f(arguments[i++]),g=d?v(s(y),d(y)):s(y),x=g.length,b=0;x>b;)h=g[b++],n&&!o(p,y,h)||(r[h]=y[h]);return r}:d},function(e,t,r){var n=r(59).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(9),a=n(r(37));r(4),r(64);var o,i=n(r(43)),s=r(199),u=r(335),c=r(220),l=r(338);try{o=r(339)}catch(e){}function f(e){return Array.isArray(e)?e:t.NQuads.legacyDatasetToQuads(e)}t.NQuads=r(158),t.IdentifierIssuer=r(157),t._rdfCanonizeNative=function(e){return e&&(o=e),o},t.canonize=function(){var e=(0,i.default)(a.default.mark((function e(t,r){var n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f(t),!r.useNative){e.next=7;break}if(o){e.next=4;break}throw new Error("rdf-canonize-native not available");case 4:if(!r.createMessageDigest){e.next=6;break}throw new Error('"createMessageDigest" cannot be used with "useNative".');case 6:return e.abrupt("return",new Promise((function(e,t){return o.canonize(n,r,(function(r,n){return r?t(r):e(n)}))})));case 7:if("URDNA2015"!==r.algorithm){e.next=9;break}return e.abrupt("return",new s(r).main(n));case 9:if("URGNA2012"!==r.algorithm){e.next=13;break}if(!r.createMessageDigest){e.next=12;break}throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');case 12:return e.abrupt("return",new u(r).main(n));case 13:if("algorithm"in r){e.next=15;break}throw new Error("No RDF Dataset Canonicalization algorithm specified.");case 15:throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+r.algorithm);case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),t._canonizeSync=function(e,t){var r=f(e);if(t.useNative){if(!o)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return o.canonizeSync(r,t)}if("URDNA2015"===t.algorithm)return new c(t).main(r);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new l(t).main(r)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)}},function(e,t,r){"use strict";var n=r(63),a=r(7),o=r(21),i=r(268),s=r(150),u=r(116),c=r(20),l=r(69),f=r(151),d=r(124),p=Array;e.exports=function(e){var t=o(e),r=u(this),v=arguments.length,h=v>1?arguments[1]:void 0,y=void 0!==h;y&&(h=n(h,v>2?arguments[2]:void 0));var g,x,b,m,w,k,j=d(t),S=0;if(!j||this===p&&s(j))for(g=c(t),x=r?new this(g):p(g);g>S;S++)k=y?h(t[S],S):t[S],l(x,S,k);else for(w=(m=f(t,j)).next,x=r?new this:[];!(b=a(w,m)).done;S++)k=y?i(m,h,[b.value,S],!0):b.value,l(x,S,k);return x.length=S,x}},function(e,t,r){"use strict";var n=r(15),a=r(191);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){a(e,"throw",t)}}},function(e,t,r){"use strict";r(204)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(206))},function(e,t,r){"use strict";var n=r(0),a=r(12),o=r(46),i=r(271),s=Object.isExtensible,u=n((function(){s(1)}));e.exports=u||i?function(e){return!!a(e)&&((!i||"ArrayBuffer"!==o(e))&&(!s||s(e)))}:s},function(e,t,r){"use strict";var n=r(0);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,r){"use strict";var n=r(0);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){"use strict";r(204)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(206))},function(e,t,r){"use strict";r(275),r(276)},function(e,t,r){"use strict";var n=r(1),a=r(3),o=r(123).clear;n({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==o},{clearImmediate:o})},function(e,t,r){"use strict";var n=r(1),a=r(3),o=r(123).set,i=r(277),s=a.setImmediate?i(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},function(e,t,r){"use strict";var n,a=r(3),o=r(58),i=r(5),s=r(278),u=r(55),c=r(70),l=r(187),f=a.Function,d=/MSIE .\./.test(u)||s&&((n=a.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,a){var s=l(arguments.length,1)>r,u=i(n)?n:f(n),d=s?c(arguments,r):[],p=s?function(){o(u,this,d)}:u;return t?e(p,a):e(p)}:e}},function(e,t,r){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,r){var n=r(208);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r(282)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},function(e,t,r){"use strict";var n=r(1),a=r(3),o=r(7),i=r(10),s=r(283),u=r(6),c=r(284),l=r(100),f=r(74),d=r(50),p=r(289),v=r(49),h=r(211),y=r(213),g=r(291),x=r(89),b=r(13),m=r(61),w=r(12),k=r(90),j=r(56),S=r(54),O=r(83),I=r(67).f,E=r(292),A=r(36).forEach,T=r(122),N=r(57),R=r(30),_=r(52),D=r(41),L=r(155),C=D.get,M=D.set,P=D.enforce,F=R.f,B=_.f,J=a.RangeError,U=c.ArrayBuffer,H=U.prototype,V=c.DataView,q=u.NATIVE_ARRAY_BUFFER_VIEWS,G=u.TYPED_ARRAY_TAG,z=u.TypedArray,W=u.TypedArrayPrototype,$=u.aTypedArrayConstructor,K=u.isTypedArray,Q=function(e,t){$(e);for(var r=0,n=t.length,a=new e(n);n>r;)a[r]=t[r++];return a},Y=function(e,t){N(e,t,{configurable:!0,get:function(){return C(this)[t]}})},X=function(e){var t;return S(H,e)||"ArrayBuffer"===(t=m(e))||"SharedArrayBuffer"===t},Z=function(e,t){return K(e)&&!k(t)&&t in e&&p(+t)&&t>=0},ee=function(e,t){return t=x(t),Z(e,t)?f(2,e[t]):B(e,t)},te=function(e,t,r){return t=x(t),!(Z(e,t)&&w(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?F(e,t,r):(e[t]=r.value,e)};i?(q||(_.f=ee,R.f=te,Y(W,"buffer"),Y(W,"byteOffset"),Y(W,"byteLength"),Y(W,"length")),n({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:ee,defineProperty:te}),e.exports=function(e,t,r){var i=e.match(/\d+/)[0]/8,u=e+(r?"Clamped":"")+"Array",c="get"+e,f="set"+e,p=a[u],x=p,b=x&&x.prototype,m={},k=function(e,t){F(e,t,{get:function(){return function(e,t){var r=C(e);return r.view[c](t*i+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=C(e);a.view[f](t*i+a.byteOffset,r?g(n):n,!0)}(this,t,e)},enumerable:!0})};q?s&&(x=t((function(e,t,r,n){return l(e,b),L(w(t)?X(t)?void 0!==n?new p(t,y(r,i),n):void 0!==r?new p(t,y(r,i)):new p(t):K(t)?Q(x,t):o(E,x,t):new p(h(t)),e,x)})),O&&O(x,z),A(I(p),(function(e){e in x||d(x,e,p[e])})),x.prototype=b):(x=t((function(e,t,r,n){l(e,b);var a,s,u,c=0,f=0;if(w(t)){if(!X(t))return K(t)?Q(x,t):o(E,x,t);a=t,f=y(r,i);var d=t.byteLength;if(void 0===n){if(d%i)throw new J("Wrong length");if((s=d-f)<0)throw new J("Wrong length")}else if((s=v(n)*i)+f>d)throw new J("Wrong length");u=s/i}else u=h(t),a=new U(s=u*i);for(M(e,{buffer:a,byteOffset:f,byteLength:s,length:u,view:new V(a)});c<u;)k(e,c++)})),O&&O(x,z),b=x.prototype=j(W)),b.constructor!==x&&d(b,"constructor",x),P(b).TypedArrayConstructor=x,G&&d(b,G,u);var S=x!==p;m[u]=x,n({global:!0,constructor:!0,forced:S,sham:!q},m),"BYTES_PER_ELEMENT"in x||d(x,"BYTES_PER_ELEMENT",i),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",i),T(u)}):e.exports=function(){}},function(e,t,r){"use strict";var n=r(3),a=r(0),o=r(125),i=r(6).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,u=n.Int8Array;e.exports=!i||!a((function(){u(1)}))||!a((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||a((function(){return 1!==new u(new s(2),1,void 0).length}))},function(e,t,r){"use strict";var n=r(3),a=r(2),o=r(10),i=r(210),s=r(92),u=r(50),c=r(57),l=r(207),f=r(0),d=r(100),p=r(42),v=r(49),h=r(211),y=r(285),g=r(288),x=r(99),b=r(83),m=r(67).f,w=r(212),k=r(115),j=r(62),S=r(41),O=s.PROPER,I=s.CONFIGURABLE,E=S.getterFor("ArrayBuffer"),A=S.getterFor("DataView"),T=S.set,N=n.ArrayBuffer,R=N,_=R&&R.prototype,D=n.DataView,L=D&&D.prototype,C=Object.prototype,M=n.Array,P=n.RangeError,F=a(w),B=a([].reverse),J=g.pack,U=g.unpack,H=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},z=function(e){return J(y(e),23,4)},W=function(e){return J(e,52,8)},$=function(e,t,r){c(e.prototype,t,{configurable:!0,get:function(){return r(this)[t]}})},K=function(e,t,r,n){var a=A(e),o=h(r),i=!!n;if(o+t>a.byteLength)throw new P("Wrong index");var s=a.bytes,u=o+a.byteOffset,c=k(s,u,u+t);return i?c:B(c)},Q=function(e,t,r,n,a,o){var i=A(e),s=h(r),u=n(+a),c=!!o;if(s+t>i.byteLength)throw new P("Wrong index");for(var l=i.bytes,f=s+i.byteOffset,d=0;d<t;d++)l[f+d]=u[c?d:t-d-1]};if(i){var Y=O&&"ArrayBuffer"!==N.name;if(f((function(){N(1)}))&&f((function(){new N(-1)}))&&!f((function(){return new N,new N(1.5),new N(NaN),1!==N.length||Y&&!I})))Y&&I&&u(N,"name","ArrayBuffer");else{(R=function(e){return d(this,_),new N(h(e))}).prototype=_;for(var X,Z=m(N),ee=0;Z.length>ee;)(X=Z[ee++])in R||u(R,X,N[X]);_.constructor=R}b&&x(L)!==C&&b(L,C);var te=new D(new R(2)),re=a(L.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(L,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else _=(R=function(e){d(this,_);var t=h(e);T(this,{type:"ArrayBuffer",bytes:F(M(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,L=(D=function(e,t,r){d(this,L),d(e,_);var n=E(e),a=n.byteLength,i=p(t);if(i<0||i>a)throw new P("Wrong offset");if(i+(r=void 0===r?a-i:v(r))>a)throw new P("Wrong length");T(this,{type:"DataView",buffer:e,byteLength:r,byteOffset:i,bytes:n.bytes}),o||(this.buffer=e,this.byteLength=r,this.byteOffset=i)}).prototype,o&&($(R,"byteLength",E),$(D,"buffer",A),$(D,"byteLength",A),$(D,"byteOffset",A)),l(L,{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(K(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return G(K(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return U(K(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return U(K(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){Q(this,1,e,H,t)},setUint8:function(e,t){Q(this,1,e,H,t)},setInt16:function(e,t){Q(this,2,e,V,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){Q(this,2,e,V,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){Q(this,4,e,q,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){Q(this,4,e,q,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){Q(this,4,e,z,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){Q(this,8,e,W,t,arguments.length>2&&arguments[2])}});j(R,"ArrayBuffer"),j(D,"DataView"),e.exports={ArrayBuffer:R,DataView:D}},function(e,t,r){"use strict";var n=r(286);e.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,r){"use strict";var n=r(287),a=Math.abs;e.exports=function(e,t,r,o){var i=+e,s=a(i),u=n(i);if(s<o)return u*function(e){return e+4503599627370496-4503599627370496}(s/o/t)*o*t;var c=(1+t/2220446049250313e-31)*s,l=c-(c-s);return l>r||l!=l?u*(1/0):u*l}},function(e,t,r){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,r){"use strict";var n=Array,a=Math.abs,o=Math.pow,i=Math.floor,s=Math.log,u=Math.LN2;e.exports={pack:function(e,t,r){var c,l,f,d=n(r),p=8*r-t-1,v=(1<<p)-1,h=v>>1,y=23===t?o(2,-24)-o(2,-77):0,g=e<0||0===e&&1/e<0?1:0,x=0;for((e=a(e))!=e||e===1/0?(l=e!=e?1:0,c=v):(c=i(s(e)/u),e*(f=o(2,-c))<1&&(c--,f*=2),(e+=c+h>=1?y/f:y*o(2,1-h))*f>=2&&(c++,f/=2),c+h>=v?(l=0,c=v):c+h>=1?(l=(e*f-1)*o(2,t),c+=h):(l=e*o(2,h-1)*o(2,t),c=0));t>=8;)d[x++]=255&l,l/=256,t-=8;for(c=c<<t|l,p+=t;p>0;)d[x++]=255&c,c/=256,p-=8;return d[--x]|=128*g,d},unpack:function(e,t){var r,n=e.length,a=8*n-t-1,i=(1<<a)-1,s=i>>1,u=a-7,c=n-1,l=e[c--],f=127&l;for(l>>=7;u>0;)f=256*f+e[c--],u-=8;for(r=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)r=256*r+e[c--],u-=8;if(0===f)f=1-s;else{if(f===i)return r?NaN:l?-1/0:1/0;r+=o(2,t),f-=s}return(l?-1:1)*r*o(2,f-t)}}},function(e,t,r){"use strict";var n=r(12),a=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&a(e)===e}},function(e,t,r){"use strict";var n=r(42),a=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new a("The argument can't be less than 0");return t}},function(e,t,r){"use strict";var n=Math.round;e.exports=function(e){var t=n(e);return t<0?0:t>255?255:255&t}},function(e,t,r){"use strict";var n=r(63),a=r(7),o=r(148),i=r(21),s=r(20),u=r(151),c=r(124),l=r(150),f=r(293),d=r(6).aTypedArrayConstructor,p=r(214);e.exports=function(e){var t,r,v,h,y,g,x,b,m=o(this),w=i(e),k=arguments.length,j=k>1?arguments[1]:void 0,S=void 0!==j,O=c(w);if(O&&!l(O))for(b=(x=u(w,O)).next,w=[];!(g=a(b,x)).done;)w.push(g.value);for(S&&k>2&&(j=n(j,arguments[2])),r=s(w),v=new(d(m))(r),h=f(v),t=0;r>t;t++)y=S?j(w[t],t):w[t],v[t]=h?p(y):+y;return v}},function(e,t,r){"use strict";var n=r(61);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,r){"use strict";r(295)},function(e,t,r){"use strict";var n=r(6),a=r(20),o=r(42),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",(function(e){var t=i(this),r=a(t),n=o(e),s=n>=0?n:r+n;return s<0||s>=r?void 0:t[s]}))},function(e,t,r){"use strict";var n=r(2),a=r(6),o=n(r(297)),i=a.aTypedArray;(0,a.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,r){"use strict";var n=r(21),a=r(68),o=r(20),i=r(152),s=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),u=o(r),c=a(e,u),l=a(t,u),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?u:a(f,u))-l,u-c),p=1;for(l<c&&c<l+d&&(p=-1,l+=d-1,c+=d-1);d-- >0;)l in r?r[c]=r[l]:i(r,c),c+=p,l+=p;return r}},function(e,t,r){"use strict";var n=r(6),a=r(36).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=r(212),o=r(214),i=r(61),s=r(7),u=r(2),c=r(0),l=n.aTypedArray,f=n.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;l(this);var r="Big"===d(i(this),0,3)?o(e):+e;return s(a,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,r){"use strict";var n=r(6),a=r(36).filter,o=r(301),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=a(i(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},function(e,t,r){"use strict";var n=r(302),a=r(129);e.exports=function(e,t){return n(a(e),t)}},function(e,t,r){"use strict";var n=r(20);e.exports=function(e,t,r){for(var a=0,o=arguments.length>2?r:n(t),i=new e(o);o>a;)i[a]=t[a++];return i}},function(e,t,r){"use strict";var n=r(6),a=r(36).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=r(36).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";r(306)},function(e,t,r){"use strict";var n=r(6),a=r(215).findLast,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";r(308)},function(e,t,r){"use strict";var n=r(6),a=r(215).findLastIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=r(36).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=r(112).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=r(112).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(3),a=r(0),o=r(2),i=r(6),s=r(11),u=r(8)("iterator"),c=n.Uint8Array,l=o(s.values),f=o(s.keys),d=o(s.entries),p=i.aTypedArray,v=i.exportTypedArrayMethod,h=c&&c.prototype,y=!a((function(){h[u].call([1])})),g=!!h&&h.values&&h[u]===h.values&&"values"===h.values.name,x=function(){return l(p(this))};v("entries",(function(){return d(p(this))}),y),v("keys",(function(){return f(p(this))}),y),v("values",x,y||!g,{name:"values"}),v(u,x,y||!g,{name:"values"})},function(e,t,r){"use strict";var n=r(6),a=r(2),o=n.aTypedArray,i=n.exportTypedArrayMethod,s=a([].join);i("join",(function(e){return s(o(this),e)}))},function(e,t,r){"use strict";var n=r(6),a=r(58),o=r(315),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return a(o,i(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,r){"use strict";var n=r(58),a=r(35),o=r(42),i=r(20),s=r(119),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return n(c,this,arguments)||0;var t=a(this),r=i(t),s=r-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},function(e,t,r){"use strict";var n=r(6),a=r(36).map,o=r(129),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},function(e,t,r){"use strict";var n=r(6),a=r(216).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=r(216).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return a(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(6),a=n.aTypedArray,o=n.exportTypedArrayMethod,i=Math.floor;o("reverse",(function(){for(var e,t=a(this).length,r=i(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}))},function(e,t,r){"use strict";var n=r(3),a=r(7),o=r(6),i=r(20),s=r(213),u=r(21),c=r(0),l=n.RangeError,f=n.Int8Array,d=f&&f.prototype,p=d&&d.set,v=o.aTypedArray,h=o.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return a(p,e,{length:1,0:3},1),3!==e[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));h("set",(function(e){v(this);var t=s(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(y)return a(p,this,r,t);var n=this.length,o=i(r),c=0;if(o+t>n)throw new l("Wrong length");for(;c<o;)this[t+c]=r[c++]}),!y||g)},function(e,t,r){"use strict";var n=r(6),a=r(129),o=r(0),i=r(70),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=i(s(this),e,t),n=a(this),o=0,u=r.length,c=new n(u);u>o;)c[o]=r[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(e,t,r){"use strict";var n=r(6),a=r(36).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,r){"use strict";var n=r(3),a=r(95),o=r(0),i=r(40),s=r(194),u=r(6),c=r(195),l=r(196),f=r(77),d=r(197),p=u.aTypedArray,v=u.exportTypedArrayMethod,h=n.Uint16Array,y=h&&a(h.prototype.sort),g=!(!y||o((function(){y(new h(2),null)}))&&o((function(){y(new h(2),{})}))),x=!!y&&!o((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(d)return d<602;var e,t,r=new h(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(y(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));v("sort",(function(e){return void 0!==e&&i(e),x?y(this,e):s(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!x||g)},function(e,t,r){"use strict";var n=r(6),a=r(49),o=r(68),i=r(129),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=s(this),n=r.length,u=o(e,n);return new(i(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,a((void 0===t?n:o(t,n))-u))}))},function(e,t,r){"use strict";var n=r(3),a=r(58),o=r(6),i=r(0),s=r(70),u=n.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!u&&i((function(){f.call(new u(1))}));l("toLocaleString",(function(){return a(f,d?s(c(this)):c(this),s(arguments))}),i((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!i((function(){u.prototype.toLocaleString.call([1,2])})))},function(e,t,r){"use strict";var n=r(6).exportTypedArrayMethod,a=r(0),o=r(3),i=r(2),s=o.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=i([].join);a((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!==c;n("toString",c,f)},function(e,t,r){"use strict";var n=r(1),a=r(328).start;n({target:"String",proto:!0,forced:r(329)},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(2),a=r(49),o=r(16),i=r(217),s=r(39),u=n(i),c=n("".slice),l=Math.ceil,f=function(e){return function(t,r,n){var i,f,d=o(s(t)),p=a(r),v=d.length,h=void 0===n?" ":o(n);return p<=v||""===h?d:((f=u(h,l((i=p-v)/h.length))).length>i&&(f=c(f,0,i)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,r){"use strict";var n=r(55);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,a,o,i,s=1,u={},c=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,r=function(e){var t=l.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),r=function(t){e.postMessage(o+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return u[s]=a,r(s),s++},f.clearImmediate=d}function d(e){delete u[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(168))},function(e,t,r){"use strict";var n=r(10),a=r(3),o=r(2),i=r(114),s=r(155),u=r(50),c=r(56),l=r(67).f,f=r(54),d=r(143),p=r(16),v=r(200),h=r(127),y=r(332),g=r(31),x=r(0),b=r(13),m=r(41).enforce,w=r(122),k=r(8),j=r(202),S=r(203),O=k("match"),I=a.RegExp,E=I.prototype,A=a.SyntaxError,T=o(E.exec),N=o("".charAt),R=o("".replace),_=o("".indexOf),D=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,C=/a/g,M=/a/g,P=new I(C)!==C,F=h.MISSED_STICKY,B=h.UNSUPPORTED_Y,J=n&&(!P||F||j||S||x((function(){return M[O]=!1,I(C)!==C||I(M)===M||"/a/i"!==String(I(C,"i"))})));if(i("RegExp",J)){for(var U=function(e,t){var r,n,a,o,i,l,h=f(E,this),y=d(e),g=void 0===t,x=[],w=e;if(!h&&y&&g&&e.constructor===U)return e;if((y||f(E,e))&&(e=e.source,g&&(t=v(w))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),w=e,j&&"dotAll"in C&&(n=!!t&&_(t,"s")>-1)&&(t=R(t,/s/g,"")),r=t,F&&"sticky"in C&&(a=!!t&&_(t,"y")>-1)&&B&&(t=R(t,/y/g,"")),S&&(e=(o=function(e){for(var t,r=e.length,n=0,a="",o=[],i=c(null),s=!1,u=!1,l=0,f="";n<=r;n++){if("\\"===(t=N(e,n)))t+=N(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(L,D(e,n+1))&&(n+=2,u=!0),a+=t,l++;continue;case">"===t&&u:if(""===f||b(i,f))throw new A("Invalid capture group name");i[f]=!0,o[o.length]=[f,l],u=!1,f="";continue}u?f+=t:a+=t}return[a,o]}(e))[0],x=o[1]),i=s(I(e,t),h?this:E,U),(n||a||x.length)&&(l=m(i),n&&(l.dotAll=!0,l.raw=U(function(e){for(var t,r=e.length,n=0,a="",o=!1;n<=r;n++)"\\"!==(t=N(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),a+=t):a+="[\\s\\S]":a+=t+N(e,++n);return a}(e),r)),a&&(l.sticky=!0),x.length&&(l.groups=x)),e!==w)try{u(i,"source",""===w?"(?:)":w)}catch(e){}return i},H=l(I),V=0;H.length>V;)y(U,I,H[V++]);E.constructor=U,U.prototype=E,g(a,"RegExp",U,{constructor:!0})}w("RegExp")},function(e,t,r){"use strict";var n=r(30).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},function(e,t,r){"use strict";var n=r(10),a=r(127).MISSED_STICKY,o=r(46),i=r(57),s=r(41).get,u=RegExp.prototype,c=TypeError;n&&a&&i(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},function(e,t,r){"use strict";var n=r(2),a=r(21),o=Math.floor,i=n("".charAt),s=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,d){var p=r+e.length,v=n.length,h=l;return void 0!==f&&(f=a(f),h=c),s(d,h,(function(a,s){var c;switch(i(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,r);case"'":return u(t,p);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return a;if(l>v){var d=o(l/10);return 0===d?a:d<=v?void 0===n[d-1]?i(s,1):n[d-1]+i(s,1):a}c=n[l-1]}return void 0===c?"":c}))}},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
 */r(162),r(163),r(22),r(23),r(29),r(18),r(24),r(19),r(25),r(26);var n=r(9),a=n(r(37));r(27),r(11),r(51),r(4),r(17),r(14);var o=n(r(43)),i=n(r(33)),s=n(r(34)),u=n(r(164)),c=n(r(166)),l=n(r(131));function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.default)(e);if(t){var a=(0,l.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var v=r(128),h=r(199);e.exports=function(e){(0,u.default)(n,e);var t,r=p(n);function n(){var e;return(0,i.default)(this,n),(e=r.call(this)).name="URGNA2012",e.createMessageDigest=function(){return new v("sha1")},e}return(0,s.default)(n,[{key:"modifyFirstDegreeComponent",value:function(e,t,r){return"BlankNode"!==t.termType?t:"graph"===r?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}},{key:"getRelatedPredicate",value:function(e){return e.predicate.value}},{key:"createHashToRelated",value:(t=(0,o.default)(a.default.mark((function e(t,r){var n,o,i,s,u,c,l,d,p,v;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Map,o=this.blankNodeInfo.get(t).quads,i=0,s=f(o),e.prev=4,s.s();case 6:if((u=s.n()).done){e.next=31;break}if(c=u.value,l=void 0,d=void 0,"BlankNode"!==c.subject.termType||c.subject.value===t){e.next=15;break}d=c.subject.value,l="p",e.next=21;break;case 15:if("BlankNode"!==c.object.termType||c.object.value===t){e.next=20;break}d=c.object.value,l="r",e.next=21;break;case 20:return e.abrupt("continue",29);case 21:if(++i%100!=0){e.next=24;break}return e.next=24,this._yield();case 24:return e.next=26,this.hashRelatedBlankNode(d,c,r,l);case 26:p=e.sent,(v=n.get(p))?v.push(d):n.set(p,[d]);case 29:e.next=6;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(4),s.e(e.t0);case 36:return e.prev=36,s.f(),e.finish(36);case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}}),e,this,[[4,33,36,39]])}))),function(e,r){return t.apply(this,arguments)})}]),n}(h)},function(e,t,r){"use strict";var n=r(2),a=r(40),o=r(12),i=r(13),s=r(70),u=r(88),c=Function,l=n([].concat),f=n([].join),d={},p=function(e,t,r){if(!i(d,t)){for(var n=[],a=0;a<t;a++)n[a]="a["+a+"]";d[t]=c("C,a","return new C("+f(n,",")+")")}return d[t](e,r)};e.exports=u?c.bind:function(e){var t=a(this),r=t.prototype,n=s(arguments,1),i=function(){var r=l(n,s(arguments));return this instanceof i?p(t,r.length,r):t.apply(e,r)};return o(r)&&(i.prototype=r),i}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";
/*!
 * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
 */r(162),r(163),r(22),r(23),r(29),r(18),r(24),r(19),r(25),r(26);var n=r(9);r(27),r(11),r(51),r(4),r(17),r(14);var a=n(r(33)),o=n(r(34)),i=n(r(164)),s=n(r(166)),u=n(r(131));function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var a=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var d=r(128),p=r(220);e.exports=function(e){(0,i.default)(r,e);var t=f(r);function r(){var e;return(0,a.default)(this,r),(e=t.call(this)).name="URGNA2012",e.createMessageDigest=function(){return new d("sha1")},e}return(0,o.default)(r,[{key:"modifyFirstDegreeComponent",value:function(e,t,r){return"BlankNode"!==t.termType?t:"graph"===r?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}},{key:"getRelatedPredicate",value:function(e){return e.predicate.value}},{key:"createHashToRelated",value:function(e,t){var r,n=new Map,a=c(this.blankNodeInfo.get(e).quads);try{for(a.s();!(r=a.n()).done;){var o=r.value,i=void 0,s=void 0;if("BlankNode"===o.subject.termType&&o.subject.value!==e)s=o.subject.value,i="p";else{if("BlankNode"!==o.object.termType||o.object.value===e)continue;s=o.object.value,i="r"}var u=this.hashRelatedBlankNode(s,o,t,i),l=n.get(u);l?l.push(s):n.set(u,[s])}}catch(e){a.e(e)}finally{a.f()}return n}}]),r}(p)},function(e,t){},function(e,t,r){"use strict";r(341);var n=r(342),a={};e.exports=a,a.setupDocumentLoaders=function(e){"undefined"!=typeof XMLHttpRequest&&(e.documentLoaders.xhr=n,e.useDocumentLoader("xhr"))},a.setupGlobals=function(e){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})}},function(e,t,r){"use strict";var n=r(1),a=r(3);n({global:!0,forced:a.globalThis!==a},{globalThis:a})},function(e,t,r){"use strict";var n=r(9),a=n(r(37));r(18),r(24),r(86),r(4),r(64);var o=n(r(43)),i=r(44),s=i.parseLinkHeader,u=i.buildHeaders,c=r(167).LINK_HEADER_CONTEXT,l=r(45),f=r(224),d=r(65).prependBase,p=/(^|(\r\n))link:/i;function v(e,t,r){var n=new(e=e||XMLHttpRequest);return new Promise((function(e,a){for(var o in n.onload=function(){return e(n)},n.onerror=function(e){return a(e)},n.open("GET",t,!0),r)n.setRequestHeader(o,r[o]);n.send()}))}e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{headers:{}},t=e.secure,r=e.headers,n=void 0===r?{}:r,i=e.xhr;n=u(n);var h=new f;return h.wrapLoader(y);function y(e){return g.apply(this,arguments)}function g(){return(g=(0,o.default)(a.default.mark((function e(r){var o,u,f,h,g,x,b;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===r.indexOf("http:")||0===r.indexOf("https:")){e.next=2;break}throw new l('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:r});case 2:if(!t||0===r.indexOf("https")){e.next=4;break}throw new l('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:r});case 4:return e.prev=4,e.next=7,v(i,r,n);case 7:o=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),new l("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:r,cause:e.t0});case 13:if(!(o.status>=400)){e.next=15;break}throw new l("URL could not be dereferenced: "+o.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:r,httpStatusCode:o.status});case 15:if(u={contextUrl:null,documentUrl:r,document:o.response},f=null,h=o.getResponseHeader("Content-Type"),p.test(o.getAllResponseHeaders())&&(g=o.getResponseHeader("Link")),!g||"application/ld+json"===h){e.next=30;break}if(x=s(g),b=x[c],!Array.isArray(b)){e.next=24;break}throw new l("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:r});case 24:if(b&&(u.contextUrl=b.target),!(f=x.alternate)||"application/ld+json"!=f.type||(h||"").match(/^application\/(\w*\+)?json$/)){e.next=30;break}return e.next=29,y(d(r,f.target));case 29:u=e.sent;case 30:return e.abrupt("return",u);case 31:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}}},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(131),a=r(165),o=r(345),i=r(346);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return i(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(165),a=r(347);function o(t,r,i){return a()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var a=[null];a.push.apply(a,t);var o=new(Function.bind.apply(e,a));return r&&n(o,r.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r(22),r(23),r(27),r(29),r(18),r(24),r(19),r(25),r(26);var n=r(9),a=n(r(37));r(11),r(51),r(4),r(17),r(14),r(84),r(117),r(32);var o=n(r(107)),i=n(r(43)),s=n(r(33)),u=n(r(34));function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=r(38),d=f.isArray,p=f.isObject,v=f.isString,h=r(44).asArray,y=r(65).prependBase,g=r(45),x=r(349);function b(e){throw new g("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:e})}function m(e){var t=e.context,r=e.base;if(t){var n=t["@context"];if(v(n))t["@context"]=y(r,n);else if(d(n))for(var a=0;a<n.length;++a){var o=n[a];v(o)?n[a]=y(r,o):p(o)&&m({context:{"@context":o},base:r})}else if(p(n))for(var i in n)m({context:n[i],base:r})}}e.exports=function(){function e(t){var r=t.sharedCache;(0,s.default)(this,e),this.perOpCache=new Map,this.sharedCache=r}var t,r,n;return(0,u.default)(e,[{key:"resolve",value:(n=(0,i.default)(a.default.mark((function e(t){var r,n,i,s,u,l,f,y,g,m,w,k,j;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.activeCtx,n=t.context,i=t.documentLoader,s=t.base,u=t.cycles,l=void 0===u?new Set:u,n&&p(n)&&n["@context"]&&(n=n["@context"]),n=h(n),f=[],y=c(n),e.prev=5,y.s();case 7:if((g=y.n()).done){e.next=27;break}if(m=g.value,!v(m)){e.next=17;break}if(w=this._get(m)){e.next=15;break}return e.next=14,this._resolveRemoteContext({activeCtx:r,url:m,documentLoader:i,base:s,cycles:l});case 14:w=e.sent;case 15:return d(w)?f.push.apply(f,(0,o.default)(w)):f.push(w),e.abrupt("continue",25);case 17:if(null!==m){e.next=20;break}return f.push(new x({document:null})),e.abrupt("continue",25);case 20:p(m)||b(n),k=JSON.stringify(m),(j=this._get(k))||(j=new x({document:m}),this._cacheResolvedContext({key:k,resolved:j,tag:"static"})),f.push(j);case 25:e.next=7;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(5),y.e(e.t0);case 32:return e.prev=32,y.f(),e.finish(32);case 35:return e.abrupt("return",f);case 36:case"end":return e.stop()}}),e,this,[[5,29,32,35]])}))),function(e){return n.apply(this,arguments)})},{key:"_get",value:function(e){var t=this.perOpCache.get(e);if(!t){var r=this.sharedCache.get(e);r&&(t=r.get("static"))&&this.perOpCache.set(e,t)}return t}},{key:"_cacheResolvedContext",value:function(e){var t=e.key,r=e.resolved,n=e.tag;if(this.perOpCache.set(t,r),void 0!==n){var a=this.sharedCache.get(t);a||(a=new Map,this.sharedCache.set(t,a)),a.set(n,r)}return r}},{key:"_resolveRemoteContext",value:(r=(0,i.default)(a.default.mark((function e(t){var r,n,o,i,s,u,c,l,f;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.activeCtx,n=t.url,o=t.documentLoader,i=t.base,s=t.cycles,n=y(i,n),e.next=4,this._fetchContext({activeCtx:r,url:n,documentLoader:o,cycles:s});case 4:return u=e.sent,c=u.context,l=u.remoteDoc,i=l.documentUrl||n,m({context:c,base:i}),e.next=11,this.resolve({activeCtx:r,context:c,documentLoader:o,base:i,cycles:s});case 11:return f=e.sent,this._cacheResolvedContext({key:n,resolved:f,tag:l.tag}),e.abrupt("return",f);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_fetchContext",value:(t=(0,i.default)(a.default.mark((function e(t){var r,n,o,i,s,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.activeCtx,n=t.url,o=t.documentLoader,!((i=t.cycles).size>10)){e.next=3;break}throw new g("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"json-ld-1.0"===r.processingMode?"loading remote context failed":"context overflow",max:10});case 3:if(!i.has(n)){e.next=5;break}throw new g("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:"json-ld-1.0"===r.processingMode?"recursive context inclusion":"context overflow",url:n});case 5:return i.add(n),e.prev=6,e.next=9,o(n);case 9:u=e.sent,s=u.document||null,v(s)&&(s=JSON.parse(s)),e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(6),new g("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:n,cause:e.t0});case 17:if(p(s)){e.next=19;break}throw new g("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:n});case 19:return s="@context"in s?{"@context":s["@context"]}:{"@context":{}},u.contextUrl&&(d(s["@context"])||(s["@context"]=[s["@context"]]),s["@context"].push(u.contextUrl)),e.abrupt("return",{context:s,remoteDoc:u});case 22:case"end":return e.stop()}}),e,null,[[6,14]])}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,r){"use strict";var n=r(9),a=n(r(33)),o=n(r(34)),i=r(225);e.exports=function(){function e(t){var r=t.document;(0,a.default)(this,e),this.document=r,this.cache=new i({max:10})}return(0,o.default)(e,[{key:"getProcessed",value:function(e){return this.cache.get(e)}},{key:"setProcessed",value:function(e,t){this.cache.set(e,t)}}]),e}()},function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),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 r=0,a=arguments.length;r<a;r++)t.push(arguments[r]);return t}function a(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}r(4),r(72),r(80),r(64),r(22),r(351),e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.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++}},n.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++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.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}},n.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}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,a=this.head;null!==a;)r.push(e.call(t,a.value,this)),a=a.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,a=this.tail;null!==a;)r.push(e.call(t,a.value,this)),a=a.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var a=0;null!==n;a++)r=e(r,n.value,a),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var a=this.length-1;null!==n;a--)r=e(r,n.value,a),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=0,o=this.head;null!==o&&a<e;a++)o=o.next;for(;null!==o&&a<t;a++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=this.length,o=this.tail;null!==o&&a>t;a--)o=o.prev;for(;null!==o&&a>e;a--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;var o=[];for(r=0;n&&r<t;r++)o.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(r=0;r<(arguments.length<=2?0:arguments.length-2);r++)n=a(this,n,r+2<2||arguments.length<=r+2?void 0:arguments[r+2]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(353)(n)}catch(e){}},function(e,t,r){"use strict";var n=r(1),a=r(21),o=r(68),i=r(42),s=r(20),u=r(352),c=r(221),l=r(139),f=r(69),d=r(152),p=r(97)("splice"),v=Math.max,h=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,y,g,x,b=a(this),m=s(b),w=o(e,m),k=arguments.length;for(0===k?r=n=0:1===k?(r=0,n=m-w):(r=k-2,n=h(v(i(t),0),m-w)),c(m+r-n),p=l(b,n),y=0;y<n;y++)(g=w+y)in b&&f(p,y,b[g]);if(p.length=n,r<n){for(y=w;y<m-n;y++)x=y+r,(g=y+n)in b?b[x]=b[g]:d(b,x);for(y=m;y>m-n+r;y--)d(b,y-1)}else if(r>n)for(y=m-n;y>w;y--)x=y+r-1,(g=y+n-1)in b?b[x]=b[g]:d(b,x);for(y=0;y<r;y++)b[y+w]=arguments[y+2];return u(b,m-n+r),p}})},function(e,t,r){"use strict";var n=r(10),a=r(96),o=TypeError,i=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(a(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,r){"use strict";var n=r(9)(r(37));r(26),r(11),r(4),r(17),r(14),r(19),r(25),e.exports=function(e){e.prototype[Symbol.iterator]=n.default.mark((function e(){var t;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}},function(e,t,r){"use strict";e.exports=r(154).NQuads},function(e,t,r){"use strict";r(27),r(29),r(17),r(24),r(19),r(25),r(26),r(118),r(72),r(120);var n=r(9),a=n(r(37));r(153),r(81),r(82),r(87),r(28),r(32),r(4),r(22),r(18),r(86),r(23),r(80),r(11),r(356),r(357),r(71),r(14);var o=n(r(132)),i=n(r(59)),s=n(r(105)),u=n(r(43));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p=r(45),v=r(38),h=v.isArray,y=v.isObject,g=v.isEmptyObject,x=v.isString,b=v.isUndefined,m=r(60),w=m.isList,k=m.isValue,j=m.isGraph,S=m.isSubject,O=r(73),I=O.expandIri,E=O.getContextValue,A=O.isKeyword,T=O.process,N=O.processingMode,R=r(65).isAbsolute,_=r(44),D=_.REGEX_BCP47,L=_.REGEX_KEYWORD,C=_.addValue,M=_.asArray,P=_.getValues,F=_.validateTypeValue,B=r(108).handleEvent,J={};function U(e){var t=e.value,r=e.count,n=e.options;if(0===r||"@value"in t||"@list"in t||1===r&&"@id"in t){var a,o;if(n.eventHandler)0===r?(a="empty object",o="Dropping empty object."):"@value"in t?(a="object with only @value",o="Dropping object with only @value."):"@list"in t?(a="object with only @list",o="Dropping object with only @list."):1===r&&"@id"in t&&(a="object with only @id",o="Dropping object with only @id."),B({event:{type:["JsonLdEvent"],code:a,level:"warning",message:o,details:{value:t}},options:n});return null}return t}function H(e){return V.apply(this,arguments)}function V(){return(V=(0,u.default)(a.default.mark((function e(t){var r,n,i,s,u,c,d,v,m,j,O,_,L,P,V,q,W,$,K,Q,Y,X,Z,ee,te,re,ne,ae,oe,ie,se,ue,ce,le,fe,de,pe,ve,he,ye,ge,xe,be,me,we,ke,je,Se,Oe,Ie,Ee,Ae,Te;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.activeCtx,n=t.activeProperty,i=t.expandedActiveProperty,s=t.element,u=t.expandedParent,c=t.options,d=void 0===c?{}:c,v=t.insideList,m=t.typeKey,j=t.typeScopedContext,O=Object.keys(s).sort(),_=[],P=s[m]&&"@json"===I(r,h(s[m])?s[m][0]:s[m],{vocab:!0},l(l({},d),{},{typeExpansion:!0})),V=f(O),e.prev=5,V.s();case 7:if((q=V.n()).done){e.next=204;break}if(W=q.value,$=s[W],K=void 0,"@context"!==W){e.next=13;break}return e.abrupt("continue",202);case 13:if(null!==(Q=I(r,W,{vocab:!0},d))&&(R(Q)||A(Q))){e.next=17;break}return d.eventHandler&&B({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:W,expandedProperty:Q}},options:d}),e.abrupt("continue",202);case 17:if(!A(Q)){e.next=22;break}if("@reverse"!==i){e.next=20;break}throw new p("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:$});case 20:if(!(Q in u)||"@included"===Q||"@type"===Q){e.next=22;break}throw new p("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Q});case 22:if("@id"!==Q){e.next=39;break}if(x($)){e.next=37;break}if(d.isFrame){e.next=26;break}throw new p('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:$});case 26:if(!y($)){e.next=31;break}if(g($)){e.next=29;break}throw new p('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:$});case 29:e.next=37;break;case 31:if(!h($)){e.next=36;break}if($.every((function(e){return x(e)}))){e.next=34;break}throw new p('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:$});case 34:e.next=37;break;case 36:throw new p('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:$});case 37:return C(u,"@id",M($).map((function(e){if(x(e)){var t=I(r,e,{base:!0},d);return d.eventHandler&&(null===t?B(null===e?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:e}},options:d}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:e}},options:d}):R(t)||B({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:e,expandedId:t}},options:d})),t}return e})),{propertyIsArray:d.isFrame}),e.abrupt("continue",202);case 39:if("@type"!==Q){e.next=44;break}return y($)&&($=Object.fromEntries(Object.entries($).map((function(e){var t=(0,o.default)(e,2),r=t[0],n=t[1];return[I(j,r,{vocab:!0}),M(n).map((function(e){return I(j,e,{base:!0,vocab:!0},l(l({},d),{},{typeExpansion:!0}))}))]})))),F($,d.isFrame),C(u,"@type",M($).map((function(e){if(x(e)){var t=I(j,e,{base:!0,vocab:!0},l(l({},d),{},{typeExpansion:!0}));return"@json"===t||R(t)||d.eventHandler&&B({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:e}},options:d}),t}return e})),{propertyIsArray:!!d.isFrame}),e.abrupt("continue",202);case 44:if("@included"!==Q||!N(r,1.1)){e.next=54;break}return e.t0=M,e.next=48,J.expand({activeCtx:r,activeProperty:n,element:$,options:d});case 48:if(e.t1=e.sent,(Y=(0,e.t0)(e.t1)).every((function(e){return S(e)}))){e.next=52;break}throw new p("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:$});case 52:return C(u,"@included",Y,{propertyIsArray:!0}),e.abrupt("continue",202);case 54:if("@graph"!==Q||y($)||h($)){e.next=56;break}throw new p('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:$});case 56:if("@value"!==Q){e.next=60;break}return L=$,P&&N(r,1.1)?u["@value"]=$:C(u,"@value",$,{propertyIsArray:d.isFrame}),e.abrupt("continue",202);case 60:if("@language"!==Q){e.next=70;break}if(null!==$){e.next=63;break}return e.abrupt("continue",202);case 63:if(x($)||d.isFrame){e.next=65;break}throw new p('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:$});case 65:$=M($).map((function(e){return x(e)?e.toLowerCase():e})),X=f($);try{for(X.s();!(Z=X.n()).done;)ee=Z.value,x(ee)&&!ee.match(D)&&d.eventHandler&&B({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:ee}},options:d})}catch(e){X.e(e)}finally{X.f()}return C(u,"@language",$,{propertyIsArray:d.isFrame}),e.abrupt("continue",202);case 70:if("@direction"!==Q){e.next=93;break}if(x($)||d.isFrame){e.next=73;break}throw new p('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:$});case 73:$=M($),te=f($),e.prev=75,te.s();case 77:if((re=te.n()).done){e.next=83;break}if(ne=re.value,!x(ne)||"ltr"===ne||"rtl"===ne){e.next=81;break}throw new p('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:$});case 81:e.next=77;break;case 83:e.next=88;break;case 85:e.prev=85,e.t2=e.catch(75),te.e(e.t2);case 88:return e.prev=88,te.f(),e.finish(88);case 91:return C(u,"@direction",$,{propertyIsArray:d.isFrame}),e.abrupt("continue",202);case 93:if("@index"!==Q){e.next=98;break}if(x($)){e.next=96;break}throw new p('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:$});case 96:return C(u,"@index",$),e.abrupt("continue",202);case 98:if("@reverse"!==Q){e.next=126;break}if(y($)){e.next=101;break}throw new p('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:$});case 101:return e.next=103,J.expand({activeCtx:r,activeProperty:"@reverse",element:$,options:d});case 103:if("@reverse"in(K=e.sent))for(ae in K["@reverse"])C(u,ae,K["@reverse"][ae],{propertyIsArray:!0});oe=u["@reverse"]||null,e.t3=a.default.keys(K);case 107:if((e.t4=e.t3()).done){e.next=125;break}if("@reverse"!==(ie=e.t4.value)){e.next=111;break}return e.abrupt("continue",107);case 111:null===oe&&(oe=u["@reverse"]={}),C(oe,ie,[],{propertyIsArray:!0}),se=K[ie],ue=0;case 115:if(!(ue<se.length)){e.next=123;break}if(ce=se[ue],!k(ce)&&!w(ce)){e.next=119;break}throw new p('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:K});case 119:C(oe,ie,ce,{propertyIsArray:!0});case 120:++ue,e.next=115;break;case 123:e.next=107;break;case 125:return e.abrupt("continue",202);case 126:if("@nest"!==Q){e.next=129;break}return _.push(W),e.abrupt("continue",202);case 129:if(le=r,fe=E(r,W,"@context"),b(fe)){e.next=135;break}return e.next=134,T({activeCtx:r,localCtx:fe,propagate:!0,overrideProtected:!0,options:d});case 134:le=e.sent;case 135:if(!(de=E(r,W,"@container")||[]).includes("@language")||!y($)){e.next=141;break}pe=E(le,W,"@direction"),K=G(le,$,pe,d),e.next=179;break;case 141:if(!de.includes("@index")||!y($)){e.next=150;break}return ve=de.includes("@graph"),he=E(le,W,"@index")||"@index",ye="@index"!==he&&I(r,he,{vocab:!0},d),e.next=147,z({activeCtx:le,options:d,activeProperty:W,value:$,asGraph:ve,indexKey:he,propertyIndex:ye});case 147:K=e.sent,e.next=179;break;case 150:if(!de.includes("@id")||!y($)){e.next=157;break}return ge=de.includes("@graph"),e.next=154,z({activeCtx:le,options:d,activeProperty:W,value:$,asGraph:ge,indexKey:"@id"});case 154:K=e.sent,e.next=179;break;case 157:if(!de.includes("@type")||!y($)){e.next=163;break}return e.next=160,z({activeCtx:le.revertToPreviousContext(),options:d,activeProperty:W,value:$,asGraph:!1,indexKey:"@type"});case 160:K=e.sent,e.next=179;break;case 163:if(!(xe="@list"===Q)&&"@set"!==Q){e.next=172;break}return be=n,xe&&"@graph"===i&&(be=null),e.next=169,J.expand({activeCtx:le,activeProperty:be,element:$,options:d,insideList:xe});case 169:K=e.sent,e.next=179;break;case 172:if("@json"!==E(r,W,"@type")){e.next=176;break}K={"@type":"@json","@value":$},e.next=179;break;case 176:return e.next=178,J.expand({activeCtx:le,activeProperty:W,element:$,options:d,insideList:!1});case 178:K=e.sent;case 179:if(null!==K||"@value"===Q){e.next=181;break}return e.abrupt("continue",202);case 181:if("@list"!==Q&&!w(K)&&de.includes("@list")&&(K={"@list":M(K)}),!de.includes("@graph")||de.some((function(e){return"@id"===e||"@index"===e}))){e.next=188;break}if(K=M(K),d.isFrame||(K=K.filter((function(e){return null!==U({value:e,count:Object.keys(e).length,options:d})}))),0!==K.length){e.next=187;break}return e.abrupt("continue",202);case 187:K=K.map((function(e){return{"@graph":M(e)}}));case 188:if(!le.mappings.has(W)||!le.mappings.get(W).reverse){e.next=201;break}me=u["@reverse"]=u["@reverse"]||{},K=M(K),we=0;case 192:if(!(we<K.length)){e.next=200;break}if(ke=K[we],!k(ke)&&!w(ke)){e.next=196;break}throw new p('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:K});case 196:C(me,Q,ke,{propertyIsArray:!0});case 197:++we,e.next=192;break;case 200:return e.abrupt("continue",202);case 201:C(u,Q,K,{propertyIsArray:!0});case 202:e.next=7;break;case 204:e.next=209;break;case 206:e.prev=206,e.t5=e.catch(5),V.e(e.t5);case 209:return e.prev=209,V.f(),e.finish(209);case 212:if(!("@value"in u)){e.next=218;break}if("@json"!==u["@type"]||!N(r,1.1)){e.next=216;break}e.next=218;break;case 216:if(!y(L)&&!h(L)||d.isFrame){e.next=218;break}throw new p('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:L});case 218:je=0,Se=_;case 219:if(!(je<Se.length)){e.next=244;break}Oe=Se[je],Ie=h(s[Oe])?s[Oe]:[s[Oe]],Ee=f(Ie),e.prev=223,Ee.s();case 225:if((Ae=Ee.n()).done){e.next=233;break}if(Te=Ae.value,y(Te)&&!Object.keys(Te).some((function(e){return"@value"===I(r,e,{vocab:!0},d)}))){e.next=229;break}throw new p("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:Te});case 229:return e.next=231,H({activeCtx:r,activeProperty:n,expandedActiveProperty:i,element:Te,expandedParent:u,options:d,insideList:v,typeScopedContext:j,typeKey:m});case 231:e.next=225;break;case 233:e.next=238;break;case 235:e.prev=235,e.t6=e.catch(223),Ee.e(e.t6);case 238:return e.prev=238,Ee.f(),e.finish(238);case 241:je++,e.next=219;break;case 244:case"end":return e.stop()}}),e,null,[[5,206,209,212],[75,85,88,91],[223,235,238,241]])})))).apply(this,arguments)}function q(e){var t=e.activeCtx,r=e.activeProperty,n=e.value,a=e.options;if(null==n)return null;var o=I(t,r,{vocab:!0},a);if("@id"===o)return I(t,n,{base:!0},a);if("@type"===o)return I(t,n,{vocab:!0,base:!0},l(l({},a),{},{typeExpansion:!0}));var s=E(t,r,"@type");if(("@id"===s||"@graph"===o)&&x(n)){var u=I(t,n,{base:!0},a);return null===u&&n.match(L)&&a.eventHandler&&B({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:r}},options:a}),{"@id":u}}if("@vocab"===s&&x(n))return{"@id":I(t,n,{vocab:!0,base:!0},a)};if(A(o))return n;var c={};if(s&&!["@id","@vocab","@none"].includes(s))c["@type"]=s;else if(x(n)){var f=E(t,r,"@language");null!==f&&(c["@language"]=f);var d=E(t,r,"@direction");null!==d&&(c["@direction"]=d)}return["boolean","number","string"].includes((0,i.default)(n))||(n=n.toString()),c["@value"]=n,c}function G(e,t,r,n){var a,o=[],i=f(Object.keys(t).sort());try{for(i.s();!(a=i.n()).done;){var s=a.value,u=I(e,s,{vocab:!0},n),c=t[s];h(c)||(c=[c]);var l,d=f(c);try{for(d.s();!(l=d.n()).done;){var v=l.value;if(null!==v){if(!x(v))throw new p("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:t});var y={"@value":v};"@none"!==u&&(s.match(D)||n.eventHandler&&B({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:s}},options:n}),y["@language"]=s.toLowerCase()),r&&(y["@direction"]=r),o.push(y)}}}catch(e){d.e(e)}finally{d.f()}}}catch(e){i.e(e)}finally{i.f()}return o}function z(e){return W.apply(this,arguments)}function W(){return(W=(0,u.default)(a.default.mark((function e(t){var r,n,o,i,s,u,c,l,d,v,y,g,x,m,w,S,O,A,N;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.activeCtx,n=t.options,o=t.activeProperty,i=t.value,s=t.asGraph,u=t.indexKey,c=t.propertyIndex,l=[],d=Object.keys(i).sort(),v="@type"===u,y=f(d),e.prev=5,y.s();case 7:if((g=y.n()).done){e.next=51;break}if(x=g.value,!v){e.next=15;break}if(m=E(r,x,"@context"),b(m)){e.next=15;break}return e.next=14,T({activeCtx:r,localCtx:m,propagate:!1,options:n});case 14:r=e.sent;case 15:return w=i[x],h(w)||(w=[w]),e.next=19,J.expand({activeCtx:r,activeProperty:o,element:w,options:n,insideList:!1,insideIndex:!0});case 19:w=e.sent,S=void 0,S=c?"@none"===x?"@none":q({activeCtx:r,activeProperty:u,value:x,options:n}):I(r,x,{vocab:!0},n),"@id"===u?x=I(r,x,{base:!0},n):v&&(x=S),O=f(w),e.prev=24,O.s();case 26:if((A=O.n()).done){e.next=41;break}if(N=A.value,s&&!j(N)&&(N={"@graph":[N]}),"@type"!==u){e.next=33;break}"@none"===S||(N["@type"]?N["@type"]=[x].concat(N["@type"]):N["@type"]=[x]),e.next=38;break;case 33:if(!k(N)||["@language","@type","@index"].includes(u)){e.next=37;break}throw new p("Invalid JSON-LD syntax; Attempt to add illegal key to value "+'object: "'.concat(u,'".'),"jsonld.SyntaxError",{code:"invalid value object",value:N});case 37:c?"@none"!==S&&C(N,c,S,{propertyIsArray:!0,prependValue:!0}):"@none"===S||u in N||(N[u]=x);case 38:l.push(N);case 39:e.next=26;break;case 41:e.next=46;break;case 43:e.prev=43,e.t0=e.catch(24),O.e(e.t0);case 46:return e.prev=46,O.f(),e.finish(46);case 49:e.next=7;break;case 51:e.next=56;break;case 53:e.prev=53,e.t1=e.catch(5),y.e(e.t1);case 56:return e.prev=56,y.f(),e.finish(56);case 59:return e.abrupt("return",l);case 60:case"end":return e.stop()}}),e,null,[[5,53,56,59],[24,43,46,49]])})))).apply(this,arguments)}e.exports=J,J.expand=function(){var e=(0,u.default)(a.default.mark((function e(t){var r,n,o,i,s,u,c,l,d,v,m,w,k,j,S,O,A,_,D,L,C,F,V,G,z,W,$,K,Q,Y,X,Z,ee,te,re,ne,ae,oe,ie;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.activeCtx,n=t.activeProperty,o=void 0===n?null:n,i=t.element,s=t.options,u=void 0===s?{}:s,c=t.insideList,l=void 0!==c&&c,d=t.insideIndex,v=void 0!==d&&d,m=t.typeScopedContext,w=void 0===m?null:m,null!=i){e.next=3;break}return e.abrupt("return",null);case 3:if("@default"===o&&(u=Object.assign({},u,{isFrame:!1})),h(i)||y(i)){e.next=9;break}if(l||null!==o&&"@graph"!==I(r,o,{vocab:!0},u)){e.next=8;break}return u.eventHandler&&B({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:i}},options:u}),e.abrupt("return",null);case 8:return e.abrupt("return",q({activeCtx:r,activeProperty:o,value:i,options:u}));case 9:if(!h(i)){e.next=26;break}k=[],j=E(r,o,"@container")||[],l=l||j.includes("@list"),S=0;case 14:if(!(S<i.length)){e.next=25;break}return e.next=17,J.expand({activeCtx:r,activeProperty:o,element:i[S],options:u,insideIndex:v,typeScopedContext:w});case 17:if(O=e.sent,l&&h(O)&&(O={"@list":O}),null!==O){e.next=21;break}return e.abrupt("continue",22);case 21:h(O)?k=k.concat(O):k.push(O);case 22:++S,e.next=14;break;case 25:return e.abrupt("return",k);case 26:if(A=I(r,o,{vocab:!0},u),_=E(r,o,"@context"),w=w||(r.previousContext?r:null),D=Object.keys(i).sort(),!((L=!v)&&w&&D.length<=2)||D.includes("@context")){e.next=55;break}C=f(D),e.prev=33,C.s();case 35:if((F=C.n()).done){e.next=47;break}if(V=F.value,"@value"!==(G=I(w,V,{vocab:!0},u))){e.next=42;break}return L=!1,r=w,e.abrupt("break",47);case 42:if("@id"!==G||1!==D.length){e.next=45;break}return L=!1,e.abrupt("break",47);case 45:e.next=35;break;case 47:e.next=52;break;case 49:e.prev=49,e.t0=e.catch(33),C.e(e.t0);case 52:return e.prev=52,C.f(),e.finish(52);case 55:if(L&&(r=r.revertToPreviousContext()),b(_)){e.next=60;break}return e.next=59,T({activeCtx:r,localCtx:_,propagate:!0,overrideProtected:!0,options:u});case 59:r=e.sent;case 60:if(!("@context"in i)){e.next=64;break}return e.next=63,T({activeCtx:r,localCtx:i["@context"],options:u});case 63:r=e.sent;case 64:w=r,z=null,W=f(D),e.prev=67,W.s();case 69:if(($=W.n()).done){e.next=98;break}if(K=$.value,"@type"!==I(r,K,{vocab:!0},u)){e.next=96;break}z=z||K,Q=i[K],Y=Array.isArray(Q)?Q.length>1?Q.slice().sort():Q:[Q],X=f(Y),e.prev=77,X.s();case 79:if((Z=X.n()).done){e.next=88;break}if(ee=Z.value,te=E(w,ee,"@context"),b(te)){e.next=86;break}return e.next=85,T({activeCtx:r,localCtx:te,options:u,propagate:!1});case 85:r=e.sent;case 86:e.next=79;break;case 88:e.next=93;break;case 90:e.prev=90,e.t1=e.catch(77),X.e(e.t1);case 93:return e.prev=93,X.f(),e.finish(93);case 96:e.next=69;break;case 98:e.next=103;break;case 100:e.prev=100,e.t2=e.catch(67),W.e(e.t2);case 103:return e.prev=103,W.f(),e.finish(103);case 106:return re={},e.next=109,H({activeCtx:r,activeProperty:o,expandedActiveProperty:A,element:i,expandedParent:re,options:u,insideList:l,typeKey:z,typeScopedContext:w});case 109:if(D=Object.keys(re),ne=D.length,!("@value"in re)){e.next=139;break}if(!("@type"in re)||!("@language"in re)&&!("@direction"in re)){e.next=114;break}throw new p('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:re});case 114:if(ae=ne-1,"@type"in re&&(ae-=1),"@index"in re&&(ae-=1),"@language"in re&&(ae-=1),"@direction"in re&&(ae-=1),0===ae){e.next=121;break}throw new p('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:re});case 121:if(oe=null===re["@value"]?[]:M(re["@value"]),ie=P(re,"@type"),!N(r,1.1)||!ie.includes("@json")||1!==ie.length){e.next=126;break}e.next=137;break;case 126:if(0!==oe.length){e.next=131;break}u.eventHandler&&B({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:re}},options:u}),re=null,e.next=137;break;case 131:if(oe.every((function(e){return x(e)||g(e)}))||!("@language"in re)){e.next=135;break}throw new p("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:re});case 135:if(ie.every((function(e){return R(e)&&!(x(e)&&0===e.indexOf("_:"))||g(e)}))){e.next=137;break}throw new p('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:re});case 137:e.next=150;break;case 139:if(!("@type"in re)||h(re["@type"])){e.next=143;break}re["@type"]=[re["@type"]],e.next=150;break;case 143:if(!("@set"in re)&&!("@list"in re)){e.next=149;break}if(!(ne>1)||2===ne&&"@index"in re){e.next=146;break}throw new p('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:re});case 146:"@set"in re&&(re=re["@set"],D=Object.keys(re),ne=D.length),e.next=150;break;case 149:1===ne&&"@language"in re&&(u.eventHandler&&B({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:re}},options:u}),re=null);case 150:return!y(re)||u.keepFreeFloatingNodes||l||null!==o&&"@graph"!==A&&!(E(r,o,"@container")||[]).includes("@graph")||(re=U({value:re,count:ne,options:u})),e.abrupt("return",re);case 152:case"end":return e.stop()}}),e,null,[[33,49,52,55],[67,100,103,106],[77,90,93,96]])})));return function(t){return e.apply(this,arguments)}}()},function(e,t,r){"use strict";var n=r(1),a=r(104),o=r(69);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,r){o(t,e,r)}),{AS_ENTRIES:!0}),t}})},function(e,t,r){"use strict";var n=r(1),a=r(358).entries;n({target:"Object",stat:!0},{entries:function(e){return a(e)}})},function(e,t,r){"use strict";var n=r(10),a=r(0),o=r(2),i=r(99),s=r(94),u=r(35),c=o(r(109).f),l=o([].push),f=n&&a((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),d=function(e){return function(t){for(var r,a=u(t),o=s(a),d=f&&null===i(a),p=o.length,v=0,h=[];p>v;)r=o[v++],n&&!(d?r in a:c(a,r))||l(h,e?[r,a[r]]:a[r]);return h}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,r){"use strict";r(28),r(32);var n=r(60).isSubjectReference,a=r(133).createMergedNodeMap,o={};e.exports=o,o.flatten=function(e){for(var t=a(e),r=[],o=Object.keys(t).sort(),i=0;i<o.length;++i){var s=t[o[i]];n(s)||r.push(s)}return r}},function(e,t,r){"use strict";r(22),r(23),r(27),r(29),r(17),r(24),r(19),r(25),r(26);var n=r(9),a=n(r(37));r(32),r(28),r(361),r(11),r(4),r(14),r(18),r(86),r(226),r(81),r(82),r(85),r(219);var o=n(r(132)),i=n(r(43));function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=r(45),l=r(60),f=r(38),d=r(44),p=d.REGEX_BCP47,v=d.addValue,h=r(108).handleEvent,y=r(167),g=y.RDF_LIST,x=y.RDF_FIRST,b=y.RDF_REST,m=y.RDF_NIL,w=y.RDF_TYPE,k=y.RDF_JSON_LITERAL,j=y.XSD_BOOLEAN,S=y.XSD_DOUBLE,O=y.XSD_INTEGER,I=y.XSD_STRING,E={};function A(e,t,r,n){if(e.termType.endsWith("Node"))return{"@id":e.value};var a={"@value":e.value};if(e.language)e.language.match(p)||n.eventHandler&&h({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e.language}},options:n}),a["@language"]=e.language;else{var i=e.datatype.value;if(i||(i=I),i===k){i="@json";try{a["@value"]=JSON.parse(a["@value"])}catch(e){throw new c("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:a["@value"],cause:e})}}if(t){if(i===j)"true"===a["@value"]?a["@value"]=!0:"false"===a["@value"]&&(a["@value"]=!1);else if(f.isNumeric(a["@value"]))if(i===O){var s=parseInt(a["@value"],10);s.toFixed(0)===a["@value"]&&(a["@value"]=s)}else i===S&&(a["@value"]=parseFloat(a["@value"]));[j,O,S,I].includes(i)||(a["@type"]=i)}else if("i18n-datatype"===r&&i.startsWith("https://www.w3.org/ns/i18n#")){var u=i.split(/[#_]/),l=(0,o.default)(u,3),d=l[1],v=l[2];d.length>0&&(a["@language"]=d,d.match(p)||n.eventHandler&&h({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:d}},options:n})),a["@direction"]=v}else i!==I&&(a["@type"]=i)}return a}e.exports=E,E.fromRDF=function(){var e=(0,i.default)(a.default.mark((function e(t,r){var n,o,i,u,d,p,h,y,k,j,S,O,I,E,T,N,R,_,D,L,C,M,P,F,B,J,U,H,V,q,G,z,W,$,K,Q,Y,X,Z,ee,te,re,ne,ae,oe,ie,se,ue,ce;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.useRdfType,o=void 0!==n&&n,i=r.useNativeTypes,u=void 0!==i&&i,d=r.rdfDirection,y={"@default":h={}},k={},!(p=void 0===d?null:d)){e.next=11;break}if("compound-literal"!==p){e.next=9;break}throw new c("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:p});case 9:if("i18n-datatype"===p){e.next=11;break}throw new c("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:p});case 11:j=s(t),e.prev=12,j.s();case 14:if((S=j.n()).done){e.next=35;break}if(O=S.value,(I="DefaultGraph"===O.graph.termType?"@default":O.graph.value)in y||(y[I]={}),"@default"===I||I in h||(h[I]={"@id":I}),E=y[I],T=O.subject.value,N=O.predicate.value,R=O.object,T in E||(E[T]={"@id":T}),_=E[T],(D=R.termType.endsWith("Node"))&&!(R.value in E)&&(E[R.value]={"@id":R.value}),N!==w||o||!D){e.next=30;break}return v(_,"@type",R.value,{propertyIsArray:!0}),e.abrupt("continue",33);case 30:L=A(R,u,p,r),v(_,N,L,{propertyIsArray:!0}),D&&(R.value===m?("usages"in(C=E[R.value])||(C.usages=[]),C.usages.push({node:_,property:N,value:L})):R.value in k?k[R.value]=!1:k[R.value]={node:_,property:N,value:L});case 33:e.next=14;break;case 35:e.next=40;break;case 37:e.prev=37,e.t0=e.catch(12),j.e(e.t0);case 40:return e.prev=40,j.f(),e.finish(40);case 43:e.t1=a.default.keys(y);case 44:if((e.t2=e.t1()).done){e.next=91;break}if(M=e.t2.value,P=y[M],m in P){e.next=49;break}return e.abrupt("continue",44);case 49:if((F=P[m]).usages){e.next=52;break}return e.abrupt("continue",44);case 52:B=s(F.usages),e.prev=53,B.s();case 55:if((J=B.n()).done){e.next=80;break}U=J.value,H=U.node,V=U.property,q=U.value,G=[],z=[],W=Object.keys(H).length;case 63:if(!(V===b&&f.isObject(k[H["@id"]])&&f.isArray(H[x])&&1===H[x].length&&f.isArray(H[b])&&1===H[b].length&&(3===W||4===W&&f.isArray(H["@type"])&&1===H["@type"].length&&H["@type"][0]===g))){e.next=75;break}if(G.push(H[x][0]),z.push(H["@id"]),U=k[H["@id"]],H=U.node,V=U.property,q=U.value,W=Object.keys(H).length,l.isBlankNode(H)){e.next=73;break}return e.abrupt("break",75);case 73:e.next=63;break;case 75:for(delete q["@id"],q["@list"]=G.reverse(),$=0,K=z;$<K.length;$++)Q=K[$],delete P[Q];case 78:e.next=55;break;case 80:e.next=85;break;case 82:e.prev=82,e.t3=e.catch(53),B.e(e.t3);case 85:return e.prev=85,B.f(),e.finish(85);case 88:delete F.usages,e.next=44;break;case 91:Y=[],X=Object.keys(h).sort(),Z=s(X);try{for(Z.s();!(ee=Z.n()).done;){if(te=ee.value,re=h[te],te in y){ne=re["@graph"]=[],ae=y[te],oe=Object.keys(ae).sort(),ie=s(oe);try{for(ie.s();!(se=ie.n()).done;)ue=se.value,ce=ae[ue],l.isSubjectReference(ce)||ne.push(ce)}catch(e){ie.e(e)}finally{ie.f()}}l.isSubjectReference(re)||Y.push(re)}}catch(e){Z.e(e)}finally{Z.f()}return e.abrupt("return",Y);case 96:case"end":return e.stop()}}),e,null,[[12,37,40,43],[53,82,85,88]])})));return function(t,r){return e.apply(this,arguments)}}()},function(e,t,r){"use strict";var n,a=r(1),o=r(95),i=r(52).f,s=r(49),u=r(16),c=r(142),l=r(39),f=r(144),d=r(48),p=o("".endsWith),v=o("".slice),h=Math.min,y=f("endsWith");a({target:"String",proto:!0,forced:!!(d||y||(n=i(String.prototype,"endsWith"),!n||n.writable))&&!y},{endsWith:function(e){var t=u(l(this));c(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,a=void 0===r?n:h(s(r),n),o=u(e);return p?p(t,o,a):v(t,a-o.length,a)===o}})},function(e,t,r){"use strict";var n=r(2);e.exports=n(1..valueOf)},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(22),r(27),r(29),r(17),r(24),r(19),r(25),r(26),r(11),r(14),r(28),r(32),r(85),r(227),r(4),r(23),r(18),r(130),r(226),r(87);var o=r(133).createNodeMap,i=r(73).isKeyword,s=r(60),u=r(364),c=r(45),l=r(38),f=r(44),d=r(108).handleEvent,p=r(167),v=p.RDF_FIRST,h=p.RDF_REST,y=p.RDF_NIL,g=p.RDF_TYPE,x=p.RDF_JSON_LITERAL,b=p.RDF_LANGSTRING,m=p.XSD_BOOLEAN,w=p.XSD_DOUBLE,k=p.XSD_INTEGER,j=p.XSD_STRING,S=r(65).isAbsolute,O={};function I(e,t,r,a,o){var s,u=n(Object.keys(t).sort());try{for(u.s();!(s=u.n()).done;){var c,l=s.value,f=t[l],p=n(Object.keys(f).sort());try{var v=function(){var t=c.value,s=f[t];if("@type"===t)t=g;else if(i(t))return 1;var u,p=n(s);try{for(p.s();!(u=p.n()).done;){var v=u.value,h={termType:l.startsWith("_:")?"BlankNode":"NamedNode",value:l};if(S(l)){var y={termType:t.startsWith("_:")?"BlankNode":"NamedNode",value:t};if(S(t))if("BlankNode"!==y.termType||o.produceGeneralizedRdf){var x=E(v,a,e,r,o.rdfDirection,o);x&&e.push({subject:h,predicate:y,object:x,graph:r})}else o.eventHandler&&d({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:a.getOldIds().find((function(e){return a.getId(e)===t}))}},options:o});else o.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:t}},options:o})}else o.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:l}},options:o})}}catch(e){p.e(e)}finally{p.f()}};for(p.s();!(c=p.n()).done;)v()}catch(e){p.e(e)}finally{p.f()}}}catch(e){u.e(e)}finally{u.f()}}function E(e,t,r,a,o,i){var f={};if(s.isValue(e)){f.termType="Literal",f.value=void 0,f.datatype={termType:"NamedNode"};var p=e["@value"],g=e["@type"]||null;if("@json"===g)f.value=u(p),f.datatype.value=x;else if(l.isBoolean(p))f.value=p.toString(),f.datatype.value=g||m;else if(l.isDouble(p)||g===w)l.isDouble(p)||(p=parseFloat(p)),f.value=p.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),f.datatype.value=g||w;else if(l.isNumber(p))f.value=p.toFixed(0),f.datatype.value=g||k;else if("@direction"in e&&"i18n-datatype"===o){var O=(e["@language"]||"").toLowerCase(),I=e["@direction"],A="https://www.w3.org/ns/i18n#".concat(O,"_").concat(I);f.datatype.value=A,f.value=p}else{if("@direction"in e&&"compound-literal"===o)throw new c("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:o});if("@direction"in e&&o)throw new c("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:o});"@language"in e?("@direction"in e&&!o&&i.eventHandler&&d({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:f.value}},options:i}),f.value=p,f.datatype.value=g||b,f.language=e["@language"]):("@direction"in e&&!o&&i.eventHandler&&d({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:f.value}},options:i}),f.value=p,f.datatype.value=g||j)}}else if(s.isList(e)){var T=function(e,t,r,a,o,i){var s,u={termType:"NamedNode",value:v},c={termType:"NamedNode",value:h},l={termType:"NamedNode",value:y},f=e.pop(),d=f?{termType:"BlankNode",value:t.getId()}:l,p=d,g=n(e);try{for(g.s();!(s=g.n()).done;){var x=E(s.value,t,r,a,o,i),b={termType:"BlankNode",value:t.getId()};r.push({subject:p,predicate:u,object:x,graph:a}),r.push({subject:p,predicate:c,object:b,graph:a}),p=b}}catch(e){g.e(e)}finally{g.f()}if(f){var m=E(f,t,r,a,o,i);r.push({subject:p,predicate:u,object:m,graph:a}),r.push({subject:p,predicate:c,object:l,graph:a})}return d}(e["@list"],t,r,a,o,i);f.termType=T.termType,f.value=T.value}else{var N=l.isObject(e)?e["@id"]:e;f.termType=N.startsWith("_:")?"BlankNode":"NamedNode",f.value=N}return"NamedNode"!==f.termType||S(f.value)?f:(i.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:f.value}},options:i}),null)}e.exports=O,O.toRDF=function(e,t){var r=new f.IdentifierIssuer("_:b"),a={"@default":{}};o(e,a,"@default",r);var i,s=[],u=n(Object.keys(a).sort());try{for(u.s();!(i=u.n()).done;){var c=i.value,l=void 0;if("@default"===c)l={termType:"DefaultGraph",value:""};else{if(!S(c)){t.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:c}},options:t});continue}(l=c.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"}).value=c}I(s,a[c],l,r,t)}}catch(e){u.e(e)}finally{u.f()}return s}},function(e,t,r){"use strict";var n=r(9);r(365),r(117),r(4),r(28),r(32);var a=n(r(59));e.exports=function e(t){return null===t||"object"!==(0,a.default)(t)||null!=t.toJSON?JSON.stringify(t):Array.isArray(t)?"["+t.reduce((function(t,r,n){var o=0===n?"":",",i=void 0===r||"symbol"===(0,a.default)(r)?null:r;return t+o+e(i)}),"")+"]":"{"+Object.keys(t).sort().reduce((function(r,n,o){return void 0===t[n]||"symbol"===(0,a.default)(t[n])?r:r+(0===r.length?"":",")+e(n)+":"+e(t[n])}),"")+"}"}},function(e,t,r){"use strict";var n=r(1),a=r(7);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},function(e,t,r){"use strict";r(22),r(23),r(27),r(29),r(17),r(18),r(24),r(19),r(25),r(26),r(11),r(14),r(118),r(72),r(120);var n=r(9)(r(105));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(28),r(32),r(71),r(4),r(140),r(80),r(81),r(82);var u=r(73).isKeyword,c=r(60),l=r(38),f=r(44),d=r(65),p=r(45),v=r(133),h=v.createNodeMap,y=v.mergeNodeMapGraphs,g={};function x(e){var t={};for(var r in e)void 0!==e[r]&&(t["@"+r]=[e[r]]);return[t]}function b(e,t,r){for(var n=r.length-1;n>=0;--n){var a=r[n];if(a.graph===t&&a.subject["@id"]===e["@id"])return!0}return!1}function m(e,t,r){var n="@"+r,a=n in e?e[n][0]:t[r];if("embed"===r)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 p("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:e});return a}function w(e){if(!l.isArray(e)||1!==e.length||!l.isObject(e[0]))throw new p("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e});if("@id"in e[0]){var t,r=i(f.asArray(e[0]["@id"]));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(!l.isObject(n)&&!d.isAbsolute(n)||l.isString(n)&&0===n.indexOf("_:"))throw new p("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}}catch(e){r.e(e)}finally{r.f()}}if("@type"in e[0]){var a,o=i(f.asArray(e[0]["@type"]));try{for(o.s();!(a=o.n()).done;){var s=a.value;if(!l.isObject(s)&&!d.isAbsolute(s)&&"@json"!==s||l.isString(s)&&0===s.indexOf("_:"))throw new p("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}}catch(e){o.e(e)}finally{o.f()}}}function k(e,t,r,n){var a,o={},s=i(t);try{for(s.s();!(a=s.n()).done;){var u=a.value,c=e.graphMap[e.graph][u];j(e,c,r,n)&&(o[u]=c)}}catch(e){s.e(e)}finally{s.f()}return o}function j(e,t,r,n){var a,o=!0,s=!1,d=function(){var a=!1,d=f.getValues(t,p),v=0===f.getValues(r,p).length;if("@id"===p){if(l.isEmptyObject(r["@id"][0]||{})?a=!0:r["@id"].length>=0&&(a=r["@id"].includes(d[0])),!n.requireAll)return{v:a}}else if("@type"===p){if(o=!1,v){if(d.length>0)return{v:!1};a=!0}else if(1===r["@type"].length&&l.isEmptyObject(r["@type"][0]))a=d.length>0;else{var h,y=i(r["@type"]);try{var g=function(){var e=h.value;a=!(!l.isObject(e)||!("@default"in e))||(a||d.some((function(t){return t===e})))};for(y.s();!(h=y.n()).done;)g()}catch(e){y.e(e)}finally{y.f()}}if(!n.requireAll)return{v:a}}else{if(u(p))return 0;var x=f.getValues(r,p)[0],b=!1;if(x&&(w([x]),b="@default"in x),o=!1,0===d.length&&b)return 0;if(d.length>0&&v)return{v:!1};if(void 0===x){if(d.length>0)return{v:!1};a=!0}else if(c.isList(x)){var m=x["@list"][0];if(c.isList(d[0])){var k=d[0]["@list"];c.isValue(m)?a=k.some((function(e){return E(m,e)})):(c.isSubject(m)||c.isSubjectReference(m))&&(a=k.some((function(t){return I(e,m,t,n)})))}}else a=c.isValue(x)?d.some((function(e){return E(x,e)})):c.isSubjectReference(x)?d.some((function(t){return I(e,x,t,n)})):!!l.isObject(x)&&d.length>0}if(!a&&n.requireAll)return{v:!1};s=s||a};for(var p in r)if(0!==(a=d())&&a)return a.v;return o||s}function S(e,t){var r=e.uniqueEmbeds[e.graph],n=r[t],a=n.parent,o=n.property,i={"@id":t};if(l.isArray(a)){for(var s=0;s<a.length;++s)if(f.compareValues(a[s],i)){a[s]=i;break}}else{var u=l.isArray(a[o]);f.removeValue(a,o,i,{propertyIsArray:u}),f.addValue(a,o,i,{propertyIsArray:u})}!function e(t){for(var n=0,a=Object.keys(r);n<a.length;n++){var o=a[n];o in r&&l.isObject(r[o].parent)&&r[o].parent["@id"]===t&&(delete r[o],e(o))}}(t)}
/**
 * Removes the @preserve keywords from expanded result of framing.
 *
 * @param input the framed, framed output.
 * @param options the framing options used.
 *
 * @return the resulting output.
 */function O(e,t,r){l.isObject(e)?f.addValue(e,t,r,{propertyIsArray:!0}):e.push(r)}function I(e,t,r,n){if(!("@id"in r))return!1;var a=e.subjects[r["@id"]];return a&&j(e,a,t,n)}function E(e,t){var r=t["@value"],n=t["@type"],a=t["@language"],o=e["@value"]?l.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],i=e["@type"]?l.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],s=e["@language"]?l.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===o.length&&0===i.length&&0===s.length||!(!o.includes(r)&&!l.isEmptyObject(o[0]))&&(!!(!n&&0===i.length||i.includes(n)||n&&l.isEmptyObject(i[0]))&&!!(!a&&0===s.length||s.includes(a)||a&&l.isEmptyObject(s[0])))}e.exports=g,g.frameMergedOrDefault=function(e,t,r){var n={options:r,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},a=new f.IdentifierIssuer("_:b");h(e,n.graphMap,"@default",a),r.merged&&(n.graphMap["@merged"]=y(n.graphMap),n.graph="@merged"),n.subjects=n.graphMap[n.graph];var o=[];return g.frame(n,Object.keys(n.subjects).sort(),t,o),r.pruneBlankNodeIdentifiers&&(r.bnodesToClear=Object.keys(n.bnodeMap).filter((function(e){return 1===n.bnodeMap[e].length}))),
// remove @preserve from results
r.link={},function e(t,r){if(l.isArray(t))return t.map((function(t){return e(t,r)}));if(l.isObject(t)){
// remove @preserve
if("@preserve"in t)return t["@preserve"][0];if(c.isValue(t))return t;if(c.isList(t))return t["@list"]=e(t["@list"],r),t;if("@id"in t){var n=t["@id"];if(r.link.hasOwnProperty(n)){var a=r.link[n].indexOf(t);if(-1!==a)return r.link[n][a];r.link[n].push(t)}else r.link[n]=[t]}for(var o in t)"@id"===o&&r.bnodesToClear.includes(t[o])?delete t["@id"]:t[o]=e(t[o],r)}return t}(o,r)},g.frame=function(e,t,r,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;w(r),r=r[0];var d=e.options,v={embed:m(r,d,"embed"),explicit:m(r,d,"explicit"),requireAll:m(r,d,"requireAll")};e.link.hasOwnProperty(e.graph)||(e.link[e.graph]={});var h,y=e.link[e.graph],j=k(e,t,r,v),I=Object.keys(j).sort(),A=i(I);try{var T=function(){var w=h.value,k=j[w];if(null===s?e.uniqueEmbeds=(0,n.default)({},e.graph,{}):e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{},"@link"===v.embed&&w in y)return O(a,s,y[w]),0;var I={"@id":w};if(0===w.indexOf("_:")&&f.addValue(e.bnodeMap,w,I,{propertyIsArray:!0}),y[w]=I,("@first"===v.embed||"@last"===v.embed)&&e.is11)throw new p("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:r});if(!e.embedded&&e.uniqueEmbeds[e.graph].hasOwnProperty(w))return 0;if(e.embedded&&("@never"===v.embed||b(k,e.graph,e.subjectStack)))return O(a,s,I),0;if(e.embedded&&("@first"==v.embed||"@once"==v.embed)&&e.uniqueEmbeds[e.graph].hasOwnProperty(w))return O(a,s,I),0;if("@last"===v.embed&&w in e.uniqueEmbeds[e.graph]&&S(e,w),e.uniqueEmbeds[e.graph][w]={parent:a,property:s},e.subjectStack.push({subject:k,graph:e.graph}),w in e.graphMap){var A=!1,T=null;"@graph"in r?(T=r["@graph"][0],A=!("@merged"===w||"@default"===w),l.isObject(T)||(T={})):(A="@merged"!==e.graph,T={}),A&&g.frame(o(o({},e),{},{graph:w,embedded:!1}),Object.keys(e.graphMap[w]).sort(),[T],I,"@graph")}"@included"in r&&g.frame(o(o({},e),{},{embedded:!1}),t,r["@included"],I,"@included");var N,R=i(Object.keys(k).sort());try{for(R.s();!(N=R.n()).done;){var _=N.value;if(u(_)){if(I[_]=f.clone(k[_]),"@type"===_){var D,L=i(k["@type"]);try{for(L.s();!(D=L.n()).done;){var C=D.value;0===C.indexOf("_:")&&f.addValue(e.bnodeMap,C,I,{propertyIsArray:!0})}}catch(e){L.e(e)}finally{L.f()}}}else if(!v.explicit||_ in r){var M,P=i(k[_]);try{for(P.s();!(M=P.n()).done;){var F=M.value,B=_ in r?r[_]:x(v);if(c.isList(F)){var J=r[_]&&r[_][0]&&r[_][0]["@list"]?r[_][0]["@list"]:x(v),U={"@list":[]};O(I,_,U);var H,V=i(F["@list"]);try{for(V.s();!(H=V.n()).done;){var q=H.value;c.isSubjectReference(q)?g.frame(o(o({},e),{},{embedded:!0}),[q["@id"]],J,U,"@list"):O(U,"@list",f.clone(q))}}catch(e){V.e(e)}finally{V.f()}}else c.isSubjectReference(F)?g.frame(o(o({},e),{},{embedded:!0}),[F["@id"]],B,I,_):E(B[0],F)&&O(I,_,f.clone(F))}}catch(e){P.e(e)}finally{P.f()}}}}catch(e){R.e(e)}finally{R.f()}var G,z=i(Object.keys(r).sort());try{for(z.s();!(G=z.n()).done;){var W=G.value;if("@type"===W){if(!l.isObject(r[W][0])||!("@default"in r[W][0]))continue}else if(u(W))continue;var $=r[W][0]||{};if(!m($,d,"omitDefault")&&!(W in I)){var K="@null";"@default"in $&&(K=f.clone($["@default"])),l.isArray(K)||(K=[K]),I[W]=[{"@preserve":K}]}}}catch(e){z.e(e)}finally{z.f()}var Q,Y=i(Object.keys(r["@reverse"]||{}).sort());try{for(Y.s();!(Q=Y.n()).done;)for(var X=Q.value,Z=r["@reverse"][X],ee=0,te=Object.keys(e.subjects);ee<te.length;ee++){var re=te[ee];f.getValues(e.subjects[re],X).some((function(e){return e["@id"]===w}))&&(I["@reverse"]=I["@reverse"]||{},f.addValue(I["@reverse"],X,[],{propertyIsArray:!0}),g.frame(o(o({},e),{},{embedded:!0}),[re],Z,I["@reverse"][X],s))}}catch(e){Y.e(e)}finally{Y.f()}O(a,s,I),e.subjectStack.pop()};for(A.s();!(h=A.n()).done;)T()}catch(e){A.e(e)}finally{A.f()}},g.cleanupNull=function(e,t){if(l.isArray(e))return e.map((function(e){return g.cleanupNull(e,t)})).filter((function(e){return e}));if("@null"===e)return null;if(l.isObject(e)){if("@id"in e){var r=e["@id"];if(t.link.hasOwnProperty(r)){var n=t.link[r].indexOf(e);if(-1!==n)return t.link[r][n];t.link[r].push(e)}else t.link[r]=[e]}for(var a in e)e[a]=g.cleanupNull(e[a],t)}return e}},function(e,t,r){"use strict";r(23),r(27),r(19),r(25),r(26),r(11),r(14);var n=r(9),a=n(r(37));r(140),r(81),r(82),r(28),r(29),r(17),r(32),r(80),r(22),r(87),r(18),r(24),r(85),r(227),r(4),r(130);var o=n(r(132)),i=n(r(368)),s=n(r(105)),u=n(r(43));function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=r(45),d=r(38),p=d.isArray,v=d.isObject,h=d.isString,y=d.isUndefined,g=r(60),x=g.isList,b=g.isValue,m=g.isGraph,w=g.isSimpleGraph,k=g.isSubjectReference,j=r(73),S=j.expandIri,O=j.getContextValue,I=j.isKeyword,E=j.process,A=j.processingMode,T=r(65),N=T.removeBase,R=T.prependBase,_=r(44),D=_.REGEX_KEYWORD,L=_.addValue,C=_.asArray,M=_.compareShortestLeast,P={};function F(e,t,r){if("@nest"!==S(e,t,{vocab:!0},r))throw new f("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}e.exports=P,P.compact=function(){var e=(0,u.default)(a.default.mark((function e(t){var r,n,o,u,l,d,g,j,S,T,N,R,_,D,M,B,J,U,H,V,q,G,z,W,$,K,Q,Y,X,Z,ee,te,re,ne,ae,oe,ie,se,ue,ce,le,fe,de,pe,ve,he,ye,ge,xe,be,me,we,ke,je,Se,Oe,Ie,Ee,Ae,Te,Ne,Re,_e,De,Le,Ce,Me,Pe,Fe,Be,Je,Ue,He,Ve;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.activeCtx,n=t.activeProperty,o=void 0===n?null:n,u=t.element,l=t.options,d=void 0===l?{}:l,!p(u)){e.next=16;break}g=[],j=0;case 4:if(!(j<u.length)){e.next=14;break}return e.next=7,P.compact({activeCtx:r,activeProperty:o,element:u[j],options:d});case 7:if(null!==(S=e.sent)){e.next=10;break}return e.abrupt("continue",11);case 10:g.push(S);case 11:++j,e.next=4;break;case 14:return d.compactArrays&&1===g.length&&0===(O(r,o,"@container")||[]).length&&(g=g[0]),e.abrupt("return",g);case 16:if(T=O(r,o,"@context"),y(T)){e.next=21;break}return e.next=20,E({activeCtx:r,localCtx:T,propagate:!0,overrideProtected:!0,options:d});case 20:r=e.sent;case 21:if(!v(u)){e.next=242;break}if(!(d.link&&"@id"in u&&d.link.hasOwnProperty(u["@id"]))){e.next=31;break}N=d.link[u["@id"]],R=0;case 25:if(!(R<N.length)){e.next=31;break}if(N[R].expanded!==u){e.next=28;break}return e.abrupt("return",N[R].compacted);case 28:++R,e.next=25;break;case 31:if(!b(u)&&!k(u)){e.next=35;break}return _=P.compactValue({activeCtx:r,activeProperty:o,value:u,options:d}),d.link&&k(u)&&(d.link.hasOwnProperty(u["@id"])||(d.link[u["@id"]]=[]),d.link[u["@id"]].push({expanded:u,compacted:_})),e.abrupt("return",_);case 35:if(!x(u)){e.next=39;break}if(!(O(r,o,"@container")||[]).includes("@list")){e.next=39;break}return e.abrupt("return",P.compact({activeCtx:r,activeProperty:o,element:u["@list"],options:d}));case 39:if(D="@reverse"===o,M={},B=r,b(u)||k(u)||(r=r.revertToPreviousContext()),J=O(B,o,"@context"),y(J)){e.next=48;break}return e.next=47,E({activeCtx:r,localCtx:J,propagate:!0,overrideProtected:!0,options:d});case 47:r=e.sent;case 48:d.link&&"@id"in u&&(d.link.hasOwnProperty(u["@id"])||(d.link[u["@id"]]=[]),d.link[u["@id"]].push({expanded:u,compacted:M})),(U=u["@type"]||[]).length>1&&(U=Array.from(U).sort()),H=r,V=c(U),e.prev=53,V.s();case 55:if((q=V.n()).done){e.next=65;break}if(G=q.value,z=P.compactIri({activeCtx:H,iri:G,relativeTo:{vocab:!0}}),W=O(B,z,"@context"),y(W)){e.next=63;break}return e.next=62,E({activeCtx:r,localCtx:W,options:d,propagate:!1});case 62:r=e.sent;case 63:e.next=55;break;case 65:e.next=70;break;case 67:e.prev=67,e.t0=e.catch(53),V.e(e.t0);case 70:return e.prev=70,V.f(),e.finish(70);case 73:$=Object.keys(u).sort(),K=c($),e.prev=75,K.s();case 77:if((Q=K.n()).done){e.next=233;break}if(Y=Q.value,X=u[Y],"@id"!==Y){e.next=86;break}return 1===(Z=C(X).map((function(e){return P.compactIri({activeCtx:r,iri:e,relativeTo:{vocab:!1},base:d.base})}))).length&&(Z=Z[0]),ee=P.compactIri({activeCtx:r,iri:"@id",relativeTo:{vocab:!0}}),M[ee]=Z,e.abrupt("continue",231);case 86:if("@type"!==Y){e.next=95;break}return 1===(te=C(X).map((function(e){return P.compactIri({activeCtx:B,iri:e,relativeTo:{vocab:!0}})}))).length&&(te=te[0]),re=P.compactIri({activeCtx:r,iri:"@type",relativeTo:{vocab:!0}}),ne=O(r,re,"@container")||[],ae=ne.includes("@set")&&A(r,1.1),oe=ae||p(te)&&0===X.length,L(M,re,te,{propertyIsArray:oe}),e.abrupt("continue",231);case 95:if("@reverse"!==Y){e.next=102;break}return e.next=98,P.compact({activeCtx:r,activeProperty:"@reverse",element:X,options:d});case 98:for(se in ie=e.sent)r.mappings.has(se)&&r.mappings.get(se).reverse&&(ue=ie[se],ce=O(r,se,"@container")||[],le=ce.includes("@set")||!d.compactArrays,L(M,se,ue,{propertyIsArray:le}),delete ie[se]);return Object.keys(ie).length>0&&(fe=P.compactIri({activeCtx:r,iri:Y,relativeTo:{vocab:!0}}),L(M,fe,ie)),e.abrupt("continue",231);case 102:if("@preserve"!==Y){e.next=108;break}return e.next=105,P.compact({activeCtx:r,activeProperty:o,element:X,options:d});case 105:return de=e.sent,p(de)&&0===de.length||L(M,Y,de),e.abrupt("continue",231);case 108:if("@index"!==Y){e.next=115;break}if(!(O(r,o,"@container")||[]).includes("@index")){e.next=112;break}return e.abrupt("continue",231);case 112:return pe=P.compactIri({activeCtx:r,iri:Y,relativeTo:{vocab:!0}}),L(M,pe,X),e.abrupt("continue",231);case 115:if("@graph"===Y||"@list"===Y||"@included"===Y||!I(Y)){e.next=119;break}return ve=P.compactIri({activeCtx:r,iri:Y,relativeTo:{vocab:!0}}),L(M,ve,X),e.abrupt("continue",231);case 119:if(p(X)){e.next=121;break}throw new f("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");case 121:0===X.length&&(he=P.compactIri({activeCtx:r,iri:Y,value:X,relativeTo:{vocab:!0},reverse:D}),ye=r.mappings.has(he)?r.mappings.get(he)["@nest"]:null,ge=M,ye&&(F(r,ye,d),v(M[ye])||(M[ye]={}),ge=M[ye]),L(ge,he,X,{propertyIsArray:!0})),xe=c(X),e.prev=123,xe.s();case 125:if((be=xe.n()).done){e.next=223;break}return me=be.value,we=P.compactIri({activeCtx:r,iri:Y,value:me,relativeTo:{vocab:!0},reverse:D}),ke=r.mappings.has(we)?r.mappings.get(we)["@nest"]:null,je=M,ke&&(F(r,ke,d),v(M[ke])||(M[ke]={}),je=M[ke]),Se=O(r,we,"@container")||[],Oe=m(me),Ie=x(me),Ee=void 0,Ie?Ee=me["@list"]:Oe&&(Ee=me["@graph"]),e.next=138,P.compact({activeCtx:r,activeProperty:we,element:Ie||Oe?Ee:me,options:d});case 138:if(Ae=e.sent,!Ie){e.next=148;break}if(p(Ae)||(Ae=[Ae]),Se.includes("@list")){e.next=146;break}Ae=(0,s.default)({},P.compactIri({activeCtx:r,iri:"@list",relativeTo:{vocab:!0}}),Ae),"@index"in me&&(Ae[P.compactIri({activeCtx:r,iri:"@index",relativeTo:{vocab:!0}})]=me["@index"]),e.next=148;break;case 146:return L(je,we,Ae,{valueIsArray:!0,allowDuplicate:!0}),e.abrupt("continue",221);case 148:if(!Oe){e.next=152;break}Se.includes("@graph")&&(Se.includes("@id")||Se.includes("@index")&&w(me))?(Te=void 0,je.hasOwnProperty(we)?Te=je[we]:je[we]=Te={},Ne=(Se.includes("@id")?me["@id"]:me["@index"])||P.compactIri({activeCtx:r,iri:"@none",relativeTo:{vocab:!0}}),L(Te,Ne,Ae,{propertyIsArray:!d.compactArrays||Se.includes("@set")})):Se.includes("@graph")&&w(me)?(p(Ae)&&Ae.length>1&&(Ae={"@included":Ae}),L(je,we,Ae,{propertyIsArray:!d.compactArrays||Se.includes("@set")})):(p(Ae)&&1===Ae.length&&d.compactArrays&&(Ae=Ae[0]),Ae=(0,s.default)({},P.compactIri({activeCtx:r,iri:"@graph",relativeTo:{vocab:!0}}),Ae),"@id"in me&&(Ae[P.compactIri({activeCtx:r,iri:"@id",relativeTo:{vocab:!0}})]=me["@id"]),"@index"in me&&(Ae[P.compactIri({activeCtx:r,iri:"@index",relativeTo:{vocab:!0}})]=me["@index"]),L(je,we,Ae,{propertyIsArray:!d.compactArrays||Se.includes("@set")})),e.next=221;break;case 152:if(!(Se.includes("@language")||Se.includes("@index")||Se.includes("@id")||Se.includes("@type"))){e.next=219;break}if(Re=void 0,je.hasOwnProperty(we)?Re=je[we]:je[we]=Re={},_e=void 0,!Se.includes("@language")){e.next=161;break}b(Ae)&&(Ae=Ae["@value"]),_e=me["@language"],e.next=215;break;case 161:if(!Se.includes("@index")){e.next=189;break}if(De=O(r,we,"@index")||"@index",Le=P.compactIri({activeCtx:r,iri:De,relativeTo:{vocab:!0}}),"@index"!==De){e.next=169;break}_e=me["@index"],delete Ae[Le],e.next=187;break;case 169:if(Ce=void 0,Me=C(Ae[De]||[]),Pe=(0,i.default)(Me),_e=Pe[0],Ce=Pe.slice(1),h(_e)){e.next=178;break}_e=null,e.next=187;break;case 178:e.t1=Ce.length,e.next=0===e.t1?181:1===e.t1?183:185;break;case 181:return delete Ae[De],e.abrupt("break",187);case 183:return Ae[De]=Ce[0],e.abrupt("break",187);case 185:return Ae[De]=Ce,e.abrupt("break",187);case 187:e.next=215;break;case 189:if(!Se.includes("@id")){e.next=195;break}Fe=P.compactIri({activeCtx:r,iri:"@id",relativeTo:{vocab:!0}}),_e=Ae[Fe],delete Ae[Fe],e.next=215;break;case 195:if(!Se.includes("@type")){e.next=215;break}Be=P.compactIri({activeCtx:r,iri:"@type",relativeTo:{vocab:!0}}),Je=void 0,Ue=C(Ae[Be]||[]),He=(0,i.default)(Ue),_e=He[0],Je=He.slice(1),e.t2=Je.length,e.next=0===e.t2?205:1===e.t2?207:209;break;case 205:return delete Ae[Be],e.abrupt("break",211);case 207:return Ae[Be]=Je[0],e.abrupt("break",211);case 209:return Ae[Be]=Je,e.abrupt("break",211);case 211:if(1!==Object.keys(Ae).length||!("@id"in me)){e.next=215;break}return e.next=214,P.compact({activeCtx:r,activeProperty:we,element:{"@id":me["@id"]},options:d});case 214:Ae=e.sent;case 215:_e||(_e=P.compactIri({activeCtx:r,iri:"@none",relativeTo:{vocab:!0}})),L(Re,_e,Ae,{propertyIsArray:Se.includes("@set")}),e.next=221;break;case 219:Ve=!d.compactArrays||Se.includes("@set")||Se.includes("@list")||p(Ae)&&0===Ae.length||"@list"===Y||"@graph"===Y,L(je,we,Ae,{propertyIsArray:Ve});case 221:e.next=125;break;case 223:e.next=228;break;case 225:e.prev=225,e.t3=e.catch(123),xe.e(e.t3);case 228:return e.prev=228,xe.f(),e.finish(228);case 231:e.next=77;break;case 233:e.next=238;break;case 235:e.prev=235,e.t4=e.catch(75),K.e(e.t4);case 238:return e.prev=238,K.f(),e.finish(238);case 241:return e.abrupt("return",M);case 242:return e.abrupt("return",u);case 243:case"end":return e.stop()}}),e,null,[[53,67,70,73],[75,235,238,241],[123,225,228,231]])})));return function(t){return e.apply(this,arguments)}}(),P.compactIri=function(e){var t=e.activeCtx,r=e.iri,n=e.value,a=void 0===n?null:n,i=e.relativeTo,s=void 0===i?{vocab:!1}:i,u=e.reverse,l=void 0!==u&&u,d=e.base,p=void 0===d?null:d;if(null===r)return r;t.isPropertyTermScoped&&t.previousContext&&(t=t.previousContext);var h=t.getInverse();if(I(r)&&r in h&&"@none"in h[r]&&"@type"in h[r]["@none"]&&"@none"in h[r]["@none"]["@type"])return h[r]["@none"]["@type"]["@none"];if(s.vocab&&r in h){var y=t["@language"]||"@none",g=[];v(a)&&"@index"in a&&!("@graph"in a)&&g.push("@index","@index@set"),v(a)&&"@preserve"in a&&(a=a["@preserve"][0]),m(a)?("@index"in a&&g.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in a&&g.push("@graph@id","@graph@id@set"),g.push("@graph","@graph@set","@set"),"@index"in a||g.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in a||g.push("@graph@id","@graph@id@set")):v(a)&&!b(a)&&g.push("@id","@id@set","@type","@set@type");var w="@language",k="@null";if(l)w="@type",k="@reverse",g.push("@set");else if(x(a)){"@index"in a||g.push("@list");var j=a["@list"];if(0===j.length)w="@any",k="@none";else{for(var S=0===j.length?y:null,O=null,E=0;E<j.length;++E){var A=j[E],T="@none",_="@none";if(b(A))if("@direction"in A){var L=(A["@language"]||"").toLowerCase(),C=A["@direction"];T="".concat(L,"_").concat(C)}else"@language"in A?T=A["@language"].toLowerCase():"@type"in A?_=A["@type"]:T="@null";else _="@id";if(null===S?S=T:T!==S&&b(A)&&(S="@none"),null===O?O=_:_!==O&&(O="@none"),"@none"===S&&"@none"===O)break}S=S||"@none","@none"!==(O=O||"@none")?(w="@type",k=O):k=S}}else{if(b(a))if("@language"in a&&!("@index"in a)){g.push("@language","@language@set"),k=a["@language"];var F=a["@direction"];F&&(k="".concat(k,"_").concat(F))}else"@direction"in a&&!("@index"in a)?k="_".concat(a["@direction"]):"@type"in a&&(w="@type",k=a["@type"]);else w="@type",k="@id";g.push("@set")}g.push("@none"),v(a)&&!("@index"in a)&&g.push("@index","@index@set"),b(a)&&1===Object.keys(a).length&&g.push("@language","@language@set");var B=function(e,t,r,n,a,o){null===o&&(o="@null");var i=[];if(("@id"===o||"@reverse"===o)&&v(r)&&"@id"in r){"@reverse"===o&&i.push("@reverse");var s=P.compactIri({activeCtx:e,iri:r["@id"],relativeTo:{vocab:!0}});e.mappings.has(s)&&e.mappings.get(s)&&e.mappings.get(s)["@id"]===r["@id"]?i.push.apply(i,["@vocab","@id"]):i.push.apply(i,["@id","@vocab"])}else{i.push(o);var u=i.find((function(e){return e.includes("_")}));u&&i.push(u.replace(/^[^_]+_/,"_"))}i.push("@none");var l,f=e.inverse[t],d=c(n);try{for(d.s();!(l=d.n()).done;){var p=l.value;if(p in f){var h,y=f[p][a],g=c(i);try{for(g.s();!(h=g.n()).done;){var x=h.value;if(x in y)return y[x]}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){d.e(e)}finally{d.f()}return null}(t,r,a,g,w,k);if(null!==B)return B}if(s.vocab&&"@vocab"in t){var J=t["@vocab"];if(0===r.indexOf(J)&&r!==J){var U=r.substr(J.length);if(!t.mappings.has(U))return U}}for(var H=null,V=[],q=t.fastCurieMap,G=r.length-1,z=0;z<G&&r[z]in q;++z)""in(q=q[r[z]])&&V.push(q[""][0]);for(var W=V.length-1;W>=0;--W){var $,K=V[W],Q=c(K.terms);try{for(Q.s();!($=Q.n()).done;){var Y=$.value,X=Y+":"+r.substr(K.iri.length);t.mappings.get(Y)._prefix&&(!t.mappings.has(X)||null===a&&t.mappings.get(X)["@id"]===r)&&(null===H||M(X,H)<0)&&(H=X)}}catch(e){Q.e(e)}finally{Q.f()}}if(null!==H)return H;var Z,ee=c(t.mappings);try{for(ee.s();!(Z=ee.n()).done;){var te=(0,o.default)(Z.value,2),re=te[0],ne=te[1];if(ne&&ne._prefix&&r.startsWith(re+":"))throw new f('Absolute IRI "'.concat(r,'" confused with prefix "').concat(re,'".'),"jsonld.SyntaxError",{code:"IRI confused with prefix",context:t})}}catch(e){ee.e(e)}finally{ee.f()}if(!s.vocab){if("@base"in t){if(t["@base"]){var ae=N(R(p,t["@base"]),r);return D.test(ae)?"./".concat(ae):ae}return r}return N(p,r)}return r},P.compactValue=function(e){var t=e.activeCtx,r=e.activeProperty,n=e.value,a=e.options;if(b(n)){var o=O(t,r,"@type"),i=O(t,r,"@language"),u=O(t,r,"@direction"),c=O(t,r,"@container")||[],l="@index"in n&&!c.includes("@index");if(!l&&"@none"!==o){if(n["@type"]===o)return n["@value"];if("@language"in n&&n["@language"]===i&&"@direction"in n&&n["@direction"]===u)return n["@value"];if("@language"in n&&n["@language"]===i)return n["@value"];if("@direction"in n&&n["@direction"]===u)return n["@value"]}var f=Object.keys(n).length,d=1===f||2===f&&"@index"in n&&!l,p="@language"in t,v=h(n["@value"]),y=t.mappings.has(r)&&null===t.mappings.get(r)["@language"];if(d&&"@none"!==o&&(!p||!v||y))return n["@value"];var g={};return l&&(g[P.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?g[P.compactIri({activeCtx:t,iri:"@type",relativeTo:{vocab:!0}})]=P.compactIri({activeCtx:t,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(g[P.compactIri({activeCtx:t,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(g[P.compactIri({activeCtx:t,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),g[P.compactIri({activeCtx:t,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],g}var x=S(t,r,{vocab:!0},a),m=O(t,r,"@type"),w=P.compactIri({activeCtx:t,iri:n["@id"],relativeTo:{vocab:"@vocab"===m},base:a.base});return"@id"===m||"@vocab"===m||"@graph"===x?w:(0,s.default)({},P.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}}),w)}},function(e,t,r){var n=r(222),a=r(209),o=r(156),i=r(223);e.exports=function(e){return n(e)||a(e)||o(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(9);r(4),r(64);var a=n(r(33)),o=n(r(34));e.exports=function(e){var t=function(){function e(){(0,a.default)(this,e)}return(0,o.default)(e,[{key:"toString",value:function(){return"[object JsonLdProcessor]"}}]),e}();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,r){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,r)},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}}])}));
//# sourceMappingURL=jsonld.min.js.map