messageformat
Advanced tools
Comparing version 1.0.0 to 1.0.1
/** @file messageformat.js - ICU PluralFormat + SelectFormat for JavaScript | ||
* | ||
* @author Alex Sexton - @SlexAxton, Eemeli Aro | ||
* @version 1.0.0 | ||
* @version 1.0.1 | ||
* @copyright 2012-2016 Alex Sexton, Eemeli Aro, and Contributors | ||
@@ -83,2 +83,16 @@ * @license To use or fork, MIT. To contribute back, Dojo CLA | ||
/** Escape special characaters | ||
* | ||
* Prefix the characters `#`, `{`, `}` and `\` in the input string with a `\`. | ||
* This will allow those characters to not be considered as MessageFormat | ||
* control characters. | ||
* | ||
* @param {string} str - The input string | ||
* @returns {string} The escaped string | ||
*/ | ||
MessageFormat.escape = function(str) { | ||
return str.replace(/[#{}\\]/g, '\\$&'); | ||
} | ||
/** Default number formatting functions in the style of ICU's | ||
@@ -127,3 +141,3 @@ * {@link http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html simpleArg syntax} | ||
return new Function("v,lc,p", | ||
"return Intl.NumberFormat(lc,\n" + | ||
"return new Intl.NumberFormat(lc,\n" + | ||
" p=='integer' ? {maximumFractionDigits:0}\n" + | ||
@@ -130,0 +144,0 @@ " : p=='percent' ? {style:'percent'}\n" + |
@@ -1,3 +0,3 @@ | ||
!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(a,u){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){var r=t[a][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);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){function r(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)}var n=JSON.stringify(r(t)?"":"");return n+" + "+e+" + "+n},n.prototype.cases=function(e,t){var r=!0,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(this.mf.intlSupport&&!(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]="function"==typeof i(this.mf)?i(this.mf):i}if(!this.mf.fmt[e.key])throw new Error("Formatting function "+JSON.stringify(e.key)+" not found!");if(o.push(JSON.stringify(this.lc)),e.params)switch(e.params.length){case 0:break;case 1:o.push(JSON.stringify(e.params[0]));break;default:o.push(JSON.stringify(e.params))}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:[]},o=i(e,n).map(function(e){return this.token(e)},this);return"function(d) { return "+(o.join(" + ")||'""')+"; }"}var a={};for(var u in e){var s=r.hasOwnProperty(u)?u:t;a[u]=this.compile(e[u],s,r)}return a}},{"messageformat-parser":8,"reserved-words":10}],2:[function(e,t,r){function n(t,r){for(var n=e("make-plural/plurals"),o=e("make-plural/pluralCategories"),i=t;i;i=i.replace(/[-_]?[^-_]*$/,"")){var a=n[i];if(a){var u=r?{cardinal:[],ordinal:[]}:o[i]||{},s=function(){return a.apply(this,arguments)};return s.toString=function(){return a.toString()},s.cardinal=u.cardinal,s.ordinal=u.ordinal,s}}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.fmt={},this.runtime=new a(this)}var i=e("./compiler"),a=e("./runtime");o.defaultLocale="en",o.formatters={number:function(e){return new Function("v,lc,p","return Intl.NumberFormat(lc,\n p=='integer' ? {maximumFractionDigits:0}\n : p=='percent' ? {style:'percent'}\n : p=='currency' ? {style:'currency', currency:'"+(e.currency||"USD")+"', minimumFractionDigits:2, maximumFractionDigits:2}\n : {}).format(v)")},date:function(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)},time:function(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)}},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||"undefined"==typeof e,this},o.prototype.setIntlSupport=function(e){return this.intlSupport=!!e||"undefined"==typeof e,this},o.prototype.setStrictNumberSign=function(e){return this.strictNumberSign=!!e||"undefined"==typeof 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="",a=0;a<t;++a)o+=" ";for(var u in e)n.push("\n"+o+" "+i.propname(u)+": "+r(e[u],t+1));return"{"+n.join(",")+"\n"+o+"}"}var a;if(0==Object.keys(this.pluralFuncs).length)t||(t=o.defaultLocale),a={},a[t]=n(t,this.noPluralKeyChecks);else if(t){if(a={},a[t]=this.pluralFuncs[t],!a[t])throw new Error("Locale "+JSON.stringify(t)+"not found in "+JSON.stringify(this.pluralFuncs)+"!")}else a=this.pluralFuncs,t=Object.keys(a)[0];var u=new i(this),s=u.compile(e,t,a);if("object"!=typeof e){var c=new Function("number, plural, select, fmt",i.funcname(t),"return "+s),l=this.runtime;return c(l.number,l.plural,l.select,this.fmt,a[t])}var f=this.runtime.toString(a,u)+"\n",h=r(s),p=new Function(f+"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"exports":var t=[];for(var n in s)t.push(i.propname(n,"exports")+" = "+r(s[n]));return f+t.join(";\n");case"module.exports":return f+"module.exports = "+h;case"export default":return f+"export default "+h;case"":return f+"return "+h;default:return e.indexOf(".")>-1?f+e+" = "+h:f+["(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,"./runtime":3,"make-plural/pluralCategories":6,"make-plural/plurals":7}],3:[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 a=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 u in e)0==t?i.push("var "+u+" = "+r(e[u],t+1)+";\n"):i.push(a.propname(u)+": "+r(e[u],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[a.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}],4:[function(e,t,r){function n(e,t){return p.isUndefined(t)?""+t:p.isNumber(t)&&!isFinite(t)?t.toString():p.isFunction(t)||p.isRegExp(t)?t.toString():t}function o(e,t){return p.isString(e)?e.length<t?e:e.slice(0,t):e}function i(e){return o(JSON.stringify(e.actual,n),128)+" "+e.operator+" "+o(JSON.stringify(e.expected,n),128)}function a(e,t,r,n,o){throw new g.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:o})}function u(e,t){e||a(e,!0,t,"==",g.ok)}function s(e,t){if(e===t)return!0;if(p.isBuffer(e)&&p.isBuffer(t)){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return p.isDate(e)&&p.isDate(t)?e.getTime()===t.getTime():p.isRegExp(e)&&p.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:p.isObject(e)||p.isObject(t)?l(e,t):e==t}function c(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function l(e,t){if(p.isNullOrUndefined(e)||p.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(p.isPrimitive(e)||p.isPrimitive(t))return e===t;var r=c(e),n=c(t);if(r&&!n||!r&&n)return!1;if(r)return e=d.call(e),t=d.call(t),s(e,t);var o,i,a=y(e),u=y(t);if(a.length!=u.length)return!1;for(a.sort(),u.sort(),i=a.length-1;i>=0;i--)if(a[i]!=u[i])return!1;for(i=a.length-1;i>=0;i--)if(o=a[i],!s(e[o],t[o]))return!1;return!0}function f(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||t.call({},e)===!0)}function h(e,t,r,n){var o;p.isString(r)&&(n=r,r=null);try{t()}catch(e){o=e}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!o&&a(o,r,"Missing expected exception"+n),!e&&f(o,r)&&a(o,r,"Got unwanted exception"+n),e&&o&&r&&!f(o,r)||!e&&o)throw o}var p=e("util/"),d=Array.prototype.slice,m=Object.prototype.hasOwnProperty,g=t.exports=u;g.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=i(this),this.generatedMessage=!0);var t=e.stackStartFunction||a;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,o=t.name,u=n.indexOf("\n"+o);if(u>=0){var s=n.indexOf("\n",u+1);n=n.substring(s+1)}this.stack=n}}},p.inherits(g.AssertionError,Error),g.fail=a,g.ok=u,g.equal=function(e,t,r){e!=t&&a(e,t,r,"==",g.equal)},g.notEqual=function(e,t,r){e==t&&a(e,t,r,"!=",g.notEqual)},g.deepEqual=function(e,t,r){s(e,t)||a(e,t,r,"deepEqual",g.deepEqual)},g.notDeepEqual=function(e,t,r){s(e,t)&&a(e,t,r,"notDeepEqual",g.notDeepEqual)},g.strictEqual=function(e,t,r){e!==t&&a(e,t,r,"===",g.strictEqual)},g.notStrictEqual=function(e,t,r){e===t&&a(e,t,r,"!==",g.notStrictEqual)},g.throws=function(e,t,r){h.apply(this,[!0].concat(d.call(arguments)))},g.doesNotThrow=function(e,t){h.apply(this,[!1].concat(d.call(arguments)))},g.ifError=function(e){if(e)throw e};var y=Object.keys||function(e){var t=[];for(var r in e)m.call(e,r)&&t.push(r);return t}},{"util/":13}],5:[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}},{}],6:[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"]},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],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:o[1],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],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:o[1],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],zh:o[0],zu:o[1]})},{}],7:[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"},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),a=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==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"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),a=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==a?"many":"other"},brx:o[1],bs:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>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],a=n.slice(-2),u=o.slice(-2);return t?"other":i&&1==a||1==u?"one":i&&2==a||2==u?"two":i&&(3==a||4==a)||3==u||4==u?"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),a=o&&r[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"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],a=n.slice(-1),u=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=u&&6!=u&&9!=u?"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),a=n.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?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,a=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||e>10)&&i&&0==a?"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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>14)?"few":"other"},hsb:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-2),u=o.slice(-2);return t?"other":i&&1==a||1==u?"one":i&&2==a||2==u?"two":i&&(3==a||4==a)||3==u||4==u?"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],is:function(e,t){var r=String(e).split("."),n=r[0],o=Number(r[0])==e,i=n.slice(-1),a=n.slice(-2);return t?"other":o&&1==i&&11!=a||!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,a=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||e>10)&&i&&0==a?"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),a=o&&r[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>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,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),s=n.slice(-2),c=n.slice(-1);return t?"other":i&&0==a||u>=11&&u<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=u||2==o&&1==c&&11!=s||2!=o&&1==c?"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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1);return t?1==a&&11!=u?"one":2==a&&12!=u?"two":7!=a&&8!=a||17==u||18==u?"other":"many":i&&1==a||1==s?"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:o[1],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),a=n.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=n&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},prg:function(e,t){var r=String(e).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==e,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),s=n.slice(-2),c=n.slice(-1);return t?"other":i&&0==a||u>=11&&u<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=u||2==o&&1==c&&11!=s||2!=o&&1==c?"one":"other"},ps:o[1],pt:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":n&&e>=0&&e<=2&&2!=e?"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),a=n.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},rwk:o[1],sah:o[0],saq: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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>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),a=o&&r[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"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:o[1],tl:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=u&&6!=u&&9!=u?"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,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),s=n.slice(-1),c=n.slice(-2);return t?3==a&&13!=u?"few":"other":o&&1==s&&11!=c?"one":o&&s>=2&&s<=4&&(c<12||c>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&c>=11&&c<=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],zh:o[0],zu:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"}})},{}],8:[function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function o(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,o)}function i(e,t){function r(e,t){return{type:"literal",text:e,ignoreCase:t}}function n(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function i(){return{type:"end"}}function a(e){return{type:"other",description:e}}function u(t){var r,n=_e[t];if(n)return n;for(r=t-1;!_e[r];)r--;for(n=_e[r],n={line:n.line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return _e[t]=n,n}function s(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){Je<Re||(Je>Re&&(Re=Je,Ue=[]),Ue.push(e))}function l(e,t,r){return new o(o.buildMessage(e,t),e,t,r)}function f(){var e,t;for(e=[],t=h();t!==z;)e.push(t),t=h();return e}function h(){var t,r,n;if(t=p(),t===z&&(t=d(),t===z&&(t=m(),t===z&&(t=g(),t===z&&(t=Je,35===e.charCodeAt(Je)?(r=T,Je++):(r=z,0===$e&&c(D)),r!==z&&(Pe=t,r=q()),t=r,t===z))))){if(t=Je,r=[],n=j(),n!==z)for(;n!==z;)r.push(n),n=j();else r=z;r!==z&&(Pe=t,r=J(r)),t=r}return t}function p(){var t,r,n,o,i,a;return t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===$e&&c(_)),r!==z?(n=E(),n!==z?(o=y(),o!==z?(i=E(),i!==z?(125===e.charCodeAt(Je)?(a=R,Je++):(a=z,0===$e&&c(U)),a!==z?(Pe=t,r=$(o),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z),t}function d(){var t,r,n,o,i,a,u,s,l,f,h,p,d,m;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===$e&&c(_)),r!==z)if(n=E(),n!==z)if(o=y(),o!==z)if(i=E(),i!==z)if(44===e.charCodeAt(Je)?(a=M,Je++):(a=z,0===$e&&c(I)),a!==z)if(u=E(),u!==z)if(e.substr(Je,6)===L?(s=L,Je+=6):(s=z,0===$e&&c(B)),s!==z)if(l=E(),l!==z)if(44===e.charCodeAt(Je)?(f=M,Je++):(f=z,0===$e&&c(I)),f!==z)if(h=E(),h!==z){if(p=[],d=w(),d!==z)for(;d!==z;)p.push(d),d=w();else p=z;p!==z?(d=E(),d!==z?(125===e.charCodeAt(Je)?(m=R,Je++):(m=z,0===$e&&c(U)),m!==z?(Pe=t,r=G(o,p),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;return t}function m(){var t,r,n,o,i,a,u,s,l,f,h,p,d,m,g;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===$e&&c(_)),r!==z)if(n=E(),n!==z)if(o=y(),o!==z)if(i=E(),i!==z)if(44===e.charCodeAt(Je)?(a=M,Je++):(a=z,0===$e&&c(I)),a!==z)if(u=E(),u!==z)if(e.substr(Je,6)===Z?(s=Z,Je+=6):(s=z,0===$e&&c(H)),s===z&&(e.substr(Je,13)===K?(s=K,Je+=13):(s=z,0===$e&&c(W))),s!==z)if(l=E(),l!==z)if(44===e.charCodeAt(Je)?(f=M,Je++):(f=z,0===$e&&c(I)),f!==z)if(h=E(),h!==z)if(p=k(),p===z&&(p=null),p!==z){if(d=[],m=v(),m!==z)for(;m!==z;)d.push(m),m=v();else d=z;d!==z?(m=E(),m!==z?(125===e.charCodeAt(Je)?(g=R,Je++):(g=z,0===$e&&c(U)),g!==z?(Pe=t,r=V(o,s,p,d),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z; | ||
return t}function g(){var t,r,n,o,i,a,u,s,l,f,h;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===$e&&c(_)),r!==z)if(n=E(),n!==z)if(o=y(),o!==z)if(i=E(),i!==z)if(44===e.charCodeAt(Je)?(a=M,Je++):(a=z,0===$e&&c(I)),a!==z)if(u=E(),u!==z)if(s=y(),s!==z)if(l=E(),l!==z){for(f=[],h=x();h!==z;)f.push(h),h=x();f!==z?(125===e.charCodeAt(Je)?(h=R,Je++):(h=z,0===$e&&c(U)),h!==z?(Pe=t,r=Y(o,s,f),t=r):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;return t}function y(){var t,r,n,o,i;if(t=Je,r=Je,Q.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===$e&&c(X)),n!==z){for(o=[],ee.test(e.charAt(Je))?(i=e.charAt(Je),Je++):(i=z,0===$e&&c(te));i!==z;)o.push(i),ee.test(e.charAt(Je))?(i=e.charAt(Je),Je++):(i=z,0===$e&&c(te));o!==z?(n=[n,o],r=n):(Je=r,r=z)}else Je=r,r=z;return t=r!==z?e.substring(t,Je):r}function w(){var e,t,r,n,o;return e=Je,t=E(),t!==z?(r=y(),r!==z?(n=E(),n!==z?(o=b(),o!==z?(Pe=e,t=re(r,o),e=t):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z),e}function v(){var e,t,r,n,o;return e=Je,t=E(),t!==z?(r=S(),r!==z?(n=E(),n!==z?(o=b(),o!==z?(Pe=e,t=re(r,o),e=t):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z),e}function b(){var t,r,n,o,i,a;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===$e&&c(_)),r!==z)if(n=Je,o=E(),o!==z?(i=Je,$e++,123===e.charCodeAt(Je)?(a=P,Je++):(a=z,0===$e&&c(_)),$e--,a!==z?(Je=i,i=void 0):i=z,i!==z?(o=[o,i],n=o):(Je=n,n=z)):(Je=n,n=z),n===z&&(n=null),n!==z){for(o=[],i=h();i!==z;)o.push(i),i=h();o!==z?(i=E(),i!==z?(125===e.charCodeAt(Je)?(a=R,Je++):(a=z,0===$e&&c(U)),a!==z?(Pe=t,r=ne(o),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;return t}function k(){var t,r,n,o,i,a,u,s;return t=Je,r=E(),r!==z?(e.substr(Je,6)===oe?(n=oe,Je+=6):(n=z,0===$e&&c(ie)),n!==z?(o=E(),o!==z?(58===e.charCodeAt(Je)?(i=ae,Je++):(i=z,0===$e&&c(ue)),i!==z?(a=E(),a!==z?(u=N(),u!==z?(s=E(),s!==z?(Pe=t,r=se(u),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z),t}function S(){var t,r,n;return t=y(),t===z&&(t=Je,61===e.charCodeAt(Je)?(r=ce,Je++):(r=z,0===$e&&c(le)),r!==z?(n=N(),n!==z?(Pe=t,r=se(n),t=r):(Je=t,t=z)):(Je=t,t=z)),t}function x(){var t,r,n,o,i,a;return t=Je,r=E(),r!==z?(44===e.charCodeAt(Je)?(n=M,Je++):(n=z,0===$e&&c(I)),n!==z?(o=E(),o!==z?(i=y(),i!==z?(a=E(),a!==z?(Pe=t,r=fe(i),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z),t}function j(){var t,r,n,o,i,a;return he.test(e.charAt(Je))?(t=e.charAt(Je),Je++):(t=z,0===$e&&c(pe)),t===z&&(t=Je,e.substr(Je,2)===de?(r=de,Je+=2):(r=z,0===$e&&c(me)),r!==z&&(Pe=t,r=ge()),t=r,t===z&&(t=Je,e.substr(Je,2)===ye?(r=ye,Je+=2):(r=z,0===$e&&c(we)),r!==z&&(Pe=t,r=ve()),t=r,t===z&&(t=Je,e.substr(Je,2)===be?(r=be,Je+=2):(r=z,0===$e&&c(ke)),r!==z&&(Pe=t,r=Se()),t=r,t===z&&(t=Je,e.substr(Je,2)===xe?(r=xe,Je+=2):(r=z,0===$e&&c(je)),r!==z&&(Pe=t,r=Ne()),t=r,t===z&&(t=Je,e.substr(Je,2)===Oe?(r=Oe,Je+=2):(r=z,0===$e&&c(Ee)),r!==z?(n=O(),n!==z?(o=O(),o!==z?(i=O(),i!==z?(a=O(),a!==z?(Pe=t,r=Ae(n,o,i,a),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)))))),t}function N(){var t,r,n;if(t=Je,r=[],ze.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===$e&&c(Fe)),n!==z)for(;n!==z;)r.push(n),ze.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===$e&&c(Fe));else r=z;return t=r!==z?e.substring(t,Je):r}function O(){var t;return Ce.test(e.charAt(Je))?(t=e.charAt(Je),Je++):(t=z,0===$e&&c(Te)),t}function E(){var t,r,n;for(t=Je,r=[],De.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===$e&&c(qe));n!==z;)r.push(n),De.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===$e&&c(qe));return t=r!==z?e.substring(t,Je):r}t=void 0!==t?t:{};var A,z={},F={start:f},C=f,T="#",D=r("#",!1),q=function(){return{type:"octothorpe"}},J=function(e){return e.join("")},P="{",_=r("{",!1),R="}",U=r("}",!1),$=function(e){return{type:"argument",arg:e}},M=",",I=r(",",!1),L="select",B=r("select",!1),G=function(e,t){return{type:"select",arg:e,cases:t}},Z="plural",H=r("plural",!1),K="selectordinal",W=r("selectordinal",!1),V=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`.")}),{type:r,arg:e,offset:n||0,cases:o}},Y=function(e,t,r){return{type:"function",arg:e,key:t,params:r}},Q=/^[0-9a-zA-Z$_]/,X=n([["0","9"],["a","z"],["A","Z"],"$","_"],!1,!1),ee=/^[^ \t\n\r,.+={}]/,te=n([" ","\t","\n","\r",",",".","+","=","{","}"],!0,!1),re=function(e,t){return{key:e,tokens:t}},ne=function(e){return e},oe="offset",ie=r("offset",!1),ae=":",ue=r(":",!1),se=function(e){return e},ce="=",le=r("=",!1),fe=function(e){return e},he=/^[^{}#\\\0-\x08\x0E-\x1F\x7F]/,pe=n(["{","}","#","\\",["\0","\b"],["",""],""],!0,!1),de="\\\\",me=r("\\\\",!1),ge=function(){return"\\"},ye="\\#",we=r("\\#",!1),ve=function(){return"#"},be="\\{",ke=r("\\{",!1),Se=function(){return"{"},xe="\\}",je=r("\\}",!1),Ne=function(){return"}"},Oe="\\u",Ee=r("\\u",!1),Ae=function(e,t,r,n){return String.fromCharCode(parseInt("0x"+e+t+r+n))},ze=/^[0-9]/,Fe=n([["0","9"]],!1,!1),Ce=/^[0-9a-fA-F]/,Te=n([["0","9"],["a","f"],["A","F"]],!1,!1),De=/^[ \t\n\r]/,qe=n([" ","\t","\n","\r"],!1,!1),Je=0,Pe=0,_e=[{line:1,column:1}],Re=0,Ue=[],$e=0;if("startRule"in t){if(!(t.startRule in F))throw new Error("Can't start parsing from rule \""+t.startRule+'".');C=F[t.startRule]}if(A=C(),A!==z&&Je===e.length)return A;throw A!==z&&Je<e.length&&c(i()),l(Ue,Re<e.length?e.charAt(Re):null,Re<e.length?s(Re,Re+1):s(Re,Re))}n(o,Error),o.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 s[e.type](e)}function a(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]}}function u(e){return e?'"'+n(e)+'"':"end of input"}var s={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 "+a(e)+" but "+u(t)+" found."},t.exports={SyntaxError:o,parse:i}},{}],9:[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(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(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 u(){g&&d&&(g=!1,d.length?m=d.concat(m):y=-1,m.length&&s())}function s(){if(!g){var e=i(u);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,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var f,h,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=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 c(e,t)),1!==m.length||g||i(s)},c.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=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,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}},{}],10:[function(e,t,r){t.exports=e("./reserved-words")},{"./reserved-words":11}],11:[function(e,t,r){function n(){var e=Array.prototype.map.call(arguments,function(e){return"string"==typeof e?e:Object.keys(e).join(" ")}).join(" ");return e.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},a=r.KEYWORDS={};r.check=function(e,t,r){t=t||i.default;var n=i[t]||t;return r&&n>=5&&(n+="-strict"),o(a[n],"Unknown dialect"),a[n][e]},a[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"),a[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"),a["5-strict"]=n(a[5],"implements let private public yield","interface package protected static"),a[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"),a["6-strict"]=n(a[6],"let static","implements package protected","interface private public")},{assert:4}],12:[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}},{}],13:[function(e,t,r){(function(t,n){function o(e,t){var n={seen:[],stylize:a};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),k(n.showHidden)&&(n.showHidden=!1),k(n.depth)&&(n.depth=2),k(n.colors)&&(n.colors=!1),k(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),s(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 a(e,t){return e}function u(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function s(e,t,n){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return v(o)||(o=s(e,o,n)),o}var i=c(e,t);if(i)return i;var a=Object.keys(t),m=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),N(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(t);if(0===a.length){if(O(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(j(t))return e.stylize(Date.prototype.toString.call(t),"date");if(N(t))return l(t)}var y="",w=!1,b=["{","}"];if(d(t)&&(w=!0,b=["[","]"]),O(t)){var k=t.name?": "+t.name:"";y=" [Function"+k+"]"}if(S(t)&&(y=" "+RegExp.prototype.toString.call(t)),j(t)&&(y=" "+Date.prototype.toUTCString.call(t)),N(t)&&(y=" "+l(t)),0===a.length&&(!w||0==t.length))return b[0]+y+b[1];if(n<0)return S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var x;return x=w?f(e,t,n,m,a):a.map(function(r){return h(e,t,n,m,r,w)}),e.seen.pop(),p(x,y,b)}function c(e,t){if(k(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 l(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o){for(var i=[],a=0,u=t.length;a<u;++a)C(t,String(a))?i.push(h(e,t,r,n,String(a),!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 a,u,c;if(c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),C(n,o)||(a="["+o+"]"),u||(e.seen.indexOf(c.value)<0?(u=g(r)?s(e,c.value,null):s(e,c.value,r-1),u.indexOf("\n")>-1&&(u=i?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),k(a)){if(i&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function p(e,t,r){var n=0,o=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>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 k(e){return void 0===e}function S(e){return x(e)&&"[object RegExp]"===A(e)}function x(e){return"object"==typeof e&&null!==e}function j(e){return x(e)&&"[object Date]"===A(e)}function N(e){return x(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function E(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function z(e){return e<10?"0"+e.toString(10):e.toString(10)}function F(){var e=new Date,t=[z(e.getHours()),z(e.getMinutes()),z(e.getSeconds())].join(":");return[e.getDate(),J[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=/%[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,a=String(e).replace(T,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}}),u=n[r];r<i;u=n[++r])a+=g(u)||!x(u)?" "+u:" "+o(u);return a},r.deprecate=function(e,o){function i(){if(!a){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),a=!0}return e.apply(this,arguments)}if(k(n.process))return function(){return r.deprecate(e,o).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return i};var D,q={};r.debuglog=function(e){if(k(D)&&(D=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!q[e])if(new RegExp("\\b"+e+"\\b","i").test(D)){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=k,r.isRegExp=S,r.isObject=x,r.isDate=j,r.isError=N,r.isFunction=O,r.isPrimitive=E,r.isBuffer=e("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",F(),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":12,_process:9,inherits:5}]},{},[2])(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(a,u){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){var r=t[a][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);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){function r(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)}var n=JSON.stringify(r(t)?"":"");return n+" + "+e+" + "+n},n.prototype.cases=function(e,t){var r=!0,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(this.mf.intlSupport&&!(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]="function"==typeof i(this.mf)?i(this.mf):i}if(!this.mf.fmt[e.key])throw new Error("Formatting function "+JSON.stringify(e.key)+" not found!");if(o.push(JSON.stringify(this.lc)),e.params)switch(e.params.length){case 0:break;case 1:o.push(JSON.stringify(e.params[0]));break;default:o.push(JSON.stringify(e.params))}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:[]},o=i(e,n).map(function(e){return this.token(e)},this);return"function(d) { return "+(o.join(" + ")||'""')+"; }"}var a={};for(var u in e){var s=r.hasOwnProperty(u)?u:t;a[u]=this.compile(e[u],s,r)}return a}},{"messageformat-parser":8,"reserved-words":10}],2:[function(e,t,r){function n(t,r){for(var n=e("make-plural/plurals"),o=e("make-plural/pluralCategories"),i=t;i;i=i.replace(/[-_]?[^-_]*$/,"")){var a=n[i];if(a){var u=r?{cardinal:[],ordinal:[]}:o[i]||{},s=function(){return a.apply(this,arguments)};return s.toString=function(){return a.toString()},s.cardinal=u.cardinal,s.ordinal=u.ordinal,s}}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.fmt={},this.runtime=new a(this)}var i=e("./compiler"),a=e("./runtime");o.defaultLocale="en",o.escape=function(e){return e.replace(/[#{}\\]/g,"\\$&")},o.formatters={number:function(e){return new Function("v,lc,p","return new Intl.NumberFormat(lc,\n p=='integer' ? {maximumFractionDigits:0}\n : p=='percent' ? {style:'percent'}\n : p=='currency' ? {style:'currency', currency:'"+(e.currency||"USD")+"', minimumFractionDigits:2, maximumFractionDigits:2}\n : {}).format(v)")},date:function(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)},time:function(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)}},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||"undefined"==typeof e,this},o.prototype.setIntlSupport=function(e){return this.intlSupport=!!e||"undefined"==typeof e,this},o.prototype.setStrictNumberSign=function(e){return this.strictNumberSign=!!e||"undefined"==typeof 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="",a=0;a<t;++a)o+=" ";for(var u in e)n.push("\n"+o+" "+i.propname(u)+": "+r(e[u],t+1));return"{"+n.join(",")+"\n"+o+"}"}var a;if(0==Object.keys(this.pluralFuncs).length)t||(t=o.defaultLocale),a={},a[t]=n(t,this.noPluralKeyChecks);else if(t){if(a={},a[t]=this.pluralFuncs[t],!a[t])throw new Error("Locale "+JSON.stringify(t)+"not found in "+JSON.stringify(this.pluralFuncs)+"!")}else a=this.pluralFuncs,t=Object.keys(a)[0];var u=new i(this),s=u.compile(e,t,a);if("object"!=typeof e){var c=new Function("number, plural, select, fmt",i.funcname(t),"return "+s),l=this.runtime;return c(l.number,l.plural,l.select,this.fmt,a[t])}var f=this.runtime.toString(a,u)+"\n",h=r(s),p=new Function(f+"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"exports":var t=[];for(var n in s)t.push(i.propname(n,"exports")+" = "+r(s[n]));return f+t.join(";\n");case"module.exports":return f+"module.exports = "+h;case"export default":return f+"export default "+h;case"":return f+"return "+h;default:return e.indexOf(".")>-1?f+e+" = "+h:f+["(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,"./runtime":3,"make-plural/pluralCategories":6,"make-plural/plurals":7}],3:[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 a=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 u in e)0==t?i.push("var "+u+" = "+r(e[u],t+1)+";\n"):i.push(a.propname(u)+": "+r(e[u],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[a.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}],4:[function(e,t,r){function n(e,t){return p.isUndefined(t)?""+t:p.isNumber(t)&&!isFinite(t)?t.toString():p.isFunction(t)||p.isRegExp(t)?t.toString():t}function o(e,t){return p.isString(e)?e.length<t?e:e.slice(0,t):e}function i(e){return o(JSON.stringify(e.actual,n),128)+" "+e.operator+" "+o(JSON.stringify(e.expected,n),128)}function a(e,t,r,n,o){throw new g.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:o})}function u(e,t){e||a(e,!0,t,"==",g.ok)}function s(e,t){if(e===t)return!0;if(p.isBuffer(e)&&p.isBuffer(t)){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return p.isDate(e)&&p.isDate(t)?e.getTime()===t.getTime():p.isRegExp(e)&&p.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:p.isObject(e)||p.isObject(t)?l(e,t):e==t}function c(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function l(e,t){if(p.isNullOrUndefined(e)||p.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(p.isPrimitive(e)||p.isPrimitive(t))return e===t;var r=c(e),n=c(t);if(r&&!n||!r&&n)return!1;if(r)return e=d.call(e),t=d.call(t),s(e,t);var o,i,a=y(e),u=y(t);if(a.length!=u.length)return!1;for(a.sort(),u.sort(),i=a.length-1;i>=0;i--)if(a[i]!=u[i])return!1;for(i=a.length-1;i>=0;i--)if(o=a[i],!s(e[o],t[o]))return!1;return!0}function f(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||t.call({},e)===!0)}function h(e,t,r,n){var o;p.isString(r)&&(n=r,r=null);try{t()}catch(e){o=e}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!o&&a(o,r,"Missing expected exception"+n),!e&&f(o,r)&&a(o,r,"Got unwanted exception"+n),e&&o&&r&&!f(o,r)||!e&&o)throw o}var p=e("util/"),d=Array.prototype.slice,m=Object.prototype.hasOwnProperty,g=t.exports=u;g.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=i(this),this.generatedMessage=!0);var t=e.stackStartFunction||a;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,o=t.name,u=n.indexOf("\n"+o);if(u>=0){var s=n.indexOf("\n",u+1);n=n.substring(s+1)}this.stack=n}}},p.inherits(g.AssertionError,Error),g.fail=a,g.ok=u,g.equal=function(e,t,r){e!=t&&a(e,t,r,"==",g.equal)},g.notEqual=function(e,t,r){e==t&&a(e,t,r,"!=",g.notEqual)},g.deepEqual=function(e,t,r){s(e,t)||a(e,t,r,"deepEqual",g.deepEqual)},g.notDeepEqual=function(e,t,r){s(e,t)&&a(e,t,r,"notDeepEqual",g.notDeepEqual)},g.strictEqual=function(e,t,r){e!==t&&a(e,t,r,"===",g.strictEqual)},g.notStrictEqual=function(e,t,r){e===t&&a(e,t,r,"!==",g.notStrictEqual)},g.throws=function(e,t,r){h.apply(this,[!0].concat(d.call(arguments)))},g.doesNotThrow=function(e,t){h.apply(this,[!1].concat(d.call(arguments)))},g.ifError=function(e){if(e)throw e};var y=Object.keys||function(e){var t=[];for(var r in e)m.call(e,r)&&t.push(r);return t}},{"util/":13}],5:[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}},{}],6:[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"]},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],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:o[1],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],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:o[1],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],zh:o[0],zu:o[1]})},{}],7:[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"},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),a=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==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"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),a=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==a?"many":"other"},brx:o[1],bs:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>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],a=n.slice(-2),u=o.slice(-2);return t?"other":i&&1==a||1==u?"one":i&&2==a||2==u?"two":i&&(3==a||4==a)||3==u||4==u?"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),a=o&&r[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"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],a=n.slice(-1),u=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=u&&6!=u&&9!=u?"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),a=n.slice(-2);return t?"other":o&&1==i?"one":o&&2==i?"two":!o||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?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,a=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||e>10)&&i&&0==a?"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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>14)?"few":"other"},hsb:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-2),u=o.slice(-2);return t?"other":i&&1==a||1==u?"one":i&&2==a||2==u?"two":i&&(3==a||4==a)||3==u||4==u?"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],is:function(e,t){var r=String(e).split("."),n=r[0],o=Number(r[0])==e,i=n.slice(-1),a=n.slice(-2);return t?"other":o&&1==i&&11!=a||!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,a=i&&r[0].slice(-1);return t?"other":1==e&&o?"one":2==n&&o?"two":o&&(e<0||e>10)&&i&&0==a?"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),a=o&&r[0].slice(-2);return t?"other":1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>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,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),s=n.slice(-2),c=n.slice(-1);return t?"other":i&&0==a||u>=11&&u<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=u||2==o&&1==c&&11!=s||2!=o&&1==c?"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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1);return t?1==a&&11!=u?"one":2==a&&12!=u?"two":7!=a&&8!=a||17==u||18==u?"other":"many":i&&1==a||1==s?"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:o[1],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),a=n.slice(-2);return t?"other":1==e&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&1!=n&&(0==i||1==i)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},prg:function(e,t){var r=String(e).split("."),n=r[1]||"",o=n.length,i=Number(r[0])==e,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),s=n.slice(-2),c=n.slice(-1);return t?"other":i&&0==a||u>=11&&u<=19||2==o&&s>=11&&s<=19?"zero":1==a&&11!=u||2==o&&1==c&&11!=s||2!=o&&1==c?"one":"other"},ps:o[1],pt:function(e,t){var r=String(e).split("."),n=Number(r[0])==e;return t?"other":n&&e>=0&&e<=2&&2!=e?"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),a=n.slice(-2);return t?"other":o&&1==i&&11!=a?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&0==i||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},rwk:o[1],sah:o[0],saq: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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>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],a=n.slice(-1),u=n.slice(-2),s=o.slice(-1),c=o.slice(-2);return t?"other":i&&1==a&&11!=u||1==s&&11!=c?"one":i&&a>=2&&a<=4&&(u<12||u>14)||s>=2&&s<=4&&(c<12||c>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),a=o&&r[0].slice(-2);return t?1!=i&&2!=i||11==a||12==a?"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:o[1],tl:function(e,t){var r=String(e).split("."),n=r[0],o=r[1]||"",i=!r[1],a=n.slice(-1),u=o.slice(-1);return t?1==e?"one":"other":i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=u&&6!=u&&9!=u?"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,a=i&&r[0].slice(-1),u=i&&r[0].slice(-2),s=n.slice(-1),c=n.slice(-2);return t?3==a&&13!=u?"few":"other":o&&1==s&&11!=c?"one":o&&s>=2&&s<=4&&(c<12||c>14)?"few":o&&0==s||o&&s>=5&&s<=9||o&&c>=11&&c<=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],zh:o[0],zu:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"}})},{}],8:[function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function o(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,o)}function i(e,t){function r(e,t){return{type:"literal",text:e,ignoreCase:t}}function n(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function i(){return{type:"end"}}function a(e){return{type:"other",description:e}}function u(t){var r,n=_e[t];if(n)return n;for(r=t-1;!_e[r];)r--;for(n=_e[r],n={line:n.line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return _e[t]=n,n}function s(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){Je<Re||(Je>Re&&(Re=Je,$e=[]),$e.push(e))}function l(e,t,r){return new o(o.buildMessage(e,t),e,t,r)}function f(){var e,t;for(e=[],t=h();t!==z;)e.push(t),t=h();return e}function h(){var t,r,n;if(t=p(),t===z&&(t=d(),t===z&&(t=m(),t===z&&(t=g(),t===z&&(t=Je,35===e.charCodeAt(Je)?(r=T,Je++):(r=z,0===Ue&&c(D)),r!==z&&(Pe=t,r=q()),t=r,t===z))))){if(t=Je,r=[],n=j(),n!==z)for(;n!==z;)r.push(n),n=j();else r=z;r!==z&&(Pe=t,r=J(r)),t=r}return t}function p(){var t,r,n,o,i,a;return t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===Ue&&c(_)),r!==z?(n=E(),n!==z?(o=y(),o!==z?(i=E(),i!==z?(125===e.charCodeAt(Je)?(a=R,Je++):(a=z,0===Ue&&c($)),a!==z?(Pe=t,r=U(o),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z),t}function d(){var t,r,n,o,i,a,u,s,l,f,h,p,d,m;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===Ue&&c(_)),r!==z)if(n=E(),n!==z)if(o=y(),o!==z)if(i=E(),i!==z)if(44===e.charCodeAt(Je)?(a=M,Je++):(a=z,0===Ue&&c(I)),a!==z)if(u=E(),u!==z)if(e.substr(Je,6)===L?(s=L,Je+=6):(s=z,0===Ue&&c(B)),s!==z)if(l=E(),l!==z)if(44===e.charCodeAt(Je)?(f=M,Je++):(f=z,0===Ue&&c(I)),f!==z)if(h=E(),h!==z){if(p=[],d=w(),d!==z)for(;d!==z;)p.push(d),d=w();else p=z;p!==z?(d=E(),d!==z?(125===e.charCodeAt(Je)?(m=R,Je++):(m=z,0===Ue&&c($)),m!==z?(Pe=t,r=G(o,p),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;return t}function m(){var t,r,n,o,i,a,u,s,l,f,h,p,d,m,g;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===Ue&&c(_)),r!==z)if(n=E(),n!==z)if(o=y(),o!==z)if(i=E(),i!==z)if(44===e.charCodeAt(Je)?(a=M,Je++):(a=z,0===Ue&&c(I)),a!==z)if(u=E(),u!==z)if(e.substr(Je,6)===Z?(s=Z,Je+=6):(s=z,0===Ue&&c(H)),s===z&&(e.substr(Je,13)===K?(s=K,Je+=13):(s=z,0===Ue&&c(W))),s!==z)if(l=E(),l!==z)if(44===e.charCodeAt(Je)?(f=M,Je++):(f=z,0===Ue&&c(I)),f!==z)if(h=E(),h!==z)if(p=k(),p===z&&(p=null),p!==z){if(d=[],m=v(),m!==z)for(;m!==z;)d.push(m),m=v();else d=z;d!==z?(m=E(),m!==z?(125===e.charCodeAt(Je)?(g=R,Je++):(g=z,0===Ue&&c($)),g!==z?(Pe=t,r=V(o,s,p,d),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t, | ||
t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;return t}function g(){var t,r,n,o,i,a,u,s,l,f,h;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===Ue&&c(_)),r!==z)if(n=E(),n!==z)if(o=y(),o!==z)if(i=E(),i!==z)if(44===e.charCodeAt(Je)?(a=M,Je++):(a=z,0===Ue&&c(I)),a!==z)if(u=E(),u!==z)if(s=y(),s!==z)if(l=E(),l!==z){for(f=[],h=x();h!==z;)f.push(h),h=x();f!==z?(125===e.charCodeAt(Je)?(h=R,Je++):(h=z,0===Ue&&c($)),h!==z?(Pe=t,r=Y(o,s,f),t=r):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;else Je=t,t=z;return t}function y(){var t,r,n,o,i;if(t=Je,r=Je,Q.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===Ue&&c(X)),n!==z){for(o=[],ee.test(e.charAt(Je))?(i=e.charAt(Je),Je++):(i=z,0===Ue&&c(te));i!==z;)o.push(i),ee.test(e.charAt(Je))?(i=e.charAt(Je),Je++):(i=z,0===Ue&&c(te));o!==z?(n=[n,o],r=n):(Je=r,r=z)}else Je=r,r=z;return t=r!==z?e.substring(t,Je):r}function w(){var e,t,r,n,o;return e=Je,t=E(),t!==z?(r=y(),r!==z?(n=E(),n!==z?(o=b(),o!==z?(Pe=e,t=re(r,o),e=t):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z),e}function v(){var e,t,r,n,o;return e=Je,t=E(),t!==z?(r=S(),r!==z?(n=E(),n!==z?(o=b(),o!==z?(Pe=e,t=re(r,o),e=t):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z)):(Je=e,e=z),e}function b(){var t,r,n,o,i,a;if(t=Je,123===e.charCodeAt(Je)?(r=P,Je++):(r=z,0===Ue&&c(_)),r!==z)if(n=Je,o=E(),o!==z?(i=Je,Ue++,123===e.charCodeAt(Je)?(a=P,Je++):(a=z,0===Ue&&c(_)),Ue--,a!==z?(Je=i,i=void 0):i=z,i!==z?(o=[o,i],n=o):(Je=n,n=z)):(Je=n,n=z),n===z&&(n=null),n!==z){for(o=[],i=h();i!==z;)o.push(i),i=h();o!==z?(i=E(),i!==z?(125===e.charCodeAt(Je)?(a=R,Je++):(a=z,0===Ue&&c($)),a!==z?(Pe=t,r=ne(o),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)}else Je=t,t=z;else Je=t,t=z;return t}function k(){var t,r,n,o,i,a,u,s;return t=Je,r=E(),r!==z?(e.substr(Je,6)===oe?(n=oe,Je+=6):(n=z,0===Ue&&c(ie)),n!==z?(o=E(),o!==z?(58===e.charCodeAt(Je)?(i=ae,Je++):(i=z,0===Ue&&c(ue)),i!==z?(a=E(),a!==z?(u=N(),u!==z?(s=E(),s!==z?(Pe=t,r=se(u),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z),t}function S(){var t,r,n;return t=y(),t===z&&(t=Je,61===e.charCodeAt(Je)?(r=ce,Je++):(r=z,0===Ue&&c(le)),r!==z?(n=N(),n!==z?(Pe=t,r=se(n),t=r):(Je=t,t=z)):(Je=t,t=z)),t}function x(){var t,r,n,o,i,a;return t=Je,r=E(),r!==z?(44===e.charCodeAt(Je)?(n=M,Je++):(n=z,0===Ue&&c(I)),n!==z?(o=E(),o!==z?(i=y(),i!==z?(a=E(),a!==z?(Pe=t,r=fe(i),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z),t}function j(){var t,r,n,o,i,a;return he.test(e.charAt(Je))?(t=e.charAt(Je),Je++):(t=z,0===Ue&&c(pe)),t===z&&(t=Je,e.substr(Je,2)===de?(r=de,Je+=2):(r=z,0===Ue&&c(me)),r!==z&&(Pe=t,r=ge()),t=r,t===z&&(t=Je,e.substr(Je,2)===ye?(r=ye,Je+=2):(r=z,0===Ue&&c(we)),r!==z&&(Pe=t,r=ve()),t=r,t===z&&(t=Je,e.substr(Je,2)===be?(r=be,Je+=2):(r=z,0===Ue&&c(ke)),r!==z&&(Pe=t,r=Se()),t=r,t===z&&(t=Je,e.substr(Je,2)===xe?(r=xe,Je+=2):(r=z,0===Ue&&c(je)),r!==z&&(Pe=t,r=Ne()),t=r,t===z&&(t=Je,e.substr(Je,2)===Oe?(r=Oe,Je+=2):(r=z,0===Ue&&c(Ee)),r!==z?(n=O(),n!==z?(o=O(),o!==z?(i=O(),i!==z?(a=O(),a!==z?(Pe=t,r=Ae(n,o,i,a),t=r):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)):(Je=t,t=z)))))),t}function N(){var t,r,n;if(t=Je,r=[],ze.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===Ue&&c(Fe)),n!==z)for(;n!==z;)r.push(n),ze.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===Ue&&c(Fe));else r=z;return t=r!==z?e.substring(t,Je):r}function O(){var t;return Ce.test(e.charAt(Je))?(t=e.charAt(Je),Je++):(t=z,0===Ue&&c(Te)),t}function E(){var t,r,n;for(t=Je,r=[],De.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===Ue&&c(qe));n!==z;)r.push(n),De.test(e.charAt(Je))?(n=e.charAt(Je),Je++):(n=z,0===Ue&&c(qe));return t=r!==z?e.substring(t,Je):r}t=void 0!==t?t:{};var A,z={},F={start:f},C=f,T="#",D=r("#",!1),q=function(){return{type:"octothorpe"}},J=function(e){return e.join("")},P="{",_=r("{",!1),R="}",$=r("}",!1),U=function(e){return{type:"argument",arg:e}},M=",",I=r(",",!1),L="select",B=r("select",!1),G=function(e,t){return{type:"select",arg:e,cases:t}},Z="plural",H=r("plural",!1),K="selectordinal",W=r("selectordinal",!1),V=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`.")}),{type:r,arg:e,offset:n||0,cases:o}},Y=function(e,t,r){return{type:"function",arg:e,key:t,params:r}},Q=/^[0-9a-zA-Z$_]/,X=n([["0","9"],["a","z"],["A","Z"],"$","_"],!1,!1),ee=/^[^ \t\n\r,.+={}]/,te=n([" ","\t","\n","\r",",",".","+","=","{","}"],!0,!1),re=function(e,t){return{key:e,tokens:t}},ne=function(e){return e},oe="offset",ie=r("offset",!1),ae=":",ue=r(":",!1),se=function(e){return e},ce="=",le=r("=",!1),fe=function(e){return e},he=/^[^{}#\\\0-\x08\x0E-\x1F\x7F]/,pe=n(["{","}","#","\\",["\0","\b"],["",""],""],!0,!1),de="\\\\",me=r("\\\\",!1),ge=function(){return"\\"},ye="\\#",we=r("\\#",!1),ve=function(){return"#"},be="\\{",ke=r("\\{",!1),Se=function(){return"{"},xe="\\}",je=r("\\}",!1),Ne=function(){return"}"},Oe="\\u",Ee=r("\\u",!1),Ae=function(e,t,r,n){return String.fromCharCode(parseInt("0x"+e+t+r+n))},ze=/^[0-9]/,Fe=n([["0","9"]],!1,!1),Ce=/^[0-9a-fA-F]/,Te=n([["0","9"],["a","f"],["A","F"]],!1,!1),De=/^[ \t\n\r]/,qe=n([" ","\t","\n","\r"],!1,!1),Je=0,Pe=0,_e=[{line:1,column:1}],Re=0,$e=[],Ue=0;if("startRule"in t){if(!(t.startRule in F))throw new Error("Can't start parsing from rule \""+t.startRule+'".');C=F[t.startRule]}if(A=C(),A!==z&&Je===e.length)return A;throw A!==z&&Je<e.length&&c(i()),l($e,Re<e.length?e.charAt(Re):null,Re<e.length?s(Re,Re+1):s(Re,Re))}n(o,Error),o.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 s[e.type](e)}function a(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]}}function u(e){return e?'"'+n(e)+'"':"end of input"}var s={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 "+a(e)+" but "+u(t)+" found."},t.exports={SyntaxError:o,parse:i}},{}],9:[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(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(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 u(){g&&d&&(g=!1,d.length?m=d.concat(m):y=-1,m.length&&s())}function s(){if(!g){var e=i(u);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,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var f,h,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=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 c(e,t)),1!==m.length||g||i(s)},c.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=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,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}},{}],10:[function(e,t,r){t.exports=e("./reserved-words")},{"./reserved-words":11}],11:[function(e,t,r){function n(){var e=Array.prototype.map.call(arguments,function(e){return"string"==typeof e?e:Object.keys(e).join(" ")}).join(" ");return e.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},a=r.KEYWORDS={};r.check=function(e,t,r){t=t||i.default;var n=i[t]||t;return r&&n>=5&&(n+="-strict"),o(a[n],"Unknown dialect"),a[n][e]},a[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"),a[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"),a["5-strict"]=n(a[5],"implements let private public yield","interface package protected static"),a[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"),a["6-strict"]=n(a[6],"let static","implements package protected","interface private public")},{assert:4}],12:[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}},{}],13:[function(e,t,r){(function(t,n){function o(e,t){var n={seen:[],stylize:a};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),k(n.showHidden)&&(n.showHidden=!1),k(n.depth)&&(n.depth=2),k(n.colors)&&(n.colors=!1),k(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),s(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 a(e,t){return e}function u(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function s(e,t,n){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(n,e);return v(o)||(o=s(e,o,n)),o}var i=c(e,t);if(i)return i;var a=Object.keys(t),m=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),N(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(t);if(0===a.length){if(O(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(j(t))return e.stylize(Date.prototype.toString.call(t),"date");if(N(t))return l(t)}var y="",w=!1,b=["{","}"];if(d(t)&&(w=!0,b=["[","]"]),O(t)){var k=t.name?": "+t.name:"";y=" [Function"+k+"]"}if(S(t)&&(y=" "+RegExp.prototype.toString.call(t)),j(t)&&(y=" "+Date.prototype.toUTCString.call(t)),N(t)&&(y=" "+l(t)),0===a.length&&(!w||0==t.length))return b[0]+y+b[1];if(n<0)return S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var x;return x=w?f(e,t,n,m,a):a.map(function(r){return h(e,t,n,m,r,w)}),e.seen.pop(),p(x,y,b)}function c(e,t){if(k(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 l(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o){for(var i=[],a=0,u=t.length;a<u;++a)C(t,String(a))?i.push(h(e,t,r,n,String(a),!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 a,u,c;if(c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),C(n,o)||(a="["+o+"]"),u||(e.seen.indexOf(c.value)<0?(u=g(r)?s(e,c.value,null):s(e,c.value,r-1),u.indexOf("\n")>-1&&(u=i?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),k(a)){if(i&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function p(e,t,r){var n=0,o=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>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 k(e){return void 0===e}function S(e){return x(e)&&"[object RegExp]"===A(e)}function x(e){return"object"==typeof e&&null!==e}function j(e){return x(e)&&"[object Date]"===A(e)}function N(e){return x(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function E(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function z(e){return e<10?"0"+e.toString(10):e.toString(10)}function F(){var e=new Date,t=[z(e.getHours()),z(e.getMinutes()),z(e.getSeconds())].join(":");return[e.getDate(),J[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=/%[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,a=String(e).replace(T,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}}),u=n[r];r<i;u=n[++r])a+=g(u)||!x(u)?" "+u:" "+o(u);return a},r.deprecate=function(e,o){function i(){if(!a){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),a=!0}return e.apply(this,arguments)}if(k(n.process))return function(){return r.deprecate(e,o).apply(this,arguments)};if(t.noDeprecation===!0)return e;var a=!1;return i};var D,q={};r.debuglog=function(e){if(k(D)&&(D=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!q[e])if(new RegExp("\\b"+e+"\\b","i").test(D)){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=k,r.isRegExp=S,r.isObject=x,r.isDate=j,r.isError=N,r.isFunction=O,r.isPrimitive=E,r.isBuffer=e("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",F(),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":12,_process:9,inherits:5}]},{},[2])(2)}); | ||
//# sourceMappingURL=messageformat.min.js.map |
{ | ||
"name": "messageformat", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "PluralFormat and SelectFormat Message and i18n Tool - A JavaScript Implemenation of the ICU standards.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
435261
5837