Socket
Socket
Sign inDemoInstall

messageformat

Package Overview
Dependencies
4
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.5 to 2.0.0

lib/messageformat.js

2

example/i18n.js

@@ -61,2 +61,2 @@ var en = function (n, ord) {

}
});
});

@@ -8,2 +8,3 @@ var reserved = require('reserved-words');

* @class
* @private
* @param {MessageFormat} mf - A MessageFormat instance

@@ -10,0 +11,0 @@ * @property {object} locales - The locale identifiers that are used by the compiled functions

@@ -1,2 +0,3 @@

/**l
/**
* @classdesc
* Default number formatting functions in the style of ICU's

@@ -25,3 +26,5 @@ * {@link http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html simpleArg syntax}

*
* @namespace Formatters
* @class Formatters
* @private
* @hideconstructor
*/

@@ -28,0 +31,0 @@

@@ -9,2 +9,3 @@ var Compiler = require('./compiler');

* @class
* @private
* @param {MessageFormat} mf - A MessageFormat instance

@@ -49,3 +50,3 @@ */

* According to the ICU MessageFormat spec, `#` can only be used to replace a
* number input of a `plural` statement. By default, messageformat.js does not
* number input of a `plural` statement. By default, messageformat does not
* throw a runtime error if you use non-numeric argument with a `plural` rule,

@@ -52,0 +53,0 @@ * unless rule also includes a non-zero `offset`.

@@ -1,3 +0,2 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.MessageFormat=e()}}(function(){var e;return function e(t,r,n){function o(u,a){if(!r[u]){if(!t[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(i)return i(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var f=r[u]={exports:{}};t[u][0].call(f.exports,function(e){var r=t[u][1][e];return o(r||e)},f,f.exports,e,t,r,n)}return r[u].exports}for(var i="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(e,t,r){function n(e){this.mf=e,this.lc=null,this.locales={},this.runtime={},this.formatters={}}var o=e("reserved-words"),i=e("messageformat-parser").parse;t.exports=n,n.propname=function(e,t){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(e)&&["break","continue","delete","else","for","function","if","in","new","return","this","typeof","var","void","while","with","case","catch","default","do","finally","instanceof","switch","throw","try"].indexOf(e)<0)return t?t+"."+e:e;var r=JSON.stringify(e);return t?t+"["+r+"]":r},n.funcname=function(e){var t=e.trim().replace(/\W+/g,"_");return o.check(t,"es2015",!0)||/^\d/.test(t)?"_"+t:t},n.bidiMarkText=function(e,t){var r=JSON.stringify(function(e){var t=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"];return new RegExp("^"+t.join("|^")).test(e)}(t)?"‏":"‎");return r+" + "+e+" + "+r},n.prototype.cases=function(e,t){var r="select"===e.type||!this.mf.hasCustomPluralFuncs,o=e.cases.map(function(e){"other"===e.key&&(r=!1);var o=e.tokens.map(function(e){return this.token(e,t)},this);return n.propname(e.key)+": "+(o.join(" + ")||'""')},this);if(r)throw new Error("No 'other' form found in "+JSON.stringify(e));return"{ "+o.join(", ")+" }"},n.prototype.token=function(e,t){if("string"==typeof e)return JSON.stringify(e);var r,o=[n.propname(e.arg,"d")];switch(e.type){case"argument":return this.mf.bidiSupport?n.bidiMarkText(o[0],this.lc):o[0];case"select":r="select",o.push(this.cases(e,this.mf.strictNumberSign?null:t)),this.runtime.select=!0;break;case"selectordinal":r="plural",o.push(0,n.funcname(this.lc),this.cases(e,e),1),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"plural":r="plural",o.push(e.offset||0,n.funcname(this.lc),this.cases(e,e)),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"function":if(!(e.key in this.mf.fmt)&&e.key in this.mf.constructor.formatters){var i=this.mf.constructor.formatters[e.key];this.mf.fmt[e.key]=i(this.mf)}if(!this.mf.fmt[e.key])throw new Error("Formatting function "+JSON.stringify(e.key)+" not found!");o.push(JSON.stringify(this.lc)),"string"==typeof e.param&&o.push(JSON.stringify(e.param.trim())),r=n.propname(e.key,"fmt"),this.formatters[e.key]=!0;break;case"octothorpe":if(!t)return'"#"';r="number",o=[n.propname(t.arg,"d"),JSON.stringify(t.arg)],t.offset&&o.push(t.offset),this.runtime.number=!0}if(!r)throw new Error("Parser error for token "+JSON.stringify(e));return r+"("+o.join(", ")+")"},n.prototype.compile=function(e,t,r){if("object"!=typeof e){this.lc=t;var n=r[t]||{cardinal:[],ordinal:[]};n.strictNumberSign=!!this.mf.strictNumberSign;return"function(d) { return "+(i(e,n).map(function(e){return this.token(e)},this).join(" + ")||'""')+"; }"}var o={};for(var u in e){var a=r.hasOwnProperty(u)?u:t;o[u]=this.compile(e[u],a,r)}return o}},{"messageformat-parser":12,"reserved-words":14}],2:[function(e,t,r){function n(e,t,r){var n={day:"numeric",month:"short",year:"numeric"};switch(r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric"}return new Date(e).toLocaleDateString(t,n)}t.exports=function(){return n}},{}],3:[function(e,t,r){function n(e){if(!isFinite(e))return String(e);var t="";e<0?(t="-",e=Math.abs(e)):e=Number(e);var r=e%60,n=[Math.round(r)===r?r:r.toFixed(3)];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.shift()+":"+n.map(function(e){return e<10?"0"+String(e):String(e)}).join(":")}t.exports=function(){return n}},{}],4:[function(e,t,r){t.exports={date:e("./date"),duration:e("./duration"),number:e("./number"),time:e("./time")}},{"./date":2,"./duration":3,"./number":5,"./time":6}],5:[function(e,t,r){function n(e,t,r){var n=r&&r.split(":")||[],o={integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:n[1]&&n[1].trim()||CURRENCY,minimumFractionDigits:2,maximumFractionDigits:2}};return new Intl.NumberFormat(t,o[n[0]]||{}).format(e)}t.exports=function(e){var t=n.toString().replace("CURRENCY",JSON.stringify(e.currency||"USD")).match(/\(([^)]*)\)[^{]*{([\s\S]*)}/);return new Function(t[1],t[2])}},{}],6:[function(e,t,r){function n(e,t,r){var n={second:"numeric",minute:"numeric",hour:"numeric"};switch(r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}return new Date(e).toLocaleTimeString(t,n)}t.exports=function(){return n}},{}],7:[function(e,t,r){function n(t,r){for(var n=e("make-plural/umd/plurals"),o=e("make-plural/umd/pluralCategories"),i=t;i;i=i.replace(/[-_]?[^-_]*$/,"")){var u=n[i];if(u){var a=r?{cardinal:[],ordinal:[]}:o[i]||{},c=function(){return u.apply(this,arguments)};return c.toString=function(){return u.toString()},c.cardinal=a.cardinal,c.ordinal=a.ordinal,c}}throw new Error("Localisation function not found for locale "+JSON.stringify(t))}function o(e){if(this.pluralFuncs={},e)if("string"==typeof e)this.pluralFuncs[e]=n(e);else if(Array.isArray(e))e.forEach(function(e){this.pluralFuncs[e]=n(e)},this);else if("object"==typeof e){for(var t in e)if(e.hasOwnProperty(t)){if("function"!=typeof e[t])throw new Error("Expected function value for locale "+JSON.stringify(t));this.pluralFuncs[t]=e[t]}this.hasCustomPluralFuncs=!0}this.fmt={},this.runtime=new a(this)}var i=e("./compiler"),u=e("./formatters"),a=e("./runtime");o.defaultLocale="en",o.escape=function(e,t){const r=t?"[#{}]":"[{}]";return e.replace(new RegExp(r,"g"),"'$&'")},o.formatters=u,o.prototype.addFormatters=function(e){for(var t in e)e.hasOwnProperty(t)&&(this.fmt[t]=e[t]);return this},o.prototype.disablePluralKeyChecks=function(){this.noPluralKeyChecks=!0;for(var e in this.pluralFuncs)this.pluralFuncs.hasOwnProperty(e)&&(this.pluralFuncs[e].cardinal=[],this.pluralFuncs[e].ordinal=[]);return this},o.prototype.setBiDiSupport=function(e){return this.bidiSupport=!!e||void 0===e,this},o.prototype.setStrictNumberSign=function(e){return this.strictNumberSign=!!e||void 0===e,this.runtime.setStrictNumber(this.strictNumberSign),this},o.prototype.compile=function(e,t){function r(e,t){if(t||(t=0),"object"!=typeof e)return e;for(var n=[],o="",u=0;u<t;++u)o+=" ";for(var a in e)n.push("\n"+o+" "+i.propname(a)+": "+r(e[a],t+1));return"{"+n.join(",")+"\n"+o+"}"}var u;if(0==Object.keys(this.pluralFuncs).length)t||(t=o.defaultLocale),u={},u[t]=n(t,this.noPluralKeyChecks);else if(t){if(u={},u[t]=this.pluralFuncs[t],!u[t])throw new Error("Locale "+JSON.stringify(t)+"not found in "+JSON.stringify(this.pluralFuncs)+"!")}else u=this.pluralFuncs,t=Object.keys(u)[0];var a=new i(this),c=a.compile(e,t,u);if("object"!=typeof e){var s=new Function("number, plural, select, fmt",i.funcname(t),"return "+c),f=this.runtime;return s(f.number,f.plural,f.select,this.fmt,u[t])}var l=this.runtime.toString(u,a)+"\n",h=r(c),p=new Function(l+"return "+h)();if(p.hasOwnProperty("toString"))throw new Error("The top-level message key `toString` is reserved");return p.toString=function(e){switch(e||""){case"export default":return l+"export default "+h;case"":return l+"return "+h;default:return e.indexOf(".")>-1?l+e+" = "+h:l+["(function (root, G) {",' if (typeof define === "function" && define.amd) { define(G); }',' else if (typeof exports === "object") { module.exports = G; }'," else { "+i.propname(e,"root")+" = G; }","})(this, "+h+");"].join("\n")}},p},t.exports=o},{"./compiler":1,"./formatters":4,"./runtime":8,"make-plural/umd/pluralCategories":10,"make-plural/umd/plurals":11}],8:[function(e,t,r){function n(e){this.mf=e,this.setStrictNumber(e.strictNumberSign)}function o(e,t,r){if(!r)return e;if(isNaN(e))throw new Error("Can't apply offset:"+r+" to argument `"+t+"` with non-numerical value "+JSON.stringify(e)+".");return e-r}function i(e,t,r){if(isNaN(e))throw new Error("Argument `"+t+"` has non-numerical value "+JSON.stringify(e)+".");return e-(r||0)}var u=e("./compiler");t.exports=n,n.prototype.setStrictNumber=function(e){this.number=e?i:o},n.prototype.plural=function(e,t,r,n,o){if({}.hasOwnProperty.call(n,e))return n[e];t&&(e-=t);var i=r(e,o);return i in n?n[i]:n.other},n.prototype.select=function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},n.prototype.toString=function(e,t){function r(e,t){if("object"!=typeof e){var n=e.toString().replace(/^(function )\w*/,"$1"),o=/([ \t]*)\S.*$/.exec(n);return o?n.replace(new RegExp("^"+o[1],"mg"),""):n}var i=[];for(var a in e)0==t?i.push("var "+a+" = "+r(e[a],t+1)+";\n"):i.push(u.propname(a)+": "+r(e[a],t+1));if(0==t)return i.join("");if(0==i.length)return"{}";for(var o=" ";--t;)o+=" ";return"{\n"+i.join(",\n").replace(/^/gm,o)+"\n}"}var n={};Object.keys(t.locales).forEach(function(t){n[u.funcname(t)]=e[t]}),Object.keys(t.runtime).forEach(function(e){n[e]=this[e]},this);var o=Object.keys(t.formatters),i=this.mf.fmt;return o.length&&(n.fmt=o.reduce(function(e,t){return e[t]=i[t],e},{})),r(n,0)}},{"./compiler":1}],9:[function(e,t,r){(function(r){"use strict";function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function o(e){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}function i(e){return Object.prototype.toString.call(e)}function u(e){return!o(e)&&("function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function a(e){if(b.isFunction(e)){if(x)return e.name;var t=e.toString(),r=t.match(j);return r&&r[1]}}function c(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function s(e){if(x||!b.isFunction(e))return b.inspect(e);var t=a(e);return"[Function"+(t?": "+t:"")+"]"}function f(e){return c(s(e.actual),128)+" "+e.operator+" "+c(s(e.expected),128)}function l(e,t,r,n,o){throw new E.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:o})}function h(e,t){e||l(e,!0,t,"==",E.ok)}function p(e,t,r,a){if(e===t)return!0;if(o(e)&&o(t))return 0===n(e,t);if(b.isDate(e)&&b.isDate(t))return e.getTime()===t.getTime();if(b.isRegExp(e)&&b.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(u(e)&&u(t)&&i(e)===i(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===n(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;a=a||{actual:[],expected:[]};var c=a.actual.indexOf(e);return-1!==c&&c===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),m(e,t,r,a))}return r?e===t:e==t}function d(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function m(e,t,r,n){if(null===e||void 0===e||null===t||void 0===t)return!1;if(b.isPrimitive(e)||b.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=d(e),i=d(t);if(o&&!i||!o&&i)return!1;if(o)return e=k.call(e),t=k.call(t),p(e,t,r);var u,a,c=A(e),s=A(t);if(c.length!==s.length)return!1;for(c.sort(),s.sort(),a=c.length-1;a>=0;a--)if(c[a]!==s[a])return!1;for(a=c.length-1;a>=0;a--)if(u=c[a],!p(e[u],t[u],r,n))return!1;return!0}function g(e,t,r){p(e,t,!0)&&l(e,t,r,"notDeepStrictEqual",g)}function y(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e){var t;try{e()}catch(e){t=e}return t}function v(e,t,r,n){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),o=w(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!o&&l(o,r,"Missing expected exception"+n);var i="string"==typeof n,u=!e&&b.isError(o),a=!e&&o&&!r;if((u&&i&&y(o,r)||a)&&l(o,r,"Got unwanted exception"+n),e&&o&&r&&!y(o,r)||!e&&o)throw o}var b=e("util/"),S=Object.prototype.hasOwnProperty,k=Array.prototype.slice,x=function(){return"foo"===function(){}.name}(),E=t.exports=h,j=/\s*function\s+([^\(\s]*)\s*/;E.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=f(this),this.generatedMessage=!0);var t=e.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,o=a(t),i=n.indexOf("\n"+o);if(i>=0){var u=n.indexOf("\n",i+1);n=n.substring(u+1)}this.stack=n}}},b.inherits(E.AssertionError,Error),E.fail=l,E.ok=h,E.equal=function(e,t,r){e!=t&&l(e,t,r,"==",E.equal)},E.notEqual=function(e,t,r){e==t&&l(e,t,r,"!=",E.notEqual)},E.deepEqual=function(e,t,r){p(e,t,!1)||l(e,t,r,"deepEqual",E.deepEqual)},E.deepStrictEqual=function(e,t,r){p(e,t,!0)||l(e,t,r,"deepStrictEqual",E.deepStrictEqual)},E.notDeepEqual=function(e,t,r){p(e,t,!1)&&l(e,t,r,"notDeepEqual",E.notDeepEqual)},E.notDeepStrictEqual=g,E.strictEqual=function(e,t,r){e!==t&&l(e,t,r,"===",E.strictEqual)},E.notStrictEqual=function(e,t,r){e===t&&l(e,t,r,"!==",E.notStrictEqual)},E.throws=function(e,t,r){v(!0,e,t,r)},E.doesNotThrow=function(e,t,r){v(!1,e,t,r)},E.ifError=function(e){if(e)throw e};var A=Object.keys||function(e){var t=[];for(var r in e)S.call(e,r)&&t.push(r);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":18}],10:[function(t,r,n){var o=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];!function(t,o){"function"==typeof e&&e.amd?e(o):"object"==typeof n?r.exports=o:t.pluralCategories=o}(this,{af:o[1],ak:o[1],am:o[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},ars:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:o[1],ast:o[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:o[1],bez:o[1],bg:o[1],bh:o[1],bm:o[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:o[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:o[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:o[1],cgg:o[1],chr:o[1],ckb:o[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:o[1],de:o[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:o[1],dz:o[0],ee:o[1],el:o[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:o[1],es:o[1],et:o[1],eu:o[1],fa:o[1],ff:o[1],fi:o[1],fil:o[2],fo:o[1],fr:o[2],fur:o[1],fy:o[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["other"]},gl:o[1],gsw:o[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:o[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:o[1],haw:o[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:o[2],hy:o[2],id:o[0],ig:o[0],ii:o[0],in:o[0],io:o[1],is:o[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:o[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:o[0],jbo:o[0],jgo:o[1],ji:o[1],jmc:o[1],jv:o[0],jw:o[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:o[1],kaj:o[1],kcg:o[1],kde:o[0],kea:o[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:o[1],kl:o[1],km:o[0],kn:o[1],ko:o[0],ks:o[1],ksb:o[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:o[1],kw:o[3],ky:o[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:o[1],lg:o[1],lkt:o[0],ln:o[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:o[1],mg:o[1],mgo:o[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:o[1],mn:o[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:o[0],nah:o[1],naq:o[3],nb:o[1],nd:o[1],ne:o[2],nl:o[1],nn:o[1],nnh:o[1],no:o[1],nqo:o[0],nr:o[1],nso:o[1],ny:o[1],nyn:o[1],om:o[1],or:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},os:o[1],pa:o[1],pap:o[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:o[1],pt:o[1],"pt-PT":o[1],rm:o[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:o[1],root:o[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:o[1],sah:o[0],saq:o[1],sd:o[1],sdh:o[1],se:o[3],seh:o[1],ses:o[0],sg:o[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:o[1],sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:o[3],smi:o[3],smj:o[3],smn:o[3],sms:o[3],sn:o[1],so:o[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:o[1],ssy:o[1],st:o[1],sv:o[2],sw:o[1],syr:o[1],ta:o[1],te:o[1],teo:o[1],th:o[0],ti:o[1],tig:o[1],tk:{cardinal:["one","other"],ordinal:["few","other"]},tl:o[2],tn:o[1],to:o[0],tr:o[1],ts:o[1],tzm:o[1],ug:o[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:o[1],uz:o[1],ve:o[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:o[1],vun:o[1],wa:o[1],wae:o[1],wo:o[0],xh:o[1],xog:o[1],yi:o[1],yo:o[0],yue:o[0],zh:o[0],zu:o[1]})},{}],11:[function(t,r,n){var o=[function(e,t){return"other"},function(e,t){return t?"other":1==e?"one":"other"},function(e,t){return t?"other":0==e||1==e?"one":"other"},function(e,t){var r=String(e).split("."),n=!r[1];return t?"other":1==e&&n?"one":"other"}];!function(t,o){"function"==typeof e&&e.amd?e(o):"object"==typeof n?r.exports=o:t.plurals=o}(this,{af:o[1],ak:o[2],am:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ar:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},ars:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},as:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},asa:o[1],ast:o[3],az:function(e,t){var r=String(e).split("."),n=r[0],o=n.slice(-1),i=n.slice(-2),u=n.slice(-3);return t?1==o||2==o||5==o||7==o||8==o||20==i||50==i||70==i||80==i?"one":3==o||4==o||100==u||200==u||300==u||400==u||500==u||600==u||700==u||800==u||900==u?"few":0==n||6==o||40==i||60==i||90==i?"many":"other":1==e?"one":"other"},be:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":o>=2&&o<=4&&(i<12||i>14)?"few":n&&0==o||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},bem:o[1],bez:o[1],bg:o[1],bh:o[2],bm:o[0],bn:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},bo:o[0],br:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2),u=n&&r[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&n&&0==u?"many":"other"},brx:o[1],bs:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&u>=2&&u<=4&&(a<12||a>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},ca:function(e,t){var r=String(e).split("."),n=!r[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&n?"one":"other"},ce:o[1],cgg:o[1],chr:o[1],ckb:o[1],cs:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1];return t?"other":1==e&&o?"one":n>=2&&n<=4&&o?"few":o?"other":"many"},cy:function(e,t){return t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e,t){var r=String(e).split("."),n=r[0],o=Number(r[0])==e;return t?"other":1!=e&&(o||0!=n&&1!=n)?"other":"one"},de:o[3],dsb:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-2),a=o.slice(-2);return t?"other":i&&1==u||1==a?"one":i&&2==u||2==a?"two":i&&(3==u||4==u)||3==a||4==a?"few":"other"},dv:o[1],dz:o[0],ee:o[1],el:o[1],en:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),u=o&&r[0].slice(-2);return t?1==i&&11!=u?"one":2==i&&12!=u?"two":3==i&&13!=u?"few":"other":1==e&&n?"one":"other"},eo:o[1],es:o[1],et:o[3],eu:o[1],fa:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ff:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},fi:o[3],fil:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=u&&6!=u&&9!=u||!i&&4!=a&&6!=a&&9!=a?"one":"other"},fo:o[1],fr:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},fur:o[1],fy:o[3],ga:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},gl:o[3],gsw:o[1],gu:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},guw:o[2],gv:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-1),u=n.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=u&&20!=u&&40!=u&&60!=u&&80!=u?o?"other":"many":"few"},ha:o[1],haw:o[1],he:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=Number(r[0])==e,u=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||e>10)&&i&&0==u?"many":"other"},hi:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},hr:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&u>=2&&u<=4&&(a<12||a>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},hsb:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-2),a=o.slice(-2);return t?"other":i&&1==u||1==a?"one":i&&2==u||2==a?"two":i&&(3==u||4==u)||3==a||4==a?"few":"other"},hu:function(e,t){return t?1==e||5==e?"one":"other":1==e?"one":"other"},hy:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},id:o[0],ig:o[0],ii:o[0],in:o[0],io:o[3],is:function(e,t){var r=String(e).split("."),n=r[0],o=Number(r[0])==e,i=n.slice(-1),u=n.slice(-2);return t?"other":o&&1==i&&11!=u||!o?"one":"other"},it:function(e,t){var r=String(e).split("."),n=!r[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},iu:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},iw:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=Number(r[0])==e,u=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||e>10)&&i&&0==u?"many":"other"},ja:o[0],jbo:o[0],jgo:o[1],ji:o[3],jmc:o[1],jv:o[0],jw:o[0],ka:function(e,t){var r=String(e).split("."),n=r[0],o=n.slice(-2);return t?1==n?"one":0==n||o>=2&&o<=20||40==o||60==o||80==o?"many":"other":1==e?"one":"other"},kab:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},kaj:o[1],kcg:o[1],kde:o[0],kea:o[0],kk:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1);return t?6==o||9==o||n&&0==o&&0!=e?"many":"other":1==e?"one":"other"},kkj:o[1],kl:o[1],km:o[0],kn:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ko:o[0],ks:o[1],ksb:o[1],ksh:function(e,t){return t?"other":0==e?"zero":1==e?"one":"other"},ku:o[1],kw:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},ky:o[1],lag:function(e,t){var r=String(e).split("."),n=r[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},lb:o[1],lg:o[1],lkt:o[0],ln:o[2],lo:function(e,t){return t&&1==e?"one":"other"},lt:function(e,t){var r=String(e).split("."),n=r[1]||"",o=Number(r[0])==e,i=o&&r[0].slice(-1),u=o&&r[0].slice(-2);return t?"other":1==i&&(u<11||u>19)?"one":i>=2&&i<=9&&(u<11||u>19)?"few":0!=n?"many":"other"},lv:function(e,t){var r=String(e).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==e,u=i&&r[0].slice(-1),a=i&&r[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return t?"other":i&&0==u||a>=11&&a<=19||2==o&&c>=11&&c<=19?"zero":1==u&&11!=a||2==o&&1==s&&11!=c||2!=o&&1==s?"one":"other"},mas:o[1],mg:o[2],mgo:o[1],mk:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1);return t?1==u&&11!=a?"one":2==u&&12!=a?"two":7!=u&&8!=u||17==a||18==a?"other":"many":i&&1==u||1==c?"one":"other"},ml:o[1],mn:o[1],mo:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},mr:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":e>=0&&e<=1?"one":"other"},ms:function(e,t){return t&&1==e?"one":"other"},mt:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-2);return t?"other":1==e?"one":0==e||o>=2&&o<=10?"few":o>=11&&o<=19?"many":"other"},my:o[0],nah:o[1],naq:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},nb:o[1],nd:o[1],ne:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?n&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:o[3],nn:o[1],nnh:o[1],no:o[1],nqo:o[0],nr:o[1],nso:o[2],ny:o[1],nyn:o[1],om:o[1],or:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?1==e||5==e||n&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},os:o[1],pa:o[2],pap:o[1],pl:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-1),u=n.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(u<12||u>14)?"few":o&&1!=n&&(0==i||1==i)||o&&i>=5&&i<=9||o&&u>=12&&u<=14?"many":"other"},prg:function(e,t){var r=String(e).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==e,u=i&&r[0].slice(-1),a=i&&r[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return t?"other":i&&0==u||a>=11&&a<=19||2==o&&c>=11&&c<=19?"zero":1==u&&11!=a||2==o&&1==s&&11!=c||2!=o&&1==s?"one":"other"},ps:o[1],pt:function(e,t){var r=String(e).split("."),n=r[0];return t?"other":0==n||1==n?"one":"other"},"pt-PT":o[3],rm:o[1],ro:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&i>=1&&i<=19?"few":"other"},rof:o[1],root:o[0],ru:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-1),u=n.slice(-2);return t?"other":o&&1==i&&11!=u?"one":o&&i>=2&&i<=4&&(u<12||u>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&u>=11&&u<=14?"many":"other"},rwk:o[1],sah:o[0],saq:o[1],sd:o[1],sdh:o[1],se:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},seh:o[1],ses:o[0],sg:o[0],sh:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&u>=2&&u<=4&&(a<12||a>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},shi:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":e>=0&&e<=1?"one":n&&e>=2&&e<=10?"few":"other"},si:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"";return t?"other":0==e||1==e||0==n&&1==o?"one":"other"},sk:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1];return t?"other":1==e&&o?"one":n>=2&&n<=4&&o?"few":o?"other":"many"},sl:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},sma:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smi:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smj:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smn:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sms:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sn:o[1],so:o[1],sq:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},sr:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&u>=2&&u<=4&&(a<12||a>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},ss:o[1],ssy:o[1],st:o[1],sv:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),u=o&&r[0].slice(-2);return t?1!=i&&2!=i||11==u||12==u?"other":"one":1==e&&n?"one":"other"},sw:o[3],syr:o[1],ta:o[1],te:o[1],teo:o[1],th:o[0],ti:o[2],tig:o[1],tk:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1);return t?6==o||9==o||10==e?"few":"other":1==e?"one":"other"},tl:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=u&&6!=u&&9!=u||!i&&4!=a&&6!=a&&9!=a?"one":"other"},tn:o[1],to:o[0],tr:o[1],ts:o[1],tzm:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":0==e||1==e||n&&e>=11&&e<=99?"one":"other"},ug:o[1],uk:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=Number(r[0])==e,u=i&&r[0].slice(-1),a=i&&r[0].slice(-2),c=n.slice(-1),s=n.slice(-2);return t?3==u&&13!=a?"few":"other":o&&1==c&&11!=s?"one":o&&c>=2&&c<=4&&(s<12||s>14)?"few":o&&0==c||o&&c>=5&&c<=9||o&&s>=11&&s<=14?"many":"other"},ur:o[3],uz:o[1],ve:o[1],vi:function(e,t){return t&&1==e?"one":"other"},vo:o[1],vun:o[1],wa:o[2],wae:o[1],wo:o[0],xh:o[1],xog:o[1],yi:o[3],yo:o[0],yue:o[0],zh:o[0],zu:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"}})},{}],12:[function(e,t,r){"use strict";function n(e,t,r,o){this.message=e,this.expected=t,this.found=r,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}function o(e,t){function r(e,t){return{type:"literal",text:e,ignoreCase:t}}function o(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function i(e){return{type:"other",description:e}}function u(t){var r,n=Ge[t];if(n)return n;for(r=t-1;!Ge[r];)r--;for(n=Ge[r],n={line:n.line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Ge[t]=n,n}
function a(e,t){var r=u(e),n=u(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function c(e){$e<Ie||($e>Ie&&(Ie=$e,He=[]),He.push(e))}function s(e,t,r){return new n(n.buildMessage(e,t),e,t,r)}function f(){var e,t;for(e=[],t=l();t!==D;)e.push(t),t=l();return e}function l(){var t,r,n;if((t=h())===D&&(t=p())===D&&(t=d())===D&&(t=m())===D&&(t=$e,35===e.charCodeAt($e)?(r=P,$e++):(r=D,0===Ze&&c(B)),r!==D?(Le=$e,n=J(),n=n?void 0:D,n!==D?(Le=t,r=R(),t=r):($e=t,t=D)):($e=t,t=D),t===D)){if(t=$e,r=[],(n=O())!==D)for(;n!==D;)r.push(n),n=O();else r=D;r!==D&&(Le=t,r=M(r)),t=r}return t}function h(){var t,r,n,o,i,u;return t=$e,123===e.charCodeAt($e)?(r=_,$e++):(r=D,0===Ze&&c(U)),r!==D?(n=z(),n!==D?(o=g(),o!==D?(i=z(),i!==D?(125===e.charCodeAt($e)?(u=$,$e++):(u=D,0===Ze&&c(L)),u!==D?(Le=t,r=G(o),t=r):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D),t}function p(){var t,r,n,o,i,u,a,s,f,l;if(t=$e,123===e.charCodeAt($e)?(r=_,$e++):(r=D,0===Ze&&c(U)),r!==D)if(z()!==D)if((n=g())!==D)if(z()!==D)if(44===e.charCodeAt($e)?(o=I,$e++):(o=D,0===Ze&&c(H)),o!==D)if(z()!==D)if(i=$e,e.substr($e,6)===Z?(u=Z,$e+=6):(u=D,0===Ze&&c(K)),u!==D&&(Le=i,u=V(n,u)),(i=u)!==D)if((u=z())!==D)if(44===e.charCodeAt($e)?(a=I,$e++):(a=D,0===Ze&&c(H)),a!==D)if(z()!==D){if(s=[],(f=y())!==D)for(;f!==D;)s.push(f),f=y();else s=D;s!==D?(f=z(),f!==D?(125===e.charCodeAt($e)?(l=$,$e++):(l=D,0===Ze&&c(L)),l!==D?(Le=t,r=Y(n,s),t=r):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)}else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;return t}function d(){var t,r,n,o,i,u,a,s,f,l,h;if(t=$e,123===e.charCodeAt($e)?(r=_,$e++):(r=D,0===Ze&&c(U)),r!==D)if(z()!==D)if((n=g())!==D)if(z()!==D)if(44===e.charCodeAt($e)?(o=I,$e++):(o=D,0===Ze&&c(H)),o!==D)if(z()!==D)if(i=$e,e.substr($e,6)===W?(u=W,$e+=6):(u=D,0===Ze&&c(Q)),u===D&&(e.substr($e,13)===X?(u=X,$e+=13):(u=D,0===Ze&&c(ee))),u!==D&&(Le=i,u=te(n,u)),(i=u)!==D)if((u=z())!==D)if(44===e.charCodeAt($e)?(a=I,$e++):(a=D,0===Ze&&c(H)),a!==D)if(z()!==D)if(s=b(),s===D&&(s=null),s!==D){if(f=[],(l=w())!==D)for(;l!==D;)f.push(l),l=w();else f=D;f!==D?(l=z(),l!==D?(125===e.charCodeAt($e)?(h=$,$e++):(h=D,0===Ze&&c(L)),h!==D?(Le=t,r=re(n,i,s,f),t=r):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)}else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;else $e=t,t=D;return t}function m(){var t,r,n,o,i,u,a,s,f,l,h;return t=$e,123===e.charCodeAt($e)?(r=_,$e++):(r=D,0===Ze&&c(U)),r!==D?(n=z(),n!==D?(o=g(),o!==D?(i=z(),i!==D?(44===e.charCodeAt($e)?(u=I,$e++):(u=D,0===Ze&&c(H)),u!==D?(a=z(),a!==D?(s=$e,f=g(),f!==D&&(Le=s,f=V(o,f)),s=f,s!==D?(f=z(),f!==D?(l=k(),l===D&&(l=null),l!==D?(125===e.charCodeAt($e)?(h=$,$e++):(h=D,0===Ze&&c(L)),h!==D?(Le=t,r=ne(o,s,l),t=r):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D),t}function g(){var t,r,n;if(t=$e,r=[],oe.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(ie)),n!==D)for(;n!==D;)r.push(n),oe.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(ie));else r=D;return t=r!==D?e.substring(t,$e):r}function y(){var e,t,r,n,o;return e=$e,t=z(),t!==D?(r=g(),r!==D?(n=z(),n!==D?(o=v(),o!==D?(Le=e,t=ue(r,o),e=t):($e=e,e=D)):($e=e,e=D)):($e=e,e=D)):($e=e,e=D),e}function w(){var e,t,r,n,o;return e=$e,t=z(),t!==D?(r=S(),r!==D?(n=z(),n!==D?(o=v(),o!==D?(Le=e,t=ue(r,o),e=t):($e=e,e=D)):($e=e,e=D)):($e=e,e=D)):($e=e,e=D),e}function v(){var t,r,n,o,i,u;if(t=$e,123===e.charCodeAt($e)?(r=_,$e++):(r=D,0===Ze&&c(U)),r!==D)if(n=$e,o=z(),o!==D?(i=$e,Ze++,123===e.charCodeAt($e)?(u=_,$e++):(u=D,0===Ze&&c(U)),Ze--,u!==D?($e=i,i=void 0):i=D,i!==D?(o=[o,i],n=o):($e=n,n=D)):($e=n,n=D),n===D&&(n=null),n!==D){for(o=[],i=l();i!==D;)o.push(i),i=l();o!==D?(i=z(),i!==D?(125===e.charCodeAt($e)?(u=$,$e++):(u=D,0===Ze&&c(L)),u!==D?(Le=t,r=ae(o),t=r):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)}else $e=t,t=D;else $e=t,t=D;return t}function b(){var t,r,n,o,i,u,a,s;return t=$e,r=z(),r!==D?(e.substr($e,6)===ce?(n=ce,$e+=6):(n=D,0===Ze&&c(se)),n!==D?(o=z(),o!==D?(58===e.charCodeAt($e)?(i=fe,$e++):(i=D,0===Ze&&c(le)),i!==D?(u=z(),u!==D?(a=F(),a!==D?(s=z(),s!==D?(Le=t,r=he(a),t=r):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D)):($e=t,t=D),t}function S(){var t,r,n;return t=g(),t===D&&(t=$e,61===e.charCodeAt($e)?(r=pe,$e++):(r=D,0===Ze&&c(de)),r!==D?(n=F(),n!==D?(Le=t,r=he(n),t=r):($e=t,t=D)):($e=t,t=D)),t}function k(){var t,r,n,o,i;if(t=$e,(r=z())!==D)if(44===e.charCodeAt($e)?(n=I,$e++):(n=D,0===Ze&&c(H)),n!==D){if(o=[],(i=x())!==D)for(;i!==D;)o.push(i),i=x();else o=D;o!==D?(Le=t,r=M(o),t=r):($e=t,t=D)}else $e=t,t=D;else $e=t,t=D;return t}function x(){var t;return t=E(),t===D&&(t=A())===D&&(me.test(e.charAt($e))?(t=e.charAt($e),$e++):(t=D,0===Ze&&c(ge))),t}function E(){var t,r;return t=$e,e.substr($e,2)===ye?(r=ye,$e+=2):(r=D,0===Ze&&c(we)),r!==D&&(Le=t,r=ve()),t=r}function j(){var t,r,n;if((t=E())===D){if(t=$e,r=[],be.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(Se)),n!==D)for(;n!==D;)r.push(n),be.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(Se));else r=D;r!==D&&(Le=t,r=M(r)),t=r}return t}function A(){var t,r,n,o;if(t=$e,e.substr($e,2)===ke?(r=ke,$e+=2):(r=D,0===Ze&&c(xe)),r!==D){for(n=[],o=j();o!==D;)n.push(o),o=j();n!==D?(39===e.charCodeAt($e)?(o=Ee,$e++):(o=D,0===Ze&&c(je)),o!==D?(Le=t,r=Ae(n),t=r):($e=t,t=D)):($e=t,t=D)}else $e=t,t=D;if(t===D)if(t=$e,e.substr($e,2)===Ne?(r=Ne,$e+=2):(r=D,0===Ze&&c(Oe)),r!==D){for(n=[],o=j();o!==D;)n.push(o),o=j();n!==D?(39===e.charCodeAt($e)?(o=Ee,$e++):(o=D,0===Ze&&c(je)),o!==D?(Le=t,r=Fe(n),t=r):($e=t,t=D)):($e=t,t=D)}else $e=t,t=D;return t}function N(){var t,r,n,o,i,u;if((t=A())===D){if(t=$e,r=$e,n=$e,e.substr($e,2)===ze?(o=ze,$e+=2):(o=D,0===Ze&&c(Ce)),o!==D){for(i=[],u=j();u!==D;)i.push(u),u=j();i!==D?(39===e.charCodeAt($e)?(u=Ee,$e++):(u=D,0===Ze&&c(je)),u!==D?(Le=n,o=De(i),n=o):($e=n,n=D)):($e=n,n=D)}else $e=n,n=D;n!==D?(Le=$e,o=J(),o=o?void 0:D,o!==D?(n=[n,o],r=n):($e=r,r=D)):($e=r,r=D),r!==D&&(Le=t,r=Te(r)),t=r,t===D&&(39===e.charCodeAt($e)?(t=Ee,$e++):(t=D,0===Ze&&c(je)))}return t}function O(){var t,r,n;return t=E(),t===D&&(t=N())===D&&(t=$e,35===e.charCodeAt($e)?(r=P,$e++):(r=D,0===Ze&&c(B)),r!==D?(Le=$e,n=qe(r),n=n?void 0:D,n!==D?(Le=t,r=Pe(r),t=r):($e=t,t=D)):($e=t,t=D),t===D&&(Be.test(e.charAt($e))?(t=e.charAt($e),$e++):(t=D,0===Ze&&c(Je)))),t}function F(){var t,r,n;if(t=$e,r=[],Re.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(Me)),n!==D)for(;n!==D;)r.push(n),Re.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(Me));else r=D;return t=r!==D?e.substring(t,$e):r}function z(){var t,r,n;for(t=$e,r=[],_e.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(Ue));n!==D;)r.push(n),_e.test(e.charAt($e))?(n=e.charAt($e),$e++):(n=D,0===Ze&&c(Ue));return t=r!==D?e.substring(t,$e):r}t=void 0!==t?t:{};var C,D={},T={start:f},q=f,P="#",B=r("#",!1),J=function(){return Ke},R=function(){return{type:"octothorpe"}},M=function(e){return e.join("")},_="{",U=r("{",!1),$="}",L=r("}",!1),G=function(e){return{type:"argument",arg:e}},I=",",H=r(",",!1),Z="select",K=r("select",!1),V=function(e,r){return t.strictNumberSign&&(Ke=!1),r},Y=function(e,t){return{type:"select",arg:e,cases:t}},W="plural",Q=r("plural",!1),X="selectordinal",ee=r("selectordinal",!1),te=function(e,t){return Ke=!0,t},re=function(e,r,n,o){var i=("selectordinal"===r?t.ordinal:t.cardinal)||["zero","one","two","few","many","other"];return i&&i.length&&o.forEach(function(t){if(isNaN(t.key)&&i.indexOf(t.key)<0)throw new Error("Invalid key `"+t.key+"` for argument `"+e+"`. Valid "+r+" keys for this locale are `"+i.join("`, `")+"`, and explicit keys like `=0`.")}),Ke=!1,{type:r,arg:e,offset:n||0,cases:o}},ne=function(e,t,r){return{type:"function",arg:e,key:t,param:r}},oe=/^[^\t-\r \x85\u200E\u200F\u2028\u2029!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,ie=o([["\t","\r"]," ","…","‎","‏","\u2028","\u2029",["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!0,!1),ue=function(e,t){return{key:e,tokens:t}},ae=function(e){return e},ce="offset",se=r("offset",!1),fe=":",le=r(":",!1),he=function(e){return e},pe="=",de=r("=",!1),me=/^[^}]/,ge=o(["}"],!0,!1),ye="''",we=r("''",!1),ve=function(){return"'"},be=/^[^']/,Se=o(["'"],!0,!1),ke="'{",xe=r("'{",!1),Ee="'",je=r("'",!1),Ae=function(e){return"{"+e.join("")},Ne="'}",Oe=r("'}",!1),Fe=function(e){return"}"+e.join("")},ze="'#",Ce=r("'#",!1),De=function(e){return"#"+e.join("")},Te=function(e){return e[0]},qe=function(e){return!Ke},Pe=function(e){return e},Be=/^[^{}#\0-\x08\x0E-\x1F\x7F]/,Je=o(["{","}","#",["\0","\b"],["",""],""],!0,!1),Re=/^[0-9]/,Me=o([["0","9"]],!1,!1),_e=/^[\t-\r \x85\u200E\u200F\u2028\u2029]/,Ue=o([["\t","\r"]," ","…","‎","‏","\u2028","\u2029"],!1,!1),$e=0,Le=0,Ge=[{line:1,column:1}],Ie=0,He=[],Ze=0;if("startRule"in t){if(!(t.startRule in T))throw new Error("Can't start parsing from rule \""+t.startRule+'".');q=T[t.startRule]}var Ke=!1;if((C=q())!==D&&$e===e.length)return C;throw C!==D&&$e<e.length&&c(function(){return{type:"end"}}()),s(He,Ie<e.length?e.charAt(Ie):null,Ie<e.length?a(Ie,Ie+1):a(Ie,Ie))}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(n,Error),n.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function i(e){return u[e.type](e)}var u={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?o(e.parts[t][0])+"-"+o(e.parts[t][1]):o(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};return"Expected "+function(e){var t,r,n=new Array(e.length);for(t=0;t<e.length;t++)n[t]=i(e[t]);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},t.exports={SyntaxError:n,parse:o}},{}],13:[function(e,t,r){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function u(e){if(h===clearTimeout)return clearTimeout(e);if((h===o||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function a(){g&&d&&(g=!1,d.length?m=d.concat(m):y=-1,m.length&&c())}function c(){if(!g){var e=i(a);g=!0;for(var t=m.length;t;){for(d=m,m=[];++y<t;)d&&d[y].run();y=-1,t=m.length}d=null,g=!1,u(e)}}function s(e,t){this.fun=e,this.array=t}function f(){}var l,h,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{h="function"==typeof clearTimeout?clearTimeout:o}catch(e){h=o}}();var d,m=[],g=!1,y=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];m.push(new s(e,t)),1!==m.length||g||i(c)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.prependListener=f,p.prependOnceListener=f,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],14:[function(e,t,r){t.exports=e("./reserved-words")},{"./reserved-words":15}],15:[function(e,t,r){function n(){return Array.prototype.map.call(arguments,function(e){return"string"==typeof e?e:Object.keys(e).join(" ")}).join(" ").split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{})}var o=e("assert"),i={es3:3,es5:5,es2015:6,es7:7,es6:6,default:5,next:6},u=r.KEYWORDS={};r.check=function(e,t,r){t=t||i.default;var n=i[t]||t;return r&&n>=5&&(n+="-strict"),o(u[n],"Unknown dialect"),u[n].hasOwnProperty(e)},u[3]=n("break else new var","case finally return void","catch for switch while","continue function this with","default if throw","delete in try","do instanceof typeof","abstract enum int short","boolean export interface static","byte extends long super","char final native synchronized","class float package throws","const goto private transient","debugger implements protected volatile","double import public","null true false"),u[5]=n("break do instanceof typeof","case else new var","catch finally return void","continue for switch while","debugger function this with","default if throw","delete in try","class enum extends super","const export import","null true false"),u["5-strict"]=n(u[5],"implements let private public yield","interface package protected static"),u[6]=n("break do in typeof","case else instanceof var","catch export new void","class extends return while","const finally super with","continue for switch yield","debugger function this","default if throw","delete import try","enum await","null true false"),u["6-strict"]=n(u[6],"let static","implements package protected","interface private public")},{assert:9}],16:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],17:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],18:[function(e,t,r){(function(t,n){function o(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),c(n,e,n.depth)}function i(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function u(e,t){return e}function a(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function c(e,t,n){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return v(o)||(o=c(e,o,n)),o}var i=s(e,t);if(i)return i;var u=Object.keys(t),m=a(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(t)),j(t)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return f(t);if(0===u.length){if(A(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(k(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(j(t))return f(t)}var y="",w=!1,b=["{","}"];if(d(t)&&(w=!0,b=["[","]"]),A(t)){y=" [Function"+(t.name?": "+t.name:"")+"]"}if(k(t)&&(y=" "+RegExp.prototype.toString.call(t)),E(t)&&(y=" "+Date.prototype.toUTCString.call(t)),j(t)&&(y=" "+f(t)),0===u.length&&(!w||0==t.length))return b[0]+y+b[1];if(n<0)return k(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var S;return S=w?l(e,t,n,m,u):u.map(function(r){return h(e,t,n,m,r,w)}),e.seen.pop(),p(S,y,b)}function s(e,t){if(S(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,r,n,o){for(var i=[],u=0,a=t.length;u<a;++u)C(t,String(u))?i.push(h(e,t,r,n,String(u),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(h(e,t,r,n,o,!0))}),i}function h(e,t,r,n,o,i){var u,a,s;if(s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},s.get?a=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(a=e.stylize("[Setter]","special")),C(n,o)||(u="["+o+"]"),a||(e.seen.indexOf(s.value)<0?(a=g(r)?c(e,s.value,null):c(e,s.value,r-1),a.indexOf("\n")>-1&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),S(u)){if(i&&o.match(/^\d+$/))return a;u=JSON.stringify(""+o),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+a}function p(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return null==e}function w(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function S(e){return void 0===e}function k(e){return x(e)&&"[object RegExp]"===O(e)}function x(e){return"object"==typeof e&&null!==e}function E(e){return x(e)&&"[object Date]"===O(e)}function j(e){return x(e)&&("[object Error]"===O(e)||e instanceof Error)}function A(e){return"function"==typeof e}function N(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function O(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}function z(){var e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var D=/%[sdj%]/g;r.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,u=String(e).replace(D,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),a=n[r];r<i;a=n[++r])g(a)||!x(a)?u+=" "+a:u+=" "+o(a);return u},r.deprecate=function(e,o){function i(){if(!u){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),u=!0}return e.apply(this,arguments)}if(S(n.process))return function(){return r.deprecate(e,o).apply(this,arguments)};if(!0===t.noDeprecation)return e;var u=!1;return i};var T,q={};r.debuglog=function(e){if(S(T)&&(T=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!q[e])if(new RegExp("\\b"+e+"\\b","i").test(T)){var n=t.pid;q[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else q[e]=function(){};return q[e]},r.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=m,r.isNull=g,r.isNullOrUndefined=y,r.isNumber=w,r.isString=v,r.isSymbol=b,r.isUndefined=S,r.isRegExp=k,r.isObject=x,r.isDate=E,r.isError=j,r.isFunction=A,r.isPrimitive=N,r.isBuffer=e("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",z(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":17,_process:13,inherits:16}]},{},[7])(7)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).MessageFormat=e()}}(function(){return function i(u,a,c){function s(t,e){if(!a[t]){if(!u[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=a[t]={exports:{}};u[t][0].call(o.exports,function(e){return s(u[t][1][e]||e)},o,o.exports,i,u,a,c)}return a[t].exports}for(var l="function"==typeof require&&require,e=0;e<c.length;e++)s(c[e]);return s}({1:[function(e,t,r){var n=e("reserved-words"),a=e("messageformat-parser").parse;function i(e){this.mf=e,this.lc=null,this.locales={},this.runtime={},this.formatters={}}(t.exports=i).propname=function(e,t){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(e)&&["break","continue","delete","else","for","function","if","in","new","return","this","typeof","var","void","while","with","case","catch","default","do","finally","instanceof","switch","throw","try"].indexOf(e)<0)return t?t+"."+e:e;var r=JSON.stringify(e);return t?t+"["+r+"]":r},i.funcname=function(e){var t=e.trim().replace(/\W+/g,"_");return n.check(t,"es2015",!0)||/^\d/.test(t)?"_"+t:t},i.bidiMarkText=function(e,t){var r,n=JSON.stringify((r=t,new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^")).test(r)?"‏":"‎"));return n+" + "+e+" + "+n},i.prototype.cases=function(e,r){var n="select"===e.type||!this.mf.hasCustomPluralFuncs,t=e.cases.map(function(e){"other"===e.key&&(n=!1);var t=e.tokens.map(function(e){return this.token(e,r)},this);return i.propname(e.key)+": "+(t.join(" + ")||'""')},this);if(n)throw new Error("No 'other' form found in "+JSON.stringify(e));return"{ "+t.join(", ")+" }"},i.prototype.token=function(e,t){if("string"==typeof e)return JSON.stringify(e);var r,n=[i.propname(e.arg,"d")];switch(e.type){case"argument":return this.mf.bidiSupport?i.bidiMarkText(n[0],this.lc):n[0];case"select":r="select",n.push(this.cases(e,this.mf.strictNumberSign?null:t)),this.runtime.select=!0;break;case"selectordinal":r="plural",n.push(0,i.funcname(this.lc),this.cases(e,e),1),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"plural":r="plural",n.push(e.offset||0,i.funcname(this.lc),this.cases(e,e)),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"function":if(!(e.key in this.mf.fmt)&&e.key in this.mf.constructor.formatters){var o=this.mf.constructor.formatters[e.key];this.mf.fmt[e.key]=o(this.mf)}if(!this.mf.fmt[e.key])throw new Error("Formatting function "+JSON.stringify(e.key)+" not found!");n.push(JSON.stringify(this.lc)),"string"==typeof e.param&&n.push(JSON.stringify(e.param.trim())),r=i.propname(e.key,"fmt"),this.formatters[e.key]=!0;break;case"octothorpe":if(!t)return'"#"';r="number",n=[i.propname(t.arg,"d"),JSON.stringify(t.arg)],t.offset&&n.push(t.offset),this.runtime.number=!0}if(!r)throw new Error("Parser error for token "+JSON.stringify(e));return r+"("+n.join(", ")+")"},i.prototype.compile=function(e,t,r){if("object"!=typeof e){var n=r[this.lc=t]||{cardinal:[],ordinal:[]};return n.strictNumberSign=!!this.mf.strictNumberSign,"function(d) { return "+(a(e,n).map(function(e){return this.token(e)},this).join(" + ")||'""')+"; }"}var o={};for(var i in e){var u=r.hasOwnProperty(i)?i:t;o[i]=this.compile(e[i],u,r)}return o}},{"messageformat-parser":13,"reserved-words":15}],2:[function(e,t,r){function n(e,t,r){var n={day:"numeric",month:"short",year:"numeric"};switch(r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric"}return new Date(e).toLocaleDateString(t,n)}t.exports=function(){return n}},{}],3:[function(e,t,r){function n(e){if(!isFinite(e))return String(e);var t="";e<0?(t="-",e=Math.abs(e)):e=Number(e);var r=e%60,n=[Math.round(r)===r?r:r.toFixed(3)];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),60<=e&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.shift()+":"+n.map(function(e){return e<10?"0"+String(e):String(e)}).join(":")}t.exports=function(){return n}},{}],4:[function(e,t,r){t.exports={date:e("./date"),duration:e("./duration"),number:e("./number"),time:e("./time")}},{"./date":2,"./duration":3,"./number":5,"./time":6}],5:[function(e,t,r){t.exports=function(e){var t=function(e,t,r){var n=r&&r.split(":")||[],o={integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:n[1]&&n[1].trim()||CURRENCY,minimumFractionDigits:2,maximumFractionDigits:2}};return new Intl.NumberFormat(t,o[n[0]]||{}).format(e)}.toString().replace("CURRENCY",JSON.stringify(e.currency||"USD")).match(/\(([^)]*)\)[^{]*{([\s\S]*)}/);return new Function(t[1],t[2])}},{}],6:[function(e,t,r){function n(e,t,r){var n={second:"numeric",minute:"numeric",hour:"numeric"};switch(r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}return new Date(e).toLocaleTimeString(t,n)}t.exports=function(){return n}},{}],7:[function(e,t,r){var l=e("./compiler"),n=e("./formatters"),f=e("./plurals"),o=e("./runtime");function i(e){if(this.pluralFuncs={},"string"==typeof e)this.pluralFuncs[e]=f.get(e),this.defaultLocale=e;else if(Array.isArray(e))e.forEach(function(e){this.pluralFuncs[e]=f.get(e)},this),this.defaultLocale=e[0];else{for(var t in e)if(e.hasOwnProperty(t)){if("function"!=typeof e[t])throw new Error("Expected function value for locale "+JSON.stringify(t));this.pluralFuncs[t]=e[t],this.defaultLocale||(this.defaultLocale=t)}this.defaultLocale?this.hasCustomPluralFuncs=!0:this.defaultLocale=i.defaultLocale}this.fmt={},this.runtime=new o(this)}i.defaultLocale="en",i.escape=function(e,t){var r=t?"[#{}]":"[{}]";return e.replace(new RegExp(r,"g"),"'$&'")},i.formatters=n,i.prototype.addFormatters=function(e){for(var t in e)e.hasOwnProperty(t)&&(this.fmt[t]=e[t]);return this},i.prototype.disablePluralKeyChecks=function(){for(var e in this.noPluralKeyChecks=!0,this.pluralFuncs)this.pluralFuncs.hasOwnProperty(e)&&(this.pluralFuncs[e].cardinal=[],this.pluralFuncs[e].ordinal=[]);return this},i.prototype.setBiDiSupport=function(e){return this.bidiSupport=!!e||void 0===e,this},i.prototype.setStrictNumberSign=function(e){return this.strictNumberSign=!!e||void 0===e,this.runtime.setStrictNumber(this.strictNumberSign),this},i.prototype.compile=function(e,t){var r;if(0==Object.keys(this.pluralFuncs).length)t||(t=this.defaultLocale),r=f.getAll(this.noPluralKeyChecks);else if(t){if((r={})[t]=this.pluralFuncs[t],!r[t])throw new Error("Locale "+JSON.stringify(t)+" not found in "+JSON.stringify(this.pluralFuncs)+"!")}else r=this.pluralFuncs,t=this.defaultLocale;var n=new l(this),o=n.compile(e,t,r);if("object"!=typeof e){var i=new Function("number, plural, select, fmt",l.funcname(t),"return "+o),u=this.runtime;return i(u.number,u.plural,u.select,this.fmt,r[t])}var a=this.runtime.toString(r,n)+"\n",c=function e(t,r){if(r||(r=0),"object"!=typeof t)return t;for(var n=[],o="",i=0;i<r;++i)o+=" ";for(var u in t)n.push("\n"+o+" "+l.propname(u)+": "+e(t[u],r+1));return"{"+n.join(",")+"\n"+o+"}"}(o),s=new Function(a+"return "+c)();if(s.hasOwnProperty("toString"))throw new Error("The top-level message key `toString` is reserved");return s.toString=function(e){return e&&"export default"!==e?-1<e.indexOf(".")?a+e+" = "+c:a+["(function (root, G) {",' if (typeof define === "function" && define.amd) { define(G); }',' else if (typeof exports === "object") { module.exports = G; }'," else { "+l.propname(e,"root")+" = G; }","})(this, "+c+");"].join("\n"):a+"export default "+c},s},t.exports=i},{"./compiler":1,"./formatters":4,"./plurals":8,"./runtime":9}],8:[function(e,t,r){var i=e("make-plural/umd/pluralCategories"),o=e("make-plural/umd/plurals");function u(e,t,r){var n=function(){return t.apply(this,arguments)};if(n.toString=function(){return t.toString()},r)n.cardinal=[],n.ordinal=[];else{var o=i[e]||{};n.cardinal=o.cardinal,n.ordinal=o.ordinal}return n}t.exports={get:function(e,t){for(var r=e;r;r=r.replace(/[-_]?[^-_]*$/,"")){var n=o[r];if(n)return u(r,n,t)}throw new Error("Localisation function not found for locale "+JSON.stringify(e))},getAll:function(r){return Object.keys(o).reduce(function(e,t){return e[t]=u(t,o[t],r),e},{})}}},{"make-plural/umd/pluralCategories":11,"make-plural/umd/plurals":12}],9:[function(e,t,r){var a=e("./compiler");function n(e){this.mf=e,this.setStrictNumber(e.strictNumberSign)}function o(e,t,r){if(!r)return e;if(isNaN(e))throw new Error("Can't apply offset:"+r+" to argument `"+t+"` with non-numerical value "+JSON.stringify(e)+".");return e-r}function i(e,t,r){if(isNaN(e))throw new Error("Argument `"+t+"` has non-numerical value "+JSON.stringify(e)+".");return e-(r||0)}(t.exports=n).prototype.setStrictNumber=function(e){this.number=e?i:o},n.prototype.plural=function(e,t,r,n,o){if({}.hasOwnProperty.call(n,e))return n[e];t&&(e-=t);var i=r(e,o);return i in n?n[i]:n.other},n.prototype.select=function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},n.prototype.toString=function(t,e){var r={};Object.keys(e.locales).forEach(function(e){r[a.funcname(e)]=t[e]}),Object.keys(e.runtime).forEach(function(e){r[e]=this[e]},this);var n=Object.keys(e.formatters),o=this.mf.fmt;return n.length&&(r.fmt=n.reduce(function(e,t){return e[t]=o[t],e},{})),function e(t,r){if("object"!=typeof t){var n=t.toString().replace(/^(function )\w*/,"$1");return(u=/([ \t]*)\S.*$/.exec(n))?n.replace(new RegExp("^"+u[1],"mg"),""):n}var o=[];for(var i in t)0==r?o.push("var "+i+" = "+e(t[i],r+1)+";\n"):o.push(a.propname(i)+": "+e(t[i],r+1));if(0==r)return o.join("");if(0==o.length)return"{}";for(var u=" ";--r;)u+=" ";return"{\n"+o.join(",\n").replace(/^/gm,u)+"\n}"}(r,0)}},{"./compiler":1}],10:[function(S,k,e){(function(t){"use strict";function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}function u(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var l=S("util/"),n=Object.prototype.hasOwnProperty,f=Array.prototype.slice,r="foo"===function(){}.name;function a(e){return Object.prototype.toString.call(e)}function c(e){return!u(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var s=k.exports=e,o=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(l.isFunction(e)){if(r)return e.name;var t=e.toString().match(o);return t&&t[1]}}function p(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function d(e){if(r||!l.isFunction(e))return l.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function m(e,t,r,n,o){throw new s.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:o})}function e(e,t){e||m(e,!0,t,"==",s.ok)}function g(e,t,r,n){if(e===t)return!0;if(u(e)&&u(t))return 0===i(e,t);if(l.isDate(e)&&l.isDate(t))return e.getTime()===t.getTime();if(l.isRegExp(e)&&l.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(c(e)&&c(t)&&a(e)===a(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(u(e)!==u(t))return!1;var o=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==o&&o===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(l.isPrimitive(e)||l.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=y(e),i=y(t);if(o&&!i||!o&&i)return!1;if(o)return e=f.call(e),t=f.call(t),g(e,t,r);var u,a,c=b(e),s=b(t);if(c.length!==s.length)return!1;for(c.sort(),s.sort(),a=c.length-1;0<=a;a--)if(c[a]!==s[a])return!1;for(a=c.length-1;0<=a;a--)if(u=c[a],!g(e[u],t[u],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,r,n){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!o&&m(o,r,"Missing expected exception"+n);var i="string"==typeof n,u=!e&&o&&!r;if((!e&&l.isError(o)&&i&&w(o,r)||u)&&m(o,r,"Got unwanted exception"+n),e&&o&&r&&!w(o,r)||!e&&o)throw o}s.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=p(d((t=this).actual),128)+" "+t.operator+" "+p(d(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var o=n.stack,i=h(r),u=o.indexOf("\n"+i);if(0<=u){var a=o.indexOf("\n",u+1);o=o.substring(a+1)}this.stack=o}}},l.inherits(s.AssertionError,Error),s.fail=m,s.ok=e,s.equal=function(e,t,r){e!=t&&m(e,t,r,"==",s.equal)},s.notEqual=function(e,t,r){e==t&&m(e,t,r,"!=",s.notEqual)},s.deepEqual=function(e,t,r){g(e,t,!1)||m(e,t,r,"deepEqual",s.deepEqual)},s.deepStrictEqual=function(e,t,r){g(e,t,!0)||m(e,t,r,"deepStrictEqual",s.deepStrictEqual)},s.notDeepEqual=function(e,t,r){g(e,t,!1)&&m(e,t,r,"notDeepEqual",s.notDeepEqual)},s.notDeepStrictEqual=function e(t,r,n){g(t,r,!0)&&m(t,r,n,"notDeepStrictEqual",e)},s.strictEqual=function(e,t,r){e!==t&&m(e,t,r,"===",s.strictEqual)},s.notStrictEqual=function(e,t,r){e===t&&m(e,t,r,"!==",s.notStrictEqual)},s.throws=function(e,t,r){v(!0,e,t,r)},s.doesNotThrow=function(e,t,r){v(!1,e,t,r)},s.ifError=function(e){if(e)throw e};var b=Object.keys||function(e){var t=[];for(var r in e)n.call(e,r)&&t.push(r);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":19}],11:[function(e,t,r){var n,o,i=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];n=this,o={af:i[1],ak:i[1],am:i[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},ars:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:i[1],ast:i[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:i[1],bez:i[1],bg:i[1],bh:i[1],bm:i[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:i[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:i[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:i[1],de:i[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:i[1],es:i[1],et:i[1],eu:i[1],fa:i[1],ff:i[1],fi:i[1],fil:i[2],fo:i[1],fr:i[2],fur:i[1],fy:i[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["other"]},gl:i[1],gsw:i[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:i[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:i[1],haw:i[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:i[2],hy:i[2],id:i[0],ig:i[0],ii:i[0],in:i[0],io:i[1],is:i[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:i[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:i[0],jbo:i[0],jgo:i[1],ji:i[1],jmc:i[1],jv:i[0],jw:i[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:i[1],kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:i[1],kl:i[1],km:i[0],kn:i[1],ko:i[0],ks:i[1],ksb:i[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:i[1],kw:i[3],ky:i[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:i[1],lg:i[1],lkt:i[0],ln:i[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:i[1],mg:i[1],mgo:i[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:i[1],mn:i[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:i[0],nah:i[1],naq:i[3],nb:i[1],nd:i[1],ne:i[2],nl:i[1],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[1],ny:i[1],nyn:i[1],om:i[1],or:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},os:i[1],pa:i[1],pap:i[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:i[1],pt:i[1],"pt-PT":i[1],rm:i[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:i[1],root:i[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:i[1],sah:i[0],saq:i[1],sd:i[1],sdh:i[1],se:i[3],seh:i[1],ses:i[0],sg:i[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:i[1],sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:i[3],smi:i[3],smj:i[3],smn:i[3],sms:i[3],sn:i[1],so:i[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:i[1],ssy:i[1],st:i[1],sv:i[2],sw:i[1],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[1],tig:i[1],tk:{cardinal:["one","other"],ordinal:["few","other"]},tl:i[2],tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:i[1],ug:i[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:i[1],uz:i[1],ve:i[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:i[1],vun:i[1],wa:i[1],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[1],yo:i[0],yue:i[0],zh:i[0],zu:i[1]},"object"==typeof r?t.exports=o:n.pluralCategories=o},{}],12:[function(e,t,r){var n,o,i=[function(e,t){return"other"},function(e,t){return t?"other":1==e?"one":"other"},function(e,t){return t?"other":0==e||1==e?"one":"other"},function(e,t){var r=!String(e).split(".")[1];return t?"other":1==e&&r?"one":"other"}];n=this,o={af:i[1],ak:i[2],am:function(e,t){return t?"other":0<=e&&e<=1?"one":"other"},ar:function(e,t){var r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":3<=n&&n<=10?"few":11<=n&&n<=99?"many":"other"},ars:function(e,t){var r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":3<=n&&n<=10?"few":11<=n&&n<=99?"many":"other"},as:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":0<=e&&e<=1?"one":"other"},asa:i[1],ast:i[3],az:function(e,t){var r=String(e).split(".")[0],n=r.slice(-1),o=r.slice(-2),i=r.slice(-3);return t?1==n||2==n||5==n||7==n||8==n||20==o||50==o||70==o||80==o?"one":3==n||4==n||100==i||200==i||300==i||400==i||500==i||600==i||700==i||800==i||900==i?"few":0==r||6==n||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},be:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2);return t?2!=o&&3!=o||12==i||13==i?"other":"few":1==o&&11!=i?"one":2<=o&&o<=4&&(i<12||14<i)?"few":n&&0==o||5<=o&&o<=9||11<=i&&i<=14?"many":"other"},bem:i[1],bez:i[1],bg:i[1],bh:i[2],bm:i[0],bn:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":0<=e&&e<=1?"one":"other"},bo:i[0],br:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2),u=n&&r[0].slice(-6);return t?"other":1==o&&11!=i&&71!=i&&91!=i?"one":2==o&&12!=i&&72!=i&&92!=i?"two":(3==o||4==o||9==o)&&(i<10||19<i)&&(i<70||79<i)&&(i<90||99<i)?"few":0!=e&&n&&0==u?"many":"other"},brx:i[1],bs:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&2<=u&&u<=4&&(a<12||14<a)||2<=c&&c<=4&&(s<12||14<s)?"few":"other"},ca:function(e,t){var r=!String(e).split(".")[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&r?"one":"other"},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1];return t?"other":1==e&&o?"one":2<=n&&n<=4&&o?"few":o?"other":"many"},cy:function(e,t){return t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e,t){var r=String(e).split("."),n=r[0],o=Number(r[0])==e;return t?"other":1!=e&&(o||0!=n&&1!=n)?"other":"one"},de:i[3],dsb:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-2),a=o.slice(-2);return t?"other":i&&1==u||1==a?"one":i&&2==u||2==a?"two":i&&(3==u||4==u)||3==a||4==a?"few":"other"},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),u=o&&r[0].slice(-2);return t?1==i&&11!=u?"one":2==i&&12!=u?"two":3==i&&13!=u?"few":"other":1==e&&n?"one":"other"},eo:i[1],es:i[1],et:i[3],eu:i[1],fa:function(e,t){return t?"other":0<=e&&e<=1?"one":"other"},ff:function(e,t){return t?"other":0<=e&&e<2?"one":"other"},fi:i[3],fil:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=u&&6!=u&&9!=u||!i&&4!=a&&6!=a&&9!=a?"one":"other"},fo:i[1],fr:function(e,t){return t?1==e?"one":"other":0<=e&&e<2?"one":"other"},fur:i[1],fy:i[3],ga:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":n&&3<=e&&e<=6?"few":n&&7<=e&&e<=10?"many":"other"},gd:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":1==e||11==e?"one":2==e||12==e?"two":n&&3<=e&&e<=10||n&&13<=e&&e<=19?"few":"other"},gl:i[3],gsw:i[1],gu:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":0<=e&&e<=1?"one":"other"},guw:i[2],gv:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-1),u=n.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=u&&20!=u&&40!=u&&60!=u&&80!=u?o?"other":"many":"few"},ha:i[1],haw:i[1],he:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=Number(r[0])==e,u=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||10<e)&&i&&0==u?"many":"other"},hi:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":0<=e&&e<=1?"one":"other"},hr:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&2<=u&&u<=4&&(a<12||14<a)||2<=c&&c<=4&&(s<12||14<s)?"few":"other"},hsb:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-2),a=o.slice(-2);return t?"other":i&&1==u||1==a?"one":i&&2==u||2==a?"two":i&&(3==u||4==u)||3==a||4==a?"few":"other"},hu:function(e,t){return t?1==e||5==e?"one":"other":1==e?"one":"other"},hy:function(e,t){return t?1==e?"one":"other":0<=e&&e<2?"one":"other"},id:i[0],ig:i[0],ii:i[0],in:i[0],io:i[3],is:function(e,t){var r=String(e).split("."),n=r[0],o=Number(r[0])==e,i=n.slice(-1),u=n.slice(-2);return t?"other":o&&1==i&&11!=u||!o?"one":"other"},it:function(e,t){var r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},iu:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},iw:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=Number(r[0])==e,u=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||10<e)&&i&&0==u?"many":"other"},ja:i[0],jbo:i[0],jgo:i[1],ji:i[3],jmc:i[1],jv:i[0],jw:i[0],ka:function(e,t){var r=String(e).split(".")[0],n=r.slice(-2);return t?1==r?"one":0==r||2<=n&&n<=20||40==n||60==n||80==n?"many":"other":1==e?"one":"other"},kab:function(e,t){return t?"other":0<=e&&e<2?"one":"other"},kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1);return t?6==o||9==o||n&&0==o&&0!=e?"many":"other":1==e?"one":"other"},kkj:i[1],kl:i[1],km:i[0],kn:function(e,t){return t?"other":0<=e&&e<=1?"one":"other"},ko:i[0],ks:i[1],ksb:i[1],ksh:function(e,t){return t?"other":0==e?"zero":1==e?"one":"other"},ku:i[1],kw:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},ky:i[1],lag:function(e,t){var r=String(e).split(".")[0];return t?"other":0==e?"zero":0!=r&&1!=r||0==e?"other":"one"},lb:i[1],lg:i[1],lkt:i[0],ln:i[2],lo:function(e,t){return t&&1==e?"one":"other"},lt:function(e,t){var r=String(e).split("."),n=r[1]||"",o=Number(r[0])==e,i=o&&r[0].slice(-1),u=o&&r[0].slice(-2);return t?"other":1==i&&(u<11||19<u)?"one":2<=i&&i<=9&&(u<11||19<u)?"few":0!=n?"many":"other"},lv:function(e,t){var r=String(e).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==e,u=i&&r[0].slice(-1),a=i&&r[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return t?"other":i&&0==u||11<=a&&a<=19||2==o&&11<=c&&c<=19?"zero":1==u&&11!=a||2==o&&1==s&&11!=c||2!=o&&1==s?"one":"other"},mas:i[1],mg:i[2],mgo:i[1],mk:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1);return t?1==u&&11!=a?"one":2==u&&12!=a?"two":7!=u&&8!=u||17==a||18==a?"other":"many":i&&1==u||1==c?"one":"other"},ml:i[1],mn:i[1],mo:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&1<=o&&o<=19?"few":"other"},mr:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":0<=e&&e<=1?"one":"other"},ms:function(e,t){return t&&1==e?"one":"other"},mt:function(e,t){var r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":1==e?"one":0==e||2<=n&&n<=10?"few":11<=n&&n<=19?"many":"other"},my:i[0],nah:i[1],naq:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},nb:i[1],nd:i[1],ne:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?n&&1<=e&&e<=4?"one":"other":1==e?"one":"other"},nl:i[3],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[2],ny:i[1],nyn:i[1],om:i[1],or:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?1==e||5==e||n&&7<=e&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},os:i[1],pa:i[2],pap:i[1],pl:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-1),u=n.slice(-2);return t?"other":1==e&&o?"one":o&&2<=i&&i<=4&&(u<12||14<u)?"few":o&&1!=n&&(0==i||1==i)||o&&5<=i&&i<=9||o&&12<=u&&u<=14?"many":"other"},prg:function(e,t){var r=String(e).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==e,u=i&&r[0].slice(-1),a=i&&r[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return t?"other":i&&0==u||11<=a&&a<=19||2==o&&11<=c&&c<=19?"zero":1==u&&11!=a||2==o&&1==s&&11!=c||2!=o&&1==s?"one":"other"},ps:i[1],pt:function(e,t){var r=String(e).split(".")[0];return t?"other":0==r||1==r?"one":"other"},"pt-PT":i[3],rm:i[1],ro:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e&&r[0].slice(-2);return t?1==e?"one":"other":1==e&&n?"one":!n||0==e||1!=e&&1<=o&&o<=19?"few":"other"},rof:i[1],root:i[0],ru:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-1),u=n.slice(-2);return t?"other":o&&1==i&&11!=u?"one":o&&2<=i&&i<=4&&(u<12||14<u)?"few":o&&0==i||o&&5<=i&&i<=9||o&&11<=u&&u<=14?"many":"other"},rwk:i[1],sah:i[0],saq:i[1],sd:i[1],sdh:i[1],se:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},seh:i[1],ses:i[0],sg:i[0],sh:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&2<=u&&u<=4&&(a<12||14<a)||2<=c&&c<=4&&(s<12||14<s)?"few":"other"},shi:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":0<=e&&e<=1?"one":n&&2<=e&&e<=10?"few":"other"},si:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"";return t?"other":0==e||1==e||0==n&&1==o?"one":"other"},sk:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1];return t?"other":1==e&&o?"one":2<=n&&n<=4&&o?"few":o?"other":"many"},sl:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=n.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":o&&(3==i||4==i)||!o?"few":"other"},sma:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smi:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smj:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smn:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sms:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sn:i[1],so:i[1],sq:function(e,t){var r=String(e).split("."),n=Number(r[0])==e,o=n&&r[0].slice(-1),i=n&&r[0].slice(-2);return t?1==e?"one":4==o&&14!=i?"many":"other":1==e?"one":"other"},sr:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=n.slice(-2),c=o.slice(-1),s=o.slice(-2);return t?"other":i&&1==u&&11!=a||1==c&&11!=s?"one":i&&2<=u&&u<=4&&(a<12||14<a)||2<=c&&c<=4&&(s<12||14<s)?"few":"other"},ss:i[1],ssy:i[1],st:i[1],sv:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),u=o&&r[0].slice(-2);return t?1!=i&&2!=i||11==u||12==u?"other":"one":1==e&&n?"one":"other"},sw:i[3],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[2],tig:i[1],tk:function(e,t){var r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-1);return t?6==n||9==n||10==e?"few":"other":1==e?"one":"other"},tl:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],u=n.slice(-1),a=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=u&&6!=u&&9!=u||!i&&4!=a&&6!=a&&9!=a?"one":"other"},tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":0==e||1==e||n&&11<=e&&e<=99?"one":"other"},ug:i[1],uk:function(e,t){var r=String(e).split("."),n=r[0],o=!r[1],i=Number(r[0])==e,u=i&&r[0].slice(-1),a=i&&r[0].slice(-2),c=n.slice(-1),s=n.slice(-2);return t?3==u&&13!=a?"few":"other":o&&1==c&&11!=s?"one":o&&2<=c&&c<=4&&(s<12||14<s)?"few":o&&0==c||o&&5<=c&&c<=9||o&&11<=s&&s<=14?"many":"other"},ur:i[3],uz:i[1],ve:i[1],vi:function(e,t){return t&&1==e?"one":"other"},vo:i[1],vun:i[1],wa:i[2],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[3],yo:i[0],yue:i[0],zh:i[0],zu:function(e,t){return t?"other":0<=e&&e<=1?"one":"other"}},"object"==typeof r?t.exports=o:n.plurals=o},{}],13:[function(e,t,r){"use strict";function Re(e,t,r,n){this.message=e,this.expected=t,this.found=r,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Re)}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(Re,Error),Re.buildMessage=function(e,t){var r,i={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?u(e.parts[t][0])+"-"+u(e.parts[t][1]):u(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function u(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,r,n,o=new Array(e.length);for(t=0;t<e.length;t++)o[t]=(n=e[t],i[n.type](n));if(o.sort(),0<o.length){for(r=t=1;t<o.length;t++)o[t-1]!==o[t]&&(o[r]=o[t],r++);o.length=r}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+((r=t)?'"'+o(r)+'"':"end of input")+" found."},t.exports={SyntaxError:Re,parse:function(g,i){i=void 0!==i?i:{};var e,y={},t={start:Ee},r=Ee,m="#",w=we("#",!1),v=function(){return Je},b=function(){return{type:"octothorpe"}},S=function(e){return e.join("")},k="{",x=we("{",!1),E="}",A=we("}",!1),j=function(e){return{type:"argument",arg:e}},N=",",O=we(",",!1),F="select",z=we("select",!1),C=function(e,t){return i.strictNumberSign&&(Je=!1),t},D=function(e,t){return{type:"select",arg:e,cases:t}},T="plural",q=we("plural",!1),P="selectordinal",B=we("selectordinal",!1),J=function(e,t){return Je=!0,t},R=function(t,r,e,n){var o=("selectordinal"===r?i.ordinal:i.cardinal)||["zero","one","two","few","many","other"];return o&&o.length&&n.forEach(function(e){if(isNaN(e.key)&&o.indexOf(e.key)<0)throw new Error("Invalid key `"+e.key+"` for argument `"+t+"`. Valid "+r+" keys for this locale are `"+o.join("`, `")+"`, and explicit keys like `=0`.")}),Je=!1,{type:r,arg:t,offset:e||0,cases:n}},L=function(e,t,r){return{type:"function",arg:e,key:t,param:r}},n=/^[^\t-\r \x85\u200E\u200F\u2028\u2029!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,o=ve([["\t","\r"]," ","…","‎","‏","\u2028","\u2029",["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!0,!1),u=function(e,t){return{key:e,tokens:t}},a=function(e){return e},M="offset",_=we("offset",!1),U=":",$=we(":",!1),G=function(e){return e},c="=",s=we("=",!1),l=/^[^}]/,f=ve(["}"],!0,!1),h="''",p=we("''",!1),d=function(){return"'"},I=/^[^']/,H=ve(["'"],!0,!1),Z="'{",K=we("'{",!1),V="'",Y=we("'",!1),W=function(e){return"{"+e.join("")},Q="'}",X=we("'}",!1),ee=function(e){return"}"+e.join("")},te="'#",re=we("'#",!1),ne=function(e){return"#"+e.join("")},oe=function(e){return e[0]},ie=function(e){return!Je},ue=function(e){return e},ae=/^[^{}#\0-\x08\x0E-\x1F\x7F]/,ce=ve(["{","}","#",["\0","\b"],["",""],""],!0,!1),se=/^[0-9]/,le=ve([["0","9"]],!1,!1),fe=/^[\t-\r \x85\u200E\u200F\u2028\u2029]/,he=ve([["\t","\r"]," ","…","‎","‏","\u2028","\u2029"],!1,!1),pe=0,de=[{line:1,column:1}],me=0,ge=[],ye=0;if("startRule"in i){if(!(i.startRule in t))throw new Error("Can't start parsing from rule \""+i.startRule+'".');r=t[i.startRule]}function we(e,t){return{type:"literal",text:e,ignoreCase:t}}function ve(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function be(e){var t,r=de[e];if(r)return r;for(t=e-1;!de[t];)t--;for(r={line:(r=de[t]).line,column:r.column};t<e;)10===g.charCodeAt(t)?(r.line++,r.column=1):r.column++,t++;return de[e]=r}function Se(e,t){var r=be(e),n=be(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function ke(e){pe<me||(me<pe&&(me=pe,ge=[]),ge.push(e))}function xe(e,t,r){return new Re(Re.buildMessage(e,t),e,t,r)}function Ee(){var e,t;for(e=[],t=Ae();t!==y;)e.push(t),t=Ae();return e}function Ae(){var e,t,r,n,o,i,u,a,c,s,l,f,h,p,d;if(f=pe,123===g.charCodeAt(pe)?(h=k,pe++):(h=y,0===ye&&ke(x)),h!==y&&Be()!==y&&(p=je())!==y&&Be()!==y?(125===g.charCodeAt(pe)?(d=E,pe++):(d=y,0===ye&&ke(A)),d!==y?(h=j(p),f=h):(pe=f,f=y)):(pe=f,f=y),(e=f)===y&&(e=function(){var e,t,r,n,o,i,u,a,c;if(e=pe,123===g.charCodeAt(pe)?(t=k,pe++):(t=y,0===ye&&ke(x)),t!==y)if(Be()!==y)if((r=je())!==y)if(Be()!==y)if(44===g.charCodeAt(pe)?(n=N,pe++):(n=y,0===ye&&ke(O)),n!==y)if(Be()!==y)if(pe,g.substr(pe,6)===F?(o=F,pe+=6):(o=y,0===ye&&ke(z)),o!==y&&(o=C(r,o)),o!==y)if((o=Be())!==y)if(44===g.charCodeAt(pe)?(i=N,pe++):(i=y,0===ye&&ke(O)),i!==y)if(Be()!==y){if(u=[],(a=Ne())!==y)for(;a!==y;)u.push(a),a=Ne();else u=y;u!==y&&(a=Be())!==y?(125===g.charCodeAt(pe)?(c=E,pe++):(c=y,0===ye&&ke(A)),c!==y?(t=D(r,u),e=t):(pe=e,e=y)):(pe=e,e=y)}else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;return e}())===y&&(e=function(){var e,t,r,n,o,i,u,a,c,s,l,f,h,p,d,m;if(e=pe,123===g.charCodeAt(pe)?(t=k,pe++):(t=y,0===ye&&ke(x)),t!==y)if(Be()!==y)if((r=je())!==y)if(Be()!==y)if(44===g.charCodeAt(pe)?(n=N,pe++):(n=y,0===ye&&ke(O)),n!==y)if(Be()!==y)if(o=pe,g.substr(pe,6)===T?(i=T,pe+=6):(i=y,0===ye&&ke(q)),i===y&&(g.substr(pe,13)===P?(i=P,pe+=13):(i=y,0===ye&&ke(B))),i!==y&&(i=J(r,i)),(o=i)!==y)if((i=Be())!==y)if(44===g.charCodeAt(pe)?(u=N,pe++):(u=y,0===ye&&ke(O)),u!==y)if(Be()!==y)if(f=pe,(h=Be())!==y?(g.substr(pe,6)===M?(p=M,pe+=6):(p=y,0===ye&&ke(_)),p!==y&&Be()!==y?(58===g.charCodeAt(pe)?(d=U,pe++):(d=y,0===ye&&ke($)),d!==y&&Be()!==y&&(m=Pe())!==y&&Be()!==y?(h=G(m),f=h):(pe=f,f=y)):(pe=f,f=y)):(pe=f,f=y),(a=f)===y&&(a=null),a!==y){if(c=[],(s=Oe())!==y)for(;s!==y;)c.push(s),s=Oe();else c=y;c!==y&&(s=Be())!==y?(125===g.charCodeAt(pe)?(l=E,pe++):(l=y,0===ye&&ke(A)),l!==y?(t=R(r,o,a,c),e=t):(pe=e,e=y)):(pe=e,e=y)}else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;else pe=e,e=y;return e}())===y&&(n=pe,123===g.charCodeAt(pe)?(o=k,pe++):(o=y,0===ye&&ke(x)),o!==y&&Be()!==y&&(i=je())!==y&&Be()!==y?(44===g.charCodeAt(pe)?(u=N,pe++):(u=y,0===ye&&ke(O)),u!==y&&Be()!==y?(a=pe,(c=je())!==y&&(c=C(i,c)),(a=c)!==y&&(c=Be())!==y?((s=function(){var e,t,r,n,o;if(e=pe,(t=Be())!==y)if(44===g.charCodeAt(pe)?(r=N,pe++):(r=y,0===ye&&ke(O)),r!==y){if(n=[],(o=ze())!==y)for(;o!==y;)n.push(o),o=ze();else n=y;n!==y?(t=S(n),e=t):(pe=e,e=y)}else pe=e,e=y;else pe=e,e=y;return e}())===y&&(s=null),s!==y?(125===g.charCodeAt(pe)?(l=E,pe++):(l=y,0===ye&&ke(A)),l!==y?(o=L(i,a,s),n=o):(pe=n,n=y)):(pe=n,n=y)):(pe=n,n=y)):(pe=n,n=y)):(pe=n,n=y),(e=n)===y)&&(e=pe,35===g.charCodeAt(pe)?(t=m,pe++):(t=y,0===ye&&ke(w)),t!==y&&(r=(r=v())?void 0:y)!==y?e=t=b():(pe=e,e=y),e===y)){if(e=pe,t=[],(r=qe())!==y)for(;r!==y;)t.push(r),r=qe();else t=y;t!==y&&(t=S(t)),e=t}return e}function je(){var e,t,r;if(e=pe,t=[],n.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(o)),r!==y)for(;r!==y;)t.push(r),n.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(o));else t=y;return e=t!==y?g.substring(e,pe):t}function Ne(){var e,t,r;return e=pe,Be()!==y&&(t=je())!==y&&Be()!==y&&(r=Fe())!==y?e=u(t,r):(pe=e,e=y),e}function Oe(){var e,t,r,n,o,i;return e=pe,Be()!==y&&((n=je())===y&&(n=pe,61===g.charCodeAt(pe)?(o=c,pe++):(o=y,0===ye&&ke(s)),o!==y&&(i=Pe())!==y?(o=G(i),n=o):(pe=n,n=y)),(t=n)!==y)&&Be()!==y&&(r=Fe())!==y?e=u(t,r):(pe=e,e=y),e}function Fe(){var e,t,r,n,o,i;if(e=pe,123===g.charCodeAt(pe)?(t=k,pe++):(t=y,0===ye&&ke(x)),t!==y)if(r=pe,(n=Be())!==y?(o=pe,ye++,123===g.charCodeAt(pe)?(i=k,pe++):(i=y,0===ye&&ke(x)),ye--,i!==y?(pe=o,o=void 0):o=y,o!==y?r=n=[n,o]:(pe=r,r=y)):(pe=r,r=y),r===y&&(r=null),r!==y){for(n=[],o=Ae();o!==y;)n.push(o),o=Ae();n!==y&&(o=Be())!==y?(125===g.charCodeAt(pe)?(i=E,pe++):(i=y,0===ye&&ke(A)),i!==y?e=t=a(n):(pe=e,e=y)):(pe=e,e=y)}else pe=e,e=y;else pe=e,e=y;return e}function ze(){var e;return(e=Ce())===y&&(e=Te())===y&&(l.test(g.charAt(pe))?(e=g.charAt(pe),pe++):(e=y,0===ye&&ke(f))),e}function Ce(){var e;return pe,g.substr(pe,2)===h?(e=h,pe+=2):(e=y,0===ye&&ke(p)),e!==y&&(e=d()),e}function De(){var e,t,r;if((e=Ce())===y){if(e=pe,t=[],I.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(H)),r!==y)for(;r!==y;)t.push(r),I.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(H));else t=y;t!==y&&(t=S(t)),e=t}return e}function Te(){var e,t,r,n;if(e=pe,g.substr(pe,2)===Z?(t=Z,pe+=2):(t=y,0===ye&&ke(K)),t!==y){for(r=[],n=De();n!==y;)r.push(n),n=De();r!==y?(39===g.charCodeAt(pe)?(n=V,pe++):(n=y,0===ye&&ke(Y)),n!==y?e=t=W(r):(pe=e,e=y)):(pe=e,e=y)}else pe=e,e=y;if(e===y)if(e=pe,g.substr(pe,2)===Q?(t=Q,pe+=2):(t=y,0===ye&&ke(X)),t!==y){for(r=[],n=De();n!==y;)r.push(n),n=De();r!==y?(39===g.charCodeAt(pe)?(n=V,pe++):(n=y,0===ye&&ke(Y)),n!==y?e=t=ee(r):(pe=e,e=y)):(pe=e,e=y)}else pe=e,e=y;return e}function qe(){var e,t;return(e=Ce())===y&&(e=function(){var e,t,r,n,o,i;if((e=Te())===y){if(r=t=e=pe,g.substr(pe,2)===te?(n=te,pe+=2):(n=y,0===ye&&ke(re)),n!==y){for(o=[],i=De();i!==y;)o.push(i),i=De();o!==y?(39===g.charCodeAt(pe)?(i=V,pe++):(i=y,0===ye&&ke(Y)),i!==y?r=n=ne(o):(pe=r,r=y)):(pe=r,r=y)}else pe=r,r=y;r!==y&&(n=(n=v())?void 0:y)!==y?t=r=[r,n]:(pe=t,t=y),t!==y&&(t=oe(t)),(e=t)===y&&(39===g.charCodeAt(pe)?(e=V,pe++):(e=y,0===ye&&ke(Y)))}return e}())===y&&(e=pe,35===g.charCodeAt(pe)?(t=m,pe++):(t=y,0===ye&&ke(w)),t!==y&&(ie(t)?void 0:y)!==y?e=t=ue(t):(pe=e,e=y),e===y&&(ae.test(g.charAt(pe))?(e=g.charAt(pe),pe++):(e=y,0===ye&&ke(ce)))),e}function Pe(){var e,t,r;if(e=pe,t=[],se.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(le)),r!==y)for(;r!==y;)t.push(r),se.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(le));else t=y;return e=t!==y?g.substring(e,pe):t}function Be(){var e,t,r;for(e=pe,t=[],fe.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(he));r!==y;)t.push(r),fe.test(g.charAt(pe))?(r=g.charAt(pe),pe++):(r=y,0===ye&&ke(he));return e=t!==y?g.substring(e,pe):t}var Je=!1;if((e=r())!==y&&pe===g.length)return e;throw e!==y&&pe<g.length&&ke({type:"end"}),xe(ge,me<g.length?g.charAt(me):null,me<g.length?Se(me,me+1):Se(me,me))}}},{}],14:[function(e,t,r){var n,o,i=t.exports={};function u(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===u||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:u}catch(e){n=u}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var s,l=[],f=!1,h=-1;function p(){f&&s&&(f=!1,s.length?l=s.concat(l):h=-1,l.length&&d())}function d(){if(!f){var e=c(p);f=!0;for(var t=l.length;t;){for(s=l,l=[];++h<t;)s&&s[h].run();h=-1,t=l.length}s=null,f=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||f||c(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],15:[function(e,t,r){t.exports=e("./reserved-words")},{"./reserved-words":16}],16:[function(e,t,r){var o=e("assert"),i={es3:3,es5:5,es2015:6,es7:7,es6:6,default:5,next:6},u=r.KEYWORDS={};function n(){return Array.prototype.map.call(arguments,function(e){return"string"==typeof e?e:Object.keys(e).join(" ")}).join(" ").split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{})}r.check=function(e,t,r){var n=i[t=t||i.default]||t;return r&&5<=n&&(n+="-strict"),o(u[n],"Unknown dialect"),u[n].hasOwnProperty(e)},u[3]=n("break else new var","case finally return void","catch for switch while","continue function this with","default if throw","delete in try","do instanceof typeof","abstract enum int short","boolean export interface static","byte extends long super","char final native synchronized","class float package throws","const goto private transient","debugger implements protected volatile","double import public","null true false"),u[5]=n("break do instanceof typeof","case else new var","catch finally return void","continue for switch while","debugger function this with","default if throw","delete in try","class enum extends super","const export import","null true false"),u["5-strict"]=n(u[5],"implements let private public yield","interface package protected static"),u[6]=n("break do in typeof","case else instanceof var","catch export new void","class extends return while","const finally super with","continue for switch yield","debugger function this","default if throw","delete import try","enum await","null true false"),u["6-strict"]=n(u[6],"let static","implements package protected","interface private public")},{assert:10}],17:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],18:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],19:[function(h,e,N){(function(n,o){var a=/%[sdj%]/g;N.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(e).replace(a,function(e){if("%%"===e)return"%";if(o<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r<o;u=n[++r])w(u)||!l(u)?i+=" "+u:i+=" "+c(u);return i},N.deprecate=function(e,t){if(S(o.process))return function(){return N.deprecate(e,t).apply(this,arguments)};if(!0===n.noDeprecation)return e;var r=!1;return function(){if(!r){if(n.throwDeprecation)throw new Error(t);n.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}};var e,i={};function c(e,t){var r={seen:[],stylize:s};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&N._extend(r,t),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),p(r,e,r.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function s(e,t){return e}function p(t,r,n){if(t.customInspect&&r&&A(r.inspect)&&r.inspect!==N.inspect&&(!r.constructor||r.constructor.prototype!==r)){var e=r.inspect(n,t);return b(e)||(e=p(t,e,n)),e}var o=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(w(t))return e.stylize("null","null")}(t,r);if(o)return o;var i,u=Object.keys(r),a=(i={},u.forEach(function(e,t){i[e]=!0}),i);if(t.showHidden&&(u=Object.getOwnPropertyNames(r)),E(r)&&(0<=u.indexOf("message")||0<=u.indexOf("description")))return d(r);if(0===u.length){if(A(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(k(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return d(r)}var s,l="",f=!1,h=["{","}"];(g(r)&&(f=!0,h=["[","]"]),A(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return k(r)&&(l=" "+RegExp.prototype.toString.call(r)),x(r)&&(l=" "+Date.prototype.toUTCString.call(r)),E(r)&&(l=" "+d(r)),0!==u.length||f&&0!=r.length?n<0?k(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),s=f?function(t,r,n,o,e){for(var i=[],u=0,a=r.length;u<a;++u)j(r,String(u))?i.push(m(t,r,n,o,String(u),!0)):i.push("");return e.forEach(function(e){e.match(/^\d+$/)||i.push(m(t,r,n,o,e,!0))}),i}(t,r,n,a,u):u.map(function(e){return m(t,r,n,a,e,f)}),t.seen.pop(),function(e,t,r){if(60<e.reduce(function(e,t){return 0,0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(s,l,h)):h[0]+l+h[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,o,i){var u,a,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),j(n,o)||(u="["+o+"]"),a||(e.seen.indexOf(c.value)<0?-1<(a=w(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\n")&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),S(u)){if(i&&o.match(/^\d+$/))return a;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+a}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function w(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function S(e){return void 0===e}function k(e){return l(e)&&"[object RegExp]"===t(e)}function l(e){return"object"==typeof e&&null!==e}function x(e){return l(e)&&"[object Date]"===t(e)}function E(e){return l(e)&&("[object Error]"===t(e)||e instanceof Error)}function A(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function r(e){return e<10?"0"+e.toString(10):e.toString(10)}N.debuglog=function(t){if(S(e)&&(e=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(e)){var r=n.pid;i[t]=function(){var e=N.format.apply(N,arguments);console.error("%s %d: %s",t,r,e)}}else i[t]=function(){};return i[t]},(N.inspect=c).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},N.isArray=g,N.isBoolean=y,N.isNull=w,N.isNullOrUndefined=function(e){return null==e},N.isNumber=v,N.isString=b,N.isSymbol=function(e){return"symbol"==typeof e},N.isUndefined=S,N.isRegExp=k,N.isObject=l,N.isDate=x,N.isError=E,N.isFunction=A,N.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},N.isBuffer=h("./support/isBuffer");var f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}N.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[r(e.getHours()),r(e.getMinutes()),r(e.getSeconds())].join(":"),[e.getDate(),f[e.getMonth()],t].join(" ")),N.format.apply(N,arguments))},N.inherits=h("inherits"),N._extend=function(e,t){if(!t||!l(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,h("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":18,_process:14,inherits:17}]},{},[7])(7)});
//# sourceMappingURL=messageformat.min.js.map
{
"name": "messageformat",
"version": "2.0.0-beta.5",
"version": "2.0.0",
"description": "PluralFormat and SelectFormat Message and i18n Tool - A JavaScript Implemenation of the ICU standards.",

@@ -20,10 +20,6 @@ "keywords": [

"license": "MIT",
"homepage": "https://messageformat.github.io/",
"repository": {
"type": "git",
"url": "https://github.com/messageformat/messageformat.js.git"
},
"main": "lib/index.js",
"homepage": "https://messageformat.github.io/messageformat/",
"repository": "messageformat/messageformat",
"main": "lib/messageformat.js",
"files": [
"doc",
"example",

@@ -33,21 +29,37 @@ "lib",

"messageformat.min.js",
"messageformat.min.js.map"
"messageformat.min.js.map",
"messages.js"
],
"dependencies": {
"make-plural": "^4.1.1",
"messageformat-parser": "^3.0.0-beta.2",
"messageformat-parser": "^3.0.0",
"reserved-words": "^0.1.2"
},
"devDependencies": {
"browserify": "^13.3.0",
"browserify": "^16.1.1",
"expect.js": "*",
"ink-docstrap": "github:messageformat/docstrap#messageformat",
"jsdoc": "^3.5.5",
"mocha": "~3.0.2",
"serve": "^6.4.3",
"mocha": "^5.0.5",
"rimraf": "^2.6.2",
"serve": "^6.5.3",
"tmp": "0.0.33",
"uglify-js": "^2.8.29"
"uglify-js": "^3.3.18"
},
"scripts": {
"prepublish": "make all",
"test": "mocha"
"build:all": "npm run build && npm run build:example && npm run build:docs",
"build:browser": "browserify lib/messageformat.js -s MessageFormat -o messageformat.js",
"build:docs": "jsdoc -c jsdoc-conf.json && ./fix-docs.sh",
"build:example": "./cli/messageformat.js -l en,fr -n i18n -o example/i18n.js example/",
"build:minify": "uglifyjs messageformat.js --compress --mangle --output messageformat.min.js --source-map \"url='messageformat.min.js.map'\"",
"build": "npm run build:browser && npm run build:minify",
"clean:all": "npm run clean && npm run clean:docs",
"clean:docs": "rimraf docs/*html docs/fonts docs/img docs/logo docs/scripts docs/styles",
"clean": "rimraf messageformat.*js*",
"test:browser": "npm run build:browser && serve",
"test": "mocha",
"preversion": "npm run prepublishOnly",
"version": "git commit -am 'Update version' && git add -f messageformat.*js* docs example/i18n.js",
"postversion": "git reset --hard HEAD^ && npm run build:docs && git commit -am 'Update documentation'",
"prepublishOnly": "npm run clean:all && npm test && npm run build:all"
},

@@ -54,0 +66,0 @@ "browser": {

@@ -0,9 +1,9 @@

<div class="main-title">
<img align="right" width="100" height="100" src="logo/messageformat.svg">
<a class="badge" href="http://travis-ci.org/messageformat/messageformat"><img src="https://secure.travis-ci.org/messageformat/messageformat.svg" alt="Build Status"></a>
<h1>messageformat</h1>
</div>
[![Build Status](https://secure.travis-ci.org/messageformat/messageformat.js.svg)](http://travis-ci.org/messageformat/messageformat.js)
The experience and subtlety of your program's text can be important. Messageformat is a mechanism for handling both **pluralization** and **gender** in your applications. It can also lead to much better translations, as it's designed to support [all the languages](http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) included in the [Unicode CLDR](http://cldr.unicode.org/).
# messageformat
The experience and subtlety of your program's text can be important. ICU MessageFormat is a mechanism for handling both **pluralization** and **gender** in your applications. It can also lead to much better translations, as it's designed to support [all the languages](http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) included in the [Unicode CLDR](http://cldr.unicode.org/).
The ICU has an [official guide](http://userguide.icu-project.org/formatparse/messages) for the format. Messageformat supports and extends all parts of the [standard](http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html), with the exception of the deprecated ChoiceFormat.

@@ -13,5 +13,3 @@

Please see [messageformat.github.io](https://messageformat.github.io/) for a guide to MessageFormat, more information on on the build-time use of messageformat, and the code documentation.
## What problems does it solve?

@@ -22,6 +20,8 @@

> There are 1 results.
> There are 1 result(s).
> Number of results: 5.
> There are 2 result(s).
> Number of results: 3.
On a more fundamental level, messageformat and its associated tools can help you build an effective workflow for UI texts and translations, keeping message sources in human-friendly formats, compiling them into JavaScript during your build phase, and making them easy to use from your application code.
## What does it look like?

@@ -32,5 +32,11 @@

```js
> const msg = `{GENDER, select, male{He} female{She} other{They} } found
{RES, plural, =0{no results} one{1 result} other{# results} } in the
{CAT, selectordinal, one{#st} two{#nd} few{#rd} other{#th} } category.`;
const msgSrc = `{GENDER, select,
male {He}
female {She}
other {They}
} found {RES, plural,
=0 {no results}
one {1 result}
other {# results}
}.`
```

@@ -41,35 +47,17 @@

```js
> const mfunc = new MessageFormat('en').compile(msg);
const MessageFormat = require('messageformat')
const mf = new MessageFormat('en')
const msg = mf.compile(msgSrc)
> mfunc({ GENDER: 'male', RES: 1, CAT: 2 })
'He found 1 result in the 2nd category.'
> mfunc({ GENDER: 'female', RES: 1, CAT: 2 })
'She found 1 result in the 2nd category.'
> mfunc({ GENDER: 'male', RES: 2, CAT: 1 })
'He found 2 results in the 1st category.'
> mfunc({ RES: 2, CAT: 2 })
'They found 2 results in the 2nd category.'
msg({ GENDER: 'male', RES: 1 }) // 'He found 1 result.'
msg({ GENDER: 'female', RES: 1 }) // 'She found 1 result.'
msg({ GENDER: 'male', RES: 0 }) // 'He found no results.'
msg({ RES: 2 }) // 'They found 2 results.'
```
## Features
## Getting Started
* Handles arbitrary nesting of pluralization and select rules
* Supports all ~466 languages included in the Unicode CLDR
* Works on the server and the client
* Remarkably useful even for single-language use
* Speed & efficiency: Can pre-compile messages to JavaScript code
* Great for speed: message formatting is just string concatenation
* Compatible with other MessageFormat implementations
* Extendable with custom formatting functions
* Very whitespace tolerant
* Supports Unicode
To install just the core package, use:
## Installation
### Node
```

@@ -79,57 +67,5 @@ npm install messageformat

```js
const MessageFormat = require('messageformat');
const mf = new MessageFormat('en');
```
This includes the MessageFormat compiler and a runtime accessor class that provides a slightly nicer API for working with larger numbers of messages. Our [Format Guide] will help with the ICU MessageFormat Syntax, and the [Build-time Compilation Guide] provides some options for integrating messageformat to be a part of your workflow around UI texts and translations.
### Bower
```
bower install messageformat
```
```html
<script src="path/to/bower_components/messageformat/messageformat.js"></script>
<script>
const mf = new MessageFormat('en');
</script>
```
### Git / Direct download
The tagged [releases](https://github.com/messageformat/messageformat.js/releases) available on github.com include all of the compiled files that are kept off the master branch of the repository. When working with a clone of the repository, you'll likely want to run `make all` to generate them yourself.
## License
You may use this software under the MIT License.
## Contributor License Agreement
We require all contributions to be covered under the JS Foundation's [Contributor License Agreement](https://js.foundation/CLA/). This can be done electronically and essentially ensures that you are making it clear that your contributions are your contributions, you have the legal right to contribute and you are transferring the copyright of your works to the JavaScript Foundation.
If you are an unfamiliar contributor to the committer assessing your pull request, it is best to make it clear how you are covered by a CLA in the notes of the pull request. The committer will verify your status.
If your GitHub user id you are submitting your pull request from differs from the e-mail address which you have signed your CLA under, you should specifically note what you have your CLA filed under (and for CCLA that you are listed under your company's authorised contributors).
## Authors
* Alex Sexton - [@SlexAxton](http://twitter.com/SlexAxton) - <http://alexsexton.com/>
* Eemeli Aro - [@eemeli](http://twitter.com/eemeli_aro) - <https://github.com/eemeli>
## Credits
Thanks to:
* [Bazaarvoice](https://github.com/Bazaarvoice) - Alex's previous employer - for letting him do cool stuff like this.
* Google has an implementation that is similar in Google Closure, I tried to vet my code against many of their tests.
* Norbert Lindenberg for showing how good it can be.
## Implementations in other languages
[Jeff Hansen](https://github.com/jeffijoe) ([@jeffijoe](https://twitter.com/jeffijoe)) has written an [implementation for .NET](https://github.com/jeffijoe/messageformat.net) - it's a Portable Class Library, making it possible to use on iOS, Android, Windows Phone, and pretty much any other .NET target.
## Additional tools
[icu-converter](https://github.com/alex-dow/icu-converter) is a NodeJS tool for converting message files in the [ICU Resource Bundle](http://userguide.icu-project.org/locale/resources) format into JSON or .property files.
[Format Guide]: https://messageformat.github.io/messageformat/page-guide
[Build-time Compilation Guide]: https://messageformat.github.io/messageformat/page-build

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc