gt-react 10.19.3 → 10.19.4
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/CHANGELOG.md +12 -0
- package/dist/browser.cjs.min.cjs +1 -1
- package/dist/browser.cjs.min.cjs.map +1 -1
- package/dist/browser.esm.min.mjs +1 -1
- package/dist/browser.esm.min.mjs.map +1 -1
- package/dist/client.cjs.min.cjs +1 -1
- package/dist/client.cjs.min.cjs.map +1 -1
- package/dist/client.esm.min.mjs +1 -1
- package/dist/client.esm.min.mjs.map +1 -1
- package/dist/index.cjs.min.cjs +1 -1
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs +1 -1
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.esm.min.mjs +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/macros.cjs.min.cjs +1 -1
- package/dist/macros.cjs.min.cjs.map +1 -1
- package/dist/macros.esm.min.mjs +1 -1
- package/dist/macros.esm.min.mjs.map +1 -1
- package/package.json +9 -5
package/dist/browser.cjs.min.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("generaltranslation"),t=require("react"),r=require("react/jsx-runtime");const n="gt-react",o=`${n}/browser Error: The ${n}/browser module requires a browser environment`,i=`${n} Error: You are trying to import a browser-only module into a non-browser environment.`,a=`${n} Error: BrowserI18nManager not initialized. Invoke initializeGT() to initialize.`,s=e=>`${n} Warning: "${e}" is not a valid locale.`;function c(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function u(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function l(e,t,r=""){const n=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT}(e),o=e?.length;if(!n||void 0!==t){const t=(r&&`"${r}" `)+"expected Uint8Array"+""+", got "+(n?`length=${o}`:"type="+typeof e);if(!n)throw new TypeError(t);throw new RangeError(t)}return e}function h(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function f(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function p(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function d(e,t){return e<<32-t|e>>>t}"function"==typeof SuppressedError&&SuppressedError;const g=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e,t={}){const r=(t,r)=>e(r).update(t).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)}const v=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function b(e,t,r){return e&t^~e&r}function E(e,t,r){return e&t^e&r^t&r}class _{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,n){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=p(this.buffer)}update(e){h(this),l(e);const{view:t,buffer:r,blockLen:n}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(n-this.pos,o-i);if(a===n){const t=p(e);for(;n<=o-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){h(this),function(e,t){l(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:o}=this;let{pos:i}=this;t[i++]=128,f(this.buffer.subarray(i)),this.padOffset>n-i&&(this.process(r,0),i=0);for(let e=i;e<n;e++)t[e]=0;r.setBigUint64(n-8,BigInt(8*this.length),o),this.process(r,0);const a=p(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const c=s/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)a.setUint32(4*e,u[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=n,e.pos=a,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}const T=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),H=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),B=new Uint32Array(64);class L extends _{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[e,t,r,n,o,i,a,s]}set(e,t,r,n,o,i,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)B[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=B[e-15],r=B[e-2],n=d(t,7)^d(t,18)^t>>>3,o=d(r,17)^d(r,19)^r>>>10;B[e]=o+B[e-7]+n+B[e-16]|0}let{A:r,B:n,C:o,D:i,E:a,F:s,G:c,H:u}=this;for(let e=0;e<64;e++){const t=u+(d(a,6)^d(a,11)^d(a,25))+b(a,s,c)+H[e]+B[e]|0,l=(d(r,2)^d(r,13)^d(r,22))+E(r,n,o)|0;u=c,c=s,s=a,a=i+t|0,i=o,o=n,n=r,r=t+l|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(r,n,o,i,a,s,c,u)}roundClean(){f(B)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),f(this.buffer)}}class w extends L{A=0|T[0];B=0|T[1];C=0|T[2];D=0|T[3];E=0|T[4];F=0|T[5];G=0|T[6];H=0|T[7];constructor(){super(32)}}const S=y(()=>new w,v(1));var A="https://cdn.gtx.dev",C="en",P=function(e,t){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},P(e,t)};function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var I=function(){return I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)};function M(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function R(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function N(e,t){return function(r,n){t(r,n,e)}}function U(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,h=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var d={};for(var g in n)d[g]="access"===g?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[u],d);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(h.get=s),(s=a(m.set))&&(h.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===c?o.unshift(s):h[u]=s)}l&&Object.defineProperty(l,n.name,h),f=!0}function D(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function j(e){return"symbol"==typeof e?e:"".concat(e)}function G(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function x(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function k(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function F(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var V=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function K(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||V(t,e,r)}function $(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function X(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(X(arguments[t]));return e}function q(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function W(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function J(e){return this instanceof J?(this.v=e,this):new J(e)}function z(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof J?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function Z(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:J(e[n](t)),done:!1}:o?o(t):t}:o}}function Q(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=$(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function ee(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var te=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},re=function(e){return re=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},re(e)};function ne(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=re(e),n=0;n<r.length;n++)"default"!==r[n]&&V(t,e,r[n]);return te(t,e),t}function oe(e){return e&&e.__esModule?e:{default:e}}function ie(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function ae(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function se(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function ce(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var ue="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function le(e){function t(t){e.error=e.hasError?new ue(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function he(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}var fe,pe,de,ge={__extends:O,__assign:I,__rest:M,__decorate:R,__param:N,__esDecorate:U,__runInitializers:D,__propKey:j,__setFunctionName:G,__metadata:x,__awaiter:k,__generator:F,__createBinding:V,__exportStar:K,__values:$,__read:X,__spread:Y,__spreadArrays:q,__spreadArray:W,__await:J,__asyncGenerator:z,__asyncDelegator:Z,__asyncValues:Q,__makeTemplateObject:ee,__importStar:ne,__importDefault:oe,__classPrivateFieldGet:ie,__classPrivateFieldSet:ae,__classPrivateFieldIn:se,__addDisposableResource:ce,__disposeResources:le,__rewriteRelativeImportExtension:he},me=Object.freeze({__proto__:null,__addDisposableResource:ce,get __assign(){return I},__asyncDelegator:Z,__asyncGenerator:z,__asyncValues:Q,__await:J,__awaiter:k,__classPrivateFieldGet:ie,__classPrivateFieldIn:se,__classPrivateFieldSet:ae,__createBinding:V,__decorate:R,__disposeResources:le,__esDecorate:U,__exportStar:K,__extends:O,__generator:F,__importDefault:oe,__importStar:ne,__makeTemplateObject:ee,__metadata:x,__param:N,__propKey:j,__read:X,__rest:M,__rewriteRelativeImportExtension:he,__runInitializers:D,__setFunctionName:G,__spread:Y,__spreadArray:W,__spreadArrays:q,__values:$,default:ge}),ye="DEFAULT_TERMINATOR_KEY";!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(fe||(fe={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(pe||(pe={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(de||(de={}));var ve=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,be=/(?:[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 Ee(e){var t={};return e.replace(be,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var _e=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Te(e){return e.replace(/^(.*?)-/,"")}var He=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Be=/^(@+)?(\+|#+)?[rs]?$/g,Le=/(\*)(0+)|(#+)(0+)|(0+)/g,we=/^(0+)$/;function Se(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Be,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function Ae(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ce(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!we.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Pe(e){return Ae(e)||{}}function Oe(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Te(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=I(I(I({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return I(I({},e),Pe(t))},{}));continue;case"engineering":t=I(I(I({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return I(I({},e),Pe(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.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(Le,function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(we.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(He.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(He,function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=o.options[0];"w"===i?t=I(I({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=I(I({},t),Se(i)))}else if(Be.test(o.stem))t=I(I({},t),Se(o.stem));else{var a=Ae(o.stem);a&&(t=I(I({},t),a));var s=Ce(o.stem);s&&(t=I(I({},t),s))}}return t}var Ie,Me={"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 Re(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Me[r||""]||Me[n||""]||Me["".concat(n,"-001")]||Me["001"])[0]}var Ne=new RegExp("^".concat(ve.source,"*")),Ue=new RegExp("".concat(ve.source,"*$"));function De(e,t){return{start:e,end:t}}var je=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ge=!!String.fromCodePoint,xe=!!Object.fromEntries,ke=!!String.prototype.codePointAt,Fe=!!String.prototype.trimStart,Ve=!!String.prototype.trimEnd,Ke=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$e=!0;try{$e="a"===(null===(Ie=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ie?void 0:Ie[0])}catch(Tt){$e=!1}var Xe,Ye=je?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},qe=Ge?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[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},We=xe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Je=ke?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},ze=Fe?function(e){return e.trimStart()}:function(e){return e.replace(Ne,"")},Ze=Ve?function(e){return e.trimEnd()}:function(e){return e.replace(Ue,"")};function Qe(e,t){return new RegExp(e,t)}if($e){var et=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xe=function(e,t){var r;return et.lastIndex=t,null!==(r=et.exec(e)[1])&&void 0!==r?r:""}}else Xe=function(e,t){for(var r=[];;){var n=Je(e,t);if(void 0===n||ot(n)||it(n))break;r.push(n),t+=n>=65536?2:1}return qe.apply(void 0,r)};var tt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(fe.UNMATCHED_CLOSING_TAG,De(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&rt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:pe.pound,location:De(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:pe.literal,value:"<".concat(n,"/>"),location:De(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rt(this.char()))return this.error(fe.INVALID_TAG,De(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(fe.UNMATCHED_CLOSING_TAG,De(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:pe.tag,value:n,children:i,location:De(r,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,De(a,this.clonePosition())))}return this.error(fe.UNCLOSED_TAG,De(r,this.clonePosition()))}return this.error(fe.INVALID_TAG,De(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&nt(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=De(r,this.clonePosition());return{val:{type:pe.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(rt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return qe.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),qe(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(fe.EMPTY_ARGUMENT,De(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(fe.MALFORMED_ARGUMENT,De(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:pe.argument,value:n,location:De(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,De(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(fe.MALFORMED_ARGUMENT,De(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Xe(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:De(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(fe.EXPECT_ARGUMENT_TYPE,De(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=Ze(y.val)).length)return this.error(fe.EXPECT_ARGUMENT_STYLE,De(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:De(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=De(n,this.clonePosition());if(c&&Ye(null==c?void 0:c.style,"::",0)){var h=ze(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,c.styleLocation)).err?y:{val:{type:pe.number,value:r,location:l,style:y.val},err:null};if(0===h.length)return this.error(fe.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=Re(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:de.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Ee(f):{}};return{val:{type:"date"===a?pe.date:pe.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?pe.number:"date"===a?pe.date:pe.time,value:r,location:l,style:null!==(o=null==c?void 0:c.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(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,De(d,I({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,De(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,g);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=De(n,this.clonePosition());return"select"===a?{val:{type:pe.select,value:r,options:We(b.val),location:E},err:null}:{val:{type:pe.plural,value:r,options:We(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(fe.INVALID_ARGUMENT_TYPE,De(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,De(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,De(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(_e).filter(function(e){return e.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],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(fe.INVALID_NUMBER_SKELETON,t)}return{val:{type:de.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Oe(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=De(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,De(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:p.val,location:De(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,De(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(fe.MISSING_OTHER_CLAUSE,De(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=De(n,this.clonePosition());return o?Ke(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Je(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Ye(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ot(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function rt(e){return e>=97&&e<=122||e>=65&&e<=90}function nt(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ot(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function it(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function at(e){e.forEach(function(e){if(delete e.location,function(e){return e.type===pe.select}(e)||function(e){return e.type===pe.plural}(e))for(var t in e.options)delete e.options[t].location,at(e.options[t].value);else(function(e){return e.type===pe.number})(e)&&function(e){return!(!e||"object"!=typeof e||e.type!==de.number)}(e.style)||(function(e){return e.type===pe.date}(e)||function(e){return e.type===pe.time}(e))&&function(e){return!(!e||"object"!=typeof e||e.type!==de.dateTime)}(e.style)?delete e.style.location:function(e){return e.type===pe.tag}(e)&&at(e.children)})}function st(e){var t=e.icuString,r=e.shouldVisit,n=e.visitor,o=e.options,i=o.recurseIntoVisited,a=void 0===i||i,s=function(e,t){void 0===t&&(t={}),t=I({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new tt(e,t).parse();if(r.err){var n=SyntaxError(fe[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||at(r.val),r.val}(t,M(o,["recurseIntoVisited"]));return c(s),s;function c(e){e.map(u)}function u(e){var t=!1;r(e)&&(n(e),t=!0),t&&!a||(e.type===pe.select||e.type===pe.plural?Object.values(e.options).map(function(e){return e.value}).map(c):e.type===pe.tag&&c(e.children))}}var ct="_gt_",ut=new RegExp("^".concat(ct,"\\d+$")),lt=new RegExp("^".concat(ct,"$"));var ht,ft={};function pt(){return ht||(ht=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.SKELETON_TYPE=ft.TYPE=void 0,ft.isLiteralElement=function(t){return t.type===e.literal},ft.isArgumentElement=function(t){return t.type===e.argument},ft.isNumberElement=function(t){return t.type===e.number},ft.isDateElement=function(t){return t.type===e.date},ft.isTimeElement=function(t){return t.type===e.time},ft.isSelectElement=function(t){return t.type===e.select},ft.isPluralElement=function(t){return t.type===e.plural},ft.isPoundElement=function(t){return t.type===e.pound},ft.isTagElement=function(t){return t.type===e.tag},ft.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},ft.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},ft.createLiteralElement=function(t){return{type:e.literal,value:t}},ft.createNumberElement=function(t,r){return{type:e.number,value:t,style:r}},function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(e||(ft.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||(ft.SKELETON_TYPE=t={}))),ft;var e,t}var dt=pt();function gt(e){var t;return e.type===dt.TYPE.select&&ut.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===dt.TYPE.literal)}function mt(e){var t;return e.type===dt.TYPE.select&<.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===dt.TYPE.literal)}function yt(e){if(!e.includes(ct))return e;var t=[];st({icuString:e,shouldVisit:mt,visitor:function(e){var r,n,o,i,a,s,c,u;t.push({start:null!==(n=null===(r=e.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=e.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,otherStart:null!==(s=null===(a=e.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(u=null===(c=e.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==u?u:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,o=0;o<t.length;o++){var i=t[o],a=i.start,s=i.end,c=i.otherStart,u=i.otherEnd;r.push(e.slice(n,a)),r.push(e.slice(a,a+4+1)),r.push(String(o+1)),r.push(e.slice(a+4+1,c)),r.push("{}"),r.push(e.slice(u,s)),n=s}return r.push(e.slice(n,e.length)),r.join("")}var vt,bt={},Et=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(me),_t=function(){if(vt)return bt;vt=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.printAST=r,bt.doPrintAST=n,bt.printDateTimeSkeleton=a;var e=Et,t=pt();function r(e){return n(e,!1)}function n(s,c){var u=s.map(function(u,l){return(0,t.isLiteralElement)(u)?function(e,t,r,n){var i=e.value;return r||"'"!==i[0]||(i="''".concat(i.slice(1))),n||"'"!==i[i.length-1]||(i="".concat(i.slice(0,i.length-1),"''")),i=o(i),t?i.replace("#","'#'"):i}(u,c,0===l,l===s.length-1):(0,t.isArgumentElement)(u)?function(e){var t=e.value;return"{".concat(t,"}")}(u):(0,t.isDateElement)(u)||(0,t.isTimeElement)(u)||(0,t.isNumberElement)(u)?function(e){return"{".concat(e.value,", ").concat(t.TYPE[e.type]).concat(e.style?", ".concat("string"==typeof(r=e.style)?o(r):r.type===t.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" "))):"","}");var r}(u):(0,t.isPluralElement)(u)?function(t){var r="cardinal"===t.pluralType?"plural":"selectordinal",o=[t.value,r,e.__spreadArray([t.offset?"offset:".concat(t.offset):""],Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(u):(0,t.isSelectElement)(u)?function(e){var t=[e.value,"select",Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!1),"}")}).join(" ")].join(",");return"{".concat(t,"}")}(u):(0,t.isPoundElement)(u)?"#":(0,t.isTagElement)(u)?function(e){return"<".concat(e.value,">").concat(r(e.children),"</").concat(e.value,">")}(u):void 0});return u.join("")}function o(e){return e.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(e){var t=e.stem,r=e.options;return 0===r.length?t:"".concat(t).concat(r.map(function(e){return"/".concat(e)}).join(""))}function a(e){return e.pattern}return bt}();var Tt=function(){return Tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tt.apply(this,arguments)};function Ht(e){if(void 0!==e){if(null===e)return"null";if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e)){for(var t="[",r=0;r<e.length;r++)r&&(t+=","),t+=Ht(e[r])||"null";return t+"]"}for(var n="",o=0,i=Object.keys(e).sort();o<i.length;o++){var a=i[o],s=Ht(e[a]);s&&(n&&(n+=","),n+=JSON.stringify(a)+":"+s)}return"{"+n+"}"}}function Bt(e){var t;return null!==(t=Ht(e))&&void 0!==t?t:""}function Lt(e){return function(e){if(l(e),g)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=m[e[r]];return t}(S(function(e){if("string"!=typeof e)throw new TypeError("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e))).slice(0,16)}function wt(e,t){var r,n=e.source,o=e.context,i=e.id,a=e.maxChars,s=e.dataFormat;return void 0===t&&(t=Lt),r="JSX"===s?At(n):n,t(Bt(Tt(Tt(Tt(Tt({source:r},i&&{id:i}),o&&{context:o}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s})))}"function"==typeof SuppressedError&&SuppressedError;var St=function(e){if(e&&"object"==typeof e){var t={};if("c"in e&&e.c&&(t.c=At(e.c)),"d"in e){var r=null==e?void 0:e.d;(null==r?void 0:r.b)&&(t.b=Object.fromEntries(Object.entries(r.b).map(function(e){return[e[0],At(e[1])]}))),(null==r?void 0:r.t)&&(t.t=r.t)}return function(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?Tt({k:e.k},e.v&&{v:e.v}):t}return e};function At(e){return Array.isArray(e)?e.map(St):St(e)}var Ct=function(e,t){return Ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ct(e,t)};function Pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ct(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ot=function(){return Ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ot.apply(this,arguments)};function It(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function Mt(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function Rt(e,t,r){for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Nt,Ut,Dt=function(e){console.warn(e)},jt=function(e){console.error(e)};function Gt(e){return e.loadTranslations?Nt.CUSTOM:e.cacheUrl?Nt.REMOTE:void 0!==e.cacheUrl&&e.cacheUrl!==A||!e.projectId?Nt.DISABLED:Nt.GT_REMOTE}function xt(e){return void 0!==e.runtimeUrl&&"https://runtime2.gtx.dev"!==e.runtimeUrl||!e.projectId||!e.devApiKey&&!e.apiKey?e.runtimeUrl?Ut.CUSTOM:Ut.DISABLED:Ut.GT}function kt(e){return Gt(e)===Nt.GT_REMOTE||xt(e)===Ut.GT}!function(e){e.GT_REMOTE="gt-remote",e.REMOTE="remote",e.CUSTOM="custom",e.DISABLED="disabled"}(Nt||(Nt={})),function(e){e.GT="gt",e.CUSTOM="custom",e.DISABLED="disabled"}(Ut||(Ut={}));var Ft=function(){},Vt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="fallback-storage-adapter",t.storage={},t}return Pt(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t){this.storage[e]=t},t.prototype.removeItem=function(e){delete this.storage[e]},t}(Ft);function Kt(t){var r=this,n=function(e){var t=e.cacheUrl,r=void 0===t?A:t,n=e.projectId,o=e._versionId,i=e._branchId,a=o?"/".concat(o):"",s=i?"?branchId=".concat(i):"";return"".concat(r,"/").concat(n,"/[locale]")+a+s}(t);return function(o){return It(r,void 0,void 0,function(){var r,i;return Mt(this,function(a){switch(a.label){case 0:return o=e.resolveCanonicalLocale(o,t.customMapping),r=n.replace("[locale]",o),[4,fetch(r)];case 1:if(!(i=a.sent()).ok)throw new Error("Failed to load translations from ".concat(r));return[4,i.json()];case 2:return[2,a.sent()]}})})}}var $t=function(){function e(e,t){this.cache={},this.fallbackPromises={},this.cache=structuredClone(e),this.onHit=null==t?void 0:t.onHit,this.onMiss=null==t?void 0:t.onMiss}return e.prototype.setCache=function(e,t){this.cache[e]=t},e.prototype.getCache=function(e){var t=this.genKey(e);return this.cache[t]},e.prototype.getInternalCache=function(){return this.cache},e.prototype.missCache=function(e){return It(this,void 0,void 0,function(){var t,r,n;return Mt(this,function(o){switch(o.label){case 0:return t=this.genKey(e),void 0===this.fallbackPromises[t]?[3,2]:[4,this.fallbackPromises[t]];case 1:return[2,o.sent()];case 2:r=this.fallback(e),this.fallbackPromises[t]=r,o.label=3;case 3:return o.trys.push([3,,5,6]),[4,r];case 4:return n=o.sent(),this.cache[t]=n,[2,n];case 5:return delete this.fallbackPromises[t],[7];case 6:return[2]}})})},e}(),Xt=function(e){function t(t){var r=t.init,n=t.translateMany,o=t.lifecycle,i=e.call(this,r,o)||this;return i._queue=[],i._batchTimer=null,i._activeRequests=0,i._translateMany=n,i}return Pt(t,e),t.prototype.get=function(e){var t=this.getCache(e);return null!=t&&this.onHit&&this.onHit({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:t}),t},t.prototype.miss=function(e){return It(this,void 0,void 0,function(){var t;return Mt(this,function(r){switch(r.label){case 0:return[4,this.missCache(e)];case 1:return null!=(t=r.sent())&&this.onMiss&&this.onMiss({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:t}),[2,t]}})})},t.prototype.genKey=function(e){return t=e.message,r=e.options,wt(Ot(Ot(Ot(Ot({source:"ICU"===r.$format?yt(t):t},(null==r?void 0:r.$context)&&{context:r.$context}),(null==r?void 0:r.$id)&&{id:r.$id}),"$maxChars"in r&&null!=r.$maxChars&&{$maxChars:Math.abs(r.$maxChars)}),{dataFormat:r.$format}));var t,r},t.prototype.fallback=function(e){var t=this._enqueueTranslation(e);return this._queue.length>=25?this._flushNow():this._scheduleBatch(),t},t.prototype._flushNow=function(){this._batchTimer&&(clearTimeout(this._batchTimer),this._batchTimer=null),this._drainQueue()},t.prototype._scheduleBatch=function(){var e=this;this._batchTimer||(this._batchTimer=setTimeout(function(){e._batchTimer=null,e._drainQueue()},50))},t.prototype._drainQueue=function(){for(;this._queue.length>0&&this._activeRequests<100;){var e=this._queue.splice(0,25);this._sendBatchRequest(e)}this._queue.length>0&&this._scheduleBatch()},t.prototype._enqueueTranslation=function(e){var t=this,r=this.genKey(e),n=e.options;return new Promise(function(o,i){t._queue.push({key:r,source:e.message,metadata:Ot(Ot(Ot(Ot({},(null==n?void 0:n.$context)&&{context:n.$context}),(null==n?void 0:n.$id)&&{id:n.$id}),"$maxChars"in n&&null!=n.$maxChars&&{$maxChars:Math.abs(n.$maxChars)}),{dataFormat:n.$format}),resolve:function(e){return o(e)},reject:i})})},t.prototype._sendBatchRequest=function(e){return It(this,void 0,void 0,function(){var t,r;return Mt(this,function(n){switch(n.label){case 0:return this._activeRequests++,t=function(e){return e.reduce(function(e,t){return e[t.key]={source:t.source,metadata:t.metadata},e},{})}(e),[4,this._sendBatchRequestWithErrorHandling(e,t)];case 1:return(r=n.sent())&&this._handleTranslationResponse(e,r),this._activeRequests--,[2]}})})},t.prototype._sendBatchRequestWithErrorHandling=function(e,t){return It(this,void 0,void 0,function(){var r,n,o;return Mt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._translateMany(t)];case 1:return[2,i.sent()];case 2:for(r=i.sent(),n=0,o=e;n<o.length;n++)o[n].reject(r);return[2,void 0];case 3:return[2]}})})},t.prototype._handleTranslationResponse=function(e,t){for(var r=0,n=e;r<n.length;r++){var o=n[r],i=o.key,a=t[i];if(a&&a.success){var s=a.translation;this.setCache(i,s),o.resolve(s)}else o.reject(null==a?void 0:a.error)}},t}($t),Yt=function(e){function t(t){var r=t.init,n=void 0===r?{}:r,o=t.ttl,i=t.loadTranslations,a=t.createTranslateMany,s=t.lifecycle,c=s.onLocalesCacheHit,u=s.onLocalesCacheMiss,l=s.onTranslationsCacheHit,h=s.onTranslationsCacheMiss,f=e.call(this,n,{onHit:c,onMiss:u})||this;return f.ttl=6e4,f.ttl=null===o?-1:null!=o?o:6e4,f._translationLoader=i,f._createTranslateMany=a,f._onTranslationsCacheHit=l,f._onTranslationsCacheMiss=h,f}return Pt(t,e),t.prototype.get=function(e){var t=this.getCache(e);if(t&&!(t.expiresAt>0&&t.expiresAt<Date.now())){var r=t.translationsCache;return null!=r&&this.onHit&&this.onHit({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:r}),r}},t.prototype.miss=function(e){return It(this,void 0,void 0,function(){var t,r;return Mt(this,function(n){switch(n.label){case 0:return[4,this.missCache(e)];case 1:return t=n.sent(),null!=(r=t.translationsCache)&&this.onMiss&&this.onMiss({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:r}),[2,r]}})})},t.prototype.genKey=function(e){return e},t.prototype.fallback=function(e){return It(this,void 0,void 0,function(){var t,r,n,o;return Mt(this,function(i){switch(i.label){case 0:return t=this._translationLoader(e),r=this.ttl<0?this.ttl:Date.now()+this.ttl,n=Xt.bind,o={},[4,t];case 1:return[2,{translationsCache:new(n.apply(Xt,[void 0,(o.init=i.sent(),o.lifecycle=this._createTranslationsCacheLifecycle(e),o.translateMany=this._createTranslateMany(e),o)])),expiresAt:r}]}})})},t.prototype._createTranslationsCacheLifecycle=function(e){var t=this;return{onHit:this._onTranslationsCacheHit?function(r){return t._onTranslationsCacheHit(Ot({locale:e},r))}:void 0,onMiss:this._onTranslationsCacheMiss?function(r){return t._onTranslationsCacheMiss(Ot({locale:e},r))}:void 0}},t}($t);function qt(e){var t=e.onLocalesCacheHit,r=e.onLocalesCacheMiss,n=e.onTranslationsCacheHit,o=e.onTranslationsCacheMiss;return{onLocalesCacheHit:function(e){null==t||t({locale:e.inputKey,value:e.outputValue.getInternalCache()})},onLocalesCacheMiss:function(e){null==r||r({locale:e.inputKey,value:e.outputValue.getInternalCache()})},onTranslationsCacheHit:function(e){null==n||n({locale:e.locale,hash:e.cacheKey,value:e.outputValue})},onTranslationsCacheMiss:function(e){null==o||o({locale:e.locale,hash:e.cacheKey,value:e.outputValue})}}}var Wt=function(){function t(t){var r,n,o,i,a,s=this;this.resolveTranslationSync=function(e,t){return s.lookupTranslation(e,t)},function(e,t,r){if(void 0===r&&(r=!0),e.forEach(function(e){switch(e.type){case"error":jt(t+e.message);break;case"warning":Dt(t+e.message)}}),r&&e.some(function(e){return"error"===e.type}))throw new Error("Validation errors occurred")}(function(t){var r=[];return r.push.apply(r,function(e){var t=[],r=e.projectId,n=e.loadTranslations;switch(Gt(e)){case Nt.REMOTE:case Nt.GT_REMOTE:r||t.push({type:"warning",message:"projectId is required when loading translations from a remote store"});break;case Nt.CUSTOM:n||t.push({type:"error",message:"loadTranslations is required when loading translations from a custom loader"});case Nt.DISABLED:}return t}(t)),r.push.apply(r,function(e){var t=[];switch(xt(e)){case Ut.CUSTOM:case Ut.GT:e.projectId||t.push({type:"warning",message:"projectId is required"}),e.devApiKey||e.apiKey||t.push({type:"warning",message:"devApiKey or apiKey is required"});case Ut.DISABLED:}return t}(t)),r.push.apply(r,function(t){var r=[];if(!kt(t))return r;var n=t.defaultLocale,o=t.locales,i=t.customMapping;return new Set(Rt(Rt([],n?[n]:[]),o||[])).forEach(function(t){e.isValidLocale(t,i)||r.push({type:"error",message:"Invalid locale: ".concat(t)})}),r}(t)),r}(t),"I18nManager: "),this.config=(i=kt(o=t),a=function(e){var t=e.defaultLocale,r=e.locales,n=e.customMapping;return{defaultLocale:t,locales:Array.from(new Set(Rt([t],r))),customMapping:n||{}}}({defaultLocale:o.defaultLocale||C,locales:o.locales||[C],customMapping:o.customMapping}),Ot({environment:o.environment||"production",enableI18n:void 0===o.enableI18n||o.enableI18n,projectId:o.projectId,devApiKey:o.devApiKey,apiKey:o.apiKey,runtimeUrl:o.runtimeUrl,_versionId:o._versionId},i?function(t){var r=e.standardizeLocale(t.defaultLocale),n=t.locales.map(function(r){var n,o,i,a;return("string"==typeof(null===(n=t.customMapping)||void 0===n?void 0:n[r])?null===(o=t.customMapping)||void 0===o?void 0:o[r]:null===(a=null===(i=t.customMapping)||void 0===i?void 0:i[r])||void 0===a?void 0:a.code)?r:e.standardizeLocale(r)}),o=Object.fromEntries(Object.entries(t.customMapping||{}).map(function(t){var r=t[0],n=t[1];return[r,"string"==typeof n?e.standardizeLocale(n):Ot(Ot({},n),n.code?{code:e.standardizeLocale(n.code)}:{})]}));return{defaultLocale:r,locales:n,customMapping:o}}(a):a)),this.storeAdapter=null!==(r=t.storeAdapter)&&void 0!==r?r:new Vt;var c,u=function(e){return function(e){var t=e.type,r=e.remoteTranslationLoaderParams,n=e.loadTranslations;t===Nt.DISABLED&&Dt("I18nManager: No translation loader found. No translations will be loaded.");var o=r.cacheUrl,i=r.projectId,a=r._versionId,s=r._branchId,c=r.customMapping;switch(t){case Nt.REMOTE:case Nt.GT_REMOTE:return Kt({cacheUrl:o||"",projectId:i||"",_versionId:a,_branchId:s,customMapping:c});case Nt.CUSTOM:return n;case Nt.DISABLED:return function(){var e=this;return function(t){return It(e,void 0,void 0,function(){return Mt(this,function(e){return[2,{}]})})}}()}}({loadTranslations:e.loadTranslations,type:Gt(e),remoteTranslationLoaderParams:{cacheUrl:e.cacheUrl,projectId:e.projectId,_versionId:e._versionId,_branchId:e._branchId,customMapping:e.customMapping}})}(t),l=(c=this.getGTClassClean(),function(e){return function(t){return c.translateMany(t,{targetLocale:e},12e3)}});this.localesCache=new Yt({loadTranslations:u,createTranslateMany:l,lifecycle:qt(null!==(n=t.lifecycle)&&void 0!==n?n:{})})}return t.prototype.getAdapterType=function(){return this.storeAdapter.type},t.prototype.getLocale=function(){return this.storeAdapter.getItem("locale")||(Dt("getLocale() invoked outside of translation context, falling back to default locale"),this.config.defaultLocale)},t.prototype.setLocale=function(e){try{this.validateLocale(e);var t=this.getGTClass();this.storeAdapter.setItem("locale",t.determineLocale(e))}catch(e){this.handleError(e)}},t.prototype.getDefaultLocale=function(){return this.config.defaultLocale},t.prototype.getLocales=function(){return this.config.locales},t.prototype.getVersionId=function(){return this.config._versionId},t.prototype.getGTClass=function(){return this.getGTClassClean(this.getLocale())},t.prototype.isTranslationEnabled=function(){return this.config.enableI18n},t.prototype.getTranslationLoader=function(){var e=this;return function(t){return e.loadTranslations(t)}},t.prototype.loadTranslations=function(){return It(this,arguments,void 0,function(e){var t,r;return void 0===e&&(e=this.getLocale()),Mt(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),this.validateLocale(e),this.requiresTranslation(e)?(t=this.localesCache.get(e))?[3,2]:[4,this.localesCache.miss(e)]:[2,{}];case 1:t=n.sent(),n.label=2;case 2:return[2,t.getInternalCache()];case 3:return r=n.sent(),this.handleError(r),[2,{}];case 4:return[2]}})})},t.prototype.lookupTranslation=function(e,t){var r;try{var n=null!==(r=t.$locale)&&void 0!==r?r:this.getLocale();if(this.validateLocale(n),!this.requiresTranslation(n))return e;var o=this.localesCache.get(n);if(!o)return;return o.get({message:e,options:t})}catch(e){return void this.handleError(e)}},t.prototype.lookupTranslationWithFallback=function(e,t){return It(this,void 0,void 0,function(){var r,n,o,i,a;return Mt(this,function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),r=null!==(a=t.$locale)&&void 0!==a?a:this.getLocale(),this.validateLocale(r),this.requiresTranslation(r)?(n=this.localesCache.get(r))?[3,2]:[4,this.localesCache.miss(r)]:[2,e];case 1:n=s.sent(),s.label=2;case 2:return null!=(o=n.get({message:e,options:t}))?[3,4]:[4,n.miss({message:e,options:t})];case 3:o=s.sent(),s.label=4;case 4:return[2,o];case 5:return i=s.sent(),this.handleError(i),[2,void 0];case 6:return[2]}})})},t.prototype.getLookupTranslation=function(){return It(this,arguments,void 0,function(e,t){var r,n,o;return void 0===e&&(e=this.getLocale()),void 0===t&&(t=[]),Mt(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),this.validateLocale(e),this.requiresTranslation(e)?(r=function(e,t){return e.filter(function(e){return null==e.options.$locale||e.options.$locale===t})}(t,e),r.length!==t.length&&Dt("I18nManager: getLookupTranslation(): prefetchEntries must all be the same locale, ignoring all entries that are not for ".concat(e)),(n=this.localesCache.get(e))?[3,2]:[4,this.localesCache.miss(e)]):[2,function(e){return e}];case 1:n=i.sent(),i.label=2;case 2:return n?[4,Promise.all(r.filter(function(e){return null==n.get(e)}).map(function(e){return n.miss(e)}))]:[2,function(){}];case 3:return i.sent(),[2,function(e,t){return n.get({message:e,options:t})}];case 4:return o=i.sent(),this.handleError(o),[2,function(e){return e}];case 5:return[2]}})})},t.prototype.getTranslations=function(){return It(this,arguments,void 0,function(e){return void 0===e&&(e=this.getLocale()),Mt(this,function(t){try{return this.validateLocale(e),[2,this.loadTranslations(e)]}catch(e){return this.handleError(e),[2,{}]}return[2]})})},t.prototype.getTranslationResolver=function(){return It(this,arguments,void 0,function(e){return void 0===e&&(e=this.getLocale()),Mt(this,function(t){return[2,this.getLookupTranslation(e)]})})},t.prototype.requiresTranslation=function(e){void 0===e&&(e=this.getLocale());var t=this.getDefaultLocale(),r=this.getGTClass(),n=this.getLocales();return this.isTranslationEnabled()&&r.requiresTranslation(t,e,n)},t.prototype.requiresDialectTranslation=function(e){void 0===e&&(e=this.getLocale());var t=this.getDefaultLocale(),r=this.getGTClass();return this.requiresTranslation(e)&&r.isSameLanguage(t,e)},t.prototype.handleError=function(e){if("development"===this.config.environment)throw e;jt("I18nManager: "+e)},t.prototype.validateLocale=function(e){var t=this.getGTClass();if(!t.isValidLocale(e)||!t.determineLocale(e))throw new Error("I18nManager: validateLocale(): locale ".concat(e," is not valid"))},t.prototype.getGTClassClean=function(t){return new e.GT({sourceLocale:this.config.defaultLocale,targetLocale:t,locales:this.config.locales,customMapping:this.config.customMapping,projectId:this.config.projectId,baseUrl:this.config.runtimeUrl||void 0,apiKey:this.config.apiKey,devApiKey:this.config.devApiKey})},t}(),Jt=void 0;function zt(){return Jt||(Dt("getI18nManager(): Translation failed because I18nManager not initialized."),Jt=new Wt({defaultLocale:C,locales:[C]})),Jt}var Zt=function(e){return'String interpolation failed for message: "'.concat(e,'".')};function Qt(t,r){var n,o;if(!t)return t;var i=r.$_fallback,a=function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var t=e[0];return"$id"!==t&&"$context"!==t&&"$maxChars"!==t&&"$hash"!==t&&"$_hash"!==t&&"$_source"!==t&&"$_fallback"!==t&&"$format"!==t&&"$_locales"!==t&&"$locale"!==t}))}(r);try{var s=function(e){if(!e.includes(ct))return{};var t=1,r={};return st({icuString:e,shouldVisit:mt,visitor:function(e){var n;r[e.value+t]=e.options.other.value.length?null===(n=e.options.other.value[0])||void 0===n?void 0:n.value:"",t+=1},options:{recurseIntoVisited:!1}}),r}(i||""),c=function(t,r,n,o){try{return e.formatMessage(t,{variables:r,locales:n,dataFormat:o})}catch(r){return Dt(Zt(t)),t}}(Object.keys(s).length?function(e){if(!e.includes(ct))return e;var t=st({icuString:e,shouldVisit:gt,visitor:function(e){e.type=dt.TYPE.argument,delete e.options},options:{recurseIntoVisited:!1}});return _t.printAST(t)}(t):t,Ot(Ot(Ot({},a),s),((n={})[ct]="other",n)),null!==(o=r.$locale)&&void 0!==o?o:r.$_locales,r.$format);return e.formatCutoff(c,{maxChars:r.$maxChars})}catch(n){return Dt(Zt(t)),null!=r.$_fallback?Qt(r.$_fallback,Ot(Ot({},r),{$_fallback:void 0})):e.formatCutoff(t,{maxChars:r.$maxChars})}}function er(e){var t=e.source,r=e.target,n=e.options,o=zt();return null!=r?tr(r,Ot({$locale:o.getLocale(),$_fallback:t},n)):tr(t,Ot({$locale:o.getDefaultLocale()},n))}function tr(t,r){var n;switch(null!==(n=r.$format)&&void 0!==n?n:"STRING"){case"ICU":return Qt(t,r);case"I18NEXT":case"STRING":return function(t,r){var n;return e.formatCutoff(t,{locales:null!==(n=r.$locale)&&void 0!==n?n:r.$_locales,maxChars:r.$maxChars})}(t,r);default:return t}}function rr(e,t){return It(this,void 0,void 0,function(){var r,n;return Mt(this,function(o){switch(o.label){case 0:return r=or(t,"JSX"),[4,zt().lookupTranslationWithFallback(e,r)];case 1:return[2,null!=(n=o.sent())?n:e]}})})}function nr(e,t){return It(this,void 0,void 0,function(){var r,n;return Mt(this,function(o){switch(o.label){case 0:return r=or(t,"STRING"),[4,zt().lookupTranslationWithFallback(e,r)];case 1:return n=o.sent(),[2,er({source:e,target:n,options:r})]}})})}function or(e,t){return Ot({$format:t},e)}var ir=function(e,t){return void 0===t&&(t={}),function(e,t){var r=or(t,"STRING"),n=zt().lookupTranslation(e,r);if(null!=n)return er({source:e,target:n,options:r})}(e,Ot({$format:"ICU"},t))},ar=function(e,t){return void 0===t&&(t={}),function(e,t){var r=or(t,"STRING");return er({source:e,target:zt().lookupTranslation(e,r),options:r})}(e,Ot({$format:"ICU"},t))};function sr(e,t,r=""){const n=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT}(e),o=e?.length;if(!n||void 0!==t){const t=(r&&`"${r}" `)+"expected Uint8Array, got "+(n?`length=${o}`:"type="+typeof e);if(!n)throw new TypeError(t);throw new RangeError(t)}return e}function cr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ur(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function lr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function hr(e,t){return e<<32-t|e>>>t}const fr="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,pr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function dr(e,t,r){return e&t^~e&r}function gr(e,t,r){return e&t^e&r^t&r}class mr{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,n){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=lr(this.buffer)}update(e){cr(this),sr(e);const{view:t,buffer:r,blockLen:n}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(n-this.pos,o-i);if(a===n){const t=lr(e);for(;n<=o-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){cr(this),function(e,t){sr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:o}=this;let{pos:i}=this;t[i++]=128,ur(this.buffer.subarray(i)),this.padOffset>n-i&&(this.process(r,0),i=0);for(let e=i;e<n;e++)t[e]=0;r.setBigUint64(n-8,BigInt(8*this.length),o),this.process(r,0);const a=lr(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const c=s/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)a.setUint32(4*e,u[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=n,e.pos=a,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}const yr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vr=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),br=new Uint32Array(64);class Er extends mr{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[e,t,r,n,o,i,a,s]}set(e,t,r,n,o,i,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)br[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=br[e-15],r=br[e-2],n=hr(t,7)^hr(t,18)^t>>>3,o=hr(r,17)^hr(r,19)^r>>>10;br[e]=o+br[e-7]+n+br[e-16]|0}let{A:r,B:n,C:o,D:i,E:a,F:s,G:c,H:u}=this;for(let e=0;e<64;e++){const t=u+(hr(a,6)^hr(a,11)^hr(a,25))+dr(a,s,c)+vr[e]+br[e]|0,l=(hr(r,2)^hr(r,13)^hr(r,22))+gr(r,n,o)|0;u=c,c=s,s=a,a=i+t|0,i=o,o=n,n=r,r=t+l|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(r,n,o,i,a,s,c,u)}roundClean(){ur(br)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),ur(this.buffer)}}class _r extends Er{A=0|yr[0];B=0|yr[1];C=0|yr[2];D=0|yr[3];E=0|yr[4];F=0|yr[5];G=0|yr[6];H=0|yr[7];constructor(){super(32)}}const Tr=function(e,t={}){const r=(t,r)=>e(r).update(t).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)}(()=>new _r,(e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])}))(1));var Hr="en",Br=["singular","plural","dual","zero","one","two","few","many","other"];function Lr(e){return Br.includes(e)}var wr=function(e,t){return wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},wr(e,t)};function Sr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}wr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ar=function(){return Ar=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ar.apply(this,arguments)};function Cr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function Pr(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function Or(e,t){return function(r,n){t(r,n,e)}}function Ir(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,h=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var d={};for(var g in n)d[g]="access"===g?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[u],d);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(h.get=s),(s=a(m.set))&&(h.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===c?o.unshift(s):h[u]=s)}l&&Object.defineProperty(l,n.name,h),f=!0}function Mr(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function Rr(e){return"symbol"==typeof e?e:"".concat(e)}function Nr(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ur(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Dr(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function jr(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var Gr=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function xr(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Gr(t,e,r)}function kr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Vr(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Fr(arguments[t]));return e}function Kr(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function $r(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Xr(e){return this instanceof Xr?(this.v=e,this):new Xr(e)}function Yr(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof Xr?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function qr(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:Xr(e[n](t)),done:!1}:o?o(t):t}:o}}function Wr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=kr(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function Jr(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var zr=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Zr=function(e){return Zr=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},Zr(e)};function Qr(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=Zr(e),n=0;n<r.length;n++)"default"!==r[n]&&Gr(t,e,r[n]);return zr(t,e),t}function en(e){return e&&e.__esModule?e:{default:e}}function tn(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function rn(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function nn(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function on(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var an="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function sn(e){function t(t){e.error=e.hasError?new an(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function cn(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}var un,ln,hn={__extends:Sr,__assign:Ar,__rest:Cr,__decorate:Pr,__param:Or,__esDecorate:Ir,__runInitializers:Mr,__propKey:Rr,__setFunctionName:Nr,__metadata:Ur,__awaiter:Dr,__generator:jr,__createBinding:Gr,__exportStar:xr,__values:kr,__read:Fr,__spread:Vr,__spreadArrays:Kr,__spreadArray:$r,__await:Xr,__asyncGenerator:Yr,__asyncDelegator:qr,__asyncValues:Wr,__makeTemplateObject:Jr,__importStar:Qr,__importDefault:en,__classPrivateFieldGet:tn,__classPrivateFieldSet:rn,__classPrivateFieldIn:nn,__addDisposableResource:on,__disposeResources:sn,__rewriteRelativeImportExtension:cn},fn=Object.freeze({__proto__:null,__addDisposableResource:on,get __assign(){return Ar},__asyncDelegator:qr,__asyncGenerator:Yr,__asyncValues:Wr,__await:Xr,__awaiter:Dr,__classPrivateFieldGet:tn,__classPrivateFieldIn:nn,__classPrivateFieldSet:rn,__createBinding:Gr,__decorate:Pr,__disposeResources:sn,__esDecorate:Ir,__exportStar:xr,__extends:Sr,__generator:jr,__importDefault:en,__importStar:Qr,__makeTemplateObject:Jr,__metadata:Ur,__param:Or,__propKey:Rr,__read:Fr,__rest:Cr,__rewriteRelativeImportExtension:cn,__runInitializers:Mr,__setFunctionName:Nr,__spread:Vr,__spreadArray:$r,__spreadArrays:Kr,__values:kr,default:hn}),pn="ellipsis",dn="DEFAULT_TERMINATOR_KEY",gn={ellipsis:(un={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},un[dn]={terminator:"…",separator:void 0},un),none:(ln={},ln[dn]={terminator:void 0,separator:void 0},ln)},mn=function(){function e(e,t){var r,n,o,i,a,s,c,u,l;void 0===t&&(t={});try{var h=e?Array.isArray(e)?e.map(function(e){return String(e)}):[String(e)]:[Hr],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:Hr}catch(e){this.locale=Hr}if(!gn[null!==(r=t.style)&&void 0!==r?r:pn])throw new Error(function(e){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(e,".")}(null!==(n=t.style)&&void 0!==n?n:pn));if(void 0!==t.maxChars){u=null!==(o=t.style)&&void 0!==o?o:pn;var p=new Intl.Locale(this.locale).language;l=gn[u][p]||gn[u][dn]}var d=null!==(i=t.terminator)&&void 0!==i?i:null==l?void 0:l.terminator,g=null!=d?null!==(a=t.separator)&&void 0!==a?a:null==l?void 0:l.separator:void 0;this.additionLength=(null!==(s=null==d?void 0:d.length)&&void 0!==s?s:0)+(null!==(c=null==g?void 0:g.length)&&void 0!==c?c:0),void 0!==t.maxChars&&Math.abs(t.maxChars)<this.additionLength&&(d=void 0,g=void 0),this.options={maxChars:t.maxChars,style:u,terminator:d,separator:g}}return e.prototype.format=function(e){return this.formatToParts(e).join("")},e.prototype.formatToParts=function(e){var t=this.options,r=t.maxChars,n=t.terminator,o=t.separator,i=void 0===r||Math.abs(r)>=e.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==i&&i>-1?e.slice(0,i):e.slice(i);return null==r||null==i||0===i||null==n||e.length<=Math.abs(r)?[a]:i>0?null!=o?[a,o,n]:[a,n]:null!=o?[n,o,a]:[n,a]},e.prototype.resolvedOptions=function(){return this.options},e}(),yn={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:mn},vn=function(){function e(){this.cache={}}return e.prototype._generateKey=function(e,t){void 0===t&&(t={});var r=e?Array.isArray(e)?e.map(function(e){return String(e)}).join(","):String(e):"undefined",n=t?JSON.stringify(t,Object.keys(t).sort()):"{}";return"".concat(r,":").concat(n)},e.prototype.get=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=n[0],a=void 0===i?Hr:i,s=n[1],c=void 0===s?{}:s,u=this._generateKey(a,c),l=null===(r=this.cache[e])||void 0===r?void 0:r[u];return void 0===l&&(l=new((t=yn[e]).bind.apply(t,$r([void 0],n,!1))),this.cache[e]||(this.cache[e]={}),this.cache[e][u]=l),l},e}(),bn=new vn;function En(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}var _n,Tn,Hn,Bn={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function Ln(e){return Bn[e]}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(_n||(_n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Tn||(Tn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Hn||(Hn={}));var wn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Sn=/(?:[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 An(e){var t={};return e.replace(Sn,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Cn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Pn(e){return e.replace(/^(.*?)-/,"")}var On=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,In=/^(@+)?(\+|#+)?[rs]?$/g,Mn=/(\*)(0+)|(#+)(0+)|(0+)/g,Rn=/^(0+)$/;function Nn(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(In,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function Un(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Dn(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Rn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function jn(e){return Un(e)||{}}function Gn(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Pn(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Ar(Ar(Ar({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return Ar(Ar({},e),jn(t))},{}));continue;case"engineering":t=Ar(Ar(Ar({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return Ar(Ar({},e),jn(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.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(Mn,function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Rn.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(On.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(On,function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=o.options[0];"w"===i?t=Ar(Ar({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Ar(Ar({},t),Nn(i)))}else if(In.test(o.stem))t=Ar(Ar({},t),Nn(o.stem));else{var a=Un(o.stem);a&&(t=Ar(Ar({},t),a));var s=Dn(o.stem);s&&(t=Ar(Ar({},t),s))}}return t}var xn,kn={"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 Fn(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(kn[r||""]||kn[n||""]||kn["".concat(n,"-001")]||kn["001"])[0]}var Vn=new RegExp("^".concat(wn.source,"*")),Kn=new RegExp("".concat(wn.source,"*$"));function $n(e,t){return{start:e,end:t}}var Xn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Yn=!!String.fromCodePoint,qn=!!Object.fromEntries,Wn=!!String.prototype.codePointAt,Jn=!!String.prototype.trimStart,zn=!!String.prototype.trimEnd,Zn=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qn=!0;try{Qn="a"===(null===(xn=so("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===xn?void 0:xn[0])}catch($o){Qn=!1}var eo,to=Xn?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},ro=Yn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[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},no=qn?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},oo=Wn?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},io=Jn?function(e){return e.trimStart()}:function(e){return e.replace(Vn,"")},ao=zn?function(e){return e.trimEnd()}:function(e){return e.replace(Kn,"")};function so(e,t){return new RegExp(e,t)}if(Qn){var co=so("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");eo=function(e,t){var r;return co.lastIndex=t,null!==(r=co.exec(e)[1])&&void 0!==r?r:""}}else eo=function(e,t){for(var r=[];;){var n=oo(e,t);if(void 0===n||fo(n)||po(n))break;r.push(n),t+=n>=65536?2:1}return ro.apply(void 0,r)};var uo=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(_n.UNMATCHED_CLOSING_TAG,$n(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&lo(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Tn.pound,location:$n(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Tn.literal,value:"<".concat(n,"/>"),location:$n(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!lo(this.char()))return this.error(_n.INVALID_TAG,$n(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(_n.UNMATCHED_CLOSING_TAG,$n(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Tn.tag,value:n,children:i,location:$n(r,this.clonePosition())},err:null}:this.error(_n.INVALID_TAG,$n(a,this.clonePosition())))}return this.error(_n.UNCLOSED_TAG,$n(r,this.clonePosition()))}return this.error(_n.INVALID_TAG,$n(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ho(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=$n(r,this.clonePosition());return{val:{type:Tn.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(lo(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return ro.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),ro(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_n.EXPECT_ARGUMENT_CLOSING_BRACE,$n(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(_n.EMPTY_ARGUMENT,$n(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(_n.MALFORMED_ARGUMENT,$n(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_n.EXPECT_ARGUMENT_CLOSING_BRACE,$n(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Tn.argument,value:n,location:$n(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_n.EXPECT_ARGUMENT_CLOSING_BRACE,$n(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(_n.MALFORMED_ARGUMENT,$n(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=eo(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:$n(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(_n.EXPECT_ARGUMENT_TYPE,$n(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=ao(y.val)).length)return this.error(_n.EXPECT_ARGUMENT_STYLE,$n(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:$n(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=$n(n,this.clonePosition());if(c&&to(null==c?void 0:c.style,"::",0)){var h=io(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,c.styleLocation)).err?y:{val:{type:Tn.number,value:r,location:l,style:y.val},err:null};if(0===h.length)return this.error(_n.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=Fn(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:Hn.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?An(f):{}};return{val:{type:"date"===a?Tn.date:Tn.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?Tn.number:"date"===a?Tn.date:Tn.time,value:r,location:l,style:null!==(o=null==c?void 0:c.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(_n.EXPECT_SELECT_ARGUMENT_OPTIONS,$n(d,Ar({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(_n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$n(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(_n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,g);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=$n(n,this.clonePosition());return"select"===a?{val:{type:Tn.select,value:r,options:no(b.val),location:E},err:null}:{val:{type:Tn.plural,value:r,options:no(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(_n.INVALID_ARGUMENT_TYPE,$n(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(_n.EXPECT_ARGUMENT_CLOSING_BRACE,$n(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$n(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Cn).filter(function(e){return e.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],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(_n.INVALID_NUMBER_SKELETON,t)}return{val:{type:Hn.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Gn(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(_n.EXPECT_PLURAL_ARGUMENT_SELECTOR,_n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=$n(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?_n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?_n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$n(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:p.val,location:$n(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?_n.EXPECT_SELECT_ARGUMENT_SELECTOR:_n.EXPECT_PLURAL_ARGUMENT_SELECTOR,$n(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(_n.MISSING_OTHER_CLAUSE,$n(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=$n(n,this.clonePosition());return o?Zn(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=oo(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(to(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&fo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function lo(e){return e>=97&&e<=122||e>=65&&e<=90}function ho(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function fo(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function po(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function go(e){e.forEach(function(e){if(delete e.location,function(e){return e.type===Tn.select}(e)||function(e){return e.type===Tn.plural}(e))for(var t in e.options)delete e.options[t].location,go(e.options[t].value);else(function(e){return e.type===Tn.number})(e)&&function(e){return!(!e||"object"!=typeof e||e.type!==Hn.number)}(e.style)||(function(e){return e.type===Tn.date}(e)||function(e){return e.type===Tn.time}(e))&&function(e){return!(!e||"object"!=typeof e||e.type!==Hn.dateTime)}(e.style)?delete e.style.location:function(e){return e.type===Tn.tag}(e)&&go(e.children)})}function mo(e){var t=e.icuString,r=e.shouldVisit,n=e.visitor,o=e.options,i=o.recurseIntoVisited,a=void 0===i||i,s=function(e,t){void 0===t&&(t={}),t=Ar({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new uo(e,t).parse();if(r.err){var n=SyntaxError(_n[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||go(r.val),r.val}(t,Cr(o,["recurseIntoVisited"]));return c(s),s;function c(e){e.map(u)}function u(e){var t=!1;r(e)&&(n(e),t=!0),t&&!a||(e.type===Tn.select||e.type===Tn.plural?Object.values(e.options).map(function(e){return e.value}).map(c):e.type===Tn.tag&&c(e.children))}}var yo,vo="_gt_",bo=new RegExp("^".concat(vo,"$")),Eo={};function _o(){return yo||(yo=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.SKELETON_TYPE=Eo.TYPE=void 0,Eo.isLiteralElement=function(t){return t.type===e.literal},Eo.isArgumentElement=function(t){return t.type===e.argument},Eo.isNumberElement=function(t){return t.type===e.number},Eo.isDateElement=function(t){return t.type===e.date},Eo.isTimeElement=function(t){return t.type===e.time},Eo.isSelectElement=function(t){return t.type===e.select},Eo.isPluralElement=function(t){return t.type===e.plural},Eo.isPoundElement=function(t){return t.type===e.pound},Eo.isTagElement=function(t){return t.type===e.tag},Eo.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},Eo.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},Eo.createLiteralElement=function(t){return{type:e.literal,value:t}},Eo.createNumberElement=function(t,r){return{type:e.number,value:t,style:r}},function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(e||(Eo.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||(Eo.SKELETON_TYPE=t={}))),Eo;var e,t}var To=_o();function Ho(e){var t;return e.type===To.TYPE.select&&bo.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===To.TYPE.literal)}function Bo(e){if(!e.includes(vo))return e;var t=[];mo({icuString:e,shouldVisit:Ho,visitor:function(e){var r,n,o,i,a,s,c,u;t.push({start:null!==(n=null===(r=e.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=e.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,otherStart:null!==(s=null===(a=e.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(u=null===(c=e.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==u?u:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,o=0;o<t.length;o++){var i=t[o],a=i.start,s=i.end,c=i.otherStart,u=i.otherEnd;r.push(e.slice(n,a)),r.push(e.slice(a,a+4+1)),r.push(String(o+1)),r.push(e.slice(a+4+1,c)),r.push("{}"),r.push(e.slice(u,s)),n=s}return r.push(e.slice(n,e.length)),r.join("")}var Lo,wo={},So=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(fn);function Ao(e,r=0){let n=r;function o(e){return t.isValidElement(e)?function(e){const{props:r}=e,o=(e=>{const{type:t,props:r}=e;n+=1;const o={id:n,injectionType:"manual"};let i;try{i="function"==typeof t&&t._gtt||""}catch{}if(i){const e=i.split("-");if("automatic"!==e[1]&&"automatic"!==e[2]||(o.injectionType="automatic"),"translate"===e[0]&&(e[0]="fragment"),"variable"===e[0]&&(o.variableType=e?.[1]||"variable"),"plural"===e[0]){const e=Object.entries(r).reduce((e,[t,r])=>(Lr(t)&&(e[t]=Ao(r,n)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:t,...i}=r,a=Object.fromEntries(Object.entries(i).filter(([e])=>!e.startsWith("data-"))),s=Object.entries(a).reduce((e,[t,r])=>(e[t]=Ao(r,n),e),{});Object.keys(s).length&&(o.branches=s)}o.transformation=e[0]}return o})(e),a={...r,"data-_gt":o};return r.children&&!o.variableType&&(a.children=i(r.children)),e.type===t.Fragment&&(a["data-_gt"].transformation="fragment"),t.cloneElement(e,a)}(e):e}function i(e){return Array.isArray(e)?t.Children.map(e,o):o(e)}return i(e)}!function(){if(Lo)return wo;Lo=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.printAST=r,wo.doPrintAST=n,wo.printDateTimeSkeleton=a;var e=So,t=_o();function r(e){return n(e,!1)}function n(s,c){var u=s.map(function(u,l){return(0,t.isLiteralElement)(u)?function(e,t,r,n){var i=e.value;return r||"'"!==i[0]||(i="''".concat(i.slice(1))),n||"'"!==i[i.length-1]||(i="".concat(i.slice(0,i.length-1),"''")),i=o(i),t?i.replace("#","'#'"):i}(u,c,0===l,l===s.length-1):(0,t.isArgumentElement)(u)?function(e){var t=e.value;return"{".concat(t,"}")}(u):(0,t.isDateElement)(u)||(0,t.isTimeElement)(u)||(0,t.isNumberElement)(u)?function(e){return"{".concat(e.value,", ").concat(t.TYPE[e.type]).concat(e.style?", ".concat("string"==typeof(r=e.style)?o(r):r.type===t.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" "))):"","}");var r}(u):(0,t.isPluralElement)(u)?function(t){var r="cardinal"===t.pluralType?"plural":"selectordinal",o=[t.value,r,e.__spreadArray([t.offset?"offset:".concat(t.offset):""],Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(u):(0,t.isSelectElement)(u)?function(e){var t=[e.value,"select",Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!1),"}")}).join(" ")].join(",");return"{".concat(t,"}")}(u):(0,t.isPoundElement)(u)?"#":(0,t.isTagElement)(u)?function(e){return"<".concat(e.value,">").concat(r(e.children),"</").concat(e.value,">")}(u):void 0});return u.join("")}function o(e){return e.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(e){var t=e.stem,r=e.options;return 0===r.length?t:"".concat(t).concat(r.map(function(e){return"/".concat(e)}).join(""))}function a(e){return e.pattern}}();function Co(e,r){return t.isValidElement(e)?function(e,r){const{type:n,props:o}=e,i=function(e){const t="function"==typeof e&&"_gtt"in e?e._gtt:void 0;if(null==t||"string"!=typeof t)return;const r=t.split("-");return{componentType:r[0],injectionType:"automatic"===r[1]||"automatic"===r[2]?"automatic":"manual"}}(n);if("object"!=typeof o||null===o)return e;if(i){const{componentType:n,injectionType:a}=i;if("variable"===n)return e;if("branch"===n){const n=Object.entries(o).reduce((e,[t,n])=>("branch"===t||t.startsWith("data-")?e[t]=n:e[t]=Co(n,r),e),{});return t.cloneElement(e,{...n})}if("plural"===n){const n=Object.entries(o).reduce((e,[t,n])=>(Lr(t)||"children"===t?e[t]=Co(n,r):e[t]=n,e),{});return t.cloneElement(e,{...n})}if("derive"===n)return t.cloneElement(e,{...o,..."children"in o&&{children:Po(o.children,r+1)}});if("translate"===n&&"automatic"===a&&r>0)return"children"in o?Po(o.children,r):void 0;"translate"===n&&"automatic"===a&&console.warn("@generaltranslation/react-core Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.")}return t.cloneElement(e,{...o,..."children"in o&&{children:Po(o.children,r)}})}(e,r):e}function Po(e,r){return Array.isArray(e)?t.Children.map(e,e=>Co(e,r)):Co(e,r)}const Oo={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function Io(e={},t){return e.name?e.name:`_gt_${Oo[t]||"value"}_${e["data-_gt"]?.id}`}var Mo={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const Ro=e=>{if(!e)return"";const{type:t,props:r}=e;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},No=e=>{return r=e,t.isValidElement(r)?(e=>{const{props:t}=e,r={t:Ro(e)};if(t["data-_gt"]){const e=t["data-_gt"],n=e.transformation;if("variable"===n){const r=e.variableType||"variable",n=Io(t,r),o=Ln(r);return{i:e.id,k:n,v:o}}r.i=e.id,r.d=((e,t,r)=>{let n=Object.entries(Mo).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=Uo(r)}),n={...n,b:e,t:"p"}}if("branch"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=Uo(r)}),n={...n,b:e,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,e.branches);let o=Object.entries(Mo).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=Uo(r)}),o={...o,b:t,t:"p"}}if("branch"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=Uo(r)}),o={...o,b:t,t:"b"}}r.d=Object.keys(o).length?o:void 0}return t.children&&(r.c=Uo(t.children)),r})(e):"number"==typeof e?e.toString():e;var r};function Uo(e){return Array.isArray(e)?e.map(No):No(e)}function Do(e,t,r){let n="",o=null;return"number"==typeof e&&!o&&r&&(n=function(e,t,r){void 0===t&&(t=Br),void 0===r&&(r=[Hr]);var n=bn.get("PluralRules",r).select(e),o=Math.abs(e);if(0===o&&t.includes("zero"))return"zero";if(1===o){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===o){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(e,Object.keys(r),t)),n&&!o&&(o=r[n]),o}function jo(e){return"object"==typeof e&&!!e&&"data-_gt"in e&&"object"==typeof e["data-_gt"]&&!!e["data-_gt"]&&"transformation"in e["data-_gt"]&&"variable"===e["data-_gt"]?.transformation}function Go(e){const t=e["data-_gt"]?.variableType||"variable";return{variableName:Io(e,t),variableType:Ln(t),injectionType:e["data-_gt"]?.injectionType||"manual",variableValue:void 0!==e.value?e.value:void 0!==e.date?e.date:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t={...void 0!==e.currency&&{currency:e.currency},...void 0!==e.unit&&{unit:e.unit},...void 0!==e.baseDate&&{baseDate:e.baseDate},...void 0!==e.options&&e.options};return Object.keys(t).length?t:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function xo(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function ko({children:e,defaultLocale:r=Hr,renderVariable:n}){const o=e=>t.isValidElement(e)?(e=>{const o=xo(e);if(jo(e.props)){const{variableType:t,variableValue:o,variableOptions:i,injectionType:a}=Go(e.props);return n({variableType:t,variableValue:o,variableOptions:i,locales:[r],injectionType:a})}if("plural"===o?.transformation){const t=o.branches||{};return i(Do(e.props.n,[r],t)||e.props.children)}if("branch"===o?.transformation){let{children:t,branch:r,"data-_gt":n,...a}=e.props;return a=o.branches||{},i(void 0!==a[r]?a[r]:t)}return"fragment"===o?.transformation?t.createElement(t.Fragment,{key:e.props.key,children:i(e.props.children)}):e.props.children?t.cloneElement(e,{...e.props,"data-_gt":void 0,children:i(e.props.children)}):t.cloneElement(e,{...e.props,"data-_gt":void 0})})(e):e,i=e=>Array.isArray(e)?t.Children.map(e,o):o(e);return i(e)}function Fo({sourceElement:e,targetElement:r,locales:n=[Hr],renderVariable:o}){const{props:i}=e,a=i["data-_gt"],s=a?.transformation,c=r.d,u={};if(c&&Object.entries(Mo).forEach(([e,t])=>{c[e]&&(u[t]=c[e])}),"plural"===s){const t=e.props.n;return Vo({source:Do(t,n,a.branches||{})||e.props.children,target:Do(t,n,r.d?.b||{})||r.c,locales:n,renderVariable:o})}if("branch"===s){const{branch:e,children:t}=i;return Vo({source:(a.branches||{})[e]||t,target:(r.d?.b||{})[e]||r.c,locales:n,renderVariable:o})}return"fragment"===s&&r.c?t.createElement(t.Fragment,{key:e.props.key,children:Vo({source:i.children,target:r.c,locales:n,renderVariable:o})}):i?.children&&r?.c?t.cloneElement(e,{...i,...u,"data-_gt":void 0,children:Vo({source:i.children,target:r.c,locales:n,renderVariable:o})}):ko({children:e,defaultLocale:n[0],renderVariable:o})}function Vo({source:e,target:n,locales:o=[Hr],renderVariable:i}){if(null==n&&e)return ko({children:e,defaultLocale:o[0],renderVariable:i});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(e)&&e&&(e=[e]),Array.isArray(e)&&Array.isArray(n)){const a={},s={},c={},u=e.filter(e=>{if(t.isValidElement(e)){if(!jo(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n,injectionType:o}=Go(e.props);a[t]=r,s[t]=n,c[t]=o}}return!1}),l=e=>u.find(t=>{const r=xo(t);return void 0!==r?.id&&r.id===e.i})||u.shift();return n.map((e,n)=>{if("string"==typeof e)return r.jsx(t.Fragment,{children:e},`string_${n}`);if(En(e))return r.jsx(t.Fragment,{children:i({variableType:e.v||"v",variableValue:a[e.k],variableOptions:s[e.k],locales:o,injectionType:c[e.k]||"manual"})},`var_${n}`);const u=l(e);return u?r.jsx(t.Fragment,{children:Fo({sourceElement:u,targetElement:e,locales:o,renderVariable:i})},`element_${n}`):null})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=En(n)?"variable":"element";if(t.isValidElement(e)){if("element"===r)return Fo({sourceElement:e,targetElement:n,locales:o,renderVariable:i});if(jo(e.props)){const{variableValue:t,variableOptions:r,variableType:n,injectionType:a}=Go(e.props);return i({variableType:n,variableValue:t,variableOptions:r,locales:o,injectionType:a})}}}return ko({children:e,defaultLocale:o[0],renderVariable:i})}const Ko="generaltranslation.locale";var $o=function(){return $o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$o.apply(this,arguments)};function Xo(e){if(void 0!==e){if(null===e)return"null";if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e)){for(var t="[",r=0;r<e.length;r++)r&&(t+=","),t+=Xo(e[r])||"null";return t+"]"}for(var n="",o=0,i=Object.keys(e).sort();o<i.length;o++){var a=i[o],s=Xo(e[a]);s&&(n&&(n+=","),n+=JSON.stringify(a)+":"+s)}return"{"+n+"}"}}function Yo(e){var t;return null!==(t=Xo(e))&&void 0!==t?t:""}function qo(e){return function(e){if(sr(e),fr)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=pr[e[r]];return t}(Tr(function(e){if("string"!=typeof e)throw new TypeError("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e))).slice(0,16)}"function"==typeof SuppressedError&&SuppressedError;var Wo=function(e){if(e&&"object"==typeof e){var t={};if("c"in e&&e.c&&(t.c=Jo(e.c)),"d"in e){var r=null==e?void 0:e.d;(null==r?void 0:r.b)&&(t.b=Object.fromEntries(Object.entries(r.b).map(function(e){return[e[0],Jo(e[1])]}))),(null==r?void 0:r.t)&&(t.t=r.t)}return function(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?$o({k:e.k},e.v&&{v:e.v}):t}return e};function Jo(e){return Array.isArray(e)?e.map(Wo):Wo(e)}var zo=function(e,t){return zo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},zo(e,t)};function Zo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Qo,ei,ti,ri=function(){return ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ri.apply(this,arguments)};function ni(e,t,r,n){return new(r||(r=Promise))(function(t,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function a(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r(function(e){e(n)})).then(i,a)}s((n=n.apply(e,[])).next())})}function oi(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}"function"==typeof SuppressedError&&SuppressedError,(ti=Qo||(Qo={})).GT_REMOTE="gt-remote",ti.REMOTE="remote",ti.CUSTOM="custom",ti.DISABLED="disabled",function(e){e.GT="gt",e.CUSTOM="custom",e.DISABLED="disabled"}(ei||(ei={})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="fallback-storage-adapter",t.storage={},t}Zo(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t){this.storage[e]=t},t.prototype.removeItem=function(e){delete this.storage[e]}}(function(){});var ii=function(){function e(e,t){this.cache={},this.fallbackPromises={},this.cache=structuredClone(e),this.onHit=null==t?void 0:t.onHit,this.onMiss=null==t?void 0:t.onMiss}return e.prototype.setCache=function(e,t){this.cache[e]=t},e.prototype.getCache=function(e){var t=this.genKey(e);return this.cache[t]},e.prototype.getInternalCache=function(){return this.cache},e.prototype.missCache=function(e){return ni(this,0,void 0,function(){var t,r,n;return oi(this,function(o){switch(o.label){case 0:return t=this.genKey(e),void 0===this.fallbackPromises[t]?[3,2]:[4,this.fallbackPromises[t]];case 1:return[2,o.sent()];case 2:r=this.fallback(e),this.fallbackPromises[t]=r,o.label=3;case 3:return o.trys.push([3,,5,6]),[4,r];case 4:return n=o.sent(),this.cache[t]=n,[2,n];case 5:return delete this.fallbackPromises[t],[7];case 6:return[2]}})})},e}();function ai(e,t){return function(e,t){var r,n=e.source,o=e.context,i=e.id,a=e.maxChars,s=e.dataFormat;return void 0===t&&(t=qo),r="JSX"===s?Jo(n):n,t(Yo($o($o($o($o({source:r},i&&{id:i}),o&&{context:o}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s})))}(ri(ri(ri(ri({source:"ICU"===t.$format?Bo(e):e},(null==t?void 0:t.$context)&&{context:t.$context}),(null==t?void 0:t.$id)&&{id:t.$id}),"$maxChars"in t&&null!=t.$maxChars&&{$maxChars:Math.abs(t.$maxChars)}),{dataFormat:t.$format}))}var si=function(e){function t(t){var r=t.init,n=t.translateMany,o=t.lifecycle,i=e.call(this,r,o)||this;return i._queue=[],i._batchTimer=null,i._activeRequests=0,i._translateMany=n,i}return Zo(t,e),t.prototype.get=function(e){var t=this.getCache(e);return null!=t&&this.onHit&&this.onHit({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:t}),t},t.prototype.miss=function(e){return ni(this,0,void 0,function(){var t;return oi(this,function(r){switch(r.label){case 0:return[4,this.missCache(e)];case 1:return null!=(t=r.sent())&&this.onMiss&&this.onMiss({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:t}),[2,t]}})})},t.prototype.genKey=function(e){return ai(e.message,e.options)},t.prototype.fallback=function(e){var t=this._enqueueTranslation(e);return this._queue.length>=25?this._flushNow():this._scheduleBatch(),t},t.prototype._flushNow=function(){this._batchTimer&&(clearTimeout(this._batchTimer),this._batchTimer=null),this._drainQueue()},t.prototype._scheduleBatch=function(){var e=this;this._batchTimer||(this._batchTimer=setTimeout(function(){e._batchTimer=null,e._drainQueue()},50))},t.prototype._drainQueue=function(){for(;this._queue.length>0&&this._activeRequests<100;){var e=this._queue.splice(0,25);this._sendBatchRequest(e)}this._queue.length>0&&this._scheduleBatch()},t.prototype._enqueueTranslation=function(e){var t=this,r=this.genKey(e),n=e.options;return new Promise(function(o,i){t._queue.push({key:r,source:e.message,metadata:ri(ri(ri(ri({},(null==n?void 0:n.$context)&&{context:n.$context}),(null==n?void 0:n.$id)&&{id:n.$id}),"$maxChars"in n&&null!=n.$maxChars&&{$maxChars:Math.abs(n.$maxChars)}),{dataFormat:n.$format}),resolve:function(e){return o(e)},reject:i})})},t.prototype._sendBatchRequest=function(e){return ni(this,0,void 0,function(){var t,r;return oi(this,function(n){switch(n.label){case 0:return this._activeRequests++,t=function(e){return e.reduce(function(e,t){return e[t.key]={source:t.source,metadata:t.metadata},e},{})}(e),[4,this._sendBatchRequestWithErrorHandling(e,t)];case 1:return(r=n.sent())&&this._handleTranslationResponse(e,r),this._activeRequests--,[2]}})})},t.prototype._sendBatchRequestWithErrorHandling=function(e,t){return ni(this,0,void 0,function(){var r,n,o;return oi(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._translateMany(t)];case 1:return[2,i.sent()];case 2:for(r=i.sent(),n=0,o=e;n<o.length;n++)o[n].reject(r);return[2,void 0];case 3:return[2]}})})},t.prototype._handleTranslationResponse=function(e,t){for(var r=0,n=e;r<n.length;r++){var o=n[r],i=o.key,a=t[i];if(a&&a.success){var s=a.translation;this.setCache(i,s),o.resolve(s)}else o.reject(null==a?void 0:a.error)}},t}(ii);function ci({defaultLocale:t,locales:r,customMapping:o,localeCookieName:i=Ko,getLocale:a}){if(a){const i=a(),s=e.determineLocale(i,r,o);return s||(console.warn((({customLocale:e,defaultLocale:t})=>`${n} Warning: Custom getLocale() function returned an unsupported locale: "${e}". Falling back to default locale: "${t}".`)({customLocale:i,defaultLocale:t})),t)}const s=[],c=function({cookieName:e}){var t;if("undefined"==typeof document)return;return null===(t=document.cookie.split("; ").find(t=>t.startsWith(`${e}=`)))||void 0===t?void 0:t.split("=")[1]}({cookieName:i});c&&s.push(c);const u=(null===navigator||void 0===navigator?void 0:navigator.languages)||[];return s.push(...u),e.determineLocale(s,r,o)||t}!function(e){function t(t){var r=t.init,n=void 0===r?{}:r,o=t.ttl,i=t.loadTranslations,a=t.createTranslateMany,s=t.lifecycle,c=s.onLocalesCacheHit,u=s.onLocalesCacheMiss,l=s.onTranslationsCacheHit,h=s.onTranslationsCacheMiss,f=e.call(this,n,{onHit:c,onMiss:u})||this;return f.ttl=6e4,f.ttl=null===o?-1:null!=o?o:6e4,f._translationLoader=i,f._createTranslateMany=a,f._onTranslationsCacheHit=l,f._onTranslationsCacheMiss=h,f}Zo(t,e),t.prototype.get=function(e){var t=this.getCache(e);if(t&&!(t.expiresAt>0&&t.expiresAt<Date.now())){var r=t.translationsCache;return null!=r&&this.onHit&&this.onHit({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:r}),r}},t.prototype.miss=function(e){return ni(this,0,void 0,function(){var t,r;return oi(this,function(n){switch(n.label){case 0:return[4,this.missCache(e)];case 1:return t=n.sent(),null!=(r=t.translationsCache)&&this.onMiss&&this.onMiss({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:r}),[2,r]}})})},t.prototype.genKey=function(e){return e},t.prototype.fallback=function(e){return ni(this,0,void 0,function(){var t,r,n,o;return oi(this,function(i){switch(i.label){case 0:return t=this._translationLoader(e),r=this.ttl<0?this.ttl:Date.now()+this.ttl,n=si.bind,o={},[4,t];case 1:return[2,{translationsCache:new(n.apply(si,[void 0,(o.init=i.sent(),o.lifecycle=this._createTranslationsCacheLifecycle(e),o.translateMany=this._createTranslateMany(e),o)])),expiresAt:r}]}})})},t.prototype._createTranslationsCacheLifecycle=function(e){var t=this;return{onHit:this._onTranslationsCacheHit?function(r){return t._onTranslationsCacheHit(ri({locale:e},r))}:void 0,onMiss:this._onTranslationsCacheMiss?function(r){return t._onTranslationsCacheMiss(ri({locale:e},r))}:void 0}}}(ii),"function"==typeof SuppressedError&&SuppressedError;class ui extends Ft{constructor({defaultLocale:e,locales:t,customMapping:r,getLocale:n,localeCookieName:o=Ko}={}){super(),this.type="browser-i18n-storage-adapter",this.defaultLocale=e,this.locales=t,this.customMapping=r,this.getLocale=n,this.localeCookieName=o}setConfig(e){this.defaultLocale||(this.defaultLocale=e.defaultLocale),this.locales||(this.locales=e.locales),this.customMapping||(this.customMapping=e.customMapping),this.getLocale||(this.getLocale=e.getLocale)}getItem(e){if("locale"===e){return ci({defaultLocale:this.defaultLocale||C,locales:this.locales||[C],customMapping:this.customMapping,getLocale:this.getLocale,localeCookieName:this.localeCookieName})}}setItem(e,t){"locale"===e&&function({cookieName:e,value:t}){"undefined"!=typeof document&&(document.cookie=`${e}=${t};path=/`)}({cookieName:this.localeCookieName,value:t})}removeItem(e){}}const li={updateHtmlLangTag:!0,updateHtmlDirTag:!0},hi=new Map;class fi{constructor({locale:e,projectId:t,init:r,maxSize:n,ttl:o,purgeInterval:i}){this._writeBuffer={},this._flushTimer=null,this._estimatedSize=0,this._storageKey=`gt:tx:${t}:${e}`,this._purgeTimestampKey=`gt:tx:purge:${t}:${e}`,this._maxSize=null!=n?n:1e6,this._ttl=null!=o?o:864e5,this._purgeInterval=null!=i?i:3e5,r&&this.initStorage(r),hi.has(this._storageKey)&&clearInterval(hi.get(this._storageKey));const a=setInterval(()=>this._backgroundPurge(),this._purgeInterval);hi.set(this._storageKey,a)}getInternalCache(){const e=Date.now(),t=this._readFromStorage(),r={};for(const[n,o]of Object.entries(t))o.exp>e&&(r[n]=o.t);return Object.assign(r,this._writeBuffer),r}write(e,t){this._writeBuffer[e]=t,this._scheduleFlush()}purge(e){const t=this._readFromStorage();for(const r of e)delete t[r];this._writeRaw(JSON.stringify(t))}_scheduleFlush(){this._flushTimer||(this._flushTimer=setTimeout(()=>{this._flushTimer=null,this._flush()},500))}_flush(){if(0!==Object.keys(this._writeBuffer).length){try{const e=this._readFromStorage(),t=Date.now();this._estimatedSize>this._maxSize&&this._purgeCache(e,t);const r=t+this._ttl;for(const[t,n]of Object.entries(this._writeBuffer))e[t]={t:n,exp:r};this._writeRaw(JSON.stringify(e))}catch(e){}this._writeBuffer={}}}_purgeCache(e,t){const r=Object.keys(e);if(0===r.length)return;const n=this._estimatedSize/r.length;pi(e,t);const o=.8*this._maxSize,i=Math.floor(o/n),a=Object.entries(e);if(a.length>i){a.sort((e,t)=>e[1].exp-t[1].exp);const t=a.length-i;for(let r=0;r<t;r++)delete e[a[r][0]]}}_backgroundPurge(){try{const e=localStorage.getItem(this._purgeTimestampKey),t=e?parseInt(e,10):0,r=Date.now();if(r-t<this._purgeInterval)return;const n=this._readFromStorage(),o=Object.keys(n).length;pi(n,r),Object.keys(n).length<o&&this._writeRaw(JSON.stringify(n)),localStorage.setItem(this._purgeTimestampKey,String(r))}catch(e){}}_readFromStorage(){try{const e=localStorage.getItem(this._storageKey);return e?(this._estimatedSize=e.length,JSON.parse(e)):(this._estimatedSize=0,{})}catch(e){return this._estimatedSize=0,{}}}initStorage(e){try{const t=this._readFromStorage(),r=Date.now()+this._ttl;for(const[n,o]of Object.entries(e))t[n]={t:o,exp:r};this._writeRaw(JSON.stringify(t))}catch(e){}}_writeRaw(e){try{localStorage.setItem(this._storageKey,e),this._estimatedSize=e.length}catch(e){}}}function pi(e,t=Date.now()){for(const r of Object.keys(e))e[r].exp<=t&&delete e[r]}class di extends Wt{constructor(e){var t,r,n;const o={},i=yi(null===(n=null===(r=null===(t=e.files)||void 0===t?void 0:t.gt)||void 0===r?void 0:r.parsingFlags)||void 0===n?void 0:n.devHotReload);super(Object.assign(Object.assign({},e),vi(e)&&function(e,t,r){return{loadTranslations:gi(e,t,r),lifecycle:mi(t,r)}}(e.loadTranslations,e.projectId,o))),this._devHotReloadJsx=!1,this._localStorageCaches=o,this._devHotReloadJsx=vi(e)&&i.jsx,this.storeAdapter.setConfig({defaultLocale:this.getDefaultLocale(),locales:this.getLocales(),customMapping:e.customMapping}),this.htmlTagOptions=Object.assign(Object.assign({},li),e.htmlTagOptions)}isDevHotReloadJsx(){return this._devHotReloadJsx}getLocale(){return this.storeAdapter.getItem("locale")||this.config.defaultLocale}setLocale(t){e.determineLocale(t,this.getLocales())?(this.storeAdapter.setItem("locale",t),window.location.reload()):console.warn(s(t))}getLocalStorageTranslationCache(e,t){if((void 0).DEV)return this._localStorageCaches[e]||(this._localStorageCaches[e]=new fi({locale:e,projectId:this.config.projectId,init:t})),this._localStorageCaches[e]}updateHtmlTag(e){const t=(null==e?void 0:e.lang)||this.getLocale(),r=this.getGTClass(),n=r.resolveCanonicalLocale(t),o=(null==e?void 0:e.dir)||r.getLocaleDirection(t);if(!r.isValidLocale(n))return void console.warn(s(t));const i=Object.assign(Object.assign({},this.htmlTagOptions),e);i.updateHtmlLangTag&&(document.documentElement.lang=n),i.updateHtmlDirTag&&(document.documentElement.dir=o)}}function gi(e,t,r){return n=>u(this,void 0,void 0,function*(){const o=yield e(n);return r[n]||(r[n]=new fi({locale:n,projectId:t,init:o})),r[n].getInternalCache()})}function mi(e,t){return{onTranslationsCacheMiss:({locale:r,hash:n,value:o})=>{const i=t[r];i?i.write(n,o):t[r]=new fi({locale:r,projectId:e,init:{[n]:o}})}}}function yi(e){var t,r;return void 0===e||"boolean"==typeof e?{strings:!!e,jsx:!!e}:{strings:null!==(t=e.strings)&&void 0!==t&&t,jsx:null!==(r=e.jsx)&&void 0!==r&&r}}function vi(e){var t,r,n;const o={environment:!!(void 0).DEV,customLoadTranslations:!!e.loadTranslations,projectId:!!e.projectId,devApiKey:!!e.devApiKey},i=Object.values(o).every(Boolean),a=yi(null===(n=null===(r=null===(t=e.files)||void 0===t?void 0:t.gt)||void 0===r?void 0:r.parsingFlags)||void 0===n?void 0:n.devHotReload),s=a.strings||a.jsx;if((void 0).DEV&&s&&!i){const e=Object.keys(o).filter(e=>!o[e]);console.warn(`Dev hot reload is enabled, but the requirements are not met: ${e.join(", ")}`)}return i&&s}function bi(e){!function(e){Jt=e}(new di(Object.assign(Object.assign({},e),{storeAdapter:new ui({getLocale:e.getLocale})})))}function Ei(){const e=zt();if(!function(e){return e instanceof di}(e))throw new Error(a);return e}function _i(e){var{children:t,branch:r}=e,n=c(e,["children","branch"]);const o=null==r?void 0:r.toString();"string"==typeof r&&r.startsWith("data-")&&(r=void 0);return o&&void 0!==n[o]?n[o]:t}function Ti(e){return _i(e)}function Hi(){return Ei().getLocale()}function Bi(){return Ei().getDefaultLocale()}function Li(e){var{children:t,n:r,locales:n}=e,o=c(e,["children","n","locales"]);const i=[...n?[n]:[],Hi(),Bi()];return"number"!=typeof r?t:Do(r,i,o)||t}function wi(e){return Li(e)}function Si({children:e}){return e}function Ai({children:e}){return e}_i._gtt="branch",Ti._gtt="branch-automatic",Li._gtt="plural",wi._gtt="plural-automatic",Si._gtt="derive",Ai._gtt="derive-automatic";function Ci({children:e,options:t={},locales:r=[]}){if(null==e)return null;const n="string"==typeof e?parseFloat(e):e,o=[...r,Hi(),Bi()];return Ei().getGTClass().formatNum(n,Object.assign({locales:o},t))}function Pi(e){return Ci(e)}function Oi({children:e}){return e}function Ii({children:e}){return Oi({children:e})}function Mi({children:e}){return Oi({children:e})}function Ri({children:e,currency:t="USD",options:r={},locales:n=[]}){if(null==e)return null;const o="string"==typeof e?parseFloat(e):e,i=[...n,Hi(),Bi()];return Ei().getGTClass().formatCurrency(o,t,Object.assign({locales:i},r))}function Ni(e){return Ri(e)}function Ui({children:e,options:t={},locales:r=[]}){if(null==e)return null;const n=[...r,Hi(),Bi()];return Ei().getGTClass().formatDateTime(e,Object.assign({locales:n},t)).replace(/[\u200F\u202B\u202E]/g,"")}function Di(e){return Ui(e)}Ci._gtt="variable-number-automatic",Pi._gtt="variable-number",Mi._gtt="variable-variable",Ii._gtt="variable-variable-automatic",Ri._gtt="variable-currency-automatic",Ni._gtt="variable-currency",Ui._gtt="variable-datetime-automatic",Di._gtt="variable-datetime";const ji=({variableType:e,variableValue:t,variableOptions:n,injectionType:o})=>{switch(e){case"n":const e="automatic"===o?Pi:Ci;return r.jsx(e,{options:n,children:t});case"d":const i="automatic"===o?Di:Ui;return r.jsx(i,{options:n,children:t});case"c":const a="automatic"===o?Ni:Ri;return r.jsx(a,{options:n,children:t});default:return"automatic"===o?Oi({children:t}):r.jsx(Mi,{children:t})}};function Gi(e){return ki(e)}function xi(e){return ki(e)}function ki(n){var{children:o}=n,i=c(n,["children"]);const{taggedSourceChildren:a,sourceJsxChildren:s,renderSourceChildren:u,options:l}=function({sourceChildren:e,params:r}){const n=t.useMemo(()=>Ao(function(e){return Po(e,0)}(e)),[e]),o=t.useMemo(()=>Uo(n),[n]),i=t.useCallback(()=>ko({children:n,defaultLocale:Hi(),renderVariable:ji}),[n]),a=t.useMemo(()=>{return e=r,Object.assign({$format:"JSX",$context:e.context,$id:e.id,$_hash:e._hash},e);var e},[r.context,r.id,r._hash,r.$format,r.$context,r.$id,r.$_hash]);return{taggedSourceChildren:n,sourceJsxChildren:o,renderSourceChildren:i,options:a}}({sourceChildren:o,params:i}),h=Hi(),f=Bi();if(!e.requiresTranslation(f,h))return u();const p=function(e,t){var r=or(t,"JSX");return zt().lookupTranslation(e,r)}(s,l);return p?Vo({source:a,target:p,locales:[h],renderVariable:ji}):Ei().isDevHotReloadJsx()?r.jsx(t.Suspense,{fallback:u(),children:r.jsx(Fi,{sourceJsxChildren:s,taggedSourceChildren:a,options:l,targetLocale:h})}):u()}function Fi({sourceJsxChildren:e,taggedSourceChildren:r,options:n,targetLocale:o}){return Vo({source:r,target:t.use(rr(e,n)),locales:[o],renderVariable:ji})}function Vi({date:e,children:t,value:r,unit:n,baseDate:o,locales:i=[],options:a={}}){const s=Ei().getGTClass(),c=[...i,Hi(),Bi()],u=null!=e?e:t;let l;if("development"!==process.env.NODE_ENV||void 0===r||n||console.warn("<RelativeTime>: `value` was provided without `unit`. The `value` prop will be ignored."),void 0!==r&&n)l=s.formatRelativeTime(r,n,{locales:c,numeric:a.numeric,style:a.style,localeMatcher:a.localeMatcher});else{if(null==u)return null;l=s.formatRelativeTimeFromDate(u,{locales:c,baseDate:null!=o?o:new Date,numeric:a.numeric,style:a.style,localeMatcher:a.localeMatcher})}return l}function Ki(e){return Vi(e)}function $i(e){if(!e)return;const t={};for(const r in e)t[r]={name:e[r]};return t}function Xi(e){var{locale:t,locales:n,customNames:o,customMapping:i=$i(o),setLocale:a,getLocaleProperties:s}=e,u=c(e,["locale","locales","customNames","customMapping","setLocale","getLocaleProperties"]);const l=e=>{if(i&&i[e]){if("string"==typeof i[e])return i[e];if(i[e].name)return i[e].name}return(t=s(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return n&&0!==n.length&&a?r.jsxs("select",Object.assign({},u,{value:t||"",onChange:e=>a(e.target.value),children:[!t&&r.jsx("option",{value:""}),n.map(e=>r.jsx("option",{value:e,suppressHydrationWarning:!0,children:l(e)},e))]})):null}xi._gtt="translate-client",Gi._gtt="translate-client-automatic",Vi._gtt="variable-relative-time-automatic",Ki._gtt="variable-relative-time",function(e=i){if("undefined"==typeof window)throw new Error(e)}(o),exports.Branch=_i,exports.Currency=Ni,exports.DateTime=Di,exports.Derive=Si,exports.GtInternalBranch=Ti,exports.GtInternalCurrency=Ri,exports.GtInternalDateTime=Ui,exports.GtInternalDerive=Ai,exports.GtInternalNum=Ci,exports.GtInternalPlural=wi,exports.GtInternalRelativeTime=Vi,exports.GtInternalRuntimeTranslateJsx=(e,t)=>rr(e,Object.assign({$format:"JSX"},t)),exports.GtInternalRuntimeTranslateString=(e,t)=>function(e,t){return It(this,void 0,void 0,function(){return Mt(this,function(r){return[2,nr(e,Ot({$format:"STRING"},t))]})})}(e,Object.assign({$format:"ICU"},t)),exports.GtInternalTranslateJsx=Gi,exports.GtInternalVar=Ii,exports.LocaleSelector=function(e){var{locales:n}=e,o=c(e,["locales"]);const{sortedLocales:i,setLocale:a,locale:s,getLocaleProperties:u}=t.useMemo(()=>{const e=Ei(),t=e.getGTClass(),r=e.getLocale(),o=t=>{e.setLocale(t)},i=e=>t.getLocaleProperties(e);if(n)return{locale:r,setLocale:o,sortedLocales:n,getLocaleProperties:i};const a=e.getLocales().sort((e,r)=>(new Intl.Collator).compare(t.getLocaleProperties(e).nativeNameWithRegionCode,t.getLocaleProperties(r).nativeNameWithRegionCode));return{locale:r,sortedLocales:a,setLocale:o,getLocaleProperties:i}},[n]);return r.jsx(Xi,Object.assign({locale:s,locales:i,setLocale:a,getLocaleProperties:u},o))},exports.Num=Pi,exports.Plural=Li,exports.RelativeTime=Ki,exports.T=xi,exports.Var=Mi,exports.bootstrap=function(e){return u(this,void 0,void 0,function*(){bi(e);const t=Ei();t.updateHtmlTag(),yield t.loadTranslations()})},exports.getDefaultLocale=Bi,exports.getLocale=Hi,exports.getLocales=function(){return Ei().getLocales()},exports.getVersionId=function(){return Ei().getVersionId()},exports.initializeGT=bi,exports.setLocale=function(e){return Ei().setLocale(e)},exports.t=(e,...t)=>{var r;return"undefined"==typeof window&&console.warn(`${n} Warning: Translation failed for t("${"string"==typeof(r=e)?r:"`"+(null==r?void 0:r.join("${}"))+"`"}") because it was used outside of a browser environment. Falling back to original message.`),"string"==typeof e?ar(e,t.at(0)):function(e,t){const r=function(e,t){return e.map((e,r)=>{var n;return e+(null!==(n=t[r])&&void 0!==n?n:"")}).join("")}(e,t),n=ir(r);if(n)return n;const{message:o,variables:i}=function(e,t){const r=[],n={};let o=0;for(let i=0;i<e.length;i++)if(r.push(e[i]),i<t.length){const e=o.toString();r.push(`{${e}}`),n[e]=t[i],o++}return{message:r.join(""),variables:n}}(e,t);return ar(o,i)}(e,t)},exports.updateHtmlTagDir=function(e){Ei().updateHtmlTag({dir:e,updateHtmlLangTag:!1,updateHtmlDirTag:!0})},exports.updateHtmlTagLang=function(e){Ei().updateHtmlTag({lang:e,updateHtmlLangTag:!0,updateHtmlDirTag:!1})};
|
|
1
|
+
"use strict";var e=require("generaltranslation"),t=require("react"),r=require("react/jsx-runtime");const n="gt-react",o=`${n}/browser Error: The ${n}/browser module requires a browser environment`,i=`${n} Error: You are trying to import a browser-only module into a non-browser environment.`,a=`${n} Error: BrowserI18nManager not initialized. Invoke initializeGT() to initialize.`,s=e=>`${n} Warning: "${e}" is not a valid locale.`;var c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},c(e,t)};function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function h(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function f(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function p(e,t){return function(r,n){t(r,n,e)}}function d(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var d={};for(var g in n)d[g]="access"===g?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[l],d);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(h.get=s),(s=a(m.set))&&(h.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===c?o.unshift(s):h[l]=s)}u&&Object.defineProperty(u,n.name,h),f=!0}function g(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function m(e){return"symbol"==typeof e?e:"".concat(e)}function y(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function _(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function b(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function E(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function T(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function L(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function A(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function S(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function C(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(c,l):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function I(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function H(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=L(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}function N(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var B=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},R=function(e){return R=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},R(e)};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=R(e),n=0;n<r.length;n++)"default"!==r[n]&&v(t,e,r[n]);return B(t,e),t}function j(e){return e&&e.__esModule?e:{default:e}}function U(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function G(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function x(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var k="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new k(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function V(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}var $,K,X,Y={__extends:l,__assign:u,__rest:h,__decorate:f,__param:p,__esDecorate:d,__runInitializers:g,__propKey:m,__setFunctionName:y,__metadata:_,__awaiter:b,__generator:E,__createBinding:v,__exportStar:T,__values:L,__read:w,__spread:A,__spreadArrays:S,__spreadArray:C,__await:O,__asyncGenerator:P,__asyncDelegator:I,__asyncValues:H,__makeTemplateObject:N,__importStar:M,__importDefault:j,__classPrivateFieldGet:U,__classPrivateFieldSet:G,__classPrivateFieldIn:D,__addDisposableResource:x,__disposeResources:F,__rewriteRelativeImportExtension:V},q=Object.freeze({__proto__:null,__addDisposableResource:x,get __assign(){return u},__asyncDelegator:I,__asyncGenerator:P,__asyncValues:H,__await:O,__awaiter:b,__classPrivateFieldGet:U,__classPrivateFieldIn:D,__classPrivateFieldSet:G,__createBinding:v,__decorate:f,__disposeResources:F,__esDecorate:d,__exportStar:T,__extends:l,__generator:E,__importDefault:j,__importStar:M,__makeTemplateObject:N,__metadata:_,__param:p,__propKey:m,__read:w,__rest:h,__rewriteRelativeImportExtension:V,__runInitializers:g,__setFunctionName:y,__spread:A,__spreadArray:C,__spreadArrays:S,__values:L,default:Y});function z(e){if(void 0===e)return;if(null===e)return"null";if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e)){let t="[";for(let r=0;r<e.length;r++)r&&(t+=","),t+=z(e[r])||"null";return t+"]"}const t=Object.keys(e).sort();let r="";for(const n of t){const t=z(e[n]);t&&(r&&(r+=","),r+=JSON.stringify(n)+":"+t)}return"{"+r+"}"}function W(e){return z(e)??""}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}($||($={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(K||(K={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(X||(X={}));var J=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Z=/(?:[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 Q(e){var t={};return e.replace(Z,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ee=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function te(e){return e.replace(/^(.*?)-/,"")}var re=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ne=/^(@+)?(\+|#+)?[rs]?$/g,oe=/(\*)(0+)|(#+)(0+)|(0+)/g,ie=/^(0+)$/;function ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ne,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function se(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ce(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!ie.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function le(e){var t=se(e);return t||{}}function ue(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=te(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=u(u(u({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return u(u({},e),le(t))},{}));continue;case"engineering":t=u(u(u({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return u(u({},e),le(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.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(oe,function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ie.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(re.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(re,function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=o.options[0];"w"===i?t=u(u({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=u(u({},t),ae(i)))}else if(ne.test(o.stem))t=u(u({},t),ae(o.stem));else{var a=se(o.stem);a&&(t=u(u({},t),a));var s=ce(o.stem);s&&(t=u(u({},t),s))}}return t}var he,fe={"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 pe(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(fe[r||""]||fe[n||""]||fe["".concat(n,"-001")]||fe["001"])[0]}var de=new RegExp("^".concat(J.source,"*")),ge=new RegExp("".concat(J.source,"*$"));function me(e,t){return{start:e,end:t}}var ye=!!String.prototype.startsWith&&"_a".startsWith("a",1),_e=!!String.fromCodePoint,be=!!Object.fromEntries,Ee=!!String.prototype.codePointAt,ve=!!String.prototype.trimStart,Te=!!String.prototype.trimEnd,Le=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},we=!0;try{we="a"===(null===(he=Ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===he?void 0:he[0])}catch(er){we=!1}var Ae,Se=ye?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ce=_e?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[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},Oe=be?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},Pe=Ee?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Ie=ve?function(e){return e.trimStart()}:function(e){return e.replace(de,"")},He=Te?function(e){return e.trimEnd()}:function(e){return e.replace(ge,"")};function Ne(e,t){return new RegExp(e,t)}if(we){var Be=Ne("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ae=function(e,t){var r;return Be.lastIndex=t,null!==(r=Be.exec(e)[1])&&void 0!==r?r:""}}else Ae=function(e,t){for(var r=[];;){var n=Pe(e,t);if(void 0===n||Ue(n)||Ge(n))break;r.push(n),t+=n>=65536?2:1}return Ce.apply(void 0,r)};var Re=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error($.UNMATCHED_CLOSING_TAG,me(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Me(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:K.pound,location:me(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:K.literal,value:"<".concat(n,"/>"),location:me(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Me(this.char()))return this.error($.INVALID_TAG,me(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error($.UNMATCHED_CLOSING_TAG,me(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:K.tag,value:n,children:i,location:me(r,this.clonePosition())},err:null}:this.error($.INVALID_TAG,me(a,this.clonePosition())))}return this.error($.UNCLOSED_TAG,me(r,this.clonePosition()))}return this.error($.INVALID_TAG,me(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&je(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=me(r,this.clonePosition());return{val:{type:K.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Me(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ce.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Ce(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,me(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error($.EMPTY_ARGUMENT,me(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error($.MALFORMED_ARGUMENT,me(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,me(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:K.argument,value:n,location:me(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,me(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error($.MALFORMED_ARGUMENT,me(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ae(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:me(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error($.EXPECT_ARGUMENT_TYPE,me(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((_=this.parseSimpleArgStyleIfPossible()).err)return _;if(0===(d=He(_.val)).length)return this.error($.EXPECT_ARGUMENT_STYLE,me(this.clonePosition(),this.clonePosition()));c={style:d,styleLocation:me(l,this.clonePosition())}}if((b=this.tryParseArgumentClose(n)).err)return b;var h=me(n,this.clonePosition());if(c&&Se(null==c?void 0:c.style,"::",0)){var f=Ie(c.style.slice(2));if("number"===a)return(_=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?_:{val:{type:K.number,value:r,location:h,style:_.val},err:null};if(0===f.length)return this.error($.EXPECT_DATE_TIME_SKELETON,h);var p=f;this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=pe(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var d={type:X.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Q(p):{}};return{val:{type:"date"===a?K.date:K.time,value:r,location:h,style:d},err:null}}return{val:{type:"number"===a?K.number:"date"===a?K.date:K.time,value:r,location:h,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($.EXPECT_SELECT_ARGUMENT_OPTIONS,me(g,u({},g)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),y=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me(this.clonePosition(),this.clonePosition()));var _;if(this.bumpSpace(),(_=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return _;this.bumpSpace(),m=this.parseIdentifierIfPossible(),y=_.val}var b,E=this.tryParsePluralOrSelectOptions(e,a,t,m);if(E.err)return E;if((b=this.tryParseArgumentClose(n)).err)return b;var v=me(n,this.clonePosition());return"select"===a?{val:{type:K.select,value:r,options:Oe(E.val),location:v},err:null}:{val:{type:K.plural,value:r,options:Oe(E.val),offset:y,pluralType:"plural"===a?"cardinal":"ordinal",location:v},err:null};default:return this.error($.INVALID_ARGUMENT_TYPE,me(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,me(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error($.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,me(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ee).filter(function(e){return e.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,l=s;c<l.length;c++)if(0===l[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error($.INVALID_NUMBER_SKELETON,t)}return{val:{type:X.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ue(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,l=n.location;;){if(0===c.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_SELECTOR,$.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=me(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(s.has(c))return this.error("select"===t?$.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,me(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:p.val,location:me(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,l=o.location}return 0===a.length?this.error("select"===t?$.EXPECT_SELECT_ARGUMENT_SELECTOR:$.EXPECT_PLURAL_ARGUMENT_SELECTOR,me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error($.MISSING_OTHER_CLAUSE,me(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=me(n,this.clonePosition());return o?Le(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Pe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Se(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ue(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Me(e){return e>=97&&e<=122||e>=65&&e<=90}function je(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ue(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ge(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function De(e){e.forEach(function(e){if(delete e.location,function(e){return e.type===K.select}(e)||function(e){return e.type===K.plural}(e))for(var t in e.options)delete e.options[t].location,De(e.options[t].value);else(function(e){return e.type===K.number})(e)&&function(e){return!(!e||"object"!=typeof e||e.type!==X.number)}(e.style)?delete e.style.location:!function(e){return e.type===K.date}(e)&&!function(e){return e.type===K.time}(e)||!function(e){return!(!e||"object"!=typeof e||e.type!==X.dateTime)}(e.style)?function(e){return e.type===K.tag}(e)&&De(e.children):delete e.style.location})}function xe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ke,Fe={};function Ve(){if(ke)return Fe;var e,t;return ke=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.SKELETON_TYPE=Fe.TYPE=void 0,Fe.isLiteralElement=function(t){return t.type===e.literal},Fe.isArgumentElement=function(t){return t.type===e.argument},Fe.isNumberElement=function(t){return t.type===e.number},Fe.isDateElement=function(t){return t.type===e.date},Fe.isTimeElement=function(t){return t.type===e.time},Fe.isSelectElement=function(t){return t.type===e.select},Fe.isPluralElement=function(t){return t.type===e.plural},Fe.isPoundElement=function(t){return t.type===e.pound},Fe.isTagElement=function(t){return t.type===e.tag},Fe.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},Fe.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},Fe.createLiteralElement=function(t){return{type:e.literal,value:t}},Fe.createNumberElement=function(t,r){return{type:e.number,value:t,style:r}},function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(e||(Fe.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||(Fe.SKELETON_TYPE=t={})),Fe}var $e,Ke=Ve(),Xe={},Ye=xe(q);var qe=function(){if($e)return Xe;$e=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.printAST=r,Xe.doPrintAST=n,Xe.printDateTimeSkeleton=a;var e=Ye,t=Ve();function r(e){return n(e,!1)}function n(s,c){var l=s.map(function(l,u){return(0,t.isLiteralElement)(l)?function(e,t,r,n){var i=e.value,a=i;r||"'"!==a[0]||(a="''".concat(a.slice(1)));n||"'"!==a[a.length-1]||(a="".concat(a.slice(0,a.length-1),"''"));return a=o(a),t?a.replace("#","'#'"):a}(l,c,0===u,u===s.length-1):(0,t.isArgumentElement)(l)?function(e){var t=e.value;return"{".concat(t,"}")}(l):(0,t.isDateElement)(l)||(0,t.isTimeElement)(l)||(0,t.isNumberElement)(l)?function(e){return"{".concat(e.value,", ").concat(t.TYPE[e.type]).concat(e.style?", ".concat((r=e.style,"string"==typeof r?o(r):r.type===t.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" ")))):"","}");var r}(l):(0,t.isPluralElement)(l)?function(t){var r="cardinal"===t.pluralType?"plural":"selectordinal",o=[t.value,r,e.__spreadArray([t.offset?"offset:".concat(t.offset):""],Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(l):(0,t.isSelectElement)(l)?function(e){var t=[e.value,"select",Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!1),"}")}).join(" ")].join(",");return"{".concat(t,"}")}(l):(0,t.isPoundElement)(l)?"#":(0,t.isTagElement)(l)?function(e){return"<".concat(e.value,">").concat(r(e.children),"</").concat(e.value,">")}(l):void 0});return l.join("")}function o(e){return e.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(e){var t=e.stem,r=e.options;return 0===r.length?t:"".concat(t).concat(r.map(function(e){return"/".concat(e)}).join(""))}function a(e){return e.pattern}return Xe}();function ze(e,t,r=""){const n=(o=e)instanceof Uint8Array||ArrayBuffer.isView(o)&&"Uint8Array"===o.constructor.name&&"BYTES_PER_ELEMENT"in o&&1===o.BYTES_PER_ELEMENT;var o;const i=e?.length;if(!n||void 0!==t){const t=(r&&`"${r}" `)+"expected Uint8Array"+""+", got "+(n?`length=${i}`:"type="+typeof e);if(!n)throw new TypeError(t);throw new RangeError(t)}return e}function We(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Je(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ze(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Qe(e,t){return e<<32-t|e>>>t}const et=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),tt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function rt(e,t={}){const r=(t,r)=>e(r).update(t).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)}const nt=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function ot(e,t,r){return e&t^~e&r}function it(e,t,r){return e&t^e&r^t&r}class at{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,n){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=Ze(this.buffer)}update(e){We(this),ze(e);const{view:t,buffer:r,blockLen:n}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(n-this.pos,o-i);if(a===n){const t=Ze(e);for(;n<=o-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){We(this),function(e,t){ze(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:o}=this;let{pos:i}=this;t[i++]=128,Je(this.buffer.subarray(i)),this.padOffset>n-i&&(this.process(r,0),i=0);for(let e=i;e<n;e++)t[e]=0;r.setBigUint64(n-8,BigInt(8*this.length),o),this.process(r,0);const a=Ze(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const c=s/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)a.setUint32(4*e,l[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=n,e.pos=a,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}const st=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ct=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),lt=new Uint32Array(64);class ut extends at{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[e,t,r,n,o,i,a,s]}set(e,t,r,n,o,i,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)lt[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=lt[e-15],r=lt[e-2],n=Qe(t,7)^Qe(t,18)^t>>>3,o=Qe(r,17)^Qe(r,19)^r>>>10;lt[e]=o+lt[e-7]+n+lt[e-16]|0}let{A:r,B:n,C:o,D:i,E:a,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){const t=l+(Qe(a,6)^Qe(a,11)^Qe(a,25))+ot(a,s,c)+ct[e]+lt[e]|0,u=(Qe(r,2)^Qe(r,13)^Qe(r,22))+it(r,n,o)|0;l=c,c=s,s=a,a=i+t|0,i=o,o=n,n=r,r=t+u|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(r,n,o,i,a,s,c,l)}roundClean(){Je(lt)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Je(this.buffer)}}class ht extends ut{A=0|st[0];B=0|st[1];C=0|st[2];D=0|st[3];E=0|st[4];F=0|st[5];G=0|st[6];H=0|st[7];constructor(){super(32)}}const ft=rt(()=>new ht,nt(1)),pt="en",dt="https://cdn.gtx.dev";function gt({icuString:e,shouldVisit:t,visitor:r,options:{recurseIntoVisited:n=!0,...o}}){const i=function(e,t){void 0===t&&(t={}),t=u({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Re(e,t).parse();if(r.err){var n=SyntaxError($[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||De(r.val),r.val}(e,o);return a(i),i;function a(e){e.map(s)}function s(e){let o=!1;t(e)&&(r(e),o=!0),o&&!n||(e.type===K.select||e.type===K.plural?Object.values(e.options).map(e=>e.value).map(a):e.type===K.tag&&a(e.children))}}const mt="_gt_",yt=new RegExp(`^${mt}\\d+$`),_t=new RegExp(`^${mt}$`);function bt(e){return e.type===Ke.TYPE.select&&yt.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&e.options.other.value[0]?.type===Ke.TYPE.literal)}function Et(e){return e.type===Ke.TYPE.select&&_t.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&e.options.other.value[0]?.type===Ke.TYPE.literal)}function vt(e){if(!e.includes("_gt_"))return e;const t=[];gt({icuString:e,shouldVisit:Et,visitor:function(e){t.push({start:e.location?.start.offset??0,end:e.location?.end.offset??0,otherStart:e.options.other.location?.start.offset??0,otherEnd:e.options.other.location?.end.offset??0})},options:{recurseIntoVisited:!1,captureLocation:!0}});const r=[];let n=0;for(let o=0;o<t.length;o++){const{start:i,end:a,otherStart:s,otherEnd:c}=t[o];r.push(e.slice(n,i)),r.push(e.slice(i,i+4+1)),r.push(String(o+1)),r.push(e.slice(i+4+1,s)),r.push("{}"),r.push(e.slice(c,a)),n=a}return r.push(e.slice(n,e.length)),r.join("")}var Tt={warn(e){console.warn(e)},error(e){console.error(e)},info(e){console.info(e)},debug(e){console.debug(e)}};const Lt=e=>`String interpolation failed for message: "${e}".`;function wt(t,r){if(!t)return t;const n=r.$_fallback,o=function(e){return Object.fromEntries(Object.entries(e).filter(([e])=>"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e&&"$format"!==e&&"$_locales"!==e&&"$locale"!==e))}(r);try{const a=function(e){if(!e.includes("_gt_"))return{};let t=1;const r={};return gt({icuString:e,shouldVisit:Et,visitor:function(e){r[e.value+t]=e.options.other.value.length?e.options.other.value[0]?.value:"",t+=1},options:{recurseIntoVisited:!1}}),r}(n||"");return e.formatCutoff(function(t,r,n,o){try{return e.formatMessage(t,{variables:r,locales:n,dataFormat:o})}catch{return Tt.warn(Lt(t)),t}}(Object.keys(a).length?(i=t).includes("_gt_")?qe.printAST(gt({icuString:i,shouldVisit:bt,visitor:function(e){e.type=Ke.TYPE.argument,delete e.options},options:{recurseIntoVisited:!1}})):i:t,{...o,...a,[mt]:"other"},r.$locale??r.$_locales,r.$format),{maxChars:r.$maxChars})}catch{return Tt.warn(Lt(t)),null!=r.$_fallback?wt(r.$_fallback,{...r,$_fallback:void 0}):e.formatCutoff(t,{maxChars:r.$maxChars})}var i}function At(e){return function(e){if(ze(e),et)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=tt[e[r]];return t}(ft(function(e){if("string"!=typeof e)throw new TypeError("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e))).slice(0,16)}const St=e=>{if(e&&"object"==typeof e){const t={};if("c"in e&&e.c&&(t.c=Ct(e.c)),"d"in e){const r=e?.d;r?.b&&(t.b=Object.fromEntries(Object.entries(r.b).map(([e,t])=>[e,Ct(t)]))),r?.t&&(t.t=r.t)}return function(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?{k:e.k,...e.v&&{v:e.v}}:t}return e};function Ct(e){return Array.isArray(e)?e.map(St):St(e)}function Ot(e){return e.loadTranslations?"custom":e.cacheUrl?"remote":void 0!==e.cacheUrl&&e.cacheUrl!==dt||!e.projectId?"disabled":"gt-remote"}function Pt(e){return void 0!==e.runtimeUrl&&"https://runtime2.gtx.dev"!==e.runtimeUrl||!e.projectId||!e.devApiKey&&!e.apiKey?e.runtimeUrl?"custom":"disabled":"gt"}function It(e){return"gt-remote"===Ot(e)||"gt"===Pt(e)}function Ht(t){const r=[];return r.push(...function(e){const t=[],{projectId:r,loadTranslations:n}=e;switch(Ot(e)){case"remote":case"gt-remote":r||t.push({type:"warning",message:"projectId is required when loading translations from a remote store"});break;case"custom":n||t.push({type:"error",message:"loadTranslations is required when loading translations from a custom loader"})}return t}(t)),r.push(...function(e){const t=[];switch(Pt(e)){case"custom":case"gt":e.projectId||t.push({type:"warning",message:"projectId is required"}),e.devApiKey||e.apiKey||t.push({type:"warning",message:"devApiKey or apiKey is required"})}return t}(t)),r.push(...function(t){const r=[];if(!It(t))return r;const{defaultLocale:n,locales:o,customMapping:i}=t;return new Set([...n?[n]:[],...o||[]]).forEach(t=>{e.isValidLocale(t,i)||r.push({type:"error",message:`Invalid locale: ${t}`})}),r}(t)),r}var Nt=class{};var Bt=class extends Nt{constructor(...e){super(...e),this.type="fallback-storage-adapter",this.storage={}}getItem(e){return this.storage[e]}setItem(e,t){this.storage[e]=t}removeItem(e){delete this.storage[e]}};function Rt(t){const r=function(e){const{cacheUrl:t=dt,projectId:r,_versionId:n,_branchId:o}=e;return`${t}/${r}/[locale]`+(n?`/${n}`:"")+(o?`?branchId=${o}`:"")}(t);return async n=>{n=e.resolveCanonicalLocale(n,t.customMapping);const o=r.replace("[locale]",n),i=await fetch(o);if(!i.ok)throw new Error(`Failed to load translations from ${o}`);return await i.json()}}var Mt=class{constructor(e,t){this.cache={},this.fallbackPromises={},this.cache=structuredClone(e),this.onHit=t?.onHit,this.onMiss=t?.onMiss}setCache(e,t){this.cache[e]=t}getCache(e){const t=this.genKey(e);return this.cache[t]}getInternalCache(){return this.cache}async missCache(e){const t=this.genKey(e);if(void 0!==this.fallbackPromises[t])return await this.fallbackPromises[t];const r=this.fallback(e);this.fallbackPromises[t]=r;try{const e=await r;return this.cache[t]=e,e}finally{delete this.fallbackPromises[t]}}};function jt(e,t){return function({source:e,context:t,id:r,maxChars:n,dataFormat:o},i=At){let a;return a="JSX"===o?Ct(e):e,i(W({source:a,...r&&{id:r},...t&&{context:t},...null!=n&&{maxChars:Math.abs(n)},...o&&{dataFormat:o}}))}({source:"ICU"===t.$format?vt(e):e,...t?.$context&&{context:t.$context},...t?.$id&&{id:t.$id},..."$maxChars"in t&&null!=t.$maxChars&&{maxChars:Math.abs(t.$maxChars)},dataFormat:t.$format})}var Ut=class extends Mt{constructor({init:e,translateMany:t,lifecycle:r}){super(e,r),this._queue=[],this._batchTimer=null,this._activeRequests=0,this._translateMany=t}get(e){const t=this.getCache(e);return null!=t&&this.onHit&&this.onHit({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:t}),t}async miss(e){const t=await this.missCache(e);return null!=t&&this.onMiss&&this.onMiss({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:t}),t}genKey(e){return jt(e.message,e.options)}fallback(e){const t=this._enqueueTranslation(e);return this._queue.length>=25?this._flushNow():this._scheduleBatch(),t}_flushNow(){this._batchTimer&&(clearTimeout(this._batchTimer),this._batchTimer=null),this._drainQueue()}_scheduleBatch(){this._batchTimer||(this._batchTimer=setTimeout(()=>{this._batchTimer=null,this._drainQueue()},50))}_drainQueue(){for(;this._queue.length>0&&this._activeRequests<100;){const e=this._queue.splice(0,25);this._sendBatchRequest(e)}this._queue.length>0&&this._scheduleBatch()}_enqueueTranslation(e){const t=this.genKey(e),r=e.options;return new Promise((n,o)=>{this._queue.push({key:t,source:e.message,metadata:{...r?.$context&&{context:r.$context},...r?.$id&&{id:r.$id},..."$maxChars"in r&&null!=r.$maxChars&&{$maxChars:Math.abs(r.$maxChars)},dataFormat:r.$format},resolve:e=>n(e),reject:o})})}async _sendBatchRequest(e){this._activeRequests++;const t=function(e){return e.reduce((e,t)=>(e[t.key]={source:t.source,metadata:t.metadata},e),{})}(e),r=await this._sendBatchRequestWithErrorHandling(e,t);r&&this._handleTranslationResponse(e,r),this._activeRequests--}async _sendBatchRequestWithErrorHandling(e,t){try{return await this._translateMany(t)}catch(t){for(const r of e)r.reject(t);return}}_handleTranslationResponse(e,t){for(const r of e){const{key:e}=r,n=t[e];if(n&&n.success){const t=n.translation;this.setCache(e,t),r.resolve(t)}else r.reject(n?.error)}}};var Gt=class extends Mt{constructor({init:e={},ttl:t,loadTranslations:r,createTranslateMany:n,lifecycle:{onLocalesCacheHit:o,onLocalesCacheMiss:i,onTranslationsCacheHit:a,onTranslationsCacheMiss:s}}){super(e,{onHit:o,onMiss:i}),this.ttl=6e4,this.ttl=null===t?-1:t??6e4,this._translationLoader=r,this._createTranslateMany=n,this._onTranslationsCacheHit=a,this._onTranslationsCacheMiss=s}get(e){const t=this.getCache(e);if(!t||t.expiresAt>0&&t.expiresAt<Date.now())return;const r=t.translationsCache;return null!=r&&this.onHit&&this.onHit({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:r}),r}async miss(e){const t=await this.missCache(e),r=t.translationsCache;return null!=r&&this.onMiss&&this.onMiss({inputKey:e,cacheKey:this.genKey(e),cacheValue:t,outputValue:r}),r}genKey(e){return e}async fallback(e){const t=this._translationLoader(e),r=this.ttl<0?this.ttl:Date.now()+this.ttl;return{translationsCache:new Ut({init:await t,lifecycle:this._createTranslationsCacheLifecycle(e),translateMany:this._createTranslateMany(e)}),expiresAt:r}}_createTranslationsCacheLifecycle(e){return{onHit:this._onTranslationsCacheHit?t=>this._onTranslationsCacheHit({locale:e,...t}):void 0,onMiss:this._onTranslationsCacheMiss?t=>this._onTranslationsCacheMiss({locale:e,...t}):void 0}}};function Dt({onLocalesCacheHit:e,onLocalesCacheMiss:t,onTranslationsCacheHit:r,onTranslationsCacheMiss:n}){return{onLocalesCacheHit:t=>{e?.({locale:t.inputKey,value:t.outputValue.getInternalCache()})},onLocalesCacheMiss:e=>{t?.({locale:e.inputKey,value:e.outputValue.getInternalCache()})},onTranslationsCacheHit:e=>{r?.({locale:e.locale,hash:e.cacheKey,value:e.outputValue})},onTranslationsCacheMiss:e=>{n?.({locale:e.locale,hash:e.cacheKey,value:e.outputValue})}}}var xt=class{constructor(e){this.resolveTranslationSync=(e,t)=>this.lookupTranslation(e,t),function(e,t="",r=!0){if(e.forEach(e=>{switch(e.type){case"error":Tt.error(t+e.message);break;case"warning":Tt.warn(t+e.message)}}),r&&e.some(e=>"error"===e.type))throw new Error("Validation errors occurred")}(Ht(e),"I18nManager: "),this.config=function(e){const t=It(e),r=function({defaultLocale:e,locales:t,customMapping:r}){return{defaultLocale:e,locales:Array.from(new Set([e,...t])),customMapping:r||{}}}({defaultLocale:e.defaultLocale||pt,locales:e.locales||[pt],customMapping:e.customMapping});return{environment:e.environment||"production",enableI18n:void 0===e.enableI18n||e.enableI18n,projectId:e.projectId,devApiKey:e.devApiKey,apiKey:e.apiKey,runtimeUrl:e.runtimeUrl,_versionId:e._versionId,...t?kt(r):r}}(e),this.storeAdapter=e.storeAdapter??new Bt;const t=function(e){return function({type:e,remoteTranslationLoaderParams:t,loadTranslations:r}){"disabled"===e&&Tt.warn("I18nManager: No translation loader found. No translations will be loaded.");const{cacheUrl:n,projectId:o,_versionId:i,_branchId:a,customMapping:s}=t;switch(e){case"remote":case"gt-remote":return Rt({cacheUrl:n||"",projectId:o||"",_versionId:i,_branchId:a,customMapping:s});case"custom":return r;case"disabled":return async e=>({})}}({loadTranslations:e.loadTranslations,type:Ot(e),remoteTranslationLoaderParams:{cacheUrl:e.cacheUrl,projectId:e.projectId,_versionId:e._versionId,_branchId:e._branchId,customMapping:e.customMapping}})}(e),r=(n=this.getGTClassClean(),o=12e3,e=>t=>n.translateMany(t,{targetLocale:e},o));var n,o;this.localesCache=new Gt({loadTranslations:t,createTranslateMany:r,lifecycle:Dt(e.lifecycle??{})})}getAdapterType(){return this.storeAdapter.type}getLocale(){const e=this.storeAdapter.getItem("locale");return e||(Tt.warn("getLocale() invoked outside of translation context, falling back to default locale"),this.config.defaultLocale)}setLocale(e){try{this.validateLocale(e);const t=this.getGTClass();this.storeAdapter.setItem("locale",t.determineLocale(e))}catch(e){this.handleError(e)}}getDefaultLocale(){return this.config.defaultLocale}getLocales(){return this.config.locales}getVersionId(){return this.config._versionId}getGTClass(){return this.getGTClassClean(this.getLocale())}isTranslationEnabled(){return this.config.enableI18n}getTranslationLoader(){return e=>this.loadTranslations(e)}async loadTranslations(e=this.getLocale()){try{if(this.validateLocale(e),!this.requiresTranslation(e))return{};let t=this.localesCache.get(e);return t||(t=await this.localesCache.miss(e)),t.getInternalCache()}catch(e){return this.handleError(e),{}}}lookupTranslation(e,t){try{const r=t.$locale??this.getLocale();if(this.validateLocale(r),!this.requiresTranslation(r))return e;const n=this.localesCache.get(r);if(!n)return;return n.get({message:e,options:t})}catch(e){return void this.handleError(e)}}async lookupTranslationWithFallback(e,t){try{const r=t.$locale??this.getLocale();if(this.validateLocale(r),!this.requiresTranslation(r))return e;let n=this.localesCache.get(r);n||(n=await this.localesCache.miss(r));let o=n.get({message:e,options:t});return null==o&&(o=await n.miss({message:e,options:t})),o}catch(e){return void this.handleError(e)}}async getLookupTranslation(e=this.getLocale(),t=[]){try{if(this.validateLocale(e),!this.requiresTranslation(e))return e=>e;const r=function(e,t){return e.filter(e=>null==e.options.$locale||e.options.$locale===t)}(t,e);r.length!==t.length&&Tt.warn(`I18nManager: getLookupTranslation(): prefetchEntries must all be the same locale, ignoring all entries that are not for ${e}`);let n=this.localesCache.get(e);return n||(n=await this.localesCache.miss(e)),n?(await Promise.all(r.filter(e=>null==n.get(e)).map(e=>n.miss(e))),(e,t)=>n.get({message:e,options:t})):()=>{}}catch(e){return this.handleError(e),e=>e}}async getTranslations(e=this.getLocale()){try{return this.validateLocale(e),this.loadTranslations(e)}catch(e){return this.handleError(e),{}}}async getTranslationResolver(e=this.getLocale()){return this.getLookupTranslation(e)}requiresTranslation(e=this.getLocale()){const t=this.getDefaultLocale(),r=this.getGTClass(),n=this.getLocales();return this.isTranslationEnabled()&&r.requiresTranslation(t,e,n)}requiresDialectTranslation(e=this.getLocale()){const t=this.getDefaultLocale(),r=this.getGTClass();return this.requiresTranslation(e)&&r.isSameLanguage(t,e)}handleError(e){if("development"===this.config.environment)throw e;Tt.error("I18nManager: "+e)}validateLocale(e){const t=this.getGTClass();if(!t.isValidLocale(e)||!t.determineLocale(e))throw new Error(`I18nManager: validateLocale(): locale ${e} is not valid`)}getGTClassClean(t){return new e.GT({sourceLocale:this.config.defaultLocale,targetLocale:t,locales:this.config.locales,customMapping:this.config.customMapping,projectId:this.config.projectId,baseUrl:this.config.runtimeUrl||void 0,apiKey:this.config.apiKey,devApiKey:this.config.devApiKey})}};function kt(t){return{defaultLocale:e.standardizeLocale(t.defaultLocale),locales:t.locales.map(r=>("string"==typeof t.customMapping?.[r]?t.customMapping?.[r]:t.customMapping?.[r]?.code)?r:e.standardizeLocale(r)),customMapping:Object.fromEntries(Object.entries(t.customMapping||{}).map(([t,r])=>[t,"string"==typeof r?e.standardizeLocale(r):{...r,...r.code?{code:e.standardizeLocale(r.code)}:{}}]))}}let Ft;function Vt(){return Ft||(Tt.warn("getI18nManager(): Translation failed because I18nManager not initialized."),Ft=new xt({defaultLocale:pt,locales:[pt]})),Ft}function $t(e){Ft=e}function Kt({source:e,target:t,options:r}){const n=Vt();return null!=t?Xt(t,{$locale:n.getLocale(),$_fallback:e,...r}):Xt(e,{$locale:n.getDefaultLocale(),...r})}function Xt(t,r){switch(r.$format??"STRING"){case"ICU":return wt(t,r);case"I18NEXT":case"STRING":return function(t,r){return e.formatCutoff(t,{locales:r.$locale??r.$_locales,maxChars:r.$maxChars})}(t,r);default:return t}}async function Yt(e,t){const r=qt(t,"JSX");return await Vt().lookupTranslationWithFallback(e,r)??e}function qt(e,t){return{$format:t,...e}}async function zt(e,t){return async function(e,t){const r=qt(t,"STRING");return Kt({source:e,target:await Vt().lookupTranslationWithFallback(e,r),options:r})}(e,{$format:"STRING",...t})}const Wt=(e,t={})=>function(e,t){const r=qt(t,"STRING"),n=Vt().lookupTranslation(e,r);if(null!=n)return Kt({source:e,target:n,options:r})}(e,{$format:"ICU",...t}),Jt=(e,t={})=>function(e,t){const r=qt(t,"STRING");return Kt({source:e,target:Vt().lookupTranslation(e,r),options:r})}(e,{$format:"ICU",...t});function Zt(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}var Qt=function(e,t){return Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Qt(e,t)};function er(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Qt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var tr=function(){return tr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tr.apply(this,arguments)};function rr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function nr(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function or(e,t){return function(r,n){t(r,n,e)}}function ir(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var d={};for(var g in n)d[g]="access"===g?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[l],d);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(h.get=s),(s=a(m.set))&&(h.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===c?o.unshift(s):h[l]=s)}u&&Object.defineProperty(u,n.name,h),f=!0}function ar(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function sr(e){return"symbol"==typeof e?e:"".concat(e)}function cr(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function lr(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function ur(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function hr(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var fr=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function pr(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||fr(t,e,r)}function dr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function mr(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(gr(arguments[t]));return e}function yr(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function _r(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function br(e){return this instanceof br?(this.v=e,this):new br(e)}function Er(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof br?Promise.resolve(r.value.v).then(c,l):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function vr(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:br(e[n](t)),done:!1}:o?o(t):t}:o}}function Tr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=dr(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,o,(t=e[r](t)).done,t.value)})}}}function Lr(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var wr=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Ar=function(e){return Ar=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},Ar(e)};function Sr(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=Ar(e),n=0;n<r.length;n++)"default"!==r[n]&&fr(t,e,r[n]);return wr(t,e),t}function Cr(e){return e&&e.__esModule?e:{default:e}}function Or(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function Pr(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function Ir(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function Hr(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Nr="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function Br(e){function t(t){e.error=e.hasError?new Nr(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function Rr(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}var Mr,jr,Ur,Gr,Dr,xr={__extends:er,__assign:tr,__rest:rr,__decorate:nr,__param:or,__esDecorate:ir,__runInitializers:ar,__propKey:sr,__setFunctionName:cr,__metadata:lr,__awaiter:ur,__generator:hr,__createBinding:fr,__exportStar:pr,__values:dr,__read:gr,__spread:mr,__spreadArrays:yr,__spreadArray:_r,__await:br,__asyncGenerator:Er,__asyncDelegator:vr,__asyncValues:Tr,__makeTemplateObject:Lr,__importStar:Sr,__importDefault:Cr,__classPrivateFieldGet:Or,__classPrivateFieldSet:Pr,__classPrivateFieldIn:Ir,__addDisposableResource:Hr,__disposeResources:Br,__rewriteRelativeImportExtension:Rr},kr=Object.freeze({__proto__:null,__addDisposableResource:Hr,get __assign(){return tr},__asyncDelegator:vr,__asyncGenerator:Er,__asyncValues:Tr,__await:br,__awaiter:ur,__classPrivateFieldGet:Or,__classPrivateFieldIn:Ir,__classPrivateFieldSet:Pr,__createBinding:fr,__decorate:nr,__disposeResources:Br,__esDecorate:ir,__exportStar:pr,__extends:er,__generator:hr,__importDefault:Cr,__importStar:Sr,__makeTemplateObject:Lr,__metadata:lr,__param:or,__propKey:sr,__read:gr,__rest:rr,__rewriteRelativeImportExtension:Rr,__runInitializers:ar,__setFunctionName:cr,__spread:mr,__spreadArray:_r,__spreadArrays:yr,__values:dr,default:xr});(Gr=Mr||(Mr={}))[Gr.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Gr[Gr.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Gr[Gr.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Gr[Gr.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Gr[Gr.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Gr[Gr.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Gr[Gr.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Gr[Gr.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Gr[Gr.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Gr[Gr.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Gr[Gr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Gr[Gr.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Gr[Gr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Gr[Gr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Gr[Gr.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Gr[Gr.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Gr[Gr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Gr[Gr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Gr[Gr.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Gr[Gr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Gr[Gr.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Gr[Gr.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Gr[Gr.INVALID_TAG=23]="INVALID_TAG",Gr[Gr.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Gr[Gr.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Gr[Gr.UNCLOSED_TAG=27]="UNCLOSED_TAG",function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(jr||(jr={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Ur||(Ur={}));try{"a"===(null===(Dr=function(e,t){return new RegExp(e,t)}("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Dr?void 0:Dr[0])}catch(Gr){0}var Fr,Vr,$r={};function Kr(){return Fr||(Fr=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.SKELETON_TYPE=$r.TYPE=void 0,$r.isLiteralElement=function(t){return t.type===e.literal},$r.isArgumentElement=function(t){return t.type===e.argument},$r.isNumberElement=function(t){return t.type===e.number},$r.isDateElement=function(t){return t.type===e.date},$r.isTimeElement=function(t){return t.type===e.time},$r.isSelectElement=function(t){return t.type===e.select},$r.isPluralElement=function(t){return t.type===e.plural},$r.isPoundElement=function(t){return t.type===e.pound},$r.isTagElement=function(t){return t.type===e.tag},$r.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},$r.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},$r.createLiteralElement=function(t){return{type:e.literal,value:t}},$r.createNumberElement=function(t,r){return{type:e.number,value:t,style:r}},function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(e||($r.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||($r.SKELETON_TYPE=t={}))),$r;var e,t}Kr();var Xr={},Yr=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(kr);function qr(e,t,r=""){const n=(o=e)instanceof Uint8Array||ArrayBuffer.isView(o)&&"Uint8Array"===o.constructor.name&&"BYTES_PER_ELEMENT"in o&&1===o.BYTES_PER_ELEMENT;var o;const i=e?.length;if(!n||void 0!==t){const t=(r&&`"${r}" `)+"expected Uint8Array, got "+(n?`length=${i}`:"type="+typeof e);if(!n)throw new TypeError(t);throw new RangeError(t)}return e}function zr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Wr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Jr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Zr(e,t){return e<<32-t|e>>>t}!function(){if(Vr)return Xr;Vr=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.printAST=r,Xr.doPrintAST=n,Xr.printDateTimeSkeleton=a;var e=Yr,t=Kr();function r(e){return n(e,!1)}function n(s,c){var l=s.map(function(l,u){return(0,t.isLiteralElement)(l)?function(e,t,r,n){var i=e.value;return r||"'"!==i[0]||(i="''".concat(i.slice(1))),n||"'"!==i[i.length-1]||(i="".concat(i.slice(0,i.length-1),"''")),i=o(i),t?i.replace("#","'#'"):i}(l,c,0===u,u===s.length-1):(0,t.isArgumentElement)(l)?function(e){var t=e.value;return"{".concat(t,"}")}(l):(0,t.isDateElement)(l)||(0,t.isTimeElement)(l)||(0,t.isNumberElement)(l)?function(e){return"{".concat(e.value,", ").concat(t.TYPE[e.type]).concat(e.style?", ".concat("string"==typeof(r=e.style)?o(r):r.type===t.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" "))):"","}");var r}(l):(0,t.isPluralElement)(l)?function(t){var r="cardinal"===t.pluralType?"plural":"selectordinal",o=[t.value,r,e.__spreadArray([t.offset?"offset:".concat(t.offset):""],Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(l):(0,t.isSelectElement)(l)?function(e){var t=[e.value,"select",Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!1),"}")}).join(" ")].join(",");return"{".concat(t,"}")}(l):(0,t.isPoundElement)(l)?"#":(0,t.isTagElement)(l)?function(e){return"<".concat(e.value,">").concat(r(e.children),"</").concat(e.value,">")}(l):void 0});return l.join("")}function o(e){return e.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(e){var t=e.stem,r=e.options;return 0===r.length?t:"".concat(t).concat(r.map(function(e){return"/".concat(e)}).join(""))}function a(e){return e.pattern}}(),"function"==typeof Uint8Array.from([]).toHex&&Uint8Array.fromHex,Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Qr(e,t,r){return e&t^~e&r}function en(e,t,r){return e&t^e&r^t&r}class tn{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,t,r,n){this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=Jr(this.buffer)}update(e){zr(this),qr(e);const{view:t,buffer:r,blockLen:n}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(n-this.pos,o-i);if(a===n){const t=Jr(e);for(;n<=o-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){zr(this),function(e,t){qr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:o}=this;let{pos:i}=this;t[i++]=128,Wr(this.buffer.subarray(i)),this.padOffset>n-i&&(this.process(r,0),i=0);for(let e=i;e<n;e++)t[e]=0;r.setBigUint64(n-8,BigInt(8*this.length),o),this.process(r,0);const a=Jr(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const c=s/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)a.setUint32(4*e,l[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||=new this.constructor,e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=n,e.pos=a,n%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}const rn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),nn=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),on=new Uint32Array(64);class an extends tn{constructor(e){super(64,e,8,!1)}get(){const{A:e,B:t,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[e,t,r,n,o,i,a,s]}set(e,t,r,n,o,i,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)on[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=on[e-15],r=on[e-2],n=Zr(t,7)^Zr(t,18)^t>>>3,o=Zr(r,17)^Zr(r,19)^r>>>10;on[e]=o+on[e-7]+n+on[e-16]|0}let{A:r,B:n,C:o,D:i,E:a,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){const t=l+(Zr(a,6)^Zr(a,11)^Zr(a,25))+Qr(a,s,c)+nn[e]+on[e]|0,u=(Zr(r,2)^Zr(r,13)^Zr(r,22))+en(r,n,o)|0;l=c,c=s,s=a,a=i+t|0,i=o,o=n,n=r,r=t+u|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(r,n,o,i,a,s,c,l)}roundClean(){Wr(on)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Wr(this.buffer)}}class sn extends an{A=0|rn[0];B=0|rn[1];C=0|rn[2];D=0|rn[3];E=0|rn[4];F=0|rn[5];G=0|rn[6];H=0|rn[7];constructor(){super(32)}}!function(e,t={}){const r=(t,r)=>e(r).update(t).digest(),n=e(void 0);r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)}(()=>new sn,(e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])}))(1));const cn="en",ln="DEFAULT_TERMINATOR_KEY",un={ellipsis:{fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0},[ln]:{terminator:"…",separator:void 0}},none:{[ln]:{terminator:void 0,separator:void 0}}},hn={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:class{constructor(e,t={}){try{const t=e?Array.isArray(e)?e.map(e=>String(e)):[String(e)]:["en"],r=Intl.getCanonicalLocales(t);this.locale=r.length?r[0]:"en"}catch{this.locale="en"}if(!un[t.style??"ellipsis"])throw new Error((e=>`generaltranslation Formatting Error: Invalid cutoff style: ${e}.`)(t.style??"ellipsis"));let r,n;if(void 0!==t.maxChars){r=t.style??"ellipsis";const e=new Intl.Locale(this.locale).language;n=un[r][e]||un[r].DEFAULT_TERMINATOR_KEY}let o=t.terminator??n?.terminator,i=null!=o?t.separator??n?.separator:void 0;this.additionLength=(o?.length??0)+(i?.length??0),void 0!==t.maxChars&&Math.abs(t.maxChars)<this.additionLength&&(o=void 0,i=void 0),this.options={maxChars:t.maxChars,style:r,terminator:o,separator:i}}format(e){return this.formatToParts(e).join("")}formatToParts(e){const{maxChars:t,terminator:r,separator:n}=this.options,o=void 0===t||Math.abs(t)>=e.length?t:t>=0?Math.max(0,t-this.additionLength):Math.min(0,t+this.additionLength),i=void 0!==o&&o>-1?e.slice(0,o):e.slice(o);return null==t||null==o||0===o||null==r||e.length<=Math.abs(t)?[i]:o>0?null!=n?[i,n,r]:[i,r]:null!=n?[r,n,i]:[r,i]}resolvedOptions(){return this.options}}},fn=new class{constructor(){this.cache={}}_generateKey(e,t={}){return`${e?Array.isArray(e)?e.map(e=>String(e)).join(","):String(e):"undefined"}:${t?JSON.stringify(t,Object.keys(t).sort()):"{}"}`}get(e,...t){const[r="en",n={}]=t,o=this._generateKey(r,n);let i=this.cache[e]?.[o];return void 0===i&&(i=new hn[e](...t),this.cache[e]||(this.cache[e]={}),this.cache[e][o]=i),i}},pn=["singular","plural","dual","zero","one","two","few","many","other"];function dn(e){return pn.includes(e)}const gn={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function mn(e){return gn[e]}function yn(e,r=0){let n=r;function o(e){return t.isValidElement(e)?function(e){const{props:r}=e,o=(e=>{const{type:t,props:r}=e;n+=1;const o={id:n,injectionType:"manual"};let i;try{i="function"==typeof t&&t._gtt||""}catch{}if(i){const e=i.split("-");if("automatic"!==e[1]&&"automatic"!==e[2]||(o.injectionType="automatic"),"translate"===e[0]&&(e[0]="fragment"),"variable"===e[0]&&(o.variableType=e?.[1]||"variable"),"plural"===e[0]){const e=Object.entries(r).reduce((e,[t,r])=>(dn(t)&&(e[t]=yn(r,n)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:t,...i}=r,a=Object.fromEntries(Object.entries(i).filter(([e])=>!e.startsWith("data-"))),s=Object.entries(a).reduce((e,[t,r])=>(e[t]=yn(r,n),e),{});Object.keys(s).length&&(o.branches=s)}o.transformation=e[0]}return o})(e),a={...r,"data-_gt":o};return r.children&&!o.variableType&&(a.children=i(r.children)),e.type===t.Fragment&&(a["data-_gt"].transformation="fragment"),t.cloneElement(e,a)}(e):e}function i(e){return Array.isArray(e)?t.Children.map(e,o):o(e)}return i(e)}function _n(e,r){return t.isValidElement(e)?function(e,r){const{type:n,props:o}=e,i=function(e){const t="function"==typeof e&&"_gtt"in e?e._gtt:void 0;if(null==t||"string"!=typeof t)return;const r=t.split("-");return{componentType:r[0],injectionType:"automatic"===r[1]||"automatic"===r[2]?"automatic":"manual"}}(n);if("object"!=typeof o||null===o)return e;if(i){const{componentType:n,injectionType:a}=i;if("variable"===n)return e;if("branch"===n){const n=Object.entries(o).reduce((e,[t,n])=>("branch"===t||t.startsWith("data-")?e[t]=n:e[t]=_n(n,r),e),{});return t.cloneElement(e,{...n})}if("plural"===n){const n=Object.entries(o).reduce((e,[t,n])=>(dn(t)||"children"===t?e[t]=_n(n,r):e[t]=n,e),{});return t.cloneElement(e,{...n})}if("derive"===n)return t.cloneElement(e,{...o,..."children"in o&&{children:bn(o.children,r+1)}});if("translate"===n&&"automatic"===a&&r>0)return"children"in o?bn(o.children,r):void 0;"translate"===n&&"automatic"===a&&console.warn("@generaltranslation/react-core Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.")}return t.cloneElement(e,{...o,..."children"in o&&{children:bn(o.children,r)}})}(e,r):e}function bn(e,r){return Array.isArray(e)?t.Children.map(e,e=>_n(e,r)):_n(e,r)}const En={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function vn(e={},t){return e.name?e.name:`_gt_${En[t]||"value"}_${e["data-_gt"]?.id}`}const Tn={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"},Ln=e=>{if(!e)return"";const{type:t,props:r}=e;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},wn=e=>{return r=e,t.isValidElement(r)?(e=>{const{props:t}=e,r={t:Ln(e)};if(t["data-_gt"]){const e=t["data-_gt"],n=e.transformation;if("variable"===n){const r=e.variableType||"variable",n=vn(t,r),o=mn(r);return{i:e.id,k:n,v:o}}r.i=e.id,r.d=((e,t,r)=>{let n=Object.entries(Tn).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=An(r)}),n={...n,b:e,t:"p"}}if("branch"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=An(r)}),n={...n,b:e,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,e.branches);let o=Object.entries(Tn).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=An(r)}),o={...o,b:t,t:"p"}}if("branch"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=An(r)}),o={...o,b:t,t:"b"}}r.d=Object.keys(o).length?o:void 0}return t.children&&(r.c=An(t.children)),r})(e):"number"==typeof e?e.toString():e;var r};function An(e){return Array.isArray(e)?e.map(wn):wn(e)}function Sn(e,t,r){let n="",o=null;return"number"==typeof e&&!o&&r&&(n=function(e,t=pn,r=["en"]){const n=fn.get("PluralRules",r).select(e),o=Math.abs(e);if(0===o&&t.includes("zero"))return"zero";if(1===o){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===o){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(e,Object.keys(r),t)),n&&!o&&(o=r[n]),o}function Cn(e){return"object"==typeof e&&!!e&&"data-_gt"in e&&"object"==typeof e["data-_gt"]&&!!e["data-_gt"]&&"transformation"in e["data-_gt"]&&"variable"===e["data-_gt"]?.transformation}function On(e){const t=e["data-_gt"]?.variableType||"variable";return{variableName:vn(e,t),variableType:mn(t),injectionType:e["data-_gt"]?.injectionType||"manual",variableValue:void 0!==e.value?e.value:void 0!==e.date?e.date:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t={...void 0!==e.currency&&{currency:e.currency},...void 0!==e.unit&&{unit:e.unit},...void 0!==e.baseDate&&{baseDate:e.baseDate},...void 0!==e.options&&e.options};return Object.keys(t).length?t:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function Pn(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function In({children:e,defaultLocale:r=cn,renderVariable:n}){const o=e=>t.isValidElement(e)?(e=>{const o=Pn(e);if(Cn(e.props)){const{variableType:t,variableValue:o,variableOptions:i,injectionType:a}=On(e.props);return n({variableType:t,variableValue:o,variableOptions:i,locales:[r],injectionType:a})}if("plural"===o?.transformation){const t=o.branches||{};return i(Sn(e.props.n,[r],t)||e.props.children)}if("branch"===o?.transformation){let{children:t,branch:r,"data-_gt":n,...a}=e.props;return a=o.branches||{},i(void 0!==a[r]?a[r]:t)}return"fragment"===o?.transformation?t.createElement(t.Fragment,{key:e.props.key,children:i(e.props.children)}):e.props.children?t.cloneElement(e,{...e.props,"data-_gt":void 0,children:i(e.props.children)}):t.cloneElement(e,{...e.props,"data-_gt":void 0})})(e):e,i=e=>Array.isArray(e)?t.Children.map(e,o):o(e);return i(e)}function Hn({sourceElement:e,targetElement:r,locales:n=[cn],renderVariable:o}){const{props:i}=e,a=i["data-_gt"],s=a?.transformation,c=r.d,l={};if(c&&Object.entries(Tn).forEach(([e,t])=>{c[e]&&(l[t]=c[e])}),"plural"===s){const t=e.props.n;return Nn({source:Sn(t,n,a.branches||{})||e.props.children,target:Sn(t,n,r.d?.b||{})||r.c,locales:n,renderVariable:o})}if("branch"===s){const{branch:e,children:t}=i;return Nn({source:(a.branches||{})[e]||t,target:(r.d?.b||{})[e]||r.c,locales:n,renderVariable:o})}return"fragment"===s&&r.c?t.createElement(t.Fragment,{key:e.props.key,children:Nn({source:i.children,target:r.c,locales:n,renderVariable:o})}):i?.children&&r?.c?t.cloneElement(e,{...i,...l,"data-_gt":void 0,children:Nn({source:i.children,target:r.c,locales:n,renderVariable:o})}):In({children:e,defaultLocale:n[0],renderVariable:o})}function Nn({source:e,target:n,locales:o=[cn],renderVariable:i}){if(null==n&&e)return In({children:e,defaultLocale:o[0],renderVariable:i});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(e)&&e&&(e=[e]),Array.isArray(e)&&Array.isArray(n)){const a={},s={},c={},l=e.filter(e=>{if(t.isValidElement(e)){if(!Cn(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n,injectionType:o}=On(e.props);a[t]=r,s[t]=n,c[t]=o}}return!1}),u=e=>l.find(t=>{const r=Pn(t);return void 0!==r?.id&&r.id===e.i})||l.shift();return n.map((e,n)=>{if("string"==typeof e)return r.jsx(t.Fragment,{children:e},`string_${n}`);if(Zt(e))return r.jsx(t.Fragment,{children:i({variableType:e.v||"v",variableValue:a[e.k],variableOptions:s[e.k],locales:o,injectionType:c[e.k]||"manual"})},`var_${n}`);const l=u(e);return l?r.jsx(t.Fragment,{children:Hn({sourceElement:l,targetElement:e,locales:o,renderVariable:i})},`element_${n}`):null})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=Zt(n)?"variable":"element";if(t.isValidElement(e)){if("element"===r)return Hn({sourceElement:e,targetElement:n,locales:o,renderVariable:i});if(Cn(e.props)){const{variableValue:t,variableOptions:r,variableType:n,injectionType:a}=On(e.props);return i({variableType:n,variableValue:t,variableOptions:r,locales:o,injectionType:a})}}}return In({children:e,defaultLocale:o[0],renderVariable:i})}const Bn="generaltranslation.locale";function Rn({defaultLocale:t,locales:r,customMapping:o,localeCookieName:i=Bn,getLocale:a}){if(a){const i=a(),s=e.determineLocale(i,r,o);return s||(console.warn((({customLocale:e,defaultLocale:t})=>`${n} Warning: Custom getLocale() function returned an unsupported locale: "${e}". Falling back to default locale: "${t}".`)({customLocale:i,defaultLocale:t})),t)}const s=[],c=function({cookieName:e}){var t;if("undefined"==typeof document)return;return null===(t=document.cookie.split("; ").find(t=>t.startsWith(`${e}=`)))||void 0===t?void 0:t.split("=")[1]}({cookieName:i});c&&s.push(c);const l=(null===navigator||void 0===navigator?void 0:navigator.languages)||[];return s.push(...l),e.determineLocale(s,r,o)||t}class Mn extends Nt{constructor({defaultLocale:e,locales:t,customMapping:r,getLocale:n,localeCookieName:o=Bn}={}){super(),this.type="browser-i18n-storage-adapter",this.defaultLocale=e,this.locales=t,this.customMapping=r,this.getLocale=n,this.localeCookieName=o}setConfig(e){this.defaultLocale||(this.defaultLocale=e.defaultLocale),this.locales||(this.locales=e.locales),this.customMapping||(this.customMapping=e.customMapping),this.getLocale||(this.getLocale=e.getLocale)}getItem(e){if("locale"===e){return Rn({defaultLocale:this.defaultLocale||pt,locales:this.locales||[pt],customMapping:this.customMapping,getLocale:this.getLocale,localeCookieName:this.localeCookieName})}}setItem(e,t){"locale"===e&&function({cookieName:e,value:t}){"undefined"!=typeof document&&(document.cookie=`${e}=${t};path=/`)}({cookieName:this.localeCookieName,value:t})}removeItem(e){}}const jn={updateHtmlLangTag:!0,updateHtmlDirTag:!0},Un=new Map;class Gn{constructor({locale:e,projectId:t,init:r,maxSize:n,ttl:o,purgeInterval:i}){this._writeBuffer={},this._flushTimer=null,this._estimatedSize=0,this._storageKey=`gt:tx:${t}:${e}`,this._purgeTimestampKey=`gt:tx:purge:${t}:${e}`,this._maxSize=null!=n?n:1e6,this._ttl=null!=o?o:864e5,this._purgeInterval=null!=i?i:3e5,r&&this.initStorage(r),Un.has(this._storageKey)&&clearInterval(Un.get(this._storageKey));const a=setInterval(()=>this._backgroundPurge(),this._purgeInterval);Un.set(this._storageKey,a)}getInternalCache(){const e=Date.now(),t=this._readFromStorage(),r={};for(const[n,o]of Object.entries(t))o.exp>e&&(r[n]=o.t);return Object.assign(r,this._writeBuffer),r}write(e,t){this._writeBuffer[e]=t,this._scheduleFlush()}purge(e){const t=this._readFromStorage();for(const r of e)delete t[r];this._writeRaw(JSON.stringify(t))}_scheduleFlush(){this._flushTimer||(this._flushTimer=setTimeout(()=>{this._flushTimer=null,this._flush()},500))}_flush(){if(0!==Object.keys(this._writeBuffer).length){try{const e=this._readFromStorage(),t=Date.now();this._estimatedSize>this._maxSize&&this._purgeCache(e,t);const r=t+this._ttl;for(const[t,n]of Object.entries(this._writeBuffer))e[t]={t:n,exp:r};this._writeRaw(JSON.stringify(e))}catch(e){}this._writeBuffer={}}}_purgeCache(e,t){const r=Object.keys(e);if(0===r.length)return;const n=this._estimatedSize/r.length;Dn(e,t);const o=.8*this._maxSize,i=Math.floor(o/n),a=Object.entries(e);if(a.length>i){a.sort((e,t)=>e[1].exp-t[1].exp);const t=a.length-i;for(let r=0;r<t;r++)delete e[a[r][0]]}}_backgroundPurge(){try{const e=localStorage.getItem(this._purgeTimestampKey),t=e?parseInt(e,10):0,r=Date.now();if(r-t<this._purgeInterval)return;const n=this._readFromStorage(),o=Object.keys(n).length;Dn(n,r),Object.keys(n).length<o&&this._writeRaw(JSON.stringify(n)),localStorage.setItem(this._purgeTimestampKey,String(r))}catch(e){}}_readFromStorage(){try{const e=localStorage.getItem(this._storageKey);return e?(this._estimatedSize=e.length,JSON.parse(e)):(this._estimatedSize=0,{})}catch(e){return this._estimatedSize=0,{}}}initStorage(e){try{const t=this._readFromStorage(),r=Date.now()+this._ttl;for(const[n,o]of Object.entries(e))t[n]={t:o,exp:r};this._writeRaw(JSON.stringify(t))}catch(e){}}_writeRaw(e){try{localStorage.setItem(this._storageKey,e),this._estimatedSize=e.length}catch(e){}}}function Dn(e,t=Date.now()){for(const r of Object.keys(e))e[r].exp<=t&&delete e[r]}class xn extends xt{constructor(e){var t,r,n;const o={},i=Vn(null===(n=null===(r=null===(t=e.files)||void 0===t?void 0:t.gt)||void 0===r?void 0:r.parsingFlags)||void 0===n?void 0:n.devHotReload);super(Object.assign(Object.assign({},e),$n(e)&&function(e,t,r){return{loadTranslations:kn(e,t,r),lifecycle:Fn(t,r)}}(e.loadTranslations,e.projectId,o))),this._devHotReloadJsx=!1,this._localStorageCaches=o,this._devHotReloadJsx=$n(e)&&i.jsx,this.storeAdapter.setConfig({defaultLocale:this.getDefaultLocale(),locales:this.getLocales(),customMapping:e.customMapping}),this.htmlTagOptions=Object.assign(Object.assign({},jn),e.htmlTagOptions)}isDevHotReloadJsx(){return this._devHotReloadJsx}getLocale(){return this.storeAdapter.getItem("locale")||this.config.defaultLocale}setLocale(t){e.determineLocale(t,this.getLocales())?(this.storeAdapter.setItem("locale",t),window.location.reload()):console.warn(s(t))}getLocalStorageTranslationCache(e,t){if((void 0).DEV)return this._localStorageCaches[e]||(this._localStorageCaches[e]=new Gn({locale:e,projectId:this.config.projectId,init:t})),this._localStorageCaches[e]}updateHtmlTag(e){const t=(null==e?void 0:e.lang)||this.getLocale(),r=this.getGTClass(),n=r.resolveCanonicalLocale(t),o=(null==e?void 0:e.dir)||r.getLocaleDirection(t);if(!r.isValidLocale(n))return void console.warn(s(t));const i=Object.assign(Object.assign({},this.htmlTagOptions),e);i.updateHtmlLangTag&&(document.documentElement.lang=n),i.updateHtmlDirTag&&(document.documentElement.dir=o)}}function kn(e,t,r){return n=>b(this,void 0,void 0,function*(){const o=yield e(n);return r[n]||(r[n]=new Gn({locale:n,projectId:t,init:o})),r[n].getInternalCache()})}function Fn(e,t){return{onTranslationsCacheMiss:({locale:r,hash:n,value:o})=>{const i=t[r];i?i.write(n,o):t[r]=new Gn({locale:r,projectId:e,init:{[n]:o}})}}}function Vn(e){var t,r;return void 0===e||"boolean"==typeof e?{strings:!!e,jsx:!!e}:{strings:null!==(t=e.strings)&&void 0!==t&&t,jsx:null!==(r=e.jsx)&&void 0!==r&&r}}function $n(e){var t,r,n;const o={environment:!!(void 0).DEV,customLoadTranslations:!!e.loadTranslations,projectId:!!e.projectId,devApiKey:!!e.devApiKey},i=Object.values(o).every(Boolean),a=Vn(null===(n=null===(r=null===(t=e.files)||void 0===t?void 0:t.gt)||void 0===r?void 0:r.parsingFlags)||void 0===n?void 0:n.devHotReload),s=a.strings||a.jsx;if((void 0).DEV&&s&&!i){const e=Object.keys(o).filter(e=>!o[e]);console.warn(`Dev hot reload is enabled, but the requirements are not met: ${e.join(", ")}`)}return i&&s}function Kn(e){$t(new xn(Object.assign(Object.assign({},e),{storeAdapter:new Mn({getLocale:e.getLocale})})))}function Xn(){const e=Vt();if(!function(e){return e instanceof xn}(e))throw new Error(a);return e}function Yn(e){var{children:t,branch:r}=e,n=h(e,["children","branch"]);const o=null==r?void 0:r.toString();"string"==typeof r&&r.startsWith("data-")&&(r=void 0);return o&&void 0!==n[o]?n[o]:t}function qn(e){return Yn(e)}function zn(){return Xn().getLocale()}function Wn(){return Xn().getDefaultLocale()}function Jn(e){var{children:t,n:r,locales:n}=e,o=h(e,["children","n","locales"]);const i=[...n?[n]:[],zn(),Wn()];return"number"!=typeof r?t:Sn(r,i,o)||t}function Zn(e){return Jn(e)}function Qn({children:e}){return e}function eo({children:e}){return e}Yn._gtt="branch",qn._gtt="branch-automatic",Jn._gtt="plural",Zn._gtt="plural-automatic",Qn._gtt="derive",eo._gtt="derive-automatic";function to({children:e,options:t={},locales:r=[]}){if(null==e)return null;const n="string"==typeof e?parseFloat(e):e,o=[...r,zn(),Wn()];return Xn().getGTClass().formatNum(n,Object.assign({locales:o},t))}function ro(e){return to(e)}function no({children:e}){return e}function oo({children:e}){return no({children:e})}function io({children:e}){return no({children:e})}function ao({children:e,currency:t="USD",options:r={},locales:n=[]}){if(null==e)return null;const o="string"==typeof e?parseFloat(e):e,i=[...n,zn(),Wn()];return Xn().getGTClass().formatCurrency(o,t,Object.assign({locales:i},r))}function so(e){return ao(e)}function co({children:e,options:t={},locales:r=[]}){if(null==e)return null;const n=[...r,zn(),Wn()];return Xn().getGTClass().formatDateTime(e,Object.assign({locales:n},t)).replace(/[\u200F\u202B\u202E]/g,"")}function lo(e){return co(e)}to._gtt="variable-number-automatic",ro._gtt="variable-number",io._gtt="variable-variable",oo._gtt="variable-variable-automatic",ao._gtt="variable-currency-automatic",so._gtt="variable-currency",co._gtt="variable-datetime-automatic",lo._gtt="variable-datetime";const uo=({variableType:e,variableValue:t,variableOptions:n,injectionType:o})=>{switch(e){case"n":const e="automatic"===o?ro:to;return r.jsx(e,{options:n,children:t});case"d":const i="automatic"===o?lo:co;return r.jsx(i,{options:n,children:t});case"c":const a="automatic"===o?so:ao;return r.jsx(a,{options:n,children:t});default:return"automatic"===o?no({children:t}):r.jsx(io,{children:t})}};function ho(e){return po(e)}function fo(e){return po(e)}function po(n){var{children:o}=n,i=h(n,["children"]);const{taggedSourceChildren:a,sourceJsxChildren:s,renderSourceChildren:c,options:l}=function({sourceChildren:e,params:r}){const n=t.useMemo(()=>yn(function(e){return bn(e,0)}(e)),[e]),o=t.useMemo(()=>An(n),[n]),i=t.useCallback(()=>In({children:n,defaultLocale:zn(),renderVariable:uo}),[n]),a=t.useMemo(()=>{return e=r,Object.assign({$format:"JSX",$context:e.context,$id:e.id,$_hash:e._hash},e);var e},[r.context,r.id,r._hash,r.$format,r.$context,r.$id,r.$_hash]);return{taggedSourceChildren:n,sourceJsxChildren:o,renderSourceChildren:i,options:a}}({sourceChildren:o,params:i}),u=zn(),f=Wn();if(!e.requiresTranslation(f,u))return c();const p=function(e,t){const r=qt(t,"JSX");return Vt().lookupTranslation(e,r)}(s,l);return p?Nn({source:a,target:p,locales:[u],renderVariable:uo}):Xn().isDevHotReloadJsx()?r.jsx(t.Suspense,{fallback:c(),children:r.jsx(go,{sourceJsxChildren:s,taggedSourceChildren:a,options:l,targetLocale:u})}):c()}function go({sourceJsxChildren:e,taggedSourceChildren:r,options:n,targetLocale:o}){return Nn({source:r,target:t.use(Yt(e,n)),locales:[o],renderVariable:uo})}function mo({date:e,children:t,value:r,unit:n,baseDate:o,locales:i=[],options:a={}}){const s=Xn().getGTClass(),c=[...i,zn(),Wn()],l=null!=e?e:t;let u;if("development"!==process.env.NODE_ENV||void 0===r||n||console.warn("<RelativeTime>: `value` was provided without `unit`. The `value` prop will be ignored."),void 0!==r&&n)u=s.formatRelativeTime(r,n,{locales:c,numeric:a.numeric,style:a.style,localeMatcher:a.localeMatcher});else{if(null==l)return null;u=s.formatRelativeTimeFromDate(l,{locales:c,baseDate:null!=o?o:new Date,numeric:a.numeric,style:a.style,localeMatcher:a.localeMatcher})}return u}function yo(e){return mo(e)}function _o(e){if(!e)return;const t={};for(const r in e)t[r]={name:e[r]};return t}function bo(e){var{locale:t,locales:n,customNames:o,customMapping:i=_o(o),setLocale:a,getLocaleProperties:s}=e,c=h(e,["locale","locales","customNames","customMapping","setLocale","getLocaleProperties"]);const l=e=>{if(i&&i[e]){if("string"==typeof i[e])return i[e];if(i[e].name)return i[e].name}return(t=s(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return n&&0!==n.length&&a?r.jsxs("select",Object.assign({},c,{value:t||"",onChange:e=>a(e.target.value),children:[!t&&r.jsx("option",{value:""}),n.map(e=>r.jsx("option",{value:e,suppressHydrationWarning:!0,children:l(e)},e))]})):null}fo._gtt="translate-client",ho._gtt="translate-client-automatic",mo._gtt="variable-relative-time-automatic",yo._gtt="variable-relative-time",function(e=i){if("undefined"==typeof window)throw new Error(e)}(o),exports.Branch=Yn,exports.Currency=so,exports.DateTime=lo,exports.Derive=Qn,exports.GtInternalBranch=qn,exports.GtInternalCurrency=ao,exports.GtInternalDateTime=co,exports.GtInternalDerive=eo,exports.GtInternalNum=to,exports.GtInternalPlural=Zn,exports.GtInternalRelativeTime=mo,exports.GtInternalRuntimeTranslateJsx=(e,t)=>Yt(e,Object.assign({$format:"JSX"},t)),exports.GtInternalRuntimeTranslateString=(e,t)=>zt(e,Object.assign({$format:"ICU"},t)),exports.GtInternalTranslateJsx=ho,exports.GtInternalVar=oo,exports.LocaleSelector=function(e){var{locales:n}=e,o=h(e,["locales"]);const{sortedLocales:i,setLocale:a,locale:s,getLocaleProperties:c}=t.useMemo(()=>{const e=Xn(),t=e.getGTClass(),r=e.getLocale(),o=t=>{e.setLocale(t)},i=e=>t.getLocaleProperties(e);if(n)return{locale:r,setLocale:o,sortedLocales:n,getLocaleProperties:i};return{locale:r,sortedLocales:e.getLocales().sort((e,r)=>(new Intl.Collator).compare(t.getLocaleProperties(e).nativeNameWithRegionCode,t.getLocaleProperties(r).nativeNameWithRegionCode)),setLocale:o,getLocaleProperties:i}},[n]);return r.jsx(bo,Object.assign({locale:s,locales:i,setLocale:a,getLocaleProperties:c},o))},exports.Num=ro,exports.Plural=Jn,exports.RelativeTime=yo,exports.T=fo,exports.Var=io,exports.bootstrap=function(e){return b(this,void 0,void 0,function*(){Kn(e);const t=Xn();t.updateHtmlTag(),yield t.loadTranslations()})},exports.getDefaultLocale=Wn,exports.getLocale=zn,exports.getLocales=function(){return Xn().getLocales()},exports.getVersionId=function(){return Xn().getVersionId()},exports.initializeGT=Kn,exports.setLocale=function(e){return Xn().setLocale(e)},exports.t=(e,...t)=>{var r;return"undefined"==typeof window&&console.warn(`${n} Warning: Translation failed for t("${"string"==typeof(r=e)?r:"`"+(null==r?void 0:r.join("${}"))+"`"}") because it was used outside of a browser environment. Falling back to original message.`),"string"==typeof e?Jt(e,t.at(0)):function(e,t){const r=function(e,t){return e.map((e,r)=>{var n;return e+(null!==(n=t[r])&&void 0!==n?n:"")}).join("")}(e,t),n=Wt(r);if(n)return n;const{message:o,variables:i}=function(e,t){const r=[],n={};let o=0;for(let i=0;i<e.length;i++)if(r.push(e[i]),i<t.length){const e=o.toString();r.push(`{${e}}`),n[e]=t[i],o++}return{message:r.join(""),variables:n}}(e,t);return Jt(o,i)}(e,t)},exports.updateHtmlTagDir=function(e){Xn().updateHtmlTag({dir:e,updateHtmlLangTag:!1,updateHtmlDirTag:!0})},exports.updateHtmlTagLang=function(e){Xn().updateHtmlTag({lang:e,updateHtmlLangTag:!0,updateHtmlDirTag:!1})};
|
|
2
2
|
//# sourceMappingURL=browser.cjs.min.cjs.map
|