i18next-icu
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -0,1 +1,5 @@ | ||
### 2.1.0 | ||
- update intl-messageformat dependency to address [57](https://github.com/i18next/i18next-icu/issues/57) | ||
### 2.0.3 | ||
@@ -2,0 +6,0 @@ |
@@ -1,16 +0,1 @@ | ||
define((function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=n(a.shift());!e[o]&&r&&(e[o]=new r),e=e[o]}return i()?{}:{obj:e,k:n(a.shift())}}var a=[],o=a.forEach,u=a.slice; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l,f,p=function(){return(p=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}).apply(this,arguments)};function h(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,u=a.length;o<u;o++,i++)n[i]=a[o];return n}function g(e){return e.type===l.literal}function m(e){return e.type===l.argument}function d(e){return e.type===l.number}function y(e){return e.type===l.date}function v(e){return e.type===l.time}function b(e){return e.type===l.select}function A(e){return e.type===l.plural}function w(e){return e.type===l.pound}function C(e){return e.type===l.tag}function x(e){return!(!e||"object"!=typeof e||0!==e.type)}function D(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(f||(f={}));var E=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?$/g,F=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function S(e){var t={};return e.replace(O,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function j(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!I.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function T(e){var t=j(e);return t||{}}function z(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=p(p(p({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return p(p({},e),T(t))}),{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return p(p({},e),T(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(F,(function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(k.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(k,(function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=p(p({},t),S(i.options[0])))}else if(O.test(i.stem))t=p(p({},t),S(i.stem));else{var a=j(i.stem);a&&(t=p(p({},t),a));var o=_(i.stem);o&&(t=p(p({},t),o))}}return t}var P=function(e){function t(r,n,i,a){var o=e.call(this)||this;return o.message=r,o.expected=n,o.found=i,o.location=a,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return c(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(((o=t)?'"'+n(o)+'"':"end of input")+" found.");var o},t}(Error);var N=function(e,t){t=void 0!==t?t:{};var r,n={},i={start:Ke},a=Ke,o="<",u=Ve("<",!1),s=function(e){return e.join("")},c=Ve("#",!1),f=Ue("tagElement"),h=Ve("/>",!1),g=Ve(">",!1),m=Ve("</",!1),d=Ue("argumentElement"),y="{",v=Ve("{",!1),b="}",A=Ve("}",!1),w=Ue("numberSkeletonId"),C=/^['\/{}]/,x=Ze(["'","/","{","}"],!1,!1),D={type:"any"},k=Ue("numberSkeletonTokenOption"),O=Ve("/",!1),F=Ue("numberSkeletonToken"),I="::",S=Ve("::",!1),j=function(e){return vt.pop(),e.replace(/\s*$/,"")},_=",",T=Ve(",",!1),N="number",L=Ve("number",!1),R=function(e,t,r){return p({type:"number"===t?l.number:"date"===t?l.date:l.time,style:r&&r[2],value:e},At())},M="'",V=Ve("'",!1),Z=/^[^']/,U=Ze(["'"],!0,!1),B=/^[^a-zA-Z'{}]/,G=Ze([["a","z"],["A","Z"],"'","{","}"],!0,!1),H=/^[a-zA-Z]/,K=Ze([["a","z"],["A","Z"]],!1,!1),$="date",W=Ve("date",!1),q="time",J=Ve("time",!1),Q="plural",X=Ve("plural",!1),Y="selectordinal",ee=Ve("selectordinal",!1),te="offset:",re=Ve("offset:",!1),ne="select",ie=Ve("select",!1),ae=Ve("=",!1),oe=Ue("whitespace"),ue=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,se=Ze([["\t","\r"]," "," "," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),ce=Ue("syntax pattern"),le=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,fe=Ze([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),pe=Ue("optional whitespace"),he=Ue("number"),ge="-",me=Ve("-",!1),de=Ue("double apostrophes"),ye="''",ve=Ve("''",!1),be=function(e){return!("<"===e||"{"===e||bt()&&"#"===e||vt.length>1&&"}"===e)},Ae=Ve("\n",!1),we=Ue("argNameOrNumber"),Ce=Ue("validTag"),xe=Ue("argNumber"),De=Ve("0",!1),Ee=/^[1-9]/,ke=Ze([["1","9"]],!1,!1),Oe=/^[0-9]/,Fe=Ze([["0","9"]],!1,!1),Ie=Ue("argName"),Se=Ue("tagName"),je=0,_e=0,Te=[{line:1,column:1}],ze=0,Pe=[],Ne=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function Le(){return e.substring(_e,je)}function Re(){return Ge(_e,je)}function Me(e,t){throw function(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:Ge(_e,je))}function Ve(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ze(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ue(e){return{type:"other",description:e}}function Be(t){var r,n=Te[t];if(n)return n;for(r=t-1;!Te[r];)r--;for(n={line:(n=Te[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Te[t]=n,n}function Ge(e,t){var r=Be(e),n=Be(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function He(e){je<ze||(je>ze&&(ze=je,Pe=[]),Pe.push(e))}function Ke(){return $e()}function $e(){var e,t;for(e=[],t=We();t!==n;)e.push(t),t=We();return e}function We(){var t,r;return t=je,_e=je,(!Dt?void 0:n)!==n&&(r=function(){var e,t,r,i;Ne++,(e=Qe())===n&&(e=je,(t=Xe())!==n&&(r=$e())!==n&&(i=Ye())!==n?(_e=e,o=r,(a=t)!==(u=i)&&Me('Mismatch tag "'+a+'" !== "'+u+'"',Re()),e=t=p({type:l.tag,value:a,children:o},At())):(je=e,e=n));var a,o,u;Ne--,e===n&&(t=n,0===Ne&&He(f));return e}())!==n?(_e=t,t=r):(je=t,t=n),t===n&&(t=function(){var e,t;e=je,(t=qe())!==n&&(_e=e,r=t,t=p({type:l.literal,value:r},At()));var r;return e=t}())===n&&(t=function(){var t,r,i,a;Ne++,t=je,123===e.charCodeAt(je)?(r=y,je++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(125===e.charCodeAt(je)?(a=b,je++):(a=n,0===Ne&&He(A)),a!==n?(_e=t,o=i,t=r=p({type:l.argument,value:o},At())):(je=t,t=n)):(je=t,t=n);var o;Ne--,t===n&&(r=n,0===Ne&&He(d));return t}())===n&&(t=function(){var t;(t=function(){var t,r,i,a,o,u,s,c,l;t=je,123===e.charCodeAt(je)?(r=y,je++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n&&ct()!==n?(e.substr(je,6)===N?(o=N,je+=6):(o=n,0===Ne&&He(L)),o!==n&&ct()!==n?(u=je,44===e.charCodeAt(je)?(s=_,je++):(s=n,0===Ne&&He(T)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=je,e.substr(je,2)===I?(r=I,je+=2):(r=n,0===Ne&&He(S));r!==n&&(i=function(){var e,t,r;if(e=je,t=[],(r=rt())!==n)for(;r!==n;)t.push(r),r=rt();else t=n;t!==n&&(_e=e,t=p({type:0,tokens:i=t,parsedOptions:Et?z(i):{}},At()));var i;return e=t}())!==n?(_e=t,t=r=i):(je=t,t=n);t===n&&(t=je,_e=je,vt.push("numberArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(_e=t,t=r=j(i)):(je=t,t=n));return t}())!==n?u=s=[s,c,l]:(je=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(je)?(c=b,je++):(c=n,0===Ne&&He(A)),c!==n?(_e=t,t=r=R(i,o,u)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n);return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,l;t=je,123===e.charCodeAt(je)?(r=y,je++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n&&ct()!==n?(e.substr(je,4)===$?(o=$,je+=4):(o=n,0===Ne&&He(W)),o===n&&(e.substr(je,4)===q?(o=q,je+=4):(o=n,0===Ne&&He(J))),o!==n&&ct()!==n?(u=je,44===e.charCodeAt(je)?(s=_,je++):(s=n,0===Ne&&He(T)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=je,e.substr(je,2)===I?(r=I,je+=2):(r=n,0===Ne&&He(S));r!==n&&(i=function(){var t,r,i,a;t=je,r=je,i=[],(a=nt())===n&&(a=it());if(a!==n)for(;a!==n;)i.push(a),(a=nt())===n&&(a=it());else i=n;r=i!==n?e.substring(r,je):i;r!==n&&(_e=t,r=p({type:1,pattern:o=r,parsedOptions:Et?(u=o,s={},u.replace(E,(function(e){var t=e.length;switch(e[0]){case"G":s.era=4===t?"long":5===t?"narrow":"short";break;case"y":s.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":s.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":s.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":s.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"a":s.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":s.hourCycle="h12",s.hour=["numeric","2-digit"][t-1];break;case"H":s.hourCycle="h23",s.hour=["numeric","2-digit"][t-1];break;case"K":s.hourCycle="h11",s.hour=["numeric","2-digit"][t-1];break;case"k":s.hourCycle="h24",s.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":s.minute=["numeric","2-digit"][t-1];break;case"s":s.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":s.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),s):{}},At()));var o,u,s;return t=r}())!==n?(_e=t,t=r=i):(je=t,t=n);t===n&&(t=je,_e=je,vt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(_e=t,t=r=j(i)):(je=t,t=n));return t}())!==n?u=s=[s,c,l]:(je=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(je)?(c=b,je++):(c=n,0===Ne&&He(A)),c!==n?(_e=t,t=r=R(i,o,u)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n);return t}());return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f,h,g;t=je,123===e.charCodeAt(je)?(r=y,je++):(r=n,0===Ne&&He(v));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n)if(ct()!==n)if(e.substr(je,6)===Q?(o=Q,je+=6):(o=n,0===Ne&&He(X)),o===n&&(e.substr(je,13)===Y?(o=Y,je+=13):(o=n,0===Ne&&He(ee))),o!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(u=_,je++):(u=n,0===Ne&&He(T)),u!==n)if(ct()!==n)if(s=je,e.substr(je,7)===te?(c=te,je+=7):(c=n,0===Ne&&He(re)),c!==n&&(f=ct())!==n&&(h=lt())!==n?s=c=[c,f,h]:(je=s,s=n),s===n&&(s=null),s!==n)if((c=ct())!==n){if(f=[],(h=ot())!==n)for(;h!==n;)f.push(h),h=ot();else f=n;f!==n&&(h=ct())!==n?(125===e.charCodeAt(je)?(g=b,je++):(g=n,0===Ne&&He(A)),g!==n?(_e=t,t=r=function(e,t,r,n){return p({type:l.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in plural element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,o,s,f)):(je=t,t=n)):(je=t,t=n)}else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f;t=je,123===e.charCodeAt(je)?(r=y,je++):(r=n,0===Ne&&He(v));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n)if(ct()!==n)if(e.substr(je,6)===ne?(o=ne,je+=6):(o=n,0===Ne&&He(ie)),o!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(u=_,je++):(u=n,0===Ne&&He(T)),u!==n)if(ct()!==n){if(s=[],(c=at())!==n)for(;c!==n;)s.push(c),c=at();else s=n;s!==n&&(c=ct())!==n?(125===e.charCodeAt(je)?(f=b,je++):(f=n,0===Ne&&He(A)),f!==n?(_e=t,t=r=function(e,t){return p({type:l.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in select element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,s)):(je=t,t=n)):(je=t,t=n)}else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;return t}())===n&&(t=function(){var t,r;t=je,35===e.charCodeAt(je)?(r="#",je++):(r=n,0===Ne&&He(c));r!==n&&(_e=t,r=p({type:l.pound},At()));return t=r}()),t}function qe(){var t,r,i,a;if(t=je,_e=je,(r=(r=Dt)?void 0:n)!==n){if(i=[],(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(je)?(a=o,je++):(a=n,0===Ne&&He(u))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(je)?(a=o,je++):(a=n,0===Ne&&He(u)));else i=n;i!==n?(_e=t,t=r=s(i)):(je=t,t=n)}else je=t,t=n;if(t===n){if(t=je,r=[],(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je()),i!==n)for(;i!==n;)r.push(i),(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je());else r=n;r!==n&&(_e=t,r=s(r)),t=r}return t}function Je(){var t,r,i;return t=je,r=je,Ne++,(i=Xe())===n&&(i=Ye())===n&&(i=Qe()),Ne--,i===n?r=void 0:(je=r,r=n),r!==n?(60===e.charCodeAt(je)?(i=o,je++):(i=n,0===Ne&&He(u)),i!==n?(_e=t,t=r="<"):(je=t,t=n)):(je=t,t=n),t}function Qe(){var t,r,i,a,s,c,f;return t=je,r=je,60===e.charCodeAt(je)?(i=o,je++):(i=n,0===Ne&&He(u)),i!==n&&(a=mt())!==n&&(s=ct())!==n?("/>"===e.substr(je,2)?(c="/>",je+=2):(c=n,0===Ne&&He(h)),c!==n?r=i=[i,a,s,c]:(je=r,r=n)):(je=r,r=n),r!==n&&(_e=t,f=r,r=p({type:l.literal,value:f.join("")},At())),t=r}function Xe(){var t,r,i,a;return t=je,60===e.charCodeAt(je)?(r=o,je++):(r=n,0===Ne&&He(u)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(je)?(a=">",je++):(a=n,0===Ne&&He(g)),a!==n?(_e=t,t=r=i):(je=t,t=n)):(je=t,t=n),t}function Ye(){var t,r,i,a;return t=je,"</"===e.substr(je,2)?(r="</",je+=2):(r=n,0===Ne&&He(m)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(je)?(a=">",je++):(a=n,0===Ne&&He(g)),a!==n?(_e=t,t=r=i):(je=t,t=n)):(je=t,t=n),t}function et(){var t,r,i,a,o;if(Ne++,t=je,r=[],i=je,a=je,Ne++,(o=ut())===n&&(C.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(x))),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n),i!==n)for(;i!==n;)r.push(i),i=je,a=je,Ne++,(o=ut())===n&&(C.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(x))),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n);else r=n;return t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(w)),t}function tt(){var t,r,i;return Ne++,t=je,47===e.charCodeAt(je)?(r="/",je++):(r=n,0===Ne&&He(O)),r!==n&&(i=et())!==n?(_e=t,t=r=i):(je=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(k)),t}function rt(){var e,t,r,i;if(Ne++,e=je,ct()!==n)if((t=et())!==n){for(r=[],i=tt();i!==n;)r.push(i),i=tt();r!==n?(_e=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(je=e,e=n)}else je=e,e=n;else je=e,e=n;return Ne--,e===n&&(n,0===Ne&&He(F)),e}function nt(){var t,r,i,a;if(t=je,39===e.charCodeAt(je)?(r=M,je++):(r=n,0===Ne&&He(V)),r!==n){if(i=[],(a=ft())===n&&(Z.test(e.charAt(je))?(a=e.charAt(je),je++):(a=n,0===Ne&&He(U))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(Z.test(e.charAt(je))?(a=e.charAt(je),je++):(a=n,0===Ne&&He(U)));else i=n;i!==n?(39===e.charCodeAt(je)?(a=M,je++):(a=n,0===Ne&&He(V)),a!==n?t=r=[r,i,a]:(je=t,t=n)):(je=t,t=n)}else je=t,t=n;if(t===n)if(t=[],(r=ft())===n&&(B.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(G))),r!==n)for(;r!==n;)t.push(r),(r=ft())===n&&(B.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(G)));else t=n;return t}function it(){var t,r;if(t=[],H.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(K)),r!==n)for(;r!==n;)t.push(r),H.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(K));else t=n;return t}function at(){var t,r,i,a,o,u,s;return t=je,ct()!==n&&(r=yt())!==n&&ct()!==n?(123===e.charCodeAt(je)?(i=y,je++):(i=n,0===Ne&&He(v)),i!==n?(_e=je,vt.push("select"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(je)?(o=b,je++):(o=n,0===Ne&&He(A)),o!==n?(_e=t,u=r,s=a,vt.pop(),t=p({id:u,value:s},At())):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n),t}function ot(){var t,r,i,a,o,u,s;return t=je,ct()!==n&&(r=function(){var t,r,i,a;return t=je,r=je,61===e.charCodeAt(je)?(i="=",je++):(i=n,0===Ne&&He(ae)),i!==n&&(a=lt())!==n?r=i=[i,a]:(je=r,r=n),(t=r!==n?e.substring(t,je):r)===n&&(t=yt()),t}())!==n&&ct()!==n?(123===e.charCodeAt(je)?(i=y,je++):(i=n,0===Ne&&He(v)),i!==n?(_e=je,vt.push("plural"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(je)?(o=b,je++):(o=n,0===Ne&&He(A)),o!==n?(_e=t,u=r,s=a,vt.pop(),t=p({id:u,value:s},At())):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n),t}function ut(){var t;return Ne++,ue.test(e.charAt(je))?(t=e.charAt(je),je++):(t=n,0===Ne&&He(se)),Ne--,t===n&&0===Ne&&He(oe),t}function st(){var t;return Ne++,le.test(e.charAt(je))?(t=e.charAt(je),je++):(t=n,0===Ne&&He(fe)),Ne--,t===n&&0===Ne&&He(ce),t}function ct(){var t,r,i;for(Ne++,t=je,r=[],i=ut();i!==n;)r.push(i),i=ut();return t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(pe)),t}function lt(){var t,r,i,a,o;return Ne++,t=je,45===e.charCodeAt(je)?(r="-",je++):(r=n,0===Ne&&He(me)),r===n&&(r=null),r!==n&&(i=dt())!==n?(_e=t,a=r,t=r=(o=i)?a?-o:o:0):(je=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(he)),t}function ft(){var t,r;return Ne++,t=je,e.substr(je,2)===ye?(r=ye,je+=2):(r=n,0===Ne&&He(ve)),r!==n&&(_e=t,r="'"),Ne--,(t=r)===n&&(r=n,0===Ne&&He(de)),t}function pt(){var t,r,i,a,o,u;if(t=je,39===e.charCodeAt(je)?(r=M,je++):(r=n,0===Ne&&He(V)),r!==n)if((i=function(){var t,r,i,a;t=je,r=je,e.length>je?(i=e.charAt(je),je++):(i=n,0===Ne&&He(D));i!==n?(_e=je,(a=(a="<"===(o=i)||">"===o||"{"===o||"}"===o||bt()&&"#"===o)?void 0:n)!==n?r=i=[i,a]:(je=r,r=n)):(je=r,r=n);var o;t=r!==n?e.substring(t,je):r;return t}())!==n){for(a=je,o=[],e.substr(je,2)===ye?(u=ye,je+=2):(u=n,0===Ne&&He(ve)),u===n&&(Z.test(e.charAt(je))?(u=e.charAt(je),je++):(u=n,0===Ne&&He(U)));u!==n;)o.push(u),e.substr(je,2)===ye?(u=ye,je+=2):(u=n,0===Ne&&He(ve)),u===n&&(Z.test(e.charAt(je))?(u=e.charAt(je),je++):(u=n,0===Ne&&He(U)));(a=o!==n?e.substring(a,je):o)!==n?(39===e.charCodeAt(je)?(o=M,je++):(o=n,0===Ne&&He(V)),o===n&&(o=null),o!==n?(_e=t,t=r=i+a.replace("''","'")):(je=t,t=n)):(je=t,t=n)}else je=t,t=n;else je=t,t=n;return t}function ht(){var t,r,i,a;return t=je,r=je,e.length>je?(i=e.charAt(je),je++):(i=n,0===Ne&&He(D)),i!==n?(_e=je,(a=(a=be(i))?void 0:n)!==n?r=i=[i,a]:(je=r,r=n)):(je=r,r=n),r===n&&(10===e.charCodeAt(je)?(r="\n",je++):(r=n,0===Ne&&He(Ae))),t=r!==n?e.substring(t,je):r}function gt(){var t,r;return Ne++,t=je,(r=dt())===n&&(r=yt()),t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(we)),t}function mt(){var t,r;return Ne++,t=je,(r=dt())===n&&(r=function(){var t,r,i,a,o;Ne++,t=je,r=[],45===e.charCodeAt(je)?(i=ge,je++):(i=n,0===Ne&&He(me));i===n&&(i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n));if(i!==n)for(;i!==n;)r.push(i),45===e.charCodeAt(je)?(i=ge,je++):(i=n,0===Ne&&He(me)),i===n&&(i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n));else r=n;t=r!==n?e.substring(t,je):r;Ne--,t===n&&(r=n,0===Ne&&He(Se));return t}()),t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(Ce)),t}function dt(){var t,r,i,a,o;if(Ne++,t=je,48===e.charCodeAt(je)?(r="0",je++):(r=n,0===Ne&&He(De)),r!==n&&(_e=t,r=0),(t=r)===n){if(t=je,r=je,Ee.test(e.charAt(je))?(i=e.charAt(je),je++):(i=n,0===Ne&&He(ke)),i!==n){for(a=[],Oe.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(Fe));o!==n;)a.push(o),Oe.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(Fe));a!==n?r=i=[i,a]:(je=r,r=n)}else je=r,r=n;r!==n&&(_e=t,r=parseInt(r.join(""),10)),t=r}return Ne--,t===n&&(r=n,0===Ne&&He(xe)),t}function yt(){var t,r,i,a,o;if(Ne++,t=je,r=[],i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n),i!==n)for(;i!==n;)r.push(i),i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n);else r=n;return t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(Ie)),t}var vt=["root"];function bt(){return"plural"===vt[vt.length-1]}function At(){return t&&t.captureLocation?{location:Re()}:{}}var wt,Ct,xt,Dt=t&&t.ignoreTag,Et=t&&t.shouldParseSkeleton;if((r=a())!==n&&je===e.length)return r;throw r!==n&&je<e.length&&He({type:"end"}),wt=Pe,Ct=ze<e.length?e.charAt(ze):null,xt=ze<e.length?Ge(ze,ze+1):Ge(ze,ze),new P(P.buildMessage(wt,Ct),wt,Ct,xt)},L=/(^|[^\\])#/g;function R(e){e.forEach((function(e){(A(e)||b(e))&&Object.keys(e.options).forEach((function(t){for(var r,n=e.options[t],i=-1,a=void 0,o=0;o<n.value.length;o++){var u=n.value[o];if(g(u)&&L.test(u.value)){i=o,a=u;break}}if(a){var s=a.value.replace(L,"$1{"+e.value+", number}"),c=N(s);(r=n.value).splice.apply(r,h([i,1],c))}R(n.value)}))}))}function M(e,t){t=p({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=N(e,t);return t.normalizeHashtagInPlural&&R(r),r}function V(e,t,r,n){var i,a=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function Z(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}function U(e,t,r,n,i){return r.bind(t,e,n,i)}function B(e,t){return U(e,this,1===e.length?V:Z,t.cache.create(),t.serializer)}function G(){return JSON.stringify(arguments)}function H(){this.cache=Object.create(null)}H.prototype.has=function(e){return e in this.cache},H.prototype.get=function(e){return this.cache[e]},H.prototype.set=function(e,t){this.cache[e]=t};var K={create:function(){return new H}};module.exports=function(e,t){var r=t&&t.cache?t.cache:K,n=t&&t.serializer?t.serializer:G;return(t&&t.strategy?t.strategy:B)(e,{cache:r,serializer:n})},module.exports.strategies={variadic:function(e,t){return U(e,this,Z,t.cache.create(),t.serializer)},monadic:function(e,t){return U(e,this,V,t.cache.create(),t.serializer)}};var $,W=Object.freeze({__proto__:null});!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}($||($={}));var q,J=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return c(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Q=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",i)||this}return c(t,e),t}(J),X=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return c(t,e),t}(J),Y=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return c(t,e),t}(J);function ee(e){return"function"==typeof e}function te(e,t,r,n,i,a,o){if(1===e.length&&g(e[0]))return[{type:0,value:e[0].value}];for(var u=[],s=0,c=e;s<c.length;s++){var l=c[s];if(g(l))u.push({type:0,value:l.value});else if(w(l))"number"==typeof a&&u.push({type:0,value:r.getNumberFormat(t).format(a)});else{var f=l.value;if(!i||!(f in i))throw new Y(f,o);var p=i[f];if(m(l))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),u.push({type:"string"==typeof p?0:1,value:p});else if(y(l)){var h="string"==typeof l.style?n.date[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(v(l)){h="string"==typeof l.style?n.time[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(d(l)){(h="string"==typeof l.style?n.number[l.style]:x(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),u.push({type:0,value:r.getNumberFormat(t,h).format(p)})}else{if(C(l)){var E=l.children,k=l.value,O=i[k];if(!ee(O))throw new X(k,"function",o);var F=O(te(E,t,r,n,i,a).map((function(e){return e.value})));Array.isArray(F)||(F=[F]),u.push.apply(u,F.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(b(l)){if(!(I=l.options[p]||l.options.other))throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i))}else if(A(l)){var I;if(!(I=l.options["="+p])){if(!Intl.PluralRules)throw new J('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",o);var S=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));I=l.options[S]||l.options.other}if(!I)throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i,p-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(u)}function re(e,t){return t?Object.keys(e).reduce((function(r,n){var i,a;return r[n]=(i=e[n],(a=t[n])?p(p(p({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=p(p({},i[t]),a[t]||{}),e}),{})):i),r}),p({},e)):e}function ne(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(q||(q={}));var ie=W;var ae=function(){function e(t,r,n,i){var a,o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return te(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=re(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,h([void 0],t)))}),{cache:ne(a.pluralRules),strategy:ie.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=M,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var oe=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,a,s;return r=t,(a=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return o.call(u.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,s=i.bindI18nStore,c=i.memoize;e.IntlMessageFormat=ae,e.ICU=this,c&&(a&&e.on(a,(function(){return r.clearCache()})),s&&e.store.on(s,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,a,o){var u,s,c,l,f=o&&o.resolved&&o.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(a.replace(/\./g,"###"));this.options.memoize&&(u=function(e,t){var r=i(e,t),n=r.obj,a=r.k;if(n)return n[a]}(this.mem,p));try{return u||(u=new ae(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!o||f)&&(s=this.mem,c=u,(l=i(s,p,Object)).obj[l.k]=c)),u.format(t)}catch(r){return this.options.parseErrorHandler(r,a,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}])&&e(r.prototype,a),s&&e(r,s),t}();return oe.type="i18nFormat",oe})); | ||
define((function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=n(o.shift());!e[s]&&r&&(e[s]=new r),e=e[s]}return i()?{}:{obj:e,k:n(o.shift())}}var o=[],s=o.forEach,h=o.slice;var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c,l,p,f=function(){return f=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},f.apply(this,arguments)};function E(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 m(e){return e.type===l.literal}function b(e){return e.type===l.argument}function g(e){return e.type===l.number}function y(e){return e.type===l.date}function H(e){return e.type===l.time}function v(e){return e.type===l.select}function T(e){return e.type===l.plural}function B(e){return e.type===l.pound}function _(e){return e.type===l.tag}function d(e){return!(!e||"object"!=typeof e||e.type!==p.number)}function A(e){return!(!e||"object"!=typeof e||e.type!==p.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(c||(c={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(p||(p={}));var P=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(e){var t={};return e.replace(L,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var N=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,R=/^(0+)$/;function M(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(C,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function G(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!R.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function w(e){var t=U(e);return t||{}}function D(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=f(f(f({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"engineering":t=f(f(f({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(O,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(R.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(I.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(I,(function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=f(f({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=f(f({},t),M(o)))}else if(C.test(i.stem))t=f(f({},t),M(i.stem));else{var s=U(i.stem);s&&(t=f(f({},t),s));var h=G(i.stem);h&&(t=f(f({},t),h))}}return t}var F,k={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function V(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(k[r||""]||k[n||""]||k["".concat(n,"-001")]||k["001"])[0]}var X=new RegExp("^".concat(P.source,"*")),j=new RegExp("".concat(P.source,"*$"));function K(e,t){return{start:e,end:t}}var x=!!String.prototype.startsWith,Y=!!String.fromCodePoint,Z=!!Object.fromEntries,z=!!String.prototype.codePointAt,W=!!String.prototype.trimStart,Q=!!String.prototype.trimEnd,J=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(F=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===F?void 0:F[0])}catch(e){q=!1}var $,ee=x?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},te=Y?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},re=Z?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},ne=z?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},ie=W?function(e){return e.trimStart()}:function(e){return e.replace(X,"")},oe=Q?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function se(e,t){return new RegExp(e,t)}if(q){var he=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var r;return he.lastIndex=t,null!==(r=he.exec(e)[1])&&void 0!==r?r:""}}else $=function(e,t){for(var r=[];;){var n=ne(e,t);if(void 0===n||ce(n)||le(n))break;r.push(n),t+=n>=65536?2:1}return te.apply(void 0,r)};var ae=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(c.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ue(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:l.pound,location:K(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(n,"/>"),location:K(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ue(this.char()))return this.error(c.INVALID_TAG,K(s,this.clonePosition()));var h=this.clonePosition();return n!==this.parseTagName()?this.error(c.UNMATCHED_CLOSING_TAG,K(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:n,children:o,location:K(r,this.clonePosition())},err:null}:this.error(c.INVALID_TAG,K(s,this.clonePosition())))}return this.error(c.UNCLOSED_TAG,K(r,this.clonePosition()))}return this.error(c.INVALID_TAG,K(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=K(r,this.clonePosition());return{val:{type:l.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return te.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),te(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(c.EMPTY_ARGUMENT,K(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:n,location:K(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(c.EXPECT_ARGUMENT_TYPE,K(o,h));case"number":case"date":case"time":this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(g=oe(T.val)).length)return this.error(c.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));a={style:g,styleLocation:K(u,this.clonePosition())}}if((B=this.tryParseArgumentClose(n)).err)return B;var E=K(n,this.clonePosition());if(a&&ee(null==a?void 0:a.style,"::",0)){var m=ie(a.style.slice(2));if("number"===s)return(T=this.parseNumberSkeletonFromString(m,a.styleLocation)).err?T:{val:{type:l.number,value:r,location:E,style:T.val},err:null};if(0===m.length)return this.error(c.EXPECT_DATE_TIME_SKELETON,E);var b=m;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),h=o<2?1:3+(o>>1),a=V(t);for("H"!=a&&"k"!=a||(h=0);h-- >0;)r+="a";for(;s-- >0;)r=a+r}else r+="J"===i?"H":i}return r}(m,this.locale));var g={type:p.dateTime,pattern:b,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?S(b):{}};return{val:{type:"date"===s?l.date:l.time,value:r,location:E,style:g},err:null}}return{val:{type:"number"===s?l.number:"date"===s?l.date:l.time,value:r,location:E,style:null!==(i=null==a?void 0:a.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(c.EXPECT_SELECT_ARGUMENT_OPTIONS,K(y,f({},y)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),v=0;if("select"!==s&&"offset"===H.value){if(!this.bumpIf(":"))return this.error(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),H=this.parseIdentifierIfPossible(),v=T.val}var B,_=this.tryParsePluralOrSelectOptions(e,s,t,H);if(_.err)return _;if((B=this.tryParseArgumentClose(n)).err)return B;var d=K(n,this.clonePosition());return"select"===s?{val:{type:l.select,value:r,options:re(_.val),location:d},err:null}:{val:{type:l.plural,value:r,options:re(_.val),offset:v,pluralType:"plural"===s?"cardinal":"ordinal",location:d},err:null};default:return this.error(c.INVALID_ARGUMENT_TYPE,K(o,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,K(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(N).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),h=0,a=s;h<a.length;h++)if(0===a[h].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(c.INVALID_NUMBER_SKELETON,t)}return{val:{type:p.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?D(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],h=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_SELECTOR,c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=K(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(h.has(a))return this.error("select"===t?c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(e+1,t,r);if(E.err)return E;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([a,{value:E.val,location:K(f,this.clonePosition())}]),h.add(a),this.bumpSpace(),a=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR:c.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(c.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var h=K(n,this.clonePosition());return i?J(o*=r)?{val:o,err:null}:this.error(t,h):this.error(e,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ne(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ee(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ue(e){return e>=97&&e<=122||e>=65&&e<=90}function ce(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function pe(e){e.forEach((function(e){if(delete e.location,v(e)||T(e))for(var t in e.options)delete e.options[t].location,pe(e.options[t].value);else g(e)&&d(e.style)||(y(e)||H(e))&&A(e.style)?delete e.style.location:_(e)&&pe(e.children)}))}function fe(e,t){void 0===t&&(t={}),t=f({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ae(e,t).parse();if(r.err){var n=SyntaxError(c[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||pe(r.val),r.val}function Ee(e,t){var r=t&&t.cache?t.cache:Be,n=t&&t.serializer?t.serializer:He;return(t&&t.strategy?t.strategy:ye)(e,{cache:r,serializer:n})}function me(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function be(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ge(e,t,r,n,i){return r.bind(t,e,n,i)}function ye(e,t){return ge(e,this,1===e.length?me:be,t.cache.create(),t.serializer)}var He=function(){return JSON.stringify(arguments)};function ve(){this.cache=Object.create(null)}ve.prototype.get=function(e){return this.cache[e]},ve.prototype.set=function(e,t){this.cache[e]=t};var Te,Be={create:function(){return new ve}},_e={variadic:function(e,t){return ge(e,this,be,t.cache.create(),t.serializer)},monadic:function(e,t){return ge(e,this,me,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var de,Ae=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return u(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Pe=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return u(t,e),t}(Ae),Le=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Te.INVALID_VALUE,n)||this}return u(t,e),t}(Ae),Se=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Te.MISSING_VALUE,r)||this}return u(t,e),t}(Ae);function Ne(e){return"function"==typeof e}function Ie(e,t,r,n,i,o,s){if(1===e.length&&m(e[0]))return[{type:de.literal,value:e[0].value}];for(var h=[],a=0,u=e;a<u.length;a++){var c=u[a];if(m(c))h.push({type:de.literal,value:c.value});else if(B(c))"number"==typeof o&&h.push({type:de.literal,value:r.getNumberFormat(t).format(o)});else{var l=c.value;if(!i||!(l in i))throw new Se(l,s);var p=i[l];if(b(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),h.push({type:"string"==typeof p?de.literal:de.object,value:p});else if(y(c)){var f="string"==typeof c.style?n.date[c.style]:A(c.style)?c.style.parsedOptions:void 0;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(H(c)){f="string"==typeof c.style?n.time[c.style]:A(c.style)?c.style.parsedOptions:n.time.medium;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(g(c)){(f="string"==typeof c.style?n.number[c.style]:d(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),h.push({type:de.literal,value:r.getNumberFormat(t,f).format(p)})}else{if(_(c)){var E=c.children,P=c.value,L=i[P];if(!Ne(L))throw new Le(P,"function",s);var S=L(Ie(E,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(S)||(S=[S]),h.push.apply(h,S.map((function(e){return{type:"string"==typeof e?de.literal:de.object,value:e}})))}if(v(c)){if(!(N=c.options[p]||c.options.other))throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i))}else if(T(c)){var N;if(!(N=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ae('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Te.MISSING_INTL_API,s);var I=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));N=c.options[I]||c.options.other}if(!N)throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===de.literal&&t.type===de.literal?r.value+=t.value:e.push(t),e}),[])}(h)}function Ce(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?f(f(f({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=f(f({},i[t]),o[t]||{}),e}),{})):i),r}),f({},e)):e}function Oe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(de||(de={}));var Re=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===de.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Ie(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ce(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.number),strategy:_e.variadic}),getDateTimeFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.dateTime),strategy:_e.variadic}),getPluralRules:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.pluralRules),strategy:_e.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=fe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Me=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,o,a;return r=t,o=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return s.call(h.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,o=i.bindI18n,a=i.bindI18nStore,u=i.memoize;e.IntlMessageFormat=Re,e.ICU=this,u&&(o&&e.on(o,(function(){return r.clearCache()})),a&&e.store.on(a,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,o,s){var h,a,u,c,l=s&&s.resolved&&s.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(h=function(e,t){var r=i(e,t),n=r.obj,o=r.k;if(n)return n[o]}(this.mem,p));try{return h||(h=new Re(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!s||l)&&(a=this.mem,u=h,(c=i(a,p,Object)).obj[c.k]=u)),h.format(t)}catch(r){return this.options.parseErrorHandler(r,o,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}],o&&e(r.prototype,o),a&&e(r,a),t}();return Me.type="i18nFormat",Me})); |
@@ -1,16 +0,1 @@ | ||
var i18nextICU=function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=n(a.shift());!e[o]&&r&&(e[o]=new r),e=e[o]}return i()?{}:{obj:e,k:n(a.shift())}}var a=[],o=a.forEach,u=a.slice; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l,f,p=function(){return(p=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}).apply(this,arguments)};function h(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,u=a.length;o<u;o++,i++)n[i]=a[o];return n}function g(e){return e.type===l.literal}function m(e){return e.type===l.argument}function d(e){return e.type===l.number}function v(e){return e.type===l.date}function y(e){return e.type===l.time}function b(e){return e.type===l.select}function A(e){return e.type===l.plural}function w(e){return e.type===l.pound}function C(e){return e.type===l.tag}function x(e){return!(!e||"object"!=typeof e||0!==e.type)}function D(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(f||(f={}));var E=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?$/g,F=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function S(e){var t={};return e.replace(O,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function j(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!I.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function T(e){var t=j(e);return t||{}}function z(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=p(p(p({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return p(p({},e),T(t))}),{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return p(p({},e),T(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(F,(function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(k.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(k,(function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=p(p({},t),S(i.options[0])))}else if(O.test(i.stem))t=p(p({},t),S(i.stem));else{var a=j(i.stem);a&&(t=p(p({},t),a));var o=_(i.stem);o&&(t=p(p({},t),o))}}return t}var P=function(e){function t(r,n,i,a){var o=e.call(this)||this;return o.message=r,o.expected=n,o.found=i,o.location=a,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return c(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(((o=t)?'"'+n(o)+'"':"end of input")+" found.");var o},t}(Error);var N=function(e,t){t=void 0!==t?t:{};var r,n={},i={start:Ke},a=Ke,o="<",u=Ve("<",!1),s=function(e){return e.join("")},c=Ve("#",!1),f=Ze("tagElement"),h=Ve("/>",!1),g=Ve(">",!1),m=Ve("</",!1),d=Ze("argumentElement"),v="{",y=Ve("{",!1),b="}",A=Ve("}",!1),w=Ze("numberSkeletonId"),C=/^['\/{}]/,x=Ue(["'","/","{","}"],!1,!1),D={type:"any"},k=Ze("numberSkeletonTokenOption"),O=Ve("/",!1),F=Ze("numberSkeletonToken"),I="::",S=Ve("::",!1),j=function(e){return yt.pop(),e.replace(/\s*$/,"")},_=",",T=Ve(",",!1),N="number",L=Ve("number",!1),R=function(e,t,r){return p({type:"number"===t?l.number:"date"===t?l.date:l.time,style:r&&r[2],value:e},At())},M="'",V=Ve("'",!1),U=/^[^']/,Z=Ue(["'"],!0,!1),B=/^[^a-zA-Z'{}]/,G=Ue([["a","z"],["A","Z"],"'","{","}"],!0,!1),H=/^[a-zA-Z]/,K=Ue([["a","z"],["A","Z"]],!1,!1),$="date",W=Ve("date",!1),q="time",J=Ve("time",!1),Q="plural",X=Ve("plural",!1),Y="selectordinal",ee=Ve("selectordinal",!1),te="offset:",re=Ve("offset:",!1),ne="select",ie=Ve("select",!1),ae=Ve("=",!1),oe=Ze("whitespace"),ue=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,se=Ue([["\t","\r"]," "," "," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),ce=Ze("syntax pattern"),le=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,fe=Ue([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),pe=Ze("optional whitespace"),he=Ze("number"),ge="-",me=Ve("-",!1),de=Ze("double apostrophes"),ve="''",ye=Ve("''",!1),be=function(e){return!("<"===e||"{"===e||bt()&&"#"===e||yt.length>1&&"}"===e)},Ae=Ve("\n",!1),we=Ze("argNameOrNumber"),Ce=Ze("validTag"),xe=Ze("argNumber"),De=Ve("0",!1),Ee=/^[1-9]/,ke=Ue([["1","9"]],!1,!1),Oe=/^[0-9]/,Fe=Ue([["0","9"]],!1,!1),Ie=Ze("argName"),Se=Ze("tagName"),je=0,_e=0,Te=[{line:1,column:1}],ze=0,Pe=[],Ne=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function Le(){return e.substring(_e,je)}function Re(){return Ge(_e,je)}function Me(e,t){throw function(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:Ge(_e,je))}function Ve(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ue(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ze(e){return{type:"other",description:e}}function Be(t){var r,n=Te[t];if(n)return n;for(r=t-1;!Te[r];)r--;for(n={line:(n=Te[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Te[t]=n,n}function Ge(e,t){var r=Be(e),n=Be(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function He(e){je<ze||(je>ze&&(ze=je,Pe=[]),Pe.push(e))}function Ke(){return $e()}function $e(){var e,t;for(e=[],t=We();t!==n;)e.push(t),t=We();return e}function We(){var t,r;return t=je,_e=je,(!Dt?void 0:n)!==n&&(r=function(){var e,t,r,i;Ne++,(e=Qe())===n&&(e=je,(t=Xe())!==n&&(r=$e())!==n&&(i=Ye())!==n?(_e=e,o=r,(a=t)!==(u=i)&&Me('Mismatch tag "'+a+'" !== "'+u+'"',Re()),e=t=p({type:l.tag,value:a,children:o},At())):(je=e,e=n));var a,o,u;Ne--,e===n&&(t=n,0===Ne&&He(f));return e}())!==n?(_e=t,t=r):(je=t,t=n),t===n&&(t=function(){var e,t;e=je,(t=qe())!==n&&(_e=e,r=t,t=p({type:l.literal,value:r},At()));var r;return e=t}())===n&&(t=function(){var t,r,i,a;Ne++,t=je,123===e.charCodeAt(je)?(r=v,je++):(r=n,0===Ne&&He(y));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(125===e.charCodeAt(je)?(a=b,je++):(a=n,0===Ne&&He(A)),a!==n?(_e=t,o=i,t=r=p({type:l.argument,value:o},At())):(je=t,t=n)):(je=t,t=n);var o;Ne--,t===n&&(r=n,0===Ne&&He(d));return t}())===n&&(t=function(){var t;(t=function(){var t,r,i,a,o,u,s,c,l;t=je,123===e.charCodeAt(je)?(r=v,je++):(r=n,0===Ne&&He(y));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n&&ct()!==n?(e.substr(je,6)===N?(o=N,je+=6):(o=n,0===Ne&&He(L)),o!==n&&ct()!==n?(u=je,44===e.charCodeAt(je)?(s=_,je++):(s=n,0===Ne&&He(T)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=je,e.substr(je,2)===I?(r=I,je+=2):(r=n,0===Ne&&He(S));r!==n&&(i=function(){var e,t,r;if(e=je,t=[],(r=rt())!==n)for(;r!==n;)t.push(r),r=rt();else t=n;t!==n&&(_e=e,t=p({type:0,tokens:i=t,parsedOptions:Et?z(i):{}},At()));var i;return e=t}())!==n?(_e=t,t=r=i):(je=t,t=n);t===n&&(t=je,_e=je,yt.push("numberArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(_e=t,t=r=j(i)):(je=t,t=n));return t}())!==n?u=s=[s,c,l]:(je=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(je)?(c=b,je++):(c=n,0===Ne&&He(A)),c!==n?(_e=t,t=r=R(i,o,u)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n);return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,l;t=je,123===e.charCodeAt(je)?(r=v,je++):(r=n,0===Ne&&He(y));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n&&ct()!==n?(e.substr(je,4)===$?(o=$,je+=4):(o=n,0===Ne&&He(W)),o===n&&(e.substr(je,4)===q?(o=q,je+=4):(o=n,0===Ne&&He(J))),o!==n&&ct()!==n?(u=je,44===e.charCodeAt(je)?(s=_,je++):(s=n,0===Ne&&He(T)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=je,e.substr(je,2)===I?(r=I,je+=2):(r=n,0===Ne&&He(S));r!==n&&(i=function(){var t,r,i,a;t=je,r=je,i=[],(a=nt())===n&&(a=it());if(a!==n)for(;a!==n;)i.push(a),(a=nt())===n&&(a=it());else i=n;r=i!==n?e.substring(r,je):i;r!==n&&(_e=t,r=p({type:1,pattern:o=r,parsedOptions:Et?(u=o,s={},u.replace(E,(function(e){var t=e.length;switch(e[0]){case"G":s.era=4===t?"long":5===t?"narrow":"short";break;case"y":s.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":s.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":s.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":s.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"a":s.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":s.hourCycle="h12",s.hour=["numeric","2-digit"][t-1];break;case"H":s.hourCycle="h23",s.hour=["numeric","2-digit"][t-1];break;case"K":s.hourCycle="h11",s.hour=["numeric","2-digit"][t-1];break;case"k":s.hourCycle="h24",s.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":s.minute=["numeric","2-digit"][t-1];break;case"s":s.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":s.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),s):{}},At()));var o,u,s;return t=r}())!==n?(_e=t,t=r=i):(je=t,t=n);t===n&&(t=je,_e=je,yt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(_e=t,t=r=j(i)):(je=t,t=n));return t}())!==n?u=s=[s,c,l]:(je=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(je)?(c=b,je++):(c=n,0===Ne&&He(A)),c!==n?(_e=t,t=r=R(i,o,u)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n);return t}());return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f,h,g;t=je,123===e.charCodeAt(je)?(r=v,je++):(r=n,0===Ne&&He(y));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n)if(ct()!==n)if(e.substr(je,6)===Q?(o=Q,je+=6):(o=n,0===Ne&&He(X)),o===n&&(e.substr(je,13)===Y?(o=Y,je+=13):(o=n,0===Ne&&He(ee))),o!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(u=_,je++):(u=n,0===Ne&&He(T)),u!==n)if(ct()!==n)if(s=je,e.substr(je,7)===te?(c=te,je+=7):(c=n,0===Ne&&He(re)),c!==n&&(f=ct())!==n&&(h=lt())!==n?s=c=[c,f,h]:(je=s,s=n),s===n&&(s=null),s!==n)if((c=ct())!==n){if(f=[],(h=ot())!==n)for(;h!==n;)f.push(h),h=ot();else f=n;f!==n&&(h=ct())!==n?(125===e.charCodeAt(je)?(g=b,je++):(g=n,0===Ne&&He(A)),g!==n?(_e=t,t=r=function(e,t,r,n){return p({type:l.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in plural element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,o,s,f)):(je=t,t=n)):(je=t,t=n)}else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f;t=je,123===e.charCodeAt(je)?(r=v,je++):(r=n,0===Ne&&He(y));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(a=_,je++):(a=n,0===Ne&&He(T)),a!==n)if(ct()!==n)if(e.substr(je,6)===ne?(o=ne,je+=6):(o=n,0===Ne&&He(ie)),o!==n)if(ct()!==n)if(44===e.charCodeAt(je)?(u=_,je++):(u=n,0===Ne&&He(T)),u!==n)if(ct()!==n){if(s=[],(c=at())!==n)for(;c!==n;)s.push(c),c=at();else s=n;s!==n&&(c=ct())!==n?(125===e.charCodeAt(je)?(f=b,je++):(f=n,0===Ne&&He(A)),f!==n?(_e=t,t=r=function(e,t){return p({type:l.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in select element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,s)):(je=t,t=n)):(je=t,t=n)}else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;else je=t,t=n;return t}())===n&&(t=function(){var t,r;t=je,35===e.charCodeAt(je)?(r="#",je++):(r=n,0===Ne&&He(c));r!==n&&(_e=t,r=p({type:l.pound},At()));return t=r}()),t}function qe(){var t,r,i,a;if(t=je,_e=je,(r=(r=Dt)?void 0:n)!==n){if(i=[],(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(je)?(a=o,je++):(a=n,0===Ne&&He(u))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(je)?(a=o,je++):(a=n,0===Ne&&He(u)));else i=n;i!==n?(_e=t,t=r=s(i)):(je=t,t=n)}else je=t,t=n;if(t===n){if(t=je,r=[],(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je()),i!==n)for(;i!==n;)r.push(i),(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je());else r=n;r!==n&&(_e=t,r=s(r)),t=r}return t}function Je(){var t,r,i;return t=je,r=je,Ne++,(i=Xe())===n&&(i=Ye())===n&&(i=Qe()),Ne--,i===n?r=void 0:(je=r,r=n),r!==n?(60===e.charCodeAt(je)?(i=o,je++):(i=n,0===Ne&&He(u)),i!==n?(_e=t,t=r="<"):(je=t,t=n)):(je=t,t=n),t}function Qe(){var t,r,i,a,s,c,f;return t=je,r=je,60===e.charCodeAt(je)?(i=o,je++):(i=n,0===Ne&&He(u)),i!==n&&(a=mt())!==n&&(s=ct())!==n?("/>"===e.substr(je,2)?(c="/>",je+=2):(c=n,0===Ne&&He(h)),c!==n?r=i=[i,a,s,c]:(je=r,r=n)):(je=r,r=n),r!==n&&(_e=t,f=r,r=p({type:l.literal,value:f.join("")},At())),t=r}function Xe(){var t,r,i,a;return t=je,60===e.charCodeAt(je)?(r=o,je++):(r=n,0===Ne&&He(u)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(je)?(a=">",je++):(a=n,0===Ne&&He(g)),a!==n?(_e=t,t=r=i):(je=t,t=n)):(je=t,t=n),t}function Ye(){var t,r,i,a;return t=je,"</"===e.substr(je,2)?(r="</",je+=2):(r=n,0===Ne&&He(m)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(je)?(a=">",je++):(a=n,0===Ne&&He(g)),a!==n?(_e=t,t=r=i):(je=t,t=n)):(je=t,t=n),t}function et(){var t,r,i,a,o;if(Ne++,t=je,r=[],i=je,a=je,Ne++,(o=ut())===n&&(C.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(x))),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n),i!==n)for(;i!==n;)r.push(i),i=je,a=je,Ne++,(o=ut())===n&&(C.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(x))),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n);else r=n;return t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(w)),t}function tt(){var t,r,i;return Ne++,t=je,47===e.charCodeAt(je)?(r="/",je++):(r=n,0===Ne&&He(O)),r!==n&&(i=et())!==n?(_e=t,t=r=i):(je=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(k)),t}function rt(){var e,t,r,i;if(Ne++,e=je,ct()!==n)if((t=et())!==n){for(r=[],i=tt();i!==n;)r.push(i),i=tt();r!==n?(_e=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(je=e,e=n)}else je=e,e=n;else je=e,e=n;return Ne--,e===n&&(n,0===Ne&&He(F)),e}function nt(){var t,r,i,a;if(t=je,39===e.charCodeAt(je)?(r=M,je++):(r=n,0===Ne&&He(V)),r!==n){if(i=[],(a=ft())===n&&(U.test(e.charAt(je))?(a=e.charAt(je),je++):(a=n,0===Ne&&He(Z))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(U.test(e.charAt(je))?(a=e.charAt(je),je++):(a=n,0===Ne&&He(Z)));else i=n;i!==n?(39===e.charCodeAt(je)?(a=M,je++):(a=n,0===Ne&&He(V)),a!==n?t=r=[r,i,a]:(je=t,t=n)):(je=t,t=n)}else je=t,t=n;if(t===n)if(t=[],(r=ft())===n&&(B.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(G))),r!==n)for(;r!==n;)t.push(r),(r=ft())===n&&(B.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(G)));else t=n;return t}function it(){var t,r;if(t=[],H.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(K)),r!==n)for(;r!==n;)t.push(r),H.test(e.charAt(je))?(r=e.charAt(je),je++):(r=n,0===Ne&&He(K));else t=n;return t}function at(){var t,r,i,a,o,u,s;return t=je,ct()!==n&&(r=vt())!==n&&ct()!==n?(123===e.charCodeAt(je)?(i=v,je++):(i=n,0===Ne&&He(y)),i!==n?(_e=je,yt.push("select"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(je)?(o=b,je++):(o=n,0===Ne&&He(A)),o!==n?(_e=t,u=r,s=a,yt.pop(),t=p({id:u,value:s},At())):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n),t}function ot(){var t,r,i,a,o,u,s;return t=je,ct()!==n&&(r=function(){var t,r,i,a;return t=je,r=je,61===e.charCodeAt(je)?(i="=",je++):(i=n,0===Ne&&He(ae)),i!==n&&(a=lt())!==n?r=i=[i,a]:(je=r,r=n),(t=r!==n?e.substring(t,je):r)===n&&(t=vt()),t}())!==n&&ct()!==n?(123===e.charCodeAt(je)?(i=v,je++):(i=n,0===Ne&&He(y)),i!==n?(_e=je,yt.push("plural"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(je)?(o=b,je++):(o=n,0===Ne&&He(A)),o!==n?(_e=t,u=r,s=a,yt.pop(),t=p({id:u,value:s},At())):(je=t,t=n)):(je=t,t=n)):(je=t,t=n)):(je=t,t=n),t}function ut(){var t;return Ne++,ue.test(e.charAt(je))?(t=e.charAt(je),je++):(t=n,0===Ne&&He(se)),Ne--,t===n&&0===Ne&&He(oe),t}function st(){var t;return Ne++,le.test(e.charAt(je))?(t=e.charAt(je),je++):(t=n,0===Ne&&He(fe)),Ne--,t===n&&0===Ne&&He(ce),t}function ct(){var t,r,i;for(Ne++,t=je,r=[],i=ut();i!==n;)r.push(i),i=ut();return t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(pe)),t}function lt(){var t,r,i,a,o;return Ne++,t=je,45===e.charCodeAt(je)?(r="-",je++):(r=n,0===Ne&&He(me)),r===n&&(r=null),r!==n&&(i=dt())!==n?(_e=t,a=r,t=r=(o=i)?a?-o:o:0):(je=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(he)),t}function ft(){var t,r;return Ne++,t=je,e.substr(je,2)===ve?(r=ve,je+=2):(r=n,0===Ne&&He(ye)),r!==n&&(_e=t,r="'"),Ne--,(t=r)===n&&(r=n,0===Ne&&He(de)),t}function pt(){var t,r,i,a,o,u;if(t=je,39===e.charCodeAt(je)?(r=M,je++):(r=n,0===Ne&&He(V)),r!==n)if((i=function(){var t,r,i,a;t=je,r=je,e.length>je?(i=e.charAt(je),je++):(i=n,0===Ne&&He(D));i!==n?(_e=je,(a=(a="<"===(o=i)||">"===o||"{"===o||"}"===o||bt()&&"#"===o)?void 0:n)!==n?r=i=[i,a]:(je=r,r=n)):(je=r,r=n);var o;t=r!==n?e.substring(t,je):r;return t}())!==n){for(a=je,o=[],e.substr(je,2)===ve?(u=ve,je+=2):(u=n,0===Ne&&He(ye)),u===n&&(U.test(e.charAt(je))?(u=e.charAt(je),je++):(u=n,0===Ne&&He(Z)));u!==n;)o.push(u),e.substr(je,2)===ve?(u=ve,je+=2):(u=n,0===Ne&&He(ye)),u===n&&(U.test(e.charAt(je))?(u=e.charAt(je),je++):(u=n,0===Ne&&He(Z)));(a=o!==n?e.substring(a,je):o)!==n?(39===e.charCodeAt(je)?(o=M,je++):(o=n,0===Ne&&He(V)),o===n&&(o=null),o!==n?(_e=t,t=r=i+a.replace("''","'")):(je=t,t=n)):(je=t,t=n)}else je=t,t=n;else je=t,t=n;return t}function ht(){var t,r,i,a;return t=je,r=je,e.length>je?(i=e.charAt(je),je++):(i=n,0===Ne&&He(D)),i!==n?(_e=je,(a=(a=be(i))?void 0:n)!==n?r=i=[i,a]:(je=r,r=n)):(je=r,r=n),r===n&&(10===e.charCodeAt(je)?(r="\n",je++):(r=n,0===Ne&&He(Ae))),t=r!==n?e.substring(t,je):r}function gt(){var t,r;return Ne++,t=je,(r=dt())===n&&(r=vt()),t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(we)),t}function mt(){var t,r;return Ne++,t=je,(r=dt())===n&&(r=function(){var t,r,i,a,o;Ne++,t=je,r=[],45===e.charCodeAt(je)?(i=ge,je++):(i=n,0===Ne&&He(me));i===n&&(i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n));if(i!==n)for(;i!==n;)r.push(i),45===e.charCodeAt(je)?(i=ge,je++):(i=n,0===Ne&&He(me)),i===n&&(i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n));else r=n;t=r!==n?e.substring(t,je):r;Ne--,t===n&&(r=n,0===Ne&&He(Se));return t}()),t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(Ce)),t}function dt(){var t,r,i,a,o;if(Ne++,t=je,48===e.charCodeAt(je)?(r="0",je++):(r=n,0===Ne&&He(De)),r!==n&&(_e=t,r=0),(t=r)===n){if(t=je,r=je,Ee.test(e.charAt(je))?(i=e.charAt(je),je++):(i=n,0===Ne&&He(ke)),i!==n){for(a=[],Oe.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(Fe));o!==n;)a.push(o),Oe.test(e.charAt(je))?(o=e.charAt(je),je++):(o=n,0===Ne&&He(Fe));a!==n?r=i=[i,a]:(je=r,r=n)}else je=r,r=n;r!==n&&(_e=t,r=parseInt(r.join(""),10)),t=r}return Ne--,t===n&&(r=n,0===Ne&&He(xe)),t}function vt(){var t,r,i,a,o;if(Ne++,t=je,r=[],i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n),i!==n)for(;i!==n;)r.push(i),i=je,a=je,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(je=a,a=n),a!==n?(e.length>je?(o=e.charAt(je),je++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(je=i,i=n)):(je=i,i=n);else r=n;return t=r!==n?e.substring(t,je):r,Ne--,t===n&&(r=n,0===Ne&&He(Ie)),t}var yt=["root"];function bt(){return"plural"===yt[yt.length-1]}function At(){return t&&t.captureLocation?{location:Re()}:{}}var wt,Ct,xt,Dt=t&&t.ignoreTag,Et=t&&t.shouldParseSkeleton;if((r=a())!==n&&je===e.length)return r;throw r!==n&&je<e.length&&He({type:"end"}),wt=Pe,Ct=ze<e.length?e.charAt(ze):null,xt=ze<e.length?Ge(ze,ze+1):Ge(ze,ze),new P(P.buildMessage(wt,Ct),wt,Ct,xt)},L=/(^|[^\\])#/g;function R(e){e.forEach((function(e){(A(e)||b(e))&&Object.keys(e.options).forEach((function(t){for(var r,n=e.options[t],i=-1,a=void 0,o=0;o<n.value.length;o++){var u=n.value[o];if(g(u)&&L.test(u.value)){i=o,a=u;break}}if(a){var s=a.value.replace(L,"$1{"+e.value+", number}"),c=N(s);(r=n.value).splice.apply(r,h([i,1],c))}R(n.value)}))}))}function M(e,t){t=p({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=N(e,t);return t.normalizeHashtagInPlural&&R(r),r}function V(e,t,r,n){var i,a=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function U(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}function Z(e,t,r,n,i){return r.bind(t,e,n,i)}function B(e,t){return Z(e,this,1===e.length?V:U,t.cache.create(),t.serializer)}function G(){return JSON.stringify(arguments)}function H(){this.cache=Object.create(null)}H.prototype.has=function(e){return e in this.cache},H.prototype.get=function(e){return this.cache[e]},H.prototype.set=function(e,t){this.cache[e]=t};var K={create:function(){return new H}};module.exports=function(e,t){var r=t&&t.cache?t.cache:K,n=t&&t.serializer?t.serializer:G;return(t&&t.strategy?t.strategy:B)(e,{cache:r,serializer:n})},module.exports.strategies={variadic:function(e,t){return Z(e,this,U,t.cache.create(),t.serializer)},monadic:function(e,t){return Z(e,this,V,t.cache.create(),t.serializer)}};var $,W=Object.freeze({__proto__:null});!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}($||($={}));var q,J=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return c(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Q=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",i)||this}return c(t,e),t}(J),X=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return c(t,e),t}(J),Y=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return c(t,e),t}(J);function ee(e){return"function"==typeof e}function te(e,t,r,n,i,a,o){if(1===e.length&&g(e[0]))return[{type:0,value:e[0].value}];for(var u=[],s=0,c=e;s<c.length;s++){var l=c[s];if(g(l))u.push({type:0,value:l.value});else if(w(l))"number"==typeof a&&u.push({type:0,value:r.getNumberFormat(t).format(a)});else{var f=l.value;if(!i||!(f in i))throw new Y(f,o);var p=i[f];if(m(l))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),u.push({type:"string"==typeof p?0:1,value:p});else if(v(l)){var h="string"==typeof l.style?n.date[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(y(l)){h="string"==typeof l.style?n.time[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(d(l)){(h="string"==typeof l.style?n.number[l.style]:x(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),u.push({type:0,value:r.getNumberFormat(t,h).format(p)})}else{if(C(l)){var E=l.children,k=l.value,O=i[k];if(!ee(O))throw new X(k,"function",o);var F=O(te(E,t,r,n,i,a).map((function(e){return e.value})));Array.isArray(F)||(F=[F]),u.push.apply(u,F.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(b(l)){if(!(I=l.options[p]||l.options.other))throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i))}else if(A(l)){var I;if(!(I=l.options["="+p])){if(!Intl.PluralRules)throw new J('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",o);var S=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));I=l.options[S]||l.options.other}if(!I)throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i,p-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(u)}function re(e,t){return t?Object.keys(e).reduce((function(r,n){var i,a;return r[n]=(i=e[n],(a=t[n])?p(p(p({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=p(p({},i[t]),a[t]||{}),e}),{})):i),r}),p({},e)):e}function ne(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(q||(q={}));var ie=W;var ae=function(){function e(t,r,n,i){var a,o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return te(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=re(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,h([void 0],t)))}),{cache:ne(a.pluralRules),strategy:ie.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=M,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var oe=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,a,s;return r=t,(a=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return o.call(u.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,s=i.bindI18nStore,c=i.memoize;e.IntlMessageFormat=ae,e.ICU=this,c&&(a&&e.on(a,(function(){return r.clearCache()})),s&&e.store.on(s,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,a,o){var u,s,c,l,f=o&&o.resolved&&o.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(a.replace(/\./g,"###"));this.options.memoize&&(u=function(e,t){var r=i(e,t),n=r.obj,a=r.k;if(n)return n[a]}(this.mem,p));try{return u||(u=new ae(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!o||f)&&(s=this.mem,c=u,(l=i(s,p,Object)).obj[l.k]=c)),u.format(t)}catch(r){return this.options.parseErrorHandler(r,a,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}])&&e(r.prototype,a),s&&e(r,s),t}();return oe.type="i18nFormat",oe}(); | ||
var i18nextICU=function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=n(o.shift());!e[s]&&r&&(e[s]=new r),e=e[s]}return i()?{}:{obj:e,k:n(o.shift())}}var o=[],s=o.forEach,h=o.slice;var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c,l,p,f=function(){return f=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},f.apply(this,arguments)};function E(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 m(e){return e.type===l.literal}function b(e){return e.type===l.argument}function g(e){return e.type===l.number}function y(e){return e.type===l.date}function H(e){return e.type===l.time}function v(e){return e.type===l.select}function T(e){return e.type===l.plural}function B(e){return e.type===l.pound}function _(e){return e.type===l.tag}function d(e){return!(!e||"object"!=typeof e||e.type!==p.number)}function A(e){return!(!e||"object"!=typeof e||e.type!==p.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(c||(c={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(p||(p={}));var P=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(e){var t={};return e.replace(L,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var N=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,R=/^(0+)$/;function M(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(C,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function G(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!R.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function w(e){var t=U(e);return t||{}}function D(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=f(f(f({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"engineering":t=f(f(f({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(O,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(R.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(I.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(I,(function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=f(f({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=f(f({},t),M(o)))}else if(C.test(i.stem))t=f(f({},t),M(i.stem));else{var s=U(i.stem);s&&(t=f(f({},t),s));var h=G(i.stem);h&&(t=f(f({},t),h))}}return t}var F,k={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function V(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(k[r||""]||k[n||""]||k["".concat(n,"-001")]||k["001"])[0]}var X=new RegExp("^".concat(P.source,"*")),j=new RegExp("".concat(P.source,"*$"));function K(e,t){return{start:e,end:t}}var x=!!String.prototype.startsWith,Y=!!String.fromCodePoint,Z=!!Object.fromEntries,z=!!String.prototype.codePointAt,W=!!String.prototype.trimStart,Q=!!String.prototype.trimEnd,J=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(F=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===F?void 0:F[0])}catch(e){q=!1}var $,ee=x?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},te=Y?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},re=Z?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},ne=z?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},ie=W?function(e){return e.trimStart()}:function(e){return e.replace(X,"")},oe=Q?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function se(e,t){return new RegExp(e,t)}if(q){var he=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var r;return he.lastIndex=t,null!==(r=he.exec(e)[1])&&void 0!==r?r:""}}else $=function(e,t){for(var r=[];;){var n=ne(e,t);if(void 0===n||ce(n)||le(n))break;r.push(n),t+=n>=65536?2:1}return te.apply(void 0,r)};var ae=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(c.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ue(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:l.pound,location:K(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(n,"/>"),location:K(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ue(this.char()))return this.error(c.INVALID_TAG,K(s,this.clonePosition()));var h=this.clonePosition();return n!==this.parseTagName()?this.error(c.UNMATCHED_CLOSING_TAG,K(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:n,children:o,location:K(r,this.clonePosition())},err:null}:this.error(c.INVALID_TAG,K(s,this.clonePosition())))}return this.error(c.UNCLOSED_TAG,K(r,this.clonePosition()))}return this.error(c.INVALID_TAG,K(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=K(r,this.clonePosition());return{val:{type:l.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return te.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),te(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(c.EMPTY_ARGUMENT,K(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:n,location:K(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(c.EXPECT_ARGUMENT_TYPE,K(o,h));case"number":case"date":case"time":this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(g=oe(T.val)).length)return this.error(c.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));a={style:g,styleLocation:K(u,this.clonePosition())}}if((B=this.tryParseArgumentClose(n)).err)return B;var E=K(n,this.clonePosition());if(a&&ee(null==a?void 0:a.style,"::",0)){var m=ie(a.style.slice(2));if("number"===s)return(T=this.parseNumberSkeletonFromString(m,a.styleLocation)).err?T:{val:{type:l.number,value:r,location:E,style:T.val},err:null};if(0===m.length)return this.error(c.EXPECT_DATE_TIME_SKELETON,E);var b=m;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),h=o<2?1:3+(o>>1),a=V(t);for("H"!=a&&"k"!=a||(h=0);h-- >0;)r+="a";for(;s-- >0;)r=a+r}else r+="J"===i?"H":i}return r}(m,this.locale));var g={type:p.dateTime,pattern:b,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?S(b):{}};return{val:{type:"date"===s?l.date:l.time,value:r,location:E,style:g},err:null}}return{val:{type:"number"===s?l.number:"date"===s?l.date:l.time,value:r,location:E,style:null!==(i=null==a?void 0:a.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(c.EXPECT_SELECT_ARGUMENT_OPTIONS,K(y,f({},y)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),v=0;if("select"!==s&&"offset"===H.value){if(!this.bumpIf(":"))return this.error(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),H=this.parseIdentifierIfPossible(),v=T.val}var B,_=this.tryParsePluralOrSelectOptions(e,s,t,H);if(_.err)return _;if((B=this.tryParseArgumentClose(n)).err)return B;var d=K(n,this.clonePosition());return"select"===s?{val:{type:l.select,value:r,options:re(_.val),location:d},err:null}:{val:{type:l.plural,value:r,options:re(_.val),offset:v,pluralType:"plural"===s?"cardinal":"ordinal",location:d},err:null};default:return this.error(c.INVALID_ARGUMENT_TYPE,K(o,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,K(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(N).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),h=0,a=s;h<a.length;h++)if(0===a[h].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(c.INVALID_NUMBER_SKELETON,t)}return{val:{type:p.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?D(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],h=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_SELECTOR,c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=K(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(h.has(a))return this.error("select"===t?c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(e+1,t,r);if(E.err)return E;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([a,{value:E.val,location:K(f,this.clonePosition())}]),h.add(a),this.bumpSpace(),a=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR:c.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(c.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var h=K(n,this.clonePosition());return i?J(o*=r)?{val:o,err:null}:this.error(t,h):this.error(e,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ne(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ee(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ue(e){return e>=97&&e<=122||e>=65&&e<=90}function ce(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function pe(e){e.forEach((function(e){if(delete e.location,v(e)||T(e))for(var t in e.options)delete e.options[t].location,pe(e.options[t].value);else g(e)&&d(e.style)||(y(e)||H(e))&&A(e.style)?delete e.style.location:_(e)&&pe(e.children)}))}function fe(e,t){void 0===t&&(t={}),t=f({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ae(e,t).parse();if(r.err){var n=SyntaxError(c[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||pe(r.val),r.val}function Ee(e,t){var r=t&&t.cache?t.cache:Be,n=t&&t.serializer?t.serializer:He;return(t&&t.strategy?t.strategy:ye)(e,{cache:r,serializer:n})}function me(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function be(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ge(e,t,r,n,i){return r.bind(t,e,n,i)}function ye(e,t){return ge(e,this,1===e.length?me:be,t.cache.create(),t.serializer)}var He=function(){return JSON.stringify(arguments)};function ve(){this.cache=Object.create(null)}ve.prototype.get=function(e){return this.cache[e]},ve.prototype.set=function(e,t){this.cache[e]=t};var Te,Be={create:function(){return new ve}},_e={variadic:function(e,t){return ge(e,this,be,t.cache.create(),t.serializer)},monadic:function(e,t){return ge(e,this,me,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var de,Ae=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return u(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Pe=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return u(t,e),t}(Ae),Le=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Te.INVALID_VALUE,n)||this}return u(t,e),t}(Ae),Se=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Te.MISSING_VALUE,r)||this}return u(t,e),t}(Ae);function Ne(e){return"function"==typeof e}function Ie(e,t,r,n,i,o,s){if(1===e.length&&m(e[0]))return[{type:de.literal,value:e[0].value}];for(var h=[],a=0,u=e;a<u.length;a++){var c=u[a];if(m(c))h.push({type:de.literal,value:c.value});else if(B(c))"number"==typeof o&&h.push({type:de.literal,value:r.getNumberFormat(t).format(o)});else{var l=c.value;if(!i||!(l in i))throw new Se(l,s);var p=i[l];if(b(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),h.push({type:"string"==typeof p?de.literal:de.object,value:p});else if(y(c)){var f="string"==typeof c.style?n.date[c.style]:A(c.style)?c.style.parsedOptions:void 0;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(H(c)){f="string"==typeof c.style?n.time[c.style]:A(c.style)?c.style.parsedOptions:n.time.medium;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(g(c)){(f="string"==typeof c.style?n.number[c.style]:d(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),h.push({type:de.literal,value:r.getNumberFormat(t,f).format(p)})}else{if(_(c)){var E=c.children,P=c.value,L=i[P];if(!Ne(L))throw new Le(P,"function",s);var S=L(Ie(E,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(S)||(S=[S]),h.push.apply(h,S.map((function(e){return{type:"string"==typeof e?de.literal:de.object,value:e}})))}if(v(c)){if(!(N=c.options[p]||c.options.other))throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i))}else if(T(c)){var N;if(!(N=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ae('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Te.MISSING_INTL_API,s);var I=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));N=c.options[I]||c.options.other}if(!N)throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===de.literal&&t.type===de.literal?r.value+=t.value:e.push(t),e}),[])}(h)}function Ce(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?f(f(f({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=f(f({},i[t]),o[t]||{}),e}),{})):i),r}),f({},e)):e}function Oe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(de||(de={}));var Re=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===de.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Ie(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ce(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.number),strategy:_e.variadic}),getDateTimeFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.dateTime),strategy:_e.variadic}),getPluralRules:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.pluralRules),strategy:_e.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=fe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Me=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,o,a;return r=t,o=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return s.call(h.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,o=i.bindI18n,a=i.bindI18nStore,u=i.memoize;e.IntlMessageFormat=Re,e.ICU=this,u&&(o&&e.on(o,(function(){return r.clearCache()})),a&&e.store.on(a,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,o,s){var h,a,u,c,l=s&&s.resolved&&s.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(h=function(e,t){var r=i(e,t),n=r.obj,o=r.k;if(n)return n[o]}(this.mem,p));try{return h||(h=new Re(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!s||l)&&(a=this.mem,u=h,(c=i(a,p,Object)).obj[c.k]=u)),h.format(t)}catch(r){return this.options.parseErrorHandler(r,o,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}],o&&e(r.prototype,o),a&&e(r,a),t}();return Me.type="i18nFormat",Me}(); |
@@ -1,16 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).i18nextICU=t()}(this,(function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=n(a.shift());!e[o]&&r&&(e[o]=new r),e=e[o]}return i()?{}:{obj:e,k:n(a.shift())}}var a=[],o=a.forEach,u=a.slice; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l,f,p=function(){return(p=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}).apply(this,arguments)};function h(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,u=a.length;o<u;o++,i++)n[i]=a[o];return n}function g(e){return e.type===l.literal}function m(e){return e.type===l.argument}function d(e){return e.type===l.number}function y(e){return e.type===l.date}function v(e){return e.type===l.time}function b(e){return e.type===l.select}function A(e){return e.type===l.plural}function w(e){return e.type===l.pound}function x(e){return e.type===l.tag}function C(e){return!(!e||"object"!=typeof e||0!==e.type)}function D(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(f||(f={}));var E=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?$/g,F=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function j(e){var t={};return e.replace(O,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function S(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function T(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!I.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _(e){var t=S(e);return t||{}}function z(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=p(p(p({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return p(p({},e),_(t))}),{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return p(p({},e),_(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(F,(function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(k.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(k,(function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=p(p({},t),j(i.options[0])))}else if(O.test(i.stem))t=p(p({},t),j(i.stem));else{var a=S(i.stem);a&&(t=p(p({},t),a));var o=T(i.stem);o&&(t=p(p({},t),o))}}return t}var P=function(e){function t(r,n,i,a){var o=e.call(this)||this;return o.message=r,o.expected=n,o.found=i,o.location=a,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return c(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(((o=t)?'"'+n(o)+'"':"end of input")+" found.");var o},t}(Error);var N=function(e,t){t=void 0!==t?t:{};var r,n={},i={start:Ke},a=Ke,o="<",u=Ve("<",!1),s=function(e){return e.join("")},c=Ve("#",!1),f=Ze("tagElement"),h=Ve("/>",!1),g=Ve(">",!1),m=Ve("</",!1),d=Ze("argumentElement"),y="{",v=Ve("{",!1),b="}",A=Ve("}",!1),w=Ze("numberSkeletonId"),x=/^['\/{}]/,C=Ue(["'","/","{","}"],!1,!1),D={type:"any"},k=Ze("numberSkeletonTokenOption"),O=Ve("/",!1),F=Ze("numberSkeletonToken"),I="::",j=Ve("::",!1),S=function(e){return vt.pop(),e.replace(/\s*$/,"")},T=",",_=Ve(",",!1),N="number",L=Ve("number",!1),R=function(e,t,r){return p({type:"number"===t?l.number:"date"===t?l.date:l.time,style:r&&r[2],value:e},At())},M="'",V=Ve("'",!1),U=/^[^']/,Z=Ue(["'"],!0,!1),B=/^[^a-zA-Z'{}]/,G=Ue([["a","z"],["A","Z"],"'","{","}"],!0,!1),H=/^[a-zA-Z]/,K=Ue([["a","z"],["A","Z"]],!1,!1),$="date",W=Ve("date",!1),q="time",J=Ve("time",!1),Q="plural",X=Ve("plural",!1),Y="selectordinal",ee=Ve("selectordinal",!1),te="offset:",re=Ve("offset:",!1),ne="select",ie=Ve("select",!1),ae=Ve("=",!1),oe=Ze("whitespace"),ue=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,se=Ue([["\t","\r"]," "," "," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),ce=Ze("syntax pattern"),le=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,fe=Ue([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),pe=Ze("optional whitespace"),he=Ze("number"),ge="-",me=Ve("-",!1),de=Ze("double apostrophes"),ye="''",ve=Ve("''",!1),be=function(e){return!("<"===e||"{"===e||bt()&&"#"===e||vt.length>1&&"}"===e)},Ae=Ve("\n",!1),we=Ze("argNameOrNumber"),xe=Ze("validTag"),Ce=Ze("argNumber"),De=Ve("0",!1),Ee=/^[1-9]/,ke=Ue([["1","9"]],!1,!1),Oe=/^[0-9]/,Fe=Ue([["0","9"]],!1,!1),Ie=Ze("argName"),je=Ze("tagName"),Se=0,Te=0,_e=[{line:1,column:1}],ze=0,Pe=[],Ne=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function Le(){return e.substring(Te,Se)}function Re(){return Ge(Te,Se)}function Me(e,t){throw function(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:Ge(Te,Se))}function Ve(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ue(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ze(e){return{type:"other",description:e}}function Be(t){var r,n=_e[t];if(n)return n;for(r=t-1;!_e[r];)r--;for(n={line:(n=_e[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return _e[t]=n,n}function Ge(e,t){var r=Be(e),n=Be(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function He(e){Se<ze||(Se>ze&&(ze=Se,Pe=[]),Pe.push(e))}function Ke(){return $e()}function $e(){var e,t;for(e=[],t=We();t!==n;)e.push(t),t=We();return e}function We(){var t,r;return t=Se,Te=Se,(!Dt?void 0:n)!==n&&(r=function(){var e,t,r,i;Ne++,(e=Qe())===n&&(e=Se,(t=Xe())!==n&&(r=$e())!==n&&(i=Ye())!==n?(Te=e,o=r,(a=t)!==(u=i)&&Me('Mismatch tag "'+a+'" !== "'+u+'"',Re()),e=t=p({type:l.tag,value:a,children:o},At())):(Se=e,e=n));var a,o,u;Ne--,e===n&&(t=n,0===Ne&&He(f));return e}())!==n?(Te=t,t=r):(Se=t,t=n),t===n&&(t=function(){var e,t;e=Se,(t=qe())!==n&&(Te=e,r=t,t=p({type:l.literal,value:r},At()));var r;return e=t}())===n&&(t=function(){var t,r,i,a;Ne++,t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(125===e.charCodeAt(Se)?(a=b,Se++):(a=n,0===Ne&&He(A)),a!==n?(Te=t,o=i,t=r=p({type:l.argument,value:o},At())):(Se=t,t=n)):(Se=t,t=n);var o;Ne--,t===n&&(r=n,0===Ne&&He(d));return t}())===n&&(t=function(){var t;(t=function(){var t,r,i,a,o,u,s,c,l;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n&&ct()!==n?(e.substr(Se,6)===N?(o=N,Se+=6):(o=n,0===Ne&&He(L)),o!==n&&ct()!==n?(u=Se,44===e.charCodeAt(Se)?(s=T,Se++):(s=n,0===Ne&&He(_)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=Se,e.substr(Se,2)===I?(r=I,Se+=2):(r=n,0===Ne&&He(j));r!==n&&(i=function(){var e,t,r;if(e=Se,t=[],(r=rt())!==n)for(;r!==n;)t.push(r),r=rt();else t=n;t!==n&&(Te=e,t=p({type:0,tokens:i=t,parsedOptions:Et?z(i):{}},At()));var i;return e=t}())!==n?(Te=t,t=r=i):(Se=t,t=n);t===n&&(t=Se,Te=Se,vt.push("numberArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(Te=t,t=r=S(i)):(Se=t,t=n));return t}())!==n?u=s=[s,c,l]:(Se=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(Se)?(c=b,Se++):(c=n,0===Ne&&He(A)),c!==n?(Te=t,t=r=R(i,o,u)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n);return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,l;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n&&ct()!==n?(e.substr(Se,4)===$?(o=$,Se+=4):(o=n,0===Ne&&He(W)),o===n&&(e.substr(Se,4)===q?(o=q,Se+=4):(o=n,0===Ne&&He(J))),o!==n&&ct()!==n?(u=Se,44===e.charCodeAt(Se)?(s=T,Se++):(s=n,0===Ne&&He(_)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=Se,e.substr(Se,2)===I?(r=I,Se+=2):(r=n,0===Ne&&He(j));r!==n&&(i=function(){var t,r,i,a;t=Se,r=Se,i=[],(a=nt())===n&&(a=it());if(a!==n)for(;a!==n;)i.push(a),(a=nt())===n&&(a=it());else i=n;r=i!==n?e.substring(r,Se):i;r!==n&&(Te=t,r=p({type:1,pattern:o=r,parsedOptions:Et?(u=o,s={},u.replace(E,(function(e){var t=e.length;switch(e[0]){case"G":s.era=4===t?"long":5===t?"narrow":"short";break;case"y":s.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":s.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":s.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":s.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"a":s.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":s.hourCycle="h12",s.hour=["numeric","2-digit"][t-1];break;case"H":s.hourCycle="h23",s.hour=["numeric","2-digit"][t-1];break;case"K":s.hourCycle="h11",s.hour=["numeric","2-digit"][t-1];break;case"k":s.hourCycle="h24",s.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":s.minute=["numeric","2-digit"][t-1];break;case"s":s.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":s.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),s):{}},At()));var o,u,s;return t=r}())!==n?(Te=t,t=r=i):(Se=t,t=n);t===n&&(t=Se,Te=Se,vt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(Te=t,t=r=S(i)):(Se=t,t=n));return t}())!==n?u=s=[s,c,l]:(Se=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(Se)?(c=b,Se++):(c=n,0===Ne&&He(A)),c!==n?(Te=t,t=r=R(i,o,u)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n);return t}());return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f,h,g;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n)if(ct()!==n)if(e.substr(Se,6)===Q?(o=Q,Se+=6):(o=n,0===Ne&&He(X)),o===n&&(e.substr(Se,13)===Y?(o=Y,Se+=13):(o=n,0===Ne&&He(ee))),o!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(u=T,Se++):(u=n,0===Ne&&He(_)),u!==n)if(ct()!==n)if(s=Se,e.substr(Se,7)===te?(c=te,Se+=7):(c=n,0===Ne&&He(re)),c!==n&&(f=ct())!==n&&(h=lt())!==n?s=c=[c,f,h]:(Se=s,s=n),s===n&&(s=null),s!==n)if((c=ct())!==n){if(f=[],(h=ot())!==n)for(;h!==n;)f.push(h),h=ot();else f=n;f!==n&&(h=ct())!==n?(125===e.charCodeAt(Se)?(g=b,Se++):(g=n,0===Ne&&He(A)),g!==n?(Te=t,t=r=function(e,t,r,n){return p({type:l.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in plural element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,o,s,f)):(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n)if(ct()!==n)if(e.substr(Se,6)===ne?(o=ne,Se+=6):(o=n,0===Ne&&He(ie)),o!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(u=T,Se++):(u=n,0===Ne&&He(_)),u!==n)if(ct()!==n){if(s=[],(c=at())!==n)for(;c!==n;)s.push(c),c=at();else s=n;s!==n&&(c=ct())!==n?(125===e.charCodeAt(Se)?(f=b,Se++):(f=n,0===Ne&&He(A)),f!==n?(Te=t,t=r=function(e,t){return p({type:l.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in select element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,s)):(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;return t}())===n&&(t=function(){var t,r;t=Se,35===e.charCodeAt(Se)?(r="#",Se++):(r=n,0===Ne&&He(c));r!==n&&(Te=t,r=p({type:l.pound},At()));return t=r}()),t}function qe(){var t,r,i,a;if(t=Se,Te=Se,(r=(r=Dt)?void 0:n)!==n){if(i=[],(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(Se)?(a=o,Se++):(a=n,0===Ne&&He(u))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(Se)?(a=o,Se++):(a=n,0===Ne&&He(u)));else i=n;i!==n?(Te=t,t=r=s(i)):(Se=t,t=n)}else Se=t,t=n;if(t===n){if(t=Se,r=[],(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je()),i!==n)for(;i!==n;)r.push(i),(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je());else r=n;r!==n&&(Te=t,r=s(r)),t=r}return t}function Je(){var t,r,i;return t=Se,r=Se,Ne++,(i=Xe())===n&&(i=Ye())===n&&(i=Qe()),Ne--,i===n?r=void 0:(Se=r,r=n),r!==n?(60===e.charCodeAt(Se)?(i=o,Se++):(i=n,0===Ne&&He(u)),i!==n?(Te=t,t=r="<"):(Se=t,t=n)):(Se=t,t=n),t}function Qe(){var t,r,i,a,s,c,f;return t=Se,r=Se,60===e.charCodeAt(Se)?(i=o,Se++):(i=n,0===Ne&&He(u)),i!==n&&(a=mt())!==n&&(s=ct())!==n?("/>"===e.substr(Se,2)?(c="/>",Se+=2):(c=n,0===Ne&&He(h)),c!==n?r=i=[i,a,s,c]:(Se=r,r=n)):(Se=r,r=n),r!==n&&(Te=t,f=r,r=p({type:l.literal,value:f.join("")},At())),t=r}function Xe(){var t,r,i,a;return t=Se,60===e.charCodeAt(Se)?(r=o,Se++):(r=n,0===Ne&&He(u)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(Se)?(a=">",Se++):(a=n,0===Ne&&He(g)),a!==n?(Te=t,t=r=i):(Se=t,t=n)):(Se=t,t=n),t}function Ye(){var t,r,i,a;return t=Se,"</"===e.substr(Se,2)?(r="</",Se+=2):(r=n,0===Ne&&He(m)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(Se)?(a=">",Se++):(a=n,0===Ne&&He(g)),a!==n?(Te=t,t=r=i):(Se=t,t=n)):(Se=t,t=n),t}function et(){var t,r,i,a,o;if(Ne++,t=Se,r=[],i=Se,a=Se,Ne++,(o=ut())===n&&(x.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(C))),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n),i!==n)for(;i!==n;)r.push(i),i=Se,a=Se,Ne++,(o=ut())===n&&(x.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(C))),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n);else r=n;return t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(w)),t}function tt(){var t,r,i;return Ne++,t=Se,47===e.charCodeAt(Se)?(r="/",Se++):(r=n,0===Ne&&He(O)),r!==n&&(i=et())!==n?(Te=t,t=r=i):(Se=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(k)),t}function rt(){var e,t,r,i;if(Ne++,e=Se,ct()!==n)if((t=et())!==n){for(r=[],i=tt();i!==n;)r.push(i),i=tt();r!==n?(Te=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(Se=e,e=n)}else Se=e,e=n;else Se=e,e=n;return Ne--,e===n&&(n,0===Ne&&He(F)),e}function nt(){var t,r,i,a;if(t=Se,39===e.charCodeAt(Se)?(r=M,Se++):(r=n,0===Ne&&He(V)),r!==n){if(i=[],(a=ft())===n&&(U.test(e.charAt(Se))?(a=e.charAt(Se),Se++):(a=n,0===Ne&&He(Z))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(U.test(e.charAt(Se))?(a=e.charAt(Se),Se++):(a=n,0===Ne&&He(Z)));else i=n;i!==n?(39===e.charCodeAt(Se)?(a=M,Se++):(a=n,0===Ne&&He(V)),a!==n?t=r=[r,i,a]:(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;if(t===n)if(t=[],(r=ft())===n&&(B.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(G))),r!==n)for(;r!==n;)t.push(r),(r=ft())===n&&(B.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(G)));else t=n;return t}function it(){var t,r;if(t=[],H.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(K)),r!==n)for(;r!==n;)t.push(r),H.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(K));else t=n;return t}function at(){var t,r,i,a,o,u,s;return t=Se,ct()!==n&&(r=yt())!==n&&ct()!==n?(123===e.charCodeAt(Se)?(i=y,Se++):(i=n,0===Ne&&He(v)),i!==n?(Te=Se,vt.push("select"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(Se)?(o=b,Se++):(o=n,0===Ne&&He(A)),o!==n?(Te=t,u=r,s=a,vt.pop(),t=p({id:u,value:s},At())):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n),t}function ot(){var t,r,i,a,o,u,s;return t=Se,ct()!==n&&(r=function(){var t,r,i,a;return t=Se,r=Se,61===e.charCodeAt(Se)?(i="=",Se++):(i=n,0===Ne&&He(ae)),i!==n&&(a=lt())!==n?r=i=[i,a]:(Se=r,r=n),(t=r!==n?e.substring(t,Se):r)===n&&(t=yt()),t}())!==n&&ct()!==n?(123===e.charCodeAt(Se)?(i=y,Se++):(i=n,0===Ne&&He(v)),i!==n?(Te=Se,vt.push("plural"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(Se)?(o=b,Se++):(o=n,0===Ne&&He(A)),o!==n?(Te=t,u=r,s=a,vt.pop(),t=p({id:u,value:s},At())):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n),t}function ut(){var t;return Ne++,ue.test(e.charAt(Se))?(t=e.charAt(Se),Se++):(t=n,0===Ne&&He(se)),Ne--,t===n&&0===Ne&&He(oe),t}function st(){var t;return Ne++,le.test(e.charAt(Se))?(t=e.charAt(Se),Se++):(t=n,0===Ne&&He(fe)),Ne--,t===n&&0===Ne&&He(ce),t}function ct(){var t,r,i;for(Ne++,t=Se,r=[],i=ut();i!==n;)r.push(i),i=ut();return t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(pe)),t}function lt(){var t,r,i,a,o;return Ne++,t=Se,45===e.charCodeAt(Se)?(r="-",Se++):(r=n,0===Ne&&He(me)),r===n&&(r=null),r!==n&&(i=dt())!==n?(Te=t,a=r,t=r=(o=i)?a?-o:o:0):(Se=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(he)),t}function ft(){var t,r;return Ne++,t=Se,e.substr(Se,2)===ye?(r=ye,Se+=2):(r=n,0===Ne&&He(ve)),r!==n&&(Te=t,r="'"),Ne--,(t=r)===n&&(r=n,0===Ne&&He(de)),t}function pt(){var t,r,i,a,o,u;if(t=Se,39===e.charCodeAt(Se)?(r=M,Se++):(r=n,0===Ne&&He(V)),r!==n)if((i=function(){var t,r,i,a;t=Se,r=Se,e.length>Se?(i=e.charAt(Se),Se++):(i=n,0===Ne&&He(D));i!==n?(Te=Se,(a=(a="<"===(o=i)||">"===o||"{"===o||"}"===o||bt()&&"#"===o)?void 0:n)!==n?r=i=[i,a]:(Se=r,r=n)):(Se=r,r=n);var o;t=r!==n?e.substring(t,Se):r;return t}())!==n){for(a=Se,o=[],e.substr(Se,2)===ye?(u=ye,Se+=2):(u=n,0===Ne&&He(ve)),u===n&&(U.test(e.charAt(Se))?(u=e.charAt(Se),Se++):(u=n,0===Ne&&He(Z)));u!==n;)o.push(u),e.substr(Se,2)===ye?(u=ye,Se+=2):(u=n,0===Ne&&He(ve)),u===n&&(U.test(e.charAt(Se))?(u=e.charAt(Se),Se++):(u=n,0===Ne&&He(Z)));(a=o!==n?e.substring(a,Se):o)!==n?(39===e.charCodeAt(Se)?(o=M,Se++):(o=n,0===Ne&&He(V)),o===n&&(o=null),o!==n?(Te=t,t=r=i+a.replace("''","'")):(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;else Se=t,t=n;return t}function ht(){var t,r,i,a;return t=Se,r=Se,e.length>Se?(i=e.charAt(Se),Se++):(i=n,0===Ne&&He(D)),i!==n?(Te=Se,(a=(a=be(i))?void 0:n)!==n?r=i=[i,a]:(Se=r,r=n)):(Se=r,r=n),r===n&&(10===e.charCodeAt(Se)?(r="\n",Se++):(r=n,0===Ne&&He(Ae))),t=r!==n?e.substring(t,Se):r}function gt(){var t,r;return Ne++,t=Se,(r=dt())===n&&(r=yt()),t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(we)),t}function mt(){var t,r;return Ne++,t=Se,(r=dt())===n&&(r=function(){var t,r,i,a,o;Ne++,t=Se,r=[],45===e.charCodeAt(Se)?(i=ge,Se++):(i=n,0===Ne&&He(me));i===n&&(i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n));if(i!==n)for(;i!==n;)r.push(i),45===e.charCodeAt(Se)?(i=ge,Se++):(i=n,0===Ne&&He(me)),i===n&&(i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n));else r=n;t=r!==n?e.substring(t,Se):r;Ne--,t===n&&(r=n,0===Ne&&He(je));return t}()),t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(xe)),t}function dt(){var t,r,i,a,o;if(Ne++,t=Se,48===e.charCodeAt(Se)?(r="0",Se++):(r=n,0===Ne&&He(De)),r!==n&&(Te=t,r=0),(t=r)===n){if(t=Se,r=Se,Ee.test(e.charAt(Se))?(i=e.charAt(Se),Se++):(i=n,0===Ne&&He(ke)),i!==n){for(a=[],Oe.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(Fe));o!==n;)a.push(o),Oe.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(Fe));a!==n?r=i=[i,a]:(Se=r,r=n)}else Se=r,r=n;r!==n&&(Te=t,r=parseInt(r.join(""),10)),t=r}return Ne--,t===n&&(r=n,0===Ne&&He(Ce)),t}function yt(){var t,r,i,a,o;if(Ne++,t=Se,r=[],i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n),i!==n)for(;i!==n;)r.push(i),i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n);else r=n;return t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(Ie)),t}var vt=["root"];function bt(){return"plural"===vt[vt.length-1]}function At(){return t&&t.captureLocation?{location:Re()}:{}}var wt,xt,Ct,Dt=t&&t.ignoreTag,Et=t&&t.shouldParseSkeleton;if((r=a())!==n&&Se===e.length)return r;throw r!==n&&Se<e.length&&He({type:"end"}),wt=Pe,xt=ze<e.length?e.charAt(ze):null,Ct=ze<e.length?Ge(ze,ze+1):Ge(ze,ze),new P(P.buildMessage(wt,xt),wt,xt,Ct)},L=/(^|[^\\])#/g;function R(e){e.forEach((function(e){(A(e)||b(e))&&Object.keys(e.options).forEach((function(t){for(var r,n=e.options[t],i=-1,a=void 0,o=0;o<n.value.length;o++){var u=n.value[o];if(g(u)&&L.test(u.value)){i=o,a=u;break}}if(a){var s=a.value.replace(L,"$1{"+e.value+", number}"),c=N(s);(r=n.value).splice.apply(r,h([i,1],c))}R(n.value)}))}))}function M(e,t){t=p({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=N(e,t);return t.normalizeHashtagInPlural&&R(r),r}function V(e,t,r,n){var i,a=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function U(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}function Z(e,t,r,n,i){return r.bind(t,e,n,i)}function B(e,t){return Z(e,this,1===e.length?V:U,t.cache.create(),t.serializer)}function G(){return JSON.stringify(arguments)}function H(){this.cache=Object.create(null)}H.prototype.has=function(e){return e in this.cache},H.prototype.get=function(e){return this.cache[e]},H.prototype.set=function(e,t){this.cache[e]=t};var K={create:function(){return new H}};module.exports=function(e,t){var r=t&&t.cache?t.cache:K,n=t&&t.serializer?t.serializer:G;return(t&&t.strategy?t.strategy:B)(e,{cache:r,serializer:n})},module.exports.strategies={variadic:function(e,t){return Z(e,this,U,t.cache.create(),t.serializer)},monadic:function(e,t){return Z(e,this,V,t.cache.create(),t.serializer)}};var $,W=Object.freeze({__proto__:null});!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}($||($={}));var q,J=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return c(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Q=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",i)||this}return c(t,e),t}(J),X=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return c(t,e),t}(J),Y=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return c(t,e),t}(J);function ee(e){return"function"==typeof e}function te(e,t,r,n,i,a,o){if(1===e.length&&g(e[0]))return[{type:0,value:e[0].value}];for(var u=[],s=0,c=e;s<c.length;s++){var l=c[s];if(g(l))u.push({type:0,value:l.value});else if(w(l))"number"==typeof a&&u.push({type:0,value:r.getNumberFormat(t).format(a)});else{var f=l.value;if(!i||!(f in i))throw new Y(f,o);var p=i[f];if(m(l))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),u.push({type:"string"==typeof p?0:1,value:p});else if(y(l)){var h="string"==typeof l.style?n.date[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(v(l)){h="string"==typeof l.style?n.time[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(d(l)){(h="string"==typeof l.style?n.number[l.style]:C(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),u.push({type:0,value:r.getNumberFormat(t,h).format(p)})}else{if(x(l)){var E=l.children,k=l.value,O=i[k];if(!ee(O))throw new X(k,"function",o);var F=O(te(E,t,r,n,i,a).map((function(e){return e.value})));Array.isArray(F)||(F=[F]),u.push.apply(u,F.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(b(l)){if(!(I=l.options[p]||l.options.other))throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i))}else if(A(l)){var I;if(!(I=l.options["="+p])){if(!Intl.PluralRules)throw new J('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",o);var j=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));I=l.options[j]||l.options.other}if(!I)throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i,p-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(u)}function re(e,t){return t?Object.keys(e).reduce((function(r,n){var i,a;return r[n]=(i=e[n],(a=t[n])?p(p(p({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=p(p({},i[t]),a[t]||{}),e}),{})):i),r}),p({},e)):e}function ne(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(q||(q={}));var ie=W;var ae=function(){function e(t,r,n,i){var a,o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return te(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=re(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,h([void 0],t)))}),{cache:ne(a.pluralRules),strategy:ie.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=M,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var oe=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,a,s;return r=t,(a=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return o.call(u.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,s=i.bindI18nStore,c=i.memoize;e.IntlMessageFormat=ae,e.ICU=this,c&&(a&&e.on(a,(function(){return r.clearCache()})),s&&e.store.on(s,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,a,o){var u,s,c,l,f=o&&o.resolved&&o.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(a.replace(/\./g,"###"));this.options.memoize&&(u=function(e,t){var r=i(e,t),n=r.obj,a=r.k;if(n)return n[a]}(this.mem,p));try{return u||(u=new ae(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!o||f)&&(s=this.mem,c=u,(l=i(s,p,Object)).obj[l.k]=c)),u.format(t)}catch(r){return this.options.parseErrorHandler(r,a,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}])&&e(r.prototype,a),s&&e(r,s),t}();return oe.type="i18nFormat",oe})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).i18nextICU=t()}(this,(function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=n(o.shift());!e[s]&&r&&(e[s]=new r),e=e[s]}return i()?{}:{obj:e,k:n(o.shift())}}var o=[],s=o.forEach,h=o.slice;var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c,l,p,f=function(){return f=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},f.apply(this,arguments)};function E(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 m(e){return e.type===l.literal}function b(e){return e.type===l.argument}function g(e){return e.type===l.number}function y(e){return e.type===l.date}function H(e){return e.type===l.time}function v(e){return e.type===l.select}function T(e){return e.type===l.plural}function B(e){return e.type===l.pound}function _(e){return e.type===l.tag}function d(e){return!(!e||"object"!=typeof e||e.type!==p.number)}function A(e){return!(!e||"object"!=typeof e||e.type!==p.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(c||(c={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(p||(p={}));var P=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(e){var t={};return e.replace(L,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var N=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,R=/^(0+)$/;function M(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(C,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function G(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!R.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function w(e){var t=U(e);return t||{}}function D(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=f(f(f({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"engineering":t=f(f(f({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(O,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(R.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(I.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(I,(function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=f(f({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=f(f({},t),M(o)))}else if(C.test(i.stem))t=f(f({},t),M(i.stem));else{var s=U(i.stem);s&&(t=f(f({},t),s));var h=G(i.stem);h&&(t=f(f({},t),h))}}return t}var F,k={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function V(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(k[r||""]||k[n||""]||k["".concat(n,"-001")]||k["001"])[0]}var X=new RegExp("^".concat(P.source,"*")),j=new RegExp("".concat(P.source,"*$"));function K(e,t){return{start:e,end:t}}var x=!!String.prototype.startsWith,Y=!!String.fromCodePoint,Z=!!Object.fromEntries,z=!!String.prototype.codePointAt,W=!!String.prototype.trimStart,Q=!!String.prototype.trimEnd,J=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(F=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===F?void 0:F[0])}catch(e){q=!1}var $,ee=x?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},te=Y?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},re=Z?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},ne=z?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},ie=W?function(e){return e.trimStart()}:function(e){return e.replace(X,"")},oe=Q?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function se(e,t){return new RegExp(e,t)}if(q){var he=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var r;return he.lastIndex=t,null!==(r=he.exec(e)[1])&&void 0!==r?r:""}}else $=function(e,t){for(var r=[];;){var n=ne(e,t);if(void 0===n||ce(n)||le(n))break;r.push(n),t+=n>=65536?2:1}return te.apply(void 0,r)};var ae=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(c.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ue(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:l.pound,location:K(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(n,"/>"),location:K(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ue(this.char()))return this.error(c.INVALID_TAG,K(s,this.clonePosition()));var h=this.clonePosition();return n!==this.parseTagName()?this.error(c.UNMATCHED_CLOSING_TAG,K(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:n,children:o,location:K(r,this.clonePosition())},err:null}:this.error(c.INVALID_TAG,K(s,this.clonePosition())))}return this.error(c.UNCLOSED_TAG,K(r,this.clonePosition()))}return this.error(c.INVALID_TAG,K(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=K(r,this.clonePosition());return{val:{type:l.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return te.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),te(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(c.EMPTY_ARGUMENT,K(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:n,location:K(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(c.EXPECT_ARGUMENT_TYPE,K(o,h));case"number":case"date":case"time":this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(g=oe(T.val)).length)return this.error(c.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));a={style:g,styleLocation:K(u,this.clonePosition())}}if((B=this.tryParseArgumentClose(n)).err)return B;var E=K(n,this.clonePosition());if(a&&ee(null==a?void 0:a.style,"::",0)){var m=ie(a.style.slice(2));if("number"===s)return(T=this.parseNumberSkeletonFromString(m,a.styleLocation)).err?T:{val:{type:l.number,value:r,location:E,style:T.val},err:null};if(0===m.length)return this.error(c.EXPECT_DATE_TIME_SKELETON,E);var b=m;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),h=o<2?1:3+(o>>1),a=V(t);for("H"!=a&&"k"!=a||(h=0);h-- >0;)r+="a";for(;s-- >0;)r=a+r}else r+="J"===i?"H":i}return r}(m,this.locale));var g={type:p.dateTime,pattern:b,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?S(b):{}};return{val:{type:"date"===s?l.date:l.time,value:r,location:E,style:g},err:null}}return{val:{type:"number"===s?l.number:"date"===s?l.date:l.time,value:r,location:E,style:null!==(i=null==a?void 0:a.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(c.EXPECT_SELECT_ARGUMENT_OPTIONS,K(y,f({},y)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),v=0;if("select"!==s&&"offset"===H.value){if(!this.bumpIf(":"))return this.error(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),H=this.parseIdentifierIfPossible(),v=T.val}var B,_=this.tryParsePluralOrSelectOptions(e,s,t,H);if(_.err)return _;if((B=this.tryParseArgumentClose(n)).err)return B;var d=K(n,this.clonePosition());return"select"===s?{val:{type:l.select,value:r,options:re(_.val),location:d},err:null}:{val:{type:l.plural,value:r,options:re(_.val),offset:v,pluralType:"plural"===s?"cardinal":"ordinal",location:d},err:null};default:return this.error(c.INVALID_ARGUMENT_TYPE,K(o,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,K(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(N).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),h=0,a=s;h<a.length;h++)if(0===a[h].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(c.INVALID_NUMBER_SKELETON,t)}return{val:{type:p.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?D(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],h=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_SELECTOR,c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=K(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(h.has(a))return this.error("select"===t?c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(e+1,t,r);if(E.err)return E;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([a,{value:E.val,location:K(f,this.clonePosition())}]),h.add(a),this.bumpSpace(),a=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR:c.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(c.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var h=K(n,this.clonePosition());return i?J(o*=r)?{val:o,err:null}:this.error(t,h):this.error(e,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ne(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ee(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ue(e){return e>=97&&e<=122||e>=65&&e<=90}function ce(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function pe(e){e.forEach((function(e){if(delete e.location,v(e)||T(e))for(var t in e.options)delete e.options[t].location,pe(e.options[t].value);else g(e)&&d(e.style)||(y(e)||H(e))&&A(e.style)?delete e.style.location:_(e)&&pe(e.children)}))}function fe(e,t){void 0===t&&(t={}),t=f({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ae(e,t).parse();if(r.err){var n=SyntaxError(c[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||pe(r.val),r.val}function Ee(e,t){var r=t&&t.cache?t.cache:Be,n=t&&t.serializer?t.serializer:He;return(t&&t.strategy?t.strategy:ye)(e,{cache:r,serializer:n})}function me(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function be(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ge(e,t,r,n,i){return r.bind(t,e,n,i)}function ye(e,t){return ge(e,this,1===e.length?me:be,t.cache.create(),t.serializer)}var He=function(){return JSON.stringify(arguments)};function ve(){this.cache=Object.create(null)}ve.prototype.get=function(e){return this.cache[e]},ve.prototype.set=function(e,t){this.cache[e]=t};var Te,Be={create:function(){return new ve}},_e={variadic:function(e,t){return ge(e,this,be,t.cache.create(),t.serializer)},monadic:function(e,t){return ge(e,this,me,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var de,Ae=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return u(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Pe=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return u(t,e),t}(Ae),Le=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Te.INVALID_VALUE,n)||this}return u(t,e),t}(Ae),Se=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Te.MISSING_VALUE,r)||this}return u(t,e),t}(Ae);function Ne(e){return"function"==typeof e}function Ie(e,t,r,n,i,o,s){if(1===e.length&&m(e[0]))return[{type:de.literal,value:e[0].value}];for(var h=[],a=0,u=e;a<u.length;a++){var c=u[a];if(m(c))h.push({type:de.literal,value:c.value});else if(B(c))"number"==typeof o&&h.push({type:de.literal,value:r.getNumberFormat(t).format(o)});else{var l=c.value;if(!i||!(l in i))throw new Se(l,s);var p=i[l];if(b(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),h.push({type:"string"==typeof p?de.literal:de.object,value:p});else if(y(c)){var f="string"==typeof c.style?n.date[c.style]:A(c.style)?c.style.parsedOptions:void 0;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(H(c)){f="string"==typeof c.style?n.time[c.style]:A(c.style)?c.style.parsedOptions:n.time.medium;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(g(c)){(f="string"==typeof c.style?n.number[c.style]:d(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),h.push({type:de.literal,value:r.getNumberFormat(t,f).format(p)})}else{if(_(c)){var E=c.children,P=c.value,L=i[P];if(!Ne(L))throw new Le(P,"function",s);var S=L(Ie(E,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(S)||(S=[S]),h.push.apply(h,S.map((function(e){return{type:"string"==typeof e?de.literal:de.object,value:e}})))}if(v(c)){if(!(N=c.options[p]||c.options.other))throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i))}else if(T(c)){var N;if(!(N=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ae('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Te.MISSING_INTL_API,s);var I=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));N=c.options[I]||c.options.other}if(!N)throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===de.literal&&t.type===de.literal?r.value+=t.value:e.push(t),e}),[])}(h)}function Ce(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?f(f(f({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=f(f({},i[t]),o[t]||{}),e}),{})):i),r}),f({},e)):e}function Oe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(de||(de={}));var Re=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===de.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Ie(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ce(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.number),strategy:_e.variadic}),getDateTimeFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.dateTime),strategy:_e.variadic}),getPluralRules:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.pluralRules),strategy:_e.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=fe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Me=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,o,a;return r=t,o=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return s.call(h.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,o=i.bindI18n,a=i.bindI18nStore,u=i.memoize;e.IntlMessageFormat=Re,e.ICU=this,u&&(o&&e.on(o,(function(){return r.clearCache()})),a&&e.store.on(a,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,o,s){var h,a,u,c,l=s&&s.resolved&&s.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(h=function(e,t){var r=i(e,t),n=r.obj,o=r.k;if(n)return n[o]}(this.mem,p));try{return h||(h=new Re(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!s||l)&&(a=this.mem,u=h,(c=i(a,p,Object)).obj[c.k]=u)),h.format(t)}catch(r){return this.options.parseErrorHandler(r,o,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}],o&&e(r.prototype,o),a&&e(r,a),t}();return Me.type="i18nFormat",Me})); |
@@ -1,16 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).i18nextICU=t()}(this,(function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=n(a.shift());!e[o]&&r&&(e[o]=new r),e=e[o]}return i()?{}:{obj:e,k:n(a.shift())}}var a=[],o=a.forEach,u=a.slice; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l,f,p=function(){return(p=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}).apply(this,arguments)};function h(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,u=a.length;o<u;o++,i++)n[i]=a[o];return n}function g(e){return e.type===l.literal}function m(e){return e.type===l.argument}function d(e){return e.type===l.number}function y(e){return e.type===l.date}function v(e){return e.type===l.time}function b(e){return e.type===l.select}function A(e){return e.type===l.plural}function w(e){return e.type===l.pound}function x(e){return e.type===l.tag}function C(e){return!(!e||"object"!=typeof e||0!==e.type)}function D(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(f||(f={}));var E=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?$/g,F=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function j(e){var t={};return e.replace(O,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function S(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function T(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!I.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _(e){var t=S(e);return t||{}}function z(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=p(p(p({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return p(p({},e),_(t))}),{}));continue;case"engineering":t=p(p(p({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return p(p({},e),_(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(F,(function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(k.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(k,(function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=p(p({},t),j(i.options[0])))}else if(O.test(i.stem))t=p(p({},t),j(i.stem));else{var a=S(i.stem);a&&(t=p(p({},t),a));var o=T(i.stem);o&&(t=p(p({},t),o))}}return t}var P=function(e){function t(r,n,i,a){var o=e.call(this)||this;return o.message=r,o.expected=n,o.found=i,o.location=a,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return c(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(a);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(((o=t)?'"'+n(o)+'"':"end of input")+" found.");var o},t}(Error);var N=function(e,t){t=void 0!==t?t:{};var r,n={},i={start:Ke},a=Ke,o="<",u=Ve("<",!1),s=function(e){return e.join("")},c=Ve("#",!1),f=Ze("tagElement"),h=Ve("/>",!1),g=Ve(">",!1),m=Ve("</",!1),d=Ze("argumentElement"),y="{",v=Ve("{",!1),b="}",A=Ve("}",!1),w=Ze("numberSkeletonId"),x=/^['\/{}]/,C=Ue(["'","/","{","}"],!1,!1),D={type:"any"},k=Ze("numberSkeletonTokenOption"),O=Ve("/",!1),F=Ze("numberSkeletonToken"),I="::",j=Ve("::",!1),S=function(e){return vt.pop(),e.replace(/\s*$/,"")},T=",",_=Ve(",",!1),N="number",L=Ve("number",!1),R=function(e,t,r){return p({type:"number"===t?l.number:"date"===t?l.date:l.time,style:r&&r[2],value:e},At())},M="'",V=Ve("'",!1),U=/^[^']/,Z=Ue(["'"],!0,!1),B=/^[^a-zA-Z'{}]/,G=Ue([["a","z"],["A","Z"],"'","{","}"],!0,!1),H=/^[a-zA-Z]/,K=Ue([["a","z"],["A","Z"]],!1,!1),$="date",W=Ve("date",!1),q="time",J=Ve("time",!1),Q="plural",X=Ve("plural",!1),Y="selectordinal",ee=Ve("selectordinal",!1),te="offset:",re=Ve("offset:",!1),ne="select",ie=Ve("select",!1),ae=Ve("=",!1),oe=Ze("whitespace"),ue=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,se=Ue([["\t","\r"]," "," "," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),ce=Ze("syntax pattern"),le=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,fe=Ue([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),pe=Ze("optional whitespace"),he=Ze("number"),ge="-",me=Ve("-",!1),de=Ze("double apostrophes"),ye="''",ve=Ve("''",!1),be=function(e){return!("<"===e||"{"===e||bt()&&"#"===e||vt.length>1&&"}"===e)},Ae=Ve("\n",!1),we=Ze("argNameOrNumber"),xe=Ze("validTag"),Ce=Ze("argNumber"),De=Ve("0",!1),Ee=/^[1-9]/,ke=Ue([["1","9"]],!1,!1),Oe=/^[0-9]/,Fe=Ue([["0","9"]],!1,!1),Ie=Ze("argName"),je=Ze("tagName"),Se=0,Te=0,_e=[{line:1,column:1}],ze=0,Pe=[],Ne=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function Le(){return e.substring(Te,Se)}function Re(){return Ge(Te,Se)}function Me(e,t){throw function(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:Ge(Te,Se))}function Ve(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ue(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ze(e){return{type:"other",description:e}}function Be(t){var r,n=_e[t];if(n)return n;for(r=t-1;!_e[r];)r--;for(n={line:(n=_e[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return _e[t]=n,n}function Ge(e,t){var r=Be(e),n=Be(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function He(e){Se<ze||(Se>ze&&(ze=Se,Pe=[]),Pe.push(e))}function Ke(){return $e()}function $e(){var e,t;for(e=[],t=We();t!==n;)e.push(t),t=We();return e}function We(){var t,r;return t=Se,Te=Se,(!Dt?void 0:n)!==n&&(r=function(){var e,t,r,i;Ne++,(e=Qe())===n&&(e=Se,(t=Xe())!==n&&(r=$e())!==n&&(i=Ye())!==n?(Te=e,o=r,(a=t)!==(u=i)&&Me('Mismatch tag "'+a+'" !== "'+u+'"',Re()),e=t=p({type:l.tag,value:a,children:o},At())):(Se=e,e=n));var a,o,u;Ne--,e===n&&(t=n,0===Ne&&He(f));return e}())!==n?(Te=t,t=r):(Se=t,t=n),t===n&&(t=function(){var e,t;e=Se,(t=qe())!==n&&(Te=e,r=t,t=p({type:l.literal,value:r},At()));var r;return e=t}())===n&&(t=function(){var t,r,i,a;Ne++,t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(125===e.charCodeAt(Se)?(a=b,Se++):(a=n,0===Ne&&He(A)),a!==n?(Te=t,o=i,t=r=p({type:l.argument,value:o},At())):(Se=t,t=n)):(Se=t,t=n);var o;Ne--,t===n&&(r=n,0===Ne&&He(d));return t}())===n&&(t=function(){var t;(t=function(){var t,r,i,a,o,u,s,c,l;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n&&ct()!==n?(e.substr(Se,6)===N?(o=N,Se+=6):(o=n,0===Ne&&He(L)),o!==n&&ct()!==n?(u=Se,44===e.charCodeAt(Se)?(s=T,Se++):(s=n,0===Ne&&He(_)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=Se,e.substr(Se,2)===I?(r=I,Se+=2):(r=n,0===Ne&&He(j));r!==n&&(i=function(){var e,t,r;if(e=Se,t=[],(r=rt())!==n)for(;r!==n;)t.push(r),r=rt();else t=n;t!==n&&(Te=e,t=p({type:0,tokens:i=t,parsedOptions:Et?z(i):{}},At()));var i;return e=t}())!==n?(Te=t,t=r=i):(Se=t,t=n);t===n&&(t=Se,Te=Se,vt.push("numberArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(Te=t,t=r=S(i)):(Se=t,t=n));return t}())!==n?u=s=[s,c,l]:(Se=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(Se)?(c=b,Se++):(c=n,0===Ne&&He(A)),c!==n?(Te=t,t=r=R(i,o,u)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n);return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,l;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));r!==n&&ct()!==n&&(i=gt())!==n&&ct()!==n?(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n&&ct()!==n?(e.substr(Se,4)===$?(o=$,Se+=4):(o=n,0===Ne&&He(W)),o===n&&(e.substr(Se,4)===q?(o=q,Se+=4):(o=n,0===Ne&&He(J))),o!==n&&ct()!==n?(u=Se,44===e.charCodeAt(Se)?(s=T,Se++):(s=n,0===Ne&&He(_)),s!==n&&(c=ct())!==n&&(l=function(){var t,r,i;t=Se,e.substr(Se,2)===I?(r=I,Se+=2):(r=n,0===Ne&&He(j));r!==n&&(i=function(){var t,r,i,a;t=Se,r=Se,i=[],(a=nt())===n&&(a=it());if(a!==n)for(;a!==n;)i.push(a),(a=nt())===n&&(a=it());else i=n;r=i!==n?e.substring(r,Se):i;r!==n&&(Te=t,r=p({type:1,pattern:o=r,parsedOptions:Et?(u=o,s={},u.replace(E,(function(e){var t=e.length;switch(e[0]){case"G":s.era=4===t?"long":5===t?"narrow":"short";break;case"y":s.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":s.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":s.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":s.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");s.weekday=["short","long","narrow","short"][t-4];break;case"a":s.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":s.hourCycle="h12",s.hour=["numeric","2-digit"][t-1];break;case"H":s.hourCycle="h23",s.hour=["numeric","2-digit"][t-1];break;case"K":s.hourCycle="h11",s.hour=["numeric","2-digit"][t-1];break;case"k":s.hourCycle="h24",s.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":s.minute=["numeric","2-digit"][t-1];break;case"s":s.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":s.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),s):{}},At()));var o,u,s;return t=r}())!==n?(Te=t,t=r=i):(Se=t,t=n);t===n&&(t=Se,Te=Se,vt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:n)!==n&&(i=qe())!==n?(Te=t,t=r=S(i)):(Se=t,t=n));return t}())!==n?u=s=[s,c,l]:(Se=u,u=n),u===n&&(u=null),u!==n&&(s=ct())!==n?(125===e.charCodeAt(Se)?(c=b,Se++):(c=n,0===Ne&&He(A)),c!==n?(Te=t,t=r=R(i,o,u)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n);return t}());return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f,h,g;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n)if(ct()!==n)if(e.substr(Se,6)===Q?(o=Q,Se+=6):(o=n,0===Ne&&He(X)),o===n&&(e.substr(Se,13)===Y?(o=Y,Se+=13):(o=n,0===Ne&&He(ee))),o!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(u=T,Se++):(u=n,0===Ne&&He(_)),u!==n)if(ct()!==n)if(s=Se,e.substr(Se,7)===te?(c=te,Se+=7):(c=n,0===Ne&&He(re)),c!==n&&(f=ct())!==n&&(h=lt())!==n?s=c=[c,f,h]:(Se=s,s=n),s===n&&(s=null),s!==n)if((c=ct())!==n){if(f=[],(h=ot())!==n)for(;h!==n;)f.push(h),h=ot();else f=n;f!==n&&(h=ct())!==n?(125===e.charCodeAt(Se)?(g=b,Se++):(g=n,0===Ne&&He(A)),g!==n?(Te=t,t=r=function(e,t,r,n){return p({type:l.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in plural element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,o,s,f)):(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;return t}())===n&&(t=function(){var t,r,i,a,o,u,s,c,f;t=Se,123===e.charCodeAt(Se)?(r=y,Se++):(r=n,0===Ne&&He(v));if(r!==n)if(ct()!==n)if((i=gt())!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(a=T,Se++):(a=n,0===Ne&&He(_)),a!==n)if(ct()!==n)if(e.substr(Se,6)===ne?(o=ne,Se+=6):(o=n,0===Ne&&He(ie)),o!==n)if(ct()!==n)if(44===e.charCodeAt(Se)?(u=T,Se++):(u=n,0===Ne&&He(_)),u!==n)if(ct()!==n){if(s=[],(c=at())!==n)for(;c!==n;)s.push(c),c=at();else s=n;s!==n&&(c=ct())!==n?(125===e.charCodeAt(Se)?(f=b,Se++):(f=n,0===Ne&&He(A)),f!==n?(Te=t,t=r=function(e,t){return p({type:l.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,i=t.location;return r in e&&Me('Duplicate option "'+r+'" in select element: "'+Le()+'"',Re()),e[r]={value:n,location:i},e}),{})},At())}(i,s)):(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;else Se=t,t=n;return t}())===n&&(t=function(){var t,r;t=Se,35===e.charCodeAt(Se)?(r="#",Se++):(r=n,0===Ne&&He(c));r!==n&&(Te=t,r=p({type:l.pound},At()));return t=r}()),t}function qe(){var t,r,i,a;if(t=Se,Te=Se,(r=(r=Dt)?void 0:n)!==n){if(i=[],(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(Se)?(a=o,Se++):(a=n,0===Ne&&He(u))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(a=pt())===n&&(a=ht())===n&&(60===e.charCodeAt(Se)?(a=o,Se++):(a=n,0===Ne&&He(u)));else i=n;i!==n?(Te=t,t=r=s(i)):(Se=t,t=n)}else Se=t,t=n;if(t===n){if(t=Se,r=[],(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je()),i!==n)for(;i!==n;)r.push(i),(i=ft())===n&&(i=pt())===n&&(i=ht())===n&&(i=Je());else r=n;r!==n&&(Te=t,r=s(r)),t=r}return t}function Je(){var t,r,i;return t=Se,r=Se,Ne++,(i=Xe())===n&&(i=Ye())===n&&(i=Qe()),Ne--,i===n?r=void 0:(Se=r,r=n),r!==n?(60===e.charCodeAt(Se)?(i=o,Se++):(i=n,0===Ne&&He(u)),i!==n?(Te=t,t=r="<"):(Se=t,t=n)):(Se=t,t=n),t}function Qe(){var t,r,i,a,s,c,f;return t=Se,r=Se,60===e.charCodeAt(Se)?(i=o,Se++):(i=n,0===Ne&&He(u)),i!==n&&(a=mt())!==n&&(s=ct())!==n?("/>"===e.substr(Se,2)?(c="/>",Se+=2):(c=n,0===Ne&&He(h)),c!==n?r=i=[i,a,s,c]:(Se=r,r=n)):(Se=r,r=n),r!==n&&(Te=t,f=r,r=p({type:l.literal,value:f.join("")},At())),t=r}function Xe(){var t,r,i,a;return t=Se,60===e.charCodeAt(Se)?(r=o,Se++):(r=n,0===Ne&&He(u)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(Se)?(a=">",Se++):(a=n,0===Ne&&He(g)),a!==n?(Te=t,t=r=i):(Se=t,t=n)):(Se=t,t=n),t}function Ye(){var t,r,i,a;return t=Se,"</"===e.substr(Se,2)?(r="</",Se+=2):(r=n,0===Ne&&He(m)),r!==n&&(i=mt())!==n?(62===e.charCodeAt(Se)?(a=">",Se++):(a=n,0===Ne&&He(g)),a!==n?(Te=t,t=r=i):(Se=t,t=n)):(Se=t,t=n),t}function et(){var t,r,i,a,o;if(Ne++,t=Se,r=[],i=Se,a=Se,Ne++,(o=ut())===n&&(x.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(C))),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n),i!==n)for(;i!==n;)r.push(i),i=Se,a=Se,Ne++,(o=ut())===n&&(x.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(C))),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n);else r=n;return t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(w)),t}function tt(){var t,r,i;return Ne++,t=Se,47===e.charCodeAt(Se)?(r="/",Se++):(r=n,0===Ne&&He(O)),r!==n&&(i=et())!==n?(Te=t,t=r=i):(Se=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(k)),t}function rt(){var e,t,r,i;if(Ne++,e=Se,ct()!==n)if((t=et())!==n){for(r=[],i=tt();i!==n;)r.push(i),i=tt();r!==n?(Te=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(Se=e,e=n)}else Se=e,e=n;else Se=e,e=n;return Ne--,e===n&&(n,0===Ne&&He(F)),e}function nt(){var t,r,i,a;if(t=Se,39===e.charCodeAt(Se)?(r=M,Se++):(r=n,0===Ne&&He(V)),r!==n){if(i=[],(a=ft())===n&&(U.test(e.charAt(Se))?(a=e.charAt(Se),Se++):(a=n,0===Ne&&He(Z))),a!==n)for(;a!==n;)i.push(a),(a=ft())===n&&(U.test(e.charAt(Se))?(a=e.charAt(Se),Se++):(a=n,0===Ne&&He(Z)));else i=n;i!==n?(39===e.charCodeAt(Se)?(a=M,Se++):(a=n,0===Ne&&He(V)),a!==n?t=r=[r,i,a]:(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;if(t===n)if(t=[],(r=ft())===n&&(B.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(G))),r!==n)for(;r!==n;)t.push(r),(r=ft())===n&&(B.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(G)));else t=n;return t}function it(){var t,r;if(t=[],H.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(K)),r!==n)for(;r!==n;)t.push(r),H.test(e.charAt(Se))?(r=e.charAt(Se),Se++):(r=n,0===Ne&&He(K));else t=n;return t}function at(){var t,r,i,a,o,u,s;return t=Se,ct()!==n&&(r=yt())!==n&&ct()!==n?(123===e.charCodeAt(Se)?(i=y,Se++):(i=n,0===Ne&&He(v)),i!==n?(Te=Se,vt.push("select"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(Se)?(o=b,Se++):(o=n,0===Ne&&He(A)),o!==n?(Te=t,u=r,s=a,vt.pop(),t=p({id:u,value:s},At())):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n),t}function ot(){var t,r,i,a,o,u,s;return t=Se,ct()!==n&&(r=function(){var t,r,i,a;return t=Se,r=Se,61===e.charCodeAt(Se)?(i="=",Se++):(i=n,0===Ne&&He(ae)),i!==n&&(a=lt())!==n?r=i=[i,a]:(Se=r,r=n),(t=r!==n?e.substring(t,Se):r)===n&&(t=yt()),t}())!==n&&ct()!==n?(123===e.charCodeAt(Se)?(i=y,Se++):(i=n,0===Ne&&He(v)),i!==n?(Te=Se,vt.push("plural"),(!0?void 0:n)!==n&&(a=$e())!==n?(125===e.charCodeAt(Se)?(o=b,Se++):(o=n,0===Ne&&He(A)),o!==n?(Te=t,u=r,s=a,vt.pop(),t=p({id:u,value:s},At())):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n)):(Se=t,t=n),t}function ut(){var t;return Ne++,ue.test(e.charAt(Se))?(t=e.charAt(Se),Se++):(t=n,0===Ne&&He(se)),Ne--,t===n&&0===Ne&&He(oe),t}function st(){var t;return Ne++,le.test(e.charAt(Se))?(t=e.charAt(Se),Se++):(t=n,0===Ne&&He(fe)),Ne--,t===n&&0===Ne&&He(ce),t}function ct(){var t,r,i;for(Ne++,t=Se,r=[],i=ut();i!==n;)r.push(i),i=ut();return t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(pe)),t}function lt(){var t,r,i,a,o;return Ne++,t=Se,45===e.charCodeAt(Se)?(r="-",Se++):(r=n,0===Ne&&He(me)),r===n&&(r=null),r!==n&&(i=dt())!==n?(Te=t,a=r,t=r=(o=i)?a?-o:o:0):(Se=t,t=n),Ne--,t===n&&(r=n,0===Ne&&He(he)),t}function ft(){var t,r;return Ne++,t=Se,e.substr(Se,2)===ye?(r=ye,Se+=2):(r=n,0===Ne&&He(ve)),r!==n&&(Te=t,r="'"),Ne--,(t=r)===n&&(r=n,0===Ne&&He(de)),t}function pt(){var t,r,i,a,o,u;if(t=Se,39===e.charCodeAt(Se)?(r=M,Se++):(r=n,0===Ne&&He(V)),r!==n)if((i=function(){var t,r,i,a;t=Se,r=Se,e.length>Se?(i=e.charAt(Se),Se++):(i=n,0===Ne&&He(D));i!==n?(Te=Se,(a=(a="<"===(o=i)||">"===o||"{"===o||"}"===o||bt()&&"#"===o)?void 0:n)!==n?r=i=[i,a]:(Se=r,r=n)):(Se=r,r=n);var o;t=r!==n?e.substring(t,Se):r;return t}())!==n){for(a=Se,o=[],e.substr(Se,2)===ye?(u=ye,Se+=2):(u=n,0===Ne&&He(ve)),u===n&&(U.test(e.charAt(Se))?(u=e.charAt(Se),Se++):(u=n,0===Ne&&He(Z)));u!==n;)o.push(u),e.substr(Se,2)===ye?(u=ye,Se+=2):(u=n,0===Ne&&He(ve)),u===n&&(U.test(e.charAt(Se))?(u=e.charAt(Se),Se++):(u=n,0===Ne&&He(Z)));(a=o!==n?e.substring(a,Se):o)!==n?(39===e.charCodeAt(Se)?(o=M,Se++):(o=n,0===Ne&&He(V)),o===n&&(o=null),o!==n?(Te=t,t=r=i+a.replace("''","'")):(Se=t,t=n)):(Se=t,t=n)}else Se=t,t=n;else Se=t,t=n;return t}function ht(){var t,r,i,a;return t=Se,r=Se,e.length>Se?(i=e.charAt(Se),Se++):(i=n,0===Ne&&He(D)),i!==n?(Te=Se,(a=(a=be(i))?void 0:n)!==n?r=i=[i,a]:(Se=r,r=n)):(Se=r,r=n),r===n&&(10===e.charCodeAt(Se)?(r="\n",Se++):(r=n,0===Ne&&He(Ae))),t=r!==n?e.substring(t,Se):r}function gt(){var t,r;return Ne++,t=Se,(r=dt())===n&&(r=yt()),t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(we)),t}function mt(){var t,r;return Ne++,t=Se,(r=dt())===n&&(r=function(){var t,r,i,a,o;Ne++,t=Se,r=[],45===e.charCodeAt(Se)?(i=ge,Se++):(i=n,0===Ne&&He(me));i===n&&(i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n));if(i!==n)for(;i!==n;)r.push(i),45===e.charCodeAt(Se)?(i=ge,Se++):(i=n,0===Ne&&He(me)),i===n&&(i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n));else r=n;t=r!==n?e.substring(t,Se):r;Ne--,t===n&&(r=n,0===Ne&&He(je));return t}()),t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(xe)),t}function dt(){var t,r,i,a,o;if(Ne++,t=Se,48===e.charCodeAt(Se)?(r="0",Se++):(r=n,0===Ne&&He(De)),r!==n&&(Te=t,r=0),(t=r)===n){if(t=Se,r=Se,Ee.test(e.charAt(Se))?(i=e.charAt(Se),Se++):(i=n,0===Ne&&He(ke)),i!==n){for(a=[],Oe.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(Fe));o!==n;)a.push(o),Oe.test(e.charAt(Se))?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(Fe));a!==n?r=i=[i,a]:(Se=r,r=n)}else Se=r,r=n;r!==n&&(Te=t,r=parseInt(r.join(""),10)),t=r}return Ne--,t===n&&(r=n,0===Ne&&He(Ce)),t}function yt(){var t,r,i,a,o;if(Ne++,t=Se,r=[],i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n),i!==n)for(;i!==n;)r.push(i),i=Se,a=Se,Ne++,(o=ut())===n&&(o=st()),Ne--,o===n?a=void 0:(Se=a,a=n),a!==n?(e.length>Se?(o=e.charAt(Se),Se++):(o=n,0===Ne&&He(D)),o!==n?i=a=[a,o]:(Se=i,i=n)):(Se=i,i=n);else r=n;return t=r!==n?e.substring(t,Se):r,Ne--,t===n&&(r=n,0===Ne&&He(Ie)),t}var vt=["root"];function bt(){return"plural"===vt[vt.length-1]}function At(){return t&&t.captureLocation?{location:Re()}:{}}var wt,xt,Ct,Dt=t&&t.ignoreTag,Et=t&&t.shouldParseSkeleton;if((r=a())!==n&&Se===e.length)return r;throw r!==n&&Se<e.length&&He({type:"end"}),wt=Pe,xt=ze<e.length?e.charAt(ze):null,Ct=ze<e.length?Ge(ze,ze+1):Ge(ze,ze),new P(P.buildMessage(wt,xt),wt,xt,Ct)},L=/(^|[^\\])#/g;function R(e){e.forEach((function(e){(A(e)||b(e))&&Object.keys(e.options).forEach((function(t){for(var r,n=e.options[t],i=-1,a=void 0,o=0;o<n.value.length;o++){var u=n.value[o];if(g(u)&&L.test(u.value)){i=o,a=u;break}}if(a){var s=a.value.replace(L,"$1{"+e.value+", number}"),c=N(s);(r=n.value).splice.apply(r,h([i,1],c))}R(n.value)}))}))}function M(e,t){t=p({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=N(e,t);return t.normalizeHashtagInPlural&&R(r),r}function V(e,t,r,n){var i,a=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function U(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}function Z(e,t,r,n,i){return r.bind(t,e,n,i)}function B(e,t){return Z(e,this,1===e.length?V:U,t.cache.create(),t.serializer)}function G(){return JSON.stringify(arguments)}function H(){this.cache=Object.create(null)}H.prototype.has=function(e){return e in this.cache},H.prototype.get=function(e){return this.cache[e]},H.prototype.set=function(e,t){this.cache[e]=t};var K={create:function(){return new H}};module.exports=function(e,t){var r=t&&t.cache?t.cache:K,n=t&&t.serializer?t.serializer:G;return(t&&t.strategy?t.strategy:B)(e,{cache:r,serializer:n})},module.exports.strategies={variadic:function(e,t){return Z(e,this,U,t.cache.create(),t.serializer)},monadic:function(e,t){return Z(e,this,V,t.cache.create(),t.serializer)}};var $,W=Object.freeze({__proto__:null});!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}($||($={}));var q,J=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return c(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Q=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",i)||this}return c(t,e),t}(J),X=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return c(t,e),t}(J),Y=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return c(t,e),t}(J);function ee(e){return"function"==typeof e}function te(e,t,r,n,i,a,o){if(1===e.length&&g(e[0]))return[{type:0,value:e[0].value}];for(var u=[],s=0,c=e;s<c.length;s++){var l=c[s];if(g(l))u.push({type:0,value:l.value});else if(w(l))"number"==typeof a&&u.push({type:0,value:r.getNumberFormat(t).format(a)});else{var f=l.value;if(!i||!(f in i))throw new Y(f,o);var p=i[f];if(m(l))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),u.push({type:"string"==typeof p?0:1,value:p});else if(y(l)){var h="string"==typeof l.style?n.date[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(v(l)){h="string"==typeof l.style?n.time[l.style]:D(l.style)?l.style.parsedOptions:void 0;u.push({type:0,value:r.getDateTimeFormat(t,h).format(p)})}else if(d(l)){(h="string"==typeof l.style?n.number[l.style]:C(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),u.push({type:0,value:r.getNumberFormat(t,h).format(p)})}else{if(x(l)){var E=l.children,k=l.value,O=i[k];if(!ee(O))throw new X(k,"function",o);var F=O(te(E,t,r,n,i,a).map((function(e){return e.value})));Array.isArray(F)||(F=[F]),u.push.apply(u,F.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(b(l)){if(!(I=l.options[p]||l.options.other))throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i))}else if(A(l)){var I;if(!(I=l.options["="+p])){if(!Intl.PluralRules)throw new J('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",o);var j=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));I=l.options[j]||l.options.other}if(!I)throw new Q(l.value,p,Object.keys(l.options),o);u.push.apply(u,te(I.value,t,r,n,i,p-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(u)}function re(e,t){return t?Object.keys(e).reduce((function(r,n){var i,a;return r[n]=(i=e[n],(a=t[n])?p(p(p({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=p(p({},i[t]),a[t]||{}),e}),{})):i),r}),p({},e)):e}function ne(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(q||(q={}));var ie=W;var ae=function(){function e(t,r,n,i){var a,o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return te(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=re(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,h([void 0],t)))}),{cache:ne(a.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,h([void 0],t)))}),{cache:ne(a.pluralRules),strategy:ie.strategies.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=M,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var oe=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,a,s;return r=t,(a=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return o.call(u.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,s=i.bindI18nStore,c=i.memoize;e.IntlMessageFormat=ae,e.ICU=this,c&&(a&&e.on(a,(function(){return r.clearCache()})),s&&e.store.on(s,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,a,o){var u,s,c,l,f=o&&o.resolved&&o.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(a.replace(/\./g,"###"));this.options.memoize&&(u=function(e,t){var r=i(e,t),n=r.obj,a=r.k;if(n)return n[a]}(this.mem,p));try{return u||(u=new ae(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!o||f)&&(s=this.mem,c=u,(l=i(s,p,Object)).obj[l.k]=c)),u.format(t)}catch(r){return this.options.parseErrorHandler(r,a,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}])&&e(r.prototype,a),s&&e(r,s),t}();return oe.type="i18nFormat",oe})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).i18nextICU=t()}(this,(function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?r(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=n(o.shift());!e[s]&&r&&(e[s]=new r),e=e[s]}return i()?{}:{obj:e,k:n(o.shift())}}var o=[],s=o.forEach,h=o.slice;var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c,l,p,f=function(){return f=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},f.apply(this,arguments)};function E(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 m(e){return e.type===l.literal}function b(e){return e.type===l.argument}function g(e){return e.type===l.number}function y(e){return e.type===l.date}function H(e){return e.type===l.time}function v(e){return e.type===l.select}function T(e){return e.type===l.plural}function B(e){return e.type===l.pound}function _(e){return e.type===l.tag}function d(e){return!(!e||"object"!=typeof e||e.type!==p.number)}function A(e){return!(!e||"object"!=typeof e||e.type!==p.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(c||(c={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(l||(l={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(p||(p={}));var P=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function S(e){var t={};return e.replace(L,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var N=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,R=/^(0+)$/;function M(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(C,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function G(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!R.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function w(e){var t=U(e);return t||{}}function D(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=f(f(f({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"engineering":t=f(f(f({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return f(f({},e),w(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(O,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(R.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(I.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(I,(function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=f(f({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=f(f({},t),M(o)))}else if(C.test(i.stem))t=f(f({},t),M(i.stem));else{var s=U(i.stem);s&&(t=f(f({},t),s));var h=G(i.stem);h&&(t=f(f({},t),h))}}return t}var F,k={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function V(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(k[r||""]||k[n||""]||k["".concat(n,"-001")]||k["001"])[0]}var X=new RegExp("^".concat(P.source,"*")),j=new RegExp("".concat(P.source,"*$"));function K(e,t){return{start:e,end:t}}var x=!!String.prototype.startsWith,Y=!!String.fromCodePoint,Z=!!Object.fromEntries,z=!!String.prototype.codePointAt,W=!!String.prototype.trimStart,Q=!!String.prototype.trimEnd,J=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},q=!0;try{q="a"===(null===(F=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===F?void 0:F[0])}catch(e){q=!1}var $,ee=x?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},te=Y?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},re=Z?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},ne=z?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},ie=W?function(e){return e.trimStart()}:function(e){return e.replace(X,"")},oe=Q?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")};function se(e,t){return new RegExp(e,t)}if(q){var he=se("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=function(e,t){var r;return he.lastIndex=t,null!==(r=he.exec(e)[1])&&void 0!==r?r:""}}else $=function(e,t){for(var r=[];;){var n=ne(e,t);if(void 0===n||ce(n)||le(n))break;r.push(n),t+=n>=65536?2:1}return te.apply(void 0,r)};var ae=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(c.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ue(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:l.pound,location:K(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(n,"/>"),location:K(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ue(this.char()))return this.error(c.INVALID_TAG,K(s,this.clonePosition()));var h=this.clonePosition();return n!==this.parseTagName()?this.error(c.UNMATCHED_CLOSING_TAG,K(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:l.tag,value:n,children:o,location:K(r,this.clonePosition())},err:null}:this.error(c.INVALID_TAG,K(s,this.clonePosition())))}return this.error(c.UNCLOSED_TAG,K(r,this.clonePosition()))}return this.error(c.INVALID_TAG,K(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=K(r,this.clonePosition());return{val:{type:l.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ue(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return te.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),te(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(c.EMPTY_ARGUMENT,K(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:n,location:K(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(c.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(c.EXPECT_ARGUMENT_TYPE,K(o,h));case"number":case"date":case"time":this.bumpSpace();var a=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(g=oe(T.val)).length)return this.error(c.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));a={style:g,styleLocation:K(u,this.clonePosition())}}if((B=this.tryParseArgumentClose(n)).err)return B;var E=K(n,this.clonePosition());if(a&&ee(null==a?void 0:a.style,"::",0)){var m=ie(a.style.slice(2));if("number"===s)return(T=this.parseNumberSkeletonFromString(m,a.styleLocation)).err?T:{val:{type:l.number,value:r,location:E,style:T.val},err:null};if(0===m.length)return this.error(c.EXPECT_DATE_TIME_SKELETON,E);var b=m;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),h=o<2?1:3+(o>>1),a=V(t);for("H"!=a&&"k"!=a||(h=0);h-- >0;)r+="a";for(;s-- >0;)r=a+r}else r+="J"===i?"H":i}return r}(m,this.locale));var g={type:p.dateTime,pattern:b,location:a.styleLocation,parsedOptions:this.shouldParseSkeletons?S(b):{}};return{val:{type:"date"===s?l.date:l.time,value:r,location:E,style:g},err:null}}return{val:{type:"number"===s?l.number:"date"===s?l.date:l.time,value:r,location:E,style:null!==(i=null==a?void 0:a.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(c.EXPECT_SELECT_ARGUMENT_OPTIONS,K(y,f({},y)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),v=0;if("select"!==s&&"offset"===H.value){if(!this.bumpIf(":"))return this.error(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),H=this.parseIdentifierIfPossible(),v=T.val}var B,_=this.tryParsePluralOrSelectOptions(e,s,t,H);if(_.err)return _;if((B=this.tryParseArgumentClose(n)).err)return B;var d=K(n,this.clonePosition());return"select"===s?{val:{type:l.select,value:r,options:re(_.val),location:d},err:null}:{val:{type:l.plural,value:r,options:re(_.val),offset:v,pluralType:"plural"===s?"cardinal":"ordinal",location:d},err:null};default:return this.error(c.INVALID_ARGUMENT_TYPE,K(o,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,K(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(N).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),h=0,a=s;h<a.length;h++)if(0===a[h].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(c.INVALID_NUMBER_SKELETON,t)}return{val:{type:p.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?D(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],h=new Set,a=n.value,u=n.location;;){if(0===a.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var p=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_SELECTOR,c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;u=K(l,this.clonePosition()),a=this.message.slice(l.offset,this.offset())}if(h.has(a))return this.error("select"===t?c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===a&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(e+1,t,r);if(E.err)return E;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([a,{value:E.val,location:K(f,this.clonePosition())}]),h.add(a),this.bumpSpace(),a=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?c.EXPECT_SELECT_ARGUMENT_SELECTOR:c.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(c.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var h=K(n,this.clonePosition());return i?J(o*=r)?{val:o,err:null}:this.error(t,h):this.error(e,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ne(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ee(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ce(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ue(e){return e>=97&&e<=122||e>=65&&e<=90}function ce(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function pe(e){e.forEach((function(e){if(delete e.location,v(e)||T(e))for(var t in e.options)delete e.options[t].location,pe(e.options[t].value);else g(e)&&d(e.style)||(y(e)||H(e))&&A(e.style)?delete e.style.location:_(e)&&pe(e.children)}))}function fe(e,t){void 0===t&&(t={}),t=f({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ae(e,t).parse();if(r.err){var n=SyntaxError(c[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||pe(r.val),r.val}function Ee(e,t){var r=t&&t.cache?t.cache:Be,n=t&&t.serializer?t.serializer:He;return(t&&t.strategy?t.strategy:ye)(e,{cache:r,serializer:n})}function me(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function be(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ge(e,t,r,n,i){return r.bind(t,e,n,i)}function ye(e,t){return ge(e,this,1===e.length?me:be,t.cache.create(),t.serializer)}var He=function(){return JSON.stringify(arguments)};function ve(){this.cache=Object.create(null)}ve.prototype.get=function(e){return this.cache[e]},ve.prototype.set=function(e,t){this.cache[e]=t};var Te,Be={create:function(){return new ve}},_e={variadic:function(e,t){return ge(e,this,be,t.cache.create(),t.serializer)},monadic:function(e,t){return ge(e,this,me,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Te||(Te={}));var de,Ae=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return u(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Pe=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Te.INVALID_VALUE,i)||this}return u(t,e),t}(Ae),Le=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Te.INVALID_VALUE,n)||this}return u(t,e),t}(Ae),Se=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Te.MISSING_VALUE,r)||this}return u(t,e),t}(Ae);function Ne(e){return"function"==typeof e}function Ie(e,t,r,n,i,o,s){if(1===e.length&&m(e[0]))return[{type:de.literal,value:e[0].value}];for(var h=[],a=0,u=e;a<u.length;a++){var c=u[a];if(m(c))h.push({type:de.literal,value:c.value});else if(B(c))"number"==typeof o&&h.push({type:de.literal,value:r.getNumberFormat(t).format(o)});else{var l=c.value;if(!i||!(l in i))throw new Se(l,s);var p=i[l];if(b(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),h.push({type:"string"==typeof p?de.literal:de.object,value:p});else if(y(c)){var f="string"==typeof c.style?n.date[c.style]:A(c.style)?c.style.parsedOptions:void 0;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(H(c)){f="string"==typeof c.style?n.time[c.style]:A(c.style)?c.style.parsedOptions:n.time.medium;h.push({type:de.literal,value:r.getDateTimeFormat(t,f).format(p)})}else if(g(c)){(f="string"==typeof c.style?n.number[c.style]:d(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),h.push({type:de.literal,value:r.getNumberFormat(t,f).format(p)})}else{if(_(c)){var E=c.children,P=c.value,L=i[P];if(!Ne(L))throw new Le(P,"function",s);var S=L(Ie(E,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(S)||(S=[S]),h.push.apply(h,S.map((function(e){return{type:"string"==typeof e?de.literal:de.object,value:e}})))}if(v(c)){if(!(N=c.options[p]||c.options.other))throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i))}else if(T(c)){var N;if(!(N=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ae('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Te.MISSING_INTL_API,s);var I=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));N=c.options[I]||c.options.other}if(!N)throw new Pe(c.value,p,Object.keys(c.options),s);h.push.apply(h,Ie(N.value,t,r,n,i,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===de.literal&&t.type===de.literal?r.value+=t.value:e.push(t),e}),[])}(h)}function Ce(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?f(f(f({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=f(f({},i[t]),o[t]||{}),e}),{})):i),r}),f({},e)):e}function Oe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(de||(de={}));var Re=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===de.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Ie(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ce(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.number),strategy:_e.variadic}),getDateTimeFormat:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.dateTime),strategy:_e.variadic}),getPluralRules:Ee((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,E([void 0],t,!1)))}),{cache:Oe(o.pluralRules),strategy:_e.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=fe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Me=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="i18nFormat",this.mem={},this.init(null,e)}var r,o,a;return r=t,o=[{key:"init",value:function(e,t){var r=this,n=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return s.call(h.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(n,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(e,t,r,n){return r}}),this.formats=this.options.formats,e){var i=this.options,o=i.bindI18n,a=i.bindI18nStore,u=i.memoize;e.IntlMessageFormat=Re,e.ICU=this,u&&(o&&e.on(o,(function(){return r.clearCache()})),a&&e.store.on(a,(function(){return r.clearCache()})))}}},{key:"addUserDefinedFormats",value:function(e){this.formats=this.formats?n(n({},this.formats),e):e}},{key:"parse",value:function(e,t,r,n,o,s){var h,a,u,c,l=s&&s.resolved&&s.resolved.res,p=this.options.memoize&&"".concat(r,".").concat(n,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(h=function(e,t){var r=i(e,t),n=r.obj,o=r.k;if(n)return n[o]}(this.mem,p));try{return h||(h=new Re(e,r,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!s||l)&&(a=this.mem,u=h,(c=i(a,p,Object)).obj[c.k]=u)),h.format(t)}catch(r){return this.options.parseErrorHandler(r,o,e,t)}}},{key:"addLookupKeys",value:function(e,t,r,n,i){return e}},{key:"clearCache",value:function(){this.mem={}}}],o&&e(r.prototype,o),a&&e(r,a),t}();return Me.type="i18nFormat",Me})); |
{ | ||
"name": "i18next-icu", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "i18nFormat plugin to use ICU format with i18next", | ||
@@ -18,3 +18,3 @@ "main": "./index.js", | ||
"peerDependencies": { | ||
"intl-messageformat": "^9.0.0" | ||
"intl-messageformat": "^10.2.4" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
"intl-locales-supported": "^1.8.12", | ||
"intl-messageformat": "9.4.6", | ||
"intl-messageformat": "10.2.4", | ||
"jest": "^26.6.3", | ||
@@ -40,0 +40,0 @@ "mkdirp": "1.0.4", |
@@ -6,6 +6,10 @@ # Introduction | ||
[](https://www.npmjs.com/package/i18next-icu) | ||
[](https://david-dm.org/i18next/i18next-icu) | ||
This changes i18n format from i18next json to ICU using [yahoo/intl-messageformat](https://github.com/yahoo/intl-messageformat) | ||
## Advice | ||
When using this module, only the ICU message format is respected, this means the i18next format interpolation will not work. | ||
So for example instead of `Hy {{name}}!` it is `Hy {name}!` | ||
# Getting started | ||
@@ -91,2 +95,8 @@ | ||
## Migration guide | ||
### 1.x.x -> 2.0.0 | ||
- updated `intl-messageformat` dependency. Adding locales-data is no longer needed. | ||
--- | ||
@@ -93,0 +103,0 @@ |
@@ -13,5 +13,6 @@ { | ||
"lib": ["ES2015"], | ||
"module": "esnext" | ||
"module": "esnext", | ||
"skipLibCheck": true | ||
}, | ||
"include": ["."] | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
109
707395
16715
1