!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,h){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}});t(n);n._;var Nt,a,o=n.defineMessages;function v(e){return(v="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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;rVe?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m))!==m)for(;r!==m;)t.push(r),n=r=Ve,Je++,(a=yt())===m&&(v.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(b))),Je--,r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m);else t=m;return e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(y)),e}function ft(){var e,t,r;return Je++,e=Ve,47===f.charCodeAt(Ve)?(t=A,Ve++):(t=m,0===Je&&ot(F)),e=t!==m&&(r=lt())!==m?(qe=e,t=C(r)):(Ve=e,m),Je--,e===m&&(t=m,0===Je&&ot(O)),e}function mt(){var e,t,r,n;if(Je++,e=Ve,bt()!==m)if((t=lt())!==m){for(r=[],n=ft();n!==m;)r.push(n),n=ft();e=r!==m?(qe=e,T(t,r)):(Ve=e,m)}else Ve=e,e=m;else Ve=e,e=m;return Je--,e===m&&(m,0===Je&&ot(P)),e}function pt(){var e,t,r,n;if(e=Ve,39===f.charCodeAt(Ve)?(t=L,Ve++):(t=m,0===Je&&ot($)),t!==m){if(r=[],(n=Ot())===m&&(Z.test(f.charAt(Ve))?(n=f.charAt(Ve),Ve++):(n=m,0===Je&&ot(z))),n!==m)for(;n!==m;)r.push(n),(n=Ot())===m&&(Z.test(f.charAt(Ve))?(n=f.charAt(Ve),Ve++):(n=m,0===Je&&ot(z)));else r=m;e=r!==m?(39===f.charCodeAt(Ve)?(n=L,Ve++):(n=m,0===Je&&ot($)),n!==m?t=[t,r,n]:(Ve=e,m)):(Ve=e,m)}else Ve=e,e=m;if(e===m)if(e=[],(t=Ot())===m&&(H.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(B))),t!==m)for(;t!==m;)e.push(t),(t=Ot())===m&&(H.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(B)));else e=m;return e}function dt(){var e,t;if(e=[],U.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(V)),t!==m)for(;t!==m;)e.push(t),U.test(f.charAt(Ve))?(t=f.charAt(Ve),Ve++):(t=m,0===Je&&ot(V));else e=m;return e}function gt(){var e,t,r,n,a;return e=Ve,e=bt()!==m&&(t=Tt())!==m&&bt()!==m?(123===f.charCodeAt(Ve)?(r=p,Ve++):(r=m,0===Je&&ot(d)),r!==m?(qe=Ve,(le()?void 0:m)!==m&&(n=ut())!==m?(125===f.charCodeAt(Ve)?(a=g,Ve++):(a=m,0===Je&&ot(h)),a!==m?(qe=e,fe(t,n)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)}function ht(){var e,t,r,n,a;return e=Ve,e=bt()!==m&&(t=function(){var e,t,r,n;return t=e=Ve,61===f.charCodeAt(Ve)?(r=se,Ve++):(r=m,0===Je&&ot(ce)),(e=(t=r!==m&&(n=wt())!==m?r=[r,n]:(Ve=t,m))!==m?f.substring(e,Ve):t)===m&&(e=Tt()),e}())!==m&&bt()!==m?(123===f.charCodeAt(Ve)?(r=p,Ve++):(r=m,0===Je&&ot(d)),r!==m?(qe=Ve,(me()?void 0:m)!==m&&(n=ut())!==m?(125===f.charCodeAt(Ve)?(a=g,Ve++):(a=m,0===Je&&ot(h)),a!==m?(qe=e,pe(t,n)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)):(Ve=e,m)}function yt(){var e;return Je++,ge.test(f.charAt(Ve))?(e=f.charAt(Ve),Ve++):(e=m,0===Je&&ot(he)),Je--,e===m&&0===Je&&ot(de),e}function vt(){var e;return Je++,ve.test(f.charAt(Ve))?(e=f.charAt(Ve),Ve++):(e=m,0===Je&&ot(be)),Je--,e===m&&0===Je&&ot(ye),e}function bt(){var e,t,r;for(Je++,e=Ve,t=[],r=yt();r!==m;)t.push(r),r=yt();return e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(we)),e}function wt(){var e,t,r;return Je++,e=Ve,45===f.charCodeAt(Ve)?(t=Ae,Ve++):(t=m,0===Je&&ot(Fe)),t===m&&(t=null),e=t!==m&&(r=Pt())!==m?(qe=e,t=Ce(t,r)):(Ve=e,m),Je--,e===m&&(t=m,0===Je&&ot(Oe)),e}function Ot(){var e,t;return Je++,e=Ve,f.substr(Ve,2)===Te?(t=Te,Ve+=2):(t=m,0===Je&&ot(je)),t!==m&&(qe=e,t=Ee()),Je--,(e=t)===m&&(t=m,0===Je&&ot(Pe)),e}function At(){var e,t,r,n,a,o;if(e=Ve,39===f.charCodeAt(Ve)?(t=L,Ve++):(t=m,0===Je&&ot($)),t!==m)if((r=function(){var e,t,r,n;t=e=Ve,f.length>Ve?(r=f.charAt(Ve),Ve++):(r=m,0===Je&&ot(w));t=r!==m?(qe=Ve,n=Ne(r),(n=n?void 0:m)!==m?r=[r,n]:(Ve=t,m)):(Ve=t,m);e=t!==m?f.substring(e,Ve):t;return e}())!==m){for(n=Ve,a=[],f.substr(Ve,2)===Te?(o=Te,Ve+=2):(o=m,0===Je&&ot(je)),o===m&&(Z.test(f.charAt(Ve))?(o=f.charAt(Ve),Ve++):(o=m,0===Je&&ot(z)));o!==m;)a.push(o),f.substr(Ve,2)===Te?(o=Te,Ve+=2):(o=m,0===Je&&ot(je)),o===m&&(Z.test(f.charAt(Ve))?(o=f.charAt(Ve),Ve++):(o=m,0===Je&&ot(z)));e=(n=a!==m?f.substring(n,Ve):a)!==m?(39===f.charCodeAt(Ve)?(a=L,Ve++):(a=m,0===Je&&ot($)),a===m&&(a=null),a!==m?(qe=e,t=xe(r,n)):(Ve=e,m)):(Ve=e,m)}else Ve=e,e=m;else Ve=e,e=m;return e}function Ft(){var e,t,r,n;return t=e=Ve,f.length>Ve?(r=f.charAt(Ve),Ve++):(r=m,0===Je&&ot(w)),(t=r!==m?(qe=Ve,(n=(n=De(r))?void 0:m)!==m?r=[r,n]:(Ve=t,m)):(Ve=t,m))===m&&(10===f.charCodeAt(Ve)?(t=Se,Ve++):(t=m,0===Je&&ot(Me))),e=t!==m?f.substring(e,Ve):t}function Ct(){var e,t;return Je++,e=Ve,(t=Pt())===m&&(t=Tt()),e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(ke)),e}function Pt(){var e,t,r,n,a;if(Je++,e=Ve,48===f.charCodeAt(Ve)?(t=_e,Ve++):(t=m,0===Je&&ot(Re)),t!==m&&(qe=e,t=Le()),(e=t)===m){if(t=e=Ve,$e.test(f.charAt(Ve))?(r=f.charAt(Ve),Ve++):(r=m,0===Je&&ot(Ze)),r!==m){for(n=[],ze.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(He));a!==m;)n.push(a),ze.test(f.charAt(Ve))?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(He));t=n!==m?r=[r,n]:(Ve=t,m)}else Ve=t,t=m;t!==m&&(qe=e,t=Be(t)),e=t}return Je--,e===m&&(t=m,0===Je&&ot(Ie)),e}function Tt(){var e,t,r,n,a;if(Je++,t=[],n=r=e=Ve,Je++,(a=yt())===m&&(a=vt()),Je--,(r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m))!==m)for(;r!==m;)t.push(r),n=r=Ve,Je++,(a=yt())===m&&(a=vt()),Je--,r=(n=a===m?void 0:(Ve=n,m))!==m?(f.length>Ve?(a=f.charAt(Ve),Ve++):(a=m,0===Je&&ot(w)),a!==m?n=[n,a]:(Ve=r,m)):(Ve=r,m);else t=m;return e=t!==m?f.substring(e,Ve):t,Je--,e===m&&(t=m,0===Je&&ot(Ue)),e}var jt,Et,xt,Dt=["root"];function St(){return"plural"===Dt[Dt.length-1]}function Mt(){return e&&e.captureLocation?{location:Qe()}:{}}if((t=n())!==m&&Ve===f.length)return t;throw t!==m&&Ve(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,Q=Date.now()+"@@",Y=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function ee(e,t,r,n,a,o){var i=q(e,t,r,n,a,void 0,o),u={},s=i.reduce(function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++X;return u[r]=t.value,e+(W+r)+W},"");if(!K.test(s))return J(s,u);if(!a)throw new U("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new U("Cannot format XML message without DOMParser");var c=(Z=Z||new DOMParser).parseFromString(''+s+"","text/html").getElementById(Q);if(!c)throw new U("Malformed HTML message "+s);var l=Object.keys(a).filter(function(e){return!!c.getElementsByTagName(e).length});if(!l.length)return J(s,u);var f=l.filter(function(e){return e!==e.toLowerCase()});if(f.length)throw new U("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(c.childNodes).reduce(function(e,t){return e.concat(function r(e,n,a){var t=e.tagName,o=e.outerHTML,i=e.textContent,u=e.childNodes;if(!t)return J(i||"",n);t=t.toLowerCase();var s=~Y.indexOf(t),c=a[t];if(c&&s)throw new U(t+" is a self-closing tag and can not be used, please use another tag name.");if(!u.length)return[o];var l=Array.prototype.slice.call(u).reduce(function(e,t){return e.concat(r(t,n,a))},[]);return c?"function"==typeof c?[c.apply(void 0,l)]:[c]:B(["<"+t+">"],l,[""])}(t,u,a))},[])}var te=function(){return(te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<"']/g;function se(r,e,t){var n=2 needs to exist in the component ancestry.")}function le(e,t){var r=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(r)}var fe={formats:{},messages:{},timeZone:void 0,textComponent:h.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function me(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function pe(e){var t=0