@transifex/i18next 7.1.4 → 7.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.i18next.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see browser.i18next.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TxNativeI18next=e():t.TxNativeI18next=e()}(this,(()=>(()=>{var t={37:(t,e,r)=>{var n=r(326).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,s=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",h=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function f(t,r,n,o){var i=r&&r.prototype instanceof y?r:y,s=Object.create(i.prototype);return l(s,"_invoke",function(t,r,n){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var u=A(a,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var h=p(t,r,n);if("normal"===h.type){if(o=n.done?4:2,h.arg===d)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o=4,n.method="throw",n.arg=h.arg)}}}(t,n,new x(o||[])),!0),s}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var d={};function y(){}function b(){}function g(){}var m={};l(m,u,(function(){return this}));var v=Object.getPrototypeOf,E=v&&v(v(S([])));E&&E!==i&&s.call(E,u)&&(m=E);var T=g.prototype=y.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,u){var h=p(t[o],t,i);if("throw"!==h.type){var c=h.arg,l=c.value;return l&&"object"==n(l)&&s.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(h.arg)}var o;l(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function A(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var s=i.arg;return s?s.done?(r[t.r]=s.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function H(t){this.tryEntries.push(t)}function B(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function x(t){this.tryEntries=[[-1]],t.forEach(H,this),this.reset(!0)}function S(t){if(null!=t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(s.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return b.prototype=g,l(T,"constructor",g),l(g,"constructor",b),b.displayName=l(g,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(T),t},r.awrap=function(t){return{__await:t}},_(w.prototype),l(w.prototype,h,(function(){return this})),r.AsyncIterator=w,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var s=new w(f(t,e,n,o),i);return r.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},_(T),l(T,c,"Generator"),l(T,u,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},r.values=S,x.prototype={constructor:x,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(B),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){s.type="throw",s.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,u=i[1],h=i[2];if(-1===i[0])return n("end"),!1;if(!u&&!h)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<u)return this.method="next",this.arg=e,n(u),!0;if(a<h)return n(h),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),B(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;B(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:S(t),r,n},"next"===this.method&&(this.arg=e),d}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},281:t=>{function e(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=t.apply(r,n);function a(t){e(s,o,i,a,u,"next",t)}function u(t){e(s,o,i,a,u,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},326:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},327:(t,e,r)=>{var n=r(591),o=r(840),i=r(606),s=r(740);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},345:(t,e,r)=>{var n=r(612);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},567:(t,e,r)=>{var n=r(612);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},591:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},606:(t,e,r)=>{var n=r(979);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},612:(t,e,r)=>{var n=r(326).default,o=r(977);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},632:(t,e,r)=>{var n=r(37)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},640:(t,e,r)=>{var n=r(865),o=r(711),i=r(606),s=r(769);t.exports=function(t){return n(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},643:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},711:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},740:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},769:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},840:t=>{t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,h=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){h=!0,o=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw o}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},865:(t,e,r)=>{var n=r(979);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},967:function(t,e,r){var n,o,i;t=r.nmd(t);var s,a=r(640),u=r(632),h=r(281),c=r(327),l=r(345),f=r(643),p=r(567),d=r(326);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}s=function(){return function(){var t={151:function(t){var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=e},206:function(t){function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},503:function(t,e,r){var n,o,i,s,a;n=r(939),o=r(151).utf8,i=r(206),s=r(151).bin,(a=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?s.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),u=8*t.length,h=1732584193,c=-271733879,l=-1732584194,f=271733878,p=0;p<r.length;p++)r[p]=16711935&(r[p]<<8|r[p]>>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var d=a._ff,y=a._gg,b=a._hh,g=a._ii;for(p=0;p<r.length;p+=16){var m=h,v=c,E=l,T=f;h=d(h,c,l,f,r[p+0],7,-680876936),f=d(f,h,c,l,r[p+1],12,-389564586),l=d(l,f,h,c,r[p+2],17,606105819),c=d(c,l,f,h,r[p+3],22,-1044525330),h=d(h,c,l,f,r[p+4],7,-176418897),f=d(f,h,c,l,r[p+5],12,1200080426),l=d(l,f,h,c,r[p+6],17,-1473231341),c=d(c,l,f,h,r[p+7],22,-45705983),h=d(h,c,l,f,r[p+8],7,1770035416),f=d(f,h,c,l,r[p+9],12,-1958414417),l=d(l,f,h,c,r[p+10],17,-42063),c=d(c,l,f,h,r[p+11],22,-1990404162),h=d(h,c,l,f,r[p+12],7,1804603682),f=d(f,h,c,l,r[p+13],12,-40341101),l=d(l,f,h,c,r[p+14],17,-1502002290),h=y(h,c=d(c,l,f,h,r[p+15],22,1236535329),l,f,r[p+1],5,-165796510),f=y(f,h,c,l,r[p+6],9,-1069501632),l=y(l,f,h,c,r[p+11],14,643717713),c=y(c,l,f,h,r[p+0],20,-373897302),h=y(h,c,l,f,r[p+5],5,-701558691),f=y(f,h,c,l,r[p+10],9,38016083),l=y(l,f,h,c,r[p+15],14,-660478335),c=y(c,l,f,h,r[p+4],20,-405537848),h=y(h,c,l,f,r[p+9],5,568446438),f=y(f,h,c,l,r[p+14],9,-1019803690),l=y(l,f,h,c,r[p+3],14,-187363961),c=y(c,l,f,h,r[p+8],20,1163531501),h=y(h,c,l,f,r[p+13],5,-1444681467),f=y(f,h,c,l,r[p+2],9,-51403784),l=y(l,f,h,c,r[p+7],14,1735328473),h=b(h,c=y(c,l,f,h,r[p+12],20,-1926607734),l,f,r[p+5],4,-378558),f=b(f,h,c,l,r[p+8],11,-2022574463),l=b(l,f,h,c,r[p+11],16,1839030562),c=b(c,l,f,h,r[p+14],23,-35309556),h=b(h,c,l,f,r[p+1],4,-1530992060),f=b(f,h,c,l,r[p+4],11,1272893353),l=b(l,f,h,c,r[p+7],16,-155497632),c=b(c,l,f,h,r[p+10],23,-1094730640),h=b(h,c,l,f,r[p+13],4,681279174),f=b(f,h,c,l,r[p+0],11,-358537222),l=b(l,f,h,c,r[p+3],16,-722521979),c=b(c,l,f,h,r[p+6],23,76029189),h=b(h,c,l,f,r[p+9],4,-640364487),f=b(f,h,c,l,r[p+12],11,-421815835),l=b(l,f,h,c,r[p+15],16,530742520),h=g(h,c=b(c,l,f,h,r[p+2],23,-995338651),l,f,r[p+0],6,-198630844),f=g(f,h,c,l,r[p+7],10,1126891415),l=g(l,f,h,c,r[p+14],15,-1416354905),c=g(c,l,f,h,r[p+5],21,-57434055),h=g(h,c,l,f,r[p+12],6,1700485571),f=g(f,h,c,l,r[p+3],10,-1894986606),l=g(l,f,h,c,r[p+10],15,-1051523),c=g(c,l,f,h,r[p+1],21,-2054922799),h=g(h,c,l,f,r[p+8],6,1873313359),f=g(f,h,c,l,r[p+15],10,-30611744),l=g(l,f,h,c,r[p+6],15,-1560198380),c=g(c,l,f,h,r[p+13],21,1309151649),h=g(h,c,l,f,r[p+4],6,-145523070),f=g(f,h,c,l,r[p+11],10,-1120210379),l=g(l,f,h,c,r[p+2],15,718787259),c=g(c,l,f,h,r[p+9],21,-343485551),h=h+m>>>0,c=c+v>>>0,l=l+E>>>0,f=f+T>>>0}return n.endian([h,c,l,f])})._ff=function(t,e,r,n,o,i,s){var a=t+(e&r|~e&n)+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._gg=function(t,e,r,n,o,i,s){var a=t+(e&n|r&~n)+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._hh=function(t,e,r,n,o,i,s){var a=t+(e^r^n)+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._ii=function(t,e,r,n,o,i,s){var a=t+(r^(e|~n))+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(a(t,e));return e&&e.asBytes?r:e&&e.asString?s.bytesToString(r):n.bytesToHex(r)}},939:function(t){var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?r.push(e.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&r.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(t.charAt(n))>>>6-2*o);return r}},t.exports=r},945:function(t,e,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,u="ArrayBuffer"in n;if(u)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function b(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function g(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=g(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&s&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=b(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return b(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(s)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=b(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,r=g(e=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(t,e){t=l(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},y.prototype.delete=function(t){delete this.map[l(t)]},y.prototype.get=function(t){return t=l(t),this.has(t)?this.map[t]:null},y.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},y.prototype.set=function(t,e){this.map[l(t)]=f(e)},y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},y.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},y.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},i&&(y.prototype[Symbol.iterator]=y.prototype.entries);var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(t,e){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,i=(e=e||{}).body;if(t instanceof _){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new y(e.headers)),this.method=(o=(r=e.method||this.method||"GET").toUpperCase(),T.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function A(t,e){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},E.call(_.prototype),E.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var H=[301,302,303,307,308];A.redirect=function(t,e){if(-1===H.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function B(t,r){return new Promise((function(o,i){var a=new _(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function c(){h.abort()}if(h.onload=function(){var t,e,r={statusText:h.statusText,headers:(t=h.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}})),e)};0===a.url.indexOf("file://")&&(h.status<200||h.status>599)?r.status=200:r.status=h.status,r.url="responseURL"in h?h.responseURL:r.headers.get("X-Request-URL");var n="response"in h?h.response:h.responseText;setTimeout((function(){o(new A(n,r))}),0)},h.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},h.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},h.onabort=function(){setTimeout((function(){i(new e.DOMException("Aborted","AbortError"))}),0)},h.open(a.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?h.withCredentials=!0:"omit"===a.credentials&&(h.withCredentials=!1),"responseType"in h&&(s?h.responseType="blob":u&&(h.responseType="arraybuffer")),r&&"object"==d(r.headers)&&!(r.headers instanceof y||n.Headers&&r.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(r.headers).forEach((function(t){p.push(l(t)),h.setRequestHeader(t,f(r.headers[t]))})),a.headers.forEach((function(t,e){-1===p.indexOf(e)&&h.setRequestHeader(e,t)}))}else a.headers.forEach((function(t,e){h.setRequestHeader(e,t)}));a.signal&&(a.signal.addEventListener("abort",c),h.onreadystatechange=function(){4===h.readyState&&a.signal.removeEventListener("abort",c)}),h.send(void 0===a._bodyInit?null:a._bodyInit)}))}B.polyfill=!0,n.fetch||(n.fetch=B,n.Headers=y,n.Request=_,n.Response=A),e.Headers=y,e.Request=_,e.Response=A,e.fetch=B}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":d(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==("undefined"==typeof window?"undefined":d(window)))return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{FETCHING_LOCALES:function(){return re},FETCHING_TRANSLATIONS:function(){return Qt},LOCALES_FETCHED:function(){return ne},LOCALES_FETCH_FAILED:function(){return oe},LOCALE_CHANGED:function(){return ee},MessageFormatRenderer:function(){return Te},PseudoTranslationPolicy:function(){return ge},SourceErrorPolicy:function(){return ve},SourceStringPolicy:function(){return me},TRANSLATIONS_FETCHED:function(){return $t},TRANSLATIONS_FETCH_FAILED:function(){return te},ThrowErrorPolicy:function(){return Ee},createNativeInstance:function(){return _e},escape:function(){return Zt},explodePlurals:function(){return fe},generateHashedKey:function(){return zt},generateKey:function(){return Yt},implodePlurals:function(){return pe},isPluralized:function(){return de},isString:function(){return Wt},normalizeLocale:function(){return qt},offEvent:function(){return ae},onEvent:function(){return se},sendEvent:function(){return ue},sleep:function(){return Jt},t:function(){return Ae},tx:function(){return we}});var t=r(945),e=r.n(t),o=function(){return p((function t(){f(this,t),this.translationsByLocale={}}),[{key:"update",value:function(t,e){var r=this.translationsByLocale[t]||{};this.translationsByLocale[t]=g(g({},r),e)}},{key:"getTranslations",value:function(t){return this.translationsByLocale[t]||{}}},{key:"hasTranslations",value:function(t){return!!this.translationsByLocale[t]}},{key:"isStale",value:function(t){return!this.hasTranslations(t)}},{key:"get",value:function(t,e){return this.getTranslations(e)[t]||""}}])}(),i=function(){return p((function t(){f(this,t)}),[{key:"handle",value:function(t,e,r,n){return e}}])}(),s=function(){return p((function t(){f(this,t)}),[{key:"handle",value:function(t,e,r){return t}}])}(),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},l(t,e)};function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var m=function(){return m=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)};function v(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function E(t,e){var r=e&&e.cache?e.cache:L,n=e&&e.serializer?e.serializer:O;return(e&&e.strategy?e.strategy:A)(t,{cache:r,serializer:n})}function T(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),s=e.get(i);return void 0===s&&(s=t.call(this,n),e.set(i,s)),s}function _(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function w(t,e,r,n,o){return r.bind(e,t,n,o)}function A(t,e){return w(t,this,1===t.length?T:_,e.cache.create(),e.serializer)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var H,B,x,S,O=function(){return JSON.stringify(arguments)},P=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),L={create:function(){return new P}},I={variadic:function(t,e){return w(t,this,_,e.cache.create(),e.serializer)},monadic:function(t,e){return w(t,this,T,e.cache.create(),e.serializer)}};function N(t){return t.type===B.literal}function C(t){return t.type===B.argument}function R(t){return t.type===B.number}function M(t){return t.type===B.date}function k(t){return t.type===B.time}function U(t){return t.type===B.select}function D(t){return t.type===B.plural}function G(t){return t.type===B.pound}function j(t){return t.type===B.tag}function F(t){return!(!t||"object"!=d(t)||t.type!==x.number)}function V(t){return!(!t||"object"!=d(t)||t.type!==x.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(H||(H={})),(S=B||(B={}))[S.literal=0]="literal",S[S.argument=1]="argument",S[S.number=2]="number",S[S.date=3]="date",S[S.time=4]="time",S[S.select=5]="select",S[S.plural=6]="plural",S[S.pound=7]="pound",S[S.tag=8]="tag",function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(x||(x={}));var X=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,K=/(?:[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 Y(t){var e={};return t.replace(K,(function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.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":e.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":e.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":e.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.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":e.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""})),e}var z=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Z=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,W=/^(@+)?(\+|#+)?[rs]?$/g,q=/(\*)(0+)|(#+)(0+)|(0+)/g,J=/^(0+)$/;function Q(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(W,(function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function $(t){switch(t){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 tt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!J.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function et(t){return $(t)||{}}function rt(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=m(m(m({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return m(m({},t),et(e))}),{}));continue;case"engineering":e=m(m(m({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return m(m({},t),et(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(q,(function(t,r,n,o,i,s){if(r)e.minimumIntegerDigits=n.length;else{if(o&&i)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(J.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(Z.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Z,(function(t,r,n,o,i,s){return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&s?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?e=m(m({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=m(m({},e),Q(i)))}else if(W.test(o.stem))e=m(m({},e),Q(o.stem));else{var s=$(o.stem);s&&(e=m(m({},e),s));var a=tt(o.stem);a&&(e=m(m({},e),a))}}return e}var nt,ot={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function it(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){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=t.language;return"root"!==n&&(r=t.maximize().region),(ot[r||""]||ot[n||""]||ot["".concat(n,"-001")]||ot["001"])[0]}var st=new RegExp("^".concat(X.source,"*")),at=new RegExp("".concat(X.source,"*$"));function ut(t,e){return{start:t,end:e}}var ht=!!String.prototype.startsWith&&"_a".startsWith("a",1),ct=!!String.fromCodePoint,lt=!!Object.fromEntries,ft=!!String.prototype.codePointAt,pt=!!String.prototype.trimStart,dt=!!String.prototype.trimEnd,yt=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},bt=!0;try{bt="a"===(null===(nt=At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===nt?void 0:nt[0])}catch(t){bt=!1}var gt,mt=ht?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},vt=ct?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>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},Et=lt?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Tt=ft?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},_t=pt?function(t){return t.trimStart()}:function(t){return t.replace(st,"")},wt=dt?function(t){return t.trimEnd()}:function(t){return t.replace(at,"")};function At(t,e){return new RegExp(t,e)}if(bt){var Ht=At("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gt=function(t,e){var r;return Ht.lastIndex=e,null!==(r=Ht.exec(t)[1])&&void 0!==r?r:""}}else gt=function(t,e){for(var r=[];;){var n=Tt(t,e);if(void 0===n||Ot(n)||Pt(n))break;r.push(n),e+=n>=65536?2:1}return vt.apply(void 0,r)};var Bt,xt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,ut(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&St(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:B.pound,location:ut(s,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:B.literal,value:"<".concat(n,"/>"),location:ut(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!St(this.char()))return this.error(H.INVALID_TAG,ut(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(H.UNMATCHED_CLOSING_TAG,ut(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:B.tag,value:n,children:i,location:ut(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,ut(s,this.clonePosition())))}return this.error(H.UNCLOSED_TAG,ut(r,this.clonePosition()))}return this.error(H.INVALID_TAG,ut(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=ut(r,this.clonePosition());return{val:{type:B.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(St(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return vt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),vt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(H.EMPTY_ARGUMENT,ut(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(H.MALFORMED_ARGUMENT,ut(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:B.argument,value:n,location:ut(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(H.MALFORMED_ARGUMENT,ut(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=gt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:ut(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,ut(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=wt(g.val)).length)return this.error(H.EXPECT_ARGUMENT_STYLE,ut(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:ut(h,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var c=ut(n,this.clonePosition());if(u&&mt(null==u?void 0:u.style,"::",0)){var l=_t(u.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?g:{val:{type:B.number,value:r,location:c,style:g.val},err:null};if(0===l.length)return this.error(H.EXPECT_DATE_TIME_SKELETON,c);var f=l;this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),u=it(e);for("H"!=u&&"k"!=u||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=u+r}else r+="J"===o?"H":o}return r}(l,this.locale));var p={type:x.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Y(f):{}};return{val:{type:"date"===s?B.date:B.time,value:r,location:c,style:p},err:null}}return{val:{type:"number"===s?B.number:"date"===s?B.date:B.time,value:r,location:c,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,ut(d,m({},d)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),y=this.parseIdentifierIfPossible(),b=g.val}var v,E=this.tryParsePluralOrSelectOptions(t,s,e,y);if(E.err)return E;if((v=this.tryParseArgumentClose(n)).err)return v;var T=ut(n,this.clonePosition());return"select"===s?{val:{type:B.select,value:r,options:Et(E.val),location:T},err:null}:{val:{type:B.plural,value:r,options:Et(E.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:T},err:null};default:return this.error(H.INVALID_ARGUMENT_TYPE,ut(i,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ut(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(z).filter((function(t){return t.length>0}));r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,u=s;a<u.length;a++)if(0===u[a].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:s})}return e}(t)}catch(t){return this.error(H.INVALID_NUMBER_SKELETON,e)}return{val:{type:x.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?rt(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o,i=!1,s=[],a=new Set,u=n.value,h=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;h=ut(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}if(a.has(u))return this.error("select"===e?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ut(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([u,{value:p.val,location:ut(f,this.clonePosition())}]),a.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===s.length?this.error("select"===e?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(H.MISSING_OTHER_CLAUSE,ut(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}var a=ut(n,this.clonePosition());return o?yt(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Tt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(mt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ot(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function St(t){return t>=97&&t<=122||t>=65&&t<=90}function Ot(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Pt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function Lt(t){t.forEach((function(t){if(delete t.location,U(t)||D(t))for(var e in t.options)delete t.options[e].location,Lt(t.options[e].value);else R(t)&&F(t.style)||(M(t)||k(t))&&V(t.style)?delete t.style.location:j(t)&&Lt(t.children)}))}function It(t,e){void 0===e&&(e={}),e=m({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new xt(t,e).parse();if(r.err){var n=SyntaxError(H[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||Lt(r.val),r.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Bt||(Bt={}));var Nt,Ct=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return b(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Rt=function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Bt.INVALID_VALUE,o)||this}return b(e,t),e}(Ct),Mt=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),Bt.INVALID_VALUE,n)||this}return b(e,t),e}(Ct),kt=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),Bt.MISSING_VALUE,r)||this}return b(e,t),e}(Ct);function Ut(t){return"function"==typeof t}function Dt(t,e,r,n,o,i,s){if(1===t.length&&N(t[0]))return[{type:Nt.literal,value:t[0].value}];for(var a=[],u=0,h=t;u<h.length;u++){var c=h[u];if(N(c))a.push({type:Nt.literal,value:c.value});else if(G(c))"number"==typeof i&&a.push({type:Nt.literal,value:r.getNumberFormat(e).format(i)});else{var l=c.value;if(!o||!(l in o))throw new kt(l,s);var f=o[l];if(C(c))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Nt.literal:Nt.object,value:f});else if(M(c)){var p="string"==typeof c.style?n.date[c.style]:V(c.style)?c.style.parsedOptions:void 0;a.push({type:Nt.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(k(c))p="string"==typeof c.style?n.time[c.style]:V(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:Nt.literal,value:r.getDateTimeFormat(e,p).format(f)});else if(R(c))(p="string"==typeof c.style?n.number[c.style]:F(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Nt.literal,value:r.getNumberFormat(e,p).format(f)});else{if(j(c)){var d=c.children,y=c.value,b=o[y];if(!Ut(b))throw new Mt(y,"function",s);var g=b(Dt(d,e,r,n,o,i).map((function(t){return t.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(t){return{type:"string"==typeof t?Nt.literal:Nt.object,value:t}})))}if(U(c)){if(!(m=c.options[f]||c.options.other))throw new Rt(c.value,f,Object.keys(c.options),s);a.push.apply(a,Dt(m.value,e,r,n,o))}else if(D(c)){var m;if(!(m=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new Ct('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Bt.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));m=c.options[v]||c.options.other}if(!m)throw new Rt(c.value,f,Object.keys(c.options),s);a.push.apply(a,Dt(m.value,e,r,n,o,f-(c.offset||0)))}}}}return(E=a).length<2?E:E.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===Nt.literal&&e.type===Nt.literal?r.value+=e.value:t.push(e),t}),[]);var E}function Gt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Nt||(Nt={}));var jt=function(){function t(e,r,n,o){void 0===r&&(r=t.defaultLocale);var i,s,a,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===Nt.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Dt(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=u.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=o||{},c=(h.formatters,function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(h,["formatters"]));this.ast=t.__parse(e,m(m({},c),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,(a=n)?Object.keys(s).reduce((function(t,e){var r,n;return t[e]=(r=s[e],(n=a[e])?m(m(m({},r||{}),n||{}),Object.keys(r).reduce((function(t,e){return t[e]=m(m({},r[e]),n[e]||{}),t}),{})):r),t}),m({},s)):s),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:E((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,v([void 0],e,!1)))}),{cache:Gt(i.number),strategy:I.variadic}),getDateTimeFormat:E((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,v([void 0],e,!1)))}),{cache:Gt(i.dateTime),strategy:I.variadic}),getPluralRules:E((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,v([void 0],e,!1)))}),{cache:Gt(i.pluralRules),strategy:I.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=It,t.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"}}},t}(),Ft=jt,Vt=function(){return p((function t(){f(this,t)}),[{key:"render",value:function(t,e,r){var n,o=(e||"").split("_")[0];try{n=new Ft(t,o,void 0,{ignoreTag:!0})}catch(e){n=new Ft(t,void 0,void 0,{ignoreTag:!0})}return n.format(r)}}])}(),Xt=r(503),Kt=r.n(Xt);function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e._key?e._key:e._context?"".concat(t,"::").concat(e._context):"".concat(t)}function zt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e._key)return e._key;var r="";return e._context&&(r=(r=e._context).replace(/,/g,":")),Kt()("5:".concat(t,":").concat(r))}function Zt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Wt(t){return"[object String]"===Object.prototype.toString.call(t)}function qt(t){var e=t.split("-");return 1===e.length?t:[e[0],e[1].toUpperCase()].join("_")}function Jt(t){return new Promise((function(e){setTimeout((function(){e()}),t)}))}var Qt="FETCHING_TRANSLATIONS",$t="TRANSLATIONS_FETCHED",te="TRANSLATIONS_FETCH_FAILED",ee="LOCALE_CHANGED",re="FETCHING_LOCALES",ne="LOCALES_FETCHED",oe="LOCALES_FETCH_FAILED",ie={};function se(t,e){ie[t]=ie[t]||[],ie[t].push(e)}function ae(t,e){var r=ie[t]||[],n=r.indexOf(e);-1!==n&&r.splice(n,1)}function ue(t,e,r){(ie[t]||[]).forEach((function(t){t(e,r)}))}var he=["zero","one","two","few","many","other"];function ce(t){var e=t.indexOf("{");if(-1===e)return[null,null];var r=t.substring(0,e).trim();if("="===r[0]){if(r=r.substring(1),Number.isNaN(parseInt(r,10))||parseInt(r,10)!==parseFloat(r))return[null,null];if(r=parseInt(r,10),void 0===(r=he[r]))return[null,null]}else if(-1===he.indexOf(r))return[null,null];return[r,t.substring(e)]}function le(t){for(var e=0,r=!1,n=0;n<t.length;){var o=t[n];if("'"===o){var i=t[n+1];"'"===i?n+=1:r?r=!1:"{"!==i&&"}"!==i||(r=!0)}else if("{"===o)r||(e+=1);else if("}"===o&&(r||(e-=1),0===e))return[t.substring(1,n),t.substring(n+1).trim()];n+=1}return[null,null]}function fe(t){var e,r,n,o,i=[null,{other:t}],s=function(t){if(!(t.length>1&&"{"===t[0]&&"}"===t[t.length-1]))return[null,null];var e=t.indexOf(",");if(-1===e)return[null,null];var r=t.indexOf(",",e+1);if(-1===r)return[null,null];var n=t.substring(1,e).trim(),o=t.substring(e+1,r).trim();return/^[\w_]+$/.test(n)&&"plural"===o?[n,t.substring(r+1,t.length-1).trim()]:[null,null]}(t),a=c(s,2),u=a[0],h=a[1];if(null==u)return i;var l,f,p={};if(e=ce(h),l=(r=c(e,2))[0],h=r[1],null==l)return i;if(n=le(h.trim()),f=(o=c(n,2))[0],h=o[1],null==f)return i;for(p[l]=f;h.trim();){var d,y,b,g;if(d=ce(h.trim()),l=(y=c(d,2))[0],h=y[1],null==l)return i;if(b=le(h.trim()),f=(g=c(b,2))[0],h=g[1],null==f)return i;p[l]=f}return(1!==Object.keys(p).length||"other"in p)&&"one"in p&&"other"in p?[u,p]:i}function pe(t){var e,r=["{".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"???",", plural,")],n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}(he);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o in t){var i=t[o];r.push(" ".concat(o," {").concat(i,"}"))}}}catch(t){n.e(t)}finally{n.f()}return r.push("}"),r.join("")}function de(t){var e=fe(t)[1];return Object.keys(e).length>1}var ye=function(){return p((function t(){f(this,t),this.cdsHost="https://cds.svc.transifex.net",this.token="",this.secret="",this.filterTags="",this.filterStatus="",this.fetchTimeout=0,this.fetchInterval=250,this.cache=new o,this.missingPolicy=new s,this.errorPolicy=new i,this.stringRenderer=new Vt,this.currentLocale="",this.locales=[],this.languages=[],this.childInstances=[]}),[{key:"init",value:function(t){var e=this;["cdsHost","token","secret","cache","filterTags","filterStatus","fetchTimeout","fetchInterval","missingPolicy","errorPolicy","stringRenderer","currentLocale"].forEach((function(r){void 0!==t[r]&&(e[r]=t[r])})),this.fetchedTags={}}},{key:"translate",value:function(t,e){return this.translateLocale(this.currentLocale,t,e)}},{key:"translateLocale",value:function(t,e,r){try{var n=this.cache.get(Yt(e,r),t);n||(n=this.cache.get(zt(e,r),t)),n&&n.startsWith("{???")&&de(e)&&(n="{".concat(e.substring(1,e.indexOf(",")).trim()).concat(n.substring(4)));var o=!1;if(n||(o=!0,n=e),r&&r._escapeVars){var i={};Object.keys(r).forEach((function(t){var e=r[t];i[t]=Wt(e)?Zt(e):e})),n=this.stringRenderer.render(n,t,i)}else n=this.stringRenderer.render(n,t,r);return o&&t&&(n=this.missingPolicy.handle(n,t,r)),Wt(n)||(n="".concat(n)),n}catch(n){return this.errorPolicy.handle(n,"".concat(e),t,r)}}},{key:"fetchTranslations",value:(m=h(u.mark((function t(r){var n,o,i,s,a,h,c,l,f,p,d=this,y=arguments;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=(n=y.length>1&&void 0!==y[1]?y[1]:{}).filterTags||this.filterTags,n.refresh||this.cache.isStale(r)||!(!o&&this.cache.hasTranslations(r)||o&&-1!==(this.fetchedTags[r]||[]).indexOf(o))){t.next=4;break}return t.abrupt("return");case 4:o&&(r in this.fetchedTags||(this.fetchedTags[r]=[]),-1===this.fetchedTags[r].indexOf(o)&&this.fetchedTags[r].push(o)),i=function(t){return ue(te,{localeCode:r,filterTags:o},d),t},t.prev=6,ue(Qt,{localeCode:r,filterTags:o},this),a=202,h=Date.now();case 10:if(202!==a){t.next=31;break}return c="".concat(this.cdsHost,"/content/").concat(r),l=[],o&&l.push("filter[tags]=".concat(o)),this.filterStatus&&l.push("filter[status]=".concat(this.filterStatus)),l.length&&(c="".concat(c,"?").concat(l.join("&"))),t.next=18,e()(c,{method:"GET",headers:{Authorization:"Bearer ".concat(this.token),"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.1.4"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0});case 18:if((s=t.sent).ok){t.next=23;break}return t.next=22,this._fetchError(s);case 22:throw t.sent;case 23:if(a=s.status,!(this.fetchTimeout>0&&Date.now()-h>=this.fetchTimeout)){t.next=25;break}throw i(new Error("Fetch translations timeout"));case 25:if(t.t0=202===a&&this.fetchInterval>0,!t.t0){t.next=29;break}return t.next=29,Jt(this.fetchInterval);case 29:t.next=10;break;case 31:return t.next=33,s.json();case 33:if((f=t.sent)&&f.data){t.next=36;break}throw i(new Error("Could not fetch translations"));case 36:p={},Object.keys(f.data).forEach((function(t){f.data[t].string&&(p[t]=f.data[t].string)})),this.cache.update(r,p),ue($t,{localeCode:r,filterTags:o},this),t.next=43;break;case 40:throw t.prev=40,t.t1=t.catch(6),i(t.t1);case 43:case"end":return t.stop()}}),t,this,[[6,40]])}))),function(t){return m.apply(this,arguments)})},{key:"invalidateCDS",value:(b=h(u.mark((function t(){var r,n,o,i=arguments;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>0&&void 0!==i[0]?i[0]:{},this.token){t.next=3;break}throw new Error("token is not defined");case 3:if(this.secret){t.next=5;break}throw new Error("secret is not defined");case 5:return n=r.purge?"purge":"invalidate",t.next=8,e()("".concat(this.cdsHost,"/").concat(n),{method:"POST",headers:{Authorization:"Bearer ".concat(this.token,":").concat(this.secret),"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.1.4"}});case 8:if((o=t.sent).ok){t.next=13;break}return t.next=12,this._fetchError(o);case 12:throw t.sent;case 13:return t.next=15,o.json();case 15:return t.abrupt("return",t.sent);case 16:case"end":return t.stop()}}),t,this)}))),function(){return b.apply(this,arguments)})},{key:"pushSource",value:(y=h(u.mark((function t(r){var n,o,i,s,a,h,c,l,f,p=arguments;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:{},this.token){t.next=3;break}throw new Error("token is not defined");case 3:if(this.secret){t.next=5;break}throw new Error("secret is not defined");case 5:return o={Authorization:"Bearer ".concat(this.token,":").concat(this.secret),"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.1.4"},t.next=8,e()("".concat(this.cdsHost,"/content"),{method:"POST",headers:o,body:JSON.stringify({data:r,meta:{purge:!!n.purge,override_tags:!!n.overrideTags,override_occurrences:!!n.overrideOccurrences}})});case 8:if((i=t.sent).ok){t.next=13;break}return t.next=12,this._fetchError(i);case 12:throw t.sent;case 13:return t.next=15,i.json();case 15:if(s=t.sent,a="".concat(this.cdsHost).concat(s.data.links.job),!n.noWait){t.next=19;break}return t.abrupt("return",{jobUrl:a});case 19:h={status:""};case 20:return t.next=22,Jt(1500);case 22:return t.next=24,e()(a,{method:"GET",headers:o});case 24:if((c=t.sent).ok){t.next=29;break}return t.next=28,this._fetchError(c);case 28:throw t.sent;case 29:return t.next=31,c.json();case 31:l=t.sent,f=l.data,h=g(g({},f.details||{}),{},{errors:f.errors||[],status:f.status});case 34:if("pending"===h.status||"processing"===h.status){t.next=20;break}case 35:return t.abrupt("return",g({jobUrl:a},h));case 36:case"end":return t.stop()}}),t,this)}))),function(t){return y.apply(this,arguments)})},{key:"getLocales",value:(d=h(u.mark((function t(){var r,n,o,i,s,h=this,c=arguments;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((c.length>0&&void 0!==c[0]?c[0]:{}).refresh||!(this.locales.length>0)){t.next=3;break}return t.abrupt("return",a(this.locales));case 3:if(this.token){t.next=5;break}return t.abrupt("return",[]);case 5:r=function(t){return ue(oe,null,h),t},t.prev=6,ue(re,null,this),o=202,i=Date.now();case 10:if(202!==o){t.next=26;break}return t.next=13,e()("".concat(this.cdsHost,"/languages"),{method:"GET",headers:{Authorization:"Bearer ".concat(this.token),"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.1.4"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0});case 13:if((n=t.sent).ok){t.next=18;break}return t.next=17,this._fetchError(n);case 17:throw t.sent;case 18:if(o=n.status,!(this.fetchTimeout>0&&Date.now()-i>=this.fetchTimeout)){t.next=20;break}throw r(new Error("Get locales timeout"));case 20:if(t.t0=202===o&&this.fetchInterval>0,!t.t0){t.next=24;break}return t.next=24,Jt(this.fetchInterval);case 24:t.next=10;break;case 26:return t.next=28,n.json();case 28:if((s=t.sent)&&s.data){t.next=31;break}throw r(new Error("Could not fetch languages"));case 31:this.languages=s.data,this.locales=this.languages.map((function(t){return t.code})),ue(ne,null,this),t.next=37;break;case 34:throw t.prev=34,t.t1=t.catch(6),r(t.t1);case 37:return t.abrupt("return",a(this.locales));case 38:case"end":return t.stop()}}),t,this,[[6,34]])}))),function(){return d.apply(this,arguments)})},{key:"getCurrentLocale",value:function(){return this.currentLocale}},{key:"isCurrent",value:function(t){return t===this.currentLocale}},{key:"setCurrentLocale",value:(l=h(u.mark((function t(e){return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isCurrent(e)){t.next=5;break}return t.next=3,this._syncInstances(this.childInstances);case 3:t.next=16;break;case 5:if(e){t.next=10;break}return this.currentLocale="",t.next=9,this._syncInstances(this.childInstances);case 9:return t.abrupt("return",void ue(ee,this.currentLocale,this));case 10:return t.next=12,this.fetchTranslations(e);case 12:return this.currentLocale=e,t.next=15,this._syncInstances(this.childInstances);case 15:ue(ee,e,this);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"getLanguages",value:(c=h(u.mark((function t(){var e,r=arguments;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t.next=3,this.getLocales(e);case 3:return t.abrupt("return",a(this.languages));case 4:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"controllerOf",value:(n=h(u.mark((function t(e){return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e!==this){t.next=2;break}throw new Error("Cannot add self as instance");case 2:if(-1===e.childInstances.indexOf(this)){t.next=4;break}throw new Error("Cycle reference error, instance is controller of this");case 4:return this.childInstances.push(e),t.next=7,this._syncInstances([e]);case 7:return t.abrupt("return",e);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"_syncInstances",value:(r=h(u.mark((function t(e){var r,n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this.getCurrentLocale())){t.next=15;break}n=0;case 3:if(!(n<e.length)){t.next=15;break}if(e[n].getCurrentLocale()===r){t.next=12;break}return t.prev=5,t.next=8,e[n].fetchTranslations(r);case 8:t.next=12;break;case 10:t.prev=10,t.t0=t.catch(5);case 12:n++,t.next=3;break;case 15:e.forEach((function(t){t.getCurrentLocale()!==r&&(t.currentLocale=r,ue(ee,r,t))}));case 16:case"end":return t.stop()}}),t,this,[[5,10]])}))),function(t){return r.apply(this,arguments)})},{key:"_fetchError",value:(t=h(u.mark((function t(e){var r;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.text();case 3:return r=t.sent,t.abrupt("return",new Error("HTTP ".concat(e.status,": ").concat(r)));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",new Error("HTTP error ".concat(e.status)));case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),function(e){return t.apply(this,arguments)})}]);var t,r,n,c,l,d,y,b,m}(),be={a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},ge=function(){return p((function t(){f(this,t)}),[{key:"handle",value:function(t,e,r){return t.split(/__txnative__/).map((function(t){for(var e="",r=0;r<t.length;r+=1){var n=t.charAt(r);if(be[n]){var o=n.toLowerCase();e+="a"===o||"e"===o||"o"===o||"u"===o?be[n]+be[n]:be[n]}else e+=n}return e})).join("__txnative__")}}])}(),me=s,ve=i,Ee=function(){return p((function t(){f(this,t)}),[{key:"handle",value:function(t,e,r,n){throw t||new Error('Error translating "'.concat(e,'"'))}}])}(),Te=Vt,_e=function(t){var e=new ye;return e.t=e.translate.bind(e),t&&e.init(t),e},we=new ye,Ae=we.translate.bind(we)}(),n}()},"object"==d(e)&&"object"==d(t)?t.exports=s():(o=[],void 0===(i="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=i))},977:(t,e,r)=>{var n=r(326).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},979:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}function o(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function i(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,e(o.key),o)}}r.r(n),r.d(n,{TransifexI18next:()=>h});var s=r(967);function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var h=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="backend",this.options=e||{},this.init()},(e=[{key:"init",value:function(t,e){this.options=u(u({},this.options||{}),e||{}),this.tx=(0,s.createNativeInstance)(this.options)}},{key:"read",value:function(t,e,r){var n=this;this.tx.fetchTranslations(t).then((function(){r(null,n._convertPlurals(n.tx.cache.getTranslations(t)))})).catch((function(t){r(t,null)}))}},{key:"readMulti",value:function(t,e,r){var n=this,o=[];t.forEach((function(t){o.push(n.tx.fetchTranslations(t))})),Promise.all(o).then((function(){var e={};t.forEach((function(t){e[t]={translations:n._convertPlurals(n.tx.cache.getTranslations(t))}}))})).catch((function(t){r(t,null)}))}},{key:"_convertPlurals",value:function(t){var e={};return Object.keys(t).forEach((function(r){if(r.endsWith("_txplural")){var n=r.slice(0,-9),o=(0,s.explodePlurals)(t[r].replace("{???,","{count,"))[1];Object.keys(o).forEach((function(t){e["".concat(n,"_").concat(t)]=o[t]}))}else e[r]=t[r]})),e}}])&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()})(),n})()));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TxNativeI18next=e():t.TxNativeI18next=e()}(this,()=>(()=>{var t={967(t,e,r){var n,o,i;t=r.nmd(t);var s,a=r(640),u=r(632),c=r(281),h=r(327),l=r(345),f=r(643),p=r(567),d=r(326);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}s=function(){return function(){var t={151:function(t){var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=e},945:function(t,e,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,u="ArrayBuffer"in n;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function b(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function v(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function m(t){var e=new FileReader,r=v(e);return e.readAsArrayBuffer(t),r}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&s&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||h(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=b(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return b(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(s)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=b(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,r=v(e=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(t,e){t=l(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},y.prototype.delete=function(t){delete this.map[l(t)]},y.prototype.get=function(t){return t=l(t),this.has(t)?this.map[t]:null},y.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},y.prototype.set=function(t,e){this.map[l(t)]=f(e)},y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},y.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),p(t)},y.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),p(t)},y.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),p(t)},i&&(y.prototype[Symbol.iterator]=y.prototype.entries);var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(t,e){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,i=(e=e||{}).body;if(t instanceof _){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new y(e.headers)),this.method=(o=(r=e.method||this.method||"GET").toUpperCase(),T.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function A(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},E.call(_.prototype),E.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var H=[301,302,303,307,308];x.redirect=function(t,e){if(-1===H.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function w(t,r){return new Promise(function(o,i){var a=new _(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}if(c.onload=function(){var t,e,r={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}}),e)};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){o(new x(n,r))},0)},c.onerror=function(){setTimeout(function(){i(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){i(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){i(new e.DOMException("Aborted","AbortError"))},0)},c.open(a.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(s?c.responseType="blob":u&&(c.responseType="arraybuffer")),r&&"object"==d(r.headers)&&!(r.headers instanceof y||n.Headers&&r.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(r.headers).forEach(function(t){p.push(l(t)),c.setRequestHeader(t,f(r.headers[t]))}),a.headers.forEach(function(t,e){-1===p.indexOf(e)&&c.setRequestHeader(e,t)})}else a.headers.forEach(function(t,e){c.setRequestHeader(e,t)});a.signal&&(a.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",h)}),c.send(void 0===a._bodyInit?null:a._bodyInit)})}w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=y,n.Request=_,n.Response=x),e.Headers=y,e.Request=_,e.Response=x,e.fetch=w}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},939:function(t){var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?r.push(e.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&r.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(t.charAt(n))>>>6-2*o);return r}},t.exports=r},206:function(t){function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},503:function(t,e,r){var n,o,i,s,a;n=r(939),o=r(151).utf8,i=r(206),s=r(151).bin,(a=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?s.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),u=8*t.length,c=1732584193,h=-271733879,l=-1732584194,f=271733878,p=0;p<r.length;p++)r[p]=16711935&(r[p]<<8|r[p]>>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var d=a._ff,y=a._gg,b=a._hh,v=a._ii;for(p=0;p<r.length;p+=16){var m=c,g=h,E=l,T=f;c=d(c,h,l,f,r[p+0],7,-680876936),f=d(f,c,h,l,r[p+1],12,-389564586),l=d(l,f,c,h,r[p+2],17,606105819),h=d(h,l,f,c,r[p+3],22,-1044525330),c=d(c,h,l,f,r[p+4],7,-176418897),f=d(f,c,h,l,r[p+5],12,1200080426),l=d(l,f,c,h,r[p+6],17,-1473231341),h=d(h,l,f,c,r[p+7],22,-45705983),c=d(c,h,l,f,r[p+8],7,1770035416),f=d(f,c,h,l,r[p+9],12,-1958414417),l=d(l,f,c,h,r[p+10],17,-42063),h=d(h,l,f,c,r[p+11],22,-1990404162),c=d(c,h,l,f,r[p+12],7,1804603682),f=d(f,c,h,l,r[p+13],12,-40341101),l=d(l,f,c,h,r[p+14],17,-1502002290),c=y(c,h=d(h,l,f,c,r[p+15],22,1236535329),l,f,r[p+1],5,-165796510),f=y(f,c,h,l,r[p+6],9,-1069501632),l=y(l,f,c,h,r[p+11],14,643717713),h=y(h,l,f,c,r[p+0],20,-373897302),c=y(c,h,l,f,r[p+5],5,-701558691),f=y(f,c,h,l,r[p+10],9,38016083),l=y(l,f,c,h,r[p+15],14,-660478335),h=y(h,l,f,c,r[p+4],20,-405537848),c=y(c,h,l,f,r[p+9],5,568446438),f=y(f,c,h,l,r[p+14],9,-1019803690),l=y(l,f,c,h,r[p+3],14,-187363961),h=y(h,l,f,c,r[p+8],20,1163531501),c=y(c,h,l,f,r[p+13],5,-1444681467),f=y(f,c,h,l,r[p+2],9,-51403784),l=y(l,f,c,h,r[p+7],14,1735328473),c=b(c,h=y(h,l,f,c,r[p+12],20,-1926607734),l,f,r[p+5],4,-378558),f=b(f,c,h,l,r[p+8],11,-2022574463),l=b(l,f,c,h,r[p+11],16,1839030562),h=b(h,l,f,c,r[p+14],23,-35309556),c=b(c,h,l,f,r[p+1],4,-1530992060),f=b(f,c,h,l,r[p+4],11,1272893353),l=b(l,f,c,h,r[p+7],16,-155497632),h=b(h,l,f,c,r[p+10],23,-1094730640),c=b(c,h,l,f,r[p+13],4,681279174),f=b(f,c,h,l,r[p+0],11,-358537222),l=b(l,f,c,h,r[p+3],16,-722521979),h=b(h,l,f,c,r[p+6],23,76029189),c=b(c,h,l,f,r[p+9],4,-640364487),f=b(f,c,h,l,r[p+12],11,-421815835),l=b(l,f,c,h,r[p+15],16,530742520),c=v(c,h=b(h,l,f,c,r[p+2],23,-995338651),l,f,r[p+0],6,-198630844),f=v(f,c,h,l,r[p+7],10,1126891415),l=v(l,f,c,h,r[p+14],15,-1416354905),h=v(h,l,f,c,r[p+5],21,-57434055),c=v(c,h,l,f,r[p+12],6,1700485571),f=v(f,c,h,l,r[p+3],10,-1894986606),l=v(l,f,c,h,r[p+10],15,-1051523),h=v(h,l,f,c,r[p+1],21,-2054922799),c=v(c,h,l,f,r[p+8],6,1873313359),f=v(f,c,h,l,r[p+15],10,-30611744),l=v(l,f,c,h,r[p+6],15,-1560198380),h=v(h,l,f,c,r[p+13],21,1309151649),c=v(c,h,l,f,r[p+4],6,-145523070),f=v(f,c,h,l,r[p+11],10,-1120210379),l=v(l,f,c,h,r[p+2],15,718787259),h=v(h,l,f,c,r[p+9],21,-343485551),c=c+m>>>0,h=h+g>>>0,l=l+E>>>0,f=f+T>>>0}return n.endian([c,h,l,f])})._ff=function(t,e,r,n,o,i,s){var a=t+(e&r|~e&n)+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._gg=function(t,e,r,n,o,i,s){var a=t+(e&n|r&~n)+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._hh=function(t,e,r,n,o,i,s){var a=t+(e^r^n)+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._ii=function(t,e,r,n,o,i,s){var a=t+(r^(e|~n))+(o>>>0)+s;return(a<<i|a>>>32-i)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(a(t,e));return e&&e.asBytes?r:e&&e.asString?s.bytesToString(r):n.bytesToHex(r)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":d(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==("undefined"==typeof window?"undefined":d(window)))return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{FETCHING_LOCALES:function(){return ne},FETCHING_TRANSLATIONS:function(){return $t},LOCALES_FETCHED:function(){return oe},LOCALES_FETCH_FAILED:function(){return ie},LOCALE_CHANGED:function(){return re},MessageFormatRenderer:function(){return _e},PseudoTranslationPolicy:function(){return me},SourceErrorPolicy:function(){return Ee},SourceStringPolicy:function(){return ge},TRANSLATIONS_FETCHED:function(){return te},TRANSLATIONS_FETCH_FAILED:function(){return ee},ThrowErrorPolicy:function(){return Te},createNativeInstance:function(){return Ae},escape:function(){return Wt},explodePlurals:function(){return pe},generateHashedKey:function(){return Zt},generateKey:function(){return zt},implodePlurals:function(){return de},isPluralized:function(){return ye},isString:function(){return qt},normalizeLocale:function(){return Jt},offEvent:function(){return ue},onEvent:function(){return ae},sendEvent:function(){return ce},sleep:function(){return Qt},t:function(){return He},tx:function(){return xe}});var t=r(945),e=r.n(t),o=function(){return p(function t(){f(this,t),this.translationsByLocale={}},[{key:"update",value:function(t,e){var r=this.translationsByLocale[t]||{};this.translationsByLocale[t]=v(v({},r),e)}},{key:"getTranslations",value:function(t){return this.translationsByLocale[t]||{}}},{key:"hasTranslations",value:function(t){return!!this.translationsByLocale[t]}},{key:"isStale",value:function(t){return!this.hasTranslations(t)}},{key:"get",value:function(t,e){return this.getTranslations(e)[t]||""}}])}(),i=function(){return p(function t(){f(this,t)},[{key:"handle",value:function(t,e,r,n){return e}}])}(),s=function(){return p(function t(){f(this,t)},[{key:"handle",value:function(t,e,r){return t}}])}(),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},l(t,e)};function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var m=function(){return m=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)};function g(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function E(t,e){var r=e&&e.cache?e.cache:P,n=e&&e.serializer?e.serializer:S;return(e&&e.strategy?e.strategy:x)(t,{cache:r,serializer:n})}function T(t,e,r,n){var o,i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),s=e.get(i);return void 0===s&&(s=t.call(this,n),e.set(i,s)),s}function _(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=e.get(o);return void 0===i&&(i=t.apply(this,n),e.set(o,i)),i}function A(t,e,r,n,o){return r.bind(e,t,n,o)}function x(t,e){return A(t,this,1===t.length?T:_,e.cache.create(),e.serializer)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var H,w,B,S=function(){return JSON.stringify(arguments)},O=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),P={create:function(){return new O}},L={variadic:function(t,e){return A(t,this,_,e.cache.create(),e.serializer)},monadic:function(t,e){return A(t,this,T,e.cache.create(),e.serializer)}};function I(t){return t.type===w.literal}function N(t){return t.type===w.argument}function C(t){return t.type===w.number}function M(t){return t.type===w.date}function R(t){return t.type===w.time}function k(t){return t.type===w.select}function U(t){return t.type===w.plural}function D(t){return t.type===w.pound}function G(t){return t.type===w.tag}function j(t){return!(!t||"object"!=d(t)||t.type!==B.number)}function F(t){return!(!t||"object"!=d(t)||t.type!==B.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(H||(H={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(w||(w={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(B||(B={}));var V=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,X=/(?:[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 K(t){var e={};return t.replace(X,function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.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":e.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":e.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":e.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.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":e.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""}),e}var Y=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function z(t){return t.replace(/^(.*?)-/,"")}var Z=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,W=/^(@+)?(\+|#+)?[rs]?$/g,q=/(\*)(0+)|(#+)(0+)|(0+)/g,J=/^(0+)$/;function Q(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(W,function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),e}function $(t){switch(t){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 tt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!J.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function et(t){return $(t)||{}}function rt(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=z(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=m(m(m({},e),{notation:"scientific"}),o.options.reduce(function(t,e){return m(m({},t),et(e))},{}));continue;case"engineering":e=m(m(m({},e),{notation:"engineering"}),o.options.reduce(function(t,e){return m(m({},t),et(e))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(q,function(t,r,n,o,i,s){if(r)e.minimumIntegerDigits=n.length;else{if(o&&i)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(J.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(Z.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Z,function(t,r,n,o,i,s){return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&s?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""});var i=o.options[0];"w"===i?e=m(m({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=m(m({},e),Q(i)))}else if(W.test(o.stem))e=m(m({},e),Q(o.stem));else{var s=$(o.stem);s&&(e=m(m({},e),s));var a=tt(o.stem);a&&(e=m(m({},e),a))}}return e}var nt,ot={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function it(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){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=t.language;return"root"!==n&&(r=t.maximize().region),(ot[r||""]||ot[n||""]||ot["".concat(n,"-001")]||ot["001"])[0]}var st=new RegExp("^".concat(V.source,"*")),at=new RegExp("".concat(V.source,"*$"));function ut(t,e){return{start:t,end:e}}var ct=!!String.prototype.startsWith&&"_a".startsWith("a",1),ht=!!String.fromCodePoint,lt=!!Object.fromEntries,ft=!!String.prototype.codePointAt,pt=!!String.prototype.trimStart,dt=!!String.prototype.trimEnd,yt=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},bt=!0;try{bt="a"===(null===(nt=xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===nt?void 0:nt[0])}catch(t){bt=!1}var vt,mt=ct?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},gt=ht?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>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},Et=lt?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s}return e},Tt=ft?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},_t=pt?function(t){return t.trimStart()}:function(t){return t.replace(st,"")},At=dt?function(t){return t.trimEnd()}:function(t){return t.replace(at,"")};function xt(t,e){return new RegExp(t,e)}if(bt){var Ht=xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vt=function(t,e){var r;return Ht.lastIndex=e,null!==(r=Ht.exec(t)[1])&&void 0!==r?r:""}}else vt=function(t,e){for(var r=[];;){var n=Tt(t,e);if(void 0===n||Pt(n)||Lt(n))break;r.push(n),e+=n>=65536?2:1}return gt.apply(void 0,r)};var wt,Bt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,ut(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&St(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:w.pound,location:ut(s,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:w.literal,value:"<".concat(n,"/>"),location:ut(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!St(this.char()))return this.error(H.INVALID_TAG,ut(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(H.UNMATCHED_CLOSING_TAG,ut(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:w.tag,value:n,children:i,location:ut(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,ut(s,this.clonePosition())))}return this.error(H.UNCLOSED_TAG,ut(r,this.clonePosition()))}return this.error(H.INVALID_TAG,ut(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ot(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=ut(r,this.clonePosition());return{val:{type:w.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(St(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return gt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),gt(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(H.EMPTY_ARGUMENT,ut(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(H.MALFORMED_ARGUMENT,ut(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:w.argument,value:n,location:ut(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(H.MALFORMED_ARGUMENT,ut(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=vt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:ut(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,ut(i,a));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(p=At(v.val)).length)return this.error(H.EXPECT_ARGUMENT_STYLE,ut(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:ut(c,this.clonePosition())}}if((g=this.tryParseArgumentClose(n)).err)return g;var h=ut(n,this.clonePosition());if(u&&mt(null==u?void 0:u.style,"::",0)){var l=_t(u.style.slice(2));if("number"===s)return(v=this.parseNumberSkeletonFromString(l,u.styleLocation)).err?v:{val:{type:w.number,value:r,location:h,style:v.val},err:null};if(0===l.length)return this.error(H.EXPECT_DATE_TIME_SKELETON,h);var f=l;this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),u=it(e);for("H"!=u&&"k"!=u||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=u+r}else r+="J"===o?"H":o}return r}(l,this.locale));var p={type:B.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?K(f):{}};return{val:{type:"date"===s?w.date:w.time,value:r,location:h,style:p},err:null}}return{val:{type:"number"===s?w.number:"date"===s?w.date:w.time,value:r,location:h,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,ut(d,m({},d)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),y=this.parseIdentifierIfPossible(),b=v.val}var g,E=this.tryParsePluralOrSelectOptions(t,s,e,y);if(E.err)return E;if((g=this.tryParseArgumentClose(n)).err)return g;var T=ut(n,this.clonePosition());return"select"===s?{val:{type:w.select,value:r,options:Et(E.val),location:T},err:null}:{val:{type:w.plural,value:r,options:Et(E.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:T},err:null};default:return this.error(H.INVALID_ARGUMENT_TYPE,ut(i,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,ut(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ut(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Y).filter(function(t){return t.length>0});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],s=o.slice(1),a=0,u=s;a<u.length;a++)if(0===u[a].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:s})}return e}(t)}catch(t){return this.error(H.INVALID_NUMBER_SKELETON,e)}return{val:{type:B.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?rt(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o,i=!1,s=[],a=new Set,u=n.value,c=n.location;;){if(0===u.length){var h=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=ut(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}if(a.has(u))return this.error("select"===e?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ut(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;s.push([u,{value:p.val,location:ut(f,this.clonePosition())}]),a.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===e?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(H.MISSING_OTHER_CLAUSE,ut(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}var a=ut(n,this.clonePosition());return o?yt(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Tt(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(mt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pt(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function St(t){return t>=97&&t<=122||t>=65&&t<=90}function Ot(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Pt(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Lt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function It(t){t.forEach(function(t){if(delete t.location,k(t)||U(t))for(var e in t.options)delete t.options[e].location,It(t.options[e].value);else C(t)&&j(t.style)||(M(t)||R(t))&&F(t.style)?delete t.style.location:G(t)&&It(t.children)})}function Nt(t,e){void 0===e&&(e={}),e=m({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Bt(t,e).parse();if(r.err){var n=SyntaxError(H[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||It(r.val),r.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(wt||(wt={}));var Ct,Mt=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return b(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Rt=function(t){function e(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),wt.INVALID_VALUE,o)||this}return b(e,t),e}(Mt),kt=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),wt.INVALID_VALUE,n)||this}return b(e,t),e}(Mt),Ut=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),wt.MISSING_VALUE,r)||this}return b(e,t),e}(Mt);function Dt(t){return"function"==typeof t}function Gt(t,e,r,n,o,i,s){if(1===t.length&&I(t[0]))return[{type:Ct.literal,value:t[0].value}];for(var a=[],u=0,c=t;u<c.length;u++){var h=c[u];if(I(h))a.push({type:Ct.literal,value:h.value});else if(D(h))"number"==typeof i&&a.push({type:Ct.literal,value:r.getNumberFormat(e).format(i)});else{var l=h.value;if(!o||!(l in o))throw new Ut(l,s);var f=o[l];if(N(h))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?Ct.literal:Ct.object,value:f});else if(M(h)){var p="string"==typeof h.style?n.date[h.style]:F(h.style)?h.style.parsedOptions:void 0;a.push({type:Ct.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(R(h))p="string"==typeof h.style?n.time[h.style]:F(h.style)?h.style.parsedOptions:n.time.medium,a.push({type:Ct.literal,value:r.getDateTimeFormat(e,p).format(f)});else if(C(h))(p="string"==typeof h.style?n.number[h.style]:j(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:Ct.literal,value:r.getNumberFormat(e,p).format(f)});else{if(G(h)){var d=h.children,y=h.value,b=o[y];if(!Dt(b))throw new kt(y,"function",s);var v=b(Gt(d,e,r,n,o,i).map(function(t){return t.value}));Array.isArray(v)||(v=[v]),a.push.apply(a,v.map(function(t){return{type:"string"==typeof t?Ct.literal:Ct.object,value:t}}))}if(k(h)){if(!(m=h.options[f]||h.options.other))throw new Rt(h.value,f,Object.keys(h.options),s);a.push.apply(a,Gt(m.value,e,r,n,o))}else if(U(h)){var m;if(!(m=h.options["=".concat(f)])){if(!Intl.PluralRules)throw new Mt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',wt.MISSING_INTL_API,s);var g=r.getPluralRules(e,{type:h.pluralType}).select(f-(h.offset||0));m=h.options[g]||h.options.other}if(!m)throw new Rt(h.value,f,Object.keys(h.options),s);a.push.apply(a,Gt(m.value,e,r,n,o,f-(h.offset||0)))}}}}return(E=a).length<2?E:E.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===Ct.literal&&e.type===Ct.literal?r.value+=e.value:t.push(e),t},[]);var E}function jt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Ct||(Ct={}));var Ft=function(){function t(e,r,n,o){void 0===r&&(r=t.defaultLocale);var i,s,a,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===Ct.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Gt(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=u.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=o||{},h=(c.formatters,function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(c,["formatters"]));this.ast=t.__parse(e,m(m({},h),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,(a=n)?Object.keys(s).reduce(function(t,e){var r,n;return t[e]=(r=s[e],(n=a[e])?m(m(m({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=m(m({},r[e]),n[e]||{}),t},{})):r),t},m({},s)):s),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:E(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,g([void 0],e,!1)))},{cache:jt(i.number),strategy:L.variadic}),getDateTimeFormat:E(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,g([void 0],e,!1)))},{cache:jt(i.dateTime),strategy:L.variadic}),getPluralRules:E(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,g([void 0],e,!1)))},{cache:jt(i.pluralRules),strategy:L.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=Nt,t.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"}}},t}(),Vt=Ft,Xt=function(){return p(function t(){f(this,t)},[{key:"render",value:function(t,e,r){var n,o=(e||"").split("_")[0];try{n=new Vt(t,o,void 0,{ignoreTag:!0})}catch(e){n=new Vt(t,void 0,void 0,{ignoreTag:!0})}return n.format(r)}}])}(),Kt=r(503),Yt=r.n(Kt);function zt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e._key?e._key:e._context?"".concat(t,"::").concat(e._context):"".concat(t)}function Zt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e._key)return e._key;var r="";return e._context&&(r=(r=e._context).replace(/,/g,":")),Yt()("5:".concat(t,":").concat(r))}function Wt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function qt(t){return"[object String]"===Object.prototype.toString.call(t)}function Jt(t){var e=t.split("-");return 1===e.length?t:[e[0],e[1].toUpperCase()].join("_")}function Qt(t){return new Promise(function(e){setTimeout(function(){e()},t)})}var $t="FETCHING_TRANSLATIONS",te="TRANSLATIONS_FETCHED",ee="TRANSLATIONS_FETCH_FAILED",re="LOCALE_CHANGED",ne="FETCHING_LOCALES",oe="LOCALES_FETCHED",ie="LOCALES_FETCH_FAILED",se={};function ae(t,e){se[t]=se[t]||[],se[t].push(e)}function ue(t,e){var r=se[t]||[],n=r.indexOf(e);-1!==n&&r.splice(n,1)}function ce(t,e,r){(se[t]||[]).forEach(function(t){t(e,r)})}var he=["zero","one","two","few","many","other"];function le(t){var e=t.indexOf("{");if(-1===e)return[null,null];var r=t.substring(0,e).trim();if("="===r[0]){if(r=r.substring(1),Number.isNaN(parseInt(r,10))||parseInt(r,10)!==parseFloat(r))return[null,null];if(r=parseInt(r,10),void 0===(r=he[r]))return[null,null]}else if(-1===he.indexOf(r))return[null,null];return[r,t.substring(e)]}function fe(t){for(var e=0,r=!1,n=0;n<t.length;){var o=t[n];if("'"===o){var i=t[n+1];"'"===i?n+=1:r?r=!1:"{"!==i&&"}"!==i||(r=!0)}else if("{"===o)r||(e+=1);else if("}"===o&&(r||(e-=1),0===e))return[t.substring(1,n),t.substring(n+1).trim()];n+=1}return[null,null]}function pe(t){var e,r,n,o,i=[null,{other:t}],s=function(t){if(!(t.length>1&&"{"===t[0]&&"}"===t[t.length-1]))return[null,null];var e=t.indexOf(",");if(-1===e)return[null,null];var r=t.indexOf(",",e+1);if(-1===r)return[null,null];var n=t.substring(1,e).trim(),o=t.substring(e+1,r).trim();return/^[\w_]+$/.test(n)&&"plural"===o?[n,t.substring(r+1,t.length-1).trim()]:[null,null]}(t),a=h(s,2),u=a[0],c=a[1];if(null==u)return i;var l,f,p={};if(e=le(c),l=(r=h(e,2))[0],c=r[1],null==l)return i;if(n=fe(c.trim()),f=(o=h(n,2))[0],c=o[1],null==f)return i;for(p[l]=f;c.trim();){var d,y,b,v;if(d=le(c.trim()),l=(y=h(d,2))[0],c=y[1],null==l)return i;if(b=fe(c.trim()),f=(v=h(b,2))[0],c=v[1],null==f)return i;p[l]=f}return(1!==Object.keys(p).length||"other"in p)&&"one"in p&&"other"in p?[u,p]:i}function de(t){var e,r=["{".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"???",", plural,")],n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}),e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}(he);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o in t){var i=t[o];r.push(" ".concat(o," {").concat(i,"}"))}}}catch(t){n.e(t)}finally{n.f()}return r.push("}"),r.join("")}function ye(t){var e=pe(t)[1];return Object.keys(e).length>1}var be=function(){return p(function t(){f(this,t),this.cdsHost="https://cds.svc.transifex.net",this.token="",this.secret="",this.filterTags="",this.filterStatus="",this.fetchTimeout=0,this.fetchInterval=250,this.cache=new o,this.missingPolicy=new s,this.errorPolicy=new i,this.stringRenderer=new Xt,this.currentLocale="",this.locales=[],this.languages=[],this.childInstances=[]},[{key:"init",value:function(t){var e=this;["cdsHost","token","secret","cache","filterTags","filterStatus","fetchTimeout","fetchInterval","missingPolicy","errorPolicy","stringRenderer","currentLocale"].forEach(function(r){void 0!==t[r]&&(e[r]=t[r])}),this.fetchedTags={}}},{key:"translate",value:function(t,e){return this.translateLocale(this.currentLocale,t,e)}},{key:"translateLocale",value:function(t,e,r){try{var n=this.cache.get(zt(e,r),t);n||(n=this.cache.get(Zt(e,r),t)),n&&n.startsWith("{???")&&ye(e)&&(n="{".concat(e.substring(1,e.indexOf(",")).trim()).concat(n.substring(4)));var o=!1;if(n||(o=!0,n=e),r&&r._escapeVars){var i={};Object.keys(r).forEach(function(t){var e=r[t];i[t]=qt(e)?Wt(e):e}),n=this.stringRenderer.render(n,t,i)}else n=this.stringRenderer.render(n,t,r);return o&&t&&(n=this.missingPolicy.handle(n,t,r)),qt(n)||(n="".concat(n)),n}catch(n){return this.errorPolicy.handle(n,"".concat(e),t,r)}}},{key:"fetchTranslations",value:(m=c(u.mark(function t(r){var n,o,i,s,a,c,h,l,f,p,d,y=this,b=arguments;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=(n=b.length>1&&void 0!==b[1]?b[1]:{}).filterTags||this.filterTags,n.refresh||this.cache.isStale(r)||!(!o&&this.cache.hasTranslations(r)||o&&-1!==(this.fetchedTags[r]||[]).indexOf(o))){t.next=1;break}return t.abrupt("return");case 1:o&&(r in this.fetchedTags||(this.fetchedTags[r]=[]),-1===this.fetchedTags[r].indexOf(o)&&this.fetchedTags[r].push(o)),i=function(t){return ce(ee,{localeCode:r,filterTags:o},y),t},t.prev=2,ce($t,{localeCode:r,filterTags:o},this),a=202,c=Date.now();case 3:if(202!==a){t.next=9;break}return h="".concat(this.cdsHost,"/content/").concat(r),l=[],o&&l.push("filter[tags]=".concat(o)),this.filterStatus&&l.push("filter[status]=".concat(this.filterStatus)),l.length&&(h="".concat(h,"?").concat(l.join("&"))),t.next=4,e()(h,{method:"GET",headers:{Authorization:"Bearer ".concat(this.token),"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.1.6"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0});case 4:if((s=t.sent).ok){t.next=6;break}return t.next=5,this._fetchError(s);case 5:throw t.sent;case 6:if(a=s.status,!(this.fetchTimeout>0&&Date.now()-c>=this.fetchTimeout)){t.next=7;break}throw i(new Error("Fetch translations timeout"));case 7:if(!(202===a&&this.fetchInterval>0)){t.next=8;break}return t.next=8,Qt(this.fetchInterval);case 8:t.next=3;break;case 9:return t.next=10,s.json();case 10:if((f=t.sent)&&f.data){t.next=11;break}throw i(new Error("Could not fetch translations"));case 11:p={},Object.keys(f.data).forEach(function(t){f.data[t].string&&(p[t]=f.data[t].string)}),this.cache.update(r,p),ce(te,{localeCode:r,filterTags:o},this),t.next=13;break;case 12:throw t.prev=12,d=t.catch(2),i(d);case 13:case"end":return t.stop()}},t,this,[[2,12]])})),function(t){return m.apply(this,arguments)})},{key:"invalidateCDS",value:(b=c(u.mark(function t(){var r,n,o,i=arguments;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=i.length>0&&void 0!==i[0]?i[0]:{},this.token){t.next=1;break}throw new Error("token is not defined");case 1:if(this.secret){t.next=2;break}throw new Error("secret is not defined");case 2:return n=r.purge?"purge":"invalidate",t.next=3,e()("".concat(this.cdsHost,"/").concat(n),{method:"POST",headers:{Authorization:"Bearer ".concat(this.token,":").concat(this.secret),"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.1.6"}});case 3:if((o=t.sent).ok){t.next=5;break}return t.next=4,this._fetchError(o);case 4:throw t.sent;case 5:return t.next=6,o.json();case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}},t,this)})),function(){return b.apply(this,arguments)})},{key:"pushSource",value:(y=c(u.mark(function t(r){var n,o,i,s,a,c,h,l,f,p=arguments;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:{},this.token){t.next=1;break}throw new Error("token is not defined");case 1:if(this.secret){t.next=2;break}throw new Error("secret is not defined");case 2:return o={Authorization:"Bearer ".concat(this.token,":").concat(this.secret),"Accept-version":"v2","Content-Type":"application/json;charset=utf-8","X-NATIVE-SDK":"txjs/browser/7.1.6"},t.next=3,e()("".concat(this.cdsHost,"/content"),{method:"POST",headers:o,body:JSON.stringify({data:r,meta:{purge:!!n.purge,override_tags:!!n.overrideTags,override_occurrences:!!n.overrideOccurrences}})});case 3:if((i=t.sent).ok){t.next=5;break}return t.next=4,this._fetchError(i);case 4:throw t.sent;case 5:return t.next=6,i.json();case 6:if(s=t.sent,a="".concat(this.cdsHost).concat(s.data.links.job),!n.noWait){t.next=7;break}return t.abrupt("return",{jobUrl:a});case 7:c={status:""};case 8:return t.next=9,Qt(1500);case 9:return t.next=10,e()(a,{method:"GET",headers:o});case 10:if((h=t.sent).ok){t.next=12;break}return t.next=11,this._fetchError(h);case 11:throw t.sent;case 12:return t.next=13,h.json();case 13:l=t.sent,f=l.data,c=v(v({},f.details||{}),{},{errors:f.errors||[],status:f.status});case 14:if("pending"===c.status||"processing"===c.status){t.next=8;break}case 15:return t.abrupt("return",v({jobUrl:a},c));case 16:case"end":return t.stop()}},t,this)})),function(t){return y.apply(this,arguments)})},{key:"getLocales",value:(d=c(u.mark(function t(){var r,n,o,i,s,c,h=this,l=arguments;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((l.length>0&&void 0!==l[0]?l[0]:{}).refresh||!(this.locales.length>0)){t.next=1;break}return t.abrupt("return",a(this.locales));case 1:if(this.token){t.next=2;break}return t.abrupt("return",[]);case 2:r=function(t){return ce(ie,null,h),t},t.prev=3,ce(ne,null,this),o=202,i=Date.now();case 4:if(202!==o){t.next=10;break}return t.next=5,e()("".concat(this.cdsHost,"/languages"),{method:"GET",headers:{Authorization:"Bearer ".concat(this.token),"Accept-version":"v2","X-NATIVE-SDK":"txjs/browser/7.1.6"},signal:this.fetchTimeout>0?AbortSignal.timeout(this.fetchTimeout):void 0});case 5:if((n=t.sent).ok){t.next=7;break}return t.next=6,this._fetchError(n);case 6:throw t.sent;case 7:if(o=n.status,!(this.fetchTimeout>0&&Date.now()-i>=this.fetchTimeout)){t.next=8;break}throw r(new Error("Get locales timeout"));case 8:if(!(202===o&&this.fetchInterval>0)){t.next=9;break}return t.next=9,Qt(this.fetchInterval);case 9:t.next=4;break;case 10:return t.next=11,n.json();case 11:if((s=t.sent)&&s.data){t.next=12;break}throw r(new Error("Could not fetch languages"));case 12:this.languages=s.data,this.locales=this.languages.map(function(t){return t.code}),ce(oe,null,this),t.next=14;break;case 13:throw t.prev=13,c=t.catch(3),r(c);case 14:return t.abrupt("return",a(this.locales));case 15:case"end":return t.stop()}},t,this,[[3,13]])})),function(){return d.apply(this,arguments)})},{key:"getCurrentLocale",value:function(){return this.currentLocale}},{key:"isCurrent",value:function(t){return t===this.currentLocale}},{key:"setCurrentLocale",value:(l=c(u.mark(function t(e){return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isCurrent(e)){t.next=2;break}return t.next=1,this._syncInstances(this.childInstances);case 1:t.next=7;break;case 2:if(e){t.next=4;break}return this.currentLocale="",t.next=3,this._syncInstances(this.childInstances);case 3:return t.abrupt("return",void ce(re,this.currentLocale,this));case 4:return t.next=5,this.fetchTranslations(e);case 5:return this.currentLocale=e,t.next=6,this._syncInstances(this.childInstances);case 6:ce(re,e,this);case 7:case"end":return t.stop()}},t,this)})),function(t){return l.apply(this,arguments)})},{key:"getLanguages",value:(h=c(u.mark(function t(){var e,r=arguments;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},t.next=1,this.getLocales(e);case 1:return t.abrupt("return",a(this.languages));case 2:case"end":return t.stop()}},t,this)})),function(){return h.apply(this,arguments)})},{key:"controllerOf",value:(n=c(u.mark(function t(e){return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e!==this){t.next=1;break}throw new Error("Cannot add self as instance");case 1:if(-1===e.childInstances.indexOf(this)){t.next=2;break}throw new Error("Cycle reference error, instance is controller of this");case 2:return this.childInstances.push(e),t.next=3,this._syncInstances([e]);case 3:return t.abrupt("return",e);case 4:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)})},{key:"_syncInstances",value:(r=c(u.mark(function t(e){var r,n;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this.getCurrentLocale())){t.next=6;break}n=0;case 1:if(!(n<e.length)){t.next=6;break}if(e[n].getCurrentLocale()===r){t.next=5;break}return t.prev=2,t.next=3,e[n].fetchTranslations(r);case 3:t.next=5;break;case 4:t.prev=4,t.catch(2);case 5:n++,t.next=1;break;case 6:e.forEach(function(t){t.getCurrentLocale()!==r&&(t.currentLocale=r,ce(re,r,t))});case 7:case"end":return t.stop()}},t,this,[[2,4]])})),function(t){return r.apply(this,arguments)})},{key:"_fetchError",value:(t=c(u.mark(function t(e){var r;return u.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,e.text();case 1:return r=t.sent,t.abrupt("return",new Error("HTTP ".concat(e.status,": ").concat(r)));case 2:return t.prev=2,t.catch(0),t.abrupt("return",new Error("HTTP error ".concat(e.status)));case 3:case"end":return t.stop()}},t,null,[[0,2]])})),function(e){return t.apply(this,arguments)})}]);var t,r,n,h,l,d,y,b,m}(),ve={a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},me=function(){return p(function t(){f(this,t)},[{key:"handle",value:function(t,e,r){return t.split(/__txnative__/).map(function(t){for(var e="",r=0;r<t.length;r+=1){var n=t.charAt(r);if(ve[n]){var o=n.toLowerCase();e+="a"===o||"e"===o||"o"===o||"u"===o?ve[n]+ve[n]:ve[n]}else e+=n}return e}).join("__txnative__")}}])}(),ge=s,Ee=i,Te=function(){return p(function t(){f(this,t)},[{key:"handle",value:function(t,e,r,n){throw t||new Error('Error translating "'.concat(e,'"'))}}])}(),_e=Xt,Ae=function(t){var e=new be;return e.t=e.translate.bind(e),t&&e.init(t),e},xe=new be,He=xe.translate.bind(xe)}(),n}()},"object"==d(e)&&"object"==d(t)?t.exports=s():(o=[],void 0===(i="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=i))},984(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},979(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},591(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},865(t,e,r){var n=r(979);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},281(t){function e(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise(function(o,i){var s=t.apply(r,n);function a(t){e(s,o,i,a,u,"next",t)}function u(t){e(s,o,i,a,u,"throw",t)}a(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},643(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},567(t,e,r){var n=r(612);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},345(t,e,r){var n=r(612);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},711(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},840(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},740(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},769(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},749(t,e,r){var n=r(286);function o(){var e,r,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.toStringTag||"@@toStringTag";function u(t,o,i,s){var a=o&&o.prototype instanceof h?o:h,u=Object.create(a.prototype);return n(u,"_invoke",function(t,n,o){var i,s,a,u=0,h=o||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,s=0,a=e,f.n=r,c}};function p(t,n){for(s=t,a=n,r=0;!l&&u&&!o&&r<h.length;r++){var o,i=h[r],p=f.p,d=i[2];t>3?(o=d===n)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=t<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<d&&(o=t<3||i[0]>n||n>d)&&(i[4]=t,i[5]=n,f.n=d,s=0))}if(o||t>1)return c;throw l=!0,n}return function(o,h,d){if(u>1)throw TypeError("Generator is already running");for(l&&1===h&&p(h,d),s=h,a=d;(r=s<2?e:a)||!l;){i||(s?s<3?(s>1&&(f.n=-1),p(s,a)):f.n=a:f.v=a);try{if(u=2,i){if(s||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,s<2&&(s=0)}else 1===s&&(r=i.return)&&r.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((r=(l=f.n<0)?a:t.call(n,f))!==c)break}catch(t){i=e,s=1,a=t}finally{u=1}}return{value:r,done:l}}}(t,i,s),!0),u}var c={};function h(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][s]?r(r([][s]())):(n(r={},s,function(){return this}),r),d=f.prototype=h.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,n(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=f,n(d,"constructor",f),n(f,"constructor",l),l.displayName="GeneratorFunction",n(f,a,"GeneratorFunction"),n(d),n(d,a,"Generator"),n(d,s,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(t.exports=o=function(){return{w:u,m:y}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},521(t,e,r){var n=r(835);t.exports=function(t,e,r,o,i){var s=n(t,e,r,o,i);return s.next().then(function(t){return t.done?t.value:s.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},835(t,e,r){var n=r(749),o=r(611);t.exports=function(t,e,r,i,s){return new o(n().w(t,e,r,i),s||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},611(t,e,r){var n=r(984),o=r(286);t.exports=function t(e,r){function i(t,o,s,a){try{var u=e[t](o),c=u.value;return c instanceof n?r.resolve(c.v).then(function(t){i("next",t,s,a)},function(t){i("throw",t,s,a)}):r.resolve(c).then(function(t){u.value=t,s(u)},function(t){return i("throw",t,s,a)})}catch(t){a(t)}}var s;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(t,e,n){function o(){return new r(function(e,r){i(t,n,e,r)})}return s=s?s.then(o,o):o()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},286(t){function e(r,n,o,i){var s=Object.defineProperty;try{s({},"",{})}catch(r){s=0}t.exports=e=function(t,r,n,o){function i(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?s?s(t,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[r]=n:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},305(t){t.exports=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},37(t,e,r){var n=r(984),o=r(749),i=r(521),s=r(835),a=r(611),u=r(305),c=r(935);function h(){"use strict";var e=o(),r=e.m(h),l=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function f(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))}var p={throw:1,return:2,break:3,continue:3};function d(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,p[t],e)},delegateYield:function(t,o,i){return e.resultName=o,r(n.d,c(t),i)},finish:function(t){return r(n.f,t)}},r=function(t,r,o){n.p=e.prev,n.n=e.next;try{return t(r,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(t.exports=h=function(){return{wrap:function(t,r,n,o){return e.w(d(t),r,n,o&&o.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(t,e){return new n(t,e)},AsyncIterator:a,async:function(t,e,r,n,o){return(f(e)?s:i)(d(t),e,r,n,o)},keys:u,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports},935(t,e,r){var n=r(326).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},327(t,e,r){var n=r(591),o=r(840),i=r(606),s=r(740);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},640(t,e,r){var n=r(865),o=r(711),i=r(606),s=r(769);t.exports=function(t){return n(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},977(t,e,r){var n=r(326).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},612(t,e,r){var n=r(326).default,o=r(977);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},326(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},606(t,e,r){var n=r(979);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},632(t,e,r){var n=r(37)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}function o(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function i(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,e(o.key),o)}}r.r(n),r.d(n,{TransifexI18next:()=>c});var s=r(967);function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="backend",this.options=e||{},this.init()},(e=[{key:"init",value:function(t,e){this.options=u(u({},this.options||{}),e||{}),this.tx=(0,s.createNativeInstance)(this.options)}},{key:"read",value:function(t,e,r){var n=this;this.tx.fetchTranslations(t).then(function(){r(null,n._convertPlurals(n.tx.cache.getTranslations(t)))}).catch(function(t){r(t,null)})}},{key:"readMulti",value:function(t,e,r){var n=this,o=[];t.forEach(function(t){o.push(n.tx.fetchTranslations(t))}),Promise.all(o).then(function(){var e={};t.forEach(function(t){e[t]={translations:n._convertPlurals(n.tx.cache.getTranslations(t))}})}).catch(function(t){r(t,null)})}},{key:"_convertPlurals",value:function(t){var e={};return Object.keys(t).forEach(function(r){if(r.endsWith("_txplural")){var n=r.slice(0,-9),o=(0,s.explodePlurals)(t[r].replace("{???,","{count,"))[1];Object.keys(o).forEach(function(t){e["".concat(n,"_").concat(t)]=o[t]})}else e[r]=t[r]}),e}}])&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()})(),n})());
|
|
3
3
|
//# sourceMappingURL=browser.i18next.js.map
|