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.
@@ -1,2 +1,2 @@
1
- import{GT as t,standardizeLocale as e,isValidLocale as r,formatCutoff as n,resolveCanonicalLocale as o,formatMessage as i,determineLocale as a,requiresTranslation as s}from"generaltranslation";import c,{Children as u,isValidElement as l,cloneElement as h,Suspense as f,useMemo as p,useCallback as d,use as g}from"react";import{jsx as m,jsxs as y}from"react/jsx-runtime";const v="gt-react",b=`${v}/browser Error: The ${v}/browser module requires a browser environment`,E=`${v} Error: You are trying to import a browser-only module into a non-browser environment.`,_=`${v} Error: BrowserI18nManager not initialized. Invoke initializeGT() to initialize.`,T=t=>`${v} Warning: "${t}" is not a valid locale.`;function H(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function B(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}function w(t,e,r=""){const n=function(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name&&"BYTES_PER_ELEMENT"in t&&1===t.BYTES_PER_ELEMENT}(t),o=t?.length;if(!n||void 0!==e){const e=(r&&`"${r}" `)+"expected Uint8Array"+""+", got "+(n?`length=${o}`:"type="+typeof t);if(!n)throw new TypeError(e);throw new RangeError(e)}return t}function L(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function S(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function A(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function P(t,e){return t<<32-e|t>>>e}"function"==typeof SuppressedError&&SuppressedError;const C=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),O=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function I(t,e={}){const r=(e,r)=>t(r).update(e).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=e=>t(e),Object.assign(r,e),Object.freeze(r)}const M=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});function R(t,e,r){return t&e^~t&r}function N(t,e,r){return t&e^t&r^e&r}class U{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,e,r,n){this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(t),this.view=A(this.buffer)}update(t){L(this),w(t);const{view:e,buffer:r,blockLen:n}=this,o=t.length;for(let i=0;i<o;){const a=Math.min(n-this.pos,o-i);if(a===n){const e=A(t);for(;n<=o-i;i+=n)this.process(e,i);continue}r.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){L(this),function(t,e){w(t,void 0,"digestInto() output");const r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}(t,this),this.finished=!0;const{buffer:e,view:r,blockLen:n,isLE:o}=this;let{pos:i}=this;e[i++]=128,S(this.buffer.subarray(i)),this.padOffset>n-i&&(this.process(r,0),i=0);for(let t=i;t<n;t++)e[t]=0;r.setBigUint64(n-8,BigInt(8*this.length),o),this.process(r,0);const a=A(t),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 t=0;t<c;t++)a.setUint32(4*t,u[t],o)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());const{blockLen:e,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return t.destroyed=i,t.finished=o,t.length=n,t.pos=a,n%e&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const D=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),j=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]),G=new Uint32Array(64);class k extends U{constructor(t){super(64,t,8,!1)}get(){const{A:t,B:e,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[t,e,r,n,o,i,a,s]}set(t,e,r,n,o,i,a,s){this.A=0|t,this.B=0|e,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(t,e){for(let r=0;r<16;r++,e+=4)G[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=G[t-15],r=G[t-2],n=P(e,7)^P(e,18)^e>>>3,o=P(r,17)^P(r,19)^r>>>10;G[t]=o+G[t-7]+n+G[t-16]|0}let{A:r,B:n,C:o,D:i,E:a,F:s,G:c,H:u}=this;for(let t=0;t<64;t++){const e=u+(P(a,6)^P(a,11)^P(a,25))+R(a,s,c)+j[t]+G[t]|0,l=(P(r,2)^P(r,13)^P(r,22))+N(r,n,o)|0;u=c,c=s,s=a,a=i+e|0,i=o,o=n,n=r,r=e+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(){S(G)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),S(this.buffer)}}class x extends k{A=0|D[0];B=0|D[1];C=0|D[2];D=0|D[3];E=0|D[4];F=0|D[5];G=0|D[6];H=0|D[7];constructor(){super(32)}}const F=I(()=>new x,M(1));var V="https://cdn.gtx.dev",K="en",$=function(t,e){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},$(t,e)};function X(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}$(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Y=function(){return Y=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Y.apply(this,arguments)};function q(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function W(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function J(t,e){return function(r,n){e(r,n,t)}}function Z(t,e,r,n,o,i){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!e&&t?n.static?t:t.prototype:null,h=e||(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(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(t||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 z(t,e,r){for(var n=arguments.length>2,o=0;o<e.length;o++)r=n?e[o].call(t,r):e[o].call(t);return n?r:void 0}function Q(t){return"symbol"==typeof t?t:"".concat(t)}function tt(t,e,r){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function et(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function rt(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}function nt(t,e){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=e.call(t,i)}catch(t){s=[6,t],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 ot=Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function it(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||ot(e,t,r)}function at(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function st(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function ct(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(st(arguments[e]));return t}function ut(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function lt(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function ht(t){return this instanceof ht?(this.v=t,this):new ht(t)}function ft(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(t){return function(e){return Promise.resolve(e).then(t,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(t,e){o[t]&&(n[t]=function(e){return new Promise(function(r,n){i.push([t,e,r,n])>1||s(t,e)})},e&&(n[t]=e(n[t])))}function s(t,e){try{(r=o[t](e)).value instanceof ht?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function c(t){s("next",t)}function u(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function pt(t){var e,r;return e={},n("next"),n("throw",function(t){throw t}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:ht(t[n](e)),done:!1}:o?o(e):e}:o}}function dt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=at(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,o){!function(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)}(n,o,(e=t[r](e)).done,e.value)})}}}function gt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var mt=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},yt=function(t){return yt=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},yt(t)};function vt(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=yt(t),n=0;n<r.length;n++)"default"!==r[n]&&ot(e,t,r[n]);return mt(e,t),e}function bt(t){return t&&t.__esModule?t:{default:t}}function Et(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function _t(t,e,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 e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}function Tt(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function Ht(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var Bt="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function wt(t){function e(e){t.error=t.hasError?new Bt(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function o(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.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(t){return e(t),o()})}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}function Lt(t,e){return"string"==typeof t&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(t,r,n,o,i){return r?e?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":t}):t}var St,At,Pt,Ct={__extends:X,__assign:Y,__rest:q,__decorate:W,__param:J,__esDecorate:Z,__runInitializers:z,__propKey:Q,__setFunctionName:tt,__metadata:et,__awaiter:rt,__generator:nt,__createBinding:ot,__exportStar:it,__values:at,__read:st,__spread:ct,__spreadArrays:ut,__spreadArray:lt,__await:ht,__asyncGenerator:ft,__asyncDelegator:pt,__asyncValues:dt,__makeTemplateObject:gt,__importStar:vt,__importDefault:bt,__classPrivateFieldGet:Et,__classPrivateFieldSet:_t,__classPrivateFieldIn:Tt,__addDisposableResource:Ht,__disposeResources:wt,__rewriteRelativeImportExtension:Lt},Ot=Object.freeze({__proto__:null,__addDisposableResource:Ht,get __assign(){return Y},__asyncDelegator:pt,__asyncGenerator:ft,__asyncValues:dt,__await:ht,__awaiter:rt,__classPrivateFieldGet:Et,__classPrivateFieldIn:Tt,__classPrivateFieldSet:_t,__createBinding:ot,__decorate:W,__disposeResources:wt,__esDecorate:Z,__exportStar:it,__extends:X,__generator:nt,__importDefault:bt,__importStar:vt,__makeTemplateObject:gt,__metadata:et,__param:J,__propKey:Q,__read:st,__rest:q,__rewriteRelativeImportExtension:Lt,__runInitializers:z,__setFunctionName:tt,__spread:ct,__spreadArray:lt,__spreadArrays:ut,__values:at,default:Ct}),It="DEFAULT_TERMINATOR_KEY";!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(St||(St={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(At||(At={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Pt||(Pt={}));var Mt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rt=/(?:[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 Nt(t){var e={};return t.replace(Rt,function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Ut=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Dt(t){return t.replace(/^(.*?)-/,"")}var jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Gt=/^(@+)?(\+|#+)?[rs]?$/g,kt=/(\*)(0+)|(#+)(0+)|(0+)/g,xt=/^(0+)$/;function Ft(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Gt,function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),e}function Vt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Kt(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!xt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function $t(t){return Vt(t)||{}}function Xt(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Dt(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Y(Y(Y({},e),{notation:"scientific"}),o.options.reduce(function(t,e){return Y(Y({},t),$t(e))},{}));continue;case"engineering":e=Y(Y(Y({},e),{notation:"engineering"}),o.options.reduce(function(t,e){return Y(Y({},t),$t(e))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(kt,function(t,r,n,o,i,a){if(r)e.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(xt.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(jt.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(jt,function(t,r,n,o,i,a){return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&a?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""});var i=o.options[0];"w"===i?e=Y(Y({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=Y(Y({},e),Ft(i)))}else if(Gt.test(o.stem))e=Y(Y({},e),Ft(o.stem));else{var a=Vt(o.stem);a&&(e=Y(Y({},e),a));var s=Kt(o.stem);s&&(e=Y(Y({},e),s))}}return e}var Yt,qt={"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 Wt(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(qt[r||""]||qt[n||""]||qt["".concat(n,"-001")]||qt["001"])[0]}var Jt=new RegExp("^".concat(Mt.source,"*")),Zt=new RegExp("".concat(Mt.source,"*$"));function zt(t,e){return{start:t,end:e}}var Qt=!!String.prototype.startsWith&&"_a".startsWith("a",1),te=!!String.fromCodePoint,ee=!!Object.fromEntries,re=!!String.prototype.codePointAt,ne=!!String.prototype.trimStart,oe=!!String.prototype.trimEnd,ie=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ae=!0;try{ae="a"===(null===(Yt=de("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yt?void 0:Yt[0])}catch(De){ae=!1}var se,ce=Qt?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},ue=te?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},le=ee?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],a=o[1];e[i]=a}return e},he=re?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},fe=ne?function(t){return t.trimStart()}:function(t){return t.replace(Jt,"")},pe=oe?function(t){return t.trimEnd()}:function(t){return t.replace(Zt,"")};function de(t,e){return new RegExp(t,e)}if(ae){var ge=de("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");se=function(t,e){var r;return ge.lastIndex=e,null!==(r=ge.exec(t)[1])&&void 0!==r?r:""}}else se=function(t,e){for(var r=[];;){var n=he(t,e);if(void 0===n||be(n)||Ee(n))break;r.push(n),e+=n>=65536?2:1}return ue.apply(void 0,r)};var me=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(St.UNMATCHED_CLOSING_TAG,zt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ye(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:At.pound,location:zt(a,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:At.literal,value:"<".concat(n,"/>"),location:zt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ye(this.char()))return this.error(St.INVALID_TAG,zt(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(St.UNMATCHED_CLOSING_TAG,zt(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:At.tag,value:n,children:i,location:zt(r,this.clonePosition())},err:null}:this.error(St.INVALID_TAG,zt(a,this.clonePosition())))}return this.error(St.UNCLOSED_TAG,zt(r,this.clonePosition()))}return this.error(St.INVALID_TAG,zt(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ve(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=zt(r,this.clonePosition());return{val:{type:At.literal,value:n,location:s},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ye(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return ue.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),ue(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,zt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(St.EMPTY_ARGUMENT,zt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(St.MALFORMED_ARGUMENT,zt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,zt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:At.argument,value:n,location:zt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,zt(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(St.MALFORMED_ARGUMENT,zt(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=se(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:zt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(St.EXPECT_ARGUMENT_TYPE,zt(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=pe(y.val)).length)return this.error(St.EXPECT_ARGUMENT_STYLE,zt(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:zt(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=zt(n,this.clonePosition());if(c&&ce(null==c?void 0:c.style,"::",0)){var h=fe(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,c.styleLocation)).err?y:{val:{type:At.number,value:r,location:l,style:y.val},err:null};if(0===h.length)return this.error(St.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=Wt(e);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:Pt.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Nt(f):{}};return{val:{type:"date"===a?At.date:At.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?At.number:"date"===a?At.date:At.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(St.EXPECT_SELECT_ARGUMENT_OPTIONS,zt(d,Y({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(St.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,zt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(St.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,St.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var v,b=this.tryParsePluralOrSelectOptions(t,a,e,g);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=zt(n,this.clonePosition());return"select"===a?{val:{type:At.select,value:r,options:le(b.val),location:E},err:null}:{val:{type:At.plural,value:r,options:le(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(St.INVALID_ARGUMENT_TYPE,zt(i,s))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(St.EXPECT_ARGUMENT_CLOSING_BRACE,zt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(St.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,zt(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Ut).filter(function(t){return t.length>0});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:a})}return e}(t)}catch(t){return this.error(St.INVALID_NUMBER_SKELETON,e)}return{val:{type:Pt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Xt(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,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"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(St.EXPECT_PLURAL_ARGUMENT_SELECTOR,St.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=zt(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===e?St.DUPLICATE_SELECT_ARGUMENT_SELECTOR:St.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?St.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:St.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,zt(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:p.val,location:zt(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===e?St.EXPECT_SELECT_ARGUMENT_SELECTOR:St.EXPECT_PLURAL_ARGUMENT_SELECTOR,zt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(St.MISSING_OTHER_CLAUSE,zt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=zt(n,this.clonePosition());return o?ie(i*=r)?{val:i,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=he(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(ce(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&be(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function ye(t){return t>=97&&t<=122||t>=65&&t<=90}function ve(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function be(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Ee(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function _e(t){t.forEach(function(t){if(delete t.location,function(t){return t.type===At.select}(t)||function(t){return t.type===At.plural}(t))for(var e in t.options)delete t.options[e].location,_e(t.options[e].value);else(function(t){return t.type===At.number})(t)&&function(t){return!(!t||"object"!=typeof t||t.type!==Pt.number)}(t.style)||(function(t){return t.type===At.date}(t)||function(t){return t.type===At.time}(t))&&function(t){return!(!t||"object"!=typeof t||t.type!==Pt.dateTime)}(t.style)?delete t.style.location:function(t){return t.type===At.tag}(t)&&_e(t.children)})}function Te(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,o=t.options,i=o.recurseIntoVisited,a=void 0===i||i,s=function(t,e){void 0===e&&(e={}),e=Y({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new me(t,e).parse();if(r.err){var n=SyntaxError(St[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||_e(r.val),r.val}(e,q(o,["recurseIntoVisited"]));return c(s),s;function c(t){t.map(u)}function u(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===At.select||t.type===At.plural?Object.values(t.options).map(function(t){return t.value}).map(c):t.type===At.tag&&c(t.children))}}var He="_gt_",Be=new RegExp("^".concat(He,"\\d+$")),we=new RegExp("^".concat(He,"$"));var Le,Se={};function Ae(){return Le||(Le=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.SKELETON_TYPE=Se.TYPE=void 0,Se.isLiteralElement=function(e){return e.type===t.literal},Se.isArgumentElement=function(e){return e.type===t.argument},Se.isNumberElement=function(e){return e.type===t.number},Se.isDateElement=function(e){return e.type===t.date},Se.isTimeElement=function(e){return e.type===t.time},Se.isSelectElement=function(e){return e.type===t.select},Se.isPluralElement=function(e){return e.type===t.plural},Se.isPoundElement=function(e){return e.type===t.pound},Se.isTagElement=function(e){return e.type===t.tag},Se.isNumberSkeleton=function(t){return!(!t||"object"!=typeof t||t.type!==e.number)},Se.isDateTimeSkeleton=function(t){return!(!t||"object"!=typeof t||t.type!==e.dateTime)},Se.createLiteralElement=function(e){return{type:t.literal,value:e}},Se.createNumberElement=function(e,r){return{type:t.number,value:e,style:r}},function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(t||(Se.TYPE=t={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(e||(Se.SKELETON_TYPE=e={}))),Se;var t,e}var Pe=Ae();function Ce(t){var e;return t.type===Pe.TYPE.select&&Be.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Pe.TYPE.literal)}function Oe(t){var e;return t.type===Pe.TYPE.select&&we.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Pe.TYPE.literal)}function Ie(t){if(!t.includes(He))return t;var e=[];Te({icuString:t,shouldVisit:Oe,visitor:function(t){var r,n,o,i,a,s,c,u;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=t.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(u=null===(c=t.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<e.length;o++){var i=e[o],a=i.start,s=i.end,c=i.otherStart,u=i.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(o+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(u,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}var Me,Re={},Ne=function(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){var r=!1;try{r=this instanceof t}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}(Ot),Ue=function(){if(Me)return Re;Me=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.printAST=r,Re.doPrintAST=n,Re.printDateTimeSkeleton=a;var t=Ne,e=Ae();function r(t){return n(t,!1)}function n(s,c){var u=s.map(function(u,l){return(0,e.isLiteralElement)(u)?function(t,e,r,n){var i=t.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),e?i.replace("#","'#'"):i}(u,c,0===l,l===s.length-1):(0,e.isArgumentElement)(u)?function(t){var e=t.value;return"{".concat(e,"}")}(u):(0,e.isDateElement)(u)||(0,e.isTimeElement)(u)||(0,e.isNumberElement)(u)?function(t){return"{".concat(t.value,", ").concat(e.TYPE[t.type]).concat(t.style?", ".concat("string"==typeof(r=t.style)?o(r):r.type===e.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" "))):"","}");var r}(u):(0,e.isPluralElement)(u)?function(e){var r="cardinal"===e.pluralType?"plural":"selectordinal",o=[e.value,r,t.__spreadArray([e.offset?"offset:".concat(e.offset):""],Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(u):(0,e.isSelectElement)(u)?function(t){var e=[t.value,"select",Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!1),"}")}).join(" ")].join(",");return"{".concat(e,"}")}(u):(0,e.isPoundElement)(u)?"#":(0,e.isTagElement)(u)?function(t){return"<".concat(t.value,">").concat(r(t.children),"</").concat(t.value,">")}(u):void 0});return u.join("")}function o(t){return t.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(t){var e=t.stem,r=t.options;return 0===r.length?e:"".concat(e).concat(r.map(function(t){return"/".concat(t)}).join(""))}function a(t){return t.pattern}return Re}();var De=function(){return De=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},De.apply(this,arguments)};function je(t){if(void 0!==t){if(null===t)return"null";if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(var e="[",r=0;r<t.length;r++)r&&(e+=","),e+=je(t[r])||"null";return e+"]"}for(var n="",o=0,i=Object.keys(t).sort();o<i.length;o++){var a=i[o],s=je(t[a]);s&&(n&&(n+=","),n+=JSON.stringify(a)+":"+s)}return"{"+n+"}"}}function Ge(t){var e;return null!==(e=je(t))&&void 0!==e?e:""}function ke(t){return function(t){if(w(t),C)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=O[t[r]];return e}(F(function(t){if("string"!=typeof t)throw new TypeError("string expected");return new Uint8Array((new TextEncoder).encode(t))}(t))).slice(0,16)}function xe(t,e){var r,n=t.source,o=t.context,i=t.id,a=t.maxChars,s=t.dataFormat;return void 0===e&&(e=ke),r="JSX"===s?Ve(n):n,e(Ge(De(De(De(De({source:r},i&&{id:i}),o&&{context:o}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s})))}"function"==typeof SuppressedError&&SuppressedError;var Fe=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Ve(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],Ve(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?De({k:t.k},t.v&&{v:t.v}):e}return t};function Ve(t){return Array.isArray(t)?t.map(Fe):Fe(t)}var Ke=function(t,e){return Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Ke(t,e)};function $e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Ke(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Xe=function(){return Xe=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Xe.apply(this,arguments)};function Ye(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}function qe(t,e){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=e.call(t,i)}catch(t){s=[6,t],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 We(t,e,r){for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Je,Ze,ze=function(t){console.warn(t)},Qe=function(t){console.error(t)};function tr(t){return t.loadTranslations?Je.CUSTOM:t.cacheUrl?Je.REMOTE:void 0!==t.cacheUrl&&t.cacheUrl!==V||!t.projectId?Je.DISABLED:Je.GT_REMOTE}function er(t){return void 0!==t.runtimeUrl&&"https://runtime2.gtx.dev"!==t.runtimeUrl||!t.projectId||!t.devApiKey&&!t.apiKey?t.runtimeUrl?Ze.CUSTOM:Ze.DISABLED:Ze.GT}function rr(t){return tr(t)===Je.GT_REMOTE||er(t)===Ze.GT}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(Je||(Je={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(Ze||(Ze={}));var nr=function(){},or=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}return $e(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]},e}(nr);function ir(t){var e=this,r=function(t){var e=t.cacheUrl,r=void 0===e?V:e,n=t.projectId,o=t._versionId,i=t._branchId,a=o?"/".concat(o):"",s=i?"?branchId=".concat(i):"";return"".concat(r,"/").concat(n,"/[locale]")+a+s}(t);return function(n){return Ye(e,void 0,void 0,function(){var e,i;return qe(this,function(a){switch(a.label){case 0:return n=o(n,t.customMapping),e=r.replace("[locale]",n),[4,fetch(e)];case 1:if(!(i=a.sent()).ok)throw new Error("Failed to load translations from ".concat(e));return[4,i.json()];case 2:return[2,a.sent()]}})})}}var ar=function(){function t(t,e){this.cache={},this.fallbackPromises={},this.cache=structuredClone(t),this.onHit=null==e?void 0:e.onHit,this.onMiss=null==e?void 0:e.onMiss}return t.prototype.setCache=function(t,e){this.cache[t]=e},t.prototype.getCache=function(t){var e=this.genKey(t);return this.cache[e]},t.prototype.getInternalCache=function(){return this.cache},t.prototype.missCache=function(t){return Ye(this,void 0,void 0,function(){var e,r,n;return qe(this,function(o){switch(o.label){case 0:return e=this.genKey(t),void 0===this.fallbackPromises[e]?[3,2]:[4,this.fallbackPromises[e]];case 1:return[2,o.sent()];case 2:r=this.fallback(t),this.fallbackPromises[e]=r,o.label=3;case 3:return o.trys.push([3,,5,6]),[4,r];case 4:return n=o.sent(),this.cache[e]=n,[2,n];case 5:return delete this.fallbackPromises[e],[7];case 6:return[2]}})})},t}(),sr=function(t){function e(e){var r=e.init,n=e.translateMany,o=e.lifecycle,i=t.call(this,r,o)||this;return i._queue=[],i._batchTimer=null,i._activeRequests=0,i._translateMany=n,i}return $e(e,t),e.prototype.get=function(t){var e=this.getCache(t);return null!=e&&this.onHit&&this.onHit({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:e}),e},e.prototype.miss=function(t){return Ye(this,void 0,void 0,function(){var e;return qe(this,function(r){switch(r.label){case 0:return[4,this.missCache(t)];case 1:return null!=(e=r.sent())&&this.onMiss&&this.onMiss({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:e}),[2,e]}})})},e.prototype.genKey=function(t){return e=t.message,r=t.options,xe(Xe(Xe(Xe(Xe({source:"ICU"===r.$format?Ie(e):e},(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 e,r},e.prototype.fallback=function(t){var e=this._enqueueTranslation(t);return this._queue.length>=25?this._flushNow():this._scheduleBatch(),e},e.prototype._flushNow=function(){this._batchTimer&&(clearTimeout(this._batchTimer),this._batchTimer=null),this._drainQueue()},e.prototype._scheduleBatch=function(){var t=this;this._batchTimer||(this._batchTimer=setTimeout(function(){t._batchTimer=null,t._drainQueue()},50))},e.prototype._drainQueue=function(){for(;this._queue.length>0&&this._activeRequests<100;){var t=this._queue.splice(0,25);this._sendBatchRequest(t)}this._queue.length>0&&this._scheduleBatch()},e.prototype._enqueueTranslation=function(t){var e=this,r=this.genKey(t),n=t.options;return new Promise(function(o,i){e._queue.push({key:r,source:t.message,metadata:Xe(Xe(Xe(Xe({},(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(t){return o(t)},reject:i})})},e.prototype._sendBatchRequest=function(t){return Ye(this,void 0,void 0,function(){var e,r;return qe(this,function(n){switch(n.label){case 0:return this._activeRequests++,e=function(t){return t.reduce(function(t,e){return t[e.key]={source:e.source,metadata:e.metadata},t},{})}(t),[4,this._sendBatchRequestWithErrorHandling(t,e)];case 1:return(r=n.sent())&&this._handleTranslationResponse(t,r),this._activeRequests--,[2]}})})},e.prototype._sendBatchRequestWithErrorHandling=function(t,e){return Ye(this,void 0,void 0,function(){var r,n,o;return qe(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._translateMany(e)];case 1:return[2,i.sent()];case 2:for(r=i.sent(),n=0,o=t;n<o.length;n++)o[n].reject(r);return[2,void 0];case 3:return[2]}})})},e.prototype._handleTranslationResponse=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r],i=o.key,a=e[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)}},e}(ar),cr=function(t){function e(e){var r=e.init,n=void 0===r?{}:r,o=e.ttl,i=e.loadTranslations,a=e.createTranslateMany,s=e.lifecycle,c=s.onLocalesCacheHit,u=s.onLocalesCacheMiss,l=s.onTranslationsCacheHit,h=s.onTranslationsCacheMiss,f=t.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 $e(e,t),e.prototype.get=function(t){var e=this.getCache(t);if(e&&!(e.expiresAt>0&&e.expiresAt<Date.now())){var r=e.translationsCache;return null!=r&&this.onHit&&this.onHit({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:r}),r}},e.prototype.miss=function(t){return Ye(this,void 0,void 0,function(){var e,r;return qe(this,function(n){switch(n.label){case 0:return[4,this.missCache(t)];case 1:return e=n.sent(),null!=(r=e.translationsCache)&&this.onMiss&&this.onMiss({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:r}),[2,r]}})})},e.prototype.genKey=function(t){return t},e.prototype.fallback=function(t){return Ye(this,void 0,void 0,function(){var e,r,n,o;return qe(this,function(i){switch(i.label){case 0:return e=this._translationLoader(t),r=this.ttl<0?this.ttl:Date.now()+this.ttl,n=sr.bind,o={},[4,e];case 1:return[2,{translationsCache:new(n.apply(sr,[void 0,(o.init=i.sent(),o.lifecycle=this._createTranslationsCacheLifecycle(t),o.translateMany=this._createTranslateMany(t),o)])),expiresAt:r}]}})})},e.prototype._createTranslationsCacheLifecycle=function(t){var e=this;return{onHit:this._onTranslationsCacheHit?function(r){return e._onTranslationsCacheHit(Xe({locale:t},r))}:void 0,onMiss:this._onTranslationsCacheMiss?function(r){return e._onTranslationsCacheMiss(Xe({locale:t},r))}:void 0}},e}(ar);function ur(t){var e=t.onLocalesCacheHit,r=t.onLocalesCacheMiss,n=t.onTranslationsCacheHit,o=t.onTranslationsCacheMiss;return{onLocalesCacheHit:function(t){null==e||e({locale:t.inputKey,value:t.outputValue.getInternalCache()})},onLocalesCacheMiss:function(t){null==r||r({locale:t.inputKey,value:t.outputValue.getInternalCache()})},onTranslationsCacheHit:function(t){null==n||n({locale:t.locale,hash:t.cacheKey,value:t.outputValue})},onTranslationsCacheMiss:function(t){null==o||o({locale:t.locale,hash:t.cacheKey,value:t.outputValue})}}}var lr=function(){function n(t){var n,o,i,a,s,c=this;this.resolveTranslationSync=function(t,e){return c.lookupTranslation(t,e)},function(t,e,r){if(void 0===r&&(r=!0),t.forEach(function(t){switch(t.type){case"error":Qe(e+t.message);break;case"warning":ze(e+t.message)}}),r&&t.some(function(t){return"error"===t.type}))throw new Error("Validation errors occurred")}(function(t){var e=[];return e.push.apply(e,function(t){var e=[],r=t.projectId,n=t.loadTranslations;switch(tr(t)){case Je.REMOTE:case Je.GT_REMOTE:r||e.push({type:"warning",message:"projectId is required when loading translations from a remote store"});break;case Je.CUSTOM:n||e.push({type:"error",message:"loadTranslations is required when loading translations from a custom loader"});case Je.DISABLED:}return e}(t)),e.push.apply(e,function(t){var e=[];switch(er(t)){case Ze.CUSTOM:case Ze.GT:t.projectId||e.push({type:"warning",message:"projectId is required"}),t.devApiKey||t.apiKey||e.push({type:"warning",message:"devApiKey or apiKey is required"});case Ze.DISABLED:}return e}(t)),e.push.apply(e,function(t){var e=[];if(!rr(t))return e;var n=t.defaultLocale,o=t.locales,i=t.customMapping;return new Set(We(We([],n?[n]:[]),o||[])).forEach(function(t){r(t,i)||e.push({type:"error",message:"Invalid locale: ".concat(t)})}),e}(t)),e}(t),"I18nManager: "),this.config=(a=rr(i=t),s=function(t){var e=t.defaultLocale,r=t.locales,n=t.customMapping;return{defaultLocale:e,locales:Array.from(new Set(We([e],r))),customMapping:n||{}}}({defaultLocale:i.defaultLocale||K,locales:i.locales||[K],customMapping:i.customMapping}),Xe({environment:i.environment||"production",enableI18n:void 0===i.enableI18n||i.enableI18n,projectId:i.projectId,devApiKey:i.devApiKey,apiKey:i.apiKey,runtimeUrl:i.runtimeUrl,_versionId:i._versionId},a?function(t){var r=e(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(r)}),o=Object.fromEntries(Object.entries(t.customMapping||{}).map(function(t){var r=t[0],n=t[1];return[r,"string"==typeof n?e(n):Xe(Xe({},n),n.code?{code:e(n.code)}:{})]}));return{defaultLocale:r,locales:n,customMapping:o}}(s):s)),this.storeAdapter=null!==(n=t.storeAdapter)&&void 0!==n?n:new or;var u,l=function(t){return function(t){var e=t.type,r=t.remoteTranslationLoaderParams,n=t.loadTranslations;e===Je.DISABLED&&ze("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(e){case Je.REMOTE:case Je.GT_REMOTE:return ir({cacheUrl:o||"",projectId:i||"",_versionId:a,_branchId:s,customMapping:c});case Je.CUSTOM:return n;case Je.DISABLED:return function(){var t=this;return function(e){return Ye(t,void 0,void 0,function(){return qe(this,function(t){return[2,{}]})})}}()}}({loadTranslations:t.loadTranslations,type:tr(t),remoteTranslationLoaderParams:{cacheUrl:t.cacheUrl,projectId:t.projectId,_versionId:t._versionId,_branchId:t._branchId,customMapping:t.customMapping}})}(t),h=(u=this.getGTClassClean(),function(t){return function(e){return u.translateMany(e,{targetLocale:t},12e3)}});this.localesCache=new cr({loadTranslations:l,createTranslateMany:h,lifecycle:ur(null!==(o=t.lifecycle)&&void 0!==o?o:{})})}return n.prototype.getAdapterType=function(){return this.storeAdapter.type},n.prototype.getLocale=function(){return this.storeAdapter.getItem("locale")||(ze("getLocale() invoked outside of translation context, falling back to default locale"),this.config.defaultLocale)},n.prototype.setLocale=function(t){try{this.validateLocale(t);var e=this.getGTClass();this.storeAdapter.setItem("locale",e.determineLocale(t))}catch(t){this.handleError(t)}},n.prototype.getDefaultLocale=function(){return this.config.defaultLocale},n.prototype.getLocales=function(){return this.config.locales},n.prototype.getVersionId=function(){return this.config._versionId},n.prototype.getGTClass=function(){return this.getGTClassClean(this.getLocale())},n.prototype.isTranslationEnabled=function(){return this.config.enableI18n},n.prototype.getTranslationLoader=function(){var t=this;return function(e){return t.loadTranslations(e)}},n.prototype.loadTranslations=function(){return Ye(this,arguments,void 0,function(t){var e,r;return void 0===t&&(t=this.getLocale()),qe(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),this.validateLocale(t),this.requiresTranslation(t)?(e=this.localesCache.get(t))?[3,2]:[4,this.localesCache.miss(t)]:[2,{}];case 1:e=n.sent(),n.label=2;case 2:return[2,e.getInternalCache()];case 3:return r=n.sent(),this.handleError(r),[2,{}];case 4:return[2]}})})},n.prototype.lookupTranslation=function(t,e){var r;try{var n=null!==(r=e.$locale)&&void 0!==r?r:this.getLocale();if(this.validateLocale(n),!this.requiresTranslation(n))return t;var o=this.localesCache.get(n);if(!o)return;return o.get({message:t,options:e})}catch(t){return void this.handleError(t)}},n.prototype.lookupTranslationWithFallback=function(t,e){return Ye(this,void 0,void 0,function(){var r,n,o,i,a;return qe(this,function(s){switch(s.label){case 0:return s.trys.push([0,5,,6]),r=null!==(a=e.$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,t];case 1:n=s.sent(),s.label=2;case 2:return null!=(o=n.get({message:t,options:e}))?[3,4]:[4,n.miss({message:t,options:e})];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]}})})},n.prototype.getLookupTranslation=function(){return Ye(this,arguments,void 0,function(t,e){var r,n,o;return void 0===t&&(t=this.getLocale()),void 0===e&&(e=[]),qe(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),this.validateLocale(t),this.requiresTranslation(t)?(r=function(t,e){return t.filter(function(t){return null==t.options.$locale||t.options.$locale===e})}(e,t),r.length!==e.length&&ze("I18nManager: getLookupTranslation(): prefetchEntries must all be the same locale, ignoring all entries that are not for ".concat(t)),(n=this.localesCache.get(t))?[3,2]:[4,this.localesCache.miss(t)]):[2,function(t){return t}];case 1:n=i.sent(),i.label=2;case 2:return n?[4,Promise.all(r.filter(function(t){return null==n.get(t)}).map(function(t){return n.miss(t)}))]:[2,function(){}];case 3:return i.sent(),[2,function(t,e){return n.get({message:t,options:e})}];case 4:return o=i.sent(),this.handleError(o),[2,function(t){return t}];case 5:return[2]}})})},n.prototype.getTranslations=function(){return Ye(this,arguments,void 0,function(t){return void 0===t&&(t=this.getLocale()),qe(this,function(e){try{return this.validateLocale(t),[2,this.loadTranslations(t)]}catch(t){return this.handleError(t),[2,{}]}return[2]})})},n.prototype.getTranslationResolver=function(){return Ye(this,arguments,void 0,function(t){return void 0===t&&(t=this.getLocale()),qe(this,function(e){return[2,this.getLookupTranslation(t)]})})},n.prototype.requiresTranslation=function(t){void 0===t&&(t=this.getLocale());var e=this.getDefaultLocale(),r=this.getGTClass(),n=this.getLocales();return this.isTranslationEnabled()&&r.requiresTranslation(e,t,n)},n.prototype.requiresDialectTranslation=function(t){void 0===t&&(t=this.getLocale());var e=this.getDefaultLocale(),r=this.getGTClass();return this.requiresTranslation(t)&&r.isSameLanguage(e,t)},n.prototype.handleError=function(t){if("development"===this.config.environment)throw t;Qe("I18nManager: "+t)},n.prototype.validateLocale=function(t){var e=this.getGTClass();if(!e.isValidLocale(t)||!e.determineLocale(t))throw new Error("I18nManager: validateLocale(): locale ".concat(t," is not valid"))},n.prototype.getGTClassClean=function(e){return new t({sourceLocale:this.config.defaultLocale,targetLocale:e,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})},n}(),hr=void 0;function fr(){return hr||(ze("getI18nManager(): Translation failed because I18nManager not initialized."),hr=new lr({defaultLocale:K,locales:[K]})),hr}var pr=function(t){return'String interpolation failed for message: "'.concat(t,'".')};function dr(t,e){var r,o;if(!t)return t;var a=e.$_fallback,s=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e&&"$format"!==e&&"$_locales"!==e&&"$locale"!==e}))}(e);try{var c=function(t){if(!t.includes(He))return{};var e=1,r={};return Te({icuString:t,shouldVisit:Oe,visitor:function(t){var n;r[t.value+e]=t.options.other.value.length?null===(n=t.options.other.value[0])||void 0===n?void 0:n.value:"",e+=1},options:{recurseIntoVisited:!1}}),r}(a||""),u=function(t,e,r,n){try{return i(t,{variables:e,locales:r,dataFormat:n})}catch(e){return ze(pr(t)),t}}(Object.keys(c).length?function(t){if(!t.includes(He))return t;var e=Te({icuString:t,shouldVisit:Ce,visitor:function(t){t.type=Pe.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return Ue.printAST(e)}(t):t,Xe(Xe(Xe({},s),c),((r={})[He]="other",r)),null!==(o=e.$locale)&&void 0!==o?o:e.$_locales,e.$format);return n(u,{maxChars:e.$maxChars})}catch(r){return ze(pr(t)),null!=e.$_fallback?dr(e.$_fallback,Xe(Xe({},e),{$_fallback:void 0})):n(t,{maxChars:e.$maxChars})}}function gr(t){var e=t.source,r=t.target,n=t.options,o=fr();return null!=r?mr(r,Xe({$locale:o.getLocale(),$_fallback:e},n)):mr(e,Xe({$locale:o.getDefaultLocale()},n))}function mr(t,e){var r;switch(null!==(r=e.$format)&&void 0!==r?r:"STRING"){case"ICU":return dr(t,e);case"I18NEXT":case"STRING":return function(t,e){var r;return n(t,{locales:null!==(r=e.$locale)&&void 0!==r?r:e.$_locales,maxChars:e.$maxChars})}(t,e);default:return t}}function yr(t,e){return Ye(this,void 0,void 0,function(){var r,n;return qe(this,function(o){switch(o.label){case 0:return r=br(e,"JSX"),[4,fr().lookupTranslationWithFallback(t,r)];case 1:return[2,null!=(n=o.sent())?n:t]}})})}function vr(t,e){return Ye(this,void 0,void 0,function(){var r,n;return qe(this,function(o){switch(o.label){case 0:return r=br(e,"STRING"),[4,fr().lookupTranslationWithFallback(t,r)];case 1:return n=o.sent(),[2,gr({source:t,target:n,options:r})]}})})}function br(t,e){return Xe({$format:e},t)}var Er=function(t,e){return void 0===e&&(e={}),function(t,e){var r=br(e,"STRING"),n=fr().lookupTranslation(t,r);if(null!=n)return gr({source:t,target:n,options:r})}(t,Xe({$format:"ICU"},e))},_r=function(t,e){return void 0===e&&(e={}),function(t,e){var r=br(e,"STRING");return gr({source:t,target:fr().lookupTranslation(t,r),options:r})}(t,Xe({$format:"ICU"},e))};function Tr(t,e,r=""){const n=function(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name&&"BYTES_PER_ELEMENT"in t&&1===t.BYTES_PER_ELEMENT}(t),o=t?.length;if(!n||void 0!==e){const e=(r&&`"${r}" `)+"expected Uint8Array, got "+(n?`length=${o}`:"type="+typeof t);if(!n)throw new TypeError(e);throw new RangeError(e)}return t}function Hr(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Br(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function wr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Lr(t,e){return t<<32-e|t>>>e}const Sr="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,Ar=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Pr(t,e,r){return t&e^~t&r}function Cr(t,e,r){return t&e^t&r^e&r}class Or{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,e,r,n){this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(t),this.view=wr(this.buffer)}update(t){Hr(this),Tr(t);const{view:e,buffer:r,blockLen:n}=this,o=t.length;for(let i=0;i<o;){const a=Math.min(n-this.pos,o-i);if(a===n){const e=wr(t);for(;n<=o-i;i+=n)this.process(e,i);continue}r.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===n&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Hr(this),function(t,e){Tr(t,void 0,"digestInto() output");const r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}(t,this),this.finished=!0;const{buffer:e,view:r,blockLen:n,isLE:o}=this;let{pos:i}=this;e[i++]=128,Br(this.buffer.subarray(i)),this.padOffset>n-i&&(this.process(r,0),i=0);for(let t=i;t<n;t++)e[t]=0;r.setBigUint64(n-8,BigInt(8*this.length),o),this.process(r,0);const a=wr(t),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 t=0;t<c;t++)a.setUint32(4*t,u[t],o)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());const{blockLen:e,buffer:r,length:n,finished:o,destroyed:i,pos:a}=this;return t.destroyed=i,t.finished=o,t.length=n,t.pos=a,n%e&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const Ir=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Mr=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]),Rr=new Uint32Array(64);class Nr extends Or{constructor(t){super(64,t,8,!1)}get(){const{A:t,B:e,C:r,D:n,E:o,F:i,G:a,H:s}=this;return[t,e,r,n,o,i,a,s]}set(t,e,r,n,o,i,a,s){this.A=0|t,this.B=0|e,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(t,e){for(let r=0;r<16;r++,e+=4)Rr[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=Rr[t-15],r=Rr[t-2],n=Lr(e,7)^Lr(e,18)^e>>>3,o=Lr(r,17)^Lr(r,19)^r>>>10;Rr[t]=o+Rr[t-7]+n+Rr[t-16]|0}let{A:r,B:n,C:o,D:i,E:a,F:s,G:c,H:u}=this;for(let t=0;t<64;t++){const e=u+(Lr(a,6)^Lr(a,11)^Lr(a,25))+Pr(a,s,c)+Mr[t]+Rr[t]|0,l=(Lr(r,2)^Lr(r,13)^Lr(r,22))+Cr(r,n,o)|0;u=c,c=s,s=a,a=i+e|0,i=o,o=n,n=r,r=e+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(){Br(Rr)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Br(this.buffer)}}class Ur extends Nr{A=0|Ir[0];B=0|Ir[1];C=0|Ir[2];D=0|Ir[3];E=0|Ir[4];F=0|Ir[5];G=0|Ir[6];H=0|Ir[7];constructor(){super(32)}}const Dr=function(t,e={}){const r=(e,r)=>t(r).update(e).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=e=>t(e),Object.assign(r,e),Object.freeze(r)}(()=>new Ur,(t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])}))(1));var jr="en",Gr=["singular","plural","dual","zero","one","two","few","many","other"];function kr(t){return Gr.includes(t)}var xr=function(t,e){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},xr(t,e)};function Fr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Vr=function(){return Vr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Vr.apply(this,arguments)};function Kr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function $r(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function Xr(t,e){return function(r,n){e(r,n,t)}}function Yr(t,e,r,n,o,i){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!e&&t?n.static?t:t.prototype:null,h=e||(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(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(t||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 qr(t,e,r){for(var n=arguments.length>2,o=0;o<e.length;o++)r=n?e[o].call(t,r):e[o].call(t);return n?r:void 0}function Wr(t){return"symbol"==typeof t?t:"".concat(t)}function Jr(t,e,r){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}function Zr(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function zr(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}function Qr(t,e){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=e.call(t,i)}catch(t){s=[6,t],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 tn=Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function en(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||tn(e,t,r)}function rn(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function nn(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function on(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(nn(arguments[e]));return t}function an(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function sn(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function cn(t){return this instanceof cn?(this.v=t,this):new cn(t)}function un(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(t){return function(e){return Promise.resolve(e).then(t,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(t,e){o[t]&&(n[t]=function(e){return new Promise(function(r,n){i.push([t,e,r,n])>1||s(t,e)})},e&&(n[t]=e(n[t])))}function s(t,e){try{(r=o[t](e)).value instanceof cn?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function c(t){s("next",t)}function u(t){s("throw",t)}function l(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}}function ln(t){var e,r;return e={},n("next"),n("throw",function(t){throw t}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:cn(t[n](e)),done:!1}:o?o(e):e}:o}}function hn(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=rn(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,o){!function(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)}(n,o,(e=t[r](e)).done,e.value)})}}}function fn(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var pn=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},dn=function(t){return dn=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},dn(t)};function gn(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=dn(t),n=0;n<r.length;n++)"default"!==r[n]&&tn(e,t,r[n]);return pn(e,t),e}function mn(t){return t&&t.__esModule?t:{default:t}}function yn(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function vn(t,e,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 e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}function bn(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function En(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var _n="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function Tn(t){function e(e){t.error=t.hasError?new _n(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function o(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.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(t){return e(t),o()})}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}function Hn(t,e){return"string"==typeof t&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(t,r,n,o,i){return r?e?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":t}):t}var Bn,wn,Ln={__extends:Fr,__assign:Vr,__rest:Kr,__decorate:$r,__param:Xr,__esDecorate:Yr,__runInitializers:qr,__propKey:Wr,__setFunctionName:Jr,__metadata:Zr,__awaiter:zr,__generator:Qr,__createBinding:tn,__exportStar:en,__values:rn,__read:nn,__spread:on,__spreadArrays:an,__spreadArray:sn,__await:cn,__asyncGenerator:un,__asyncDelegator:ln,__asyncValues:hn,__makeTemplateObject:fn,__importStar:gn,__importDefault:mn,__classPrivateFieldGet:yn,__classPrivateFieldSet:vn,__classPrivateFieldIn:bn,__addDisposableResource:En,__disposeResources:Tn,__rewriteRelativeImportExtension:Hn},Sn=Object.freeze({__proto__:null,__addDisposableResource:En,get __assign(){return Vr},__asyncDelegator:ln,__asyncGenerator:un,__asyncValues:hn,__await:cn,__awaiter:zr,__classPrivateFieldGet:yn,__classPrivateFieldIn:bn,__classPrivateFieldSet:vn,__createBinding:tn,__decorate:$r,__disposeResources:Tn,__esDecorate:Yr,__exportStar:en,__extends:Fr,__generator:Qr,__importDefault:mn,__importStar:gn,__makeTemplateObject:fn,__metadata:Zr,__param:Xr,__propKey:Wr,__read:nn,__rest:Kr,__rewriteRelativeImportExtension:Hn,__runInitializers:qr,__setFunctionName:Jr,__spread:on,__spreadArray:sn,__spreadArrays:an,__values:rn,default:Ln}),An="ellipsis",Pn="DEFAULT_TERMINATOR_KEY",Cn={ellipsis:(Bn={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},Bn[Pn]={terminator:"…",separator:void 0},Bn),none:(wn={},wn[Pn]={terminator:void 0,separator:void 0},wn)},On=function(){function t(t,e){var r,n,o,i,a,s,c,u,l;void 0===e&&(e={});try{var h=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[jr],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:jr}catch(t){this.locale=jr}if(!Cn[null!==(r=e.style)&&void 0!==r?r:An])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:An));if(void 0!==e.maxChars){u=null!==(o=e.style)&&void 0!==o?o:An;var p=new Intl.Locale(this.locale).language;l=Cn[u][p]||Cn[u][Pn]}var d=null!==(i=e.terminator)&&void 0!==i?i:null==l?void 0:l.terminator,g=null!=d?null!==(a=e.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!==e.maxChars&&Math.abs(e.maxChars)<this.additionLength&&(d=void 0,g=void 0),this.options={maxChars:e.maxChars,style:u,terminator:d,separator:g}}return t.prototype.format=function(t){return this.formatToParts(t).join("")},t.prototype.formatToParts=function(t){var e=this.options,r=e.maxChars,n=e.terminator,o=e.separator,i=void 0===r||Math.abs(r)>=t.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==i&&i>-1?t.slice(0,i):t.slice(i);return null==r||null==i||0===i||null==n||t.length<=Math.abs(r)?[a]:i>0?null!=o?[a,o,n]:[a,n]:null!=o?[n,o,a]:[n,a]},t.prototype.resolvedOptions=function(){return this.options},t}(),In={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:On},Mn=function(){function t(){this.cache={}}return t.prototype._generateKey=function(t,e){void 0===e&&(e={});var r=t?Array.isArray(t)?t.map(function(t){return String(t)}).join(","):String(t):"undefined",n=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n)},t.prototype.get=function(t){for(var e,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=n[0],a=void 0===i?jr:i,s=n[1],c=void 0===s?{}:s,u=this._generateKey(a,c),l=null===(r=this.cache[t])||void 0===r?void 0:r[u];return void 0===l&&(l=new((e=In[t]).bind.apply(e,sn([void 0],n,!1))),this.cache[t]||(this.cache[t]={}),this.cache[t][u]=l),l},t}(),Rn=new Mn;function Nn(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}var Un,Dn,jn,Gn={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function kn(t){return Gn[t]}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Un||(Un={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(Dn||(Dn={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(jn||(jn={}));var xn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Fn=/(?:[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 Vn(t){var e={};return t.replace(Fn,function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Kn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $n(t){return t.replace(/^(.*?)-/,"")}var Xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Yn=/^(@+)?(\+|#+)?[rs]?$/g,qn=/(\*)(0+)|(#+)(0+)|(0+)/g,Wn=/^(0+)$/;function Jn(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Yn,function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),e}function Zn(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function zn(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Wn.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Qn(t){return Zn(t)||{}}function to(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=$n(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Vr(Vr(Vr({},e),{notation:"scientific"}),o.options.reduce(function(t,e){return Vr(Vr({},t),Qn(e))},{}));continue;case"engineering":e=Vr(Vr(Vr({},e),{notation:"engineering"}),o.options.reduce(function(t,e){return Vr(Vr({},t),Qn(e))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(qn,function(t,r,n,o,i,a){if(r)e.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(Wn.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(Xn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Xn,function(t,r,n,o,i,a){return"*"===n?e.minimumFractionDigits=r.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&a?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""});var i=o.options[0];"w"===i?e=Vr(Vr({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=Vr(Vr({},e),Jn(i)))}else if(Yn.test(o.stem))e=Vr(Vr({},e),Jn(o.stem));else{var a=Zn(o.stem);a&&(e=Vr(Vr({},e),a));var s=zn(o.stem);s&&(e=Vr(Vr({},e),s))}}return e}var eo,ro={"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 no(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(ro[r||""]||ro[n||""]||ro["".concat(n,"-001")]||ro["001"])[0]}var oo=new RegExp("^".concat(xn.source,"*")),io=new RegExp("".concat(xn.source,"*$"));function ao(t,e){return{start:t,end:e}}var so=!!String.prototype.startsWith&&"_a".startsWith("a",1),co=!!String.fromCodePoint,uo=!!Object.fromEntries,lo=!!String.prototype.codePointAt,ho=!!String.prototype.trimStart,fo=!!String.prototype.trimEnd,po=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},go=!0;try{go="a"===(null===(eo=Ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===eo?void 0:eo[0])}catch(ai){go=!1}var mo,yo=so?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},vo=co?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},bo=uo?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],a=o[1];e[i]=a}return e},Eo=lo?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},_o=ho?function(t){return t.trimStart()}:function(t){return t.replace(oo,"")},To=fo?function(t){return t.trimEnd()}:function(t){return t.replace(io,"")};function Ho(t,e){return new RegExp(t,e)}if(go){var Bo=Ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mo=function(t,e){var r;return Bo.lastIndex=e,null!==(r=Bo.exec(t)[1])&&void 0!==r?r:""}}else mo=function(t,e){for(var r=[];;){var n=Eo(t,e);if(void 0===n||Ao(n)||Po(n))break;r.push(n),e+=n>=65536?2:1}return vo.apply(void 0,r)};var wo=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Un.UNMATCHED_CLOSING_TAG,ao(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Lo(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Dn.pound,location:ao(a,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Dn.literal,value:"<".concat(n,"/>"),location:ao(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Lo(this.char()))return this.error(Un.INVALID_TAG,ao(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(Un.UNMATCHED_CLOSING_TAG,ao(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Dn.tag,value:n,children:i,location:ao(r,this.clonePosition())},err:null}:this.error(Un.INVALID_TAG,ao(a,this.clonePosition())))}return this.error(Un.UNCLOSED_TAG,ao(r,this.clonePosition()))}return this.error(Un.INVALID_TAG,ao(r,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&So(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{var i=this.tryParseUnquoted(t,e);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=ao(r,this.clonePosition());return{val:{type:Dn.literal,value:n,location:s},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Lo(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return vo.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),vo(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Un.EXPECT_ARGUMENT_CLOSING_BRACE,ao(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Un.EMPTY_ARGUMENT,ao(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Un.MALFORMED_ARGUMENT,ao(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Un.EXPECT_ARGUMENT_CLOSING_BRACE,ao(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Dn.argument,value:n,location:ao(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Un.EXPECT_ARGUMENT_CLOSING_BRACE,ao(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(Un.MALFORMED_ARGUMENT,ao(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=mo(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:ao(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Un.EXPECT_ARGUMENT_TYPE,ao(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=To(y.val)).length)return this.error(Un.EXPECT_ARGUMENT_STYLE,ao(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:ao(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=ao(n,this.clonePosition());if(c&&yo(null==c?void 0:c.style,"::",0)){var h=_o(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,c.styleLocation)).err?y:{val:{type:Dn.number,value:r,location:l,style:y.val},err:null};if(0===h.length)return this.error(Un.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=no(e);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:jn.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Vn(f):{}};return{val:{type:"date"===a?Dn.date:Dn.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?Dn.number:"date"===a?Dn.date:Dn.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(Un.EXPECT_SELECT_ARGUMENT_OPTIONS,ao(d,Vr({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Un.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ao(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(Un.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Un.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var v,b=this.tryParsePluralOrSelectOptions(t,a,e,g);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=ao(n,this.clonePosition());return"select"===a?{val:{type:Dn.select,value:r,options:bo(b.val),location:E},err:null}:{val:{type:Dn.plural,value:r,options:bo(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(Un.INVALID_ARGUMENT_TYPE,ao(i,s))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Un.EXPECT_ARGUMENT_CLOSING_BRACE,ao(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Un.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ao(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Kn).filter(function(t){return t.length>0});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:a})}return e}(t)}catch(t){return this.error(Un.INVALID_NUMBER_SKELETON,e)}return{val:{type:jn.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?to(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,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"===e||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(Un.EXPECT_PLURAL_ARGUMENT_SELECTOR,Un.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=ao(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===e?Un.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Un.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Un.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Un.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ao(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:p.val,location:ao(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===e?Un.EXPECT_SELECT_ARGUMENT_SELECTOR:Un.EXPECT_PLURAL_ARGUMENT_SELECTOR,ao(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Un.MISSING_OTHER_CLAUSE,ao(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=ao(n,this.clonePosition());return o?po(i*=r)?{val:i,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Eo(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(yo(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ao(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function Lo(t){return t>=97&&t<=122||t>=65&&t<=90}function So(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Ao(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Po(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function Co(t){t.forEach(function(t){if(delete t.location,function(t){return t.type===Dn.select}(t)||function(t){return t.type===Dn.plural}(t))for(var e in t.options)delete t.options[e].location,Co(t.options[e].value);else(function(t){return t.type===Dn.number})(t)&&function(t){return!(!t||"object"!=typeof t||t.type!==jn.number)}(t.style)||(function(t){return t.type===Dn.date}(t)||function(t){return t.type===Dn.time}(t))&&function(t){return!(!t||"object"!=typeof t||t.type!==jn.dateTime)}(t.style)?delete t.style.location:function(t){return t.type===Dn.tag}(t)&&Co(t.children)})}function Oo(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,o=t.options,i=o.recurseIntoVisited,a=void 0===i||i,s=function(t,e){void 0===e&&(e={}),e=Vr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new wo(t,e).parse();if(r.err){var n=SyntaxError(Un[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||Co(r.val),r.val}(e,Kr(o,["recurseIntoVisited"]));return c(s),s;function c(t){t.map(u)}function u(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===Dn.select||t.type===Dn.plural?Object.values(t.options).map(function(t){return t.value}).map(c):t.type===Dn.tag&&c(t.children))}}var Io,Mo="_gt_",Ro=new RegExp("^".concat(Mo,"$")),No={};function Uo(){return Io||(Io=1,Object.defineProperty(No,"__esModule",{value:!0}),No.SKELETON_TYPE=No.TYPE=void 0,No.isLiteralElement=function(e){return e.type===t.literal},No.isArgumentElement=function(e){return e.type===t.argument},No.isNumberElement=function(e){return e.type===t.number},No.isDateElement=function(e){return e.type===t.date},No.isTimeElement=function(e){return e.type===t.time},No.isSelectElement=function(e){return e.type===t.select},No.isPluralElement=function(e){return e.type===t.plural},No.isPoundElement=function(e){return e.type===t.pound},No.isTagElement=function(e){return e.type===t.tag},No.isNumberSkeleton=function(t){return!(!t||"object"!=typeof t||t.type!==e.number)},No.isDateTimeSkeleton=function(t){return!(!t||"object"!=typeof t||t.type!==e.dateTime)},No.createLiteralElement=function(e){return{type:t.literal,value:e}},No.createNumberElement=function(e,r){return{type:t.number,value:e,style:r}},function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(t||(No.TYPE=t={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(e||(No.SKELETON_TYPE=e={}))),No;var t,e}var Do=Uo();function jo(t){var e;return t.type===Do.TYPE.select&&Ro.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Do.TYPE.literal)}function Go(t){if(!t.includes(Mo))return t;var e=[];Oo({icuString:t,shouldVisit:jo,visitor:function(t){var r,n,o,i,a,s,c,u;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=t.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(u=null===(c=t.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<e.length;o++){var i=e[o],a=i.start,s=i.end,c=i.otherStart,u=i.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(o+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(u,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}var ko,xo={},Fo=function(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var r=function t(){var r=!1;try{r=this instanceof t}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}(Sn);function Vo(t,e=0){let r=e;function n(t){return l(t)?function(t){const{props:e}=t,n=(t=>{const{type:e,props:n}=t;r+=1;const o={id:r,injectionType:"manual"};let i;try{i="function"==typeof e&&e._gtt||""}catch{}if(i){const t=i.split("-");if("automatic"!==t[1]&&"automatic"!==t[2]||(o.injectionType="automatic"),"translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[e,n])=>(kr(e)&&(t[e]=Vo(n,r)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...i}=n,a=Object.fromEntries(Object.entries(i).filter(([t])=>!t.startsWith("data-"))),s=Object.entries(a).reduce((t,[e,n])=>(t[e]=Vo(n,r),t),{});Object.keys(s).length&&(o.branches=s)}o.transformation=t[0]}return o})(t),i={...e,"data-_gt":n};return e.children&&!n.variableType&&(i.children=o(e.children)),t.type===c.Fragment&&(i["data-_gt"].transformation="fragment"),c.cloneElement(t,i)}(t):t}function o(t){return Array.isArray(t)?c.Children.map(t,n):n(t)}return o(t)}!function(){if(ko)return xo;ko=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.printAST=r,xo.doPrintAST=n,xo.printDateTimeSkeleton=a;var t=Fo,e=Uo();function r(t){return n(t,!1)}function n(s,c){var u=s.map(function(u,l){return(0,e.isLiteralElement)(u)?function(t,e,r,n){var i=t.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),e?i.replace("#","'#'"):i}(u,c,0===l,l===s.length-1):(0,e.isArgumentElement)(u)?function(t){var e=t.value;return"{".concat(e,"}")}(u):(0,e.isDateElement)(u)||(0,e.isTimeElement)(u)||(0,e.isNumberElement)(u)?function(t){return"{".concat(t.value,", ").concat(e.TYPE[t.type]).concat(t.style?", ".concat("string"==typeof(r=t.style)?o(r):r.type===e.SKELETON_TYPE.dateTime?"::".concat(a(r)):"::".concat(r.tokens.map(i).join(" "))):"","}");var r}(u):(0,e.isPluralElement)(u)?function(e){var r="cardinal"===e.pluralType?"plural":"selectordinal",o=[e.value,r,t.__spreadArray([e.offset?"offset:".concat(e.offset):""],Object.keys(e.options).map(function(t){return"".concat(t,"{").concat(n(e.options[t].value,!0),"}")}),!0).filter(Boolean).join(" ")].join(",");return"{".concat(o,"}")}(u):(0,e.isSelectElement)(u)?function(t){var e=[t.value,"select",Object.keys(t.options).map(function(e){return"".concat(e,"{").concat(n(t.options[e].value,!1),"}")}).join(" ")].join(",");return"{".concat(e,"}")}(u):(0,e.isPoundElement)(u)?"#":(0,e.isTagElement)(u)?function(t){return"<".concat(t.value,">").concat(r(t.children),"</").concat(t.value,">")}(u):void 0});return u.join("")}function o(t){return t.replace(/([{}](?:[\s\S]*[{}])?)/,"'$1'")}function i(t){var e=t.stem,r=t.options;return 0===r.length?e:"".concat(e).concat(r.map(function(t){return"/".concat(t)}).join(""))}function a(t){return t.pattern}}();function Ko(t,e){return l(t)?function(t,e){const{type:r,props:n}=t,o=function(t){const e="function"==typeof t&&"_gtt"in t?t._gtt:void 0;if(null==e||"string"!=typeof e)return;const r=e.split("-");return{componentType:r[0],injectionType:"automatic"===r[1]||"automatic"===r[2]?"automatic":"manual"}}(r);if("object"!=typeof n||null===n)return t;if(o){const{componentType:r,injectionType:i}=o;if("variable"===r)return t;if("branch"===r){const r=Object.entries(n).reduce((t,[r,n])=>("branch"===r||r.startsWith("data-")?t[r]=n:t[r]=Ko(n,e),t),{});return h(t,{...r})}if("plural"===r){const r=Object.entries(n).reduce((t,[r,n])=>(kr(r)||"children"===r?t[r]=Ko(n,e):t[r]=n,t),{});return h(t,{...r})}if("derive"===r)return h(t,{...n,..."children"in n&&{children:$o(n.children,e+1)}});if("translate"===r&&"automatic"===i&&e>0)return"children"in n?$o(n.children,e):void 0;"translate"===r&&"automatic"===i&&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 h(t,{...n,..."children"in n&&{children:$o(n.children,e)}})}(t,e):t}function $o(t,e){return Array.isArray(t)?u.map(t,t=>Ko(t,e)):Ko(t,e)}const Xo={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function Yo(t={},e){return t.name?t.name:`_gt_${Xo[e]||"value"}_${t["data-_gt"]?.id}`}var qo={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const Wo=t=>{if(!t)return"";const{type:e,props:r}=t;if(e&&"function"==typeof e){if("displayName"in e&&"string"==typeof e.displayName&&e.displayName)return e.displayName;if("name"in e&&"string"==typeof e.name&&e.name)return e.name}return e&&"string"==typeof e?e:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},Jo=t=>{return e=t,c.isValidElement(e)?(t=>{const{props:e}=t,r={t:Wo(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=Yo(e,r),o=kn(r);return{i:t.id,k:n,v:o}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(qo).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Zo(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Zo(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let o=Object.entries(qo).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Zo(r)}),o={...o,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Zo(r)}),o={...o,b:e,t:"b"}}r.d=Object.keys(o).length?o:void 0}return e.children&&(r.c=Zo(e.children)),r})(t):"number"==typeof t?t.toString():t;var e};function Zo(t){return Array.isArray(t)?t.map(Jo):Jo(t)}function zo(t,e,r){let n="",o=null;return"number"==typeof t&&!o&&r&&(n=function(t,e,r){void 0===e&&(e=Gr),void 0===r&&(r=[jr]);var n=Rn.get("PluralRules",r).select(t),o=Math.abs(t);if(0===o&&e.includes("zero"))return"zero";if(1===o){if(e.includes("singular"))return"singular";if(e.includes("one"))return"one"}if("one"===n&&e.includes("singular"))return"singular";if(2===o){if(e.includes("dual"))return"dual";if(e.includes("two"))return"two"}return"two"===n&&e.includes("dual")?"dual":e.includes(n)?n:"two"===n&&e.includes("dual")?"dual":"two"===n&&e.includes("plural")?"plural":"two"===n&&e.includes("other")?"other":"few"===n&&e.includes("plural")?"plural":"few"===n&&e.includes("other")?"other":"many"===n&&e.includes("plural")?"plural":"many"===n&&e.includes("other")?"other":"other"===n&&e.includes("plural")?"plural":""}(t,Object.keys(r),e)),n&&!o&&(o=r[n]),o}function Qo(t){return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===t["data-_gt"]?.transformation}function ti(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:Yo(t,e),variableType:kn(e),injectionType:t["data-_gt"]?.injectionType||"manual",variableValue:void 0!==t.value?t.value:void 0!==t.date?t.date:void 0!==t["data-_gt-unformatted-value"]?t["data-_gt-unformatted-value"]:void 0!==t.children?t.children:void 0,variableOptions:(()=>{const e={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.unit&&{unit:t.unit},...void 0!==t.baseDate&&{baseDate:t.baseDate},...void 0!==t.options&&t.options};return Object.keys(e).length?e:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function ei(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function ri({children:t,defaultLocale:e=jr,renderVariable:r}){const n=t=>c.isValidElement(t)?(t=>{const n=ei(t);if(Qo(t.props)){const{variableType:n,variableValue:o,variableOptions:i,injectionType:a}=ti(t.props);return r({variableType:n,variableValue:o,variableOptions:i,locales:[e],injectionType:a})}if("plural"===n?.transformation){const r=n.branches||{};return o(zo(t.props.n,[e],r)||t.props.children)}if("branch"===n?.transformation){let{children:e,branch:r,"data-_gt":i,...a}=t.props;return a=n.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===n?.transformation?c.createElement(c.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?c.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):c.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?c.Children.map(t,n):n(t);return o(t)}function ni({sourceElement:t,targetElement:e,locales:r=[jr],renderVariable:n}){const{props:o}=t,i=o["data-_gt"],a=i?.transformation,s=e.d,u={};if(s&&Object.entries(qo).forEach(([t,e])=>{s[t]&&(u[e]=s[t])}),"plural"===a){const o=t.props.n;return oi({source:zo(o,r,i.branches||{})||t.props.children,target:zo(o,r,e.d?.b||{})||e.c,locales:r,renderVariable:n})}if("branch"===a){const{branch:t,children:a}=o;return oi({source:(i.branches||{})[t]||a,target:(e.d?.b||{})[t]||e.c,locales:r,renderVariable:n})}return"fragment"===a&&e.c?c.createElement(c.Fragment,{key:t.props.key,children:oi({source:o.children,target:e.c,locales:r,renderVariable:n})}):o?.children&&e?.c?c.cloneElement(t,{...o,...u,"data-_gt":void 0,children:oi({source:o.children,target:e.c,locales:r,renderVariable:n})}):ri({children:t,defaultLocale:r[0],renderVariable:n})}function oi({source:t,target:e,locales:r=[jr],renderVariable:n}){if(null==e&&t)return ri({children:t,defaultLocale:r[0],renderVariable:n});if("string"==typeof e)return e;if(Array.isArray(e)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(e)){const o={},i={},a={},s=t.filter(t=>{if(c.isValidElement(t)){if(!Qo(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n,injectionType:s}=ti(t.props);o[e]=r,i[e]=n,a[e]=s}}return!1}),u=t=>s.find(e=>{const r=ei(e);return void 0!==r?.id&&r.id===t.i})||s.shift();return e.map((t,e)=>{if("string"==typeof t)return m(c.Fragment,{children:t},`string_${e}`);if(Nn(t))return m(c.Fragment,{children:n({variableType:t.v||"v",variableValue:o[t.k],variableOptions:i[t.k],locales:r,injectionType:a[t.k]||"manual"})},`var_${e}`);const s=u(t);return s?m(c.Fragment,{children:ni({sourceElement:s,targetElement:t,locales:r,renderVariable:n})},`element_${e}`):null})}if(e&&"object"==typeof e&&!Array.isArray(e)){const o=Nn(e)?"variable":"element";if(c.isValidElement(t)){if("element"===o)return ni({sourceElement:t,targetElement:e,locales:r,renderVariable:n});if(Qo(t.props)){const{variableValue:e,variableOptions:o,variableType:i,injectionType:a}=ti(t.props);return n({variableType:i,variableValue:e,variableOptions:o,locales:r,injectionType:a})}}}return ri({children:t,defaultLocale:r[0],renderVariable:n})}const ii="generaltranslation.locale";var ai=function(){return ai=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ai.apply(this,arguments)};function si(t){if(void 0!==t){if(null===t)return"null";if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(var e="[",r=0;r<t.length;r++)r&&(e+=","),e+=si(t[r])||"null";return e+"]"}for(var n="",o=0,i=Object.keys(t).sort();o<i.length;o++){var a=i[o],s=si(t[a]);s&&(n&&(n+=","),n+=JSON.stringify(a)+":"+s)}return"{"+n+"}"}}function ci(t){var e;return null!==(e=si(t))&&void 0!==e?e:""}function ui(t){return function(t){if(Tr(t),Sr)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=Ar[t[r]];return e}(Dr(function(t){if("string"!=typeof t)throw new TypeError("string expected");return new Uint8Array((new TextEncoder).encode(t))}(t))).slice(0,16)}"function"==typeof SuppressedError&&SuppressedError;var li=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=hi(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],hi(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?ai({k:t.k},t.v&&{v:t.v}):e}return t};function hi(t){return Array.isArray(t)?t.map(li):li(t)}var fi=function(t,e){return fi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},fi(t,e)};function pi(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}fi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var di,gi,mi,yi=function(){return yi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},yi.apply(this,arguments)};function vi(t,e,r,n){return new(r||(r=Promise))(function(e,o){function i(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(t){t(n)})).then(i,a)}s((n=n.apply(t,[])).next())})}function bi(t,e){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=e.call(t,i)}catch(t){s=[6,t],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,(mi=di||(di={})).GT_REMOTE="gt-remote",mi.REMOTE="remote",mi.CUSTOM="custom",mi.DISABLED="disabled",function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(gi||(gi={})),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}pi(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]}}(function(){});var Ei=function(){function t(t,e){this.cache={},this.fallbackPromises={},this.cache=structuredClone(t),this.onHit=null==e?void 0:e.onHit,this.onMiss=null==e?void 0:e.onMiss}return t.prototype.setCache=function(t,e){this.cache[t]=e},t.prototype.getCache=function(t){var e=this.genKey(t);return this.cache[e]},t.prototype.getInternalCache=function(){return this.cache},t.prototype.missCache=function(t){return vi(this,0,void 0,function(){var e,r,n;return bi(this,function(o){switch(o.label){case 0:return e=this.genKey(t),void 0===this.fallbackPromises[e]?[3,2]:[4,this.fallbackPromises[e]];case 1:return[2,o.sent()];case 2:r=this.fallback(t),this.fallbackPromises[e]=r,o.label=3;case 3:return o.trys.push([3,,5,6]),[4,r];case 4:return n=o.sent(),this.cache[e]=n,[2,n];case 5:return delete this.fallbackPromises[e],[7];case 6:return[2]}})})},t}();function _i(t,e){return function(t,e){var r,n=t.source,o=t.context,i=t.id,a=t.maxChars,s=t.dataFormat;return void 0===e&&(e=ui),r="JSX"===s?hi(n):n,e(ci(ai(ai(ai(ai({source:r},i&&{id:i}),o&&{context:o}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s})))}(yi(yi(yi(yi({source:"ICU"===e.$format?Go(t):t},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),"$maxChars"in e&&null!=e.$maxChars&&{$maxChars:Math.abs(e.$maxChars)}),{dataFormat:e.$format}))}var Ti=function(t){function e(e){var r=e.init,n=e.translateMany,o=e.lifecycle,i=t.call(this,r,o)||this;return i._queue=[],i._batchTimer=null,i._activeRequests=0,i._translateMany=n,i}return pi(e,t),e.prototype.get=function(t){var e=this.getCache(t);return null!=e&&this.onHit&&this.onHit({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:e}),e},e.prototype.miss=function(t){return vi(this,0,void 0,function(){var e;return bi(this,function(r){switch(r.label){case 0:return[4,this.missCache(t)];case 1:return null!=(e=r.sent())&&this.onMiss&&this.onMiss({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:e}),[2,e]}})})},e.prototype.genKey=function(t){return _i(t.message,t.options)},e.prototype.fallback=function(t){var e=this._enqueueTranslation(t);return this._queue.length>=25?this._flushNow():this._scheduleBatch(),e},e.prototype._flushNow=function(){this._batchTimer&&(clearTimeout(this._batchTimer),this._batchTimer=null),this._drainQueue()},e.prototype._scheduleBatch=function(){var t=this;this._batchTimer||(this._batchTimer=setTimeout(function(){t._batchTimer=null,t._drainQueue()},50))},e.prototype._drainQueue=function(){for(;this._queue.length>0&&this._activeRequests<100;){var t=this._queue.splice(0,25);this._sendBatchRequest(t)}this._queue.length>0&&this._scheduleBatch()},e.prototype._enqueueTranslation=function(t){var e=this,r=this.genKey(t),n=t.options;return new Promise(function(o,i){e._queue.push({key:r,source:t.message,metadata:yi(yi(yi(yi({},(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(t){return o(t)},reject:i})})},e.prototype._sendBatchRequest=function(t){return vi(this,0,void 0,function(){var e,r;return bi(this,function(n){switch(n.label){case 0:return this._activeRequests++,e=function(t){return t.reduce(function(t,e){return t[e.key]={source:e.source,metadata:e.metadata},t},{})}(t),[4,this._sendBatchRequestWithErrorHandling(t,e)];case 1:return(r=n.sent())&&this._handleTranslationResponse(t,r),this._activeRequests--,[2]}})})},e.prototype._sendBatchRequestWithErrorHandling=function(t,e){return vi(this,0,void 0,function(){var r,n,o;return bi(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._translateMany(e)];case 1:return[2,i.sent()];case 2:for(r=i.sent(),n=0,o=t;n<o.length;n++)o[n].reject(r);return[2,void 0];case 3:return[2]}})})},e.prototype._handleTranslationResponse=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r],i=o.key,a=e[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)}},e}(Ei);function Hi({defaultLocale:t,locales:e,customMapping:r,localeCookieName:n=ii,getLocale:o}){if(o){const n=o(),i=a(n,e,r);return i||(console.warn((({customLocale:t,defaultLocale:e})=>`${v} Warning: Custom getLocale() function returned an unsupported locale: "${t}". Falling back to default locale: "${e}".`)({customLocale:n,defaultLocale:t})),t)}const i=[],s=function({cookieName:t}){var e;if("undefined"==typeof document)return;return null===(e=document.cookie.split("; ").find(e=>e.startsWith(`${t}=`)))||void 0===e?void 0:e.split("=")[1]}({cookieName:n});s&&i.push(s);const c=(null===navigator||void 0===navigator?void 0:navigator.languages)||[];return i.push(...c),a(i,e,r)||t}!function(t){function e(e){var r=e.init,n=void 0===r?{}:r,o=e.ttl,i=e.loadTranslations,a=e.createTranslateMany,s=e.lifecycle,c=s.onLocalesCacheHit,u=s.onLocalesCacheMiss,l=s.onTranslationsCacheHit,h=s.onTranslationsCacheMiss,f=t.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}pi(e,t),e.prototype.get=function(t){var e=this.getCache(t);if(e&&!(e.expiresAt>0&&e.expiresAt<Date.now())){var r=e.translationsCache;return null!=r&&this.onHit&&this.onHit({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:r}),r}},e.prototype.miss=function(t){return vi(this,0,void 0,function(){var e,r;return bi(this,function(n){switch(n.label){case 0:return[4,this.missCache(t)];case 1:return e=n.sent(),null!=(r=e.translationsCache)&&this.onMiss&&this.onMiss({inputKey:t,cacheKey:this.genKey(t),cacheValue:e,outputValue:r}),[2,r]}})})},e.prototype.genKey=function(t){return t},e.prototype.fallback=function(t){return vi(this,0,void 0,function(){var e,r,n,o;return bi(this,function(i){switch(i.label){case 0:return e=this._translationLoader(t),r=this.ttl<0?this.ttl:Date.now()+this.ttl,n=Ti.bind,o={},[4,e];case 1:return[2,{translationsCache:new(n.apply(Ti,[void 0,(o.init=i.sent(),o.lifecycle=this._createTranslationsCacheLifecycle(t),o.translateMany=this._createTranslateMany(t),o)])),expiresAt:r}]}})})},e.prototype._createTranslationsCacheLifecycle=function(t){var e=this;return{onHit:this._onTranslationsCacheHit?function(r){return e._onTranslationsCacheHit(yi({locale:t},r))}:void 0,onMiss:this._onTranslationsCacheMiss?function(r){return e._onTranslationsCacheMiss(yi({locale:t},r))}:void 0}}}(Ei),"function"==typeof SuppressedError&&SuppressedError;class Bi extends nr{constructor({defaultLocale:t,locales:e,customMapping:r,getLocale:n,localeCookieName:o=ii}={}){super(),this.type="browser-i18n-storage-adapter",this.defaultLocale=t,this.locales=e,this.customMapping=r,this.getLocale=n,this.localeCookieName=o}setConfig(t){this.defaultLocale||(this.defaultLocale=t.defaultLocale),this.locales||(this.locales=t.locales),this.customMapping||(this.customMapping=t.customMapping),this.getLocale||(this.getLocale=t.getLocale)}getItem(t){if("locale"===t){return Hi({defaultLocale:this.defaultLocale||K,locales:this.locales||[K],customMapping:this.customMapping,getLocale:this.getLocale,localeCookieName:this.localeCookieName})}}setItem(t,e){"locale"===t&&function({cookieName:t,value:e}){"undefined"!=typeof document&&(document.cookie=`${t}=${e};path=/`)}({cookieName:this.localeCookieName,value:e})}removeItem(t){}}const wi={updateHtmlLangTag:!0,updateHtmlDirTag:!0},Li=new Map;class Si{constructor({locale:t,projectId:e,init:r,maxSize:n,ttl:o,purgeInterval:i}){this._writeBuffer={},this._flushTimer=null,this._estimatedSize=0,this._storageKey=`gt:tx:${e}:${t}`,this._purgeTimestampKey=`gt:tx:purge:${e}:${t}`,this._maxSize=null!=n?n:1e6,this._ttl=null!=o?o:864e5,this._purgeInterval=null!=i?i:3e5,r&&this.initStorage(r),Li.has(this._storageKey)&&clearInterval(Li.get(this._storageKey));const a=setInterval(()=>this._backgroundPurge(),this._purgeInterval);Li.set(this._storageKey,a)}getInternalCache(){const t=Date.now(),e=this._readFromStorage(),r={};for(const[n,o]of Object.entries(e))o.exp>t&&(r[n]=o.t);return Object.assign(r,this._writeBuffer),r}write(t,e){this._writeBuffer[t]=e,this._scheduleFlush()}purge(t){const e=this._readFromStorage();for(const r of t)delete e[r];this._writeRaw(JSON.stringify(e))}_scheduleFlush(){this._flushTimer||(this._flushTimer=setTimeout(()=>{this._flushTimer=null,this._flush()},500))}_flush(){if(0!==Object.keys(this._writeBuffer).length){try{const t=this._readFromStorage(),e=Date.now();this._estimatedSize>this._maxSize&&this._purgeCache(t,e);const r=e+this._ttl;for(const[e,n]of Object.entries(this._writeBuffer))t[e]={t:n,exp:r};this._writeRaw(JSON.stringify(t))}catch(t){}this._writeBuffer={}}}_purgeCache(t,e){const r=Object.keys(t);if(0===r.length)return;const n=this._estimatedSize/r.length;Ai(t,e);const o=.8*this._maxSize,i=Math.floor(o/n),a=Object.entries(t);if(a.length>i){a.sort((t,e)=>t[1].exp-e[1].exp);const e=a.length-i;for(let r=0;r<e;r++)delete t[a[r][0]]}}_backgroundPurge(){try{const t=localStorage.getItem(this._purgeTimestampKey),e=t?parseInt(t,10):0,r=Date.now();if(r-e<this._purgeInterval)return;const n=this._readFromStorage(),o=Object.keys(n).length;Ai(n,r),Object.keys(n).length<o&&this._writeRaw(JSON.stringify(n)),localStorage.setItem(this._purgeTimestampKey,String(r))}catch(t){}}_readFromStorage(){try{const t=localStorage.getItem(this._storageKey);return t?(this._estimatedSize=t.length,JSON.parse(t)):(this._estimatedSize=0,{})}catch(t){return this._estimatedSize=0,{}}}initStorage(t){try{const e=this._readFromStorage(),r=Date.now()+this._ttl;for(const[n,o]of Object.entries(t))e[n]={t:o,exp:r};this._writeRaw(JSON.stringify(e))}catch(t){}}_writeRaw(t){try{localStorage.setItem(this._storageKey,t),this._estimatedSize=t.length}catch(t){}}}function Ai(t,e=Date.now()){for(const r of Object.keys(t))t[r].exp<=e&&delete t[r]}class Pi extends lr{constructor(t){var e,r,n;const o={},i=Ii(null===(n=null===(r=null===(e=t.files)||void 0===e?void 0:e.gt)||void 0===r?void 0:r.parsingFlags)||void 0===n?void 0:n.devHotReload);super(Object.assign(Object.assign({},t),Mi(t)&&function(t,e,r){return{loadTranslations:Ci(t,e,r),lifecycle:Oi(e,r)}}(t.loadTranslations,t.projectId,o))),this._devHotReloadJsx=!1,this._localStorageCaches=o,this._devHotReloadJsx=Mi(t)&&i.jsx,this.storeAdapter.setConfig({defaultLocale:this.getDefaultLocale(),locales:this.getLocales(),customMapping:t.customMapping}),this.htmlTagOptions=Object.assign(Object.assign({},wi),t.htmlTagOptions)}isDevHotReloadJsx(){return this._devHotReloadJsx}getLocale(){return this.storeAdapter.getItem("locale")||this.config.defaultLocale}setLocale(t){a(t,this.getLocales())?(this.storeAdapter.setItem("locale",t),window.location.reload()):console.warn(T(t))}getLocalStorageTranslationCache(t,e){if(import.meta.env.DEV)return this._localStorageCaches[t]||(this._localStorageCaches[t]=new Si({locale:t,projectId:this.config.projectId,init:e})),this._localStorageCaches[t]}updateHtmlTag(t){const e=(null==t?void 0:t.lang)||this.getLocale(),r=this.getGTClass(),n=r.resolveCanonicalLocale(e),o=(null==t?void 0:t.dir)||r.getLocaleDirection(e);if(!r.isValidLocale(n))return void console.warn(T(e));const i=Object.assign(Object.assign({},this.htmlTagOptions),t);i.updateHtmlLangTag&&(document.documentElement.lang=n),i.updateHtmlDirTag&&(document.documentElement.dir=o)}}function Ci(t,e,r){return n=>B(this,void 0,void 0,function*(){const o=yield t(n);return r[n]||(r[n]=new Si({locale:n,projectId:e,init:o})),r[n].getInternalCache()})}function Oi(t,e){return{onTranslationsCacheMiss:({locale:r,hash:n,value:o})=>{const i=e[r];i?i.write(n,o):e[r]=new Si({locale:r,projectId:t,init:{[n]:o}})}}}function Ii(t){var e,r;return void 0===t||"boolean"==typeof t?{strings:!!t,jsx:!!t}:{strings:null!==(e=t.strings)&&void 0!==e&&e,jsx:null!==(r=t.jsx)&&void 0!==r&&r}}function Mi(t){var e,r,n;const o={environment:!!import.meta.env.DEV,customLoadTranslations:!!t.loadTranslations,projectId:!!t.projectId,devApiKey:!!t.devApiKey},i=Object.values(o).every(Boolean),a=Ii(null===(n=null===(r=null===(e=t.files)||void 0===e?void 0:e.gt)||void 0===r?void 0:r.parsingFlags)||void 0===n?void 0:n.devHotReload),s=a.strings||a.jsx;if(import.meta.env.DEV&&s&&!i){const t=Object.keys(o).filter(t=>!o[t]);console.warn(`Dev hot reload is enabled, but the requirements are not met: ${t.join(", ")}`)}return i&&s}function Ri(t){!function(t){hr=t}(new Pi(Object.assign(Object.assign({},t),{storeAdapter:new Bi({getLocale:t.getLocale})})))}function Ni(){const t=fr();if(!function(t){return t instanceof Pi}(t))throw new Error(_);return t}function Ui(t){return B(this,void 0,void 0,function*(){Ri(t);const e=Ni();e.updateHtmlTag(),yield e.loadTranslations()})}function Di(t){var{children:e,branch:r}=t,n=H(t,["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]:e}function ji(t){return Di(t)}function Gi(){return Ni().getLocale()}function ki(){return Ni().getLocales()}function xi(t){return Ni().setLocale(t)}function Fi(){return Ni().getDefaultLocale()}function Vi(t){var{children:e,n:r,locales:n}=t,o=H(t,["children","n","locales"]);const i=[...n?[n]:[],Gi(),Fi()];return"number"!=typeof r?e:zo(r,i,o)||e}function Ki(t){return Vi(t)}function $i({children:t}){return t}function Xi({children:t}){return t}Di._gtt="branch",ji._gtt="branch-automatic",Vi._gtt="plural",Ki._gtt="plural-automatic",$i._gtt="derive",Xi._gtt="derive-automatic";const Yi=(t,...e)=>{var r;return"undefined"==typeof window&&console.warn(`${v} Warning: Translation failed for t("${"string"==typeof(r=t)?r:"`"+(null==r?void 0:r.join("${}"))+"`"}") because it was used outside of a browser environment. Falling back to original message.`),"string"==typeof t?_r(t,e.at(0)):function(t,e){const r=function(t,e){return t.map((t,r)=>{var n;return t+(null!==(n=e[r])&&void 0!==n?n:"")}).join("")}(t,e),n=Er(r);if(n)return n;const{message:o,variables:i}=function(t,e){const r=[],n={};let o=0;for(let i=0;i<t.length;i++)if(r.push(t[i]),i<e.length){const t=o.toString();r.push(`{${t}}`),n[t]=e[i],o++}return{message:r.join(""),variables:n}}(t,e);return _r(o,i)}(t,e)};const qi=(t,e)=>function(t,e){return Ye(this,void 0,void 0,function(){return qe(this,function(r){return[2,vr(t,Xe({$format:"STRING"},e))]})})}(t,Object.assign({$format:"ICU"},e)),Wi=(t,e)=>yr(t,Object.assign({$format:"JSX"},e));function Ji({children:t,options:e={},locales:r=[]}){if(null==t)return null;const n="string"==typeof t?parseFloat(t):t,o=[...r,Gi(),Fi()];return Ni().getGTClass().formatNum(n,Object.assign({locales:o},e))}function Zi(t){return Ji(t)}function zi({children:t}){return t}function Qi({children:t}){return zi({children:t})}function ta({children:t}){return zi({children:t})}function ea({children:t,currency:e="USD",options:r={},locales:n=[]}){if(null==t)return null;const o="string"==typeof t?parseFloat(t):t,i=[...n,Gi(),Fi()];return Ni().getGTClass().formatCurrency(o,e,Object.assign({locales:i},r))}function ra(t){return ea(t)}function na({children:t,options:e={},locales:r=[]}){if(null==t)return null;const n=[...r,Gi(),Fi()];return Ni().getGTClass().formatDateTime(t,Object.assign({locales:n},e)).replace(/[\u200F\u202B\u202E]/g,"")}function oa(t){return na(t)}Ji._gtt="variable-number-automatic",Zi._gtt="variable-number",ta._gtt="variable-variable",Qi._gtt="variable-variable-automatic",ea._gtt="variable-currency-automatic",ra._gtt="variable-currency",na._gtt="variable-datetime-automatic",oa._gtt="variable-datetime";const ia=({variableType:t,variableValue:e,variableOptions:r,injectionType:n})=>{switch(t){case"n":return m("automatic"===n?Zi:Ji,{options:r,children:e});case"d":return m("automatic"===n?oa:na,{options:r,children:e});case"c":return m("automatic"===n?ra:ea,{options:r,children:e});default:return"automatic"===n?zi({children:e}):m(ta,{children:e})}};function aa(t){return ca(t)}function sa(t){return ca(t)}function ca(t){var{children:e}=t,r=H(t,["children"]);const{taggedSourceChildren:n,sourceJsxChildren:o,renderSourceChildren:i,options:a}=function({sourceChildren:t,params:e}){const r=p(()=>Vo(function(t){return $o(t,0)}(t)),[t]),n=p(()=>Zo(r),[r]),o=d(()=>ri({children:r,defaultLocale:Gi(),renderVariable:ia}),[r]),i=p(()=>{return t=e,Object.assign({$format:"JSX",$context:t.context,$id:t.id,$_hash:t._hash},t);var t},[e.context,e.id,e._hash,e.$format,e.$context,e.$id,e.$_hash]);return{taggedSourceChildren:r,sourceJsxChildren:n,renderSourceChildren:o,options:i}}({sourceChildren:e,params:r}),c=Gi(),u=Fi();if(!s(u,c))return i();const l=function(t,e){var r=br(e,"JSX");return fr().lookupTranslation(t,r)}(o,a);return l?oi({source:n,target:l,locales:[c],renderVariable:ia}):Ni().isDevHotReloadJsx()?m(f,{fallback:i(),children:m(ua,{sourceJsxChildren:o,taggedSourceChildren:n,options:a,targetLocale:c})}):i()}function ua({sourceJsxChildren:t,taggedSourceChildren:e,options:r,targetLocale:n}){return oi({source:e,target:g(yr(t,r)),locales:[n],renderVariable:ia})}function la({date:t,children:e,value:r,unit:n,baseDate:o,locales:i=[],options:a={}}){const s=Ni().getGTClass(),c=[...i,Gi(),Fi()],u=null!=t?t:e;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 ha(t){return la(t)}function fa(){return Ni().getVersionId()}function pa(t){Ni().updateHtmlTag({lang:t,updateHtmlLangTag:!0,updateHtmlDirTag:!1})}function da(t){Ni().updateHtmlTag({dir:t,updateHtmlLangTag:!1,updateHtmlDirTag:!0})}function ga(t){if(!t)return;const e={};for(const r in t)e[r]={name:t[r]};return e}function ma(t){var{locale:e,locales:r,customNames:n,customMapping:o=ga(n),setLocale:i,getLocaleProperties:a}=t,s=H(t,["locale","locales","customNames","customMapping","setLocale","getLocaleProperties"]);const c=t=>{if(o&&o[t]){if("string"==typeof o[t])return o[t];if(o[t].name)return o[t].name}return(e=a(t).nativeNameWithRegionCode)?e.charAt(0).toUpperCase()+(e.length>1?e.slice(1):""):"";var e};return r&&0!==r.length&&i?y("select",Object.assign({},s,{value:e||"",onChange:t=>i(t.target.value),children:[!e&&m("option",{value:""}),r.map(t=>m("option",{value:t,suppressHydrationWarning:!0,children:c(t)},t))]})):null}function ya(t){var{locales:e}=t,r=H(t,["locales"]);const{sortedLocales:n,setLocale:o,locale:i,getLocaleProperties:a}=p(()=>{const t=Ni(),r=t.getGTClass(),n=t.getLocale(),o=e=>{t.setLocale(e)},i=t=>r.getLocaleProperties(t);if(e)return{locale:n,setLocale:o,sortedLocales:e,getLocaleProperties:i};const a=t.getLocales().sort((t,e)=>(new Intl.Collator).compare(r.getLocaleProperties(t).nativeNameWithRegionCode,r.getLocaleProperties(e).nativeNameWithRegionCode));return{locale:n,sortedLocales:a,setLocale:o,getLocaleProperties:i}},[e]);return m(ma,Object.assign({locale:i,locales:n,setLocale:o,getLocaleProperties:a},r))}sa._gtt="translate-client",aa._gtt="translate-client-automatic",la._gtt="variable-relative-time-automatic",ha._gtt="variable-relative-time",function(t=E){if("undefined"==typeof window)throw new Error(t)}(b);export{Di as Branch,ra as Currency,oa as DateTime,$i as Derive,ji as GtInternalBranch,ea as GtInternalCurrency,na as GtInternalDateTime,Xi as GtInternalDerive,Ji as GtInternalNum,Ki as GtInternalPlural,la as GtInternalRelativeTime,Wi as GtInternalRuntimeTranslateJsx,qi as GtInternalRuntimeTranslateString,aa as GtInternalTranslateJsx,Qi as GtInternalVar,ya as LocaleSelector,Zi as Num,Vi as Plural,ha as RelativeTime,sa as T,ta as Var,Ui as bootstrap,Fi as getDefaultLocale,Gi as getLocale,ki as getLocales,fa as getVersionId,Ri as initializeGT,xi as setLocale,Yi as t,da as updateHtmlTagDir,pa as updateHtmlTagLang};
1
+ import{formatCutoff as e,formatMessage as t,GT as r,isValidLocale as n,standardizeLocale as o,resolveCanonicalLocale as i,determineLocale as a,requiresTranslation as s}from"generaltranslation";import c,{Children as l,isValidElement as u,cloneElement as h,Suspense as f,useMemo as p,useCallback as d,use as g}from"react";import{jsx as m,jsxs as y}from"react/jsx-runtime";const _="gt-react",b=`${_}/browser Error: The ${_}/browser module requires a browser environment`,E=`${_} Error: You are trying to import a browser-only module into a non-browser environment.`,v=`${_} Error: BrowserI18nManager not initialized. Invoke initializeGT() to initialize.`,T=e=>`${_} Warning: "${e}" is not a valid locale.`;var L=function(e,t){return L=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])},L(e,t)};function w(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}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var A=function(){return A=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},A.apply(this,arguments)};function S(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 O(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 C(e,t){return function(r,n){t(r,n,e)}}function P(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 H(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 I(e){return"symbol"==typeof e?e:"".concat(e)}function N(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 B(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function R(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 M(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 j=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 U(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||j(t,e,r)}function D(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 G(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 k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(G(arguments[t]));return e}function x(){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 F(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 V(e){return this instanceof V?(this.v=e,this):new V(e)}function $(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 V?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 K(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:V(e[n](t)),done:!1}:o?o(t):t}:o}}function X(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=D(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 Y(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var q=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},W=function(e){return W=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},W(e)};function z(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=W(e),n=0;n<r.length;n++)"default"!==r[n]&&j(t,e,r[n]);return q(t,e),t}function J(e){return e&&e.__esModule?e:{default:e}}function Z(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 Q(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 ee(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 te(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 re="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 ne(e){function t(t){e.error=e.hasError?new re(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 oe(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 ie,ae,se,ce={__extends:w,__assign:A,__rest:S,__decorate:O,__param:C,__esDecorate:P,__runInitializers:H,__propKey:I,__setFunctionName:N,__metadata:B,__awaiter:R,__generator:M,__createBinding:j,__exportStar:U,__values:D,__read:G,__spread:k,__spreadArrays:x,__spreadArray:F,__await:V,__asyncGenerator:$,__asyncDelegator:K,__asyncValues:X,__makeTemplateObject:Y,__importStar:z,__importDefault:J,__classPrivateFieldGet:Z,__classPrivateFieldSet:Q,__classPrivateFieldIn:ee,__addDisposableResource:te,__disposeResources:ne,__rewriteRelativeImportExtension:oe},le=Object.freeze({__proto__:null,__addDisposableResource:te,get __assign(){return A},__asyncDelegator:K,__asyncGenerator:$,__asyncValues:X,__await:V,__awaiter:R,__classPrivateFieldGet:Z,__classPrivateFieldIn:ee,__classPrivateFieldSet:Q,__createBinding:j,__decorate:O,__disposeResources:ne,__esDecorate:P,__exportStar:U,__extends:w,__generator:M,__importDefault:J,__importStar:z,__makeTemplateObject:Y,__metadata:B,__param:C,__propKey:I,__read:G,__rest:S,__rewriteRelativeImportExtension:oe,__runInitializers:H,__setFunctionName:N,__spread:k,__spreadArray:F,__spreadArrays:x,__values:D,default:ce});function ue(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+=ue(e[r])||"null";return t+"]"}const t=Object.keys(e).sort();let r="";for(const n of t){const t=ue(e[n]);t&&(r&&(r+=","),r+=JSON.stringify(n)+":"+t)}return"{"+r+"}"}function he(e){return ue(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"}(ie||(ie={})),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"}(ae||(ae={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(se||(se={}));var fe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,pe=/(?:[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 de(e){var t={};return e.replace(pe,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 ge=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function me(e){return e.replace(/^(.*?)-/,"")}var ye=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_e=/^(@+)?(\+|#+)?[rs]?$/g,be=/(\*)(0+)|(#+)(0+)|(0+)/g,Ee=/^(0+)$/;function ve(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(_e,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 Te(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 Le(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)),!Ee.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function we(e){var t=Te(e);return t||{}}function Ae(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=me(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=A(A(A({},t),{notation:"scientific"}),o.options.reduce(function(e,t){return A(A({},e),we(t))},{}));continue;case"engineering":t=A(A(A({},t),{notation:"engineering"}),o.options.reduce(function(e,t){return A(A({},e),we(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(be,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(Ee.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(ye.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ye,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=A(A({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=A(A({},t),ve(i)))}else if(_e.test(o.stem))t=A(A({},t),ve(o.stem));else{var a=Te(o.stem);a&&(t=A(A({},t),a));var s=Le(o.stem);s&&(t=A(A({},t),s))}}return t}var Se,Oe={"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 Ce(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),(Oe[r||""]||Oe[n||""]||Oe["".concat(n,"-001")]||Oe["001"])[0]}var Pe=new RegExp("^".concat(fe.source,"*")),He=new RegExp("".concat(fe.source,"*$"));function Ie(e,t){return{start:e,end:t}}var Ne=!!String.prototype.startsWith&&"_a".startsWith("a",1),Be=!!String.fromCodePoint,Re=!!Object.fromEntries,Me=!!String.prototype.codePointAt,je=!!String.prototype.trimStart,Ue=!!String.prototype.trimEnd,De=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ge=!0;try{Ge="a"===(null===(Se=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Se?void 0:Se[0])}catch(gr){Ge=!1}var ke,xe=Ne?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Fe=Be?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},Ve=Re?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},$e=Me?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}},Ke=je?function(e){return e.trimStart()}:function(e){return e.replace(Pe,"")},Xe=Ue?function(e){return e.trimEnd()}:function(e){return e.replace(He,"")};function Ye(e,t){return new RegExp(e,t)}if(Ge){var qe=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ke=function(e,t){var r;return qe.lastIndex=t,null!==(r=qe.exec(e)[1])&&void 0!==r?r:""}}else ke=function(e,t){for(var r=[];;){var n=$e(e,t);if(void 0===n||Ze(n)||Qe(n))break;r.push(n),t+=n>=65536?2:1}return Fe.apply(void 0,r)};var We=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(ie.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ze(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:ae.pound,location:Ie(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:ae.literal,value:"<".concat(n,"/>"),location:Ie(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()||!ze(this.char()))return this.error(ie.INVALID_TAG,Ie(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(ie.UNMATCHED_CLOSING_TAG,Ie(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ae.tag,value:n,children:i,location:Ie(r,this.clonePosition())},err:null}:this.error(ie.INVALID_TAG,Ie(a,this.clonePosition())))}return this.error(ie.UNCLOSED_TAG,Ie(r,this.clonePosition()))}return this.error(ie.INVALID_TAG,Ie(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=Ie(r,this.clonePosition());return{val:{type:ae.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ze(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 Fe.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(),Fe(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ie.EMPTY_ARGUMENT,Ie(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ie.MALFORMED_ARGUMENT,Ie(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ae.argument,value:n,location:Ie(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ie.MALFORMED_ARGUMENT,Ie(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ke(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Ie(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(ie.EXPECT_ARGUMENT_TYPE,Ie(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=Xe(y.val)).length)return this.error(ie.EXPECT_ARGUMENT_STYLE,Ie(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:Ie(l,this.clonePosition())}}if((_=this.tryParseArgumentClose(n)).err)return _;var u=Ie(n,this.clonePosition());if(c&&xe(null==c?void 0:c.style,"::",0)){var h=Ke(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(h,c.styleLocation)).err?y:{val:{type:ae.number,value:r,location:u,style:y.val},err:null};if(0===h.length)return this.error(ie.EXPECT_DATE_TIME_SKELETON,u);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=Ce(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:se.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?de(f):{}};return{val:{type:"date"===a?ae.date:ae.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===a?ae.number:"date"===a?ae.date:ae.time,value:r,location:u,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(ie.EXPECT_SELECT_ARGUMENT_OPTIONS,Ie(d,A({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ie(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(ie.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ie.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=y.val}var _,b=this.tryParsePluralOrSelectOptions(e,a,t,g);if(b.err)return b;if((_=this.tryParseArgumentClose(n)).err)return _;var E=Ie(n,this.clonePosition());return"select"===a?{val:{type:ae.select,value:r,options:Ve(b.val),location:E},err:null}:{val:{type:ae.plural,value:r,options:Ve(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(ie.INVALID_ARGUMENT_TYPE,Ie(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ie.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(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(ie.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ie(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(ge).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(ie.INVALID_NUMBER_SKELETON,t)}return{val:{type:se.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ae(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(ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,ie.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=Ie(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}if(s.has(c))return this.error("select"===t?ie.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ie.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ie.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ie(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:Ie(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,l=o.location}return 0===a.length?this.error("select"===t?ie.EXPECT_SELECT_ARGUMENT_SELECTOR:ie.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ie(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ie.MISSING_OTHER_CLAUSE,Ie(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=Ie(n,this.clonePosition());return o?De(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=$e(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(xe(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()&&Ze(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 ze(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 Ze(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Qe(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 et(e){e.forEach(function(e){if(delete e.location,function(e){return e.type===ae.select}(e)||function(e){return e.type===ae.plural}(e))for(var t in e.options)delete e.options[t].location,et(e.options[t].value);else(function(e){return e.type===ae.number})(e)&&function(e){return!(!e||"object"!=typeof e||e.type!==se.number)}(e.style)?delete e.style.location:!function(e){return e.type===ae.date}(e)&&!function(e){return e.type===ae.time}(e)||!function(e){return!(!e||"object"!=typeof e||e.type!==se.dateTime)}(e.style)?function(e){return e.type===ae.tag}(e)&&et(e.children):delete e.style.location})}function tt(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 rt,nt={};function ot(){if(rt)return nt;var e,t;return rt=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.SKELETON_TYPE=nt.TYPE=void 0,nt.isLiteralElement=function(t){return t.type===e.literal},nt.isArgumentElement=function(t){return t.type===e.argument},nt.isNumberElement=function(t){return t.type===e.number},nt.isDateElement=function(t){return t.type===e.date},nt.isTimeElement=function(t){return t.type===e.time},nt.isSelectElement=function(t){return t.type===e.select},nt.isPluralElement=function(t){return t.type===e.plural},nt.isPoundElement=function(t){return t.type===e.pound},nt.isTagElement=function(t){return t.type===e.tag},nt.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},nt.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},nt.createLiteralElement=function(t){return{type:e.literal,value:t}},nt.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||(nt.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||(nt.SKELETON_TYPE=t={})),nt}var it,at=ot(),st={},ct=tt(le);var lt=function(){if(it)return st;it=1,Object.defineProperty(st,"__esModule",{value:!0}),st.printAST=r,st.doPrintAST=n,st.printDateTimeSkeleton=a;var e=ct,t=ot();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 st}();function ut(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 ht(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 ft(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function pt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function dt(e,t){return e<<32-t|e>>>t}const gt=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),mt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function yt(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 _t=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function bt(e,t,r){return e&t^~e&r}function Et(e,t,r){return e&t^e&r^t&r}class vt{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=pt(this.buffer)}update(e){ht(this),ut(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=pt(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){ht(this),function(e,t){ut(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,ft(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=pt(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 Tt=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Lt=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]),wt=new Uint32Array(64);class At extends vt{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)wt[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=wt[e-15],r=wt[e-2],n=dt(t,7)^dt(t,18)^t>>>3,o=dt(r,17)^dt(r,19)^r>>>10;wt[e]=o+wt[e-7]+n+wt[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+(dt(a,6)^dt(a,11)^dt(a,25))+bt(a,s,c)+Lt[e]+wt[e]|0,u=(dt(r,2)^dt(r,13)^dt(r,22))+Et(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(){ft(wt)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),ft(this.buffer)}}class St extends At{A=0|Tt[0];B=0|Tt[1];C=0|Tt[2];D=0|Tt[3];E=0|Tt[4];F=0|Tt[5];G=0|Tt[6];H=0|Tt[7];constructor(){super(32)}}const Ot=yt(()=>new St,_t(1)),Ct="en",Pt="https://cdn.gtx.dev";function Ht({icuString:e,shouldVisit:t,visitor:r,options:{recurseIntoVisited:n=!0,...o}}){const i=function(e,t){void 0===t&&(t={}),t=A({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new We(e,t).parse();if(r.err){var n=SyntaxError(ie[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||et(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===ae.select||e.type===ae.plural?Object.values(e.options).map(e=>e.value).map(a):e.type===ae.tag&&a(e.children))}}const It="_gt_",Nt=new RegExp(`^${It}\\d+$`),Bt=new RegExp(`^${It}$`);function Rt(e){return e.type===at.TYPE.select&&Nt.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&e.options.other.value[0]?.type===at.TYPE.literal)}function Mt(e){return e.type===at.TYPE.select&&Bt.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&e.options.other.value[0]?.type===at.TYPE.literal)}function jt(e){if(!e.includes("_gt_"))return e;const t=[];Ht({icuString:e,shouldVisit:Mt,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 Ut={warn(e){console.warn(e)},error(e){console.error(e)},info(e){console.info(e)},debug(e){console.debug(e)}};const Dt=e=>`String interpolation failed for message: "${e}".`;function Gt(r,n){if(!r)return r;const o=n.$_fallback,i=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))}(n);try{const s=function(e){if(!e.includes("_gt_"))return{};let t=1;const r={};return Ht({icuString:e,shouldVisit:Mt,visitor:function(e){r[e.value+t]=e.options.other.value.length?e.options.other.value[0]?.value:"",t+=1},options:{recurseIntoVisited:!1}}),r}(o||"");return e(function(e,r,n,o){try{return t(e,{variables:r,locales:n,dataFormat:o})}catch{return Ut.warn(Dt(e)),e}}(Object.keys(s).length?(a=r).includes("_gt_")?lt.printAST(Ht({icuString:a,shouldVisit:Rt,visitor:function(e){e.type=at.TYPE.argument,delete e.options},options:{recurseIntoVisited:!1}})):a:r,{...i,...s,[It]:"other"},n.$locale??n.$_locales,n.$format),{maxChars:n.$maxChars})}catch{return Ut.warn(Dt(r)),null!=n.$_fallback?Gt(n.$_fallback,{...n,$_fallback:void 0}):e(r,{maxChars:n.$maxChars})}var a}function kt(e){return function(e){if(ut(e),gt)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=mt[e[r]];return t}(Ot(function(e){if("string"!=typeof e)throw new TypeError("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e))).slice(0,16)}const xt=e=>{if(e&&"object"==typeof e){const t={};if("c"in e&&e.c&&(t.c=Ft(e.c)),"d"in e){const r=e?.d;r?.b&&(t.b=Object.fromEntries(Object.entries(r.b).map(([e,t])=>[e,Ft(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 Ft(e){return Array.isArray(e)?e.map(xt):xt(e)}function Vt(e){return e.loadTranslations?"custom":e.cacheUrl?"remote":void 0!==e.cacheUrl&&e.cacheUrl!==Pt||!e.projectId?"disabled":"gt-remote"}function $t(e){return void 0!==e.runtimeUrl&&"https://runtime2.gtx.dev"!==e.runtimeUrl||!e.projectId||!e.devApiKey&&!e.apiKey?e.runtimeUrl?"custom":"disabled":"gt"}function Kt(e){return"gt-remote"===Vt(e)||"gt"===$t(e)}function Xt(e){const t=[];return t.push(...function(e){const t=[],{projectId:r,loadTranslations:n}=e;switch(Vt(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}(e)),t.push(...function(e){const t=[];switch($t(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}(e)),t.push(...function(e){const t=[];if(!Kt(e))return t;const{defaultLocale:r,locales:o,customMapping:i}=e;return new Set([...r?[r]:[],...o||[]]).forEach(e=>{n(e,i)||t.push({type:"error",message:`Invalid locale: ${e}`})}),t}(e)),t}var Yt=class{};var qt=class extends Yt{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 Wt(e){const t=function(e){const{cacheUrl:t=Pt,projectId:r,_versionId:n,_branchId:o}=e;return`${t}/${r}/[locale]`+(n?`/${n}`:"")+(o?`?branchId=${o}`:"")}(e);return async r=>{r=i(r,e.customMapping);const n=t.replace("[locale]",r),o=await fetch(n);if(!o.ok)throw new Error(`Failed to load translations from ${n}`);return await o.json()}}var zt=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=kt){let a;return a="JSX"===o?Ft(e):e,i(he({source:a,...r&&{id:r},...t&&{context:t},...null!=n&&{maxChars:Math.abs(n)},...o&&{dataFormat:o}}))}({source:"ICU"===t.$format?jt(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 Zt=class extends zt{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 Qt=class extends zt{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 Zt({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 er({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 tr=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":Ut.error(t+e.message);break;case"warning":Ut.warn(t+e.message)}}),r&&e.some(e=>"error"===e.type))throw new Error("Validation errors occurred")}(Xt(e),"I18nManager: "),this.config=function(e){const t=Kt(e),r=function({defaultLocale:e,locales:t,customMapping:r}){return{defaultLocale:e,locales:Array.from(new Set([e,...t])),customMapping:r||{}}}({defaultLocale:e.defaultLocale||Ct,locales:e.locales||[Ct],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?rr(r):r}}(e),this.storeAdapter=e.storeAdapter??new qt;const t=function(e){return function({type:e,remoteTranslationLoaderParams:t,loadTranslations:r}){"disabled"===e&&Ut.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 Wt({cacheUrl:n||"",projectId:o||"",_versionId:i,_branchId:a,customMapping:s});case"custom":return r;case"disabled":return async e=>({})}}({loadTranslations:e.loadTranslations,type:Vt(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 Qt({loadTranslations:t,createTranslateMany:r,lifecycle:er(e.lifecycle??{})})}getAdapterType(){return this.storeAdapter.type}getLocale(){const e=this.storeAdapter.getItem("locale");return e||(Ut.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&&Ut.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;Ut.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(e){return new r({sourceLocale:this.config.defaultLocale,targetLocale:e,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 rr(e){return{defaultLocale:o(e.defaultLocale),locales:e.locales.map(t=>("string"==typeof e.customMapping?.[t]?e.customMapping?.[t]:e.customMapping?.[t]?.code)?t:o(t)),customMapping:Object.fromEntries(Object.entries(e.customMapping||{}).map(([e,t])=>[e,"string"==typeof t?o(t):{...t,...t.code?{code:o(t.code)}:{}}]))}}let nr;function or(){return nr||(Ut.warn("getI18nManager(): Translation failed because I18nManager not initialized."),nr=new tr({defaultLocale:Ct,locales:[Ct]})),nr}function ir(e){nr=e}function ar({source:e,target:t,options:r}){const n=or();return null!=t?sr(t,{$locale:n.getLocale(),$_fallback:e,...r}):sr(e,{$locale:n.getDefaultLocale(),...r})}function sr(t,r){switch(r.$format??"STRING"){case"ICU":return Gt(t,r);case"I18NEXT":case"STRING":return function(t,r){return e(t,{locales:r.$locale??r.$_locales,maxChars:r.$maxChars})}(t,r);default:return t}}async function cr(e,t){const r=lr(t,"JSX");return await or().lookupTranslationWithFallback(e,r)??e}function lr(e,t){return{$format:t,...e}}async function ur(e,t){return async function(e,t){const r=lr(t,"STRING");return ar({source:e,target:await or().lookupTranslationWithFallback(e,r),options:r})}(e,{$format:"STRING",...t})}const hr=(e,t={})=>function(e,t){const r=lr(t,"STRING"),n=or().lookupTranslation(e,r);if(null!=n)return ar({source:e,target:n,options:r})}(e,{$format:"ICU",...t}),fr=(e,t={})=>function(e,t){const r=lr(t,"STRING");return ar({source:e,target:or().lookupTranslation(e,r),options:r})}(e,{$format:"ICU",...t});function pr(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 dr=function(e,t){return dr=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])},dr(e,t)};function gr(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}dr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var mr=function(){return mr=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},mr.apply(this,arguments)};function yr(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 br(e,t){return function(r,n){t(r,n,e)}}function Er(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 vr(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 Tr(e){return"symbol"==typeof e?e:"".concat(e)}function Lr(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 wr(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Ar(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 Sr(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 Or=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 Cr(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Or(t,e,r)}function Pr(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 Hr(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 Ir(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hr(arguments[t]));return e}function Nr(){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 Br(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 Rr(e){return this instanceof Rr?(this.v=e,this):new Rr(e)}function Mr(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 Rr?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 jr(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:Rr(e[n](t)),done:!1}:o?o(t):t}:o}}function Ur(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Pr(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 Dr(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Gr=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},kr=function(e){return kr=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},kr(e)};function xr(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=kr(e),n=0;n<r.length;n++)"default"!==r[n]&&Or(t,e,r[n]);return Gr(t,e),t}function Fr(e){return e&&e.__esModule?e:{default:e}}function Vr(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 $r(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 Kr(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 Xr(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 Yr="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 qr(e){function t(t){e.error=e.hasError?new Yr(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 Wr(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 zr,Jr,Zr,Qr,en,tn={__extends:gr,__assign:mr,__rest:yr,__decorate:_r,__param:br,__esDecorate:Er,__runInitializers:vr,__propKey:Tr,__setFunctionName:Lr,__metadata:wr,__awaiter:Ar,__generator:Sr,__createBinding:Or,__exportStar:Cr,__values:Pr,__read:Hr,__spread:Ir,__spreadArrays:Nr,__spreadArray:Br,__await:Rr,__asyncGenerator:Mr,__asyncDelegator:jr,__asyncValues:Ur,__makeTemplateObject:Dr,__importStar:xr,__importDefault:Fr,__classPrivateFieldGet:Vr,__classPrivateFieldSet:$r,__classPrivateFieldIn:Kr,__addDisposableResource:Xr,__disposeResources:qr,__rewriteRelativeImportExtension:Wr},rn=Object.freeze({__proto__:null,__addDisposableResource:Xr,get __assign(){return mr},__asyncDelegator:jr,__asyncGenerator:Mr,__asyncValues:Ur,__await:Rr,__awaiter:Ar,__classPrivateFieldGet:Vr,__classPrivateFieldIn:Kr,__classPrivateFieldSet:$r,__createBinding:Or,__decorate:_r,__disposeResources:qr,__esDecorate:Er,__exportStar:Cr,__extends:gr,__generator:Sr,__importDefault:Fr,__importStar:xr,__makeTemplateObject:Dr,__metadata:wr,__param:br,__propKey:Tr,__read:Hr,__rest:yr,__rewriteRelativeImportExtension:Wr,__runInitializers:vr,__setFunctionName:Lr,__spread:Ir,__spreadArray:Br,__spreadArrays:Nr,__values:Pr,default:tn});(Qr=zr||(zr={}))[Qr.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Qr[Qr.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Qr[Qr.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Qr[Qr.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Qr[Qr.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Qr[Qr.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Qr[Qr.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Qr[Qr.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Qr[Qr.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Qr[Qr.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Qr[Qr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Qr[Qr.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Qr[Qr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Qr[Qr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Qr[Qr.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Qr[Qr.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Qr[Qr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Qr[Qr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Qr[Qr.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Qr[Qr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Qr[Qr.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Qr[Qr.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Qr[Qr.INVALID_TAG=23]="INVALID_TAG",Qr[Qr.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Qr[Qr.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Qr[Qr.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"}(Zr||(Zr={}));try{"a"===(null===(en=function(e,t){return new RegExp(e,t)}("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===en?void 0:en[0])}catch(Qr){0}var nn,on,an={};function sn(){return nn||(nn=1,Object.defineProperty(an,"__esModule",{value:!0}),an.SKELETON_TYPE=an.TYPE=void 0,an.isLiteralElement=function(t){return t.type===e.literal},an.isArgumentElement=function(t){return t.type===e.argument},an.isNumberElement=function(t){return t.type===e.number},an.isDateElement=function(t){return t.type===e.date},an.isTimeElement=function(t){return t.type===e.time},an.isSelectElement=function(t){return t.type===e.select},an.isPluralElement=function(t){return t.type===e.plural},an.isPoundElement=function(t){return t.type===e.pound},an.isTagElement=function(t){return t.type===e.tag},an.isNumberSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.number)},an.isDateTimeSkeleton=function(e){return!(!e||"object"!=typeof e||e.type!==t.dateTime)},an.createLiteralElement=function(t){return{type:e.literal,value:t}},an.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||(an.TYPE=e={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(t||(an.SKELETON_TYPE=t={}))),an;var e,t}sn();var cn={},ln=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}(rn);function un(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 hn(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 fn(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function pn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function dn(e,t){return e<<32-t|e>>>t}!function(){if(on)return cn;on=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.printAST=r,cn.doPrintAST=n,cn.printDateTimeSkeleton=a;var e=ln,t=sn();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 gn(e,t,r){return e&t^~e&r}function mn(e,t,r){return e&t^e&r^t&r}class yn{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=pn(this.buffer)}update(e){hn(this),un(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=pn(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){hn(this),function(e,t){un(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,fn(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=pn(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 _n=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),bn=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]),En=new Uint32Array(64);class vn extends yn{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)En[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=En[e-15],r=En[e-2],n=dn(t,7)^dn(t,18)^t>>>3,o=dn(r,17)^dn(r,19)^r>>>10;En[e]=o+En[e-7]+n+En[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+(dn(a,6)^dn(a,11)^dn(a,25))+gn(a,s,c)+bn[e]+En[e]|0,u=(dn(r,2)^dn(r,13)^dn(r,22))+mn(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(){fn(En)}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),fn(this.buffer)}}class Tn extends vn{A=0|_n[0];B=0|_n[1];C=0|_n[2];D=0|_n[3];E=0|_n[4];F=0|_n[5];G=0|_n[6];H=0|_n[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 Tn,(e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])}))(1));const Ln="en",wn="DEFAULT_TERMINATOR_KEY",An={ellipsis:{fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0},[wn]:{terminator:"…",separator:void 0}},none:{[wn]:{terminator:void 0,separator:void 0}}},Sn={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(!An[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=An[r][e]||An[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}}},On=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 Sn[e](...t),this.cache[e]||(this.cache[e]={}),this.cache[e][o]=i),i}},Cn=["singular","plural","dual","zero","one","two","few","many","other"];function Pn(e){return Cn.includes(e)}const Hn={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function In(e){return Hn[e]}function Nn(e,t=0){let r=t;function n(e){return u(e)?function(e){const{props:t}=e,n=(e=>{const{type:t,props:n}=e;r+=1;const o={id:r,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(n).reduce((e,[t,n])=>(Pn(t)&&(e[t]=Nn(n,r)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:t,...i}=n,a=Object.fromEntries(Object.entries(i).filter(([e])=>!e.startsWith("data-"))),s=Object.entries(a).reduce((e,[t,n])=>(e[t]=Nn(n,r),e),{});Object.keys(s).length&&(o.branches=s)}o.transformation=e[0]}return o})(e),i={...t,"data-_gt":n};return t.children&&!n.variableType&&(i.children=o(t.children)),e.type===c.Fragment&&(i["data-_gt"].transformation="fragment"),c.cloneElement(e,i)}(e):e}function o(e){return Array.isArray(e)?c.Children.map(e,n):n(e)}return o(e)}function Bn(e,t){return u(e)?function(e,t){const{type:r,props:n}=e,o=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"}}(r);if("object"!=typeof n||null===n)return e;if(o){const{componentType:r,injectionType:i}=o;if("variable"===r)return e;if("branch"===r){const r=Object.entries(n).reduce((e,[r,n])=>("branch"===r||r.startsWith("data-")?e[r]=n:e[r]=Bn(n,t),e),{});return h(e,{...r})}if("plural"===r){const r=Object.entries(n).reduce((e,[r,n])=>(Pn(r)||"children"===r?e[r]=Bn(n,t):e[r]=n,e),{});return h(e,{...r})}if("derive"===r)return h(e,{...n,..."children"in n&&{children:Rn(n.children,t+1)}});if("translate"===r&&"automatic"===i&&t>0)return"children"in n?Rn(n.children,t):void 0;"translate"===r&&"automatic"===i&&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 h(e,{...n,..."children"in n&&{children:Rn(n.children,t)}})}(e,t):e}function Rn(e,t){return Array.isArray(e)?l.map(e,e=>Bn(e,t)):Bn(e,t)}const Mn={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function jn(e={},t){return e.name?e.name:`_gt_${Mn[t]||"value"}_${e["data-_gt"]?.id}`}const Un={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"},Dn=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"},Gn=e=>{return t=e,c.isValidElement(t)?(e=>{const{props:t}=e,r={t:Dn(e)};if(t["data-_gt"]){const e=t["data-_gt"],n=e.transformation;if("variable"===n){const r=e.variableType||"variable",n=jn(t,r),o=In(r);return{i:e.id,k:n,v:o}}r.i=e.id,r.d=((e,t,r)=>{let n=Object.entries(Un).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]=kn(r)}),n={...n,b:e,t:"p"}}if("branch"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=kn(r)}),n={...n,b:e,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,e.branches);let o=Object.entries(Un).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]=kn(r)}),o={...o,b:t,t:"p"}}if("branch"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=kn(r)}),o={...o,b:t,t:"b"}}r.d=Object.keys(o).length?o:void 0}return t.children&&(r.c=kn(t.children)),r})(e):"number"==typeof e?e.toString():e;var t};function kn(e){return Array.isArray(e)?e.map(Gn):Gn(e)}function xn(e,t,r){let n="",o=null;return"number"==typeof e&&!o&&r&&(n=function(e,t=Cn,r=["en"]){const n=On.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 Fn(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 Vn(e){const t=e["data-_gt"]?.variableType||"variable";return{variableName:jn(e,t),variableType:In(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 $n(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Kn({children:e,defaultLocale:t=Ln,renderVariable:r}){const n=e=>c.isValidElement(e)?(e=>{const n=$n(e);if(Fn(e.props)){const{variableType:n,variableValue:o,variableOptions:i,injectionType:a}=Vn(e.props);return r({variableType:n,variableValue:o,variableOptions:i,locales:[t],injectionType:a})}if("plural"===n?.transformation){const r=n.branches||{};return o(xn(e.props.n,[t],r)||e.props.children)}if("branch"===n?.transformation){let{children:t,branch:r,"data-_gt":i,...a}=e.props;return a=n.branches||{},o(void 0!==a[r]?a[r]:t)}return"fragment"===n?.transformation?c.createElement(c.Fragment,{key:e.props.key,children:o(e.props.children)}):e.props.children?c.cloneElement(e,{...e.props,"data-_gt":void 0,children:o(e.props.children)}):c.cloneElement(e,{...e.props,"data-_gt":void 0})})(e):e,o=e=>Array.isArray(e)?c.Children.map(e,n):n(e);return o(e)}function Xn({sourceElement:e,targetElement:t,locales:r=[Ln],renderVariable:n}){const{props:o}=e,i=o["data-_gt"],a=i?.transformation,s=t.d,l={};if(s&&Object.entries(Un).forEach(([e,t])=>{s[e]&&(l[t]=s[e])}),"plural"===a){const o=e.props.n;return Yn({source:xn(o,r,i.branches||{})||e.props.children,target:xn(o,r,t.d?.b||{})||t.c,locales:r,renderVariable:n})}if("branch"===a){const{branch:e,children:a}=o;return Yn({source:(i.branches||{})[e]||a,target:(t.d?.b||{})[e]||t.c,locales:r,renderVariable:n})}return"fragment"===a&&t.c?c.createElement(c.Fragment,{key:e.props.key,children:Yn({source:o.children,target:t.c,locales:r,renderVariable:n})}):o?.children&&t?.c?c.cloneElement(e,{...o,...l,"data-_gt":void 0,children:Yn({source:o.children,target:t.c,locales:r,renderVariable:n})}):Kn({children:e,defaultLocale:r[0],renderVariable:n})}function Yn({source:e,target:t,locales:r=[Ln],renderVariable:n}){if(null==t&&e)return Kn({children:e,defaultLocale:r[0],renderVariable:n});if("string"==typeof t)return t;if(Array.isArray(t)&&!Array.isArray(e)&&e&&(e=[e]),Array.isArray(e)&&Array.isArray(t)){const o={},i={},a={},s=e.filter(e=>{if(c.isValidElement(e)){if(!Fn(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n,injectionType:s}=Vn(e.props);o[t]=r,i[t]=n,a[t]=s}}return!1}),l=e=>s.find(t=>{const r=$n(t);return void 0!==r?.id&&r.id===e.i})||s.shift();return t.map((e,t)=>{if("string"==typeof e)return m(c.Fragment,{children:e},`string_${t}`);if(pr(e))return m(c.Fragment,{children:n({variableType:e.v||"v",variableValue:o[e.k],variableOptions:i[e.k],locales:r,injectionType:a[e.k]||"manual"})},`var_${t}`);const s=l(e);return s?m(c.Fragment,{children:Xn({sourceElement:s,targetElement:e,locales:r,renderVariable:n})},`element_${t}`):null})}if(t&&"object"==typeof t&&!Array.isArray(t)){const o=pr(t)?"variable":"element";if(c.isValidElement(e)){if("element"===o)return Xn({sourceElement:e,targetElement:t,locales:r,renderVariable:n});if(Fn(e.props)){const{variableValue:t,variableOptions:o,variableType:i,injectionType:a}=Vn(e.props);return n({variableType:i,variableValue:t,variableOptions:o,locales:r,injectionType:a})}}}return Kn({children:e,defaultLocale:r[0],renderVariable:n})}const qn="generaltranslation.locale";function Wn({defaultLocale:e,locales:t,customMapping:r,localeCookieName:n=qn,getLocale:o}){if(o){const n=o(),i=a(n,t,r);return i||(console.warn((({customLocale:e,defaultLocale:t})=>`${_} Warning: Custom getLocale() function returned an unsupported locale: "${e}". Falling back to default locale: "${t}".`)({customLocale:n,defaultLocale:e})),e)}const i=[],s=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:n});s&&i.push(s);const c=(null===navigator||void 0===navigator?void 0:navigator.languages)||[];return i.push(...c),a(i,t,r)||e}class zn extends Yt{constructor({defaultLocale:e,locales:t,customMapping:r,getLocale:n,localeCookieName:o=qn}={}){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 Wn({defaultLocale:this.defaultLocale||Ct,locales:this.locales||[Ct],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},Zn=new Map;class Qn{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),Zn.has(this._storageKey)&&clearInterval(Zn.get(this._storageKey));const a=setInterval(()=>this._backgroundPurge(),this._purgeInterval);Zn.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;eo(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;eo(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 eo(e,t=Date.now()){for(const r of Object.keys(e))e[r].exp<=t&&delete e[r]}class to extends tr{constructor(e){var t,r,n;const o={},i=oo(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),io(e)&&function(e,t,r){return{loadTranslations:ro(e,t,r),lifecycle:no(t,r)}}(e.loadTranslations,e.projectId,o))),this._devHotReloadJsx=!1,this._localStorageCaches=o,this._devHotReloadJsx=io(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(e){a(e,this.getLocales())?(this.storeAdapter.setItem("locale",e),window.location.reload()):console.warn(T(e))}getLocalStorageTranslationCache(e,t){if(import.meta.env.DEV)return this._localStorageCaches[e]||(this._localStorageCaches[e]=new Qn({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(T(t));const i=Object.assign(Object.assign({},this.htmlTagOptions),e);i.updateHtmlLangTag&&(document.documentElement.lang=n),i.updateHtmlDirTag&&(document.documentElement.dir=o)}}function ro(e,t,r){return n=>R(this,void 0,void 0,function*(){const o=yield e(n);return r[n]||(r[n]=new Qn({locale:n,projectId:t,init:o})),r[n].getInternalCache()})}function no(e,t){return{onTranslationsCacheMiss:({locale:r,hash:n,value:o})=>{const i=t[r];i?i.write(n,o):t[r]=new Qn({locale:r,projectId:e,init:{[n]:o}})}}}function oo(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 io(e){var t,r,n;const o={environment:!!import.meta.env.DEV,customLoadTranslations:!!e.loadTranslations,projectId:!!e.projectId,devApiKey:!!e.devApiKey},i=Object.values(o).every(Boolean),a=oo(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(import.meta.env.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 ao(e){ir(new to(Object.assign(Object.assign({},e),{storeAdapter:new zn({getLocale:e.getLocale})})))}function so(){const e=or();if(!function(e){return e instanceof to}(e))throw new Error(v);return e}function co(e){return R(this,void 0,void 0,function*(){ao(e);const t=so();t.updateHtmlTag(),yield t.loadTranslations()})}function lo(e){var{children:t,branch:r}=e,n=S(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 uo(e){return lo(e)}function ho(){return so().getLocale()}function fo(){return so().getLocales()}function po(e){return so().setLocale(e)}function go(){return so().getDefaultLocale()}function mo(e){var{children:t,n:r,locales:n}=e,o=S(e,["children","n","locales"]);const i=[...n?[n]:[],ho(),go()];return"number"!=typeof r?t:xn(r,i,o)||t}function yo(e){return mo(e)}function _o({children:e}){return e}function bo({children:e}){return e}lo._gtt="branch",uo._gtt="branch-automatic",mo._gtt="plural",yo._gtt="plural-automatic",_o._gtt="derive",bo._gtt="derive-automatic";const Eo=(e,...t)=>{var r;return"undefined"==typeof window&&console.warn(`${_} 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?fr(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=hr(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 fr(o,i)}(e,t)};const vo=(e,t)=>ur(e,Object.assign({$format:"ICU"},t)),To=(e,t)=>cr(e,Object.assign({$format:"JSX"},t));function Lo({children:e,options:t={},locales:r=[]}){if(null==e)return null;const n="string"==typeof e?parseFloat(e):e,o=[...r,ho(),go()];return so().getGTClass().formatNum(n,Object.assign({locales:o},t))}function wo(e){return Lo(e)}function Ao({children:e}){return e}function So({children:e}){return Ao({children:e})}function Oo({children:e}){return Ao({children:e})}function Co({children:e,currency:t="USD",options:r={},locales:n=[]}){if(null==e)return null;const o="string"==typeof e?parseFloat(e):e,i=[...n,ho(),go()];return so().getGTClass().formatCurrency(o,t,Object.assign({locales:i},r))}function Po(e){return Co(e)}function Ho({children:e,options:t={},locales:r=[]}){if(null==e)return null;const n=[...r,ho(),go()];return so().getGTClass().formatDateTime(e,Object.assign({locales:n},t)).replace(/[\u200F\u202B\u202E]/g,"")}function Io(e){return Ho(e)}Lo._gtt="variable-number-automatic",wo._gtt="variable-number",Oo._gtt="variable-variable",So._gtt="variable-variable-automatic",Co._gtt="variable-currency-automatic",Po._gtt="variable-currency",Ho._gtt="variable-datetime-automatic",Io._gtt="variable-datetime";const No=({variableType:e,variableValue:t,variableOptions:r,injectionType:n})=>{switch(e){case"n":return m("automatic"===n?wo:Lo,{options:r,children:t});case"d":return m("automatic"===n?Io:Ho,{options:r,children:t});case"c":return m("automatic"===n?Po:Co,{options:r,children:t});default:return"automatic"===n?Ao({children:t}):m(Oo,{children:t})}};function Bo(e){return Mo(e)}function Ro(e){return Mo(e)}function Mo(e){var{children:t}=e,r=S(e,["children"]);const{taggedSourceChildren:n,sourceJsxChildren:o,renderSourceChildren:i,options:a}=function({sourceChildren:e,params:t}){const r=p(()=>Nn(function(e){return Rn(e,0)}(e)),[e]),n=p(()=>kn(r),[r]),o=d(()=>Kn({children:r,defaultLocale:ho(),renderVariable:No}),[r]),i=p(()=>{return e=t,Object.assign({$format:"JSX",$context:e.context,$id:e.id,$_hash:e._hash},e);var e},[t.context,t.id,t._hash,t.$format,t.$context,t.$id,t.$_hash]);return{taggedSourceChildren:r,sourceJsxChildren:n,renderSourceChildren:o,options:i}}({sourceChildren:t,params:r}),c=ho(),l=go();if(!s(l,c))return i();const u=function(e,t){const r=lr(t,"JSX");return or().lookupTranslation(e,r)}(o,a);return u?Yn({source:n,target:u,locales:[c],renderVariable:No}):so().isDevHotReloadJsx()?m(f,{fallback:i(),children:m(jo,{sourceJsxChildren:o,taggedSourceChildren:n,options:a,targetLocale:c})}):i()}function jo({sourceJsxChildren:e,taggedSourceChildren:t,options:r,targetLocale:n}){return Yn({source:t,target:g(cr(e,r)),locales:[n],renderVariable:No})}function Uo({date:e,children:t,value:r,unit:n,baseDate:o,locales:i=[],options:a={}}){const s=so().getGTClass(),c=[...i,ho(),go()],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 Do(e){return Uo(e)}function Go(){return so().getVersionId()}function ko(e){so().updateHtmlTag({lang:e,updateHtmlLangTag:!0,updateHtmlDirTag:!1})}function xo(e){so().updateHtmlTag({dir:e,updateHtmlLangTag:!1,updateHtmlDirTag:!0})}function Fo(e){if(!e)return;const t={};for(const r in e)t[r]={name:e[r]};return t}function Vo(e){var{locale:t,locales:r,customNames:n,customMapping:o=Fo(n),setLocale:i,getLocaleProperties:a}=e,s=S(e,["locale","locales","customNames","customMapping","setLocale","getLocaleProperties"]);const c=e=>{if(o&&o[e]){if("string"==typeof o[e])return o[e];if(o[e].name)return o[e].name}return(t=a(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return r&&0!==r.length&&i?y("select",Object.assign({},s,{value:t||"",onChange:e=>i(e.target.value),children:[!t&&m("option",{value:""}),r.map(e=>m("option",{value:e,suppressHydrationWarning:!0,children:c(e)},e))]})):null}function $o(e){var{locales:t}=e,r=S(e,["locales"]);const{sortedLocales:n,setLocale:o,locale:i,getLocaleProperties:a}=p(()=>{const e=so(),r=e.getGTClass(),n=e.getLocale(),o=t=>{e.setLocale(t)},i=e=>r.getLocaleProperties(e);if(t)return{locale:n,setLocale:o,sortedLocales:t,getLocaleProperties:i};return{locale:n,sortedLocales:e.getLocales().sort((e,t)=>(new Intl.Collator).compare(r.getLocaleProperties(e).nativeNameWithRegionCode,r.getLocaleProperties(t).nativeNameWithRegionCode)),setLocale:o,getLocaleProperties:i}},[t]);return m(Vo,Object.assign({locale:i,locales:n,setLocale:o,getLocaleProperties:a},r))}Ro._gtt="translate-client",Bo._gtt="translate-client-automatic",Uo._gtt="variable-relative-time-automatic",Do._gtt="variable-relative-time",function(e=E){if("undefined"==typeof window)throw new Error(e)}(b);export{lo as Branch,Po as Currency,Io as DateTime,_o as Derive,uo as GtInternalBranch,Co as GtInternalCurrency,Ho as GtInternalDateTime,bo as GtInternalDerive,Lo as GtInternalNum,yo as GtInternalPlural,Uo as GtInternalRelativeTime,To as GtInternalRuntimeTranslateJsx,vo as GtInternalRuntimeTranslateString,Bo as GtInternalTranslateJsx,So as GtInternalVar,$o as LocaleSelector,wo as Num,mo as Plural,Do as RelativeTime,Ro as T,Oo as Var,co as bootstrap,go as getDefaultLocale,ho as getLocale,fo as getLocales,Go as getVersionId,ao as initializeGT,po as setLocale,Eo as t,xo as updateHtmlTagDir,ko as updateHtmlTagLang};
2
2
  //# sourceMappingURL=browser.esm.min.mjs.map