textbrowser 0.47.0-beta.1 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +8 -0
- package/dist/WorkInfo-es.js +1 -1
- package/dist/index-es.js +1 -1
- package/dist/index-es.min.js +1 -1
- package/files.json +4 -4
- package/package.json +3 -3
package/CHANGES.md
CHANGED
package/dist/WorkInfo-es.js
CHANGED
|
@@ -264,7 +264,7 @@ function buildGetJSON({
|
|
|
264
264
|
baseURL,
|
|
265
265
|
cwd: basePath
|
|
266
266
|
} = {}) {
|
|
267
|
-
const _fetch = typeof window !== 'undefined' ? window.fetch : _async$2(function (jsonURL) {
|
|
267
|
+
const _fetch = typeof window !== 'undefined' || typeof self !== 'undefined' ? typeof window !== 'undefined' ? window.fetch : self.fetch : _async$2(function (jsonURL) {
|
|
268
268
|
let _exit = false;
|
|
269
269
|
return _invoke$2(function () {
|
|
270
270
|
if (/^https?:/u.test(jsonURL)) {
|
package/dist/index-es.js
CHANGED
|
@@ -293,7 +293,7 @@ function buildGetJSON({
|
|
|
293
293
|
baseURL,
|
|
294
294
|
cwd: basePath
|
|
295
295
|
} = {}) {
|
|
296
|
-
const _fetch = typeof window !== 'undefined' ? window.fetch : _async$2(function (jsonURL) {
|
|
296
|
+
const _fetch = typeof window !== 'undefined' || typeof self !== 'undefined' ? typeof window !== 'undefined' ? window.fetch : self.fetch : _async$2(function (jsonURL) {
|
|
297
297
|
let _exit = false;
|
|
298
298
|
return _invoke$2(function () {
|
|
299
299
|
if (/^https?:/u.test(jsonURL)) {
|
package/dist/index-es.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}let i,a;function s(){}const u=(c=function(){return function(e){var t=e();if(t&&t.then)return t.then(s)}((function(){if(!i)return e=import("path"),t=function(e){({dirname:i}=e)},n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e);var e,t,n}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(c.apply(this,e))}catch(e){return Promise.reject(e)}});var c;function l(e){return t=i(new URL(e).pathname),a||(a="win32"===process.platform),t.slice(a?1:0);var t}function f(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}let p;function d(e,t){var n=e();return n&&n.then?n.then(t):t(n)}const h=function({baseURL:e,cwd:t}={}){const n="undefined"!=typeof window?window.fetch:function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(n){let r=!1;return d((function(){if(/^https?:/u.test(n))return d((function(){if(!p)return f(import("node-fetch"),(function(e){p=e}))}),(function(){const e=p.default(n);return r=!0,e}))}),(function(o){return r?o:d((function(){if(!t)return function(e,t,n){if(n)return t?t(e()):e();try{var r=Promise.resolve(e());return t?r.then(t):r}catch(e){return Promise.reject(e)}}(u,(function(){t=e?l(e):"undefined"==typeof window&&process.cwd()}))}),(function(){return f(import("local-xmlhttprequest"),(function(e){const r=e.default({basePath:t});return new Promise(((e,t)=>{const o=new r;o.open("GET",n,!0),o.onreadystatechange=function(){if(4===o.readyState)if(200!==o.status)t(new SyntaxError("Failed to fetch URL: "+n+"state: "+o.readyState+"; status: "+o.status));else{const t=o.responseText;e({json:()=>JSON.parse(t)})}},o.send()}))}))}))}))})),r=function({fetch:e=("undefined"!=typeof window?window.fetch:self.fetch)}={}){return function t(n,r,i){try{let a=!1;return o(function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}((function(){if(Array.isArray(n))return o(Promise.all(n.map((e=>t(e)))),(function(e){return r&&r(...e),a=!0,e}))}),(function(t){return a?t:o(e(n),(function(e){return o(e.json(),(function(e){return"function"==typeof r?r(e):e}))}))}))}),(function(e){if(e.message+=` (File: ${n})`,i)return i(e,n);throw e})))}catch(e){return Promise.reject(e)}}}({fetch:n});return r._fetch=n,r.hasURLBasePath=Boolean(e),r.basePath=t,r}();function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return y="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},y(e)}function m(){m=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),E(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return S(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},m.apply(this,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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&&E(e,t)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function O(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(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 n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||I(e,t)||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.")}()}function P(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T=globalThis.jsonExtra,C=function(e){return e.replace(/\\+/g,(function(e){return e.slice(0,e.length/2)}))},D=function(e){return T.parse("{"+(e||"").replace(/^\{/,"").replace(/\}$/,"")+"}")},F=function(e,t,n){var r,o=n.onMatch,i=n.extra,a=n.betweenMatches,s=n.afterMatch,u=n.escapeAtOne,c=0;for(i&&(a=i,s=i,u=i);null!==(r=e.exec(t));){var l=A(r,2),f=l[0],p=l[1],d=e.lastIndex,h=d-f.length;h>c&&a(t.slice(c,h)),u&&p.length%2?(c=d,u(f)):(o.apply(void 0,P(r)),c=d)}c!==t.length&&s(t.slice(c))},L="undefined"!=typeof fetch?fetch:null,$=function(){return L},R="undefined"!=typeof document?document:null,U=function(){return R};var M=function(e,t,n){return t.sort(new Intl.Collator(e,n).compare)},z=function(e,t,n){return new Intl.ListFormat(e,n).format(t)},B=function(e,t,n,r,o){if("function"!=typeof n)return function(e,t,n,r){return M(e,t,r),z(e,t,n)}(e,t,n,r);M(e,t,o);var i,a=(i=Date.now(),"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.trunc((i+16*Math.random())%16);return i=Math.floor(i/16),("x"===e?t:3&t|8).toString(16)}))),s=P(t).map((function(e,t){return"<<".concat(a).concat(t,">>")})),u=[],c=function(){u.push.apply(u,arguments)};F(new RegExp("<<".concat(a,"(\\d)>>"),"gu"),z(e,s,r),{betweenMatches:c,afterMatch:c,onMatch:function(e,r){c(n(t[r],r))}});var l=U().createDocumentFragment();return l.append.apply(l,u),l},q=function(e){var t=e.object;if(Array.isArray(t)){if("function"==typeof t[1]){var n=A(t,4);return{value:n[0],callback:n[1],options:n[2],extraOpts:n[3]}}var r=A(t,3);return{value:r[0],options:r[1],extraOpts:r[2]}}return{value:t}},W=function(e){var t,n=e.value,r=e.arg;e.key;var o,i=e.locale;if("string"==typeof n||n&&"object"===y(n)&&"nodeType"in n)return n;var a=function(e){var t=e.type,n=e.options,i=void 0===n?o:n,a=e.checkArgOptions,s=void 0!==a&&a;if("string"==typeof r){var u=A(r.split("|"),3),c=u[0],l=u[1],f=u[2];"DATE"===c&&(c="DATETIME"),c===t&&(l?s&&!f||(i=g(g({},i),D(s&&f?f:l))):i={})}return i},s=!1;if(n&&"object"===y(n)&&!Array.isArray(n)){var u=Object.keys(n)[0];if(["number","date","datetime","dateRange","datetimeRange","relative","region","language","script","currency","list","plural"].includes(u)){var c,l,f=q({object:n[u]});switch(n=f.value,o=f.options,c=f.extraOpts,l=f.callback,u){case"date":case"datetime":s=!0;break;case"dateRange":case"datetimeRange":return(t=new Intl.DateTimeFormat(i,a({type:"DATERANGE",options:c}))).formatRange.apply(t,P([n,o].map((function(e){return"number"==typeof e?new Date(e):e}))));case"region":case"language":case"script":case"currency":return new Intl.DisplayNames(i,g(g({},a({type:u.toUpperCase()})),{},{type:u})).of(n);case"relative":var p=[o,c];return c=p[0],o=p[1],new Intl.RelativeTimeFormat(i,a({type:"RELATIVE"})).format(n,c);case"list":return l?B(i,n,l,a({type:"LIST"}),a({type:"LIST",options:c,checkArgOptions:!0})):B(i,n,a({type:"LIST"}),a({type:"LIST",options:c,checkArgOptions:!0}))}}}if(n&&("number"==typeof n&&(s||/^DATE(?:TIME)(?:\||$)/.test(r))&&(n=new Date(n)),"object"===y(n)&&"function"==typeof n.getTime))return new Intl.DateTimeFormat(i,a({type:"DATETIME"})).format(n);if(Array.isArray(n)){var d,h=n[2];return(d=new Intl.DateTimeFormat(i,a({type:"DATERANGE",options:h}))).formatRange.apply(d,P(n.slice(0,2).map((function(e){return"number"==typeof e?new Date(e):e}))))}if("number"==typeof n)return new Intl.NumberFormat(i,a({type:"NUMBER"})).format(n);throw new TypeError("Unknown formatter")},V=_((function e(){b(this,e)})),H=function(e){var t=e.key,n=e.body,r=e.type,o=e.messageStyle,i=se({messageStyle:void 0===o?"richNested":o})({body:n},t);if(!i)throw new Error("Key value not found for ".concat(r," key: (").concat(t,")"));return i.value},J=function(e){S(n,V);var t=k(n);function n(e){var r;return b(this,n),(r=t.call(this)).locals=e,r}return _(n,[{key:"getSubstitution",value:function(e){return H({key:e.slice(1),body:this.locals,type:"local"})}},{key:"isMatch",value:function(e){var t=e.slice(1).split("."),n=this.locals;return this.constructor.isMatchingKey(e)&&t.every((function(e){var t=e in n;return n=n[e],t}))}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("-")}}]),n}(),K=function(e){S(n,V);var t=k(n);function n(e){var r;return b(this,n),(r=t.call(this)).substitutions=e,r}return _(n,[{key:"isMatch",value:function(e){return this.constructor.isMatchingKey(e)&&e in this.substitutions}}],[{key:"isMatchingKey",value:function(e){return/^[0-9A-Z_a-z]/.test(e)}}]),n}(),G=function(e){S(n,V);var t=k(n);function n(e,r){var o,i=r.substitutions;return b(this,n),(o=t.call(this)).switches=e,o.substitutions=i,o}return _(n,[{key:"getSubstitution",value:function(e,t){var n,r,o=t.locale,i=t.usedKeys,a=t.arg,s=t.missingSuppliedFormatters,u=this.constructor.getKey(e).slice(1),c=A(this.getMatch(u),3),l=c[0],f=c[1],p=c[2];if(i.push(p),l&&l.includes("|")){var d=A(l.split("|"),3);n=d[1],r=d[2]}if(!f)return s({key:e,formatter:this}),"\\{"+e+"}";var h=function(e,t){var n=D(r);return new Intl.NumberFormat(o,g(g({},t),n)).format(e)},v=function(e,t){var n=D(r);return new Intl.PluralRules(o,g(g({},t),n)).select(e)},m=this.substitutions[p],b=m;if("number"==typeof m)switch(n){case"NUMBER":b=h(m);break;case"PLURAL":b=v(m);break;default:b=new Intl.PluralRules(o).select(m)}else if(m&&"object"===y(m)){var w=Object.keys(m)[0];if(["number","plural"].includes(w)){var _=q({object:m[w]}),x=_.value,S=_.options;if(n||(n=w.toUpperCase()),!(w.toUpperCase()===n))throw new TypeError('Expecting type "'.concat(n.toLowerCase(),'"; instead found "').concat(w,'".'));switch(n){case"NUMBER":b=h(x,S);break;case"PLURAL":b=v(x,S)}}}var j="richNested",E=function(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")};try{return H({messageStyle:j,key:b?E(b):a,body:f,type:"switch"})}catch(e){try{return H({messageStyle:j,key:"*"+E(b),body:f,type:"switch"})}catch(e){var O=Object.keys(f).find((function(e){return e.startsWith("*")}));if(!O)throw new Error("No defaults found for switch ".concat(u));return H({messageStyle:j,key:E(O),body:f,type:"switch"})}}}},{key:"isMatch",value:function(e){return e&&this.constructor.isMatchingKey(e)&&Boolean(this.getMatch(e.slice(1)).length)}},{key:"getMatch",value:function(e){var t=this,n=e.split(".");return n.reduce((function(r,o,i){if(i<n.length-1){if(!(o in r))throw new Error('Switch key "'.concat(o,'" not found (from "~').concat(e,'")'));return r[o]}var a=Object.entries(r).find((function(e){var n=A(e,1)[0];return o===t.constructor.getKey(n)}));return a?[].concat(P(a),[o]):[]}),this.switches)}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("~")}},{key:"getKey",value:function(e){var t=e.match(/^(?:(?!\|)[\s\S])*/);return t&&t[0]}}]),n}();function Z(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function X(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function Y(e,t,n){if(!e.s){if(n instanceof Q){if(!n.s)return void(n.o=Y.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(Y.bind(null,e,t),Y.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}var Q=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{Y(r,1,i(this.v))}catch(e){Y(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?Y(r,1,t?t(o):o):n?Y(r,1,n(o)):Y(r,2,o)}catch(e){Y(r,2,e)}},r},e}();function ee(e){return e instanceof Q&&1&e.s}function te(e,t,n){for(var r;;){var o=e();if(ee(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!ee(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!ee(a)){r=2;break}}}var s=new Q,u=Y.bind(null,s,2);return(0===r?o.then(l):1===r?i.then(c):a.then(f)).then(void 0,u),s;function c(r){i=r;do{if(t&&(a=t())&&a.then&&!ee(a))return void a.then(f).then(void 0,u);if(!(o=e())||ee(o)&&!o.v)return void Y(s,1,i);if(o.then)return void o.then(l).then(void 0,u);ee(i=n())&&(i=i.v)}while(!i||!i.then);i.then(c).then(void 0,u)}function l(e){e?(i=n())&&i.then?i.then(c).then(void 0,u):c(i):Y(s,1,i)}function f(){(o=e())?o.then?o.then(l).then(void 0,u):l(o):Y(s,1,i)}}function ne(e,t){return e&&e.then?e.then(t):t(e)}function re(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var oe=function(e,t){if("string"!=typeof e)throw new TypeError("`defaultLocaleResolver` expects a string `localesBasePath`.");if("string"!=typeof t)throw new TypeError("`defaultLocaleResolver` expects a string `locale`.");if(/[\.\/\\]/.test(t))throw new TypeError("Locales cannot use file-reserved characters, `.`, `/` or `\\`");return"".concat(e.replace(/\/$/,""),"/_locales/").concat(t,"/messages.json")},ie=function(e){var t=e.string,n=e.dom,r=e.usedKeys,o=e.substitutions,i=e.allSubstitutions,a=e.locale,s=e.locals,u=e.switches,c=e.maximumLocalNestingDepth,l=void 0===c?3:c,f=e.missingSuppliedFormatters,p=e.checkExtraSuppliedFormatters;if("number"!=typeof l)throw new TypeError("`maximumLocalNestingDepth` must be a number.");var d=function(){Object.entries(o).forEach((function(e){var t=A(e,2),n=t[0];"function"==typeof t[1]&&r.push(n)}))};d();var h=new J(s),v=new K(o),m=new G(u,{substitutions:o}),b=/(\\*)\{((?:(?:(?!\})[\s\S])|\\\})*?)(?:(\|)((?:(?!\})[\s\S])*))?\}/g;i&&(i=Array.isArray(i)?i:[i]);var w=function(e){var t,n=e.key,o=e.arg,s=e.substs;return h.constructor.isMatchingKey(n)?t=h.getSubstitution(n):m.constructor.isMatchingKey(n)?t=m.getSubstitution(n,{locale:a,usedKeys:r,arg:o,missingSuppliedFormatters:f}):"function"==typeof(t=s[n])&&(t=t({arg:o,key:n})),i?t=i.reduce((function(e,t){return t({value:e,arg:o,key:n,locale:a})}),t):o&&/^(?:NUMBER|DATE(?:TIME|RANGE|TIMERANGE)?|REGION|LANGUAGE|SCRIPT|CURRENCY|RELATIVE|LIST)(?:\||$)/.test(o)&&(t=W({value:t,arg:o,key:n,locale:a})),t},_=1,x=function(e){var t=e.substitution,n=e.ky,r=e.arg,i=e.processSubsts;if("string"==typeof t&&t.includes("{")){if(_++>l)throw new TypeError("Too much recursion in local variables.");if(h.constructor.isMatchingKey(n)){var a,s=o;r&&(a=D(r),s=g(g({},o),a)),t=i({str:t,substs:s,formatter:h}),a&&p({substitutions:a})}else m.constructor.isMatchingKey(n)&&(t=i({str:t}))}return t};if(!n){var S=!1,j=function e(t){var n=t.str,i=t.substs,a=void 0===i?o:i,s=t.formatter,u=void 0===s?v:s;return n.replace(b,(function(t,n,o,i,s){if(n.length%2)return t;if(f({key:o,formatter:u}))return t;var c=w({key:o,arg:s,substs:a});return c=x({substitution:c,ky:o,arg:s,processSubsts:e}),S=S||c&&"object"===y(c)&&"nodeType"in c,r.push(o),n+c}))}({str:t});if(!S)return p({substitutions:o}),r.length=0,d(),C(j);r.length=0,d()}_=1;var E=function e(t){var n=t.str,i=t.substs,a=void 0===i?o:i,s=t.formatter,u=void 0===s?v:s,c=[],l=new RegExp(b,"gu"),p=function(){c.push.apply(c,arguments)};return F(l,n,{extra:p,onMatch:function(t,n,o,i,s){if(f({key:o,formatter:u}))p(t);else{n.length&&p(n);var c=w({key:o,arg:s,substs:a});c=x({substitution:c,ky:o,arg:s,processSubsts:e}),Array.isArray(c)?p.apply(void 0,P(c)):c&&"object"===y(c)&&"nodeType"in c?p(c.cloneNode(!0)):p(c)}r.push(o)}}),c}({str:t});return p({substitutions:o}),r.length=0,E.map((function(e){return"string"==typeof e?C(e):e}))};function ae(e,t){if(Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))&&"string"==typeof t&&t.endsWith("Nested"))return e.map((function(e){return e.replace(m(/(\\+)/g,{backslashes:1}),"\\$<backslashes>").replace(/\./g,"\\.")})).join(".");if("string"!=typeof e)throw new TypeError("`key` is expected to be a string (or array of strings for nested style)");return e}var se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.messageStyle,n=void 0===t?"richNested":t;return"function"==typeof n?n:"richNested"===n?function(e,t){var n=e&&"object"===y(e)&&e.body,r=[],o=function(e){r.length||(r[0]=""),r[r.length-1]+=e};F(/(\\*)\./g,t,{extra:o,onMatch:function(e,t){o(t),r.push("")}});var i=r.map((function(e){return C(e)})),a=!1,s=n;return i.some((function(e,t,n){return!s||"object"!==y(s)||(t===n.length-1&&e in s&&s[e]&&"object"===y(s[e])&&"message"in s[e]&&"string"==typeof s[e].message&&(a={value:s[e].message,info:s[e]}),s=s[e],!1)})),a}:"rich"===n?function(e,t){var n=e&&"object"===y(e)&&e.body;return!!(n&&"object"===y(n)&&t in n&&n[t]&&"object"===y(n[t])&&"message"in n[t]&&"string"==typeof n[t].message)&&{value:n[t].message,info:n[t]}}:"plain"===n?function(e,t){var n=e&&"object"===y(e)&&e.body;return!!(n&&"object"===y(n)&&t in n&&n[t]&&"string"==typeof n[t])&&{value:n[t]}}:"plainNested"===n?function(e,t){var n=e&&"object"===y(e)&&e.body;if(n&&"object"===y(n)){var r=t.split(/(?<!\\)\./).reduce((function(e,t){return e&&e[t]?e[t]:null}),n);if(r&&"string"==typeof r)return{value:r}}return!1}:function(){throw new TypeError("Unknown `messageStyle` ".concat(n))}()},ue=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.message,r=t.defaults,o=t.messageStyle,i=t.messageForKey,a=void 0===i?se({messageStyle:o}):i,s=t.key;if("string"==typeof n)e=n;else if(!1===r||null==r)e=!1;else{if(!r||"object"!==y(r))throw new TypeError("Default locale strings must resolve to `false`, nullish, or an object!");(e=a(r,s))&&(e=e.value)}if(!1===e)throw new Error("Key value not found for key: (".concat(s,")"));return e},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.string,n=e.locale,r=e.locals,o=e.switches;e.maximumLocalNestingDepth;var i=e.allSubstitutions,a=void 0===i?[W]:i,s=e.insertNodes,u=void 0===s?ie:s,c=e.substitutions,l=void 0!==c&&c,f=e.dom,p=void 0!==f&&f,d=e.forceNodeReturn,h=void 0!==d&&d,v=e.throwOnMissingSuppliedFormatters,g=void 0===v||v,y=e.throwOnExtraSuppliedFormatters,m=void 0===y||y;if("string"!=typeof t)throw new TypeError("An options object with a `string` property set to a string must be provided for `getDOMForLocaleString`.");var b=function(e){var t=U();return h?t.createTextNode(e):e},w=[],_=function(e){var t=e.substitutions;m&&Object.keys(t).forEach((function(e){if(!w.includes(e))throw new Error("Extra formatting key: ".concat(e))}))},x=function(e){var t=e.key,n=e.formatter,r=n.isMatch(t);if(n.constructor.isMatchingKey(t)&&!r){if(g)throw new Error("Missing formatting key: ".concat(t));return!0}return!1};if(!l&&!a&&!g)return b(t);l||(l={});var S=u({string:t,dom:p,usedKeys:w,substitutions:l,allSubstitutions:a,locale:n,locals:r,switches:o,missingSuppliedFormatters:x,checkExtraSuppliedFormatters:_});if("string"==typeof S)return b(S);var j=U(),E=j.createDocumentFragment();return E.append.apply(E,P(S)),E};function le(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function fe(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var pe=function(e){if(!e.includes("-"))throw new Error("Locale not available");return e.replace(/\x2D(?:(?!\x2D)[\s\S])*$/,"")},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeResolver,o=e.localesBasePath,i=e.localeMatcher;return he({locales:t,defaultLocales:n,localeResolver:r,localesBasePath:o,localeMatcher:i})},he=fe((function(e){var t=fe((function(e){if("string"!=typeof e)throw new TypeError("Non-string locale type");var n=s(c,e);if("string"!=typeof n)throw new TypeError("`localeResolver` expected to resolve to (URL) string.");return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=$();return le(d?t(n,{method:"HEAD"}):t(n),(function(t){if(404===t.status)throw new Error("Trying again");return d?e:le(t.json(),(function(t){return{locale:e,strings:t}}))}))}),(function(n){if("SyntaxError"===n.name)throw n;return le(f(e),t)}))})),n=e.locales,r=void 0===n?"undefined"!=typeof intlDomLocale?[intlDomLocale]:"undefined"==typeof navigator?[]:navigator.languages:n,o=e.defaultLocales,i=void 0===o?["en-US"]:o,a=e.localeResolver,s=void 0===a?oe:a,u=e.localesBasePath,c=void 0===u?".":u,l=e.localeMatcher,f=void 0===l?"lookup":l,p=e.headOnly,d=void 0!==p&&p;if("lookup"===f)f=pe;else if("function"!=typeof f)throw new TypeError('`localeMatcher` must be "lookup" or a function!');return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Reached end of values array.";if(!Array.isArray(e))throw new TypeError("The `values` argument to `promiseChainForValues` must be an array.");if("function"!=typeof t)throw new TypeError("The `errBack` argument to `promiseChainForValues` must be a function.");return re((function(){var r,o,i=!1,a=Promise.reject(new Error("Intentionally reject so as to begin checking chain"));return ne(te((function(){return!i}),void 0,(function(){var s=e.shift();return X((function(){return Z(a,(function(e){r=e,i=!0}))}),(function(){if(o)throw new Error(n);e.length||(o=!0),a=t(s)}))})),(function(e){return r}))}))()}([].concat(P(r),P(i)),t,"No matching locale found for "+[].concat(P(r),P(i)).join(", "))}));function ve(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ge(e,t){var n=e();return n&&n.then?n.then(t):t(n)}var ye=function(e){var t=e.strings,n=e.resolvedLocale,r=e.messageStyle,o=void 0===r?"richNested":r,i=e.allSubstitutions,a=e.insertNodes,s=e.keyCheckerConverter,u=void 0===s?ae:s,c=e.defaults,l=e.substitutions,f=e.maximumLocalNestingDepth,p=e.dom,d=void 0!==p&&p,h=e.forceNodeReturn,v=void 0!==h&&h,m=e.throwOnMissingSuppliedFormatters,b=void 0===m||m,w=e.throwOnExtraSuppliedFormatters,_=void 0===w||w;if(!t||"object"!==y(t))throw new TypeError("Locale strings must be an object!");var x=se({messageStyle:o}),S=function(e,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=s.allSubstitutions,h=void 0===p?i:p,y=s.defaults,m=void 0===y?c:y,w=s.dom,S=void 0===w?d:w,j=s.forceNodeReturn,E=void 0===j?v:j,O=s.throwOnMissingSuppliedFormatters,k=void 0===O?b:O,A=s.throwOnExtraSuppliedFormatters,P=void 0===A?_:A;e=u(e,o);var I=x(t,e),N=ue({message:!(!I||"string"!=typeof I.value)&&I.value,defaults:m,messageForKey:x,key:e});return ce({string:N,locals:t.head&&t.head.locals,switches:t.head&&t.head.switches,locale:n,maximumLocalNestingDepth:f,allSubstitutions:h,insertNodes:a,substitutions:g(g({},l),r),dom:S,forceNodeReturn:E,throwOnMissingSuppliedFormatters:k,throwOnExtraSuppliedFormatters:P})};return S.resolvedLocale=n,S.strings=t,S.sort=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return M.apply(void 0,[n].concat(t))},S.sortList=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B.apply(void 0,[n].concat(t))},S.list=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return z.apply(void 0,[n].concat(t))},S},me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeStringFinder,o=void 0===r?de:r,i=e.localesBasePath,a=e.localeResolver,s=e.localeMatcher,u=e.messageStyle,c=e.allSubstitutions,l=e.insertNodes,f=e.keyCheckerConverter,p=e.defaults,d=e.substitutions,h=e.maximumLocalNestingDepth,v=e.dom,g=e.forceNodeReturn,y=e.throwOnMissingSuppliedFormatters,m=e.throwOnExtraSuppliedFormatters;try{return ve(o({locales:t,defaultLocales:n,localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){var t=e.strings,r=e.locale;return ge((function(){if(!p&&n)return ve(o({locales:n,defaultLocales:[],localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){p=e.strings,e.locale===r&&(p=null)}))}),(function(){return ye({strings:t,resolvedLocale:r,messageStyle:u,allSubstitutions:c,insertNodes:l,keyCheckerConverter:f,defaults:p,substitutions:d,maximumLocalNestingDepth:h,dom:v,forceNodeReturn:g,throwOnMissingSuppliedFormatters:y,throwOnExtraSuppliedFormatters:m})}))}))}catch(e){return Promise.reject(e)}};function be(e,{before:t,after:n,favicon:r,canvas:o,image:i=!0,acceptErrors:a}={}){return e=Array.isArray(e)?e:[e],Promise.all(e.map((e=>function(e){let s={};Array.isArray(e)&&([e,s={}]=e);let{favicon:u=r}=s;const{before:c=t,after:l=n,canvas:f=o,image:p=i}=s;function d(){c?c.before(h):l?l.after(h):document.head.appendChild(h)}const h=document.createElement("link");return new Promise(((t,n)=>{let r=n;if(a&&(r="function"==typeof a?r=>{a({error:r,stylesheetURL:e,options:s,resolve:t,reject:n})}:t),e.endsWith(".css")?u=!1:e.endsWith(".ico")&&(u=!0),u){if(h.rel="shortcut icon",h.type="image/x-icon",!1===p)return h.href=e,d(),void t(h);const r=document.createElement("canvas");r.width=16,r.height=16;const o=r.getContext("2d"),i=document.createElement("img");return i.addEventListener("error",(e=>{n(e)})),i.addEventListener("load",(()=>{o.drawImage(i,0,0),h.href=f?r.toDataURL("image/x-icon"):e,d(),t(h)})),void(i.src=e)}h.rel="stylesheet",h.type="text/css",h.href=e,d(),h.addEventListener("error",(e=>{r(e)})),h.addEventListener("load",(()=>{t(h)}))}))}(e))))}function we(e){return we="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},we(e)}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||Se(e,t)||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.")}()}function xe(e){return function(e){if(Array.isArray(e))return je(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){if(e){if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ee=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i,ke=/(\[[^[\]]*])/g;function Ae(e,t){"object"!==we(t)?t={hash:Boolean(t)}:void 0===t.hash&&(t.hash=!0);var n=t.hash?{}:"",r=t.serializer||(t.hash?Ie:Ne),o=e&&e.elements?xe(e.elements):[],i=Object.create(null);return o.forEach((function(e){if((t.disabled||!e.disabled)&&e.name&&Oe.test(e.nodeName)&&!Ee.test(e.type)){var o=e.name,a=e.type,s=e.name,u=e.checked,c=e.value;if("checkbox"!==a&&"radio"!==a||u||(c=void 0),t.empty){if("checkbox"!==a||u||(c=""),"radio"===a&&(i[s]||u?u&&(i[s]=!0):i[s]=!1,void 0===c))return}else if(!c)return;if("select-multiple"===a){var l=!1;return xe(e.options).forEach((function(e){var i=t.empty&&!e.value,a=e.value||i;e.selected&&a&&(l=!0,n=t.hash&&"[]"!==o.slice(-2)?r(n,o+"[]",e.value):r(n,o,e.value))})),void(!l&&t.empty&&(n=r(n,o,"")))}n=r(n,o,c)}})),t.empty&&Object.entries(i).forEach((function(e){var t=_e(e,2),o=t[0];t[1]||(n=r(n,o,""))})),n}function Pe(e,t,n){if(0===t.length)return n;var r=t.shift(),o=r.match(/^\[(.+?)]$/);if("[]"===r)return e=e||[],Array.isArray(e)?e.push(Pe(null,t,n)):(e._values=e._values||[],e._values.push(Pe(null,t,n))),e;if(o){var i=o[1],a=Number(i);isNaN(a)?(e=e||{})[i]=Pe(e[i],t,n):(e=e||[])[a]=Pe(e[a],t,n)}else e[r]=Pe(e[r],t,n);return e}function Ie(e,t,n){if(t.match(ke)){Pe(e,function(e){var t=[],n=new RegExp(ke),r=/^([^[\]]*)/.exec(e);for(r[1]&&t.push(r[1]);null!==(r=n.exec(e));)t.push(r[1]);return t}(t),n)}else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function Ne(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}function Te(e,t){Object.entries(t).forEach((function(t){var n=_e(t,2),r=n[0],o=n[1],i=e[r],a=!1;if(!i&&!(i=e.querySelector('[name="'.concat(r,'"]')))){if(!((i=e[r+"[]"])&&"object"===we(i)&&"length"in i||(i=e.querySelectorAll('[name="'.concat(r,'[]"]'))).length))throw new Error("Name not found ".concat(r));a=!0}var s=i.type;if("checkbox"===s&&(i.checked=""!==o),("radio"===s||i[0]&&"radio"===i[0].type)&&xe(e.querySelectorAll('[name="'.concat(r+(a?"[]":""),'"]'))).forEach((function(e){e.checked=o===e.value})),i[0]&&"select-multiple"===i[0].type)xe(i[0].options).forEach((function(e){o.includes(e.value)&&(e.selected=!0)}));else if(Array.isArray(o)){if("select-multiple"===s)return void xe(i.options).forEach((function(e){o.includes(e.value)&&(e.selected=!0)}));o.forEach((function(e,t){var n=i[t];if("checkbox"!==n.type)"select-multiple"!==n.type?n.value=e:xe(n.options).forEach((function(t){e.includes(t.value)&&(t.selected=!0)}));else{var r=n.value===e||"on"===e;n.checked=r}}))}else i.value=o}))}let Ce="undefined"!=typeof window&&window,De="undefined"!=typeof document&&document||Ce&&Ce.document;const Fe=["$plugins","$map"],Le="http://www.w3.org/1999/xhtml",$e=/-([a-z])/gu,Re={maxlength:"maxLength",minlength:"minLength",readonly:"readOnly"},Ue=["checked","defaultChecked","defaultSelected","disabled","indeterminate","open","readOnly","selected"].concat(["accessKey","async","autocapitalize","autofocus","contentEditable","defaultValue","defer","draggable","formnovalidate","hidden","innerText","inputMode","ismap","multiple","novalidate","pattern","required","spellcheck","translate","value","willvalidate"]),Me=["autocomplete","dir","integrity","lang","max","min","minLength","maxLength","title"],ze=e=>De.querySelector(e),Be=e=>[...De.querySelectorAll(e)];function qe(e){return e.nodeName&&e.nodeName.toLowerCase()}function We(e){if(De.createStyleSheet&&"style"===qe(e)){De.createStyleSheet().cssText=e.cssText}}function Ve(e,t){const n=qe(e);if(De.createStyleSheet){if("script"===n)return void(e.text=t.nodeValue);if("style"===n)return void(e.cssText=t.nodeValue)}if("template"!==n)try{e.append(t)}catch(r){const o=qe(t);if("select"===n&&"option"===o){try{e.add(t)}catch(n){e.add(t,null)}return}throw r}else e.content.append(t)}function He(e,t,n){if(!/^\w+$/u.test(n))throw new TypeError(`Bad ${e} reference; with prefix "${t}" and arg "${n}"`);const r=De.createElement("div");return r.innerHTML="&"+t+n+";",De.createTextNode(r.innerHTML)}function Je(e,t){return t.toUpperCase()}function Ke(e){return null==e}function Ge(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array";if("nodeType"in e)switch(e.nodeType){case 1:return"element";case 9:return"document";case 11:return"fragment";default:return"non-container node"}}return t}function Ze(e,t){return e.append(t),e}function Xe(e){return function(t){let n=e[""]?' xmlns="'+e[""]+'"':t;for(const[t,r]of Object.entries(e))""!==t&&(n+=" xmlns:"+t+'="'+r+'"');return n}}function Ye(e){return function(t,n){const r=e.childNodes[n],o=Array.isArray(t)?rt(...t):rt(t);r.replaceWith(o)}}function Qe(e){return function(t){Array.isArray(t)?e.append(rt(...t)):e.append(rt(t))}}function et(e){return function(t){"string"==typeof t?e.append(t):Array.isArray(t)?e.append(rt(...t)):e.append(rt(t))}}function tt(e,t,n,r){if(r.$state="attributeValue",n&&"object"==typeof n){const o=nt(r,Object.keys(n)[0]);if(o)return o.set({opts:r,element:e,attribute:{name:t,value:n}})}return n}function nt(e,t){return e.$plugins&&e.$plugins.find((e=>e.name===t))}const rt=function e(...t){let n=De.createDocumentFragment();function r(r){for(let[p,d]of Object.entries(r))if(p=p in Re?Re[p]:p,Me.includes(p))d=tt(n,p,d,a),Ke(d)||(n[p]=d);else if(Ue.includes(p))d=tt(n,p,d,a),n[p]=d;else switch(p){case"#":a.$state="fragmentChilden",o[o.length]=e(a,d);break;case"$shadow":{const{open:t,closed:r}=d;let{content:o,template:i}=d;const a=n.attachShadow({mode:r||!1===t?"closed":"open"});i?(Array.isArray(i)?i="object"===Ge(i[0])?e("template",...i,De.body):e("template",i,De.body):"string"==typeof i&&(i=ze(i)),e(i.content.cloneNode(!0),a)):(o||(o=t||r),o&&"boolean"!=typeof o&&(Array.isArray(o)?e({"#":o},a):e(o,a)));break}case"$state":case"is":case"xmlns":break;case"$custom":Object.assign(n,d);break;case"$define":{const e=n.localName.toLowerCase(),o=!e.includes("-");let i;if(o&&(i=n.getAttribute("is"),!i)){if(!{}.hasOwnProperty.call(r,"is"))throw new TypeError(`Expected \`is\` with \`$define\` on built-in; args: ${JSON.stringify(t)}`);r.is=tt(n,"is",r.is,a),n.setAttribute("is",r.is),({is:i}=r)}const s=o?i:e;if(window.customElements.get(s))break;const u=t=>{const n=l&&l.extends?De.createElement(l.extends).constructor:o?De.createElement(e).constructor:window.HTMLElement;return t?class extends n{constructor(){super(),t.call(this)}}:class extends n{}};let c,l,f;Array.isArray(d)?d.length<=2?([c,l]=d,"string"==typeof l?l={extends:l}:l&&!{}.hasOwnProperty.call(l,"extends")&&(f=l),"object"==typeof c&&(f=c,c=u())):([c,f,l]=d,"string"==typeof l&&(l={extends:l})):"function"==typeof d?c=d:(f=d,c=u()),c.toString().startsWith("class")||(c=u(c)),!l&&o&&(l={extends:e}),f&&Object.entries(f).forEach((([e,t])=>{c.prototype[e]=t})),window.customElements.define(s,c,"object"==typeof l?l:void 0);break}case"$symbol":{const[e,t]=d;if("function"==typeof t){const r=t.bind(n);"string"==typeof e?n[Symbol.for(e)]=r:n[e]=r}else{const r=t;r.elem=n,"string"==typeof e?n[Symbol.for(e)]=r:n[e]=r}break}case"$data":l(d);break;case"$attribute":{const e=3===d.length?De.createAttributeNS(d[0],d[1]):De.createAttribute(d[0]);e.value=d[d.length-1],o[o.length]=e;break}case"$text":{const e=De.createTextNode(d);o[o.length]=e;break}case"$document":{const t=De.implementation.createHTMLDocument();if(d.childNodes){const e=d.childNodes.length;for(;t.childNodes[e];){t.childNodes[e].remove()}d.childNodes.forEach(Ye(t))}else{if(d.$DOCTYPE){const n={$DOCTYPE:d.$DOCTYPE},r=e(n);t.firstChild.replaceWith(r)}const n=t.childNodes[1],r=n.childNodes[0],o=n.childNodes[1];if(d.title||d.head){const e=De.createElement("meta");e.setAttribute("charset","utf-8"),r.append(e),d.title&&(t.title=d.title),d.head&&d.head.forEach(Qe(r))}d.body&&d.body.forEach(et(o))}o[o.length]=t;break}case"$DOCTYPE":{const e=De.implementation.createDocumentType(d.name,d.publicId||"",d.systemId||"");o[o.length]=e;break}case"$on":for(let[e,r]of Object.entries(d||{})){if("function"==typeof r&&(r=[r,!1]),"function"!=typeof r[0])throw new TypeError(`Expect a function for \`$on\`; args: ${JSON.stringify(t)}`);s=n,u=e,c=r[0],f=r[1],s.addEventListener(u,c,Boolean(f))}break;case"className":case"class":d=tt(n,p,d,a),Ke(d)||(n.className=d);break;case"dataset":{const e=(t,r)=>{let o="";const i=""!==r;Object.keys(t).forEach((a=>{const s=t[a];if(o=i?r+a.replace($e,Je).replace(/^([a-z])/u,Je):r+a.replace($e,Je),null===s||"object"!=typeof s)return Ke(s)||(n.dataset[o]=s),void(o=r);e(s,o)}))};e(d,"");break}case"innerHTML":Ke(d)||(n.innerHTML=d);break;case"htmlFor":case"for":if("label"===i){d=tt(n,p,d,a),Ke(d)||(n.htmlFor=d);break}d=tt(n,p,d,a),n.setAttribute(p,d);break;default:{if(p.startsWith("on")){d=tt(n,p,d,a),n[p]=d;break}if("style"===p){if(d=tt(n,p,d,a),Ke(d))break;if("object"==typeof d){for(const[e,t]of Object.entries(d))Ke(t)||("float"===e?(n.style.cssFloat=t,n.style.styleFloat=t):n.style[e.replace($e,Je)]=t);break}n.setAttribute(p,d);break}const e=nt(a,p);if(e){e.set({opts:a,element:n,attribute:{name:p,value:d}});break}d=tt(n,p,d,a),n.setAttribute(p,d);break}}var s,u,c,f}const o=[];let i,a,s=!1;if("object"===Ge(t[0])&&Object.keys(t[0]).some((e=>Fe.includes(e)))){if(a=t[0],void 0===a.$state&&(s=!0,a.$state="root"),a.$map&&!a.$map.root&&!1!==a.$map.root&&(a.$map={root:a.$map}),"$plugins"in a){if(!Array.isArray(a.$plugins))throw new TypeError(`\`$plugins\` must be an array; args: ${JSON.stringify(t)}`);a.$plugins.forEach((e=>{if(!e||"object"!=typeof e)throw new TypeError(`Plugin must be an object; args: ${JSON.stringify(t)}`);if(!e.name||!e.name.startsWith("$_"))throw new TypeError(`Plugin object name must be present and begin with \`$_\`; args: ${JSON.stringify(t)}`);if("function"!=typeof e.set)throw new TypeError(`Plugin object must have a \`set\` method; args: ${JSON.stringify(t)}`)}))}t=t.slice(1)}else a={$state:void 0};const u=t.length,c=a.$map&&a.$map.root,l=e=>{let t,r;if(!0===e)[t,r]=c;else if(Array.isArray(e)){if("string"==typeof e[0])return void e.forEach((e=>{l(a.$map[e])}));t=e[0]||c[0],r=e[1]||c[1]}else/^\[object (?:Weak)?Map\]$/u.test([].toString.call(e))?(t=e,r=c[1]):(t=c[0],r=e);t.set(n,r)};for(let s=0;s<u;s++){let c=t[s];const l=Ge(c);switch(l){case"null":if(s===u-1)return We(o[0]),o.length<=1?o[0]:o.reduce(Ze,De.createDocumentFragment());throw new TypeError(`\`null\` values not allowed except as final Jamilih argument; index ${s} on args: ${JSON.stringify(t)}`);case"string":switch(c){case"!":o[o.length]=De.createComment(t[++s]);break;case"?":{c=t[++s];let e=t[++s];const n=e;if(n&&"object"==typeof n){e=[];for(const[t,r]of Object.entries(n))e.push(t+'="'+r.replace(/"/gu,""")+'"');e=e.join(" ")}try{o[o.length]=De.createProcessingInstruction(c,e)}catch(t){o[o.length]=De.createComment("?"+c+" "+e+"?")}break}case"&":o[o.length]=He("entity","",t[++s]);break;case"#":o[o.length]=He("decimal",c,String(t[++s]));break;case"#x":o[o.length]=He("hexadecimal",c,t[++s]);break;case"![":try{o[o.length]=De.createCDATASection(t[++s])}catch(e){o[o.length]=De.createTextNode(t[s])}break;case"":o[o.length]=n=De.createDocumentFragment(),a.$state="fragment";break;default:{i=c;const e=t[s+1];if("object"===Ge(e)&&e.is){const{is:t}=e;n=De.createElementNS?De.createElementNS(Le,i,{is:t}):De.createElement(i,{is:t})}else n=De.createElementNS?De.createElementNS(Le,i):De.createElement(i);a.$state="element",o[o.length]=n;break}}break;case"object":{const e=c;if(void 0!==e.xmlns){const t="object"==typeof e.xmlns?Xe(e.xmlns):' xmlns="'+e.xmlns+'"';n=o[o.length-1]=(new Ce.DOMParser).parseFromString((new Ce.XMLSerializer).serializeToString(n).replace(' xmlns="'+Le+'"',t),"application/xml").documentElement,a.$state="element"}r(e);break}case"document":case"fragment":case"element":if(0===s&&(n=c,a.$state="element"),s===u-1||s===u-2&&null===t[s+1]){const e=o.length;for(let t=0;t<e;t++)Ve(c,o[t]);We(o[0])}else o[o.length]=c;break;case"array":{const r=c,o=r.length;for(let i=0;i<o;i++){const o=r[i],s=typeof o;if(Ke(o))throw new TypeError(`Bad children (parent array: ${JSON.stringify(t)}; index ${i} of child: ${JSON.stringify(r)})`);switch(s){case"string":case"number":case"boolean":Ve(n,De.createTextNode(o));break;default:if(Array.isArray(o))a.$state="children",Ve(n,e(a,...o));else if(o["#"])a.$state="fragmentChildren",Ve(n,e(a,o["#"]));else{const e=tt(n,null,o,a);Ve(n,e)}}}break}default:throw new TypeError(`Unexpected type: ${l}; arg: ${c}; index ${s} on args: ${JSON.stringify(t)}`)}}const f=o[0]||n;return s&&a.$map&&a.$map.root&&l(!0),f};rt.toJML=function(e,{stringOutput:t=!1,reportInvalidState:n=!0,stripWhitespace:r=!1}={}){"string"==typeof e&&(e=(new Ce.DOMParser).parseFromString(e,"text/html"));const o=[];let i=o,a=0;function s(e){class t extends Error{constructor(e,t){super(e),this.name=t}}if(n){const n=new t(e,"INVALID_STATE_ERR");throw n.code=11,n}}function u(e){i[a]=e,a++}function c(){u([]),i=i[a-1],a=0}function l(e,t){i=i[a-1][e],a=0,t&&(i=i[t])}return function e(t,n){const o="nodeType"in t?t.nodeType:null;let f,p;function d(){f=i,p=a}function h(){i=f,a=p,a++}switch(n={...n},[2,3,4,7,8].includes(o)&&!/^([\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$/u.test(t.nodeValue)&&s("Node has bad XML character value"),o){case 1:{d();const r=t.nodeName.toLowerCase();c(),u(r);const o={};let i=!1;n[t.prefix||""]!==t.namespaceURI&&(n[t.prefix||""]=t.namespaceURI,t.prefix?o["xmlns:"+t.prefix]=t.namespaceURI:t.namespaceURI?o.xmlns=t.namespaceURI:o.xmlns=null,i=!0),t.attributes.length?u([...t.attributes].reduce((function(e,t){return e[t.name]=t.value,e}),o)):i&&u(o);const{childNodes:a}=t;a.length&&(c(),[...a].forEach((function(t){e(t,n)}))),h();break}case void 0:case 2:u({$attribute:[t.namespaceURI,t.name,t.value]});break;case 3:if(r&&/^\s+$/u.test(t.nodeValue))return void u("");u(t.nodeValue);break;case 4:t.nodeValue.includes("]]>")&&s("CDATA cannot end with closing ]]>"),u(["![",t.nodeValue]);break;case 5:u(["&",t.nodeName]);break;case 7:/^xml$/iu.test(t.target)&&s('Processing instructions cannot be "xml".'),t.target.includes("?>")&&s("Processing instruction targets cannot include ?>"),t.target.includes(":")&&s('The processing instruction target cannot include ":"'),t.data.includes("?>")&&s("Processing instruction data cannot include ?>"),u(["?",t.target,t.data]);break;case 8:(t.nodeValue.includes("--")||t.nodeValue.length&&t.nodeValue.lastIndexOf("-")===t.nodeValue.length-1)&&s("Comments cannot include --"),u(["!",t.nodeValue]);break;case 9:{d();u({$document:{childNodes:[]}}),l("$document","childNodes");const{childNodes:r}=t;r.length||s("Documents must have a child node"),[...r].forEach((function(t){e(t,n)})),h();break}case 10:{d();const e={$DOCTYPE:{name:t.name}};/^(\u0020|\u000D|\u000A|[a-zA-Z0-9]|[-'()+,./:=?;!*#@$_%])*$/u.test(t.publicId)||s("A publicId must have valid characters."),function(e,t){t.systemId.includes('"')&&t.systemId.includes("'")&&s("systemId cannot have both single and double quotes.");const{publicId:n,systemId:r}=t;r&&(e.systemId=r),n&&(e.publicId=n)}(e.$DOCTYPE,t),u(e),h();break}case 11:{d(),u({"#":[]}),l("#");const{childNodes:r}=t;[...r].forEach((function(t){e(t,n)})),h();break}default:throw new TypeError("Not an XML type")}}(e,{}),t?JSON.stringify(o[0]):o[0]},rt.toJMLString=function(e,t){return rt.toJML(e,Object.assign(t||{},{stringOutput:!0}))},rt.toDOM=function(...e){return rt(...e)},rt.toHTML=function(...e){return rt(...e).outerHTML},rt.toDOMString=function(...e){return rt.toHTML(...e)},rt.toXML=function(...e){const t=rt(...e);return(new Ce.XMLSerializer).serializeToString(t)},rt.toXMLDOMString=function(...e){return rt.toXML(...e)};class ot extends Map{get(e){return e="string"==typeof e?ze(e):e,super.get.call(this,e)}set(e,t){return e="string"==typeof e?ze(e):e,super.set.call(this,e,t)}invoke(e,t,...n){return e="string"==typeof e?ze(e):e,this.get(e)[t](e,...n)}}class it extends WeakMap{get(e){return e="string"==typeof e?ze(e):e,super.get.call(this,e)}set(e,t){return e="string"==typeof e?ze(e):e,super.set.call(this,e,t)}invoke(e,t,...n){return e="string"==typeof e?ze(e):e,this.get(e)[t](e,...n)}}rt.Map=ot,rt.WeakMap=it,rt.weak=function(e,...t){const n=new it;return[n,rt({$map:[n,e]},...t)]},rt.strong=function(e,...t){const n=new ot;return[n,rt({$map:[n,e]},...t)]},rt.symbol=rt.sym=rt.for=function(e,t){return(e="string"==typeof e?ze(e):e)["symbol"==typeof t?t:Symbol.for(t)]},rt.command=function(e,t,n,...r){let o;return e="string"==typeof e?ze(e):e,["symbol","string"].includes(typeof t)?(o=rt.sym(e,t),"function"==typeof o?o(n,...r):o[n](...r)):(o=t.get(e),"function"==typeof o?o.call(e,n,...r):o[n](e,...r))},rt.setWindow=e=>{Ce=e,De=Ce.document,De&&De.body&&({body:at}=De)},rt.getWindow=()=>Ce;let at=De&&De.body;const st=" ",ut=(e,t)=>{var n;return(e="string"==typeof e?(n=e,document.querySelector(n)):e).querySelector(t)},ct=["submit","submitClass"],lt=["submit","cancel","cancelClass","submitClass"],ft=["message","submit"],pt={en:{submit:"Submit",cancel:"Cancel",ok:"Ok"}};const dt=new class{constructor({locale:e,localeObject:t}={}){this.setLocale({locale:e,localeObject:t})}setLocale({locale:e={},localeObject:n={}}){this.localeStrings=t(t(t({},pt.en),pt[e]),n)}makeDialog({atts:e={$on:null},children:t=[],close:n,remove:r=!0}){n&&(e.$on||(e.$on={}),e.$on.close||(e.$on.close=n));const o=rt("dialog",e,t,ze("#main"));return o.showModal(),r&&o.addEventListener("close",(()=>{o.remove()})),o}makeSubmitDialog(e){let{submit:t,submitClass:n="submit"}=e,o=r(e,ct);const i=this.makeCancelDialog(o);return ut(i,`button.${o.cancelClass||"cancel"}`).before(rt("button",{class:n,$on:{click(e){t&&t.call(this,{e:e,dialog:i})}}},[this.localeStrings.submit]),st.repeat(2)),i}makeCancelDialog(e){let{submit:t,cancel:n,cancelClass:o="cancel",submitClass:i="submit"}=e,a=r(e,lt);const s=this.makeDialog(a);return rt("div",{class:i},[["br"],["br"],["button",{class:o,$on:{click(e){e.preventDefault(),n&&!1===n.call(this,{e:e,dialog:s})||s.close()}}},[this.localeStrings.cancel]]],s),s}alert(e,t){e="string"==typeof e?{message:e}:e;const{ok:n=("object"==typeof t?!1!==t.ok:!1!==t),message:r,submitClass:o="submit"}=e;return new Promise(((e,t)=>{const i=rt("dialog",[r,...n?[["br"],["br"],["div",{class:o},[["button",{$on:{click(){i.close(),e()}}},[this.localeStrings.ok]]]]]:[]],ze("#main"));i.showModal()}))}prompt(e){e="string"==typeof e?{message:e}:e;const{message:n,submit:o}=e,i=r(e,ft);return new Promise(((e,r)=>{this.makeSubmitDialog(t(t({},i),{},{submit:function({e:t,dialog:n}){o&&o.call(this,{e:t,dialog:n}),n.close(),e(ut(n,"input").value)},cancel(){r(new Error("cancelled"))},children:[["label",[n,st.repeat(3),["input"]]]]}))}))}confirm(e){e="string"==typeof e?{message:e}:e;const{message:t,submitClass:n="submit"}=e;return new Promise(((e,r)=>{const o=rt("dialog",[t,["br"],["br"],["div",{class:n},[["button",{$on:{click(){o.close(),e()}}},[this.localeStrings.ok]],st.repeat(2),["button",{$on:{click(){o.close(),r(new Error("cancelled"))}}},[this.localeStrings.cancel]]]]],ze("#main"));o.showModal()}))}};class ht{constructor({langData:e}){this.langData=e}localeFromLangData(e){return this.langData["localization-strings"][e]}getLanguageFromCode(e){return this.localeFromLangData(e).languages[e]}getFieldNameFromPluginNameAndLocales({pluginName:e,locales:n,workI18n:r,targetLanguage:o,applicableFieldI18N:i,meta:a,metaApplicableField:s}){return r(["plugins",e,"fieldname"],t(t(t({},a),s),{},{applicableField:i,targetLanguage:o?this.getLanguageFromCode(o):""}),{throwOnExtraSuppliedFormatters:!1})}getLanguageInfo({$p:e}){const t=this.langData.languages,n=e=>!!t.some((({code:t})=>t===e))&&e,r=e.get("lang",!0),o=navigator.languages.filter(n),i=o.length?o:[n(navigator.language)||"en-US"];return{lang:[...(r||i[0]).split("."),...i],langs:t,languageParam:r,fallbackLanguages:i}}}var vt=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){function r(e){return(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)}var o=n(47),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t){function n(e){return(n="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)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(e){return(n="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)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(52),o=n(37),i=n(7);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(9),o=n(101),i=n(102),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),i=n(133),a=n(61),s=n(134),u=n(8),c=n(48),l=c(r),f=c(o),p=c(i),d=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t){function n(e){return(n="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)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){(function(e){function r(e){return(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)}var o=n(2),i=n(121),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?o.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;e.exports=c}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(90),o=n(91),i=n(92),a=n(93),s=n(94);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(30);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(8),o=n(5);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(4)(Object,"create");e.exports=r},function(e,t,n){var r=n(114);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(49),o=n(50);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},function(e,t,n){var r=n(120),o=n(3),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(122),o=n(35),i=n(36),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(65),o=n(150)(r);e.exports=o},function(e,t){e.exports=function(e){return e}},function(e,t,n){function r(e){return(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)}var o=n(154),i=n(164),a=n(25),s=n(0),u=n(173);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==r(e)?s(e)?i(e[0],e[1]):o(e):u(e)}},function(e,t,n){var r=n(44);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){function r(e){return(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)}var o=n(1);function i(e){this._isDirected=!o.has(e,"directed")||e.directed,this._isMultigraph=!!o.has(e,"multigraph")&&e.multigraph,this._isCompound=!!o.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=o.constant(void 0),this._defaultEdgeLabelFn=o.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function s(e,t){--e[t]||delete e[t]}function u(e,t,n,r){var i=""+t,a=""+n;if(!e&&i>a){var s=i;i=a,a=s}return i+""+a+""+(o.isUndefined(r)?"\0":r)}function c(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function l(e,t){return u(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return o.keys(this._nodes)},i.prototype.sources=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._in[t])}))},i.prototype.sinks=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._out[t])}))},i.prototype.setNodes=function(e,t){var n=arguments,r=this;return o.each(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this},i.prototype.setNode=function(e,t){return o.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return o.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(o.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],o.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),o.each(o.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],o.each(o.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(t))t="\0";else{for(var n=t+="";!o.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(o.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return o.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return o.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return o.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return o.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;o.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),o.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};return this._isCompound&&o.each(t.nodes(),(function(e){t.setParent(e,function e(o){var i=n.parent(o);return void 0===i||t.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))})),t},i.prototype.setDefaultEdgeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return o.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,r=arguments;return o.reduce(e,(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o})),this},i.prototype.setEdge=function(){var e,t,n,i,s=!1,l=arguments[0];"object"===r(l)&&null!==l&&"v"in l?(e=l.v,t=l.w,n=l.name,2===arguments.length&&(i=arguments[1],s=!0)):(e=l,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),e=""+e,t=""+t,o.isUndefined(n)||(n=""+n);var f=u(this._isDirected,e,t,n);if(o.has(this._edgeLabels,f))return s&&(this._edgeLabels[f]=i),this;if(!o.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[f]=s?i:this._defaultEdgeLabelFn(e,t,n);var p=c(this._isDirected,e,t,n);return e=p.v,t=p.w,Object.freeze(p),this._edgeObjs[f]=p,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][f]=p,this._out[e][f]=p,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return o.has(this._edgeLabels,r)},i.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],e),s(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.v===t})):r}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.w===t})):r}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(15),o=n(95),i=n(96),a=n(97),s=n(98),u=n(99);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),i=n(115),a=n(116),s=n(117);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(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)}var o=n(47),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,u=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(56),o=n(57),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(54)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(62);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){function r(e){return(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)}var o=n(0),i=n(44),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){function r(e){return(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)}var o=n(8),i=n(3);e.exports=function(e){return"symbol"==r(e)||i(e)&&"[object Symbol]"==o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(t){function n(e){return(n="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)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(11))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(50),o=n(30),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(51);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(4),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(119),o=n(21),i=n(0),a=n(12),s=n(53),u=n(22),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||h.push(g);return h}},function(e,t){function n(e){return(n="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)}var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(52),o=n(125),i=n(7);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(39),o=n(40),i=n(38),a=n(57),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(60),o=n(38),i=n(6);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(39),o=n(0);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(4)(n(2),"Set");e.exports=r},function(e,t,n){var r=n(2).Uint8Array;e.exports=r},function(e,t,n){var r=n(5),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(148),o=n(6);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(156),o=n(3);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(68),o=n(159),i=n(69);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var g=e[d],y=t[d];if(a)var m=c?a(y,g,d,t,e,u):a(g,y,d,e,t,u);if(void 0!==m){if(m)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||s(g,e,n,a,u)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!s(g,y,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(32),o=n(157),i=n(158);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(5);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(73),o=n(27);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(0),o=n(43),i=n(166),a=n(169);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(73),o=n(21),i=n(0),a=n(53),s=n(34),u=n(27);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1),o=n(77);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,s={},u=new o,c=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,u.decrease(t,c))};for(e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)}));u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(1);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach((function(a){r.has(o,a)||function a(s){var u=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(o,e)?o[e].onStack&&(u.lowlink=Math.min(u.lowlink,o[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,o[e].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),o[c].onStack=!1,l.push(c)}while(s!==c);i.push(l)}}(a)})),i}},function(e,t,n){var r=n(1);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))})),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(1);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){e(t,n,o,i,a,s)})),o&&s.push(n))}(e,t,"post"===n,a,o,i)})),i}},function(e,t,n){(function(t){var r=n(226),o=["delete","get","head","patch","post","put"];e.exports.load=function(e,n,i){var a,s,u=n.method?n.method.toLowerCase():"get";function c(e,n){e?i(e):("[object process]"===Object.prototype.toString.call(void 0!==t?t:0)&&"function"==typeof n.buffer&&n.buffer(!0),n.end((function(e,t){e?i(e):i(void 0,t)})))}if(void 0!==n.method?"string"!=typeof n.method?a=new TypeError("options.method must be a string"):-1===o.indexOf(n.method)&&(a=new TypeError("options.method must be one of the following: "+o.slice(0,o.length-1).join(", ")+" or "+o[o.length-1])):void 0!==n.prepareRequest&&"function"!=typeof n.prepareRequest&&(a=new TypeError("options.prepareRequest must be a function")),a)i(a);else if(s=r["delete"===u?"del":u](e),n.prepareRequest)try{n.prepareRequest(s,c)}catch(e){i(e)}else c(void 0,s)}}).call(this,n(13))},function(e,t,n){function r(e){return(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)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(r,o){var i,a,s,u;function c(e){return(c="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)}
|
|
1
|
+
function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}let i,a;function s(){}const u=(c=function(){return function(e){var t=e();if(t&&t.then)return t.then(s)}((function(){if(!i)return e=import("path"),t=function(e){({dirname:i}=e)},n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e);var e,t,n}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(c.apply(this,e))}catch(e){return Promise.reject(e)}});var c;function l(e){return t=i(new URL(e).pathname),a||(a="win32"===process.platform),t.slice(a?1:0);var t}function f(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}let p;function d(e,t){var n=e();return n&&n.then?n.then(t):t(n)}const h=function({baseURL:e,cwd:t}={}){const n="undefined"!=typeof window||"undefined"!=typeof self?"undefined"!=typeof window?window.fetch:self.fetch:function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}((function(n){let r=!1;return d((function(){if(/^https?:/u.test(n))return d((function(){if(!p)return f(import("node-fetch"),(function(e){p=e}))}),(function(){const e=p.default(n);return r=!0,e}))}),(function(o){return r?o:d((function(){if(!t)return function(e,t,n){if(n)return t?t(e()):e();try{var r=Promise.resolve(e());return t?r.then(t):r}catch(e){return Promise.reject(e)}}(u,(function(){t=e?l(e):"undefined"==typeof window&&process.cwd()}))}),(function(){return f(import("local-xmlhttprequest"),(function(e){const r=e.default({basePath:t});return new Promise(((e,t)=>{const o=new r;o.open("GET",n,!0),o.onreadystatechange=function(){if(4===o.readyState)if(200!==o.status)t(new SyntaxError("Failed to fetch URL: "+n+"state: "+o.readyState+"; status: "+o.status));else{const t=o.responseText;e({json:()=>JSON.parse(t)})}},o.send()}))}))}))}))})),r=function({fetch:e=("undefined"!=typeof window?window.fetch:self.fetch)}={}){return function t(n,r,i){try{let a=!1;return o(function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}((function(){if(Array.isArray(n))return o(Promise.all(n.map((e=>t(e)))),(function(e){return r&&r(...e),a=!0,e}))}),(function(t){return a?t:o(e(n),(function(e){return o(e.json(),(function(e){return"function"==typeof r?r(e):e}))}))}))}),(function(e){if(e.message+=` (File: ${n})`,i)return i(e,n);throw e})))}catch(e){return Promise.reject(e)}}}({fetch:n});return r._fetch=n,r.hasURLBasePath=Boolean(e),r.basePath=t,r}();function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return y="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},y(e)}function m(){m=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),E(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return S(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},m.apply(this,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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&&E(e,t)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function O(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(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 n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||I(e,t)||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.")}()}function P(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T=globalThis.jsonExtra,C=function(e){return e.replace(/\\+/g,(function(e){return e.slice(0,e.length/2)}))},D=function(e){return T.parse("{"+(e||"").replace(/^\{/,"").replace(/\}$/,"")+"}")},F=function(e,t,n){var r,o=n.onMatch,i=n.extra,a=n.betweenMatches,s=n.afterMatch,u=n.escapeAtOne,c=0;for(i&&(a=i,s=i,u=i);null!==(r=e.exec(t));){var l=A(r,2),f=l[0],p=l[1],d=e.lastIndex,h=d-f.length;h>c&&a(t.slice(c,h)),u&&p.length%2?(c=d,u(f)):(o.apply(void 0,P(r)),c=d)}c!==t.length&&s(t.slice(c))},L="undefined"!=typeof fetch?fetch:null,$=function(){return L},R="undefined"!=typeof document?document:null,U=function(){return R};var M=function(e,t,n){return t.sort(new Intl.Collator(e,n).compare)},z=function(e,t,n){return new Intl.ListFormat(e,n).format(t)},B=function(e,t,n,r,o){if("function"!=typeof n)return function(e,t,n,r){return M(e,t,r),z(e,t,n)}(e,t,n,r);M(e,t,o);var i,a=(i=Date.now(),"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.trunc((i+16*Math.random())%16);return i=Math.floor(i/16),("x"===e?t:3&t|8).toString(16)}))),s=P(t).map((function(e,t){return"<<".concat(a).concat(t,">>")})),u=[],c=function(){u.push.apply(u,arguments)};F(new RegExp("<<".concat(a,"(\\d)>>"),"gu"),z(e,s,r),{betweenMatches:c,afterMatch:c,onMatch:function(e,r){c(n(t[r],r))}});var l=U().createDocumentFragment();return l.append.apply(l,u),l},q=function(e){var t=e.object;if(Array.isArray(t)){if("function"==typeof t[1]){var n=A(t,4);return{value:n[0],callback:n[1],options:n[2],extraOpts:n[3]}}var r=A(t,3);return{value:r[0],options:r[1],extraOpts:r[2]}}return{value:t}},W=function(e){var t,n=e.value,r=e.arg;e.key;var o,i=e.locale;if("string"==typeof n||n&&"object"===y(n)&&"nodeType"in n)return n;var a=function(e){var t=e.type,n=e.options,i=void 0===n?o:n,a=e.checkArgOptions,s=void 0!==a&&a;if("string"==typeof r){var u=A(r.split("|"),3),c=u[0],l=u[1],f=u[2];"DATE"===c&&(c="DATETIME"),c===t&&(l?s&&!f||(i=g(g({},i),D(s&&f?f:l))):i={})}return i},s=!1;if(n&&"object"===y(n)&&!Array.isArray(n)){var u=Object.keys(n)[0];if(["number","date","datetime","dateRange","datetimeRange","relative","region","language","script","currency","list","plural"].includes(u)){var c,l,f=q({object:n[u]});switch(n=f.value,o=f.options,c=f.extraOpts,l=f.callback,u){case"date":case"datetime":s=!0;break;case"dateRange":case"datetimeRange":return(t=new Intl.DateTimeFormat(i,a({type:"DATERANGE",options:c}))).formatRange.apply(t,P([n,o].map((function(e){return"number"==typeof e?new Date(e):e}))));case"region":case"language":case"script":case"currency":return new Intl.DisplayNames(i,g(g({},a({type:u.toUpperCase()})),{},{type:u})).of(n);case"relative":var p=[o,c];return c=p[0],o=p[1],new Intl.RelativeTimeFormat(i,a({type:"RELATIVE"})).format(n,c);case"list":return l?B(i,n,l,a({type:"LIST"}),a({type:"LIST",options:c,checkArgOptions:!0})):B(i,n,a({type:"LIST"}),a({type:"LIST",options:c,checkArgOptions:!0}))}}}if(n&&("number"==typeof n&&(s||/^DATE(?:TIME)(?:\||$)/.test(r))&&(n=new Date(n)),"object"===y(n)&&"function"==typeof n.getTime))return new Intl.DateTimeFormat(i,a({type:"DATETIME"})).format(n);if(Array.isArray(n)){var d,h=n[2];return(d=new Intl.DateTimeFormat(i,a({type:"DATERANGE",options:h}))).formatRange.apply(d,P(n.slice(0,2).map((function(e){return"number"==typeof e?new Date(e):e}))))}if("number"==typeof n)return new Intl.NumberFormat(i,a({type:"NUMBER"})).format(n);throw new TypeError("Unknown formatter")},V=_((function e(){b(this,e)})),H=function(e){var t=e.key,n=e.body,r=e.type,o=e.messageStyle,i=se({messageStyle:void 0===o?"richNested":o})({body:n},t);if(!i)throw new Error("Key value not found for ".concat(r," key: (").concat(t,")"));return i.value},J=function(e){S(n,V);var t=k(n);function n(e){var r;return b(this,n),(r=t.call(this)).locals=e,r}return _(n,[{key:"getSubstitution",value:function(e){return H({key:e.slice(1),body:this.locals,type:"local"})}},{key:"isMatch",value:function(e){var t=e.slice(1).split("."),n=this.locals;return this.constructor.isMatchingKey(e)&&t.every((function(e){var t=e in n;return n=n[e],t}))}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("-")}}]),n}(),K=function(e){S(n,V);var t=k(n);function n(e){var r;return b(this,n),(r=t.call(this)).substitutions=e,r}return _(n,[{key:"isMatch",value:function(e){return this.constructor.isMatchingKey(e)&&e in this.substitutions}}],[{key:"isMatchingKey",value:function(e){return/^[0-9A-Z_a-z]/.test(e)}}]),n}(),G=function(e){S(n,V);var t=k(n);function n(e,r){var o,i=r.substitutions;return b(this,n),(o=t.call(this)).switches=e,o.substitutions=i,o}return _(n,[{key:"getSubstitution",value:function(e,t){var n,r,o=t.locale,i=t.usedKeys,a=t.arg,s=t.missingSuppliedFormatters,u=this.constructor.getKey(e).slice(1),c=A(this.getMatch(u),3),l=c[0],f=c[1],p=c[2];if(i.push(p),l&&l.includes("|")){var d=A(l.split("|"),3);n=d[1],r=d[2]}if(!f)return s({key:e,formatter:this}),"\\{"+e+"}";var h=function(e,t){var n=D(r);return new Intl.NumberFormat(o,g(g({},t),n)).format(e)},v=function(e,t){var n=D(r);return new Intl.PluralRules(o,g(g({},t),n)).select(e)},m=this.substitutions[p],b=m;if("number"==typeof m)switch(n){case"NUMBER":b=h(m);break;case"PLURAL":b=v(m);break;default:b=new Intl.PluralRules(o).select(m)}else if(m&&"object"===y(m)){var w=Object.keys(m)[0];if(["number","plural"].includes(w)){var _=q({object:m[w]}),x=_.value,S=_.options;if(n||(n=w.toUpperCase()),!(w.toUpperCase()===n))throw new TypeError('Expecting type "'.concat(n.toLowerCase(),'"; instead found "').concat(w,'".'));switch(n){case"NUMBER":b=h(x,S);break;case"PLURAL":b=v(x,S)}}}var j="richNested",E=function(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")};try{return H({messageStyle:j,key:b?E(b):a,body:f,type:"switch"})}catch(e){try{return H({messageStyle:j,key:"*"+E(b),body:f,type:"switch"})}catch(e){var O=Object.keys(f).find((function(e){return e.startsWith("*")}));if(!O)throw new Error("No defaults found for switch ".concat(u));return H({messageStyle:j,key:E(O),body:f,type:"switch"})}}}},{key:"isMatch",value:function(e){return e&&this.constructor.isMatchingKey(e)&&Boolean(this.getMatch(e.slice(1)).length)}},{key:"getMatch",value:function(e){var t=this,n=e.split(".");return n.reduce((function(r,o,i){if(i<n.length-1){if(!(o in r))throw new Error('Switch key "'.concat(o,'" not found (from "~').concat(e,'")'));return r[o]}var a=Object.entries(r).find((function(e){var n=A(e,1)[0];return o===t.constructor.getKey(n)}));return a?[].concat(P(a),[o]):[]}),this.switches)}}],[{key:"isMatchingKey",value:function(e){return e.startsWith("~")}},{key:"getKey",value:function(e){var t=e.match(/^(?:(?!\|)[\s\S])*/);return t&&t[0]}}]),n}();function Z(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function X(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function Y(e,t,n){if(!e.s){if(n instanceof Q){if(!n.s)return void(n.o=Y.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(Y.bind(null,e,t),Y.bind(null,e,2));e.s=t,e.v=n;var r=e.o;r&&r(e)}}var Q=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{Y(r,1,i(this.v))}catch(e){Y(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?Y(r,1,t?t(o):o):n?Y(r,1,n(o)):Y(r,2,o)}catch(e){Y(r,2,e)}},r},e}();function ee(e){return e instanceof Q&&1&e.s}function te(e,t,n){for(var r;;){var o=e();if(ee(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!ee(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!ee(a)){r=2;break}}}var s=new Q,u=Y.bind(null,s,2);return(0===r?o.then(l):1===r?i.then(c):a.then(f)).then(void 0,u),s;function c(r){i=r;do{if(t&&(a=t())&&a.then&&!ee(a))return void a.then(f).then(void 0,u);if(!(o=e())||ee(o)&&!o.v)return void Y(s,1,i);if(o.then)return void o.then(l).then(void 0,u);ee(i=n())&&(i=i.v)}while(!i||!i.then);i.then(c).then(void 0,u)}function l(e){e?(i=n())&&i.then?i.then(c).then(void 0,u):c(i):Y(s,1,i)}function f(){(o=e())?o.then?o.then(l).then(void 0,u):l(o):Y(s,1,i)}}function ne(e,t){return e&&e.then?e.then(t):t(e)}function re(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var oe=function(e,t){if("string"!=typeof e)throw new TypeError("`defaultLocaleResolver` expects a string `localesBasePath`.");if("string"!=typeof t)throw new TypeError("`defaultLocaleResolver` expects a string `locale`.");if(/[\.\/\\]/.test(t))throw new TypeError("Locales cannot use file-reserved characters, `.`, `/` or `\\`");return"".concat(e.replace(/\/$/,""),"/_locales/").concat(t,"/messages.json")},ie=function(e){var t=e.string,n=e.dom,r=e.usedKeys,o=e.substitutions,i=e.allSubstitutions,a=e.locale,s=e.locals,u=e.switches,c=e.maximumLocalNestingDepth,l=void 0===c?3:c,f=e.missingSuppliedFormatters,p=e.checkExtraSuppliedFormatters;if("number"!=typeof l)throw new TypeError("`maximumLocalNestingDepth` must be a number.");var d=function(){Object.entries(o).forEach((function(e){var t=A(e,2),n=t[0];"function"==typeof t[1]&&r.push(n)}))};d();var h=new J(s),v=new K(o),m=new G(u,{substitutions:o}),b=/(\\*)\{((?:(?:(?!\})[\s\S])|\\\})*?)(?:(\|)((?:(?!\})[\s\S])*))?\}/g;i&&(i=Array.isArray(i)?i:[i]);var w=function(e){var t,n=e.key,o=e.arg,s=e.substs;return h.constructor.isMatchingKey(n)?t=h.getSubstitution(n):m.constructor.isMatchingKey(n)?t=m.getSubstitution(n,{locale:a,usedKeys:r,arg:o,missingSuppliedFormatters:f}):"function"==typeof(t=s[n])&&(t=t({arg:o,key:n})),i?t=i.reduce((function(e,t){return t({value:e,arg:o,key:n,locale:a})}),t):o&&/^(?:NUMBER|DATE(?:TIME|RANGE|TIMERANGE)?|REGION|LANGUAGE|SCRIPT|CURRENCY|RELATIVE|LIST)(?:\||$)/.test(o)&&(t=W({value:t,arg:o,key:n,locale:a})),t},_=1,x=function(e){var t=e.substitution,n=e.ky,r=e.arg,i=e.processSubsts;if("string"==typeof t&&t.includes("{")){if(_++>l)throw new TypeError("Too much recursion in local variables.");if(h.constructor.isMatchingKey(n)){var a,s=o;r&&(a=D(r),s=g(g({},o),a)),t=i({str:t,substs:s,formatter:h}),a&&p({substitutions:a})}else m.constructor.isMatchingKey(n)&&(t=i({str:t}))}return t};if(!n){var S=!1,j=function e(t){var n=t.str,i=t.substs,a=void 0===i?o:i,s=t.formatter,u=void 0===s?v:s;return n.replace(b,(function(t,n,o,i,s){if(n.length%2)return t;if(f({key:o,formatter:u}))return t;var c=w({key:o,arg:s,substs:a});return c=x({substitution:c,ky:o,arg:s,processSubsts:e}),S=S||c&&"object"===y(c)&&"nodeType"in c,r.push(o),n+c}))}({str:t});if(!S)return p({substitutions:o}),r.length=0,d(),C(j);r.length=0,d()}_=1;var E=function e(t){var n=t.str,i=t.substs,a=void 0===i?o:i,s=t.formatter,u=void 0===s?v:s,c=[],l=new RegExp(b,"gu"),p=function(){c.push.apply(c,arguments)};return F(l,n,{extra:p,onMatch:function(t,n,o,i,s){if(f({key:o,formatter:u}))p(t);else{n.length&&p(n);var c=w({key:o,arg:s,substs:a});c=x({substitution:c,ky:o,arg:s,processSubsts:e}),Array.isArray(c)?p.apply(void 0,P(c)):c&&"object"===y(c)&&"nodeType"in c?p(c.cloneNode(!0)):p(c)}r.push(o)}}),c}({str:t});return p({substitutions:o}),r.length=0,E.map((function(e){return"string"==typeof e?C(e):e}))};function ae(e,t){if(Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))&&"string"==typeof t&&t.endsWith("Nested"))return e.map((function(e){return e.replace(m(/(\\+)/g,{backslashes:1}),"\\$<backslashes>").replace(/\./g,"\\.")})).join(".");if("string"!=typeof e)throw new TypeError("`key` is expected to be a string (or array of strings for nested style)");return e}var se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.messageStyle,n=void 0===t?"richNested":t;return"function"==typeof n?n:"richNested"===n?function(e,t){var n=e&&"object"===y(e)&&e.body,r=[],o=function(e){r.length||(r[0]=""),r[r.length-1]+=e};F(/(\\*)\./g,t,{extra:o,onMatch:function(e,t){o(t),r.push("")}});var i=r.map((function(e){return C(e)})),a=!1,s=n;return i.some((function(e,t,n){return!s||"object"!==y(s)||(t===n.length-1&&e in s&&s[e]&&"object"===y(s[e])&&"message"in s[e]&&"string"==typeof s[e].message&&(a={value:s[e].message,info:s[e]}),s=s[e],!1)})),a}:"rich"===n?function(e,t){var n=e&&"object"===y(e)&&e.body;return!!(n&&"object"===y(n)&&t in n&&n[t]&&"object"===y(n[t])&&"message"in n[t]&&"string"==typeof n[t].message)&&{value:n[t].message,info:n[t]}}:"plain"===n?function(e,t){var n=e&&"object"===y(e)&&e.body;return!!(n&&"object"===y(n)&&t in n&&n[t]&&"string"==typeof n[t])&&{value:n[t]}}:"plainNested"===n?function(e,t){var n=e&&"object"===y(e)&&e.body;if(n&&"object"===y(n)){var r=t.split(/(?<!\\)\./).reduce((function(e,t){return e&&e[t]?e[t]:null}),n);if(r&&"string"==typeof r)return{value:r}}return!1}:function(){throw new TypeError("Unknown `messageStyle` ".concat(n))}()},ue=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.message,r=t.defaults,o=t.messageStyle,i=t.messageForKey,a=void 0===i?se({messageStyle:o}):i,s=t.key;if("string"==typeof n)e=n;else if(!1===r||null==r)e=!1;else{if(!r||"object"!==y(r))throw new TypeError("Default locale strings must resolve to `false`, nullish, or an object!");(e=a(r,s))&&(e=e.value)}if(!1===e)throw new Error("Key value not found for key: (".concat(s,")"));return e},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.string,n=e.locale,r=e.locals,o=e.switches;e.maximumLocalNestingDepth;var i=e.allSubstitutions,a=void 0===i?[W]:i,s=e.insertNodes,u=void 0===s?ie:s,c=e.substitutions,l=void 0!==c&&c,f=e.dom,p=void 0!==f&&f,d=e.forceNodeReturn,h=void 0!==d&&d,v=e.throwOnMissingSuppliedFormatters,g=void 0===v||v,y=e.throwOnExtraSuppliedFormatters,m=void 0===y||y;if("string"!=typeof t)throw new TypeError("An options object with a `string` property set to a string must be provided for `getDOMForLocaleString`.");var b=function(e){var t=U();return h?t.createTextNode(e):e},w=[],_=function(e){var t=e.substitutions;m&&Object.keys(t).forEach((function(e){if(!w.includes(e))throw new Error("Extra formatting key: ".concat(e))}))},x=function(e){var t=e.key,n=e.formatter,r=n.isMatch(t);if(n.constructor.isMatchingKey(t)&&!r){if(g)throw new Error("Missing formatting key: ".concat(t));return!0}return!1};if(!l&&!a&&!g)return b(t);l||(l={});var S=u({string:t,dom:p,usedKeys:w,substitutions:l,allSubstitutions:a,locale:n,locals:r,switches:o,missingSuppliedFormatters:x,checkExtraSuppliedFormatters:_});if("string"==typeof S)return b(S);var j=U(),E=j.createDocumentFragment();return E.append.apply(E,P(S)),E};function le(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function fe(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(e){return Promise.reject(e)}}}var pe=function(e){if(!e.includes("-"))throw new Error("Locale not available");return e.replace(/\x2D(?:(?!\x2D)[\s\S])*$/,"")},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeResolver,o=e.localesBasePath,i=e.localeMatcher;return he({locales:t,defaultLocales:n,localeResolver:r,localesBasePath:o,localeMatcher:i})},he=fe((function(e){var t=fe((function(e){if("string"!=typeof e)throw new TypeError("Non-string locale type");var n=s(c,e);if("string"!=typeof n)throw new TypeError("`localeResolver` expected to resolve to (URL) string.");return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=$();return le(d?t(n,{method:"HEAD"}):t(n),(function(t){if(404===t.status)throw new Error("Trying again");return d?e:le(t.json(),(function(t){return{locale:e,strings:t}}))}))}),(function(n){if("SyntaxError"===n.name)throw n;return le(f(e),t)}))})),n=e.locales,r=void 0===n?"undefined"!=typeof intlDomLocale?[intlDomLocale]:"undefined"==typeof navigator?[]:navigator.languages:n,o=e.defaultLocales,i=void 0===o?["en-US"]:o,a=e.localeResolver,s=void 0===a?oe:a,u=e.localesBasePath,c=void 0===u?".":u,l=e.localeMatcher,f=void 0===l?"lookup":l,p=e.headOnly,d=void 0!==p&&p;if("lookup"===f)f=pe;else if("function"!=typeof f)throw new TypeError('`localeMatcher` must be "lookup" or a function!');return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Reached end of values array.";if(!Array.isArray(e))throw new TypeError("The `values` argument to `promiseChainForValues` must be an array.");if("function"!=typeof t)throw new TypeError("The `errBack` argument to `promiseChainForValues` must be a function.");return re((function(){var r,o,i=!1,a=Promise.reject(new Error("Intentionally reject so as to begin checking chain"));return ne(te((function(){return!i}),void 0,(function(){var s=e.shift();return X((function(){return Z(a,(function(e){r=e,i=!0}))}),(function(){if(o)throw new Error(n);e.length||(o=!0),a=t(s)}))})),(function(e){return r}))}))()}([].concat(P(r),P(i)),t,"No matching locale found for "+[].concat(P(r),P(i)).join(", "))}));function ve(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ge(e,t){var n=e();return n&&n.then?n.then(t):t(n)}var ye=function(e){var t=e.strings,n=e.resolvedLocale,r=e.messageStyle,o=void 0===r?"richNested":r,i=e.allSubstitutions,a=e.insertNodes,s=e.keyCheckerConverter,u=void 0===s?ae:s,c=e.defaults,l=e.substitutions,f=e.maximumLocalNestingDepth,p=e.dom,d=void 0!==p&&p,h=e.forceNodeReturn,v=void 0!==h&&h,m=e.throwOnMissingSuppliedFormatters,b=void 0===m||m,w=e.throwOnExtraSuppliedFormatters,_=void 0===w||w;if(!t||"object"!==y(t))throw new TypeError("Locale strings must be an object!");var x=se({messageStyle:o}),S=function(e,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=s.allSubstitutions,h=void 0===p?i:p,y=s.defaults,m=void 0===y?c:y,w=s.dom,S=void 0===w?d:w,j=s.forceNodeReturn,E=void 0===j?v:j,O=s.throwOnMissingSuppliedFormatters,k=void 0===O?b:O,A=s.throwOnExtraSuppliedFormatters,P=void 0===A?_:A;e=u(e,o);var I=x(t,e),N=ue({message:!(!I||"string"!=typeof I.value)&&I.value,defaults:m,messageForKey:x,key:e});return ce({string:N,locals:t.head&&t.head.locals,switches:t.head&&t.head.switches,locale:n,maximumLocalNestingDepth:f,allSubstitutions:h,insertNodes:a,substitutions:g(g({},l),r),dom:S,forceNodeReturn:E,throwOnMissingSuppliedFormatters:k,throwOnExtraSuppliedFormatters:P})};return S.resolvedLocale=n,S.strings=t,S.sort=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return M.apply(void 0,[n].concat(t))},S.sortList=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B.apply(void 0,[n].concat(t))},S.list=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return z.apply(void 0,[n].concat(t))},S},me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.locales,n=e.defaultLocales,r=e.localeStringFinder,o=void 0===r?de:r,i=e.localesBasePath,a=e.localeResolver,s=e.localeMatcher,u=e.messageStyle,c=e.allSubstitutions,l=e.insertNodes,f=e.keyCheckerConverter,p=e.defaults,d=e.substitutions,h=e.maximumLocalNestingDepth,v=e.dom,g=e.forceNodeReturn,y=e.throwOnMissingSuppliedFormatters,m=e.throwOnExtraSuppliedFormatters;try{return ve(o({locales:t,defaultLocales:n,localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){var t=e.strings,r=e.locale;return ge((function(){if(!p&&n)return ve(o({locales:n,defaultLocales:[],localeResolver:a,localesBasePath:i,localeMatcher:s}),(function(e){p=e.strings,e.locale===r&&(p=null)}))}),(function(){return ye({strings:t,resolvedLocale:r,messageStyle:u,allSubstitutions:c,insertNodes:l,keyCheckerConverter:f,defaults:p,substitutions:d,maximumLocalNestingDepth:h,dom:v,forceNodeReturn:g,throwOnMissingSuppliedFormatters:y,throwOnExtraSuppliedFormatters:m})}))}))}catch(e){return Promise.reject(e)}};function be(e,{before:t,after:n,favicon:r,canvas:o,image:i=!0,acceptErrors:a}={}){return e=Array.isArray(e)?e:[e],Promise.all(e.map((e=>function(e){let s={};Array.isArray(e)&&([e,s={}]=e);let{favicon:u=r}=s;const{before:c=t,after:l=n,canvas:f=o,image:p=i}=s;function d(){c?c.before(h):l?l.after(h):document.head.appendChild(h)}const h=document.createElement("link");return new Promise(((t,n)=>{let r=n;if(a&&(r="function"==typeof a?r=>{a({error:r,stylesheetURL:e,options:s,resolve:t,reject:n})}:t),e.endsWith(".css")?u=!1:e.endsWith(".ico")&&(u=!0),u){if(h.rel="shortcut icon",h.type="image/x-icon",!1===p)return h.href=e,d(),void t(h);const r=document.createElement("canvas");r.width=16,r.height=16;const o=r.getContext("2d"),i=document.createElement("img");return i.addEventListener("error",(e=>{n(e)})),i.addEventListener("load",(()=>{o.drawImage(i,0,0),h.href=f?r.toDataURL("image/x-icon"):e,d(),t(h)})),void(i.src=e)}h.rel="stylesheet",h.type="text/css",h.href=e,d(),h.addEventListener("error",(e=>{r(e)})),h.addEventListener("load",(()=>{t(h)}))}))}(e))))}function we(e){return we="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},we(e)}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||Se(e,t)||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.")}()}function xe(e){return function(e){if(Array.isArray(e))return je(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Se(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){if(e){if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ee=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i,ke=/(\[[^[\]]*])/g;function Ae(e,t){"object"!==we(t)?t={hash:Boolean(t)}:void 0===t.hash&&(t.hash=!0);var n=t.hash?{}:"",r=t.serializer||(t.hash?Ie:Ne),o=e&&e.elements?xe(e.elements):[],i=Object.create(null);return o.forEach((function(e){if((t.disabled||!e.disabled)&&e.name&&Oe.test(e.nodeName)&&!Ee.test(e.type)){var o=e.name,a=e.type,s=e.name,u=e.checked,c=e.value;if("checkbox"!==a&&"radio"!==a||u||(c=void 0),t.empty){if("checkbox"!==a||u||(c=""),"radio"===a&&(i[s]||u?u&&(i[s]=!0):i[s]=!1,void 0===c))return}else if(!c)return;if("select-multiple"===a){var l=!1;return xe(e.options).forEach((function(e){var i=t.empty&&!e.value,a=e.value||i;e.selected&&a&&(l=!0,n=t.hash&&"[]"!==o.slice(-2)?r(n,o+"[]",e.value):r(n,o,e.value))})),void(!l&&t.empty&&(n=r(n,o,"")))}n=r(n,o,c)}})),t.empty&&Object.entries(i).forEach((function(e){var t=_e(e,2),o=t[0];t[1]||(n=r(n,o,""))})),n}function Pe(e,t,n){if(0===t.length)return n;var r=t.shift(),o=r.match(/^\[(.+?)]$/);if("[]"===r)return e=e||[],Array.isArray(e)?e.push(Pe(null,t,n)):(e._values=e._values||[],e._values.push(Pe(null,t,n))),e;if(o){var i=o[1],a=Number(i);isNaN(a)?(e=e||{})[i]=Pe(e[i],t,n):(e=e||[])[a]=Pe(e[a],t,n)}else e[r]=Pe(e[r],t,n);return e}function Ie(e,t,n){if(t.match(ke)){Pe(e,function(e){var t=[],n=new RegExp(ke),r=/^([^[\]]*)/.exec(e);for(r[1]&&t.push(r[1]);null!==(r=n.exec(e));)t.push(r[1]);return t}(t),n)}else{var r=e[t];r?(Array.isArray(r)||(e[t]=[r]),e[t].push(n)):e[t]=n}return e}function Ne(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}function Te(e,t){Object.entries(t).forEach((function(t){var n=_e(t,2),r=n[0],o=n[1],i=e[r],a=!1;if(!i&&!(i=e.querySelector('[name="'.concat(r,'"]')))){if(!((i=e[r+"[]"])&&"object"===we(i)&&"length"in i||(i=e.querySelectorAll('[name="'.concat(r,'[]"]'))).length))throw new Error("Name not found ".concat(r));a=!0}var s=i.type;if("checkbox"===s&&(i.checked=""!==o),("radio"===s||i[0]&&"radio"===i[0].type)&&xe(e.querySelectorAll('[name="'.concat(r+(a?"[]":""),'"]'))).forEach((function(e){e.checked=o===e.value})),i[0]&&"select-multiple"===i[0].type)xe(i[0].options).forEach((function(e){o.includes(e.value)&&(e.selected=!0)}));else if(Array.isArray(o)){if("select-multiple"===s)return void xe(i.options).forEach((function(e){o.includes(e.value)&&(e.selected=!0)}));o.forEach((function(e,t){var n=i[t];if("checkbox"!==n.type)"select-multiple"!==n.type?n.value=e:xe(n.options).forEach((function(t){e.includes(t.value)&&(t.selected=!0)}));else{var r=n.value===e||"on"===e;n.checked=r}}))}else i.value=o}))}let Ce="undefined"!=typeof window&&window,De="undefined"!=typeof document&&document||Ce&&Ce.document;const Fe=["$plugins","$map"],Le="http://www.w3.org/1999/xhtml",$e=/-([a-z])/gu,Re={maxlength:"maxLength",minlength:"minLength",readonly:"readOnly"},Ue=["checked","defaultChecked","defaultSelected","disabled","indeterminate","open","readOnly","selected"].concat(["accessKey","async","autocapitalize","autofocus","contentEditable","defaultValue","defer","draggable","formnovalidate","hidden","innerText","inputMode","ismap","multiple","novalidate","pattern","required","spellcheck","translate","value","willvalidate"]),Me=["autocomplete","dir","integrity","lang","max","min","minLength","maxLength","title"],ze=e=>De.querySelector(e),Be=e=>[...De.querySelectorAll(e)];function qe(e){return e.nodeName&&e.nodeName.toLowerCase()}function We(e){if(De.createStyleSheet&&"style"===qe(e)){De.createStyleSheet().cssText=e.cssText}}function Ve(e,t){const n=qe(e);if(De.createStyleSheet){if("script"===n)return void(e.text=t.nodeValue);if("style"===n)return void(e.cssText=t.nodeValue)}if("template"!==n)try{e.append(t)}catch(r){const o=qe(t);if("select"===n&&"option"===o){try{e.add(t)}catch(n){e.add(t,null)}return}throw r}else e.content.append(t)}function He(e,t,n){if(!/^\w+$/u.test(n))throw new TypeError(`Bad ${e} reference; with prefix "${t}" and arg "${n}"`);const r=De.createElement("div");return r.innerHTML="&"+t+n+";",De.createTextNode(r.innerHTML)}function Je(e,t){return t.toUpperCase()}function Ke(e){return null==e}function Ge(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array";if("nodeType"in e)switch(e.nodeType){case 1:return"element";case 9:return"document";case 11:return"fragment";default:return"non-container node"}}return t}function Ze(e,t){return e.append(t),e}function Xe(e){return function(t){let n=e[""]?' xmlns="'+e[""]+'"':t;for(const[t,r]of Object.entries(e))""!==t&&(n+=" xmlns:"+t+'="'+r+'"');return n}}function Ye(e){return function(t,n){const r=e.childNodes[n],o=Array.isArray(t)?rt(...t):rt(t);r.replaceWith(o)}}function Qe(e){return function(t){Array.isArray(t)?e.append(rt(...t)):e.append(rt(t))}}function et(e){return function(t){"string"==typeof t?e.append(t):Array.isArray(t)?e.append(rt(...t)):e.append(rt(t))}}function tt(e,t,n,r){if(r.$state="attributeValue",n&&"object"==typeof n){const o=nt(r,Object.keys(n)[0]);if(o)return o.set({opts:r,element:e,attribute:{name:t,value:n}})}return n}function nt(e,t){return e.$plugins&&e.$plugins.find((e=>e.name===t))}const rt=function e(...t){let n=De.createDocumentFragment();function r(r){for(let[p,d]of Object.entries(r))if(p=p in Re?Re[p]:p,Me.includes(p))d=tt(n,p,d,a),Ke(d)||(n[p]=d);else if(Ue.includes(p))d=tt(n,p,d,a),n[p]=d;else switch(p){case"#":a.$state="fragmentChilden",o[o.length]=e(a,d);break;case"$shadow":{const{open:t,closed:r}=d;let{content:o,template:i}=d;const a=n.attachShadow({mode:r||!1===t?"closed":"open"});i?(Array.isArray(i)?i="object"===Ge(i[0])?e("template",...i,De.body):e("template",i,De.body):"string"==typeof i&&(i=ze(i)),e(i.content.cloneNode(!0),a)):(o||(o=t||r),o&&"boolean"!=typeof o&&(Array.isArray(o)?e({"#":o},a):e(o,a)));break}case"$state":case"is":case"xmlns":break;case"$custom":Object.assign(n,d);break;case"$define":{const e=n.localName.toLowerCase(),o=!e.includes("-");let i;if(o&&(i=n.getAttribute("is"),!i)){if(!{}.hasOwnProperty.call(r,"is"))throw new TypeError(`Expected \`is\` with \`$define\` on built-in; args: ${JSON.stringify(t)}`);r.is=tt(n,"is",r.is,a),n.setAttribute("is",r.is),({is:i}=r)}const s=o?i:e;if(window.customElements.get(s))break;const u=t=>{const n=l&&l.extends?De.createElement(l.extends).constructor:o?De.createElement(e).constructor:window.HTMLElement;return t?class extends n{constructor(){super(),t.call(this)}}:class extends n{}};let c,l,f;Array.isArray(d)?d.length<=2?([c,l]=d,"string"==typeof l?l={extends:l}:l&&!{}.hasOwnProperty.call(l,"extends")&&(f=l),"object"==typeof c&&(f=c,c=u())):([c,f,l]=d,"string"==typeof l&&(l={extends:l})):"function"==typeof d?c=d:(f=d,c=u()),c.toString().startsWith("class")||(c=u(c)),!l&&o&&(l={extends:e}),f&&Object.entries(f).forEach((([e,t])=>{c.prototype[e]=t})),window.customElements.define(s,c,"object"==typeof l?l:void 0);break}case"$symbol":{const[e,t]=d;if("function"==typeof t){const r=t.bind(n);"string"==typeof e?n[Symbol.for(e)]=r:n[e]=r}else{const r=t;r.elem=n,"string"==typeof e?n[Symbol.for(e)]=r:n[e]=r}break}case"$data":l(d);break;case"$attribute":{const e=3===d.length?De.createAttributeNS(d[0],d[1]):De.createAttribute(d[0]);e.value=d[d.length-1],o[o.length]=e;break}case"$text":{const e=De.createTextNode(d);o[o.length]=e;break}case"$document":{const t=De.implementation.createHTMLDocument();if(d.childNodes){const e=d.childNodes.length;for(;t.childNodes[e];){t.childNodes[e].remove()}d.childNodes.forEach(Ye(t))}else{if(d.$DOCTYPE){const n={$DOCTYPE:d.$DOCTYPE},r=e(n);t.firstChild.replaceWith(r)}const n=t.childNodes[1],r=n.childNodes[0],o=n.childNodes[1];if(d.title||d.head){const e=De.createElement("meta");e.setAttribute("charset","utf-8"),r.append(e),d.title&&(t.title=d.title),d.head&&d.head.forEach(Qe(r))}d.body&&d.body.forEach(et(o))}o[o.length]=t;break}case"$DOCTYPE":{const e=De.implementation.createDocumentType(d.name,d.publicId||"",d.systemId||"");o[o.length]=e;break}case"$on":for(let[e,r]of Object.entries(d||{})){if("function"==typeof r&&(r=[r,!1]),"function"!=typeof r[0])throw new TypeError(`Expect a function for \`$on\`; args: ${JSON.stringify(t)}`);s=n,u=e,c=r[0],f=r[1],s.addEventListener(u,c,Boolean(f))}break;case"className":case"class":d=tt(n,p,d,a),Ke(d)||(n.className=d);break;case"dataset":{const e=(t,r)=>{let o="";const i=""!==r;Object.keys(t).forEach((a=>{const s=t[a];if(o=i?r+a.replace($e,Je).replace(/^([a-z])/u,Je):r+a.replace($e,Je),null===s||"object"!=typeof s)return Ke(s)||(n.dataset[o]=s),void(o=r);e(s,o)}))};e(d,"");break}case"innerHTML":Ke(d)||(n.innerHTML=d);break;case"htmlFor":case"for":if("label"===i){d=tt(n,p,d,a),Ke(d)||(n.htmlFor=d);break}d=tt(n,p,d,a),n.setAttribute(p,d);break;default:{if(p.startsWith("on")){d=tt(n,p,d,a),n[p]=d;break}if("style"===p){if(d=tt(n,p,d,a),Ke(d))break;if("object"==typeof d){for(const[e,t]of Object.entries(d))Ke(t)||("float"===e?(n.style.cssFloat=t,n.style.styleFloat=t):n.style[e.replace($e,Je)]=t);break}n.setAttribute(p,d);break}const e=nt(a,p);if(e){e.set({opts:a,element:n,attribute:{name:p,value:d}});break}d=tt(n,p,d,a),n.setAttribute(p,d);break}}var s,u,c,f}const o=[];let i,a,s=!1;if("object"===Ge(t[0])&&Object.keys(t[0]).some((e=>Fe.includes(e)))){if(a=t[0],void 0===a.$state&&(s=!0,a.$state="root"),a.$map&&!a.$map.root&&!1!==a.$map.root&&(a.$map={root:a.$map}),"$plugins"in a){if(!Array.isArray(a.$plugins))throw new TypeError(`\`$plugins\` must be an array; args: ${JSON.stringify(t)}`);a.$plugins.forEach((e=>{if(!e||"object"!=typeof e)throw new TypeError(`Plugin must be an object; args: ${JSON.stringify(t)}`);if(!e.name||!e.name.startsWith("$_"))throw new TypeError(`Plugin object name must be present and begin with \`$_\`; args: ${JSON.stringify(t)}`);if("function"!=typeof e.set)throw new TypeError(`Plugin object must have a \`set\` method; args: ${JSON.stringify(t)}`)}))}t=t.slice(1)}else a={$state:void 0};const u=t.length,c=a.$map&&a.$map.root,l=e=>{let t,r;if(!0===e)[t,r]=c;else if(Array.isArray(e)){if("string"==typeof e[0])return void e.forEach((e=>{l(a.$map[e])}));t=e[0]||c[0],r=e[1]||c[1]}else/^\[object (?:Weak)?Map\]$/u.test([].toString.call(e))?(t=e,r=c[1]):(t=c[0],r=e);t.set(n,r)};for(let s=0;s<u;s++){let c=t[s];const l=Ge(c);switch(l){case"null":if(s===u-1)return We(o[0]),o.length<=1?o[0]:o.reduce(Ze,De.createDocumentFragment());throw new TypeError(`\`null\` values not allowed except as final Jamilih argument; index ${s} on args: ${JSON.stringify(t)}`);case"string":switch(c){case"!":o[o.length]=De.createComment(t[++s]);break;case"?":{c=t[++s];let e=t[++s];const n=e;if(n&&"object"==typeof n){e=[];for(const[t,r]of Object.entries(n))e.push(t+'="'+r.replace(/"/gu,""")+'"');e=e.join(" ")}try{o[o.length]=De.createProcessingInstruction(c,e)}catch(t){o[o.length]=De.createComment("?"+c+" "+e+"?")}break}case"&":o[o.length]=He("entity","",t[++s]);break;case"#":o[o.length]=He("decimal",c,String(t[++s]));break;case"#x":o[o.length]=He("hexadecimal",c,t[++s]);break;case"![":try{o[o.length]=De.createCDATASection(t[++s])}catch(e){o[o.length]=De.createTextNode(t[s])}break;case"":o[o.length]=n=De.createDocumentFragment(),a.$state="fragment";break;default:{i=c;const e=t[s+1];if("object"===Ge(e)&&e.is){const{is:t}=e;n=De.createElementNS?De.createElementNS(Le,i,{is:t}):De.createElement(i,{is:t})}else n=De.createElementNS?De.createElementNS(Le,i):De.createElement(i);a.$state="element",o[o.length]=n;break}}break;case"object":{const e=c;if(void 0!==e.xmlns){const t="object"==typeof e.xmlns?Xe(e.xmlns):' xmlns="'+e.xmlns+'"';n=o[o.length-1]=(new Ce.DOMParser).parseFromString((new Ce.XMLSerializer).serializeToString(n).replace(' xmlns="'+Le+'"',t),"application/xml").documentElement,a.$state="element"}r(e);break}case"document":case"fragment":case"element":if(0===s&&(n=c,a.$state="element"),s===u-1||s===u-2&&null===t[s+1]){const e=o.length;for(let t=0;t<e;t++)Ve(c,o[t]);We(o[0])}else o[o.length]=c;break;case"array":{const r=c,o=r.length;for(let i=0;i<o;i++){const o=r[i],s=typeof o;if(Ke(o))throw new TypeError(`Bad children (parent array: ${JSON.stringify(t)}; index ${i} of child: ${JSON.stringify(r)})`);switch(s){case"string":case"number":case"boolean":Ve(n,De.createTextNode(o));break;default:if(Array.isArray(o))a.$state="children",Ve(n,e(a,...o));else if(o["#"])a.$state="fragmentChildren",Ve(n,e(a,o["#"]));else{const e=tt(n,null,o,a);Ve(n,e)}}}break}default:throw new TypeError(`Unexpected type: ${l}; arg: ${c}; index ${s} on args: ${JSON.stringify(t)}`)}}const f=o[0]||n;return s&&a.$map&&a.$map.root&&l(!0),f};rt.toJML=function(e,{stringOutput:t=!1,reportInvalidState:n=!0,stripWhitespace:r=!1}={}){"string"==typeof e&&(e=(new Ce.DOMParser).parseFromString(e,"text/html"));const o=[];let i=o,a=0;function s(e){class t extends Error{constructor(e,t){super(e),this.name=t}}if(n){const n=new t(e,"INVALID_STATE_ERR");throw n.code=11,n}}function u(e){i[a]=e,a++}function c(){u([]),i=i[a-1],a=0}function l(e,t){i=i[a-1][e],a=0,t&&(i=i[t])}return function e(t,n){const o="nodeType"in t?t.nodeType:null;let f,p;function d(){f=i,p=a}function h(){i=f,a=p,a++}switch(n={...n},[2,3,4,7,8].includes(o)&&!/^([\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*$/u.test(t.nodeValue)&&s("Node has bad XML character value"),o){case 1:{d();const r=t.nodeName.toLowerCase();c(),u(r);const o={};let i=!1;n[t.prefix||""]!==t.namespaceURI&&(n[t.prefix||""]=t.namespaceURI,t.prefix?o["xmlns:"+t.prefix]=t.namespaceURI:t.namespaceURI?o.xmlns=t.namespaceURI:o.xmlns=null,i=!0),t.attributes.length?u([...t.attributes].reduce((function(e,t){return e[t.name]=t.value,e}),o)):i&&u(o);const{childNodes:a}=t;a.length&&(c(),[...a].forEach((function(t){e(t,n)}))),h();break}case void 0:case 2:u({$attribute:[t.namespaceURI,t.name,t.value]});break;case 3:if(r&&/^\s+$/u.test(t.nodeValue))return void u("");u(t.nodeValue);break;case 4:t.nodeValue.includes("]]>")&&s("CDATA cannot end with closing ]]>"),u(["![",t.nodeValue]);break;case 5:u(["&",t.nodeName]);break;case 7:/^xml$/iu.test(t.target)&&s('Processing instructions cannot be "xml".'),t.target.includes("?>")&&s("Processing instruction targets cannot include ?>"),t.target.includes(":")&&s('The processing instruction target cannot include ":"'),t.data.includes("?>")&&s("Processing instruction data cannot include ?>"),u(["?",t.target,t.data]);break;case 8:(t.nodeValue.includes("--")||t.nodeValue.length&&t.nodeValue.lastIndexOf("-")===t.nodeValue.length-1)&&s("Comments cannot include --"),u(["!",t.nodeValue]);break;case 9:{d();u({$document:{childNodes:[]}}),l("$document","childNodes");const{childNodes:r}=t;r.length||s("Documents must have a child node"),[...r].forEach((function(t){e(t,n)})),h();break}case 10:{d();const e={$DOCTYPE:{name:t.name}};/^(\u0020|\u000D|\u000A|[a-zA-Z0-9]|[-'()+,./:=?;!*#@$_%])*$/u.test(t.publicId)||s("A publicId must have valid characters."),function(e,t){t.systemId.includes('"')&&t.systemId.includes("'")&&s("systemId cannot have both single and double quotes.");const{publicId:n,systemId:r}=t;r&&(e.systemId=r),n&&(e.publicId=n)}(e.$DOCTYPE,t),u(e),h();break}case 11:{d(),u({"#":[]}),l("#");const{childNodes:r}=t;[...r].forEach((function(t){e(t,n)})),h();break}default:throw new TypeError("Not an XML type")}}(e,{}),t?JSON.stringify(o[0]):o[0]},rt.toJMLString=function(e,t){return rt.toJML(e,Object.assign(t||{},{stringOutput:!0}))},rt.toDOM=function(...e){return rt(...e)},rt.toHTML=function(...e){return rt(...e).outerHTML},rt.toDOMString=function(...e){return rt.toHTML(...e)},rt.toXML=function(...e){const t=rt(...e);return(new Ce.XMLSerializer).serializeToString(t)},rt.toXMLDOMString=function(...e){return rt.toXML(...e)};class ot extends Map{get(e){return e="string"==typeof e?ze(e):e,super.get.call(this,e)}set(e,t){return e="string"==typeof e?ze(e):e,super.set.call(this,e,t)}invoke(e,t,...n){return e="string"==typeof e?ze(e):e,this.get(e)[t](e,...n)}}class it extends WeakMap{get(e){return e="string"==typeof e?ze(e):e,super.get.call(this,e)}set(e,t){return e="string"==typeof e?ze(e):e,super.set.call(this,e,t)}invoke(e,t,...n){return e="string"==typeof e?ze(e):e,this.get(e)[t](e,...n)}}rt.Map=ot,rt.WeakMap=it,rt.weak=function(e,...t){const n=new it;return[n,rt({$map:[n,e]},...t)]},rt.strong=function(e,...t){const n=new ot;return[n,rt({$map:[n,e]},...t)]},rt.symbol=rt.sym=rt.for=function(e,t){return(e="string"==typeof e?ze(e):e)["symbol"==typeof t?t:Symbol.for(t)]},rt.command=function(e,t,n,...r){let o;return e="string"==typeof e?ze(e):e,["symbol","string"].includes(typeof t)?(o=rt.sym(e,t),"function"==typeof o?o(n,...r):o[n](...r)):(o=t.get(e),"function"==typeof o?o.call(e,n,...r):o[n](e,...r))},rt.setWindow=e=>{Ce=e,De=Ce.document,De&&De.body&&({body:at}=De)},rt.getWindow=()=>Ce;let at=De&&De.body;const st=" ",ut=(e,t)=>{var n;return(e="string"==typeof e?(n=e,document.querySelector(n)):e).querySelector(t)},ct=["submit","submitClass"],lt=["submit","cancel","cancelClass","submitClass"],ft=["message","submit"],pt={en:{submit:"Submit",cancel:"Cancel",ok:"Ok"}};const dt=new class{constructor({locale:e,localeObject:t}={}){this.setLocale({locale:e,localeObject:t})}setLocale({locale:e={},localeObject:n={}}){this.localeStrings=t(t(t({},pt.en),pt[e]),n)}makeDialog({atts:e={$on:null},children:t=[],close:n,remove:r=!0}){n&&(e.$on||(e.$on={}),e.$on.close||(e.$on.close=n));const o=rt("dialog",e,t,ze("#main"));return o.showModal(),r&&o.addEventListener("close",(()=>{o.remove()})),o}makeSubmitDialog(e){let{submit:t,submitClass:n="submit"}=e,o=r(e,ct);const i=this.makeCancelDialog(o);return ut(i,`button.${o.cancelClass||"cancel"}`).before(rt("button",{class:n,$on:{click(e){t&&t.call(this,{e:e,dialog:i})}}},[this.localeStrings.submit]),st.repeat(2)),i}makeCancelDialog(e){let{submit:t,cancel:n,cancelClass:o="cancel",submitClass:i="submit"}=e,a=r(e,lt);const s=this.makeDialog(a);return rt("div",{class:i},[["br"],["br"],["button",{class:o,$on:{click(e){e.preventDefault(),n&&!1===n.call(this,{e:e,dialog:s})||s.close()}}},[this.localeStrings.cancel]]],s),s}alert(e,t){e="string"==typeof e?{message:e}:e;const{ok:n=("object"==typeof t?!1!==t.ok:!1!==t),message:r,submitClass:o="submit"}=e;return new Promise(((e,t)=>{const i=rt("dialog",[r,...n?[["br"],["br"],["div",{class:o},[["button",{$on:{click(){i.close(),e()}}},[this.localeStrings.ok]]]]]:[]],ze("#main"));i.showModal()}))}prompt(e){e="string"==typeof e?{message:e}:e;const{message:n,submit:o}=e,i=r(e,ft);return new Promise(((e,r)=>{this.makeSubmitDialog(t(t({},i),{},{submit:function({e:t,dialog:n}){o&&o.call(this,{e:t,dialog:n}),n.close(),e(ut(n,"input").value)},cancel(){r(new Error("cancelled"))},children:[["label",[n,st.repeat(3),["input"]]]]}))}))}confirm(e){e="string"==typeof e?{message:e}:e;const{message:t,submitClass:n="submit"}=e;return new Promise(((e,r)=>{const o=rt("dialog",[t,["br"],["br"],["div",{class:n},[["button",{$on:{click(){o.close(),e()}}},[this.localeStrings.ok]],st.repeat(2),["button",{$on:{click(){o.close(),r(new Error("cancelled"))}}},[this.localeStrings.cancel]]]]],ze("#main"));o.showModal()}))}};class ht{constructor({langData:e}){this.langData=e}localeFromLangData(e){return this.langData["localization-strings"][e]}getLanguageFromCode(e){return this.localeFromLangData(e).languages[e]}getFieldNameFromPluginNameAndLocales({pluginName:e,locales:n,workI18n:r,targetLanguage:o,applicableFieldI18N:i,meta:a,metaApplicableField:s}){return r(["plugins",e,"fieldname"],t(t(t({},a),s),{},{applicableField:i,targetLanguage:o?this.getLanguageFromCode(o):""}),{throwOnExtraSuppliedFormatters:!1})}getLanguageInfo({$p:e}){const t=this.langData.languages,n=e=>!!t.some((({code:t})=>t===e))&&e,r=e.get("lang",!0),o=navigator.languages.filter(n),i=o.length?o:[n(navigator.language)||"en-US"];return{lang:[...(r||i[0]).split("."),...i],langs:t,languageParam:r,fallbackLanguages:i}}}var vt=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){function r(e){return(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)}var o=n(47),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t){function n(e){return(n="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)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(e){return(n="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)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(52),o=n(37),i=n(7);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(9),o=n(101),i=n(102),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),i=n(133),a=n(61),s=n(134),u=n(8),c=n(48),l=c(r),f=c(o),p=c(i),d=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t){function n(e){return(n="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)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){(function(e){function r(e){return(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)}var o=n(2),i=n(121),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?o.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;e.exports=c}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(90),o=n(91),i=n(92),a=n(93),s=n(94);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(30);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(8),o=n(5);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(4)(Object,"create");e.exports=r},function(e,t,n){var r=n(114);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(49),o=n(50);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},function(e,t,n){var r=n(120),o=n(3),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(122),o=n(35),i=n(36),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(65),o=n(150)(r);e.exports=o},function(e,t){e.exports=function(e){return e}},function(e,t,n){function r(e){return(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)}var o=n(154),i=n(164),a=n(25),s=n(0),u=n(173);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==r(e)?s(e)?i(e[0],e[1]):o(e):u(e)}},function(e,t,n){var r=n(44);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){function r(e){return(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)}var o=n(1);function i(e){this._isDirected=!o.has(e,"directed")||e.directed,this._isMultigraph=!!o.has(e,"multigraph")&&e.multigraph,this._isCompound=!!o.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=o.constant(void 0),this._defaultEdgeLabelFn=o.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function s(e,t){--e[t]||delete e[t]}function u(e,t,n,r){var i=""+t,a=""+n;if(!e&&i>a){var s=i;i=a,a=s}return i+""+a+""+(o.isUndefined(r)?"\0":r)}function c(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function l(e,t){return u(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return o.keys(this._nodes)},i.prototype.sources=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._in[t])}))},i.prototype.sinks=function(){var e=this;return o.filter(this.nodes(),(function(t){return o.isEmpty(e._out[t])}))},i.prototype.setNodes=function(e,t){var n=arguments,r=this;return o.each(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this},i.prototype.setNode=function(e,t){return o.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return o.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(o.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],o.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),o.each(o.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],o.each(o.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(t))t="\0";else{for(var n=t+="";!o.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(o.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return o.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return o.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return o.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return o.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;o.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),o.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};return this._isCompound&&o.each(t.nodes(),(function(e){t.setParent(e,function e(o){var i=n.parent(o);return void 0===i||t.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))})),t},i.prototype.setDefaultEdgeLabel=function(e){return o.isFunction(e)||(e=o.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return o.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,r=arguments;return o.reduce(e,(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o})),this},i.prototype.setEdge=function(){var e,t,n,i,s=!1,l=arguments[0];"object"===r(l)&&null!==l&&"v"in l?(e=l.v,t=l.w,n=l.name,2===arguments.length&&(i=arguments[1],s=!0)):(e=l,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),e=""+e,t=""+t,o.isUndefined(n)||(n=""+n);var f=u(this._isDirected,e,t,n);if(o.has(this._edgeLabels,f))return s&&(this._edgeLabels[f]=i),this;if(!o.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[f]=s?i:this._defaultEdgeLabelFn(e,t,n);var p=c(this._isDirected,e,t,n);return e=p.v,t=p.w,Object.freeze(p),this._edgeObjs[f]=p,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][f]=p,this._out[e][f]=p,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return o.has(this._edgeLabels,r)},i.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[t],e),s(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.v===t})):r}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=o.values(n);return t?o.filter(r,(function(e){return e.w===t})):r}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(15),o=n(95),i=n(96),a=n(97),s=n(98),u=n(99);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),i=n(115),a=n(116),s=n(117);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(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)}var o=n(47),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,u=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(56),o=n(57),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(54)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(62);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){function r(e){return(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)}var o=n(0),i=n(44),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){function r(e){return(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)}var o=n(8),i=n(3);e.exports=function(e){return"symbol"==r(e)||i(e)&&"[object Symbol]"==o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(t){function n(e){return(n="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)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(11))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(50),o=n(30),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(51);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(4),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(119),o=n(21),i=n(0),a=n(12),s=n(53),u=n(22),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||h.push(g);return h}},function(e,t){function n(e){return(n="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)}var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(52),o=n(125),i=n(7);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(39),o=n(40),i=n(38),a=n(57),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(60),o=n(38),i=n(6);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(39),o=n(0);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(4)(n(2),"Set");e.exports=r},function(e,t,n){var r=n(2).Uint8Array;e.exports=r},function(e,t,n){var r=n(5),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(148),o=n(6);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(156),o=n(3);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(68),o=n(159),i=n(69);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var d=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++d<l;){var g=e[d],y=t[d];if(a)var m=c?a(y,g,d,t,e,u):a(g,y,d,e,t,u);if(void 0!==m){if(m)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||s(g,e,n,a,u)))return v.push(t)}))){h=!1;break}}else if(g!==y&&!s(g,y,n,a,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(32),o=n(157),i=n(158);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(5);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(73),o=n(27);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(0),o=n(43),i=n(166),a=n(169);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(73),o=n(21),i=n(0),a=n(53),s=n(34),u=n(27);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1),o=n(77);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,s={},u=new o,c=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,u.decrease(t,c))};for(e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)}));u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(1);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach((function(a){r.has(o,a)||function a(s){var u=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(o,e)?o[e].onStack&&(u.lowlink=Math.min(u.lowlink,o[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,o[e].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),o[c].onStack=!1,l.push(c)}while(s!==c);i.push(l)}}(a)})),i}},function(e,t,n){var r=n(1);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))})),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(1);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),(function(n){e(t,n,o,i,a,s)})),o&&s.push(n))}(e,t,"post"===n,a,o,i)})),i}},function(e,t,n){(function(t){var r=n(226),o=["delete","get","head","patch","post","put"];e.exports.load=function(e,n,i){var a,s,u=n.method?n.method.toLowerCase():"get";function c(e,n){e?i(e):("[object process]"===Object.prototype.toString.call(void 0!==t?t:0)&&"function"==typeof n.buffer&&n.buffer(!0),n.end((function(e,t){e?i(e):i(void 0,t)})))}if(void 0!==n.method?"string"!=typeof n.method?a=new TypeError("options.method must be a string"):-1===o.indexOf(n.method)&&(a=new TypeError("options.method must be one of the following: "+o.slice(0,o.length-1).join(", ")+" or "+o[o.length-1])):void 0!==n.prepareRequest&&"function"!=typeof n.prepareRequest&&(a=new TypeError("options.prepareRequest must be a function")),a)i(a);else if(s=r["delete"===u?"del":u](e),n.prepareRequest)try{n.prepareRequest(s,c)}catch(e){i(e)}else c(void 0,s)}}).call(this,n(13))},function(e,t,n){function r(e){return(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)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(r,o){var i,a,s,u;function c(e){return(c="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)}
|
|
2
2
|
/*! Native Promise Only
|
|
3
3
|
v0.8.1 (c) Kyle Simpson
|
|
4
4
|
MIT License: http://getify.mit-license.org
|
package/files.json
CHANGED
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"id": "writings",
|
|
238
238
|
"name": {"localeKey": "writings"},
|
|
239
239
|
"directions": {"localeKey": "choosewritings_bahai_writingsdb"},
|
|
240
|
-
"schemaBaseDirectory": "data/writings/schemas",
|
|
241
|
-
"metadataBaseDirectory": "data/writings/metadata",
|
|
240
|
+
"schemaBaseDirectory": "node_modules/bahaiwritings/data/writings/schemas",
|
|
241
|
+
"metadataBaseDirectory": "node_modules/bahaiwritings/data/writings/metadata",
|
|
242
242
|
"files": [
|
|
243
243
|
{"name": "aqdas", "file": {"$ref": "node_modules/bahaiwritings/data/writings/aqdas.json"}, "schemaFile": "aqdas.jsonschema", "metadataFile": "aqdas.metadata"},
|
|
244
244
|
{"name": "bible", "file": {"$ref": "node_modules/bahaiwritings/data/writings/Bible.json"}, "schemaFile": "Bible.jsonschema", "metadataFile": "Bible.metadata"},
|
|
@@ -256,8 +256,8 @@
|
|
|
256
256
|
"id": "other-writings",
|
|
257
257
|
"name": {"localeKey": "other-writings"},
|
|
258
258
|
"directions": {"localeKey": "choosewritings_bahai_writingsotherdb"},
|
|
259
|
-
"schemaBaseDirectory": "data/other-works/schemas",
|
|
260
|
-
"metadataBaseDirectory": "data/other-works/metadata",
|
|
259
|
+
"schemaBaseDirectory": "node_modules/bahaiwritings/data/other-works/schemas",
|
|
260
|
+
"metadataBaseDirectory": "node_modules/bahaiwritings/data/other-works/metadata",
|
|
261
261
|
"files": [
|
|
262
262
|
{"name": "lights", "file": {"$ref": "node_modules/bahaiwritings/data/other-works/lights.json"}, "schemaFile": "lights.jsonschema", "metadataFile": "lights.metadata"}
|
|
263
263
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textbrowser",
|
|
3
|
-
"version": "0.47.0
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Multilinear text browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index-es.min.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"load-stylesheets": "0.10.0",
|
|
56
56
|
"node-fetch": "^2.6.6",
|
|
57
57
|
"rtl-detect": "1.0.4",
|
|
58
|
-
"simple-get-json": "^9.0.
|
|
58
|
+
"simple-get-json": "^9.0.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/eslint-parser": "^7.19.1",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"mocha": "^10.1.0",
|
|
94
94
|
"npm-run-all": "^4.1.5",
|
|
95
95
|
"open-cli": "^7.1.0",
|
|
96
|
-
"rollup": "^3.
|
|
96
|
+
"rollup": "^3.4.0",
|
|
97
97
|
"rollup-plugin-re": "^1.0.7",
|
|
98
98
|
"textbrowser-data-schemas": "^0.2.0"
|
|
99
99
|
}
|