@transifex/native 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.native.js +1 -1
- package/dist/node.native.js +1 -1
- package/package.json +1 -1
package/dist/browser.native.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see browser.native.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Transifex=t():e.Transifex=t()}(this,(()=>(()=>{var e={160:function(e,t,r){e.exports=function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.apply(this,arguments)};function t(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;class o extends Error{constructor(e,t,r){super(e),this.token=t,this.type=r||"error"}}const s=e=>e<4?"short":4===e?"long":"narrow",a=e=>e%2==0?"2-digit":"numeric";function c(e,t){switch(e.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void t(`${e.desc} is not supported with width ${e.width}`)}}function l(e,t){const{char:r,desc:n,width:i}=e;return"d"===r?a(i):void t(`${n} is not supported`)}function u(e,t){const{char:r,desc:n,width:i}=e;return("c"===r||"e"===r)&&i<3&&t(`Numeric value is not supported for ${n}; falling back to weekday:short`,o.WARNING),s(i)}function h(e,t){const{char:r,desc:n,width:i}=e;switch(r){case"v":case"z":return 4===i?"long":"short";case"V":return 4===i?"long":void t(`${n} is not supported with width ${i}`);case"X":return void t(`${n} is not supported`)}return"short"}function f(e,t){switch(e.field){case"era":return{era:s(e.width)};case"year":return function(e,t){switch(e.char){case"y":return{year:a(e.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return t(`${e.desc} is not supported; falling back to year:numeric`,o.WARNING),{year:"numeric"}}}(e,t);case"month":return{month:c(e,t)};case"day":return{day:l(e,t)};case"weekday":return{weekday:u(e,t)};case"period":return;case"hour":return function(e){const t=a(e.width);let r;switch(e.char){case"h":r="h12";break;case"H":r="h23";break;case"k":r="h24";break;case"K":r="h11"}return r?{hour:t,hourCycle:r}:{hour:t}}(e);case"min":return{minute:a(e.width)};case"sec":return{second:a(e.width)};case"tz":return{timeZoneName:h(e,t)};case"quarter":case"week":case"sec-frac":case"ms":t(`${e.desc} is not supported`)}}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>{throw e};const r={},n=[];for(const i of e){const{error:e,field:s,str:a}=i;if(e){const r=new o(e.message,i);r.stack=e.stack,t(r)}a&&t(new o(`Ignoring string part: ${a}`,i,o.WARNING)),s&&(-1===n.indexOf(s)?n.push(s):t(new o(`Duplicate ${s} token`,i)));const c=f(i,((e,r)=>t(new o(e,i,r))));c&&Object.assign(r,c)}return r}const p={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},m=e=>e>="A"&&e<="Z"||e>="a"&&e<="z";function g(e,t){const r=e[t];if(!r)return null;if(m(r))return function(e,t){const r=e[t];let n=1;for(;e[++t]===r;)++n;const i=p[r];return i?{char:r,field:i.field,desc:i.desc,width:n}:{char:r,error:new Error(`The letter ${r} is not a valid field identifier`),width:n}}(e,t);if("'"===r)return function(e,t){let r=e[++t],n=2;if("'"===r)return{char:"'",str:r,width:n};for(;;){const i=e[++t];if(++n,void 0===i)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${r||e}`),str:r,width:n};if("'"===i){if("'"!==e[++t])return{char:"'",str:r,width:n};++n}r+=i}}(e,t);let n=r,i=1;for(;;){const o=e[++t];if(!o||m(o)||"'"===o)return{char:r,str:n,width:i};n+=o,i+=1}}function y(e){const t=[];let r=0;for(;;){const n=g(e,r);if(!n)return t;t.push(n),r+=n.width}}class w extends Error{constructor(e,t){super(t),this.code=e}}class b extends w{constructor(e,t){super("BAD_OPTION",`Unknown ${e} option: ${t}`),this.stem=e,this.option=t}}class v extends w{constructor(e){super("BAD_STEM",`Unknown stem: ${e}`),this.stem=e}}class k extends w{constructor(e,t){super("MASKED_VALUE",`Value for ${e} is set multiple times`),this.type=e,this.prev=t}}class x extends w{constructor(e){super("MISSING_OPTION",`Required option missing for ${e}`),this.stem=e}}class S extends w{constructor(e,t){super("BAD_PATTERN",t),this.char=e}}class E extends w{constructor(e,t,r){super("TOO_MANY_OPTIONS",`Token ${e} only supports ${r>1?`${r} options`:"one option"} (got ${t.length})`),this.stem=e,this.options=t}}class T extends w{constructor(e,t){super("UNSUPPORTED",`The stem ${e} is not supported`),this.stem=e,t&&(this.message+=` with value ${t}`,this.source=t)}}function O(e,t){let{numberingSystem:r}=t;return Array.isArray(e)||(e=[e]),r?e.map((e=>{const t=-1===e.indexOf("-u-")?"u-nu":"nu";return`${e}-${t}-${r}`})).concat(e):e}function _(e){let{scale:t,unit:r}=e,n="number"==typeof t&&t>=0?t:1;return r&&"percent"===r.style&&(n*=.01),n}function A(e,t){const{decimal:r,group:n,integerWidth:i,notation:o,precision:s,roundingMode:a,sign:c,unit:l,unitPer:u,unitWidth:h}=e,f=(e,r)=>{t&&t(new T(e,r))},d={};if(l)switch(l.style){case"base-unit":d.style="decimal";break;case"currency":d.style="currency",d.currency=l.currency;break;case"measure-unit":d.style="unit",d.unit=l.unit.replace(/.*-/,""),u&&(d.unit+="-per-"+u.replace(/.*-/,""));break;case"percent":d.style="percent";break;case"permille":f("permille")}switch(h){case"unit-width-full-name":d.currencyDisplay="name",d.unitDisplay="long";break;case"unit-width-hidden":f(h);break;case"unit-width-iso-code":d.currencyDisplay="code";break;case"unit-width-narrow":d.currencyDisplay="narrowSymbol",d.unitDisplay="narrow";break;case"unit-width-short":d.currencyDisplay="symbol",d.unitDisplay="short"}switch(n){case"group-off":d.useGrouping=!1;break;case"group-auto":d.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":f(n),d.useGrouping=!0}if(s)switch(s.style){case"precision-fraction":{const{minFraction:e,maxFraction:t,minSignificant:r,maxSignificant:n,source:i}=s;"number"==typeof e&&(d.minimumFractionDigits=e,"number"==typeof r&&f("precision-fraction",i)),"number"==typeof t&&(d.maximumFractionDigits=t),"number"==typeof r&&(d.minimumSignificantDigits=r),"number"==typeof n&&(d.maximumSignificantDigits=n);break}case"precision-integer":d.maximumFractionDigits=0;break;case"precision-unlimited":d.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":d.trailingZeroDisplay=s.trailingZero;break;case"precision-currency-cash":f(s.style)}if(o)switch(o.style){case"compact-short":d.notation="compact",d.compactDisplay="short";break;case"compact-long":d.notation="compact",d.compactDisplay="long";break;case"notation-simple":d.notation="standard";break;case"scientific":case"engineering":{const{expDigits:e,expSign:t,source:r,style:n}=o;d.notation=n,(e&&e>1||t&&"sign-auto"!==t)&&f(n,r);break}}if(i){const{min:e,max:t,source:r}=i;if(e>0&&(d.minimumIntegerDigits=e),Number(t)>0){const e="engineering"===d.notation||"scientific"===d.notation;3===t&&e?d.notation="engineering":f("integer-width",r)}}switch(c){case"sign-auto":d.signDisplay="auto";break;case"sign-always":d.signDisplay="always";break;case"sign-except-zero":d.signDisplay="exceptZero";break;case"sign-never":d.signDisplay="never";break;case"sign-accounting":d.currencySign="accounting";break;case"sign-accounting-always":d.currencySign="accounting",d.signDisplay="always";break;case"sign-accounting-except-zero":d.currencySign="accounting",d.signDisplay="exceptZero"}return"decimal-always"===r&&f(r),a&&f(a),d}function N(e,t,r){const n=e[t];switch(n){case"%":return{char:"%",style:"percent",width:1};case"‰":return{char:"%",style:"permille",width:1};case"¤":{let i=1;for(;"¤"===e[++t];)++i;switch(i){case 1:return{char:n,currency:"default",width:i};case 2:return{char:n,currency:"iso-code",width:i};case 3:return{char:n,currency:"full-name",width:i};case 5:return{char:n,currency:"narrow",width:i};default:return r(new S("¤",`Invalid number (${i}) of ¤ chars in pattern`)),null}}case"*":{const r=e[t+1];if(r)return{char:n,pad:r,width:2};break}case"+":case"-":return{char:n,width:1};case"'":{let i=e[++t],o=2;if("'"===i)return{char:n,str:i,width:o};for(;;){const s=e[++t];if(++o,void 0===s)return r(new S("'",`Unterminated quoted literal in pattern: ${i}`)),{char:n,str:i,width:o};if("'"===s){if("'"!==e[++t])return{char:n,str:i,width:o};++o}i+=s}}}return null}const j=e=>e>="0"&&e<="9";function $(e,t){const r=e[t];if(j(r)){let n=r;for(;;){const r=e[++t];if(!j(r))return{char:"0",digits:n,width:n.length};n+=r}}switch(r){case"#":{let n=1;for(;"#"===e[++t];)++n;return{char:r,width:n}}case"@":{let n=1;for(;"@"===e[++t];)++n;let i=n;for(t-=1;"#"===e[++t];)++i;return{char:r,min:n,width:i}}case"E":{const n="+"===e[t+1];n&&++t;let i=0;for(;"0"===e[++t];)++i;if(i)return{char:r,expDigits:i,plus:n,width:(n?2:1)+i};break}case".":case",":return{char:r,width:1}}return null}function P(e,t,r){let n;!function(e){e[e.Prefix=0]="Prefix",e[e.Number=1]="Number",e[e.Suffix=2]="Suffix"}(n||(n={}));const i=[],o=[],s=[];let a=n.Prefix,c="";for(;t<e.length;){const l=e[t];if(";"===l){t+=1;break}switch(a){case n.Prefix:{const s=N(e,t,r);if(s)c&&(i.push({char:"'",str:c,width:c.length}),c=""),i.push(s),t+=s.width;else{const r=$(e,t);r?(c&&(i.push({char:"'",str:c,width:c.length}),c=""),a=n.Number,o.push(r),t+=r.width):(c+=l,t+=1)}break}case n.Number:{const r=$(e,t);r?(o.push(r),t+=r.width):a=n.Suffix;break}case n.Suffix:{const n=N(e,t,r);n?(c&&(s.push({char:"'",str:c,width:c.length}),c=""),s.push(n),t+=n.width):(c+=l,t+=1);break}}}return c&&s.push({char:"'",str:c,width:c.length}),{pattern:{prefix:i,number:o,suffix:s},pos:t}}function D(e,t,r,n,i){let o=!1,s="";for(const a of e)switch(a.char){case"%":t.unit={style:a.style},i?o=!0:s="";break;case"¤":if(!r){n(new S("¤","The ¤ pattern requires a currency"));break}switch(t.unit={style:"currency",currency:r},a.currency){case"iso-code":t.unitWidth="unit-width-iso-code";break;case"full-name":t.unitWidth="unit-width-full-name";break;case"narrow":t.unitWidth="unit-width-narrow"}i?o=!0:s="";break;case"*":break;case"+":o||(s+="+");break;case"'":o||(s+=a.str)}return s}function I(e,t){let r=!1,n="";for(const i of e)switch(i.char){case"%":case"¤":t?r=!0:n="";break;case"-":r||(n+="-");break;case"'":r||(n+=i.str)}return n}function F(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>{throw e};const{tokens:n,negative:i}=function(e,t){const{pattern:r,pos:n}=P(e,0,t);if(n<e.length){const{pattern:i}=P(e,n,t);return{tokens:r,negative:i}}return{tokens:r}}(e,r),o=function(e,t){const r={};let n=!1,i=!1,o=0,s="",a=-1,c="",l=0;for(let u=0;u<e.length;++u){const h=e[u];switch(h.char){case"#":-1===a?(s&&t(new S("#","Pattern has # after integer digits")),o+=h.width):l+=h.width;break;case"0":-1===a?s+=h.digits:(l&&t(new S("0","Pattern has digits after # in fraction")),c+=h.digits);break;case"@":r.precision&&t(new k("precision",r.precision)),r.precision={style:"precision-fraction",minSignificant:h.min,maxSignificant:h.width};break;case",":n=!0;break;case".":1===a&&t(new S(".","Pattern has more than one decimal separator")),a=u;break;case"E":i&&t(new k("exponent",r.notation)),n&&t(new S("E","Exponential patterns may not contain grouping separators")),r.notation={style:"scientific"},h.expDigits>1&&(r.notation.expDigits=h.expDigits),h.plus&&(r.notation.expSign="sign-always"),i=!0}}n?r.group="group-auto":o+s.length>3&&(r.group="group-off");const u=Number(`${s||"0"}.${c}`);if(u&&(r.precision={style:"precision-increment",increment:u}),i)if(r.precision&&!u||(r.integerWidth=o?{min:1,max:o+s.length}:{min:Math.max(1,s.length)}),r.precision)u||(r.integerWidth={min:1,max:1});else{const e=s.length+c.length;-1===a?e>0&&(r.precision={style:"precision-fraction",maxSignificant:e}):(r.precision={style:"precision-fraction",maxSignificant:Math.max(1,e)+l},e>1&&(r.precision.minSignificant=e))}else s.length>1&&(r.integerWidth={min:s.length}),r.precision||!c.length&&!l||(r.precision={style:"precision-fraction",minFraction:c.length,maxFraction:c.length+l});return r}(n.number,r),s=D(n.prefix,o,t,r,!0),a=D(n.suffix,o,t,r,!1);if(i){const e=I(i.prefix,!0),t=I(i.suffix,!1);o.affix={pos:[s,a],neg:[e,t]},o.sign="sign-never"}else(s||a)&&(o.affix={pos:[s,a]});return o}function B(e){const[t]=e.split("-",1);return-1!==["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"].indexOf(t)}const L={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},z={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function C(e,t,r){if(function(e){return e in L}(e)){const n=L[e];if(t.length>n){if(0===n)for(const n of t)r(new b(e,n));else r(new E(e,t,n));return!1}if(function(e){return e in z}(e)&&t.length<z[e])return r(new x(e)),!1}return!0}function R(e,t){const r="fraction"===t?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/,n=e&&e.match(r);if(n){const e=n[1].length;switch(n[2].charAt(0)){case"":return{min:e,max:e};case"+":return{min:e,max:null};case"#":return{min:e,max:e+n[2].length}}}return null}class q{constructor(e){this.skeleton={},this.onError=e}badOption(e,t){this.onError(new b(e,t))}assertEmpty(e){const t=this.skeleton[e];t&&this.onError(new k(e,t))}parseToken(e,t){if(!C(e,t,this.onError))return;const r=t[0],n=this.skeleton;switch(e){case"compact-short":case"compact-long":case"notation-simple":this.assertEmpty("notation"),n.notation={style:e};break;case"scientific":case"engineering":{let r,i=null;for(const n of t)switch(n){case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":r=n;break;default:/^\+e+$/.test(n)?i=n.length-1:this.badOption(e,n)}this.assertEmpty("notation");const o=t.join("/");n.notation=i&&r?{style:e,source:o,expDigits:i,expSign:r}:i?{style:e,source:o,expDigits:i}:r?{style:e,source:o,expSign:r}:{style:e,source:o};break}case"percent":case"permille":case"base-unit":this.assertEmpty("unit"),n.unit={style:e};break;case"currency":/^[A-Z]{3}$/.test(r)?(this.assertEmpty("unit"),n.unit={style:e,currency:r}):this.badOption(e,r);break;case"measure-unit":B(r)?(this.assertEmpty("unit"),n.unit={style:e,unit:r}):this.badOption(e,r);break;case"per-measure-unit":B(r)?(this.assertEmpty("unitPer"),n.unitPer=r):this.badOption(e,r);break;case"unit-width-narrow":case"unit-width-short":case"unit-width-full-name":case"unit-width-iso-code":case"unit-width-hidden":this.assertEmpty("unitWidth"),n.unitWidth=e;break;case"precision-integer":case"precision-unlimited":case"precision-currency-cash":this.assertEmpty("precision"),n.precision={style:e};break;case"precision-currency-standard":this.assertEmpty("precision"),n.precision="w"===r?{style:e,trailingZero:"stripIfInteger"}:{style:e};break;case"precision-increment":{const t=Number(r);t>0?(this.assertEmpty("precision"),n.precision={style:e,increment:t}):this.badOption(e,r);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),n.roundingMode=e;break;case"integer-width":if(/^\+0*$/.test(r))this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:r.length-1};else{const t=r.match(/^#*(0*)$/);t?(this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:t[1].length,max:t[0].length}):this.badOption(e,r)}break;case"scale":{const t=Number(r);t>0?(this.assertEmpty("scale"),n.scale=t):this.badOption(e,r);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),n.group=e;break;case"latin":this.assertEmpty("numberingSystem"),n.numberingSystem="latn";break;case"numbering-system":-1!==["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(r)?(this.assertEmpty("numberingSystem"),n.numberingSystem=r):this.badOption(e,r);break;case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),n.sign=e;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),n.decimal=e;break;default:{const r=function(e,t,r){const n=R(e,"fraction");if(n){t.length>1&&r(new E(e,t,1));const i={style:"precision-fraction",source:e,minFraction:n.min};null!=n.max&&(i.maxFraction=n.max);const o=t[0],s=R(o,"significant");return s?(i.source=`${e}/${o}`,i.minSignificant=s.min,null!=s.max&&(i.maxSignificant=s.max)):o&&r(new b(e,o)),i}const i=R(e,"significant");if(i){for(const n of t)r(new b(e,n));const n={style:"precision-fraction",source:e,minSignificant:i.min};return null!=i.max&&(n.maxSignificant=i.max),n}return null}(e,t,this.onError);r?(this.assertEmpty("precision"),n.precision=r):this.onError(new v(e))}}}}function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>{throw e};const r=[];for(const t of e.split(" "))if(t){const e=t.split("/"),n=e.shift()||"";r.push({stem:n,options:e})}const n=new q(t);for(const{stem:e,options:t}of r)n.parseToken(e,t);return n.skeleton}function U(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?M(t.slice(2),n):F(t,r,n));const i=O(e,t),o=A(t,n),s=function(e){const t=_(e),{precision:r}=e;return r&&"precision-increment"===r.style?e=>function(e,t){const r=+e+t/2;return r-r%+t}(e,r.increment)*t:e=>e*t}(t),a=new Intl.NumberFormat(i,o);if(t.affix){const[e,r]=t.affix.pos,[n,i]=t.affix.neg||["",""];return t=>{const o=a.format(s(t));return t<0?`${n}${o}${i}`:`${e}${o}${r}`}}return e=>a.format(s(e))}function H(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?M(t.slice(2),n):F(t,r,n));const i=O(e,t),o=A(t,n),s=function(e){const t=_(e),{precision:r}=e;if(r&&"precision-increment"===r.style){const e="+n + "+r.increment/2;let n=`x - (x % +${r.increment})`;return 1!==t&&(n=`(${n}) * ${t}`),`function(n) { var x = ${e}; return ${n}; }`}return 1!==t?`function(n) { return n * ${t}; }`:null}(t),a=["(function() {",`var opt = ${JSON.stringify(o)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(i)}, opt);`];let c="nf.format(value)";if(s&&(a.push(`var mod = ${s};`),c="nf.format(mod(value))"),t.affix){const[e,r]=t.affix.pos.map((e=>JSON.stringify(e)));if(t.affix.neg){const[n,i]=t.affix.neg.map((e=>JSON.stringify(e)));c=`value < 0 ? ${n} + ${c} + ${i} : ${e} + ${c} + ${r}`}else c=`${e} + ${c} + ${r}`}return a.push(`return function(value) { return ${c}; }`),a.join("\n ")+"\n})()"}var W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={},K={},Z={exports:{}};!function(e){var t,r;t=W,r=function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function i(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function o(e){return"("+e+")"}function s(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function a(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function l(t,r){if(i(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var o={defaultType:t,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)e.call(r,s)&&(o[s]=r[s]);if("string"==typeof o.type&&t!==o.type)throw new Error("Type transform cannot be a string (type '"+o.type+"' for token '"+t+"')");var a=o.match;return o.match=Array.isArray(a)?a:a?[a]:[],o.match.sort((function(e,t){return n(e)&&n(t)?0:n(t)?-1:n(e)?1:t.length-e.length})),o}function u(e){return Array.isArray(e)?function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(n.include)for(var i=[].concat(n.include),o=0;o<i.length;o++)t.push({include:i[o]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));t.push(l(n.type,n))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),r=[],n=0;n<t.length;n++){var o=t[n],s=e[o],a=[].concat(s);if("include"!==o){var c=[];a.forEach((function(e){i(e)?(c.length&&r.push(l(o,c)),r.push(l(o,e)),c=[]):c.push(e)})),c.length&&r.push(l(o,c))}else for(var u=0;u<a.length;u++)r.push({include:a[u]})}return r}(e)}var h=l("error",{lineBreaks:!0,shouldThrow:!0});function f(e,t){for(var i=null,c=Object.create(null),l=!0,u=null,f=[],d=[],p=0;p<e.length;p++)e[p].fallback&&(l=!1);for(p=0;p<e.length;p++){var m=e[p];if(m.include)throw new Error("Inheritance is not allowed in stateless lexers");if(m.error||m.fallback){if(i)throw!m.fallback==!i.fallback?new Error("Multiple "+(m.fallback?"fallback":"error")+" rules not allowed (for token '"+m.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+m.defaultType+"')");i=m}var g=m.match.slice();if(l)for(;g.length&&"string"==typeof g[0]&&1===g[0].length;)c[g.shift().charCodeAt(0)]=m;if(m.pop||m.push||m.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+m.defaultType+"')");if(m.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+m.defaultType+"')")}if(0!==g.length){l=!1,f.push(m);for(var y=0;y<g.length;y++){var w=g[y];if(n(w))if(null===u)u=w.unicode;else if(u!==w.unicode&&!1===m.fallback)throw new Error("If one rule is /u then all must be")}var b=s(g.map(a)),v=new RegExp(b);if(v.test(""))throw new Error("RegExp matches empty string: "+v);if(new RegExp("|"+b).exec("").length-1>0)throw new Error("RegExp has capture groups: "+v+"\nUse (?: … ) instead");if(!m.lineBreaks&&v.test("\n"))throw new Error("Rule should declare lineBreaks: "+v);d.push(o(b))}}var k=i&&i.fallback,x=r&&!k?"ym":"gm",S=r||k?"":"|";return!0===u&&(x+="u"),{regexp:new RegExp(s(d)+S,x),groups:f,fast:c,error:i||h}}function d(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var p=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};p.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},p.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},p.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},p.prototype.popState=function(){this.setState(this.stack.pop())},p.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var m=r?function(e,t){return e.exec(t)}:function(e,t){var r=e.exec(t);return 0===r[0].length?null:r};function g(){return this.value}if(p.prototype._getGroup=function(e){for(var t=this.groups.length,r=0;r<t;r++)if(void 0!==e[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},p.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var r=this.buffer;if(e!==r.length){if(s=this.fast[r.charCodeAt(e)])return this._token(s,r.charAt(e),e);var n=this.re;n.lastIndex=e;var i=m(n,r),o=this.error;if(null==i)return this._token(o,r.slice(e,r.length),e);var s=this._getGroup(i),a=i[0];return o.fallback&&i.index!==e?(this.queuedGroup=s,this.queuedText=a,this._token(o,r.slice(e,i.index),e)):this._token(s,a,e)}},p.prototype._token=function(e,t,r){var n=0;if(e.lineBreaks){var i=/\n/g,o=1;if("\n"===t)n=1;else for(;i.exec(t);)n++,o=i.lastIndex}var s={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:g,offset:r,lineBreaks:n,line:this.line,col:this.col},a=t.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-o+1:this.col+=a,e.shouldThrow)throw new Error(this.formatError(s,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var y=function(e){this.lexer=e};y.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},y.prototype[Symbol.iterator]=function(){return this},p.prototype[Symbol.iterator]=function(){return new y(this)}}return p.prototype.formatError=function(e,t){if(null==e){var r=this.buffer.slice(this.index);e={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(e.line-2,1),i=e.line+2,o=String(i).length,s=function(e,t){for(var r=e.length,n=0;;){var i=e.lastIndexOf("\n",r-1);if(-1===i)break;if(r=i,++n===t)break;if(0===r)break}var o=n<t?0:r+1;return e.substring(o).split("\n")}(this.buffer,this.line-e.line+2+1).slice(0,5),a=[];a.push(t+" at line "+e.line+" col "+e.col+":"),a.push("");for(var l=0;l<s.length;l++){var u=s[l],h=n+l;a.push(c(String(h),o)+" "+u),h===e.line&&a.push(c("",o+e.col+1)+"^")}return a.join("\n")},p.prototype.clone=function(){return new p(this.states,this.state)},p.prototype.has=function(e){return!0},{compile:function(e){var t=f(u(e));return new p({start:t},"start")},states:function(e,t){var r=e.$all?u(e.$all):[];delete e.$all;var n=Object.getOwnPropertyNames(e);t||(t=n[0]);for(var i=Object.create(null),o=0;o<n.length;o++)i[b=n[o]]=u(e[b]).concat(r);for(o=0;o<n.length;o++)for(var s=i[b=n[o]],a=Object.create(null),c=0;c<s.length;c++){var l=s[c];if(l.include){var h=[c,1];if(l.include!==b&&!a[l.include]){a[l.include]=!0;var m=i[l.include];if(!m)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+b+"')");for(var g=0;g<m.length;g++){var y=m[g];-1===s.indexOf(y)&&h.push(y)}}s.splice.apply(s,h),c--}}var w=Object.create(null);for(o=0;o<n.length;o++){var b;w[b=n[o]]=f(i[b],!0)}for(o=0;o<n.length;o++){var v=n[o],k=w[v],x=k.groups;for(c=0;c<x.length;c++)d(x[c],v,w);var S=Object.getOwnPropertyNames(k.fast);for(c=0;c<S.length;c++)d(k.fast[S[c]],v,w)}return new p(w,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,r=t?new Map:Object.create(null),n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=n[i],s=e[o];(Array.isArray(s)?s:[s]).forEach((function(e){if("string"!=typeof e)throw new Error("keyword must be string (in keyword '"+o+"')");t?r.set(e,o):r[e]=o}))}return function(e){return t?r.get(e):r[e]}}}},e.exports?e.exports=r():t.moo=r()}(Z);var V=Z.exports;(function(e){var t=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.lexer=e.states=void 0;const r=t(V);e.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},e.lexer=r.default.states(e.states)})(K),Object.defineProperty(J,"__esModule",{value:!0});var X=J.parse=J.ParseError=void 0;const Y=K,Q=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),ee=e=>"plural"===e||"select"===e||"selectordinal"===e;const te=["number","date","time","spellout","ordinal","duration"],re=["zero","one","two","few","many","other"];class ne extends Error{constructor(e,t){super(Y.lexer.formatError(e,t))}}J.ParseError=ne;class ie{constructor(e,t){var r,n,i,o;this.lexer=Y.lexer.reset(e),this.cardinalKeys=null!==(r=null==t?void 0:t.cardinal)&&void 0!==r?r:re,this.ordinalKeys=null!==(n=null==t?void 0:t.ordinal)&&void 0!==n?n:re,this.strict=null!==(i=null==t?void 0:t.strict)&&void 0!==i&&i,this.strictPluralKeys=null===(o=null==t?void 0:t.strictPluralKeys)||void 0===o||o}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,r){if("="===r[0]){if("select"===t)throw new ne(e,`The case ${r} is not valid with select`)}else if("select"!==t){const n="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&n.length>0&&!n.includes(r))throw new ne(e,`The ${t} case ${r} is not valid in this locale`)}}parseSelect(e,t,r,n){let{value:i}=e;const o={type:n,arg:i,cases:[],ctx:r};"plural"===n||"selectordinal"===n?t=!0:this.strict&&(t=!1);for(const e of this.lexer)switch(e.type){case"offset":if("select"===n)throw new ne(e,"Unexpected plural offset for select");if(o.cases.length>0)throw new ne(e,"Plural offset must be set before cases");o.pluralOffset=Number(e.value),r.text+=e.text,r.lineBreaks+=e.lineBreaks;break;case"case":this.checkSelectKey(e,n,e.value),o.cases.push({key:e.value,tokens:this.parseBody(t),ctx:Q(e)});break;case"end":return o;default:throw new ne(e,`Unexpected lexer token: ${e.type}`)}throw new ne(null,"Unexpected message end")}parseArgToken(e,t){const r=Q(e),n=this.lexer.next();if(!n)throw new ne(null,"Unexpected message end");if(r.text+=n.text,r.lineBreaks+=n.lineBreaks,this.strict&&("func-simple"===n.type||"func-args"===n.type)&&!te.includes(n.value)){const t=`Invalid strict mode function arg type: ${n.value}`;throw new ne(e,t)}switch(n.type){case"end":return{type:"argument",arg:e.value,ctx:r};case"func-simple":{const t=this.lexer.next();if(!t)throw new ne(null,"Unexpected message end");if("end"!==t.type)throw new ne(t,`Unexpected lexer token: ${t.type}`);if(r.text+=t.text,ee(n.value.toLowerCase()))throw new ne(n,`Invalid type identifier: ${n.value}`);return{type:"function",arg:e.value,key:n.value,ctx:r}}case"func-args":{if(ee(n.value.toLowerCase())){const e=`Invalid type identifier: ${n.value}`;throw new ne(n,e)}let i=this.parseBody(!this.strict&&t);return this.strict&&i.length>0&&(i=function(e,t){let r="",n="";for(const i of t){const t=i.ctx.text;switch(n+=t,i.type){case"content":r+=i.value;break;case"argument":case"function":case"octothorpe":r+=t;break;default:throw new ne(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}(e,i)),{type:"function",arg:e.value,key:n.value,param:i,ctx:r}}case"select":if(ee(n.value))return this.parseSelect(e,t,r,n.value);throw new ne(n,`Unexpected select type ${n.value}`);default:throw new ne(n,`Unexpected lexer token: ${n.type}`)}}parseBody(e,t){const r=[];let n=null;for(const i of this.lexer)if("argument"===i.type)n&&(n=null),r.push(this.parseArgToken(i,e));else if("octothorpe"===i.type&&e)n&&(n=null),r.push({type:"octothorpe",ctx:Q(i)});else{if("end"===i.type&&!t)return r;{let t=i.value;if(!e&&"quoted"===i.type&&"#"===t[0]){if(t.includes("{"))throw new ne(i,`Unsupported escape pattern: ${t}`);t=i.text}n?(n.value+=t,n.ctx.text+=i.text,n.ctx.lineBreaks+=i.lineBreaks):(n={type:"content",value:t,ctx:Q(i)},r.push(n))}}if(t)return r;throw new ne(null,"Unexpected message end")}}function oe(e){return oe[e]||(oe[e]=new Intl.NumberFormat(e))}X=J.parse=function(e){return new ie(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).parse()};var se=Object.freeze({__proto__:null,_nf:oe,number:function(e,t,r){return oe(e).format(t-r)},plural:function(e,t,r,n,i){if({}.hasOwnProperty.call(n,e))return n[e];t&&(e-=t);var o=r(e,i);return o in n?n[o]:n.other},reqArgs:function(e,t){for(var r=0;r<e.length;++r)if(!t||void 0===t[e[r]])throw new Error("Message requires argument '".concat(e[r],"'"))},select:function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},strictNumber:function(e,t,r,n){var i=t-r;if(isNaN(i))throw new Error("`"+n+"` or its offset is not a number");return oe(e).format(i)}});var ae={};function ce(e,t){var r=String(e)+JSON.stringify(t);return ae[r]||(ae[r]=new Intl.NumberFormat(e,t)),ae[r]}var le=Object.freeze({__proto__:null,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)},duration:function(e){if("number"!=typeof e&&(e=Number(e)),!isFinite(e))return String(e);var t="";e<0?(t="-",e=Math.abs(e)):e=Number(e);var r=e%60,n=[Math.round(r)===r?r:r.toFixed(3)];return e<60?n.unshift(0):(e=Math.round((e-Number(n[0]))/60),n.unshift(e%60),e>=60&&(e=Math.round((e-Number(n[0]))/60),n.unshift(e))),t+n.shift()+":"+n.map((function(e){return Number(e)<10?"0"+String(e):String(e)})).join(":")},numberCurrency:function(e,t,r){return ce(t,{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},numberFmt:function(e,t,r,n){var i=r&&r.split(":")||[],o=i[0],s=i[1];return ce(t,{integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:s&&s.trim()||n,minimumFractionDigits:2,maximumFractionDigits:2}}[o]||{}).format(e)},numberInteger:function(e,t){return ce(t,{maximumFractionDigits:0}).format(e)},numberPercent:function(e,t){return ce(t,{style:"percent"}).format(e)},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)}}),ue=G({ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}});function he(e,t){t&&(e+=" "+function(e){let t=0;for(let r=0;r<e.length;++r)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}(e).toString(36));const r=e.trim().replace(/\W+/g,"_");return ue.ES3[r]||ue.ESnext[r]||/^\d/.test(r)?"_"+r:r}function fe(e,t){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t)&&!ue.ES3[t])return e?e+"."+t:t;{const r=JSON.stringify(t);return e?e+"["+r+"]":r}}var de=new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^"));var pe="@messageformat/runtime/lib/plurals",me=function(){function r(e){this.arguments=[],this.runtime={},this.options=e}return r.prototype.compile=function(e,r,n){var i,o,s=this,a=this.options,c=a.localeCodeFromKey,l=a.requireAllArguments,u=a.strict,h=a.strictPluralKeys;if("object"==typeof e){var f={};try{for(var d=t(Object.keys(e)),p=d.next();!p.done;p=d.next()){var m=p.value,g=c?c(m):m,y=n&&g&&n[g]||r;f[m]=this.compile(e[m],y,n)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return f}this.plural=r;var w={cardinal:r.cardinals,ordinal:r.ordinals,strict:u,strictPluralKeys:h};this.arguments=[];var b=X(e,w).map((function(e){return s.token(e,null)})),v=this.arguments.length>0,k=this.concatenate(b,!0);if(l&&v){this.setRuntimeFn("reqArgs");var x=JSON.stringify(this.arguments);return"(d) => { reqArgs(".concat(x,", d); return ").concat(k,"; }")}return"(".concat(v?"d":"",") => ").concat(k)},r.prototype.cases=function(e,t){var r=this,n=!0,i=e.cases.map((function(e){var i=e.key,o=e.tokens;"other"===i&&(n=!1);var s=o.map((function(e){return r.token(e,t)}));return"".concat(fe(null,i.replace(/^=/,"")),": ").concat(r.concatenate(s,!1))}));if(n){var o=e.type,s=this.plural,a=s.cardinals,c=s.ordinals;if("select"===o||"plural"===o&&a.includes("other")||"selectordinal"===o&&c.includes("other"))throw new Error("No 'other' form found in ".concat(JSON.stringify(e)))}return"{ ".concat(i.join(", ")," }")},r.prototype.concatenate=function(e,t){return"values"===this.options.returnType&&(t||e.length>1)?"["+e.join(", ")+"]":e.join(" + ")||'""'},r.prototype.token=function(e,t){if("content"===e.type)return JSON.stringify(e.value);var r,n,i,o,s,a,c=this.plural,l=c.id,u=c.lc;switch("arg"in e?(this.arguments.push(e.arg),r=[fe("d",e.arg)]):r=[],e.type){case"argument":return this.options.biDiSupport?(i=String(r[0]),o=u,s=de.test(o),a=JSON.stringify(s?"":""),"".concat(a," + ").concat(i," + ").concat(a)):String(r[0]);case"select":n="select",t&&this.options.strict&&(t=null),r.push(this.cases(e,t)),this.setRuntimeFn("select");break;case"selectordinal":n="plural",r.push(e.pluralOffset||0,l,this.cases(e,e),1),this.setLocale(l,!0),this.setRuntimeFn("plural");break;case"plural":n="plural",r.push(e.pluralOffset||0,l,this.cases(e,e)),this.setLocale(l,!1),this.setRuntimeFn("plural");break;case"function":var h=this.options.customFormatters[e.key],f=h&&"module"in h&&"function"==typeof h.module;if(!h){if("date"===e.key){n=this.setDateFormatter(e,r,t);break}if("number"===e.key){n=this.setNumberFormatter(e,r,t);break}}if(r.push(JSON.stringify(this.plural.locale)),e.param){t&&this.options.strict&&(t=null);var d=this.getFormatterArg(e,t);d&&r.push(d)}n=f?he("".concat(e.key,"__").concat(this.plural.locale)):e.key,this.setFormatter(n,e.key);break;case"octothorpe":if(!t)return'"#"';r=[JSON.stringify(this.plural.locale),fe("d",t.arg),t.pluralOffset||0],this.options.strict?(n="strictNumber",r.push(JSON.stringify(t.arg)),this.setRuntimeFn("strictNumber")):(n="number",this.setRuntimeFn("number"))}if(!n)throw new Error("Parser error for token "+JSON.stringify(e));return"".concat(n,"(").concat(r.join(", "),")")},r.prototype.runtimeIncludes=function(e,t){if(he(e)!==e)throw new SyntaxError("Reserved word used as ".concat(t," identifier: ").concat(e));var r=this.runtime[e];if(!r||r.type===t)return r;throw new TypeError("Cannot override ".concat(r.type," runtime function as ").concat(t,": ").concat(e))},r.prototype.setLocale=function(e,t){var r,n,i,o=this.runtimeIncludes(e,"locale"),s=this.plural,a=s.getCardinal,c=s.getPlural,l=s.isDefault;if(!t&&l&&a){if(o)return;r=function(e){return a(e)},n="@messageformat/runtime/lib/cardinals",i=function(){return String(a)}}else{if(o&&(!l||o.module===pe))return;r=function(e,t){return c(e,t)},n=l?pe:c.module||null,i=function(){return String(c)}}this.runtime[e]=Object.assign(r,{id:e,module:n,toString:i,type:"locale"})},r.prototype.setRuntimeFn=function(e){this.runtimeIncludes(e,"runtime")||(this.runtime[e]=Object.assign(se[e],{id:e,module:"@messageformat/runtime",type:"runtime"}))},r.prototype.getFormatterArg=function(e,r){var n,i,o,s,a=this,c=e.key,l=e.param,u=this.options.customFormatters[c]||ge(c)&&le[c];if(!u||!l)return null;var h="arg"in u&&u.arg||"string";if("options"===h){var f="";try{for(var d=t(l),p=d.next();!p.done;p=d.next()){var m=p.value;if("content"!==m.type)throw new SyntaxError("Expected literal options for ".concat(c," formatter"));f+=m.value}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}var g={};try{for(var y=t(f.split(",")),w=y.next();!w.done;w=y.next()){var b=w.value,v=b.indexOf(":");if(-1===v)g[b.trim()]=null;else{var k=b.substring(0,v).trim(),x=b.substring(v+1).trim();if("true"===x)g[k]=!0;else if("false"===x)g[k]=!1;else if("null"===x)g[k]=null;else{var S=Number(x);g[k]=Number.isFinite(S)?S:x}}}}catch(e){o={error:e}}finally{try{w&&!w.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}return JSON.stringify(g)}var E=l.map((function(e){return a.token(e,r)}));if("raw"===h)return"[".concat(E.join(", "),"]");var T=E.join(" + ");return T?"(".concat(T,").trim()"):'""'},r.prototype.setFormatter=function(t,r){if(!this.runtimeIncludes(t,"formatter")){var n=this.options.customFormatters[r||t];if(n){var i="function"==typeof n?{formatter:n}:n;this.runtime[t]=Object.assign(i.formatter.bind({}),e(e({},i.formatter.prototype),{toString:function(){return String(i.formatter)}}),{type:"formatter"},"module"in n&&n.module&&n.id?{id:he(n.id),module:"function"==typeof n.module?n.module(this.plural.locale):n.module}:{id:null,module:null})}else{if(!ge(t))throw new Error("Formatting function not found: ".concat(t));this.runtime[t]=Object.assign(le[t],{type:"formatter"},{id:t,module:"@messageformat/runtime/lib/formatters"})}}},r.prototype.setDateFormatter=function(e,t,r){var n=this,i=e.param,o=this.plural.locale,s=i&&1===i.length&&i[0];if(s&&"content"===s.type&&/^\s*::/.test(s.value)){var a=s.value.trim().substr(2),c=he("date_".concat(o,"_").concat(a),!0);if(!this.runtimeIncludes(c,"formatter")){var l=function(e,t,r){"string"==typeof t&&(t=y(t));const n=d(t,r),i=new Intl.DateTimeFormat(e,n);return e=>i.format(e)}(o,a);this.runtime[c]=Object.assign(l,{id:c,module:null,toString:function(){return function(e,t,r){"string"==typeof t&&(t=y(t));const n=d(t,r);return["(function() {",`var opt = ${JSON.stringify(n)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(e)}, opt);`,"return function(value) { return dtf.format(value); }"].join("\n ")+"\n})()"}(o,a)},type:"formatter"})}return c}if(t.push(JSON.stringify(o)),i&&i.length>0){r&&this.options.strict&&(r=null);var u=i.map((function(e){return n.token(e,r)}));t.push("("+(u.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"},r.prototype.setNumberFormatter=function(e,t,r){var n=this,i=e.param,o=this.plural.locale;if(!i||0===i.length)return t.unshift(JSON.stringify(o)),t.push("0"),this.setRuntimeFn("number"),"number";if(t.push(JSON.stringify(o)),1===i.length&&"content"===i[0].type){var s=i[0].value.trim();switch(s){case"currency":return t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}var a=s.match(/^currency:([A-Z]+)$/);if(a)return t.push(JSON.stringify(a[1])),this.setFormatter("numberCurrency"),"numberCurrency";var c=he("number_".concat(o,"_").concat(s),!0);if(!this.runtimeIncludes(c,"formatter")){var l=this.options.currency,u=U(o,s,l);this.runtime[c]=Object.assign(u,{id:null,module:null,toString:function(){return H(o,s,l)},type:"formatter"})}return c}r&&this.options.strict&&(r=null);var h=i.map((function(e){return n.token(e,r)}));return t.push("("+(h.join(" + ")||'""')+").trim()"),t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"},r}();function ge(e){return e in le}const ye=e=>1==e?"one":"other",we=e=>0==e||1==e?"one":"other",be=e=>e>=0&&e<=1?"one":"other",ve=e=>{const t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},ke=e=>"other",xe=e=>1==e?"one":2==e?"two":"other",Se=ye,Ee=we,Te=be,Oe=ye,_e=be,Ae=ye,Ne=ve,je=ye,$e=ye,Pe=ye,De=ye,Ie=ye,Fe=we,Be=ke,Le=be,ze=ke,Ce=ye,Re=ye,qe=ye,Me=ye,Ue=ye,He=ve,We=be,Ge=ye,Je=ke,Ke=ye,Ze=ye,Ve=ve,Xe=ye,Ye=ve,Qe=ye,et=be,tt=ve,rt=ye,nt=ye,it=ve,ot=ve,st=ye,at=be,ct=we,lt=ye,ut=ye,ht=be,ft=ke,dt=ye,pt=ve,mt=ke,gt=ke,yt=ke,wt=ve,bt=xe,vt=ke,kt=ke,xt=ye,St=ye,Et=ke,Tt=ke,Ot=ye,_t=ye,At=ye,Nt=ke,jt=ke,$t=ye,Pt=ye,Dt=ye,It=ke,Ft=be,Bt=ke,Lt=ye,zt=ye,Ct=ye,Rt=ye,qt=ye,Mt=ye,Ut=ve,Ht=ke,Wt=we,Gt=ke,Jt=ye,Kt=we,Zt=ye,Vt=ye,Xt=ye,Yt=ye,Qt=ke,er=ke,tr=ye,rr=xe,nr=ye,ir=ye,or=ye,sr=ve,ar=ye,cr=ye,lr=ye,ur=ke,hr=ye,fr=we,dr=ye,pr=ye,mr=ye,gr=ye,yr=ye,wr=ke,br=we,vr=ye,kr=be,xr=ye,Sr=ye,Er=ye,Tr=ye,Or=ke,_r=ye,Ar=xe,Nr=ve,jr=ve,$r=ye,Pr=ye,Dr=xe,Ir=ye,Fr=ke,Br=ke,Lr=xe,zr=xe,Cr=xe,Rr=xe,qr=xe,Mr=ye,Ur=ye,Hr=ye,Wr=ye,Gr=ye,Jr=ye,Kr=ke,Zr=ve,Vr=ve,Xr=ye,Yr=ye,Qr=ye,en=ye,tn=ke,rn=we,nn=ye,on=ye,sn=ye,an=ke,cn=ke,ln=ye,un=ye,hn=ye,fn=ke,dn=ve,pn=ye,mn=ye,gn=ke,yn=ye,wn=ye,bn=we,vn=ye,kn=ke,xn=ye,Sn=ye,En=ve,Tn=ke,On=ke,_n=ke,An=be;var Nn=Object.freeze({__proto__:null,af:Se,ak:Ee,am:Te,an:Oe,ar:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ars:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},as:_e,asa:Ae,ast:Ne,az:je,bal:$e,be:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-1),i=r&&t[0].slice(-2);return 1==n&&11!=i?"one":n>=2&&n<=4&&(i<12||i>14)?"few":r&&0==n||n>=5&&n<=9||i>=11&&i<=14?"many":"other"},bem:Pe,bez:De,bg:Ie,bho:Fe,bm:Be,bn:Le,bo:ze,br:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-1),i=r&&t[0].slice(-2),o=r&&t[0].slice(-6);return 1==n&&11!=i&&71!=i&&91!=i?"one":2==n&&12!=i&&72!=i&&92!=i?"two":(3==n||4==n||9==n)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==o?"many":"other"},brx:Ce,bs:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},ca:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},ce:Re,ceb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},cgg:qe,chr:Me,ckb:Ue,cs:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==e&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},cy:e=>0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",da:e=>{const t=String(e).split("."),r=t[0],n=Number(t[0])==e;return 1!=e&&(n||0!=r&&1!=r)?"other":"one"},de:He,doi:We,dsb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-2),s=n.slice(-2);return i&&1==o||1==s?"one":i&&2==o||2==s?"two":i&&(3==o||4==o)||3==s||4==s?"few":"other"},dv:Ge,dz:Je,ee:Ke,el:Ze,en:Ve,eo:Xe,es:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e?"one":0!=r&&0==i&&n?"many":"other"},et:Ye,eu:Qe,fa:et,ff:e=>e>=0&&e<2?"one":"other",fi:tt,fil:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},fo:rt,fr:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return e>=0&&e<2?"one":0!=r&&0==i&&n?"many":"other"},fur:nt,fy:it,ga:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},gd:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},gl:ot,gsw:st,gu:at,guw:ct,gv:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i?"one":n&&2==i?"two":!n||0!=o&&20!=o&&40!=o&&60!=o&&80!=o?n?"other":"many":"few"},ha:lt,haw:ut,he:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==r&&n||0==r&&!n?"one":2==r&&n?"two":"other"},hi:ht,hnj:ft,hr:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},hsb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-2),s=n.slice(-2);return i&&1==o||1==s?"one":i&&2==o||2==s?"two":i&&(3==o||4==o)||3==s||4==s?"few":"other"},hu:dt,hy:e=>e>=0&&e<2?"one":"other",ia:pt,id:mt,ig:gt,ii:yt,io:wt,is:e=>{const t=String(e).split("."),r=t[0],n=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,o=r.slice(-1),s=r.slice(-2);return i&&1==o&&11!=s||n%10==1&&n%100!=11?"one":"other"},it:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},iu:bt,ja:vt,jbo:kt,jgo:xt,jmc:St,jv:Et,jw:Tt,ka:Ot,kab:e=>e>=0&&e<2?"one":"other",kaj:_t,kcg:At,kde:Nt,kea:jt,kk:$t,kkj:Pt,kl:Dt,km:It,kn:Ft,ko:Bt,ks:Lt,ksb:zt,ksh:e=>0==e?"zero":1==e?"one":"other",ku:Ct,kw:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-2),i=r&&t[0].slice(-3),o=r&&t[0].slice(-5),s=r&&t[0].slice(-6);return 0==e?"zero":1==e?"one":2==n||22==n||42==n||62==n||82==n||r&&0==i&&(o>=1e3&&o<=2e4||4e4==o||6e4==o||8e4==o)||0!=e&&1e5==s?"two":3==n||23==n||43==n||63==n||83==n?"few":1==e||1!=n&&21!=n&&41!=n&&61!=n&&81!=n?"other":"many"},ky:Rt,lag:e=>{const t=String(e).split(".")[0];return 0==e?"zero":0!=t&&1!=t||0==e?"other":"one"},lb:qt,lg:Mt,lij:Ut,lkt:Ht,ln:Wt,lo:Gt,lt:e=>{const t=String(e).split("."),r=t[1]||"",n=Number(t[0])==e,i=n&&t[0].slice(-1),o=n&&t[0].slice(-2);return 1==i&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":0!=r?"many":"other"},lv:e=>{const t=String(e).split("."),r=t[1]||"",n=r.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),s=i&&t[0].slice(-2),a=r.slice(-2),c=r.slice(-1);return i&&0==o||s>=11&&s<=19||2==n&&a>=11&&a<=19?"zero":1==o&&11!=s||2==n&&1==c&&11!=a||2!=n&&1==c?"one":"other"},mas:Jt,mg:Kt,mgo:Zt,mk:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":"other"},ml:Vt,mn:Xt,mo:e=>{const t=String(e).split("."),r=!t[1],n=Number(t[0])==e&&t[0].slice(-2);return 1==e&&r?"one":!r||0==e||1!=e&&n>=1&&n<=19?"few":"other"},mr:Yt,ms:Qt,mt:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},my:er,nah:tr,naq:rr,nb:nr,nd:ir,ne:or,nl:sr,nn:ar,nnh:cr,no:lr,nqo:ur,nr:hr,nso:fr,ny:dr,nyn:pr,om:mr,or:gr,os:yr,osa:wr,pa:br,pap:vr,pcm:kr,pl:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return 1==e&&n?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&1!=r&&(0==i||1==i)||n&&i>=5&&i<=9||n&&o>=12&&o<=14?"many":"other"},prg:e=>{const t=String(e).split("."),r=t[1]||"",n=r.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),s=i&&t[0].slice(-2),a=r.slice(-2),c=r.slice(-1);return i&&0==o||s>=11&&s<=19||2==n&&a>=11&&a<=19?"zero":1==o&&11!=s||2==n&&1==c&&11!=a||2!=n&&1==c?"one":"other"},ps:xr,pt:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 0==r||1==r?"one":0!=r&&0==i&&n?"many":"other"},pt_PT:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},rm:Sr,ro:e=>{const t=String(e).split("."),r=!t[1],n=Number(t[0])==e&&t[0].slice(-2);return 1==e&&r?"one":!r||0==e||1!=e&&n>=1&&n<=19?"few":"other"},rof:Er,ru:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i&&11!=o?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||n&&i>=5&&i<=9||n&&o>=11&&o<=14?"many":"other"},rwk:Tr,sah:Or,saq:_r,sat:Ar,sc:Nr,scn:jr,sd:$r,sdh:Pr,se:Dr,seh:Ir,ses:Fr,sg:Br,sh:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},shi:e=>{const t=String(e).split("."),r=Number(t[0])==e;return e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},si:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"";return 0==e||1==e||0==r&&1==n?"one":"other"},sk:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==e&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},sl:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-2);return n&&1==i?"one":n&&2==i?"two":n&&(3==i||4==i)||!n?"few":"other"},sma:Lr,smi:zr,smj:Cr,smn:Rr,sms:qr,sn:Mr,so:Ur,sq:Hr,sr:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},ss:Wr,ssy:Gr,st:Jr,su:Kr,sv:Zr,sw:Vr,syr:Xr,ta:Yr,te:Qr,teo:en,th:tn,ti:rn,tig:nn,tk:on,tl:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},tn:sn,to:an,tpi:cn,tr:ln,ts:un,tzm:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 0==e||1==e||r&&e>=11&&e<=99?"one":"other"},ug:hn,uk:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i&&11!=o?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||n&&i>=5&&i<=9||n&&o>=11&&o<=14?"many":"other"},und:fn,ur:dn,uz:pn,ve:mn,vec:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},vi:gn,vo:yn,vun:wn,wa:bn,wae:vn,wo:kn,xh:xn,xog:Sn,yi:En,yo:Tn,yue:On,zh:_n,zu:An});const jn="zero",$n="one",Pn="two",Dn="few",In="many",Fn="other",Bn={cardinal:[$n,Fn],ordinal:[Fn]},Ln={cardinal:[$n,Fn],ordinal:[$n,Fn]},zn={cardinal:[Fn],ordinal:[Fn]},Cn={cardinal:[$n,Pn,Fn],ordinal:[Fn]},Rn=Bn,qn=Bn,Mn=Bn,Un=Bn,Hn={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[Fn]},Wn={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[Fn]},Gn={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},Jn=Bn,Kn=Bn,Zn={cardinal:[$n,Fn],ordinal:[$n,Dn,In,Fn]},Vn=Ln,Xn={cardinal:[$n,Dn,In,Fn],ordinal:[Dn,Fn]},Yn=Bn,Qn=Bn,ei=Bn,ti=Bn,ri=zn,ni={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},ii=zn,oi={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[Fn]},si=Bn,ai={cardinal:[$n,Dn,Fn],ordinal:[Fn]},ci={cardinal:[$n,In,Fn],ordinal:[$n,Pn,Dn,Fn]},li=Bn,ui=Bn,hi=Bn,fi=Bn,di=Bn,pi={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},mi={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[jn,$n,Pn,Dn,In,Fn]},gi=Bn,yi=Bn,wi=Bn,bi={cardinal:[$n,Pn,Dn,Fn],ordinal:[Fn]},vi=Bn,ki=zn,xi=Bn,Si=Bn,Ei={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,Fn]},Ti=Bn,Oi={cardinal:[$n,In,Fn],ordinal:[Fn]},_i=Bn,Ai=Bn,Ni=Bn,ji=Bn,$i=Bn,Pi=Ln,Di=Bn,Ii={cardinal:[$n,In,Fn],ordinal:[$n,Fn]},Fi=Bn,Bi=Bn,Li={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[$n,Fn]},zi={cardinal:[$n,Pn,Dn,Fn],ordinal:[$n,Pn,Dn,Fn]},Ci=Bn,Ri=Bn,qi={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},Mi=Bn,Ui={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[Fn]},Hi=Bn,Wi=Bn,Gi=Cn,Ji={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},Ki=zn,Zi={cardinal:[$n,Dn,Fn],ordinal:[Fn]},Vi={cardinal:[$n,Pn,Dn,Fn],ordinal:[Fn]},Xi=Ln,Yi=Ln,Qi=Bn,eo=zn,to=zn,ro=zn,no=Bn,io=Bn,oo={cardinal:[$n,In,Fn],ordinal:[In,Fn]},so=Cn,ao=zn,co=zn,lo=Bn,uo=Bn,ho=zn,fo=zn,po={cardinal:[$n,Fn],ordinal:[$n,In,Fn]},mo=Bn,go=Bn,yo=Bn,wo=zn,bo=zn,vo={cardinal:[$n,Fn],ordinal:[In,Fn]},ko=Bn,xo=Bn,So=zn,Eo=Bn,To=zn,Oo=Bn,_o=Bn,Ao={cardinal:[jn,$n,Fn],ordinal:[Fn]},No=Bn,jo={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[$n,In,Fn]},$o=Bn,Po={cardinal:[jn,$n,Fn],ordinal:[Fn]},Do=Bn,Io=Bn,Fo={cardinal:[$n,Fn],ordinal:[In,Fn]},Bo=zn,Lo=Bn,zo={cardinal:[Fn],ordinal:[$n,Fn]},Co={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},Ro={cardinal:[jn,$n,Fn],ordinal:[Fn]},qo=Bn,Mo=Bn,Uo=Bn,Ho={cardinal:[$n,Fn],ordinal:[$n,Pn,In,Fn]},Wo=Bn,Go=Bn,Jo={cardinal:[$n,Dn,Fn],ordinal:[$n,Fn]},Ko={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,Fn]},Zo={cardinal:[Fn],ordinal:[$n,Fn]},Vo={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[Fn]},Xo=zn,Yo=Bn,Qo=Cn,es=Bn,ts=Bn,rs=Ln,ns=Bn,is=Bn,os=Bn,ss=Bn,as=zn,cs=Bn,ls=Bn,us=Bn,hs=Bn,fs=Bn,ds={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},ps=Bn,ms=zn,gs=Bn,ys=Bn,ws=Bn,bs={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},vs={cardinal:[jn,$n,Fn],ordinal:[Fn]},ks=Bn,xs={cardinal:[$n,In,Fn],ordinal:[Fn]},Ss={cardinal:[$n,In,Fn],ordinal:[Fn]},Es=Bn,Ts={cardinal:[$n,Dn,Fn],ordinal:[$n,Fn]},Os=Bn,_s={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},As=Bn,Ns=zn,js=Bn,$s=Cn,Ps={cardinal:[$n,Fn],ordinal:[In,Fn]},Ds={cardinal:[$n,Fn],ordinal:[In,Fn]},Is=Bn,Fs=Bn,Bs=Cn,Ls=Bn,zs=zn,Cs=zn,Rs={cardinal:[$n,Dn,Fn],ordinal:[Fn]},qs={cardinal:[$n,Dn,Fn],ordinal:[Fn]},Ms=Bn,Us={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},Hs={cardinal:[$n,Pn,Dn,Fn],ordinal:[Fn]},Ws=Cn,Gs=Cn,Js=Cn,Ks=Cn,Zs=Cn,Vs=Bn,Xs=Bn,Ys={cardinal:[$n,Fn],ordinal:[$n,In,Fn]},Qs={cardinal:[$n,Dn,Fn],ordinal:[Fn]},ea=Bn,ta=Bn,ra=Bn,na=zn,ia=Ln,oa=Bn,sa=Bn,aa=Bn,ca=Bn,la=Bn,ua=zn,ha=Bn,fa=Bn,da={cardinal:[$n,Fn],ordinal:[Dn,Fn]},pa=Ln,ma=Bn,ga=zn,ya=zn,wa=Bn,ba=Bn,va=Bn,ka=Bn,xa={cardinal:[$n,Dn,In,Fn],ordinal:[Dn,Fn]},Sa=zn,Ea=Bn,Ta=Bn,Oa=Bn,_a={cardinal:[$n,In,Fn],ordinal:[In,Fn]},Aa={cardinal:[Fn],ordinal:[$n,Fn]},Na=Bn,ja=Bn,$a=Bn,Pa=Bn,Da=zn,Ia=Bn,Fa=Bn,Ba=Bn,La=zn,za=zn,Ca=zn,Ra=Bn;var qa=Object.freeze({__proto__:null,af:Rn,ak:qn,am:Mn,an:Un,ar:Hn,ars:Wn,as:Gn,asa:Jn,ast:Kn,az:Zn,bal:Vn,be:Xn,bem:Yn,bez:Qn,bg:ei,bho:ti,bm:ri,bn:ni,bo:ii,br:oi,brx:si,bs:ai,ca:ci,ce:li,ceb:ui,cgg:hi,chr:fi,ckb:di,cs:pi,cy:mi,da:gi,de:yi,doi:wi,dsb:bi,dv:vi,dz:ki,ee:xi,el:Si,en:Ei,eo:Ti,es:Oi,et:_i,eu:Ai,fa:Ni,ff:ji,fi:$i,fil:Pi,fo:Di,fr:Ii,fur:Fi,fy:Bi,ga:Li,gd:zi,gl:Ci,gsw:Ri,gu:qi,guw:Mi,gv:Ui,ha:Hi,haw:Wi,he:Gi,hi:Ji,hnj:Ki,hr:Zi,hsb:Vi,hu:Xi,hy:Yi,ia:Qi,id:eo,ig:to,ii:ro,io:no,is:io,it:oo,iu:so,ja:ao,jbo:co,jgo:lo,jmc:uo,jv:ho,jw:fo,ka:po,kab:mo,kaj:go,kcg:yo,kde:wo,kea:bo,kk:vo,kkj:ko,kl:xo,km:So,kn:Eo,ko:To,ks:Oo,ksb:_o,ksh:Ao,ku:No,kw:jo,ky:$o,lag:Po,lb:Do,lg:Io,lij:Fo,lkt:Bo,ln:Lo,lo:zo,lt:Co,lv:Ro,mas:qo,mg:Mo,mgo:Uo,mk:Ho,ml:Wo,mn:Go,mo:Jo,mr:Ko,ms:Zo,mt:Vo,my:Xo,nah:Yo,naq:Qo,nb:es,nd:ts,ne:rs,nl:ns,nn:is,nnh:os,no:ss,nqo:as,nr:cs,nso:ls,ny:us,nyn:hs,om:fs,or:ds,os:ps,osa:ms,pa:gs,pap:ys,pcm:ws,pl:bs,prg:vs,ps:ks,pt:xs,pt_PT:Ss,rm:Es,ro:Ts,rof:Os,ru:_s,rwk:As,sah:Ns,saq:js,sat:$s,sc:Ps,scn:Ds,sd:Is,sdh:Fs,se:Bs,seh:Ls,ses:zs,sg:Cs,sh:Rs,shi:qs,si:Ms,sk:Us,sl:Hs,sma:Ws,smi:Gs,smj:Js,smn:Ks,sms:Zs,sn:Vs,so:Xs,sq:Ys,sr:Qs,ss:ea,ssy:ta,st:ra,su:na,sv:ia,sw:oa,syr:sa,ta:aa,te:ca,teo:la,th:ua,ti:ha,tig:fa,tk:da,tl:pa,tn:ma,to:ga,tpi:ya,tr:wa,ts:ba,tzm:va,ug:ka,uk:xa,und:Sa,ur:Ea,uz:Ta,ve:Oa,vec:_a,vi:Aa,vo:Na,vun:ja,wa:$a,wae:Pa,wo:Da,xh:Ia,xog:Fa,yi:Ba,yo:La,yue:za,zh:Ca,zu:Ra});const Ma=(e,t)=>t?"other":1==e?"one":"other",Ua=(e,t)=>t?"other":0==e||1==e?"one":"other",Ha=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",Wa=(e,t)=>{const r=!String(e).split(".")[1];return t?"other":1==e&&r?"one":"other"},Ga=(e,t)=>"other",Ja=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",Ka=Ma,Za=Ua,Va=Ha,Xa=Ma,Ya=Ma,Qa=Wa,ec=Ma,tc=Ma,rc=Ma,nc=Ua,ic=Ga,oc=Ga,sc=Ma,ac=Ma,cc=Ma,lc=Ma,uc=Ma,hc=Wa,fc=Ha,dc=Ma,pc=Ga,mc=Ma,gc=Ma,yc=Ma,wc=Wa,bc=Ma,vc=Ha,kc=Wa,xc=Ma,Sc=Ma,Ec=Wa,Tc=Wa,Oc=Ma,_c=Ua,Ac=Ma,Nc=Ma,jc=Ga,$c=Wa,Pc=Ga,Dc=Ga,Ic=Ga,Fc=Wa,Bc=Ja,Lc=Ga,zc=Ga,Cc=Ma,Rc=Ma,qc=Ga,Mc=Ga,Uc=Ma,Hc=Ma,Wc=Ga,Gc=Ga,Jc=Ma,Kc=Ma,Zc=Ga,Vc=Ha,Xc=Ga,Yc=Ma,Qc=Ma,el=Ma,tl=Ma,rl=Ma,nl=Ma,il=Ga,ol=Ua,sl=Ma,al=Ua,cl=Ma,ll=Ma,ul=Ma,hl=Ga,fl=Ma,dl=Ja,pl=Ma,ml=Ma,gl=Wa,yl=Ma,wl=Ma,bl=Ma,vl=Ga,kl=Ma,xl=Ua,Sl=Ma,El=Ma,Tl=Ma,Ol=Ma,_l=Ga,Al=Ua,Nl=Ma,jl=Ha,$l=Ma,Pl=Ma,Dl=Ma,Il=Ma,Fl=Ga,Bl=Ma,Ll=Ja,zl=Ma,Cl=Ma,Rl=Ja,ql=Ma,Ml=Ga,Ul=Ga,Hl=Ja,Wl=Ja,Gl=Ja,Jl=Ja,Kl=Ja,Zl=Ma,Vl=Ma,Xl=Ma,Yl=Ma,Ql=Ma,eu=Ga,tu=Wa,ru=Ma,nu=Ma,iu=Ma,ou=Ma,su=Ga,au=Ua,cu=Ma,lu=Ma,uu=Ga,hu=Ga,fu=Ma,du=Ma,pu=Ma,mu=Ga,gu=Wa,yu=Ma,wu=Ma,bu=Ma,vu=Ma,ku=Ua,xu=Ma,Su=Ga,Eu=Ma,Tu=Ma,Ou=Wa,_u=Ga,Au=Ga,Nu=Ga,ju=Ha;var $u=Object.freeze({__proto__:null,af:Ka,ak:Za,am:Va,an:Xa,ar:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ars:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},as:(e,t)=>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:Ya,ast:Qa,az:(e,t)=>{const r=String(e).split(".")[0],n=r.slice(-1),i=r.slice(-2),o=r.slice(-3);return t?1==n||2==n||5==n||7==n||8==n||20==i||50==i||70==i||80==i?"one":3==n||4==n||100==o||200==o||300==o||400==o||500==o||600==o||700==o||800==o||900==o?"few":0==r||6==n||40==i||60==i||90==i?"many":"other":1==e?"one":"other"},bal:(e,t)=>1==e?"one":"other",be:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},bem:ec,bez:tc,bg:rc,bho:nc,bm:ic,bn:(e,t)=>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:oc,br:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2),s=n&&r[0].slice(-6);return t?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&n&&0==s?"many":"other"},brx:sc,bs:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ca:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},ce:ac,ceb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},cgg:cc,chr:lc,ckb:uc,cs:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},cy:(e,t)=>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:(e,t)=>{const r=String(e).split("."),n=r[0],i=Number(r[0])==e;return t||1!=e&&(i||0!=n&&1!=n)?"other":"one"},de:hc,doi:fc,dsb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-2),a=i.slice(-2);return t?"other":o&&1==s||1==a?"one":o&&2==s||2==a?"two":o&&(3==s||4==s)||3==a||4==a?"few":"other"},dv:dc,dz:pc,ee:mc,el:gc,en:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1==o&&11!=s?"one":2==o&&12!=s?"two":3==o&&13!=s?"few":"other":1==e&&n?"one":"other"},eo:yc,es:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e?"one":0!=n&&0==o&&i?"many":"other"},et:wc,eu:bc,fa:vc,ff:(e,t)=>t?"other":e>=0&&e<2?"one":"other",fi:kc,fil:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},fo:xc,fr:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=n&&0==o&&i?"many":"other"},fur:Sc,fy:Ec,ga:(e,t)=>{const 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:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},gl:Tc,gsw:Oc,gu:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",guw:_c,gv:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=s&&20!=s&&40!=s&&60!=s&&80!=s?i?"other":"many":"few"},ha:Ac,haw:Nc,he:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==n&&i||0==n&&!i?"one":2==n&&i?"two":"other"},hi:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",hnj:jc,hr:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},hsb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-2),a=i.slice(-2);return t?"other":o&&1==s||1==a?"one":o&&2==s||2==a?"two":o&&(3==s||4==s)||3==a||4==a?"few":"other"},hu:(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",hy:(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",ia:$c,id:Pc,ig:Dc,ii:Ic,io:Fc,is:(e,t)=>{const r=String(e).split("."),n=r[0],i=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==e,s=n.slice(-1),a=n.slice(-2);return t?"other":o&&1==s&&11!=a||i%10==1&&i%100!=11?"one":"other"},it:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},iu:Bc,ja:Lc,jbo:zc,jgo:Cc,jmc:Rc,jv:qc,jw:Mc,ka:(e,t)=>{const r=String(e).split(".")[0],n=r.slice(-2);return t?1==r?"one":0==r||n>=2&&n<=20||40==n||60==n||80==n?"many":"other":1==e?"one":"other"},kab:(e,t)=>t?"other":e>=0&&e<2?"one":"other",kaj:Uc,kcg:Hc,kde:Wc,kea:Gc,kk:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1);return t?6==i||9==i||n&&0==i&&0!=e?"many":"other":1==e?"one":"other"},kkj:Jc,kl:Kc,km:Zc,kn:Vc,ko:Xc,ks:Yc,ksb:Qc,ksh:(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",ku:el,kw:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-2),o=n&&r[0].slice(-3),s=n&&r[0].slice(-5),a=n&&r[0].slice(-6);return t?n&&e>=1&&e<=4||i>=1&&i<=4||i>=21&&i<=24||i>=41&&i<=44||i>=61&&i<=64||i>=81&&i<=84?"one":5==e||5==i?"many":"other":0==e?"zero":1==e?"one":2==i||22==i||42==i||62==i||82==i||n&&0==o&&(s>=1e3&&s<=2e4||4e4==s||6e4==s||8e4==s)||0!=e&&1e5==a?"two":3==i||23==i||43==i||63==i||83==i?"few":1==e||1!=i&&21!=i&&41!=i&&61!=i&&81!=i?"other":"many"},ky:tl,lag:(e,t)=>{const r=String(e).split(".")[0];return t?"other":0==e?"zero":0!=r&&1!=r||0==e?"other":"one"},lb:rl,lg:nl,lij:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e;return t?11==e||8==e||i&&e>=80&&e<=89||i&&e>=800&&e<=899?"many":"other":1==e&&n?"one":"other"},lkt:il,ln:ol,lo:(e,t)=>t&&1==e?"one":"other",lt:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?"other":1==o&&(s<11||s>19)?"one":o>=2&&o<=9&&(s<11||s>19)?"few":0!=n?"many":"other"},lv:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-2),l=n.slice(-1);return t?"other":o&&0==s||a>=11&&a<=19||2==i&&c>=11&&c<=19?"zero":1==s&&11!=a||2==i&&1==l&&11!=c||2!=i&&1==l?"one":"other"},mas:sl,mg:al,mgo:cl,mk:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?1==s&&11!=a?"one":2==s&&12!=a?"two":7!=s&&8!=s||17==a||18==a?"other":"many":o&&1==s&&11!=a||1==c&&11!=l?"one":"other"},ml:ll,mn:ul,mo:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&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:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ms:(e,t)=>t&&1==e?"one":"other",mt:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},my:hl,nah:fl,naq:dl,nb:pl,nd:ml,ne:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?n&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:gl,nn:yl,nnh:wl,no:bl,nqo:vl,nr:kl,nso:xl,ny:Sl,nyn:El,om:Tl,or:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e||5==e||n&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},os:Ol,osa:_l,pa:Al,pap:Nl,pcm:jl,pl:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":1==e&&i?"one":i&&o>=2&&o<=4&&(s<12||s>14)?"few":i&&1!=n&&(0==o||1==o)||i&&o>=5&&o<=9||i&&s>=12&&s<=14?"many":"other"},prg:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-2),l=n.slice(-1);return t?"other":o&&0==s||a>=11&&a<=19||2==i&&c>=11&&c<=19?"zero":1==s&&11!=a||2==i&&1==l&&11!=c||2!=i&&1==l?"one":"other"},ps:$l,pt:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":0==n||1==n?"one":0!=n&&0==o&&i?"many":"other"},pt_PT:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},rm:Pl,ro:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&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:Dl,ru:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":i&&1==o&&11!=s?"one":i&&o>=2&&o<=4&&(s<12||s>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&s>=11&&s<=14?"many":"other"},rwk:Il,sah:Fl,saq:Bl,sat:Ll,sc:(e,t)=>{const r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},scn:(e,t)=>{const r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},sd:zl,sdh:Cl,se:Rl,seh:ql,ses:Ml,sg:Ul,sh:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},shi:(e,t)=>{const 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:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"";return t?"other":0==e||1==e||0==n&&1==i?"one":"other"},sk:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},sl:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:Hl,smi:Wl,smj:Gl,smn:Jl,sms:Kl,sn:Zl,so:Vl,sq:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?1==e?"one":4==i&&14!=o?"many":"other":1==e?"one":"other"},sr:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ss:Xl,ssy:Yl,st:Ql,su:eu,sv:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1!=o&&2!=o||11==s||12==s?"other":"one":1==e&&n?"one":"other"},sw:tu,syr:ru,ta:nu,te:iu,teo:ou,th:su,ti:au,tig:cu,tk:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-1);return t?6==n||9==n||10==e?"few":"other":1==e?"one":"other"},tl:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},tn:lu,to:uu,tpi:hu,tr:fu,ts:du,tzm:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?"other":0==e||1==e||n&&e>=11&&e<=99?"one":"other"},ug:pu,uk:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-1),l=n.slice(-2);return t?3==s&&13!=a?"few":"other":i&&1==c&&11!=l?"one":i&&c>=2&&c<=4&&(l<12||l>14)?"few":i&&0==c||i&&c>=5&&c<=9||i&&l>=11&&l<=14?"many":"other"},und:mu,ur:gu,uz:yu,ve:wu,vec:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},vi:(e,t)=>t&&1==e?"one":"other",vo:bu,vun:vu,wa:ku,wae:xu,wo:Su,xh:Eu,xog:Tu,yi:Ou,yo:_u,yue:Au,zh:Nu,zu:ju});function Pu(e){if("string"!=typeof e||e.length<2)throw new RangeError("Invalid language tag: ".concat(e));if(e.startsWith("pt-PT"))return"pt-PT";var t=e.match(/.+?(?=[-_])/);return t?t[0]:e}function Du(e){if("function"==typeof e){var t=Pu(e.name);return{isDefault:!1,id:he(t),lc:t,locale:e.name,getPlural:e,cardinals:e.cardinals||[],ordinals:e.ordinals||[]}}var r=Pu(e),n=he(r);return function(e){return e in $u}(n)?{isDefault:!0,id:n,lc:r,locale:e,getCardinal:Nn[n],getPlural:$u[n],cardinals:qa[n].cardinal,ordinals:qa[n].ordinal}:null}function Iu(e){return he(Pu(e))in $u}return function(){function r(e,t){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:t&&t.strictNumberSign||!1,strictPluralKeys:!0},t),"*"===e?this.plurals=(i=r.defaultLocale,(o=Object.keys($u).filter((function(e){return e!==i}))).unshift(i),o.map(Du)):Array.isArray(e)?this.plurals=e.map(Du).filter(Boolean):e&&(n=Du(e))&&(this.plurals=[n]),0===this.plurals.length){var n=Du(r.defaultLocale);this.plurals=[n]}var i,o}return r.escape=function(e,t){var r=t?/[#{}]/g:/[{}]/g;return String(e).replace(r,"'$&'")},r.supportedLocalesOf=function(e){return(Array.isArray(e)?e:[e]).filter(Iu)},r.prototype.resolvedOptions=function(){return e(e({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})},r.prototype.compile=function(e){var r,o,s=new me(this.options),a="return "+s.compile(e,this.plurals[0]),c=[],l=[];try{for(var u=t(Object.entries(s.runtime)),h=u.next();!h.done;h=u.next()){var f=n(h.value,2),d=f[0],p=f[1];c.push(d),l.push(p)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return(new(Function.bind.apply(Function,i(i([void 0],n(c),!1),[a],!1)))).apply(void 0,i([],n(l),!1))},r.defaultLocale="en",r}()}()},487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},98:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,o="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=m(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,r,n=p(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=m(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=u(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(e)]=h(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),f(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},w.call(v.prototype),w.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];x.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(i,s){var c=new v(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function u(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;setTimeout((function(){i(new x(n,r))}),0)},l.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},l.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(o?l.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?c.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){l.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",u),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",u)}),l.send(void 0===c._bodyInit?null:c._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=d,r.Request=v,r.Response=x),t.Headers=d,t.Request=v,t.Response=x,t.fetch=E}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},12:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var i=e[n]<<16|e[n+1]<<8|e[n+2],o=0;o<4;o++)8*n+6*o<=8*e.length?r.push(t.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<e.length;i=++n%4)0!=i&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(n))>>>6-2*i);return r}},e.exports=r},738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:(e,t,r)=>{var n,i,o,s,a;n=r(12),i=r(487).utf8,o=r(738),s=r(487).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):i.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,h=-1732584194,f=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var p=a._ff,m=a._gg,g=a._hh,y=a._ii;for(d=0;d<r.length;d+=16){var w=l,b=u,v=h,k=f;l=p(l,u,h,f,r[d+0],7,-680876936),f=p(f,l,u,h,r[d+1],12,-389564586),h=p(h,f,l,u,r[d+2],17,606105819),u=p(u,h,f,l,r[d+3],22,-1044525330),l=p(l,u,h,f,r[d+4],7,-176418897),f=p(f,l,u,h,r[d+5],12,1200080426),h=p(h,f,l,u,r[d+6],17,-1473231341),u=p(u,h,f,l,r[d+7],22,-45705983),l=p(l,u,h,f,r[d+8],7,1770035416),f=p(f,l,u,h,r[d+9],12,-1958414417),h=p(h,f,l,u,r[d+10],17,-42063),u=p(u,h,f,l,r[d+11],22,-1990404162),l=p(l,u,h,f,r[d+12],7,1804603682),f=p(f,l,u,h,r[d+13],12,-40341101),h=p(h,f,l,u,r[d+14],17,-1502002290),l=m(l,u=p(u,h,f,l,r[d+15],22,1236535329),h,f,r[d+1],5,-165796510),f=m(f,l,u,h,r[d+6],9,-1069501632),h=m(h,f,l,u,r[d+11],14,643717713),u=m(u,h,f,l,r[d+0],20,-373897302),l=m(l,u,h,f,r[d+5],5,-701558691),f=m(f,l,u,h,r[d+10],9,38016083),h=m(h,f,l,u,r[d+15],14,-660478335),u=m(u,h,f,l,r[d+4],20,-405537848),l=m(l,u,h,f,r[d+9],5,568446438),f=m(f,l,u,h,r[d+14],9,-1019803690),h=m(h,f,l,u,r[d+3],14,-187363961),u=m(u,h,f,l,r[d+8],20,1163531501),l=m(l,u,h,f,r[d+13],5,-1444681467),f=m(f,l,u,h,r[d+2],9,-51403784),h=m(h,f,l,u,r[d+7],14,1735328473),l=g(l,u=m(u,h,f,l,r[d+12],20,-1926607734),h,f,r[d+5],4,-378558),f=g(f,l,u,h,r[d+8],11,-2022574463),h=g(h,f,l,u,r[d+11],16,1839030562),u=g(u,h,f,l,r[d+14],23,-35309556),l=g(l,u,h,f,r[d+1],4,-1530992060),f=g(f,l,u,h,r[d+4],11,1272893353),h=g(h,f,l,u,r[d+7],16,-155497632),u=g(u,h,f,l,r[d+10],23,-1094730640),l=g(l,u,h,f,r[d+13],4,681279174),f=g(f,l,u,h,r[d+0],11,-358537222),h=g(h,f,l,u,r[d+3],16,-722521979),u=g(u,h,f,l,r[d+6],23,76029189),l=g(l,u,h,f,r[d+9],4,-640364487),f=g(f,l,u,h,r[d+12],11,-421815835),h=g(h,f,l,u,r[d+15],16,530742520),l=y(l,u=g(u,h,f,l,r[d+2],23,-995338651),h,f,r[d+0],6,-198630844),f=y(f,l,u,h,r[d+7],10,1126891415),h=y(h,f,l,u,r[d+14],15,-1416354905),u=y(u,h,f,l,r[d+5],21,-57434055),l=y(l,u,h,f,r[d+12],6,1700485571),f=y(f,l,u,h,r[d+3],10,-1894986606),h=y(h,f,l,u,r[d+10],15,-1051523),u=y(u,h,f,l,r[d+1],21,-2054922799),l=y(l,u,h,f,r[d+8],6,1873313359),f=y(f,l,u,h,r[d+15],10,-30611744),h=y(h,f,l,u,r[d+6],15,-1560198380),u=y(u,h,f,l,r[d+13],21,1309151649),l=y(l,u,h,f,r[d+4],6,-145523070),f=y(f,l,u,h,r[d+11],10,-1120210379),h=y(h,f,l,u,r[d+2],15,718787259),u=y(u,h,f,l,r[d+9],21,-343485551),l=l+w>>>0,u=u+b>>>0,h=h+v>>>0,f=f+k>>>0}return n.endian([l,u,h,f])})._ff=function(e,t,r,n,i,o,s){var a=e+(t&r|~t&n)+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._gg=function(e,t,r,n,i,o,s){var a=e+(t&n|r&~n)+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._hh=function(e,t,r,n,i,o,s){var a=e+(t^r^n)+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._ii=function(e,t,r,n,i,o,s){var a=e+(r^(t|~n))+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(a(e,t));return t&&t.asBytes?r:t&&t.asString?s.bytesToString(r):n.bytesToHex(r)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{FETCHING_LOCALES:()=>S,FETCHING_TRANSLATIONS:()=>b,LOCALES_FETCHED:()=>E,LOCALES_FETCH_FAILED:()=>T,LOCALE_CHANGED:()=>x,MessageFormatRenderer:()=>M,PseudoTranslationPolicy:()=>z,SourceErrorPolicy:()=>R,SourceStringPolicy:()=>C,TRANSLATIONS_FETCHED:()=>v,TRANSLATIONS_FETCH_FAILED:()=>k,ThrowErrorPolicy:()=>q,createNativeInstance:()=>U,escape:()=>m,explodePlurals:()=>D,generateHashedKey:()=>p,generateKey:()=>d,implodePlurals:()=>I,isPluralized:()=>F,isString:()=>g,normalizeLocale:()=>y,offEvent:()=>A,onEvent:()=>_,sendEvent:()=>N,sleep:()=>w,t:()=>W,tx:()=>H});var e=r(98),t=r.n(e);class i{constructor(){this.translationsByLocale={}}update(e,t){const r=this.translationsByLocale[e]||{};this.translationsByLocale[e]={...r,...t}}getTranslations(e){return this.translationsByLocale[e]||{}}hasTranslations(e){return!!this.translationsByLocale[e]}isStale(e){return!this.hasTranslations(e)}get(e,t){return this.getTranslations(t)[e]||""}}class o{handle(e,t,r,n){return t}}class s{handle(e,t){return e}}var a=r(160),c=r.n(a);const l={};class u{render(e,t,r){const n=(t||"").split("_")[0];if(!l[n])try{l[n]=new(c())(n,{strictPluralKeys:!1})}catch(e){l[n]=new(c())("*",{strictPluralKeys:!1})}return l[n].compile(e)(r)}}var h=r(568),f=r.n(h);function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t._key?t._key:t._context?`${e}::${t._context}`:`${e}`}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t._key)return t._key;let r="";return t._context&&(r=t._context,r=r.replace(/,/g,":")),f()(`5:${e}:${r}`)}function m(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function y(e){const t=e.split("-");let r;return r=1===t.length?e:[t[0],t[1].toUpperCase()].join("_"),r}function w(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}const b="FETCHING_TRANSLATIONS",v="TRANSLATIONS_FETCHED",k="TRANSLATIONS_FETCH_FAILED",x="LOCALE_CHANGED",S="FETCHING_LOCALES",E="LOCALES_FETCHED",T="LOCALES_FETCH_FAILED",O={};function _(e,t){O[e]=O[e]||[],O[e].push(t)}function A(e,t){const r=O[e]||[],n=r.indexOf(t);-1!==n&&r.splice(n,1)}function N(e,t,r){(O[e]||[]).forEach((e=>{e(t,r)}))}const j=["zero","one","two","few","many","other"];function $(e){const t=e.indexOf("{");if(-1===t)return[null,null];let r=e.substring(0,t).trim();if("="===r[0]){if(r=r.substring(1),Number.isNaN(parseInt(r,10))||parseInt(r,10)!==parseFloat(r))return[null,null];if(r=parseInt(r,10),r=j[r],void 0===r)return[null,null]}else if(-1===j.indexOf(r))return[null,null];return[r,e.substring(t)]}function P(e){let[t,r]=[0,!1],n=0;for(;n<e.length;){const i=e[n];if("'"===i){const t=e[n+1];"'"===t?n+=1:r?r=!1:"{"!==t&&"}"!==t||(r=!0)}else if("{"===i)r||(t+=1);else if("}"===i&&(r||(t-=1),0===t))return[e.substring(1,n),e.substring(n+1).trim()];n+=1}return[null,null]}function D(e){const t=[null,{other:e}];let[r,n]=function(e){if(!(e.length>1&&"{"===e[0]&&"}"===e[e.length-1]))return[null,null];const t=e.indexOf(",");if(-1===t)return[null,null];const r=e.indexOf(",",t+1);if(-1===r)return[null,null];const n=e.substring(1,t).trim(),i=e.substring(t+1,r).trim();return/^[\w_]+$/.test(n)&&"plural"===i?[n,e.substring(r+1,e.length-1).trim()]:[null,null]}(e);if(null==r)return t;const i={};let o,s;if([o,n]=$(n),null==o)return t;if([s,n]=P(n.trim()),null==s)return t;for(i[o]=s;n.trim();){if([o,n]=$(n.trim()),null==o)return t;if([s,n]=P(n.trim()),null==s)return t;i[o]=s}return(1!==Object.keys(i).length||"other"in i)&&"one"in i&&"other"in i?[r,i]:t}function I(e){const t=[`{${arguments.length>1&&void 0!==arguments[1]?arguments[1]:"???"}, plural,`];for(const r of j)if(r in e){const n=e[r];t.push(` ${r} {${n}}`)}return t.push("}"),t.join("")}function F(e){const t=D(e)[1];return Object.keys(t).length>1}class B{constructor(){this.cdsHost="https://cds.svc.transifex.net",this.token="",this.secret="",this.filterTags="",this.filterStatus="",this.fetchTimeout=0,this.fetchInterval=250,this.cache=new i,this.missingPolicy=new s,this.errorPolicy=new o,this.stringRenderer=new u,this.currentLocale="",this.locales=[],this.languages=[],this.childInstances=[]}init(e){const t=this;["cdsHost","token","secret","cache","filterTags","filterStatus","fetchTimeout","fetchInterval","missingPolicy","errorPolicy","stringRenderer","currentLocale"].forEach((r=>{void 0!==e[r]&&(t[r]=e[r])})),this.fetchedTags={}}translate(e,t){return this.translateLocale(this.currentLocale,e,t)}translateLocale(e,t,r){try{let n=this.cache.get(d(t,r),e);n||(n=this.cache.get(p(t,r),e)),n&&n.startsWith("{???")&&F(t)&&(n=`{${t.substring(1,t.indexOf(",")).trim()}${n.substring(4)}`);let i=!1;if(n||(i=!0,n=t),r&&r._escapeVars){const t={};Object.keys(r).forEach((e=>{const n=r[e];t[e]=g(n)?m(n):n})),n=this.stringRenderer.render(n,e,t)}else n=this.stringRenderer.render(n,e,r);return i&&e&&(n=this.missingPolicy.handle(n,e)),g(n)||(n=`${n}`),n}catch(n){return this.errorPolicy.handle(n,`${t}`,e,r)}}async fetchTranslations(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=r.filterTags||this.filterTags;if(!r.refresh&&!this.cache.isStale(e)&&(!n&&this.cache.hasTranslations(e)||n&&-1!==(this.fetchedTags[e]||[]).indexOf(n)))return;n&&(e in this.fetchedTags||(this.fetchedTags[e]=[]),-1===this.fetchedTags[e].indexOf(n)&&this.fetchedTags[e].push(n));const i=t=>(N(k,{localeCode:e,filterTags:n},this),t);try{let r;N(b,{localeCode:e,filterTags:n},this);let o=202;const s=Date.now();for(;202===o;){let a=`${this.cdsHost}/content/${e}`;const c=[];if(n&&c.push(`filter[tags]=${n}`),this.filterStatus&&c.push(`filter[status]=${this.filterStatus}`),c.length&&(a=`${a}?${c.join("&")}`),r=await t()(a,{method:"GET",headers:{Authorization:`Bearer ${this.token}`,"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.0.0"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0}),!r.ok)throw await this._fetchError(r);if(o=r.status,this.fetchTimeout>0&&Date.now()-s>=this.fetchTimeout)throw i(new Error("Fetch translations timeout"));202===o&&this.fetchInterval>0&&await w(this.fetchInterval)}const a=await r.json();if(!a||!a.data)throw i(new Error("Could not fetch translations"));{const t={};Object.keys(a.data).forEach((e=>{a.data[e].string&&(t[e]=a.data[e].string)})),this.cache.update(e,t),N(v,{localeCode:e,filterTags:n},this)}}catch(e){throw i(e)}}async invalidateCDS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.token)throw new Error("token is not defined");if(!this.secret)throw new Error("secret is not defined");const r=e.purge?"purge":"invalidate",n=await t()(`${this.cdsHost}/${r}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}:${this.secret}`,"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.0.0"}});if(!n.ok)throw await this._fetchError(n);return await n.json()}async pushSource(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.token)throw new Error("token is not defined");if(!this.secret)throw new Error("secret is not defined");const n={Authorization:`Bearer ${this.token}:${this.secret}`,"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.0.0"},i=await t()(`${this.cdsHost}/content`,{method:"POST",headers:n,body:JSON.stringify({data:e,meta:{purge:!!r.purge,override_tags:!!r.overrideTags,override_occurrences:!!r.overrideOccurrences}})});if(!i.ok)throw await this._fetchError(i);const o=await i.json(),s=`${this.cdsHost}${o.data.links.job}`;if(r.noWait)return{jobUrl:s};let a={status:""};do{await w(1500);const e=await t()(s,{method:"GET",headers:n});if(!e.ok)throw await this._fetchError(e);const r=await e.json(),{data:i}=r;a={...i.details||{},errors:i.errors||[],status:i.status}}while("pending"===a.status||"processing"===a.status);return{jobUrl:s,...a}}async getLocales(){if(!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).refresh&&this.locales.length>0)return[...this.locales];if(!this.token)return[];const e=e=>(N(T,null,this),e);try{let r;N(S,null,this);let n=202;const i=Date.now();for(;202===n;){if(r=await t()(`${this.cdsHost}/languages`,{method:"GET",headers:{Authorization:`Bearer ${this.token}`,"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.0.0"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0}),!r.ok)throw await this._fetchError(r);if(n=r.status,this.fetchTimeout>0&&Date.now()-i>=this.fetchTimeout)throw e(new Error("Get locales timeout"));202===n&&this.fetchInterval>0&&await w(this.fetchInterval)}const o=await r.json();if(!o||!o.data)throw e(new Error("Could not fetch languages"));this.languages=o.data,this.locales=this.languages.map((e=>e.code)),N(E,null,this)}catch(t){throw e(t)}return[...this.locales]}getCurrentLocale(){return this.currentLocale}isCurrent(e){return e===this.currentLocale}async setCurrentLocale(e){if(this.isCurrent(e))await this._syncInstances(this.childInstances);else{if(!e)return this.currentLocale="",await this._syncInstances(this.childInstances),void N(x,this.currentLocale,this);await this.fetchTranslations(e),this.currentLocale=e,await this._syncInstances(this.childInstances),N(x,e,this)}}async getLanguages(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await this.getLocales(e),[...this.languages]}async controllerOf(e){if(e===this)throw new Error("Cannot add self as instance");if(-1!==e.childInstances.indexOf(this))throw new Error("Cycle reference error, instance is controller of this");return this.childInstances.push(e),await this._syncInstances([e]),e}async _syncInstances(e){const t=this.getCurrentLocale();if(t)for(let r=0;r<e.length;r++)if(e[r].getCurrentLocale()!==t)try{await e[r].fetchTranslations(t)}catch(e){}e.forEach((e=>{e.getCurrentLocale()!==t&&(e.currentLocale=t,N(x,t,e))}))}async _fetchError(e){try{const t=await e.text();return new Error(`HTTP ${e.status}: ${t}`)}catch(t){return new Error(`HTTP error ${e.status}`)}}}const L={a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},z=class{handle(e,t){return e.split(/__txnative__/).map((e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e.charAt(r);if(L[n]){const e=n.toLowerCase();t+="a"===e||"e"===e||"o"===e||"u"===e?L[n]+L[n]:L[n]}else t+=n}return t})).join("__txnative__")}},C=s,R=o,q=class{handle(e,t,r,n){throw e||new Error(`Error translating "${t}"`)}},M=u,U=function(e){const t=new B;return t.t=t.translate.bind(t),e&&t.init(e),t},H=new B,W=H.translate.bind(H)})(),n})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Transifex=t():e.Transifex=t()}(this,(()=>(()=>{var e={160:function(e,t,r){e.exports=function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},e.apply(this,arguments)};function t(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;class o extends Error{constructor(e,t,r){super(e),this.token=t,this.type=r||"error"}}const s=e=>e<4?"short":4===e?"long":"narrow",a=e=>e%2==0?"2-digit":"numeric";function c(e,t){switch(e.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void t(`${e.desc} is not supported with width ${e.width}`)}}function l(e,t){const{char:r,desc:n,width:i}=e;return"d"===r?a(i):void t(`${n} is not supported`)}function u(e,t){const{char:r,desc:n,width:i}=e;return("c"===r||"e"===r)&&i<3&&t(`Numeric value is not supported for ${n}; falling back to weekday:short`,o.WARNING),s(i)}function h(e,t){const{char:r,desc:n,width:i}=e;switch(r){case"v":case"z":return 4===i?"long":"short";case"V":return 4===i?"long":void t(`${n} is not supported with width ${i}`);case"X":return void t(`${n} is not supported`)}return"short"}function f(e,t){switch(e.field){case"era":return{era:s(e.width)};case"year":return function(e,t){switch(e.char){case"y":return{year:a(e.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return t(`${e.desc} is not supported; falling back to year:numeric`,o.WARNING),{year:"numeric"}}}(e,t);case"month":return{month:c(e,t)};case"day":return{day:l(e,t)};case"weekday":return{weekday:u(e,t)};case"period":return;case"hour":return function(e){const t=a(e.width);let r;switch(e.char){case"h":r="h12";break;case"H":r="h23";break;case"k":r="h24";break;case"K":r="h11"}return r?{hour:t,hourCycle:r}:{hour:t}}(e);case"min":return{minute:a(e.width)};case"sec":return{second:a(e.width)};case"tz":return{timeZoneName:h(e,t)};case"quarter":case"week":case"sec-frac":case"ms":t(`${e.desc} is not supported`)}}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>{throw e};const r={},n=[];for(const i of e){const{error:e,field:s,str:a}=i;if(e){const r=new o(e.message,i);r.stack=e.stack,t(r)}a&&t(new o(`Ignoring string part: ${a}`,i,o.WARNING)),s&&(-1===n.indexOf(s)?n.push(s):t(new o(`Duplicate ${s} token`,i)));const c=f(i,((e,r)=>t(new o(e,i,r))));c&&Object.assign(r,c)}return r}const p={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},m=e=>e>="A"&&e<="Z"||e>="a"&&e<="z";function g(e,t){const r=e[t];if(!r)return null;if(m(r))return function(e,t){const r=e[t];let n=1;for(;e[++t]===r;)++n;const i=p[r];return i?{char:r,field:i.field,desc:i.desc,width:n}:{char:r,error:new Error(`The letter ${r} is not a valid field identifier`),width:n}}(e,t);if("'"===r)return function(e,t){let r=e[++t],n=2;if("'"===r)return{char:"'",str:r,width:n};for(;;){const i=e[++t];if(++n,void 0===i)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${r||e}`),str:r,width:n};if("'"===i){if("'"!==e[++t])return{char:"'",str:r,width:n};++n}r+=i}}(e,t);let n=r,i=1;for(;;){const o=e[++t];if(!o||m(o)||"'"===o)return{char:r,str:n,width:i};n+=o,i+=1}}function y(e){const t=[];let r=0;for(;;){const n=g(e,r);if(!n)return t;t.push(n),r+=n.width}}class w extends Error{constructor(e,t){super(t),this.code=e}}class b extends w{constructor(e,t){super("BAD_OPTION",`Unknown ${e} option: ${t}`),this.stem=e,this.option=t}}class v extends w{constructor(e){super("BAD_STEM",`Unknown stem: ${e}`),this.stem=e}}class k extends w{constructor(e,t){super("MASKED_VALUE",`Value for ${e} is set multiple times`),this.type=e,this.prev=t}}class x extends w{constructor(e){super("MISSING_OPTION",`Required option missing for ${e}`),this.stem=e}}class S extends w{constructor(e,t){super("BAD_PATTERN",t),this.char=e}}class E extends w{constructor(e,t,r){super("TOO_MANY_OPTIONS",`Token ${e} only supports ${r>1?`${r} options`:"one option"} (got ${t.length})`),this.stem=e,this.options=t}}class T extends w{constructor(e,t){super("UNSUPPORTED",`The stem ${e} is not supported`),this.stem=e,t&&(this.message+=` with value ${t}`,this.source=t)}}function O(e,t){let{numberingSystem:r}=t;return Array.isArray(e)||(e=[e]),r?e.map((e=>{const t=-1===e.indexOf("-u-")?"u-nu":"nu";return`${e}-${t}-${r}`})).concat(e):e}function _(e){let{scale:t,unit:r}=e,n="number"==typeof t&&t>=0?t:1;return r&&"percent"===r.style&&(n*=.01),n}function A(e,t){const{decimal:r,group:n,integerWidth:i,notation:o,precision:s,roundingMode:a,sign:c,unit:l,unitPer:u,unitWidth:h}=e,f=(e,r)=>{t&&t(new T(e,r))},d={};if(l)switch(l.style){case"base-unit":d.style="decimal";break;case"currency":d.style="currency",d.currency=l.currency;break;case"measure-unit":d.style="unit",d.unit=l.unit.replace(/.*-/,""),u&&(d.unit+="-per-"+u.replace(/.*-/,""));break;case"percent":d.style="percent";break;case"permille":f("permille")}switch(h){case"unit-width-full-name":d.currencyDisplay="name",d.unitDisplay="long";break;case"unit-width-hidden":f(h);break;case"unit-width-iso-code":d.currencyDisplay="code";break;case"unit-width-narrow":d.currencyDisplay="narrowSymbol",d.unitDisplay="narrow";break;case"unit-width-short":d.currencyDisplay="symbol",d.unitDisplay="short"}switch(n){case"group-off":d.useGrouping=!1;break;case"group-auto":d.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":f(n),d.useGrouping=!0}if(s)switch(s.style){case"precision-fraction":{const{minFraction:e,maxFraction:t,minSignificant:r,maxSignificant:n,source:i}=s;"number"==typeof e&&(d.minimumFractionDigits=e,"number"==typeof r&&f("precision-fraction",i)),"number"==typeof t&&(d.maximumFractionDigits=t),"number"==typeof r&&(d.minimumSignificantDigits=r),"number"==typeof n&&(d.maximumSignificantDigits=n);break}case"precision-integer":d.maximumFractionDigits=0;break;case"precision-unlimited":d.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":d.trailingZeroDisplay=s.trailingZero;break;case"precision-currency-cash":f(s.style)}if(o)switch(o.style){case"compact-short":d.notation="compact",d.compactDisplay="short";break;case"compact-long":d.notation="compact",d.compactDisplay="long";break;case"notation-simple":d.notation="standard";break;case"scientific":case"engineering":{const{expDigits:e,expSign:t,source:r,style:n}=o;d.notation=n,(e&&e>1||t&&"sign-auto"!==t)&&f(n,r);break}}if(i){const{min:e,max:t,source:r}=i;if(e>0&&(d.minimumIntegerDigits=e),Number(t)>0){const e="engineering"===d.notation||"scientific"===d.notation;3===t&&e?d.notation="engineering":f("integer-width",r)}}switch(c){case"sign-auto":d.signDisplay="auto";break;case"sign-always":d.signDisplay="always";break;case"sign-except-zero":d.signDisplay="exceptZero";break;case"sign-never":d.signDisplay="never";break;case"sign-accounting":d.currencySign="accounting";break;case"sign-accounting-always":d.currencySign="accounting",d.signDisplay="always";break;case"sign-accounting-except-zero":d.currencySign="accounting",d.signDisplay="exceptZero"}return"decimal-always"===r&&f(r),a&&f(a),d}function N(e,t,r){const n=e[t];switch(n){case"%":return{char:"%",style:"percent",width:1};case"‰":return{char:"%",style:"permille",width:1};case"¤":{let i=1;for(;"¤"===e[++t];)++i;switch(i){case 1:return{char:n,currency:"default",width:i};case 2:return{char:n,currency:"iso-code",width:i};case 3:return{char:n,currency:"full-name",width:i};case 5:return{char:n,currency:"narrow",width:i};default:return r(new S("¤",`Invalid number (${i}) of ¤ chars in pattern`)),null}}case"*":{const r=e[t+1];if(r)return{char:n,pad:r,width:2};break}case"+":case"-":return{char:n,width:1};case"'":{let i=e[++t],o=2;if("'"===i)return{char:n,str:i,width:o};for(;;){const s=e[++t];if(++o,void 0===s)return r(new S("'",`Unterminated quoted literal in pattern: ${i}`)),{char:n,str:i,width:o};if("'"===s){if("'"!==e[++t])return{char:n,str:i,width:o};++o}i+=s}}}return null}const j=e=>e>="0"&&e<="9";function $(e,t){const r=e[t];if(j(r)){let n=r;for(;;){const r=e[++t];if(!j(r))return{char:"0",digits:n,width:n.length};n+=r}}switch(r){case"#":{let n=1;for(;"#"===e[++t];)++n;return{char:r,width:n}}case"@":{let n=1;for(;"@"===e[++t];)++n;let i=n;for(t-=1;"#"===e[++t];)++i;return{char:r,min:n,width:i}}case"E":{const n="+"===e[t+1];n&&++t;let i=0;for(;"0"===e[++t];)++i;if(i)return{char:r,expDigits:i,plus:n,width:(n?2:1)+i};break}case".":case",":return{char:r,width:1}}return null}function P(e,t,r){let n;!function(e){e[e.Prefix=0]="Prefix",e[e.Number=1]="Number",e[e.Suffix=2]="Suffix"}(n||(n={}));const i=[],o=[],s=[];let a=n.Prefix,c="";for(;t<e.length;){const l=e[t];if(";"===l){t+=1;break}switch(a){case n.Prefix:{const s=N(e,t,r);if(s)c&&(i.push({char:"'",str:c,width:c.length}),c=""),i.push(s),t+=s.width;else{const r=$(e,t);r?(c&&(i.push({char:"'",str:c,width:c.length}),c=""),a=n.Number,o.push(r),t+=r.width):(c+=l,t+=1)}break}case n.Number:{const r=$(e,t);r?(o.push(r),t+=r.width):a=n.Suffix;break}case n.Suffix:{const n=N(e,t,r);n?(c&&(s.push({char:"'",str:c,width:c.length}),c=""),s.push(n),t+=n.width):(c+=l,t+=1);break}}}return c&&s.push({char:"'",str:c,width:c.length}),{pattern:{prefix:i,number:o,suffix:s},pos:t}}function D(e,t,r,n,i){let o=!1,s="";for(const a of e)switch(a.char){case"%":t.unit={style:a.style},i?o=!0:s="";break;case"¤":if(!r){n(new S("¤","The ¤ pattern requires a currency"));break}switch(t.unit={style:"currency",currency:r},a.currency){case"iso-code":t.unitWidth="unit-width-iso-code";break;case"full-name":t.unitWidth="unit-width-full-name";break;case"narrow":t.unitWidth="unit-width-narrow"}i?o=!0:s="";break;case"*":break;case"+":o||(s+="+");break;case"'":o||(s+=a.str)}return s}function I(e,t){let r=!1,n="";for(const i of e)switch(i.char){case"%":case"¤":t?r=!0:n="";break;case"-":r||(n+="-");break;case"'":r||(n+=i.str)}return n}function F(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>{throw e};const{tokens:n,negative:i}=function(e,t){const{pattern:r,pos:n}=P(e,0,t);if(n<e.length){const{pattern:i}=P(e,n,t);return{tokens:r,negative:i}}return{tokens:r}}(e,r),o=function(e,t){const r={};let n=!1,i=!1,o=0,s="",a=-1,c="",l=0;for(let u=0;u<e.length;++u){const h=e[u];switch(h.char){case"#":-1===a?(s&&t(new S("#","Pattern has # after integer digits")),o+=h.width):l+=h.width;break;case"0":-1===a?s+=h.digits:(l&&t(new S("0","Pattern has digits after # in fraction")),c+=h.digits);break;case"@":r.precision&&t(new k("precision",r.precision)),r.precision={style:"precision-fraction",minSignificant:h.min,maxSignificant:h.width};break;case",":n=!0;break;case".":1===a&&t(new S(".","Pattern has more than one decimal separator")),a=u;break;case"E":i&&t(new k("exponent",r.notation)),n&&t(new S("E","Exponential patterns may not contain grouping separators")),r.notation={style:"scientific"},h.expDigits>1&&(r.notation.expDigits=h.expDigits),h.plus&&(r.notation.expSign="sign-always"),i=!0}}n?r.group="group-auto":o+s.length>3&&(r.group="group-off");const u=Number(`${s||"0"}.${c}`);if(u&&(r.precision={style:"precision-increment",increment:u}),i)if(r.precision&&!u||(r.integerWidth=o?{min:1,max:o+s.length}:{min:Math.max(1,s.length)}),r.precision)u||(r.integerWidth={min:1,max:1});else{const e=s.length+c.length;-1===a?e>0&&(r.precision={style:"precision-fraction",maxSignificant:e}):(r.precision={style:"precision-fraction",maxSignificant:Math.max(1,e)+l},e>1&&(r.precision.minSignificant=e))}else s.length>1&&(r.integerWidth={min:s.length}),r.precision||!c.length&&!l||(r.precision={style:"precision-fraction",minFraction:c.length,maxFraction:c.length+l});return r}(n.number,r),s=D(n.prefix,o,t,r,!0),a=D(n.suffix,o,t,r,!1);if(i){const e=I(i.prefix,!0),t=I(i.suffix,!1);o.affix={pos:[s,a],neg:[e,t]},o.sign="sign-never"}else(s||a)&&(o.affix={pos:[s,a]});return o}function B(e){const[t]=e.split("-",1);return-1!==["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"].indexOf(t)}const L={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},z={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function C(e,t,r){if(function(e){return e in L}(e)){const n=L[e];if(t.length>n){if(0===n)for(const n of t)r(new b(e,n));else r(new E(e,t,n));return!1}if(function(e){return e in z}(e)&&t.length<z[e])return r(new x(e)),!1}return!0}function R(e,t){const r="fraction"===t?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/,n=e&&e.match(r);if(n){const e=n[1].length;switch(n[2].charAt(0)){case"":return{min:e,max:e};case"+":return{min:e,max:null};case"#":return{min:e,max:e+n[2].length}}}return null}class q{constructor(e){this.skeleton={},this.onError=e}badOption(e,t){this.onError(new b(e,t))}assertEmpty(e){const t=this.skeleton[e];t&&this.onError(new k(e,t))}parseToken(e,t){if(!C(e,t,this.onError))return;const r=t[0],n=this.skeleton;switch(e){case"compact-short":case"compact-long":case"notation-simple":this.assertEmpty("notation"),n.notation={style:e};break;case"scientific":case"engineering":{let r,i=null;for(const n of t)switch(n){case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":r=n;break;default:/^\+e+$/.test(n)?i=n.length-1:this.badOption(e,n)}this.assertEmpty("notation");const o=t.join("/");n.notation=i&&r?{style:e,source:o,expDigits:i,expSign:r}:i?{style:e,source:o,expDigits:i}:r?{style:e,source:o,expSign:r}:{style:e,source:o};break}case"percent":case"permille":case"base-unit":this.assertEmpty("unit"),n.unit={style:e};break;case"currency":/^[A-Z]{3}$/.test(r)?(this.assertEmpty("unit"),n.unit={style:e,currency:r}):this.badOption(e,r);break;case"measure-unit":B(r)?(this.assertEmpty("unit"),n.unit={style:e,unit:r}):this.badOption(e,r);break;case"per-measure-unit":B(r)?(this.assertEmpty("unitPer"),n.unitPer=r):this.badOption(e,r);break;case"unit-width-narrow":case"unit-width-short":case"unit-width-full-name":case"unit-width-iso-code":case"unit-width-hidden":this.assertEmpty("unitWidth"),n.unitWidth=e;break;case"precision-integer":case"precision-unlimited":case"precision-currency-cash":this.assertEmpty("precision"),n.precision={style:e};break;case"precision-currency-standard":this.assertEmpty("precision"),n.precision="w"===r?{style:e,trailingZero:"stripIfInteger"}:{style:e};break;case"precision-increment":{const t=Number(r);t>0?(this.assertEmpty("precision"),n.precision={style:e,increment:t}):this.badOption(e,r);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),n.roundingMode=e;break;case"integer-width":if(/^\+0*$/.test(r))this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:r.length-1};else{const t=r.match(/^#*(0*)$/);t?(this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:t[1].length,max:t[0].length}):this.badOption(e,r)}break;case"scale":{const t=Number(r);t>0?(this.assertEmpty("scale"),n.scale=t):this.badOption(e,r);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),n.group=e;break;case"latin":this.assertEmpty("numberingSystem"),n.numberingSystem="latn";break;case"numbering-system":-1!==["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(r)?(this.assertEmpty("numberingSystem"),n.numberingSystem=r):this.badOption(e,r);break;case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),n.sign=e;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),n.decimal=e;break;default:{const r=function(e,t,r){const n=R(e,"fraction");if(n){t.length>1&&r(new E(e,t,1));const i={style:"precision-fraction",source:e,minFraction:n.min};null!=n.max&&(i.maxFraction=n.max);const o=t[0],s=R(o,"significant");return s?(i.source=`${e}/${o}`,i.minSignificant=s.min,null!=s.max&&(i.maxSignificant=s.max)):o&&r(new b(e,o)),i}const i=R(e,"significant");if(i){for(const n of t)r(new b(e,n));const n={style:"precision-fraction",source:e,minSignificant:i.min};return null!=i.max&&(n.maxSignificant=i.max),n}return null}(e,t,this.onError);r?(this.assertEmpty("precision"),n.precision=r):this.onError(new v(e))}}}}function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>{throw e};const r=[];for(const t of e.split(" "))if(t){const e=t.split("/"),n=e.shift()||"";r.push({stem:n,options:e})}const n=new q(t);for(const{stem:e,options:t}of r)n.parseToken(e,t);return n.skeleton}function U(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?M(t.slice(2),n):F(t,r,n));const i=O(e,t),o=A(t,n),s=function(e){const t=_(e),{precision:r}=e;return r&&"precision-increment"===r.style?e=>function(e,t){const r=+e+t/2;return r-r%+t}(e,r.increment)*t:e=>e*t}(t),a=new Intl.NumberFormat(i,o);if(t.affix){const[e,r]=t.affix.pos,[n,i]=t.affix.neg||["",""];return t=>{const o=a.format(s(t));return t<0?`${n}${o}${i}`:`${e}${o}${r}`}}return e=>a.format(s(e))}function H(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?M(t.slice(2),n):F(t,r,n));const i=O(e,t),o=A(t,n),s=function(e){const t=_(e),{precision:r}=e;if(r&&"precision-increment"===r.style){const e="+n + "+r.increment/2;let n=`x - (x % +${r.increment})`;return 1!==t&&(n=`(${n}) * ${t}`),`function(n) { var x = ${e}; return ${n}; }`}return 1!==t?`function(n) { return n * ${t}; }`:null}(t),a=["(function() {",`var opt = ${JSON.stringify(o)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(i)}, opt);`];let c="nf.format(value)";if(s&&(a.push(`var mod = ${s};`),c="nf.format(mod(value))"),t.affix){const[e,r]=t.affix.pos.map((e=>JSON.stringify(e)));if(t.affix.neg){const[n,i]=t.affix.neg.map((e=>JSON.stringify(e)));c=`value < 0 ? ${n} + ${c} + ${i} : ${e} + ${c} + ${r}`}else c=`${e} + ${c} + ${r}`}return a.push(`return function(value) { return ${c}; }`),a.join("\n ")+"\n})()"}var W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={},K={},Z={exports:{}};!function(e){var t,r;t=W,r=function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function i(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function o(e){return"("+e+")"}function s(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function a(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function l(t,r){if(i(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var o={defaultType:t,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)e.call(r,s)&&(o[s]=r[s]);if("string"==typeof o.type&&t!==o.type)throw new Error("Type transform cannot be a string (type '"+o.type+"' for token '"+t+"')");var a=o.match;return o.match=Array.isArray(a)?a:a?[a]:[],o.match.sort((function(e,t){return n(e)&&n(t)?0:n(t)?-1:n(e)?1:t.length-e.length})),o}function u(e){return Array.isArray(e)?function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(n.include)for(var i=[].concat(n.include),o=0;o<i.length;o++)t.push({include:i[o]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));t.push(l(n.type,n))}}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),r=[],n=0;n<t.length;n++){var o=t[n],s=e[o],a=[].concat(s);if("include"!==o){var c=[];a.forEach((function(e){i(e)?(c.length&&r.push(l(o,c)),r.push(l(o,e)),c=[]):c.push(e)})),c.length&&r.push(l(o,c))}else for(var u=0;u<a.length;u++)r.push({include:a[u]})}return r}(e)}var h=l("error",{lineBreaks:!0,shouldThrow:!0});function f(e,t){for(var i=null,c=Object.create(null),l=!0,u=null,f=[],d=[],p=0;p<e.length;p++)e[p].fallback&&(l=!1);for(p=0;p<e.length;p++){var m=e[p];if(m.include)throw new Error("Inheritance is not allowed in stateless lexers");if(m.error||m.fallback){if(i)throw!m.fallback==!i.fallback?new Error("Multiple "+(m.fallback?"fallback":"error")+" rules not allowed (for token '"+m.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+m.defaultType+"')");i=m}var g=m.match.slice();if(l)for(;g.length&&"string"==typeof g[0]&&1===g[0].length;)c[g.shift().charCodeAt(0)]=m;if(m.pop||m.push||m.next){if(!t)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+m.defaultType+"')");if(m.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+m.defaultType+"')")}if(0!==g.length){l=!1,f.push(m);for(var y=0;y<g.length;y++){var w=g[y];if(n(w))if(null===u)u=w.unicode;else if(u!==w.unicode&&!1===m.fallback)throw new Error("If one rule is /u then all must be")}var b=s(g.map(a)),v=new RegExp(b);if(v.test(""))throw new Error("RegExp matches empty string: "+v);if(new RegExp("|"+b).exec("").length-1>0)throw new Error("RegExp has capture groups: "+v+"\nUse (?: … ) instead");if(!m.lineBreaks&&v.test("\n"))throw new Error("Rule should declare lineBreaks: "+v);d.push(o(b))}}var k=i&&i.fallback,x=r&&!k?"ym":"gm",S=r||k?"":"|";return!0===u&&(x+="u"),{regexp:new RegExp(s(d)+S,x),groups:f,fast:c,error:i||h}}function d(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var p=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};p.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},p.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},p.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},p.prototype.popState=function(){this.setState(this.stack.pop())},p.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var m=r?function(e,t){return e.exec(t)}:function(e,t){var r=e.exec(t);return 0===r[0].length?null:r};function g(){return this.value}if(p.prototype._getGroup=function(e){for(var t=this.groups.length,r=0;r<t;r++)if(void 0!==e[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},p.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var r=this.buffer;if(e!==r.length){if(s=this.fast[r.charCodeAt(e)])return this._token(s,r.charAt(e),e);var n=this.re;n.lastIndex=e;var i=m(n,r),o=this.error;if(null==i)return this._token(o,r.slice(e,r.length),e);var s=this._getGroup(i),a=i[0];return o.fallback&&i.index!==e?(this.queuedGroup=s,this.queuedText=a,this._token(o,r.slice(e,i.index),e)):this._token(s,a,e)}},p.prototype._token=function(e,t,r){var n=0;if(e.lineBreaks){var i=/\n/g,o=1;if("\n"===t)n=1;else for(;i.exec(t);)n++,o=i.lastIndex}var s={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:g,offset:r,lineBreaks:n,line:this.line,col:this.col},a=t.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-o+1:this.col+=a,e.shouldThrow)throw new Error(this.formatError(s,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var y=function(e){this.lexer=e};y.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},y.prototype[Symbol.iterator]=function(){return this},p.prototype[Symbol.iterator]=function(){return new y(this)}}return p.prototype.formatError=function(e,t){if(null==e){var r=this.buffer.slice(this.index);e={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(e.line-2,1),i=e.line+2,o=String(i).length,s=function(e,t){for(var r=e.length,n=0;;){var i=e.lastIndexOf("\n",r-1);if(-1===i)break;if(r=i,++n===t)break;if(0===r)break}var o=n<t?0:r+1;return e.substring(o).split("\n")}(this.buffer,this.line-e.line+2+1).slice(0,5),a=[];a.push(t+" at line "+e.line+" col "+e.col+":"),a.push("");for(var l=0;l<s.length;l++){var u=s[l],h=n+l;a.push(c(String(h),o)+" "+u),h===e.line&&a.push(c("",o+e.col+1)+"^")}return a.join("\n")},p.prototype.clone=function(){return new p(this.states,this.state)},p.prototype.has=function(e){return!0},{compile:function(e){var t=f(u(e));return new p({start:t},"start")},states:function(e,t){var r=e.$all?u(e.$all):[];delete e.$all;var n=Object.getOwnPropertyNames(e);t||(t=n[0]);for(var i=Object.create(null),o=0;o<n.length;o++)i[b=n[o]]=u(e[b]).concat(r);for(o=0;o<n.length;o++)for(var s=i[b=n[o]],a=Object.create(null),c=0;c<s.length;c++){var l=s[c];if(l.include){var h=[c,1];if(l.include!==b&&!a[l.include]){a[l.include]=!0;var m=i[l.include];if(!m)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+b+"')");for(var g=0;g<m.length;g++){var y=m[g];-1===s.indexOf(y)&&h.push(y)}}s.splice.apply(s,h),c--}}var w=Object.create(null);for(o=0;o<n.length;o++){var b;w[b=n[o]]=f(i[b],!0)}for(o=0;o<n.length;o++){var v=n[o],k=w[v],x=k.groups;for(c=0;c<x.length;c++)d(x[c],v,w);var S=Object.getOwnPropertyNames(k.fast);for(c=0;c<S.length;c++)d(k.fast[S[c]],v,w)}return new p(w,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,r=t?new Map:Object.create(null),n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=n[i],s=e[o];(Array.isArray(s)?s:[s]).forEach((function(e){if("string"!=typeof e)throw new Error("keyword must be string (in keyword '"+o+"')");t?r.set(e,o):r[e]=o}))}return function(e){return t?r.get(e):r[e]}}}},e.exports?e.exports=r():t.moo=r()}(Z);var V=Z.exports;(function(e){var t=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.lexer=e.states=void 0;const r=t(V);e.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},e.lexer=r.default.states(e.states)})(K),Object.defineProperty(J,"__esModule",{value:!0});var X=J.parse=J.ParseError=void 0;const Y=K,Q=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),ee=e=>"plural"===e||"select"===e||"selectordinal"===e;const te=["number","date","time","spellout","ordinal","duration"],re=["zero","one","two","few","many","other"];class ne extends Error{constructor(e,t){super(Y.lexer.formatError(e,t))}}J.ParseError=ne;class ie{constructor(e,t){var r,n,i,o;this.lexer=Y.lexer.reset(e),this.cardinalKeys=null!==(r=null==t?void 0:t.cardinal)&&void 0!==r?r:re,this.ordinalKeys=null!==(n=null==t?void 0:t.ordinal)&&void 0!==n?n:re,this.strict=null!==(i=null==t?void 0:t.strict)&&void 0!==i&&i,this.strictPluralKeys=null===(o=null==t?void 0:t.strictPluralKeys)||void 0===o||o}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,r){if("="===r[0]){if("select"===t)throw new ne(e,`The case ${r} is not valid with select`)}else if("select"!==t){const n="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&n.length>0&&!n.includes(r))throw new ne(e,`The ${t} case ${r} is not valid in this locale`)}}parseSelect(e,t,r,n){let{value:i}=e;const o={type:n,arg:i,cases:[],ctx:r};"plural"===n||"selectordinal"===n?t=!0:this.strict&&(t=!1);for(const e of this.lexer)switch(e.type){case"offset":if("select"===n)throw new ne(e,"Unexpected plural offset for select");if(o.cases.length>0)throw new ne(e,"Plural offset must be set before cases");o.pluralOffset=Number(e.value),r.text+=e.text,r.lineBreaks+=e.lineBreaks;break;case"case":this.checkSelectKey(e,n,e.value),o.cases.push({key:e.value,tokens:this.parseBody(t),ctx:Q(e)});break;case"end":return o;default:throw new ne(e,`Unexpected lexer token: ${e.type}`)}throw new ne(null,"Unexpected message end")}parseArgToken(e,t){const r=Q(e),n=this.lexer.next();if(!n)throw new ne(null,"Unexpected message end");if(r.text+=n.text,r.lineBreaks+=n.lineBreaks,this.strict&&("func-simple"===n.type||"func-args"===n.type)&&!te.includes(n.value)){const t=`Invalid strict mode function arg type: ${n.value}`;throw new ne(e,t)}switch(n.type){case"end":return{type:"argument",arg:e.value,ctx:r};case"func-simple":{const t=this.lexer.next();if(!t)throw new ne(null,"Unexpected message end");if("end"!==t.type)throw new ne(t,`Unexpected lexer token: ${t.type}`);if(r.text+=t.text,ee(n.value.toLowerCase()))throw new ne(n,`Invalid type identifier: ${n.value}`);return{type:"function",arg:e.value,key:n.value,ctx:r}}case"func-args":{if(ee(n.value.toLowerCase())){const e=`Invalid type identifier: ${n.value}`;throw new ne(n,e)}let i=this.parseBody(!this.strict&&t);return this.strict&&i.length>0&&(i=function(e,t){let r="",n="";for(const i of t){const t=i.ctx.text;switch(n+=t,i.type){case"content":r+=i.value;break;case"argument":case"function":case"octothorpe":r+=t;break;default:throw new ne(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}(e,i)),{type:"function",arg:e.value,key:n.value,param:i,ctx:r}}case"select":if(ee(n.value))return this.parseSelect(e,t,r,n.value);throw new ne(n,`Unexpected select type ${n.value}`);default:throw new ne(n,`Unexpected lexer token: ${n.type}`)}}parseBody(e,t){const r=[];let n=null;for(const i of this.lexer)if("argument"===i.type)n&&(n=null),r.push(this.parseArgToken(i,e));else if("octothorpe"===i.type&&e)n&&(n=null),r.push({type:"octothorpe",ctx:Q(i)});else{if("end"===i.type&&!t)return r;{let t=i.value;if(!e&&"quoted"===i.type&&"#"===t[0]){if(t.includes("{"))throw new ne(i,`Unsupported escape pattern: ${t}`);t=i.text}n?(n.value+=t,n.ctx.text+=i.text,n.ctx.lineBreaks+=i.lineBreaks):(n={type:"content",value:t,ctx:Q(i)},r.push(n))}}if(t)return r;throw new ne(null,"Unexpected message end")}}function oe(e){return oe[e]||(oe[e]=new Intl.NumberFormat(e))}X=J.parse=function(e){return new ie(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).parse()};var se=Object.freeze({__proto__:null,_nf:oe,number:function(e,t,r){return oe(e).format(t-r)},plural:function(e,t,r,n,i){if({}.hasOwnProperty.call(n,e))return n[e];t&&(e-=t);var o=r(e,i);return o in n?n[o]:n.other},reqArgs:function(e,t){for(var r=0;r<e.length;++r)if(!t||void 0===t[e[r]])throw new Error("Message requires argument '".concat(e[r],"'"))},select:function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},strictNumber:function(e,t,r,n){var i=t-r;if(isNaN(i))throw new Error("`"+n+"` or its offset is not a number");return oe(e).format(i)}});var ae={};function ce(e,t){var r=String(e)+JSON.stringify(t);return ae[r]||(ae[r]=new Intl.NumberFormat(e,t)),ae[r]}var le=Object.freeze({__proto__:null,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)},duration:function(e){if("number"!=typeof e&&(e=Number(e)),!isFinite(e))return String(e);var t="";e<0?(t="-",e=Math.abs(e)):e=Number(e);var r=e%60,n=[Math.round(r)===r?r:r.toFixed(3)];return e<60?n.unshift(0):(e=Math.round((e-Number(n[0]))/60),n.unshift(e%60),e>=60&&(e=Math.round((e-Number(n[0]))/60),n.unshift(e))),t+n.shift()+":"+n.map((function(e){return Number(e)<10?"0"+String(e):String(e)})).join(":")},numberCurrency:function(e,t,r){return ce(t,{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},numberFmt:function(e,t,r,n){var i=r&&r.split(":")||[],o=i[0],s=i[1];return ce(t,{integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:s&&s.trim()||n,minimumFractionDigits:2,maximumFractionDigits:2}}[o]||{}).format(e)},numberInteger:function(e,t){return ce(t,{maximumFractionDigits:0}).format(e)},numberPercent:function(e,t){return ce(t,{style:"percent"}).format(e)},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)}}),ue=G({ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}});function he(e,t){t&&(e+=" "+function(e){let t=0;for(let r=0;r<e.length;++r)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}(e).toString(36));const r=e.trim().replace(/\W+/g,"_");return ue.ES3[r]||ue.ESnext[r]||/^\d/.test(r)?"_"+r:r}function fe(e,t){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t)&&!ue.ES3[t])return e?e+"."+t:t;{const r=JSON.stringify(t);return e?e+"["+r+"]":r}}var de=new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^"));var pe="@messageformat/runtime/lib/plurals",me=function(){function r(e){this.arguments=[],this.runtime={},this.options=e}return r.prototype.compile=function(e,r,n){var i,o,s=this,a=this.options,c=a.localeCodeFromKey,l=a.requireAllArguments,u=a.strict,h=a.strictPluralKeys;if("object"==typeof e){var f={};try{for(var d=t(Object.keys(e)),p=d.next();!p.done;p=d.next()){var m=p.value,g=c?c(m):m,y=n&&g&&n[g]||r;f[m]=this.compile(e[m],y,n)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return f}this.plural=r;var w={cardinal:r.cardinals,ordinal:r.ordinals,strict:u,strictPluralKeys:h};this.arguments=[];var b=X(e,w).map((function(e){return s.token(e,null)})),v=this.arguments.length>0,k=this.concatenate(b,!0);if(l&&v){this.setRuntimeFn("reqArgs");var x=JSON.stringify(this.arguments);return"(d) => { reqArgs(".concat(x,", d); return ").concat(k,"; }")}return"(".concat(v?"d":"",") => ").concat(k)},r.prototype.cases=function(e,t){var r=this,n=!0,i=e.cases.map((function(e){var i=e.key,o=e.tokens;"other"===i&&(n=!1);var s=o.map((function(e){return r.token(e,t)}));return"".concat(fe(null,i.replace(/^=/,"")),": ").concat(r.concatenate(s,!1))}));if(n){var o=e.type,s=this.plural,a=s.cardinals,c=s.ordinals;if("select"===o||"plural"===o&&a.includes("other")||"selectordinal"===o&&c.includes("other"))throw new Error("No 'other' form found in ".concat(JSON.stringify(e)))}return"{ ".concat(i.join(", ")," }")},r.prototype.concatenate=function(e,t){return"values"===this.options.returnType&&(t||e.length>1)?"["+e.join(", ")+"]":e.join(" + ")||'""'},r.prototype.token=function(e,t){if("content"===e.type)return JSON.stringify(e.value);var r,n,i,o,s,a,c=this.plural,l=c.id,u=c.lc;switch("arg"in e?(this.arguments.push(e.arg),r=[fe("d",e.arg)]):r=[],e.type){case"argument":return this.options.biDiSupport?(i=String(r[0]),o=u,s=de.test(o),a=JSON.stringify(s?"":""),"".concat(a," + ").concat(i," + ").concat(a)):String(r[0]);case"select":n="select",t&&this.options.strict&&(t=null),r.push(this.cases(e,t)),this.setRuntimeFn("select");break;case"selectordinal":n="plural",r.push(e.pluralOffset||0,l,this.cases(e,e),1),this.setLocale(l,!0),this.setRuntimeFn("plural");break;case"plural":n="plural",r.push(e.pluralOffset||0,l,this.cases(e,e)),this.setLocale(l,!1),this.setRuntimeFn("plural");break;case"function":var h=this.options.customFormatters[e.key],f=h&&"module"in h&&"function"==typeof h.module;if(!h){if("date"===e.key){n=this.setDateFormatter(e,r,t);break}if("number"===e.key){n=this.setNumberFormatter(e,r,t);break}}if(r.push(JSON.stringify(this.plural.locale)),e.param){t&&this.options.strict&&(t=null);var d=this.getFormatterArg(e,t);d&&r.push(d)}n=f?he("".concat(e.key,"__").concat(this.plural.locale)):e.key,this.setFormatter(n,e.key);break;case"octothorpe":if(!t)return'"#"';r=[JSON.stringify(this.plural.locale),fe("d",t.arg),t.pluralOffset||0],this.options.strict?(n="strictNumber",r.push(JSON.stringify(t.arg)),this.setRuntimeFn("strictNumber")):(n="number",this.setRuntimeFn("number"))}if(!n)throw new Error("Parser error for token "+JSON.stringify(e));return"".concat(n,"(").concat(r.join(", "),")")},r.prototype.runtimeIncludes=function(e,t){if(he(e)!==e)throw new SyntaxError("Reserved word used as ".concat(t," identifier: ").concat(e));var r=this.runtime[e];if(!r||r.type===t)return r;throw new TypeError("Cannot override ".concat(r.type," runtime function as ").concat(t,": ").concat(e))},r.prototype.setLocale=function(e,t){var r,n,i,o=this.runtimeIncludes(e,"locale"),s=this.plural,a=s.getCardinal,c=s.getPlural,l=s.isDefault;if(!t&&l&&a){if(o)return;r=function(e){return a(e)},n="@messageformat/runtime/lib/cardinals",i=function(){return String(a)}}else{if(o&&(!l||o.module===pe))return;r=function(e,t){return c(e,t)},n=l?pe:c.module||null,i=function(){return String(c)}}this.runtime[e]=Object.assign(r,{id:e,module:n,toString:i,type:"locale"})},r.prototype.setRuntimeFn=function(e){this.runtimeIncludes(e,"runtime")||(this.runtime[e]=Object.assign(se[e],{id:e,module:"@messageformat/runtime",type:"runtime"}))},r.prototype.getFormatterArg=function(e,r){var n,i,o,s,a=this,c=e.key,l=e.param,u=this.options.customFormatters[c]||ge(c)&&le[c];if(!u||!l)return null;var h="arg"in u&&u.arg||"string";if("options"===h){var f="";try{for(var d=t(l),p=d.next();!p.done;p=d.next()){var m=p.value;if("content"!==m.type)throw new SyntaxError("Expected literal options for ".concat(c," formatter"));f+=m.value}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}var g={};try{for(var y=t(f.split(",")),w=y.next();!w.done;w=y.next()){var b=w.value,v=b.indexOf(":");if(-1===v)g[b.trim()]=null;else{var k=b.substring(0,v).trim(),x=b.substring(v+1).trim();if("true"===x)g[k]=!0;else if("false"===x)g[k]=!1;else if("null"===x)g[k]=null;else{var S=Number(x);g[k]=Number.isFinite(S)?S:x}}}}catch(e){o={error:e}}finally{try{w&&!w.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}return JSON.stringify(g)}var E=l.map((function(e){return a.token(e,r)}));if("raw"===h)return"[".concat(E.join(", "),"]");var T=E.join(" + ");return T?"(".concat(T,").trim()"):'""'},r.prototype.setFormatter=function(t,r){if(!this.runtimeIncludes(t,"formatter")){var n=this.options.customFormatters[r||t];if(n){var i="function"==typeof n?{formatter:n}:n;this.runtime[t]=Object.assign(i.formatter.bind({}),e(e({},i.formatter.prototype),{toString:function(){return String(i.formatter)}}),{type:"formatter"},"module"in n&&n.module&&n.id?{id:he(n.id),module:"function"==typeof n.module?n.module(this.plural.locale):n.module}:{id:null,module:null})}else{if(!ge(t))throw new Error("Formatting function not found: ".concat(t));this.runtime[t]=Object.assign(le[t],{type:"formatter"},{id:t,module:"@messageformat/runtime/lib/formatters"})}}},r.prototype.setDateFormatter=function(e,t,r){var n=this,i=e.param,o=this.plural.locale,s=i&&1===i.length&&i[0];if(s&&"content"===s.type&&/^\s*::/.test(s.value)){var a=s.value.trim().substr(2),c=he("date_".concat(o,"_").concat(a),!0);if(!this.runtimeIncludes(c,"formatter")){var l=function(e,t,r){"string"==typeof t&&(t=y(t));const n=d(t,r),i=new Intl.DateTimeFormat(e,n);return e=>i.format(e)}(o,a);this.runtime[c]=Object.assign(l,{id:c,module:null,toString:function(){return function(e,t,r){"string"==typeof t&&(t=y(t));const n=d(t,r);return["(function() {",`var opt = ${JSON.stringify(n)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(e)}, opt);`,"return function(value) { return dtf.format(value); }"].join("\n ")+"\n})()"}(o,a)},type:"formatter"})}return c}if(t.push(JSON.stringify(o)),i&&i.length>0){r&&this.options.strict&&(r=null);var u=i.map((function(e){return n.token(e,r)}));t.push("("+(u.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"},r.prototype.setNumberFormatter=function(e,t,r){var n=this,i=e.param,o=this.plural.locale;if(!i||0===i.length)return t.unshift(JSON.stringify(o)),t.push("0"),this.setRuntimeFn("number"),"number";if(t.push(JSON.stringify(o)),1===i.length&&"content"===i[0].type){var s=i[0].value.trim();switch(s){case"currency":return t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}var a=s.match(/^currency:([A-Z]+)$/);if(a)return t.push(JSON.stringify(a[1])),this.setFormatter("numberCurrency"),"numberCurrency";var c=he("number_".concat(o,"_").concat(s),!0);if(!this.runtimeIncludes(c,"formatter")){var l=this.options.currency,u=U(o,s,l);this.runtime[c]=Object.assign(u,{id:null,module:null,toString:function(){return H(o,s,l)},type:"formatter"})}return c}r&&this.options.strict&&(r=null);var h=i.map((function(e){return n.token(e,r)}));return t.push("("+(h.join(" + ")||'""')+").trim()"),t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"},r}();function ge(e){return e in le}const ye=e=>1==e?"one":"other",we=e=>0==e||1==e?"one":"other",be=e=>e>=0&&e<=1?"one":"other",ve=e=>{const t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},ke=e=>"other",xe=e=>1==e?"one":2==e?"two":"other",Se=ye,Ee=we,Te=be,Oe=ye,_e=be,Ae=ye,Ne=ve,je=ye,$e=ye,Pe=ye,De=ye,Ie=ye,Fe=we,Be=ke,Le=be,ze=ke,Ce=ye,Re=ye,qe=ye,Me=ye,Ue=ye,He=ve,We=be,Ge=ye,Je=ke,Ke=ye,Ze=ye,Ve=ve,Xe=ye,Ye=ve,Qe=ye,et=be,tt=ve,rt=ye,nt=ye,it=ve,ot=ve,st=ye,at=be,ct=we,lt=ye,ut=ye,ht=be,ft=ke,dt=ye,pt=ve,mt=ke,gt=ke,yt=ke,wt=ve,bt=xe,vt=ke,kt=ke,xt=ye,St=ye,Et=ke,Tt=ke,Ot=ye,_t=ye,At=ye,Nt=ke,jt=ke,$t=ye,Pt=ye,Dt=ye,It=ke,Ft=be,Bt=ke,Lt=ye,zt=ye,Ct=ye,Rt=ye,qt=ye,Mt=ye,Ut=ve,Ht=ke,Wt=we,Gt=ke,Jt=ye,Kt=we,Zt=ye,Vt=ye,Xt=ye,Yt=ye,Qt=ke,er=ke,tr=ye,rr=xe,nr=ye,ir=ye,or=ye,sr=ve,ar=ye,cr=ye,lr=ye,ur=ke,hr=ye,fr=we,dr=ye,pr=ye,mr=ye,gr=ye,yr=ye,wr=ke,br=we,vr=ye,kr=be,xr=ye,Sr=ye,Er=ye,Tr=ye,Or=ke,_r=ye,Ar=xe,Nr=ve,jr=ve,$r=ye,Pr=ye,Dr=xe,Ir=ye,Fr=ke,Br=ke,Lr=xe,zr=xe,Cr=xe,Rr=xe,qr=xe,Mr=ye,Ur=ye,Hr=ye,Wr=ye,Gr=ye,Jr=ye,Kr=ke,Zr=ve,Vr=ve,Xr=ye,Yr=ye,Qr=ye,en=ye,tn=ke,rn=we,nn=ye,on=ye,sn=ye,an=ke,cn=ke,ln=ye,un=ye,hn=ye,fn=ke,dn=ve,pn=ye,mn=ye,gn=ke,yn=ye,wn=ye,bn=we,vn=ye,kn=ke,xn=ye,Sn=ye,En=ve,Tn=ke,On=ke,_n=ke,An=be;var Nn=Object.freeze({__proto__:null,af:Se,ak:Ee,am:Te,an:Oe,ar:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ars:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},as:_e,asa:Ae,ast:Ne,az:je,bal:$e,be:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-1),i=r&&t[0].slice(-2);return 1==n&&11!=i?"one":n>=2&&n<=4&&(i<12||i>14)?"few":r&&0==n||n>=5&&n<=9||i>=11&&i<=14?"many":"other"},bem:Pe,bez:De,bg:Ie,bho:Fe,bm:Be,bn:Le,bo:ze,br:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-1),i=r&&t[0].slice(-2),o=r&&t[0].slice(-6);return 1==n&&11!=i&&71!=i&&91!=i?"one":2==n&&12!=i&&72!=i&&92!=i?"two":(3==n||4==n||9==n)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&r&&0==o?"many":"other"},brx:Ce,bs:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},ca:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},ce:Re,ceb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},cgg:qe,chr:Me,ckb:Ue,cs:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==e&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},cy:e=>0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other",da:e=>{const t=String(e).split("."),r=t[0],n=Number(t[0])==e;return 1!=e&&(n||0!=r&&1!=r)?"other":"one"},de:He,doi:We,dsb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-2),s=n.slice(-2);return i&&1==o||1==s?"one":i&&2==o||2==s?"two":i&&(3==o||4==o)||3==s||4==s?"few":"other"},dv:Ge,dz:Je,ee:Ke,el:Ze,en:Ve,eo:Xe,es:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e?"one":0!=r&&0==i&&n?"many":"other"},et:Ye,eu:Qe,fa:et,ff:e=>e>=0&&e<2?"one":"other",fi:tt,fil:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},fo:rt,fr:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return e>=0&&e<2?"one":0!=r&&0==i&&n?"many":"other"},fur:nt,fy:it,ga:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},gd:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},gl:ot,gsw:st,gu:at,guw:ct,gv:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i?"one":n&&2==i?"two":!n||0!=o&&20!=o&&40!=o&&60!=o&&80!=o?n?"other":"many":"few"},ha:lt,haw:ut,he:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==r&&n||0==r&&!n?"one":2==r&&n?"two":"other"},hi:ht,hnj:ft,hr:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},hsb:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-2),s=n.slice(-2);return i&&1==o||1==s?"one":i&&2==o||2==s?"two":i&&(3==o||4==o)||3==s||4==s?"few":"other"},hu:dt,hy:e=>e>=0&&e<2?"one":"other",ia:pt,id:mt,ig:gt,ii:yt,io:wt,is:e=>{const t=String(e).split("."),r=t[0],n=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,o=r.slice(-1),s=r.slice(-2);return i&&1==o&&11!=s||n%10==1&&n%100!=11?"one":"other"},it:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},iu:bt,ja:vt,jbo:kt,jgo:xt,jmc:St,jv:Et,jw:Tt,ka:Ot,kab:e=>e>=0&&e<2?"one":"other",kaj:_t,kcg:At,kde:Nt,kea:jt,kk:$t,kkj:Pt,kl:Dt,km:It,kn:Ft,ko:Bt,ks:Lt,ksb:zt,ksh:e=>0==e?"zero":1==e?"one":"other",ku:Ct,kw:e=>{const t=String(e).split("."),r=Number(t[0])==e,n=r&&t[0].slice(-2),i=r&&t[0].slice(-3),o=r&&t[0].slice(-5),s=r&&t[0].slice(-6);return 0==e?"zero":1==e?"one":2==n||22==n||42==n||62==n||82==n||r&&0==i&&(o>=1e3&&o<=2e4||4e4==o||6e4==o||8e4==o)||0!=e&&1e5==s?"two":3==n||23==n||43==n||63==n||83==n?"few":1==e||1!=n&&21!=n&&41!=n&&61!=n&&81!=n?"other":"many"},ky:Rt,lag:e=>{const t=String(e).split(".")[0];return 0==e?"zero":0!=t&&1!=t||0==e?"other":"one"},lb:qt,lg:Mt,lij:Ut,lkt:Ht,ln:Wt,lo:Gt,lt:e=>{const t=String(e).split("."),r=t[1]||"",n=Number(t[0])==e,i=n&&t[0].slice(-1),o=n&&t[0].slice(-2);return 1==i&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":0!=r?"many":"other"},lv:e=>{const t=String(e).split("."),r=t[1]||"",n=r.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),s=i&&t[0].slice(-2),a=r.slice(-2),c=r.slice(-1);return i&&0==o||s>=11&&s<=19||2==n&&a>=11&&a<=19?"zero":1==o&&11!=s||2==n&&1==c&&11!=a||2!=n&&1==c?"one":"other"},mas:Jt,mg:Kt,mgo:Zt,mk:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":"other"},ml:Vt,mn:Xt,mo:e=>{const t=String(e).split("."),r=!t[1],n=Number(t[0])==e&&t[0].slice(-2);return 1==e&&r?"one":!r||0==e||1!=e&&n>=1&&n<=19?"few":"other"},mr:Yt,ms:Qt,mt:e=>{const t=String(e).split("."),r=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},my:er,nah:tr,naq:rr,nb:nr,nd:ir,ne:or,nl:sr,nn:ar,nnh:cr,no:lr,nqo:ur,nr:hr,nso:fr,ny:dr,nyn:pr,om:mr,or:gr,os:yr,osa:wr,pa:br,pap:vr,pcm:kr,pl:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return 1==e&&n?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&1!=r&&(0==i||1==i)||n&&i>=5&&i<=9||n&&o>=12&&o<=14?"many":"other"},prg:e=>{const t=String(e).split("."),r=t[1]||"",n=r.length,i=Number(t[0])==e,o=i&&t[0].slice(-1),s=i&&t[0].slice(-2),a=r.slice(-2),c=r.slice(-1);return i&&0==o||s>=11&&s<=19||2==n&&a>=11&&a<=19?"zero":1==o&&11!=s||2==n&&1==c&&11!=a||2!=n&&1==c?"one":"other"},ps:xr,pt:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 0==r||1==r?"one":0!=r&&0==i&&n?"many":"other"},pt_PT:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},rm:Sr,ro:e=>{const t=String(e).split("."),r=!t[1],n=Number(t[0])==e&&t[0].slice(-2);return 1==e&&r?"one":!r||0==e||1!=e&&n>=1&&n<=19?"few":"other"},rof:Er,ru:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i&&11!=o?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||n&&i>=5&&i<=9||n&&o>=11&&o<=14?"many":"other"},rwk:Tr,sah:Or,saq:_r,sat:Ar,sc:Nr,scn:jr,sd:$r,sdh:Pr,se:Dr,seh:Ir,ses:Fr,sg:Br,sh:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},shi:e=>{const t=String(e).split("."),r=Number(t[0])==e;return e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},si:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"";return 0==e||1==e||0==r&&1==n?"one":"other"},sk:e=>{const t=String(e).split("."),r=t[0],n=!t[1];return 1==e&&n?"one":r>=2&&r<=4&&n?"few":n?"other":"many"},sl:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-2);return n&&1==i?"one":n&&2==i?"two":n&&(3==i||4==i)||!n?"few":"other"},sma:Lr,smi:zr,smj:Cr,smn:Rr,sms:qr,sn:Mr,so:Ur,sq:Hr,sr:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=r.slice(-2),a=n.slice(-1),c=n.slice(-2);return i&&1==o&&11!=s||1==a&&11!=c?"one":i&&o>=2&&o<=4&&(s<12||s>14)||a>=2&&a<=4&&(c<12||c>14)?"few":"other"},ss:Wr,ssy:Gr,st:Jr,su:Kr,sv:Zr,sw:Vr,syr:Xr,ta:Yr,te:Qr,teo:en,th:tn,ti:rn,tig:nn,tk:on,tl:e=>{const t=String(e).split("."),r=t[0],n=t[1]||"",i=!t[1],o=r.slice(-1),s=n.slice(-1);return i&&(1==r||2==r||3==r)||i&&4!=o&&6!=o&&9!=o||!i&&4!=s&&6!=s&&9!=s?"one":"other"},tn:sn,to:an,tpi:cn,tr:ln,ts:un,tzm:e=>{const t=String(e).split("."),r=Number(t[0])==e;return 0==e||1==e||r&&e>=11&&e<=99?"one":"other"},ug:hn,uk:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-1),o=r.slice(-2);return n&&1==i&&11!=o?"one":n&&i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||n&&i>=5&&i<=9||n&&o>=11&&o<=14?"many":"other"},und:fn,ur:dn,uz:pn,ve:mn,vec:e=>{const t=String(e).split("."),r=t[0],n=!t[1],i=r.slice(-6);return 1==e&&n?"one":0!=r&&0==i&&n?"many":"other"},vi:gn,vo:yn,vun:wn,wa:bn,wae:vn,wo:kn,xh:xn,xog:Sn,yi:En,yo:Tn,yue:On,zh:_n,zu:An});const jn="zero",$n="one",Pn="two",Dn="few",In="many",Fn="other",Bn={cardinal:[$n,Fn],ordinal:[Fn]},Ln={cardinal:[$n,Fn],ordinal:[$n,Fn]},zn={cardinal:[Fn],ordinal:[Fn]},Cn={cardinal:[$n,Pn,Fn],ordinal:[Fn]},Rn=Bn,qn=Bn,Mn=Bn,Un=Bn,Hn={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[Fn]},Wn={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[Fn]},Gn={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},Jn=Bn,Kn=Bn,Zn={cardinal:[$n,Fn],ordinal:[$n,Dn,In,Fn]},Vn=Ln,Xn={cardinal:[$n,Dn,In,Fn],ordinal:[Dn,Fn]},Yn=Bn,Qn=Bn,ei=Bn,ti=Bn,ri=zn,ni={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},ii=zn,oi={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[Fn]},si=Bn,ai={cardinal:[$n,Dn,Fn],ordinal:[Fn]},ci={cardinal:[$n,In,Fn],ordinal:[$n,Pn,Dn,Fn]},li=Bn,ui=Bn,hi=Bn,fi=Bn,di=Bn,pi={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},mi={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[jn,$n,Pn,Dn,In,Fn]},gi=Bn,yi=Bn,wi=Bn,bi={cardinal:[$n,Pn,Dn,Fn],ordinal:[Fn]},vi=Bn,ki=zn,xi=Bn,Si=Bn,Ei={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,Fn]},Ti=Bn,Oi={cardinal:[$n,In,Fn],ordinal:[Fn]},_i=Bn,Ai=Bn,Ni=Bn,ji=Bn,$i=Bn,Pi=Ln,Di=Bn,Ii={cardinal:[$n,In,Fn],ordinal:[$n,Fn]},Fi=Bn,Bi=Bn,Li={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[$n,Fn]},zi={cardinal:[$n,Pn,Dn,Fn],ordinal:[$n,Pn,Dn,Fn]},Ci=Bn,Ri=Bn,qi={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},Mi=Bn,Ui={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[Fn]},Hi=Bn,Wi=Bn,Gi=Cn,Ji={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},Ki=zn,Zi={cardinal:[$n,Dn,Fn],ordinal:[Fn]},Vi={cardinal:[$n,Pn,Dn,Fn],ordinal:[Fn]},Xi=Ln,Yi=Ln,Qi=Bn,eo=zn,to=zn,ro=zn,no=Bn,io=Bn,oo={cardinal:[$n,In,Fn],ordinal:[In,Fn]},so=Cn,ao=zn,co=zn,lo=Bn,uo=Bn,ho=zn,fo=zn,po={cardinal:[$n,Fn],ordinal:[$n,In,Fn]},mo=Bn,go=Bn,yo=Bn,wo=zn,bo=zn,vo={cardinal:[$n,Fn],ordinal:[In,Fn]},ko=Bn,xo=Bn,So=zn,Eo=Bn,To=zn,Oo=Bn,_o=Bn,Ao={cardinal:[jn,$n,Fn],ordinal:[Fn]},No=Bn,jo={cardinal:[jn,$n,Pn,Dn,In,Fn],ordinal:[$n,In,Fn]},$o=Bn,Po={cardinal:[jn,$n,Fn],ordinal:[Fn]},Do=Bn,Io=Bn,Fo={cardinal:[$n,Fn],ordinal:[In,Fn]},Bo=zn,Lo=Bn,zo={cardinal:[Fn],ordinal:[$n,Fn]},Co={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},Ro={cardinal:[jn,$n,Fn],ordinal:[Fn]},qo=Bn,Mo=Bn,Uo=Bn,Ho={cardinal:[$n,Fn],ordinal:[$n,Pn,In,Fn]},Wo=Bn,Go=Bn,Jo={cardinal:[$n,Dn,Fn],ordinal:[$n,Fn]},Ko={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,Fn]},Zo={cardinal:[Fn],ordinal:[$n,Fn]},Vo={cardinal:[$n,Pn,Dn,In,Fn],ordinal:[Fn]},Xo=zn,Yo=Bn,Qo=Cn,es=Bn,ts=Bn,rs=Ln,ns=Bn,is=Bn,os=Bn,ss=Bn,as=zn,cs=Bn,ls=Bn,us=Bn,hs=Bn,fs=Bn,ds={cardinal:[$n,Fn],ordinal:[$n,Pn,Dn,In,Fn]},ps=Bn,ms=zn,gs=Bn,ys=Bn,ws=Bn,bs={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},vs={cardinal:[jn,$n,Fn],ordinal:[Fn]},ks=Bn,xs={cardinal:[$n,In,Fn],ordinal:[Fn]},Ss={cardinal:[$n,In,Fn],ordinal:[Fn]},Es=Bn,Ts={cardinal:[$n,Dn,Fn],ordinal:[$n,Fn]},Os=Bn,_s={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},As=Bn,Ns=zn,js=Bn,$s=Cn,Ps={cardinal:[$n,Fn],ordinal:[In,Fn]},Ds={cardinal:[$n,Fn],ordinal:[In,Fn]},Is=Bn,Fs=Bn,Bs=Cn,Ls=Bn,zs=zn,Cs=zn,Rs={cardinal:[$n,Dn,Fn],ordinal:[Fn]},qs={cardinal:[$n,Dn,Fn],ordinal:[Fn]},Ms=Bn,Us={cardinal:[$n,Dn,In,Fn],ordinal:[Fn]},Hs={cardinal:[$n,Pn,Dn,Fn],ordinal:[Fn]},Ws=Cn,Gs=Cn,Js=Cn,Ks=Cn,Zs=Cn,Vs=Bn,Xs=Bn,Ys={cardinal:[$n,Fn],ordinal:[$n,In,Fn]},Qs={cardinal:[$n,Dn,Fn],ordinal:[Fn]},ea=Bn,ta=Bn,ra=Bn,na=zn,ia=Ln,oa=Bn,sa=Bn,aa=Bn,ca=Bn,la=Bn,ua=zn,ha=Bn,fa=Bn,da={cardinal:[$n,Fn],ordinal:[Dn,Fn]},pa=Ln,ma=Bn,ga=zn,ya=zn,wa=Bn,ba=Bn,va=Bn,ka=Bn,xa={cardinal:[$n,Dn,In,Fn],ordinal:[Dn,Fn]},Sa=zn,Ea=Bn,Ta=Bn,Oa=Bn,_a={cardinal:[$n,In,Fn],ordinal:[In,Fn]},Aa={cardinal:[Fn],ordinal:[$n,Fn]},Na=Bn,ja=Bn,$a=Bn,Pa=Bn,Da=zn,Ia=Bn,Fa=Bn,Ba=Bn,La=zn,za=zn,Ca=zn,Ra=Bn;var qa=Object.freeze({__proto__:null,af:Rn,ak:qn,am:Mn,an:Un,ar:Hn,ars:Wn,as:Gn,asa:Jn,ast:Kn,az:Zn,bal:Vn,be:Xn,bem:Yn,bez:Qn,bg:ei,bho:ti,bm:ri,bn:ni,bo:ii,br:oi,brx:si,bs:ai,ca:ci,ce:li,ceb:ui,cgg:hi,chr:fi,ckb:di,cs:pi,cy:mi,da:gi,de:yi,doi:wi,dsb:bi,dv:vi,dz:ki,ee:xi,el:Si,en:Ei,eo:Ti,es:Oi,et:_i,eu:Ai,fa:Ni,ff:ji,fi:$i,fil:Pi,fo:Di,fr:Ii,fur:Fi,fy:Bi,ga:Li,gd:zi,gl:Ci,gsw:Ri,gu:qi,guw:Mi,gv:Ui,ha:Hi,haw:Wi,he:Gi,hi:Ji,hnj:Ki,hr:Zi,hsb:Vi,hu:Xi,hy:Yi,ia:Qi,id:eo,ig:to,ii:ro,io:no,is:io,it:oo,iu:so,ja:ao,jbo:co,jgo:lo,jmc:uo,jv:ho,jw:fo,ka:po,kab:mo,kaj:go,kcg:yo,kde:wo,kea:bo,kk:vo,kkj:ko,kl:xo,km:So,kn:Eo,ko:To,ks:Oo,ksb:_o,ksh:Ao,ku:No,kw:jo,ky:$o,lag:Po,lb:Do,lg:Io,lij:Fo,lkt:Bo,ln:Lo,lo:zo,lt:Co,lv:Ro,mas:qo,mg:Mo,mgo:Uo,mk:Ho,ml:Wo,mn:Go,mo:Jo,mr:Ko,ms:Zo,mt:Vo,my:Xo,nah:Yo,naq:Qo,nb:es,nd:ts,ne:rs,nl:ns,nn:is,nnh:os,no:ss,nqo:as,nr:cs,nso:ls,ny:us,nyn:hs,om:fs,or:ds,os:ps,osa:ms,pa:gs,pap:ys,pcm:ws,pl:bs,prg:vs,ps:ks,pt:xs,pt_PT:Ss,rm:Es,ro:Ts,rof:Os,ru:_s,rwk:As,sah:Ns,saq:js,sat:$s,sc:Ps,scn:Ds,sd:Is,sdh:Fs,se:Bs,seh:Ls,ses:zs,sg:Cs,sh:Rs,shi:qs,si:Ms,sk:Us,sl:Hs,sma:Ws,smi:Gs,smj:Js,smn:Ks,sms:Zs,sn:Vs,so:Xs,sq:Ys,sr:Qs,ss:ea,ssy:ta,st:ra,su:na,sv:ia,sw:oa,syr:sa,ta:aa,te:ca,teo:la,th:ua,ti:ha,tig:fa,tk:da,tl:pa,tn:ma,to:ga,tpi:ya,tr:wa,ts:ba,tzm:va,ug:ka,uk:xa,und:Sa,ur:Ea,uz:Ta,ve:Oa,vec:_a,vi:Aa,vo:Na,vun:ja,wa:$a,wae:Pa,wo:Da,xh:Ia,xog:Fa,yi:Ba,yo:La,yue:za,zh:Ca,zu:Ra});const Ma=(e,t)=>t?"other":1==e?"one":"other",Ua=(e,t)=>t?"other":0==e||1==e?"one":"other",Ha=(e,t)=>t?"other":e>=0&&e<=1?"one":"other",Wa=(e,t)=>{const r=!String(e).split(".")[1];return t?"other":1==e&&r?"one":"other"},Ga=(e,t)=>"other",Ja=(e,t)=>t?"other":1==e?"one":2==e?"two":"other",Ka=Ma,Za=Ua,Va=Ha,Xa=Ma,Ya=Ma,Qa=Wa,ec=Ma,tc=Ma,rc=Ma,nc=Ua,ic=Ga,oc=Ga,sc=Ma,ac=Ma,cc=Ma,lc=Ma,uc=Ma,hc=Wa,fc=Ha,dc=Ma,pc=Ga,mc=Ma,gc=Ma,yc=Ma,wc=Wa,bc=Ma,vc=Ha,kc=Wa,xc=Ma,Sc=Ma,Ec=Wa,Tc=Wa,Oc=Ma,_c=Ua,Ac=Ma,Nc=Ma,jc=Ga,$c=Wa,Pc=Ga,Dc=Ga,Ic=Ga,Fc=Wa,Bc=Ja,Lc=Ga,zc=Ga,Cc=Ma,Rc=Ma,qc=Ga,Mc=Ga,Uc=Ma,Hc=Ma,Wc=Ga,Gc=Ga,Jc=Ma,Kc=Ma,Zc=Ga,Vc=Ha,Xc=Ga,Yc=Ma,Qc=Ma,el=Ma,tl=Ma,rl=Ma,nl=Ma,il=Ga,ol=Ua,sl=Ma,al=Ua,cl=Ma,ll=Ma,ul=Ma,hl=Ga,fl=Ma,dl=Ja,pl=Ma,ml=Ma,gl=Wa,yl=Ma,wl=Ma,bl=Ma,vl=Ga,kl=Ma,xl=Ua,Sl=Ma,El=Ma,Tl=Ma,Ol=Ma,_l=Ga,Al=Ua,Nl=Ma,jl=Ha,$l=Ma,Pl=Ma,Dl=Ma,Il=Ma,Fl=Ga,Bl=Ma,Ll=Ja,zl=Ma,Cl=Ma,Rl=Ja,ql=Ma,Ml=Ga,Ul=Ga,Hl=Ja,Wl=Ja,Gl=Ja,Jl=Ja,Kl=Ja,Zl=Ma,Vl=Ma,Xl=Ma,Yl=Ma,Ql=Ma,eu=Ga,tu=Wa,ru=Ma,nu=Ma,iu=Ma,ou=Ma,su=Ga,au=Ua,cu=Ma,lu=Ma,uu=Ga,hu=Ga,fu=Ma,du=Ma,pu=Ma,mu=Ga,gu=Wa,yu=Ma,wu=Ma,bu=Ma,vu=Ma,ku=Ua,xu=Ma,Su=Ga,Eu=Ma,Tu=Ma,Ou=Wa,_u=Ga,Au=Ga,Nu=Ga,ju=Ha;var $u=Object.freeze({__proto__:null,af:Ka,ak:Za,am:Va,an:Xa,ar:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ars:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},as:(e,t)=>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:Ya,ast:Qa,az:(e,t)=>{const r=String(e).split(".")[0],n=r.slice(-1),i=r.slice(-2),o=r.slice(-3);return t?1==n||2==n||5==n||7==n||8==n||20==i||50==i||70==i||80==i?"one":3==n||4==n||100==o||200==o||300==o||400==o||500==o||600==o||700==o||800==o||900==o?"few":0==r||6==n||40==i||60==i||90==i?"many":"other":1==e?"one":"other"},bal:(e,t)=>1==e?"one":"other",be:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":n&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},bem:ec,bez:tc,bg:rc,bho:nc,bm:ic,bn:(e,t)=>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:oc,br:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2),s=n&&r[0].slice(-6);return t?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&n&&0==s?"many":"other"},brx:sc,bs:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ca:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},ce:ac,ceb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},cgg:cc,chr:lc,ckb:uc,cs:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},cy:(e,t)=>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:(e,t)=>{const r=String(e).split("."),n=r[0],i=Number(r[0])==e;return t||1!=e&&(i||0!=n&&1!=n)?"other":"one"},de:hc,doi:fc,dsb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-2),a=i.slice(-2);return t?"other":o&&1==s||1==a?"one":o&&2==s||2==a?"two":o&&(3==s||4==s)||3==a||4==a?"few":"other"},dv:dc,dz:pc,ee:mc,el:gc,en:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1==o&&11!=s?"one":2==o&&12!=s?"two":3==o&&13!=s?"few":"other":1==e&&n?"one":"other"},eo:yc,es:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e?"one":0!=n&&0==o&&i?"many":"other"},et:wc,eu:bc,fa:vc,ff:(e,t)=>t?"other":e>=0&&e<2?"one":"other",fi:kc,fil:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},fo:xc,fr:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?1==e?"one":"other":e>=0&&e<2?"one":0!=n&&0==o&&i?"many":"other"},fur:Sc,fy:Ec,ga:(e,t)=>{const 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:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e||11==e?"one":2==e||12==e?"two":3==e||13==e?"few":"other":1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},gl:Tc,gsw:Oc,gu:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",guw:_c,gv:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=s&&20!=s&&40!=s&&60!=s&&80!=s?i?"other":"many":"few"},ha:Ac,haw:Nc,he:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==n&&i||0==n&&!i?"one":2==n&&i?"two":"other"},hi:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other",hnj:jc,hr:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},hsb:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-2),a=i.slice(-2);return t?"other":o&&1==s||1==a?"one":o&&2==s||2==a?"two":o&&(3==s||4==s)||3==a||4==a?"few":"other"},hu:(e,t)=>t?1==e||5==e?"one":"other":1==e?"one":"other",hy:(e,t)=>t?1==e?"one":"other":e>=0&&e<2?"one":"other",ia:$c,id:Pc,ig:Dc,ii:Ic,io:Fc,is:(e,t)=>{const r=String(e).split("."),n=r[0],i=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==e,s=n.slice(-1),a=n.slice(-2);return t?"other":o&&1==s&&11!=a||i%10==1&&i%100!=11?"one":"other"},it:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},iu:Bc,ja:Lc,jbo:zc,jgo:Cc,jmc:Rc,jv:qc,jw:Mc,ka:(e,t)=>{const r=String(e).split(".")[0],n=r.slice(-2);return t?1==r?"one":0==r||n>=2&&n<=20||40==n||60==n||80==n?"many":"other":1==e?"one":"other"},kab:(e,t)=>t?"other":e>=0&&e<2?"one":"other",kaj:Uc,kcg:Hc,kde:Wc,kea:Gc,kk:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1);return t?6==i||9==i||n&&0==i&&0!=e?"many":"other":1==e?"one":"other"},kkj:Jc,kl:Kc,km:Zc,kn:Vc,ko:Xc,ks:Yc,ksb:Qc,ksh:(e,t)=>t?"other":0==e?"zero":1==e?"one":"other",ku:el,kw:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-2),o=n&&r[0].slice(-3),s=n&&r[0].slice(-5),a=n&&r[0].slice(-6);return t?n&&e>=1&&e<=4||i>=1&&i<=4||i>=21&&i<=24||i>=41&&i<=44||i>=61&&i<=64||i>=81&&i<=84?"one":5==e||5==i?"many":"other":0==e?"zero":1==e?"one":2==i||22==i||42==i||62==i||82==i||n&&0==o&&(s>=1e3&&s<=2e4||4e4==s||6e4==s||8e4==s)||0!=e&&1e5==a?"two":3==i||23==i||43==i||63==i||83==i?"few":1==e||1!=i&&21!=i&&41!=i&&61!=i&&81!=i?"other":"many"},ky:tl,lag:(e,t)=>{const r=String(e).split(".")[0];return t?"other":0==e?"zero":0!=r&&1!=r||0==e?"other":"one"},lb:rl,lg:nl,lij:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e;return t?11==e||8==e||i&&e>=80&&e<=89||i&&e>=800&&e<=899?"many":"other":1==e&&n?"one":"other"},lkt:il,ln:ol,lo:(e,t)=>t&&1==e?"one":"other",lt:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?"other":1==o&&(s<11||s>19)?"one":o>=2&&o<=9&&(s<11||s>19)?"few":0!=n?"many":"other"},lv:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-2),l=n.slice(-1);return t?"other":o&&0==s||a>=11&&a<=19||2==i&&c>=11&&c<=19?"zero":1==s&&11!=a||2==i&&1==l&&11!=c||2!=i&&1==l?"one":"other"},mas:sl,mg:al,mgo:cl,mk:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?1==s&&11!=a?"one":2==s&&12!=a?"two":7!=s&&8!=s||17==a||18==a?"other":"many":o&&1==s&&11!=a||1==c&&11!=l?"one":"other"},ml:ll,mn:ul,mo:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&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:(e,t)=>t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":1==e?"one":"other",ms:(e,t)=>t&&1==e?"one":"other",mt:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-2);return t?"other":1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},my:hl,nah:fl,naq:dl,nb:pl,nd:ml,ne:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?n&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:gl,nn:yl,nnh:wl,no:bl,nqo:vl,nr:kl,nso:xl,ny:Sl,nyn:El,om:Tl,or:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?1==e||5==e||n&&e>=7&&e<=9?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":1==e?"one":"other"},os:Ol,osa:_l,pa:Al,pap:Nl,pcm:jl,pl:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":1==e&&i?"one":i&&o>=2&&o<=4&&(s<12||s>14)?"few":i&&1!=n&&(0==o||1==o)||i&&o>=5&&o<=9||i&&s>=12&&s<=14?"many":"other"},prg:(e,t)=>{const r=String(e).split("."),n=r[1]||"",i=n.length,o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-2),l=n.slice(-1);return t?"other":o&&0==s||a>=11&&a<=19||2==i&&c>=11&&c<=19?"zero":1==s&&11!=a||2==i&&1==l&&11!=c||2!=i&&1==l?"one":"other"},ps:$l,pt:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":0==n||1==n?"one":0!=n&&0==o&&i?"many":"other"},pt_PT:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},rm:Pl,ro:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e&&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:Dl,ru:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-1),s=n.slice(-2);return t?"other":i&&1==o&&11!=s?"one":i&&o>=2&&o<=4&&(s<12||s>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&s>=11&&s<=14?"many":"other"},rwk:Il,sah:Fl,saq:Bl,sat:Ll,sc:(e,t)=>{const r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},scn:(e,t)=>{const r=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},sd:zl,sdh:Cl,se:Rl,seh:ql,ses:Ml,sg:Ul,sh:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},shi:(e,t)=>{const 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:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"";return t?"other":0==e||1==e||0==n&&1==i?"one":"other"},sk:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1];return t?"other":1==e&&i?"one":n>=2&&n<=4&&i?"few":i?"other":"many"},sl:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:Hl,smi:Wl,smj:Gl,smn:Jl,sms:Kl,sn:Zl,so:Vl,sq:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e,i=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return t?1==e?"one":4==i&&14!=o?"many":"other":1==e?"one":"other"},sr:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=n.slice(-2),c=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==s&&11!=a||1==c&&11!=l?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ss:Xl,ssy:Yl,st:Ql,su:eu,sv:(e,t)=>{const r=String(e).split("."),n=!r[1],i=Number(r[0])==e,o=i&&r[0].slice(-1),s=i&&r[0].slice(-2);return t?1!=o&&2!=o||11==s||12==s?"other":"one":1==e&&n?"one":"other"},sw:tu,syr:ru,ta:nu,te:iu,teo:ou,th:su,ti:au,tig:cu,tk:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e&&r[0].slice(-1);return t?6==n||9==n||10==e?"few":"other":1==e?"one":"other"},tl:(e,t)=>{const r=String(e).split("."),n=r[0],i=r[1]||"",o=!r[1],s=n.slice(-1),a=i.slice(-1);return t?1==e?"one":"other":o&&(1==n||2==n||3==n)||o&&4!=s&&6!=s&&9!=s||!o&&4!=a&&6!=a&&9!=a?"one":"other"},tn:lu,to:uu,tpi:hu,tr:fu,ts:du,tzm:(e,t)=>{const r=String(e).split("."),n=Number(r[0])==e;return t?"other":0==e||1==e||n&&e>=11&&e<=99?"one":"other"},ug:pu,uk:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=Number(r[0])==e,s=o&&r[0].slice(-1),a=o&&r[0].slice(-2),c=n.slice(-1),l=n.slice(-2);return t?3==s&&13!=a?"few":"other":i&&1==c&&11!=l?"one":i&&c>=2&&c<=4&&(l<12||l>14)?"few":i&&0==c||i&&c>=5&&c<=9||i&&l>=11&&l<=14?"many":"other"},und:mu,ur:gu,uz:yu,ve:wu,vec:(e,t)=>{const r=String(e).split("."),n=r[0],i=!r[1],o=n.slice(-6);return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&i?"one":0!=n&&0==o&&i?"many":"other"},vi:(e,t)=>t&&1==e?"one":"other",vo:bu,vun:vu,wa:ku,wae:xu,wo:Su,xh:Eu,xog:Tu,yi:Ou,yo:_u,yue:Au,zh:Nu,zu:ju});function Pu(e){if("string"!=typeof e||e.length<2)throw new RangeError("Invalid language tag: ".concat(e));if(e.startsWith("pt-PT"))return"pt-PT";var t=e.match(/.+?(?=[-_])/);return t?t[0]:e}function Du(e){if("function"==typeof e){var t=Pu(e.name);return{isDefault:!1,id:he(t),lc:t,locale:e.name,getPlural:e,cardinals:e.cardinals||[],ordinals:e.ordinals||[]}}var r=Pu(e),n=he(r);return function(e){return e in $u}(n)?{isDefault:!0,id:n,lc:r,locale:e,getCardinal:Nn[n],getPlural:$u[n],cardinals:qa[n].cardinal,ordinals:qa[n].ordinal}:null}function Iu(e){return he(Pu(e))in $u}return function(){function r(e,t){if(this.plurals=[],this.options=Object.assign({biDiSupport:!1,currency:"USD",customFormatters:{},localeCodeFromKey:null,requireAllArguments:!1,returnType:"string",strict:t&&t.strictNumberSign||!1,strictPluralKeys:!0},t),"*"===e?this.plurals=(i=r.defaultLocale,(o=Object.keys($u).filter((function(e){return e!==i}))).unshift(i),o.map(Du)):Array.isArray(e)?this.plurals=e.map(Du).filter(Boolean):e&&(n=Du(e))&&(this.plurals=[n]),0===this.plurals.length){var n=Du(r.defaultLocale);this.plurals=[n]}var i,o}return r.escape=function(e,t){var r=t?/[#{}]/g:/[{}]/g;return String(e).replace(r,"'$&'")},r.supportedLocalesOf=function(e){return(Array.isArray(e)?e:[e]).filter(Iu)},r.prototype.resolvedOptions=function(){return e(e({},this.options),{locale:this.plurals[0].locale,plurals:this.plurals})},r.prototype.compile=function(e){var r,o,s=new me(this.options),a="return "+s.compile(e,this.plurals[0]),c=[],l=[];try{for(var u=t(Object.entries(s.runtime)),h=u.next();!h.done;h=u.next()){var f=n(h.value,2),d=f[0],p=f[1];c.push(d),l.push(p)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return(new(Function.bind.apply(Function,i(i([void 0],n(c),!1),[a],!1)))).apply(void 0,i([],n(l),!1))},r.defaultLocale="en",r}()}()},487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},98:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,o="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=m(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,r,n=p(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=m(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=u(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(e)]=h(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),f(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},w.call(v.prototype),w.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];x.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(i,s){var c=new v(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function u(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;setTimeout((function(){i(new x(n,r))}),0)},l.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},l.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(o?l.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?c.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){l.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",u),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",u)}),l.send(void 0===c._bodyInit?null:c._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=d,r.Request=v,r.Response=x),t.Headers=d,t.Request=v,t.Response=x,t.fetch=E}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},12:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var i=e[n]<<16|e[n+1]<<8|e[n+2],o=0;o<4;o++)8*n+6*o<=8*e.length?r.push(t.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n<e.length;i=++n%4)0!=i&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(n))>>>6-2*i);return r}},e.exports=r},738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:(e,t,r)=>{var n,i,o,s,a;n=r(12),i=r(487).utf8,o=r(738),s=r(487).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):i.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,h=-1732584194,f=271733878,d=0;d<r.length;d++)r[d]=16711935&(r[d]<<8|r[d]>>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var p=a._ff,m=a._gg,g=a._hh,y=a._ii;for(d=0;d<r.length;d+=16){var w=l,b=u,v=h,k=f;l=p(l,u,h,f,r[d+0],7,-680876936),f=p(f,l,u,h,r[d+1],12,-389564586),h=p(h,f,l,u,r[d+2],17,606105819),u=p(u,h,f,l,r[d+3],22,-1044525330),l=p(l,u,h,f,r[d+4],7,-176418897),f=p(f,l,u,h,r[d+5],12,1200080426),h=p(h,f,l,u,r[d+6],17,-1473231341),u=p(u,h,f,l,r[d+7],22,-45705983),l=p(l,u,h,f,r[d+8],7,1770035416),f=p(f,l,u,h,r[d+9],12,-1958414417),h=p(h,f,l,u,r[d+10],17,-42063),u=p(u,h,f,l,r[d+11],22,-1990404162),l=p(l,u,h,f,r[d+12],7,1804603682),f=p(f,l,u,h,r[d+13],12,-40341101),h=p(h,f,l,u,r[d+14],17,-1502002290),l=m(l,u=p(u,h,f,l,r[d+15],22,1236535329),h,f,r[d+1],5,-165796510),f=m(f,l,u,h,r[d+6],9,-1069501632),h=m(h,f,l,u,r[d+11],14,643717713),u=m(u,h,f,l,r[d+0],20,-373897302),l=m(l,u,h,f,r[d+5],5,-701558691),f=m(f,l,u,h,r[d+10],9,38016083),h=m(h,f,l,u,r[d+15],14,-660478335),u=m(u,h,f,l,r[d+4],20,-405537848),l=m(l,u,h,f,r[d+9],5,568446438),f=m(f,l,u,h,r[d+14],9,-1019803690),h=m(h,f,l,u,r[d+3],14,-187363961),u=m(u,h,f,l,r[d+8],20,1163531501),l=m(l,u,h,f,r[d+13],5,-1444681467),f=m(f,l,u,h,r[d+2],9,-51403784),h=m(h,f,l,u,r[d+7],14,1735328473),l=g(l,u=m(u,h,f,l,r[d+12],20,-1926607734),h,f,r[d+5],4,-378558),f=g(f,l,u,h,r[d+8],11,-2022574463),h=g(h,f,l,u,r[d+11],16,1839030562),u=g(u,h,f,l,r[d+14],23,-35309556),l=g(l,u,h,f,r[d+1],4,-1530992060),f=g(f,l,u,h,r[d+4],11,1272893353),h=g(h,f,l,u,r[d+7],16,-155497632),u=g(u,h,f,l,r[d+10],23,-1094730640),l=g(l,u,h,f,r[d+13],4,681279174),f=g(f,l,u,h,r[d+0],11,-358537222),h=g(h,f,l,u,r[d+3],16,-722521979),u=g(u,h,f,l,r[d+6],23,76029189),l=g(l,u,h,f,r[d+9],4,-640364487),f=g(f,l,u,h,r[d+12],11,-421815835),h=g(h,f,l,u,r[d+15],16,530742520),l=y(l,u=g(u,h,f,l,r[d+2],23,-995338651),h,f,r[d+0],6,-198630844),f=y(f,l,u,h,r[d+7],10,1126891415),h=y(h,f,l,u,r[d+14],15,-1416354905),u=y(u,h,f,l,r[d+5],21,-57434055),l=y(l,u,h,f,r[d+12],6,1700485571),f=y(f,l,u,h,r[d+3],10,-1894986606),h=y(h,f,l,u,r[d+10],15,-1051523),u=y(u,h,f,l,r[d+1],21,-2054922799),l=y(l,u,h,f,r[d+8],6,1873313359),f=y(f,l,u,h,r[d+15],10,-30611744),h=y(h,f,l,u,r[d+6],15,-1560198380),u=y(u,h,f,l,r[d+13],21,1309151649),l=y(l,u,h,f,r[d+4],6,-145523070),f=y(f,l,u,h,r[d+11],10,-1120210379),h=y(h,f,l,u,r[d+2],15,718787259),u=y(u,h,f,l,r[d+9],21,-343485551),l=l+w>>>0,u=u+b>>>0,h=h+v>>>0,f=f+k>>>0}return n.endian([l,u,h,f])})._ff=function(e,t,r,n,i,o,s){var a=e+(t&r|~t&n)+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._gg=function(e,t,r,n,i,o,s){var a=e+(t&n|r&~n)+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._hh=function(e,t,r,n,i,o,s){var a=e+(t^r^n)+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._ii=function(e,t,r,n,i,o,s){var a=e+(r^(t|~n))+(i>>>0)+s;return(a<<o|a>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(a(e,t));return t&&t.asBytes?r:t&&t.asString?s.bytesToString(r):n.bytesToHex(r)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{FETCHING_LOCALES:()=>S,FETCHING_TRANSLATIONS:()=>b,LOCALES_FETCHED:()=>E,LOCALES_FETCH_FAILED:()=>T,LOCALE_CHANGED:()=>x,MessageFormatRenderer:()=>M,PseudoTranslationPolicy:()=>z,SourceErrorPolicy:()=>R,SourceStringPolicy:()=>C,TRANSLATIONS_FETCHED:()=>v,TRANSLATIONS_FETCH_FAILED:()=>k,ThrowErrorPolicy:()=>q,createNativeInstance:()=>U,escape:()=>m,explodePlurals:()=>D,generateHashedKey:()=>p,generateKey:()=>d,implodePlurals:()=>I,isPluralized:()=>F,isString:()=>g,normalizeLocale:()=>y,offEvent:()=>A,onEvent:()=>_,sendEvent:()=>N,sleep:()=>w,t:()=>W,tx:()=>H});var e=r(98),t=r.n(e);class i{constructor(){this.translationsByLocale={}}update(e,t){const r=this.translationsByLocale[e]||{};this.translationsByLocale[e]={...r,...t}}getTranslations(e){return this.translationsByLocale[e]||{}}hasTranslations(e){return!!this.translationsByLocale[e]}isStale(e){return!this.hasTranslations(e)}get(e,t){return this.getTranslations(t)[e]||""}}class o{handle(e,t,r,n){return t}}class s{handle(e,t){return e}}var a=r(160),c=r.n(a);const l={};class u{render(e,t,r){const n=(t||"").split("_")[0];if(!l[n])try{l[n]=new(c())(n,{strictPluralKeys:!1})}catch(e){l[n]=new(c())("*",{strictPluralKeys:!1})}return l[n].compile(e)(r)}}var h=r(568),f=r.n(h);function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t._key?t._key:t._context?`${e}::${t._context}`:`${e}`}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t._key)return t._key;let r="";return t._context&&(r=t._context,r=r.replace(/,/g,":")),f()(`5:${e}:${r}`)}function m(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function y(e){const t=e.split("-");let r;return r=1===t.length?e:[t[0],t[1].toUpperCase()].join("_"),r}function w(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}const b="FETCHING_TRANSLATIONS",v="TRANSLATIONS_FETCHED",k="TRANSLATIONS_FETCH_FAILED",x="LOCALE_CHANGED",S="FETCHING_LOCALES",E="LOCALES_FETCHED",T="LOCALES_FETCH_FAILED",O={};function _(e,t){O[e]=O[e]||[],O[e].push(t)}function A(e,t){const r=O[e]||[],n=r.indexOf(t);-1!==n&&r.splice(n,1)}function N(e,t,r){(O[e]||[]).forEach((e=>{e(t,r)}))}const j=["zero","one","two","few","many","other"];function $(e){const t=e.indexOf("{");if(-1===t)return[null,null];let r=e.substring(0,t).trim();if("="===r[0]){if(r=r.substring(1),Number.isNaN(parseInt(r,10))||parseInt(r,10)!==parseFloat(r))return[null,null];if(r=parseInt(r,10),r=j[r],void 0===r)return[null,null]}else if(-1===j.indexOf(r))return[null,null];return[r,e.substring(t)]}function P(e){let[t,r]=[0,!1],n=0;for(;n<e.length;){const i=e[n];if("'"===i){const t=e[n+1];"'"===t?n+=1:r?r=!1:"{"!==t&&"}"!==t||(r=!0)}else if("{"===i)r||(t+=1);else if("}"===i&&(r||(t-=1),0===t))return[e.substring(1,n),e.substring(n+1).trim()];n+=1}return[null,null]}function D(e){const t=[null,{other:e}];let[r,n]=function(e){if(!(e.length>1&&"{"===e[0]&&"}"===e[e.length-1]))return[null,null];const t=e.indexOf(",");if(-1===t)return[null,null];const r=e.indexOf(",",t+1);if(-1===r)return[null,null];const n=e.substring(1,t).trim(),i=e.substring(t+1,r).trim();return/^[\w_]+$/.test(n)&&"plural"===i?[n,e.substring(r+1,e.length-1).trim()]:[null,null]}(e);if(null==r)return t;const i={};let o,s;if([o,n]=$(n),null==o)return t;if([s,n]=P(n.trim()),null==s)return t;for(i[o]=s;n.trim();){if([o,n]=$(n.trim()),null==o)return t;if([s,n]=P(n.trim()),null==s)return t;i[o]=s}return(1!==Object.keys(i).length||"other"in i)&&"one"in i&&"other"in i?[r,i]:t}function I(e){const t=[`{${arguments.length>1&&void 0!==arguments[1]?arguments[1]:"???"}, plural,`];for(const r of j)if(r in e){const n=e[r];t.push(` ${r} {${n}}`)}return t.push("}"),t.join("")}function F(e){const t=D(e)[1];return Object.keys(t).length>1}class B{constructor(){this.cdsHost="https://cds.svc.transifex.net",this.token="",this.secret="",this.filterTags="",this.filterStatus="",this.fetchTimeout=0,this.fetchInterval=250,this.cache=new i,this.missingPolicy=new s,this.errorPolicy=new o,this.stringRenderer=new u,this.currentLocale="",this.locales=[],this.languages=[],this.childInstances=[]}init(e){const t=this;["cdsHost","token","secret","cache","filterTags","filterStatus","fetchTimeout","fetchInterval","missingPolicy","errorPolicy","stringRenderer","currentLocale"].forEach((r=>{void 0!==e[r]&&(t[r]=e[r])})),this.fetchedTags={}}translate(e,t){return this.translateLocale(this.currentLocale,e,t)}translateLocale(e,t,r){try{let n=this.cache.get(d(t,r),e);n||(n=this.cache.get(p(t,r),e)),n&&n.startsWith("{???")&&F(t)&&(n=`{${t.substring(1,t.indexOf(",")).trim()}${n.substring(4)}`);let i=!1;if(n||(i=!0,n=t),r&&r._escapeVars){const t={};Object.keys(r).forEach((e=>{const n=r[e];t[e]=g(n)?m(n):n})),n=this.stringRenderer.render(n,e,t)}else n=this.stringRenderer.render(n,e,r);return i&&e&&(n=this.missingPolicy.handle(n,e)),g(n)||(n=`${n}`),n}catch(n){return this.errorPolicy.handle(n,`${t}`,e,r)}}async fetchTranslations(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=r.filterTags||this.filterTags;if(!r.refresh&&!this.cache.isStale(e)&&(!n&&this.cache.hasTranslations(e)||n&&-1!==(this.fetchedTags[e]||[]).indexOf(n)))return;n&&(e in this.fetchedTags||(this.fetchedTags[e]=[]),-1===this.fetchedTags[e].indexOf(n)&&this.fetchedTags[e].push(n));const i=t=>(N(k,{localeCode:e,filterTags:n},this),t);try{let r;N(b,{localeCode:e,filterTags:n},this);let o=202;const s=Date.now();for(;202===o;){let a=`${this.cdsHost}/content/${e}`;const c=[];if(n&&c.push(`filter[tags]=${n}`),this.filterStatus&&c.push(`filter[status]=${this.filterStatus}`),c.length&&(a=`${a}?${c.join("&")}`),r=await t()(a,{method:"GET",headers:{Authorization:`Bearer ${this.token}`,"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.0.1"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0}),!r.ok)throw await this._fetchError(r);if(o=r.status,this.fetchTimeout>0&&Date.now()-s>=this.fetchTimeout)throw i(new Error("Fetch translations timeout"));202===o&&this.fetchInterval>0&&await w(this.fetchInterval)}const a=await r.json();if(!a||!a.data)throw i(new Error("Could not fetch translations"));{const t={};Object.keys(a.data).forEach((e=>{a.data[e].string&&(t[e]=a.data[e].string)})),this.cache.update(e,t),N(v,{localeCode:e,filterTags:n},this)}}catch(e){throw i(e)}}async invalidateCDS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.token)throw new Error("token is not defined");if(!this.secret)throw new Error("secret is not defined");const r=e.purge?"purge":"invalidate",n=await t()(`${this.cdsHost}/${r}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}:${this.secret}`,"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.0.1"}});if(!n.ok)throw await this._fetchError(n);return await n.json()}async pushSource(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.token)throw new Error("token is not defined");if(!this.secret)throw new Error("secret is not defined");const n={Authorization:`Bearer ${this.token}:${this.secret}`,"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.0.1"},i=await t()(`${this.cdsHost}/content`,{method:"POST",headers:n,body:JSON.stringify({data:e,meta:{purge:!!r.purge,override_tags:!!r.overrideTags,override_occurrences:!!r.overrideOccurrences}})});if(!i.ok)throw await this._fetchError(i);const o=await i.json(),s=`${this.cdsHost}${o.data.links.job}`;if(r.noWait)return{jobUrl:s};let a={status:""};do{await w(1500);const e=await t()(s,{method:"GET",headers:n});if(!e.ok)throw await this._fetchError(e);const r=await e.json(),{data:i}=r;a={...i.details||{},errors:i.errors||[],status:i.status}}while("pending"===a.status||"processing"===a.status);return{jobUrl:s,...a}}async getLocales(){if(!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).refresh&&this.locales.length>0)return[...this.locales];if(!this.token)return[];const e=e=>(N(T,null,this),e);try{let r;N(S,null,this);let n=202;const i=Date.now();for(;202===n;){if(r=await t()(`${this.cdsHost}/languages`,{method:"GET",headers:{Authorization:`Bearer ${this.token}`,"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.0.1"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0}),!r.ok)throw await this._fetchError(r);if(n=r.status,this.fetchTimeout>0&&Date.now()-i>=this.fetchTimeout)throw e(new Error("Get locales timeout"));202===n&&this.fetchInterval>0&&await w(this.fetchInterval)}const o=await r.json();if(!o||!o.data)throw e(new Error("Could not fetch languages"));this.languages=o.data,this.locales=this.languages.map((e=>e.code)),N(E,null,this)}catch(t){throw e(t)}return[...this.locales]}getCurrentLocale(){return this.currentLocale}isCurrent(e){return e===this.currentLocale}async setCurrentLocale(e){if(this.isCurrent(e))await this._syncInstances(this.childInstances);else{if(!e)return this.currentLocale="",await this._syncInstances(this.childInstances),void N(x,this.currentLocale,this);await this.fetchTranslations(e),this.currentLocale=e,await this._syncInstances(this.childInstances),N(x,e,this)}}async getLanguages(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await this.getLocales(e),[...this.languages]}async controllerOf(e){if(e===this)throw new Error("Cannot add self as instance");if(-1!==e.childInstances.indexOf(this))throw new Error("Cycle reference error, instance is controller of this");return this.childInstances.push(e),await this._syncInstances([e]),e}async _syncInstances(e){const t=this.getCurrentLocale();if(t)for(let r=0;r<e.length;r++)if(e[r].getCurrentLocale()!==t)try{await e[r].fetchTranslations(t)}catch(e){}e.forEach((e=>{e.getCurrentLocale()!==t&&(e.currentLocale=t,N(x,t,e))}))}async _fetchError(e){try{const t=await e.text();return new Error(`HTTP ${e.status}: ${t}`)}catch(t){return new Error(`HTTP error ${e.status}`)}}}const L={a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},z=class{handle(e,t){return e.split(/__txnative__/).map((e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e.charAt(r);if(L[n]){const e=n.toLowerCase();t+="a"===e||"e"===e||"o"===e||"u"===e?L[n]+L[n]:L[n]}else t+=n}return t})).join("__txnative__")}},C=s,R=o,q=class{handle(e,t,r,n){throw e||new Error(`Error translating "${t}"`)}},M=u,U=function(e){const t=new B;return t.t=t.translate.bind(t),e&&t.init(e),t},H=new B,W=H.translate.bind(H)})(),n})()));
|
|
3
3
|
//# sourceMappingURL=browser.native.js.map
|