!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactIntl={},e.React)}(this,function(e,g){"use strict";function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r",h=yt("/>",!1),g=function(e){return Yt({type:Xt.literal,value:e.join("")},Qt())},y=function(e,t,r){return e!==r&>('Mismatch tag "'+e+'" !== "'+r+'"',ht()),Yt({type:Xt.tag,value:e,children:t},Qt())},v=function(){return Wt.push("openingTag"),!0},b=">",A=yt(">",!1),w=function(e){return Wt.pop(),!0},O=function(e){return e},F=""===e)},qe="\n",He=yt("\n",!1),We=function(e){return"<"===e||">"===e||"{"===e||"}"===e||Kt()&&"#"===e},Je=bt("argNameOrNumber"),Ke=bt("validTag"),Qe=bt("argNumber"),Xe="0",Ye=yt("0",!1),et=function(){return 0},tt=/^[1-9]/,rt=vt([["1","9"]],!1,!1),nt=/^[0-9]/,ot=vt([["0","9"]],!1,!1),at=function(e){return parseInt(e.join(""),10)},it=bt("argName"),ut=bt("tagName"),ct=0,st=0,lt=[{line:1,column:1}],ft=0,mt=[],pt=0;if(void 0!==e.startRule){if(!(e.startRule in r))throw new Error("Can't start parsing from rule \""+e.startRule+'".');n=r[e.startRule]}function dt(){return f.substring(st,ct)}function ht(){return wt(st,ct)}function gt(e,t){throw function(e,t){return new er(e,[],"",t)}(e,t=void 0!==t?t:wt(st,ct))}function yt(e,t){return{type:"literal",text:e,ignoreCase:t}}function vt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function bt(e){return{type:"other",description:e}}function At(e){var t,r=lt[e];if(r)return r;for(t=e-1;!lt[t];)t--;for(r={line:(r=lt[t]).line,column:r.column};tct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m))!==m)for(;r!==m;)t.push(r),n=r=ct,pt++,(o=_t())===m&&(j.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(_))),pt--,r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m);else t=m;return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(N)),e}function Et(){var e,t,r;return pt++,e=ct,47===f.charCodeAt(ct)?(t=k,ct++):(t=m,0===pt&&Ot(L)),e=t!==m&&(r=It())!==m?(st=e,t=U(r)):(ct=e,m),pt--,e===m&&(t=m,0===pt&&Ot(M)),e}function Dt(){var e,t,r,n;if(pt++,e=ct,Mt()!==m)if((t=It())!==m){for(r=[],n=Et();n!==m;)r.push(n),n=Et();e=r!==m?(st=e,$(t,r)):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;return pt--,e===m&&(m,0===pt&&Ot(V)),e}function Pt(){var e,t,r,n;if(e=ct,39===f.charCodeAt(ct)?(t=Y,ct++):(t=m,0===pt&&Ot(ee)),t!==m){if(r=[],(n=Lt())===m&&(te.test(f.charAt(ct))?(n=f.charAt(ct),ct++):(n=m,0===pt&&Ot(re))),n!==m)for(;n!==m;)r.push(n),(n=Lt())===m&&(te.test(f.charAt(ct))?(n=f.charAt(ct),ct++):(n=m,0===pt&&Ot(re)));else r=m;e=r!==m?(39===f.charCodeAt(ct)?(n=Y,ct++):(n=m,0===pt&&Ot(ee)),n!==m?t=[t,r,n]:(ct=e,m)):(ct=e,m)}else ct=e,e=m;if(e===m)if(e=[],(t=Lt())===m&&(ne.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(oe))),t!==m)for(;t!==m;)e.push(t),(t=Lt())===m&&(ne.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(oe)));else e=m;return e}function Ct(){var e,t;if(e=[],ae.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(ie)),t!==m)for(;t!==m;)e.push(t),ae.test(f.charAt(ct))?(t=f.charAt(ct),ct++):(t=m,0===pt&&Ot(ie));else e=m;return e}function Nt(){var e,t,r,n,o;return e=ct,e=Mt()!==m&&(t=zt())!==m&&Mt()!==m?(123===f.charCodeAt(ct)?(r=I,ct++):(r=m,0===pt&&Ot(E)),r!==m?(st=ct,(Se()?void 0:m)!==m&&(n=Tt())!==m?(125===f.charCodeAt(ct)?(o=D,ct++):(o=m,0===pt&&Ot(P)),o!==m?(st=e,Re(t,n)):(ct=e,m)):(ct=e,m)):(ct=e,m)):(ct=e,m)}function jt(){var e,t,r,n,o;return e=ct,e=Mt()!==m&&(t=function(){var e,t,r,n;return t=e=ct,61===f.charCodeAt(ct)?(r=Fe,ct++):(r=m,0===pt&&Ot(Te)),(e=(t=r!==m&&(n=kt())!==m?r=[r,n]:(ct=t,m))!==m?f.substring(e,ct):t)===m&&(e=zt()),e}())!==m&&Mt()!==m?(123===f.charCodeAt(ct)?(r=I,ct++):(r=m,0===pt&&Ot(E)),r!==m?(st=ct,(Ie()?void 0:m)!==m&&(n=Tt())!==m?(125===f.charCodeAt(ct)?(o=D,ct++):(o=m,0===pt&&Ot(P)),o!==m?(st=e,Ee(t,n)):(ct=e,m)):(ct=e,m)):(ct=e,m)):(ct=e,m)}function _t(){var e;return pt++,Pe.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=m,0===pt&&Ot(Ce)),pt--,e===m&&0===pt&&Ot(De),e}function xt(){var e;return pt++,je.test(f.charAt(ct))?(e=f.charAt(ct),ct++):(e=m,0===pt&&Ot(_e)),pt--,e===m&&0===pt&&Ot(Ne),e}function Mt(){var e,t,r;for(pt++,e=ct,t=[],r=_t();r!==m;)t.push(r),r=_t();return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(xe)),e}function kt(){var e,t,r;return pt++,e=ct,45===f.charCodeAt(ct)?(t=ke,ct++):(t=m,0===pt&&Ot(Le)),t===m&&(t=null),e=t!==m&&(r=Zt())!==m?(st=e,t=Ue(t,r)):(ct=e,m),pt--,e===m&&(t=m,0===pt&&Ot(Me)),e}function Lt(){var e,t;return pt++,e=ct,f.substr(ct,2)===$e?(t=$e,ct+=2):(t=m,0===pt&&Ot(Ge)),t!==m&&(st=e,t=Ze()),pt--,(e=t)===m&&(t=m,0===pt&&Ot(Ve)),e}function Ut(){var e,t,r,n,o,a;if(e=ct,39===f.charCodeAt(ct)?(t=Y,ct++):(t=m,0===pt&&Ot(ee)),t!==m)if((r=function(){var e,t,r,n;t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(x));t=r!==m?(st=ct,n=We(r),(n=n?void 0:m)!==m?r=[r,n]:(ct=t,m)):(ct=t,m);e=t!==m?f.substring(e,ct):t;return e}())!==m){for(n=ct,o=[],f.substr(ct,2)===$e?(a=$e,ct+=2):(a=m,0===pt&&Ot(Ge)),a===m&&(te.test(f.charAt(ct))?(a=f.charAt(ct),ct++):(a=m,0===pt&&Ot(re)));a!==m;)o.push(a),f.substr(ct,2)===$e?(a=$e,ct+=2):(a=m,0===pt&&Ot(Ge)),a===m&&(te.test(f.charAt(ct))?(a=f.charAt(ct),ct++):(a=m,0===pt&&Ot(re)));e=(n=o!==m?f.substring(n,ct):o)!==m?(39===f.charCodeAt(ct)?(o=Y,ct++):(o=m,0===pt&&Ot(ee)),o===m&&(o=null),o!==m?(st=e,t=ze(r,n)):(ct=e,m)):(ct=e,m)}else ct=e,e=m;else ct=e,e=m;return e}function Vt(){var e,t,r,n;return t=e=ct,f.length>ct?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(x)),(t=r!==m?(st=ct,(n=(n=Be(r))?void 0:m)!==m?r=[r,n]:(ct=t,m)):(ct=t,m))===m&&(10===f.charCodeAt(ct)?(t=qe,ct++):(t=m,0===pt&&Ot(He))),e=t!==m?f.substring(e,ct):t}function $t(){var e,t;return pt++,e=ct,(t=Zt())===m&&(t=zt()),e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Je)),e}function Gt(){var e,t;return pt++,e=ct,(t=Zt())===m&&(t=function(){var e,t,r,n,o;pt++,e=ct,t=[],45===f.charCodeAt(ct)?(r=ke,ct++):(r=m,0===pt&&Ot(Le));r===m&&(n=r=ct,pt++,(o=_t())===m&&(o=xt()),pt--,n=o===m?void 0:(ct=n,m),r=n!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m));if(r!==m)for(;r!==m;)t.push(r),45===f.charCodeAt(ct)?(r=ke,ct++):(r=m,0===pt&&Ot(Le)),r===m&&(n=r=ct,pt++,(o=_t())===m&&(o=xt()),pt--,n=o===m?void 0:(ct=n,m),r=n!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m));else t=m;e=t!==m?f.substring(e,ct):t;pt--,e===m&&(t=m,0===pt&&Ot(ut));return e}()),e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(Ke)),e}function Zt(){var e,t,r,n,o;if(pt++,e=ct,48===f.charCodeAt(ct)?(t=Xe,ct++):(t=m,0===pt&&Ot(Ye)),t!==m&&(st=e,t=et()),(e=t)===m){if(t=e=ct,tt.test(f.charAt(ct))?(r=f.charAt(ct),ct++):(r=m,0===pt&&Ot(rt)),r!==m){for(n=[],nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(ot));o!==m;)n.push(o),nt.test(f.charAt(ct))?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(ot));t=n!==m?r=[r,n]:(ct=t,m)}else ct=t,t=m;t!==m&&(st=e,t=at(t)),e=t}return pt--,e===m&&(t=m,0===pt&&Ot(Qe)),e}function zt(){var e,t,r,n,o;if(pt++,t=[],n=r=e=ct,pt++,(o=_t())===m&&(o=xt()),pt--,(r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m))!==m)for(;r!==m;)t.push(r),n=r=ct,pt++,(o=_t())===m&&(o=xt()),pt--,r=(n=o===m?void 0:(ct=n,m))!==m?(f.length>ct?(o=f.charAt(ct),ct++):(o=m,0===pt&&Ot(x)),o!==m?n=[n,o]:(ct=r,m)):(ct=r,m);else t=m;return e=t!==m?f.substring(e,ct):t,pt--,e===m&&(t=m,0===pt&&Ot(it)),e}var Bt,qt,Ht,Wt=["root"];function Jt(){return 1 needs to exist in the component ancestry.")}var he={formats:{},messages:{},timeZone:void 0,textComponent:g.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function ge(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ye(e){var t=0