gt-react 9.2.4-alpha.1 → 9.2.4-alpha.2

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.
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
17
  */
18
- function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,i=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,m,x,w,k,B,S,O,E,A=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=i=A[0],k=f=A[1],B=b=A[2],S=m=A[3],O=x=A[4],r=0;r<80;r+=1)E=i+e[t+C[r]]|0,E+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?g(f,b,m)+T[3]:y(f,b,m)+T[4],E=(E=_(E|=0,P[r]))+x|0,i=x,x=m,m=_(b,10),b=f,f=E,E=w+e[t+H[r]]|0,E+=r<16?y(k,B,S)+j[0]:r<32?g(k,B,S)+j[1]:r<48?v(k,B,S)+j[2]:r<64?p(k,B,S)+j[3]:h(k,B,S)+j[4],E=(E=_(E|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=E;E=A[1]+b+S|0,A[1]=A[2]+m+O|0,A[2]=A[3]+x+w|0,A[3]=A[4]+i+k|0,A[4]=A[0]+f+B|0,A[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160)),he.exports;var e}(),ge(),function(){return ye||(ye=1,_e.exports=(c=C(),te(),ge(),t=(e=c).lib,r=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,o=a.create(r.hasher,e),i=n.create(),s=n.create([1]),c=i.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=o.update(t).finalize(s);o.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=o.finalize(v),o.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}i.concat(f),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),_e.exports;var e,t,r,n,o,i,a,s,c}(),xe(),Be(),Ee(),je(),Pe(),De(),function(){return Le?Ie.exports:(Le=1,Ie.exports=(t=C(),Be(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Fe?Me.exports:(Fe=1,Me.exports=(e=C(),Be(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ne?Ue.exports:(Ne=1,Ue.exports=(e=C(),Be(),e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return $e?Ve.exports:($e=1,Ve.exports=(e=C(),Be(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return We||(We=1,Ge.exports=(e=C(),Be(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Ge.exports;var e}(),function(){return Ke?Je.exports:(Ke=1,Je.exports=(e=C(),Be(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return qe?Xe.exports:(qe=1,Xe.exports=(n=C(),Be(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Ye||(Ye=1,Ze.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(l=i[a-1],a%r?r>6&&a%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[a/r|0]<<24),i[a]=i[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=i[a];else l=i[a-4];s[c]=c<4||a<=4?l:u[o[l>>>24]]^d[o[l>>>16&255]]^f[o[l>>>8&255]]^h[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),Ze.exports;var e}(),tt(),function(){return rt||(rt=1,nt.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),nt.exports;var e}(),function(){return ot||(ot=1,it.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=f,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),it.exports;var e}(),function(){return at||(at=1,st.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),st.exports;var e}(),ut())),E.exports),bt=k(_t),mt=function(){return mt=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},mt.apply(this,arguments)};function xt(e){return bt.SHA256(e).toString(bt.enc.Hex)}function wt(e,t){var r=e.source,n=e.context,o=e.id,i=e.type;return void 0===t&&(t=xt),t(O(mt(mt(mt({source:Bt(r)},o&&{id:o}),n&&{context:n}),i&&{type:i})))}"function"==typeof SuppressedError&&SuppressedError;var kt=function(e){var t,r,n,o;if(e&&"object"==typeof e){if("props"in e){var i={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(i.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Bt(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(i.children=Bt(e.props.children)),(null===(o=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===o?void 0:o.transformation)&&(i.transformation=e.props["data-_gt"].transformation),i}if("key"in e)return mt({key:e.key},e.variable&&{variable:e.variable})}return e};function Bt(e){return Array.isArray(e)?e.map(kt):kt(e)}function St(r,n,o,i,a,s,c,l){return e.useCallback(((e,u={})=>{if(!e||"string"!=typeof e)return"";const d=t.splitStringToContent(e),f=(e,r)=>t.renderContentToString(e,r,u.variables,u.variablesOptions);if(!i)return f(d,[o]);const h=wt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==r?void 0:r[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,o]):"error"===(null==p?void 0:p.state)?f(d,[o]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[o]):"skeleton"===l.method?"":a?f(d,[o]):""):f(d,[o])}),[r,n,o,i,s,c,a])}function Ot(r,n,o,i,a,s,c,l,u,d){return e.useCallback(((f,h={})=>{if(!r)return"";const p=function(t,r){let n=t,o=r.split(".");for(const t of o){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(r,f);if(!p)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(f)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(p))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(f)),"";const{entry:v,metadata:g}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(p);if(!v||"string"!=typeof v)return"";const y=t.splitStringToContent(v),_=(e,r)=>t.renderContentToString(e,r,h.variables,h.variablesOptions);if(!s)return _(y,[a]);const b=null==o?void 0:o[f];if(b)return t.renderContentToString(t.splitStringToContent(b),[i,a],h.variables,h.variablesOptions);let m=wt(Object.assign(Object.assign({source:y},(null==g?void 0:g.context)&&{context:g.context}),{id:f})),x=null==n?void 0:n[m];return"success"===(null==x?void 0:x.state)?_(x.target,[i,a]):"error"===(null==x?void 0:x.state)?_(y,[a]):l?(u({source:y,targetLocale:i,metadata:Object.assign(Object.assign({},(null==g?void 0:g.context)&&{context:g.context}),{id:f,hash:m})}),"replace"===d.method?_(y,[a]):"skeleton"===d.method?"":c?_(y,[a]):""):_(y,[a])}),[r,n,i,a,s,l,u,c])}function Et(e){var{children:t,name:n="branch",branch:o}=e,i=a(e,["children","name","branch"]);const{"data-_gt":s}=i,c=a(i,["data-_gt"]),l=(o=null==o?void 0:o.toString())&&void 0!==c[o]?c[o]:t;return r.jsx("span",{"data-_gt":s,"data-_gt-branch-name":o,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function At(t,n=0){let o=n;const i=e=>{const{type:t,props:r}=e;o+=1;let n,i={id:o};try{n="function"==typeof t&&t.gtTransformation||""}catch(e){n=""}if(n){const t=n.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(i.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return p.includes(e)}(t)&&(e[t]=At(r,o)),e)),{});Object.keys(e).length&&(i.branches=e)}if("branch"===t[0]){const e=a(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=At(r,o),e)),{});Object.keys(t).length&&(i.branches=t)}i.transformation=t[0]}return i};function s(t){return e.isValidElement(t)?function(t){const{props:n}=t;if(n["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let o=i(t),a=Object.assign(Object.assign({},n),{"data-_gt":o});if(n.children&&!o.variableType&&(a.children=c(n.children)),t.type===e.Fragment)return a["data-_gt"].transformation,r.jsx("span",Object.assign({style:{all:"unset",display:"contents"}},a));return e.cloneElement(t,a)}(t):t}function c(t){return Array.isArray(t)?e.Children.map(t,s):s(t)}return c(t)}Et.gtTransformation="branch";const Tt={variable:"value",number:"n",datetime:"date",currency:"cost"};function jt(e="variable"){return Tt[e]||"variable"}const Ct="_gt_";function Ht(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${Ct}${Tt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Pt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},zt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Pt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const o=e.transformation;if("variable"===o){const t=e.variableType||"variable";return{variable:t,key:Ht(r,t),id:e.id}}if("plural"===o&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===o&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=Rt(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function Rt(e){return Array.isArray(e)?e.map(zt):zt(e)}function Dt(e,t,r){let n="",o=null;return"number"==typeof e&&!o&&r&&(n=function(e,t,r){void 0===t&&(t=p),void 0===r&&(r=[f]);var n=new Intl.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 Lt(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Ht(e,r),variableValue:void 0!==e.value?e.value:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},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 It(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function Ft(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Mt({children:t,variables:r={},variablesOptions:n={},defaultLocale:o=f,renderVariable:i}){const s=t=>e.isValidElement(t)?(t=>{const s=Ft(t);if("variable"===(null==s?void 0:s.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=Lt(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(Ct)){const e=jt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),i({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[o]})}if("plural"===(null==s?void 0:s.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=s.branches||{};return c(Dt(e,[o],n)||t.props.children)}if("branch"===(null==s?void 0:s.transformation)){let e=t.props,{children:n,name:o,branch:i,"data-_gt":l}=e,u=a(e,["children","name","branch","data-_gt"]);return o=o||t.props["data-_gt-name"]||"branch",i=r[o]||i||t.props["data-_gt-branch-name"],u=s.branches||{},c(void 0!==u[i]?u[i]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:c(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,c=t=>Array.isArray(t)?e.Children.map(t,s):s(t);return c(t)}function Nt({sourceElement:t,targetElement:r,variables:n={},variablesOptions:o={},locales:i=[f],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=Dt(e,i,l.branches||{})||t.props.children,c=Dt(e,i,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),Ut({source:s,target:c,variables:n,variablesOptions:o,locales:i,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return Ut({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:o,locales:i,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:Ut({source:c.children,target:r.props.children,variables:n,variablesOptions:o,locales:i,renderVariable:a})})):Mt({children:t,variables:n,variablesOptions:o,defaultLocale:i[0],renderVariable:a})}function Ut({source:t,target:n,variables:o={},variablesOptions:i={},locales:a=[f],renderVariable:s}){if(null==n&&t)return Mt({children:t,variables:o,variablesOptions:i,defaultLocale:a[0],renderVariable:s});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const c=t.filter((t=>{if(e.isValidElement(t)){const e=Ft(t);if(Lt(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:n,variableType:a}=Lt(t.props);void 0===o[e]&&(o[e]=r);const s=jt(a);void 0===o[s]&&(o[s]=r),i[e]=Object.assign(Object.assign({},i[e]),n)}}})),l=e=>c.find((t=>{var r,n;const o=Ft(t);if(void 0!==(null==o?void 0:o.id)){return o.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return n.map(((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(It(t)){const c=t.key,l=t.variable||"variable",u=(()=>{if(void 0!==o[t.key])return o[t.key];if(c.startsWith(Ct)){const e=jt(l);if(void 0!==o[e])return o[e]}})();return r.jsx(e.Fragment,{children:s({variableType:l,variableName:c,variableValue:u,variableOptions:i[t.key],locales:a})},`var_${n}`)}const c=l(t);return c?r.jsx(e.Fragment,{children:Nt({sourceElement:c,targetElement:t,variables:o,variablesOptions:i,locales:a,renderVariable:s})},`element_${n}`):void 0}))}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=It(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Nt({sourceElement:t,targetElement:n,variables:o,variablesOptions:i,locales:a,renderVariable:s});const e=Ft(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:n}=Lt(t.props);void 0===o[e]&&(o[e]=r),i[e]=Object.assign(Object.assign({},i[e]),n)}}if("variable"===r){const e=n,t=e.key,r=e.variable||"variable",c=(()=>{if(void 0!==o[e.key])return o[e.key];if(t.startsWith(Ct)){const e=jt(r);if(void 0!==o[e])return o[e]}})();return s({variableType:r,variableName:t,variableValue:c,variableOptions:i[e.key]||{},locales:a})}}return Mt({children:t,variables:o,variablesOptions:i,defaultLocale:a[0],renderVariable:s})}const $t={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function Vt(t){var{children:n,n:i,locale:s}=t,c=a(t,["children","n","locale"]);const{"data-_gt":l}=c,u=a(c,["data-_gt"]),d=e.useContext(o);let h;d&&(s||(s=d.locale),h||(h=d.defaultLocale));const p=[...s?[s]:[],h||f];if("number"!=typeof i)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const v=Dt(i,p,u)||n;return r.jsx("span",{"data-_gt":l,"data-_gt-n":i,style:{display:"contents"},children:v})}function Wt(){return i("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function Gt({children:t,id:n,context:o}){if(!t)return;const{translations:a,translationRequired:s,runtimeTranslationEnabled:c,dialectTranslationRequired:l,registerJsxForTranslation:u,renderSettings:d,locale:f,defaultLocale:h}=i("<T> used on the client-side outside of <GTProvider>"),p=e.useMemo((()=>At(t)),[t]),[v,g]=e.useMemo((()=>{if(s){const e=Rt(p);return[e,wt(Object.assign(Object.assign({source:e},o&&{context:o}),n&&{id:n}))]}return[void 0,""]}),[o,p,s,t]),y=null==a?void 0:a[g];e.useEffect((()=>{c&&s&&a&&f&&!y&&u({source:v,targetLocale:f,metadata:{id:n,hash:g,context:o}})}),[c,a,y,s,n,g,o,f,t]);const _=()=>Mt({children:p,defaultLocale:h,renderVariable:b});if(!s||a&&!y&&!c||"error"===(null==y?void 0:y.state))return r.jsx(r.Fragment,{children:_()});if(!y||"loading"===(null==y?void 0:y.state)){let e;return e="skeleton"===d.method?"":"replace"===d.method||l?_():"",r.jsx(r.Fragment,{children:e})}return r.jsx(r.Fragment,{children:(m=y.target,Ut({source:p,target:m,locales:[f,h],renderVariable:b}))});var m}function Kt(){return i("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function Jt(){const{setLocale:e}=i("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function qt(r){const n=Wt(),o=Kt(),i=Jt(),a=e.useMemo((()=>{if(!o||0===o.length)return[];const e=o.sort(((e,r)=>(new Intl.Collator).compare(t.getLocaleProperties(e).nativeNameWithRegionCode,t.getLocaleProperties(r).nativeNameWithRegionCode)));return e}),[o]);return{locale:n,locales:r||a,setLocale:i}}Vt.gtTransformation="plural",Gt.gtTransformation="translate-client",exports.Branch=Et,exports.ClientProvider=function({children:n,dictionary:i,initialTranslations:a,messages:s,locale:c,_versionId:u,defaultLocale:d,translationRequired:f,dialectTranslationRequired:p,locales:v=[],renderSettings:g,projectId:y,devApiKey:_,runtimeUrl:b,runtimeTranslationEnabled:m,onLocaleChange:x=()=>{},cookieName:w=h}){const[k,B]=e.useState(_?null:a),[S,O]=e.useState(c&&t.determineLocale(c,v)||"");e.useEffect((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${w}=`))))||void 0===e?void 0:e.split("=")[1];S&&t&&t!==S&&(document.cookie=`${w}=${S};path=/`)}),[S]),e.useEffect((()=>{B((e=>Object.assign(Object.assign({},a),e)))}),[a]);const{registerContentForTranslation:E,registerJsxForTranslation:A}=l({locale:S,versionId:u,projectId:y,devApiKey:_,runtimeUrl:b,setTranslations:B,defaultLocale:d,renderSettings:g,runtimeTranslationEnabled:m}),T=St(k,S,d,f,p,m,E,g),j=Ot(i,k,s,S,d,f,p,m,E,g),C=!(f&&!k)&&S;return r.jsx(o.Provider,{value:{registerContentForTranslation:E,registerJsxForTranslation:A,setLocale:e=>{e=t.determineLocale(e,v)||S||d,document.cookie=`${w}=${e};path=/`,O(e),x(),window.location.reload()},_internalUseGTFunction:T,_internalUseDictFunction:j,locale:S,locales:v,defaultLocale:d,translations:k,messages:s,translationRequired:f,dialectTranslationRequired:p,renderSettings:g,runtimeTranslationEnabled:m},children:C&&n})},exports.Currency=y,exports.DateTime=_,exports.GTContext=o,exports.GTProvider=function(i){var{children:c,projectId:p="",devApiKey:v,dictionary:g,locales:y=[],defaultLocale:_=f,locale:b,cacheUrl:m=u,runtimeUrl:x=d,renderSettings:w=$t,loadMessages:k,loadTranslation:B,_versionId:S}=i,O=a(i,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:E,devApiKey:A}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||(void 0).REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY||(void 0).REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(p,v);y=e.useMemo((()=>(y.unshift(_),Array.from(new Set(y)))),[_,y]);const[T,j]=function({locale:r="",defaultLocale:n=f,locales:o=[],cookieName:i=h}){const[a,s]=e.useState(r&&t.determineLocale(r,o)||"");return e.useEffect((()=>{var e;if(r&&r===a&&t.determineLocale(r,o)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===e?void 0:e.split("=")[1],u=t.determineLocale([...r?[r]:[],...l?[l]:[],...c],o)||n;l&&l!==u&&(document.cookie=`${i}=${u};path=/`),s(u)}),[n,o]),[a,e=>{const r=t.determineLocale(e,o)||a||n;r!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(r,e)),s(r),document.cookie=`${i}=${r};path=/`}]}({defaultLocale:_,locales:y,locale:b}),C=e.useMemo((()=>!!(E&&x&&A&&"development"===process.env.NODE_ENV)),[E,x,A]),H=e.useMemo((()=>(B?"custom":m&&"default")||"disabled"),[B]),[P,z]=e.useState(g);e.useEffect((()=>{if(P||!k)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){var r;let n;try{n=yield k(_)}catch(e){}const o=null===(r=t.getLocaleProperties(_))||void 0===r?void 0:r.languageCode;if(!P&&o&&o!==_)try{n=yield k(o)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&z(n||{})}))})(),()=>{e=!1}}),[P,k]),e.useMemo((()=>{if("production"===process.env.NODE_ENV&&A)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===H||!m&&!x||E||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),E&&x&&"custom"!==H&&!A&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),x===d||m===u&&"default"===H){const e=(y||y).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:r}=t.getLocaleProperties(e);return`${e} (${r})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,A,H,m,x,E,y]);const[R,D]=e.useMemo((()=>{const e=t.requiresTranslation(_,T,y);return[e,e&&t.isSameLanguage(_,T)]}),[_,T,y]),[L,I]=e.useState(R?null:{});e.useEffect((()=>I(R?null:{})),[T]);const[F,M]=e.useState(R?null:{});e.useEffect((()=>M(R?null:{})),[T]);const{registerContentForTranslation:N,registerJsxForTranslation:U}=l(Object.assign({locale:T,versionId:S,projectId:E,runtimeTranslationEnabled:C,defaultLocale:_,devApiKey:A,runtimeUrl:x,renderSettings:w,setTranslations:M},O));e.useEffect((()=>{if(L||!R||!k)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){let t={};try{t=yield k(T)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(T),e)}e&&I(t)}))})(),()=>{e=!1}}),[T,k,R,L]),e.useEffect((()=>{if(F||!R)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){let t;switch(H){case"custom":if(B)try{t=yield B(T)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(T),e)}break;case"default":try{t=yield function(e){return s(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const o=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield o.json()}))}({cacheUrl:m,projectId:E,locale:T,versionId:S})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&M(t)}))})(),()=>{e=!1}}),[F,R,H,m,E,T,S]);const $=St(F,T,_,R,D,C,N,w),V=Ot(P,F,L,T,_,R,D,C,N,w),W=!(R&&!F||!T);return r.jsx(o.Provider,{value:{registerContentForTranslation:N,registerJsxForTranslation:U,_internalUseGTFunction:$,_internalUseDictFunction:V,runtimeTranslationEnabled:C,locale:T,locales:y,setLocale:j,defaultLocale:_,translations:F,messages:L,translationRequired:R,dialectTranslationRequired:D,projectId:E,renderSettings:w},children:W&&c})},exports.LocaleSelector=function(e){var{locales:n}=e,o=a(e,["locales"]);const{locale:i,locales:s,setLocale:c}=qt(n||void 0),l=e=>{return(r=t.getLocaleProperties(e).nativeNameWithRegionCode)?r.charAt(0).toUpperCase()+(r.length>1?r.slice(1):""):"";var r};return s&&0!==s.length&&c?r.jsxs("select",Object.assign({},o,{value:i||"",onChange:e=>c(e.target.value),children:[!i&&r.jsx("option",{value:""}),s.map((e=>r.jsx("option",{value:e,suppressHydrationWarning:!0,children:l(e)},e)))]})):null},exports.Num=v,exports.Plural=Vt,exports.T=Gt,exports.Var=g,exports.renderVariable=b,exports.useDefaultLocale=function(){return i("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=i(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const o=t(e);return r(o,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=i("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Wt,exports.useLocaleSelector=qt,exports.useLocales=Kt,exports.useRuntimeTranslation=l,exports.useSetLocale=Jt;
18
+ function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,i=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,m,x,w,k,B,S,O,E,A=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=i=A[0],k=f=A[1],B=b=A[2],S=m=A[3],O=x=A[4],r=0;r<80;r+=1)E=i+e[t+C[r]]|0,E+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?g(f,b,m)+T[3]:y(f,b,m)+T[4],E=(E=_(E|=0,P[r]))+x|0,i=x,x=m,m=_(b,10),b=f,f=E,E=w+e[t+H[r]]|0,E+=r<16?y(k,B,S)+j[0]:r<32?g(k,B,S)+j[1]:r<48?v(k,B,S)+j[2]:r<64?p(k,B,S)+j[3]:h(k,B,S)+j[4],E=(E=_(E|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=E;E=A[1]+b+S|0,A[1]=A[2]+m+O|0,A[2]=A[3]+x+w|0,A[3]=A[4]+i+k|0,A[4]=A[0]+f+B|0,A[0]=E},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160)),he.exports;var e}(),ge(),function(){return ye||(ye=1,_e.exports=(c=C(),te(),ge(),t=(e=c).lib,r=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,o=a.create(r.hasher,e),i=n.create(),s=n.create([1]),c=i.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=o.update(t).finalize(s);o.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=o.finalize(v),o.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}i.concat(f),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),_e.exports;var e,t,r,n,o,i,a,s,c}(),xe(),Be(),Ee(),je(),Pe(),De(),function(){return Le?Ie.exports:(Le=1,Ie.exports=(t=C(),Be(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Fe?Me.exports:(Fe=1,Me.exports=(e=C(),Be(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ne?Ue.exports:(Ne=1,Ue.exports=(e=C(),Be(),e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return $e?Ve.exports:($e=1,Ve.exports=(e=C(),Be(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return We||(We=1,Ge.exports=(e=C(),Be(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Ge.exports;var e}(),function(){return Ke?Je.exports:(Ke=1,Je.exports=(e=C(),Be(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return qe?Xe.exports:(qe=1,Xe.exports=(n=C(),Be(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Ye||(Ye=1,Ze.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(l=i[a-1],a%r?r>6&&a%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[a/r|0]<<24),i[a]=i[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=i[a];else l=i[a-4];s[c]=c<4||a<=4?l:u[o[l>>>24]]^d[o[l>>>16&255]]^f[o[l>>>8&255]]^h[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),Ze.exports;var e}(),tt(),function(){return rt||(rt=1,nt.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),nt.exports;var e}(),function(){return ot||(ot=1,it.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=f,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),it.exports;var e}(),function(){return at||(at=1,st.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),st.exports;var e}(),ut())),E.exports),bt=k(_t),mt=function(){return mt=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},mt.apply(this,arguments)};function xt(e){return bt.SHA256(e).toString(bt.enc.Hex)}function wt(e,t){var r=e.source,n=e.context,o=e.id;return void 0===t&&(t=xt),t(O(mt(mt({source:Bt(r)},o&&{id:o}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var kt=function(e){var t,r,n,o;if(e&&"object"==typeof e){if("props"in e){var i={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(i.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Bt(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(i.children=Bt(e.props.children)),(null===(o=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===o?void 0:o.transformation)&&(i.transformation=e.props["data-_gt"].transformation),i}if("key"in e)return mt({key:e.key},e.variable&&{variable:e.variable})}return e};function Bt(e){return Array.isArray(e)?e.map(kt):kt(e)}function St(r,n,o,i,a,s,c,l){return e.useCallback(((e,u={})=>{if(!e||"string"!=typeof e)return"";const d=t.splitStringToContent(e),f=(e,r)=>t.renderContentToString(e,r,u.variables,u.variablesOptions);if(!i)return f(d,[o]);const h=wt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==r?void 0:r[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,o]):"error"===(null==p?void 0:p.state)?f(d,[o]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[o]):"skeleton"===l.method?"":a?f(d,[o]):""):f(d,[o])}),[r,n,o,i,s,c,a])}function Ot(r,n,o,i,a,s,c,l,u,d){return e.useCallback(((f,h={})=>{if(!r)return"";const p=function(t,r){let n=t,o=r.split(".");for(const t of o){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(r,f);if(!p)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(f)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(p))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(f)),"";const{entry:v,metadata:g}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(p);if(!v||"string"!=typeof v)return"";const y=t.splitStringToContent(v),_=(e,r)=>t.renderContentToString(e,r,h.variables,h.variablesOptions);if(!s)return _(y,[a]);const b=null==o?void 0:o[f];if(b)return t.renderContentToString(t.splitStringToContent(b),[i,a],h.variables,h.variablesOptions);let m=wt(Object.assign(Object.assign({source:y},(null==g?void 0:g.context)&&{context:g.context}),{id:f})),x=null==n?void 0:n[m];return"success"===(null==x?void 0:x.state)?_(x.target,[i,a]):"error"===(null==x?void 0:x.state)?_(y,[a]):l?(u({source:y,targetLocale:i,metadata:Object.assign(Object.assign({},(null==g?void 0:g.context)&&{context:g.context}),{id:f,hash:m})}),"replace"===d.method?_(y,[a]):"skeleton"===d.method?"":c?_(y,[a]):""):_(y,[a])}),[r,n,i,a,s,l,u,c])}function Et(e){var{children:t,name:n="branch",branch:o}=e,i=a(e,["children","name","branch"]);const{"data-_gt":s}=i,c=a(i,["data-_gt"]),l=(o=null==o?void 0:o.toString())&&void 0!==c[o]?c[o]:t;return r.jsx("span",{"data-_gt":s,"data-_gt-branch-name":o,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function At(t,n=0){let o=n;const i=e=>{const{type:t,props:r}=e;o+=1;let n,i={id:o};try{n="function"==typeof t&&t.gtTransformation||""}catch(e){n=""}if(n){const t=n.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(i.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return p.includes(e)}(t)&&(e[t]=At(r,o)),e)),{});Object.keys(e).length&&(i.branches=e)}if("branch"===t[0]){const e=a(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=At(r,o),e)),{});Object.keys(t).length&&(i.branches=t)}i.transformation=t[0]}return i};function s(t){return e.isValidElement(t)?function(t){const{props:n}=t;if(n["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let o=i(t),a=Object.assign(Object.assign({},n),{"data-_gt":o});if(n.children&&!o.variableType&&(a.children=c(n.children)),t.type===e.Fragment)return a["data-_gt"].transformation,r.jsx("span",Object.assign({style:{all:"unset",display:"contents"}},a));return e.cloneElement(t,a)}(t):t}function c(t){return Array.isArray(t)?e.Children.map(t,s):s(t)}return c(t)}Et.gtTransformation="branch";const Tt={variable:"value",number:"n",datetime:"date",currency:"cost"};function jt(e="variable"){return Tt[e]||"variable"}const Ct="_gt_";function Ht(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${Ct}${Tt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Pt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},zt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Pt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const o=e.transformation;if("variable"===o){const t=e.variableType||"variable";return{variable:t,key:Ht(r,t),id:e.id}}if("plural"===o&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===o&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=Rt(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function Rt(e){return Array.isArray(e)?e.map(zt):zt(e)}function Dt(e,t,r){let n="",o=null;return"number"==typeof e&&!o&&r&&(n=function(e,t,r){void 0===t&&(t=p),void 0===r&&(r=[f]);var n=new Intl.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 Lt(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Ht(e,r),variableValue:void 0!==e.value?e.value:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},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 It(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function Ft(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Mt({children:t,variables:r={},variablesOptions:n={},defaultLocale:o=f,renderVariable:i}){const s=t=>e.isValidElement(t)?(t=>{const s=Ft(t);if("variable"===(null==s?void 0:s.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=Lt(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(Ct)){const e=jt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),i({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[o]})}if("plural"===(null==s?void 0:s.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=s.branches||{};return c(Dt(e,[o],n)||t.props.children)}if("branch"===(null==s?void 0:s.transformation)){let e=t.props,{children:n,name:o,branch:i,"data-_gt":l}=e,u=a(e,["children","name","branch","data-_gt"]);return o=o||t.props["data-_gt-name"]||"branch",i=r[o]||i||t.props["data-_gt-branch-name"],u=s.branches||{},c(void 0!==u[i]?u[i]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:c(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,c=t=>Array.isArray(t)?e.Children.map(t,s):s(t);return c(t)}function Nt({sourceElement:t,targetElement:r,variables:n={},variablesOptions:o={},locales:i=[f],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=Dt(e,i,l.branches||{})||t.props.children,c=Dt(e,i,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),Ut({source:s,target:c,variables:n,variablesOptions:o,locales:i,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return Ut({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:o,locales:i,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:Ut({source:c.children,target:r.props.children,variables:n,variablesOptions:o,locales:i,renderVariable:a})})):Mt({children:t,variables:n,variablesOptions:o,defaultLocale:i[0],renderVariable:a})}function Ut({source:t,target:n,variables:o={},variablesOptions:i={},locales:a=[f],renderVariable:s}){if(null==n&&t)return Mt({children:t,variables:o,variablesOptions:i,defaultLocale:a[0],renderVariable:s});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const c=t.filter((t=>{if(e.isValidElement(t)){const e=Ft(t);if(Lt(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:n,variableType:a}=Lt(t.props);void 0===o[e]&&(o[e]=r);const s=jt(a);void 0===o[s]&&(o[s]=r),i[e]=Object.assign(Object.assign({},i[e]),n)}}})),l=e=>c.find((t=>{var r,n;const o=Ft(t);if(void 0!==(null==o?void 0:o.id)){return o.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return n.map(((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(It(t)){const c=t.key,l=t.variable||"variable",u=(()=>{if(void 0!==o[t.key])return o[t.key];if(c.startsWith(Ct)){const e=jt(l);if(void 0!==o[e])return o[e]}})();return r.jsx(e.Fragment,{children:s({variableType:l,variableName:c,variableValue:u,variableOptions:i[t.key],locales:a})},`var_${n}`)}const c=l(t);return c?r.jsx(e.Fragment,{children:Nt({sourceElement:c,targetElement:t,variables:o,variablesOptions:i,locales:a,renderVariable:s})},`element_${n}`):void 0}))}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=It(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Nt({sourceElement:t,targetElement:n,variables:o,variablesOptions:i,locales:a,renderVariable:s});const e=Ft(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:n}=Lt(t.props);void 0===o[e]&&(o[e]=r),i[e]=Object.assign(Object.assign({},i[e]),n)}}if("variable"===r){const e=n,t=e.key,r=e.variable||"variable",c=(()=>{if(void 0!==o[e.key])return o[e.key];if(t.startsWith(Ct)){const e=jt(r);if(void 0!==o[e])return o[e]}})();return s({variableType:r,variableName:t,variableValue:c,variableOptions:i[e.key]||{},locales:a})}}return Mt({children:t,variables:o,variablesOptions:i,defaultLocale:a[0],renderVariable:s})}const $t={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function Vt(t){var{children:n,n:i,locale:s}=t,c=a(t,["children","n","locale"]);const{"data-_gt":l}=c,u=a(c,["data-_gt"]),d=e.useContext(o);let h;d&&(s||(s=d.locale),h||(h=d.defaultLocale));const p=[...s?[s]:[],h||f];if("number"!=typeof i)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const v=Dt(i,p,u)||n;return r.jsx("span",{"data-_gt":l,"data-_gt-n":i,style:{display:"contents"},children:v})}function Wt(){return i("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function Gt({children:t,id:n,context:o}){if(!t)return;const{translations:a,translationRequired:s,runtimeTranslationEnabled:c,dialectTranslationRequired:l,registerJsxForTranslation:u,renderSettings:d,locale:f,defaultLocale:h}=i("<T> used on the client-side outside of <GTProvider>"),p=e.useMemo((()=>At(t)),[t]),[v,g]=e.useMemo((()=>{if(s){const e=Rt(p);return[e,wt(Object.assign(Object.assign({source:e},o&&{context:o}),n&&{id:n}))]}return[void 0,""]}),[o,p,s,t]),y=null==a?void 0:a[g];e.useEffect((()=>{c&&s&&a&&f&&!y&&u({source:v,targetLocale:f,metadata:{id:n,hash:g,context:o}})}),[c,a,y,s,n,g,o,f,t]);const _=()=>Mt({children:p,defaultLocale:h,renderVariable:b});if(!s||a&&!y&&!c||"error"===(null==y?void 0:y.state))return r.jsx(r.Fragment,{children:_()});if(!y||"loading"===(null==y?void 0:y.state)){let e;return e="skeleton"===d.method?"":"replace"===d.method||l?_():"",r.jsx(r.Fragment,{children:e})}return r.jsx(r.Fragment,{children:(m=y.target,Ut({source:p,target:m,locales:[f,h],renderVariable:b}))});var m}function Kt(){return i("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function Jt(){const{setLocale:e}=i("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function qt(r){const n=Wt(),o=Kt(),i=Jt(),a=e.useMemo((()=>{if(!o||0===o.length)return[];const e=o.sort(((e,r)=>(new Intl.Collator).compare(t.getLocaleProperties(e).nativeNameWithRegionCode,t.getLocaleProperties(r).nativeNameWithRegionCode)));return e}),[o]);return{locale:n,locales:r||a,setLocale:i}}Vt.gtTransformation="plural",Gt.gtTransformation="translate-client",exports.Branch=Et,exports.ClientProvider=function({children:n,dictionary:i,initialTranslations:a,messages:s,locale:c,_versionId:u,defaultLocale:d,translationRequired:f,dialectTranslationRequired:p,locales:v=[],renderSettings:g,projectId:y,devApiKey:_,runtimeUrl:b,runtimeTranslationEnabled:m,onLocaleChange:x=()=>{},cookieName:w=h}){const[k,B]=e.useState(_?null:a),[S,O]=e.useState(c&&t.determineLocale(c,v)||"");e.useEffect((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${w}=`))))||void 0===e?void 0:e.split("=")[1];S&&t&&t!==S&&(document.cookie=`${w}=${S};path=/`)}),[S]),e.useEffect((()=>{B((e=>Object.assign(Object.assign({},a),e)))}),[a]);const{registerContentForTranslation:E,registerJsxForTranslation:A}=l({locale:S,versionId:u,projectId:y,devApiKey:_,runtimeUrl:b,setTranslations:B,defaultLocale:d,renderSettings:g,runtimeTranslationEnabled:m}),T=St(k,S,d,f,p,m,E,g),j=Ot(i,k,s,S,d,f,p,m,E,g),C=!(f&&!k)&&S;return r.jsx(o.Provider,{value:{registerContentForTranslation:E,registerJsxForTranslation:A,setLocale:e=>{e=t.determineLocale(e,v)||S||d,document.cookie=`${w}=${e};path=/`,O(e),x(),window.location.reload()},_internalUseGTFunction:T,_internalUseDictFunction:j,locale:S,locales:v,defaultLocale:d,translations:k,messages:s,translationRequired:f,dialectTranslationRequired:p,renderSettings:g,runtimeTranslationEnabled:m},children:C&&n})},exports.Currency=y,exports.DateTime=_,exports.GTContext=o,exports.GTProvider=function(i){var{children:c,projectId:p="",devApiKey:v,dictionary:g,locales:y=[],defaultLocale:_=f,locale:b,cacheUrl:m=u,runtimeUrl:x=d,renderSettings:w=$t,loadMessages:k,loadTranslation:B,_versionId:S}=i,O=a(i,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:E,devApiKey:A}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||(void 0).REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY||(void 0).REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(p,v);y=e.useMemo((()=>(y.unshift(_),Array.from(new Set(y)))),[_,y]);const[T,j]=function({locale:r="",defaultLocale:n=f,locales:o=[],cookieName:i=h}){const[a,s]=e.useState(r&&t.determineLocale(r,o)||"");return e.useEffect((()=>{var e;if(r&&r===a&&t.determineLocale(r,o)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===e?void 0:e.split("=")[1],u=t.determineLocale([...r?[r]:[],...l?[l]:[],...c],o)||n;l&&l!==u&&(document.cookie=`${i}=${u};path=/`),s(u)}),[n,o]),[a,e=>{const r=t.determineLocale(e,o)||a||n;r!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(r,e)),s(r),document.cookie=`${i}=${r};path=/`}]}({defaultLocale:_,locales:y,locale:b}),C=e.useMemo((()=>!!(E&&x&&A&&"development"===process.env.NODE_ENV)),[E,x,A]),H=e.useMemo((()=>(B?"custom":m&&"default")||"disabled"),[B]),[P,z]=e.useState(g);e.useEffect((()=>{if(P||!k)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){var r;let n;try{n=yield k(_)}catch(e){}const o=null===(r=t.getLocaleProperties(_))||void 0===r?void 0:r.languageCode;if(!P&&o&&o!==_)try{n=yield k(o)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&z(n||{})}))})(),()=>{e=!1}}),[P,k]),e.useMemo((()=>{if("production"===process.env.NODE_ENV&&A)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===H||!m&&!x||E||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),E&&x&&"custom"!==H&&!A&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),x===d||m===u&&"default"===H){const e=(y||y).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:r}=t.getLocaleProperties(e);return`${e} (${r})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,A,H,m,x,E,y]);const[R,D]=e.useMemo((()=>{const e=t.requiresTranslation(_,T,y);return[e,e&&t.isSameLanguage(_,T)]}),[_,T,y]),[L,I]=e.useState(R?null:{});e.useEffect((()=>I(R?null:{})),[T]);const[F,M]=e.useState(R?null:{});e.useEffect((()=>M(R?null:{})),[T]);const{registerContentForTranslation:N,registerJsxForTranslation:U}=l(Object.assign({locale:T,versionId:S,projectId:E,runtimeTranslationEnabled:C,defaultLocale:_,devApiKey:A,runtimeUrl:x,renderSettings:w,setTranslations:M},O));e.useEffect((()=>{if(L||!R||!k)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){let t={};try{t=yield k(T)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(T),e)}e&&I(t)}))})(),()=>{e=!1}}),[T,k,R,L]),e.useEffect((()=>{if(F||!R)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){let t;switch(H){case"custom":if(B)try{t=yield B(T)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(T),e)}break;case"default":try{t=yield function(e){return s(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const o=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield o.json()}))}({cacheUrl:m,projectId:E,locale:T,versionId:S})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&M(t)}))})(),()=>{e=!1}}),[F,R,H,m,E,T,S]);const $=St(F,T,_,R,D,C,N,w),V=Ot(P,F,L,T,_,R,D,C,N,w),W=!(R&&!F||!T);return r.jsx(o.Provider,{value:{registerContentForTranslation:N,registerJsxForTranslation:U,_internalUseGTFunction:$,_internalUseDictFunction:V,runtimeTranslationEnabled:C,locale:T,locales:y,setLocale:j,defaultLocale:_,translations:F,messages:L,translationRequired:R,dialectTranslationRequired:D,projectId:E,renderSettings:w},children:W&&c})},exports.LocaleSelector=function(e){var{locales:n}=e,o=a(e,["locales"]);const{locale:i,locales:s,setLocale:c}=qt(n||void 0),l=e=>{return(r=t.getLocaleProperties(e).nativeNameWithRegionCode)?r.charAt(0).toUpperCase()+(r.length>1?r.slice(1):""):"";var r};return s&&0!==s.length&&c?r.jsxs("select",Object.assign({},o,{value:i||"",onChange:e=>c(e.target.value),children:[!i&&r.jsx("option",{value:""}),s.map((e=>r.jsx("option",{value:e,suppressHydrationWarning:!0,children:l(e)},e)))]})):null},exports.Num=v,exports.Plural=Vt,exports.T=Gt,exports.Var=g,exports.renderVariable=b,exports.useDefaultLocale=function(){return i("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=i(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const o=t(e);return r(o,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=i("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Wt,exports.useLocaleSelector=qt,exports.useLocales=Kt,exports.useRuntimeTranslation=l,exports.useSetLocale=Jt;
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
17
  */
18
- function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?g(f,b,m)+T[3]:y(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,O)+j[0]:r<32?g(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ce.exports;var e}(),Pe(),function(){return Re||(Re=1,De.exports=(c=X(),be(),Pe(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=i.finalize(v),i.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),De.exports;var e,t,r,n,i,o,a,s,c}(),Ne(),Ue(),Ve(),Je(),Ye(),et(),function(){return tt?rt.exports:(tt=1,rt.exports=(t=X(),Ue(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return nt?it.exports:(nt=1,it.exports=(e=X(),Ue(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return ot?at.exports:(ot=1,at.exports=(e=X(),Ue(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=X(),Ue(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return lt||(lt=1,ut.exports=(e=X(),Ue(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),ut.exports;var e}(),function(){return dt?ft.exports:(dt=1,ft.exports=(e=X(),Ue(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return ht?pt.exports:(ht=1,pt.exports=(n=X(),Ue(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return vt||(vt=1,gt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),gt.exports;var e}(),bt(),function(){return mt||(mt=1,xt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),xt.exports;var e}(),function(){return wt||(wt=1,kt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),kt.exports;var e}(),function(){return Bt||(Bt=1,Ot.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Ot.exports;var e}(),Et())),V.exports),It=M(Dt),Ft=function(){return Ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ft.apply(this,arguments)};function Nt(e){return It.SHA256(e).toString(It.enc.Hex)}function Lt(e,t){var r=e.source,n=e.context,i=e.id,o=e.type;return void 0===t&&(t=Nt),t(W(Ft(Ft(Ft({source:Ut(r)},i&&{id:i}),n&&{context:n}),o&&{type:o})))}"function"==typeof SuppressedError&&SuppressedError;var Mt=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Ut(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Ut(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Ft({key:e.key},e.variable&&{variable:e.variable})}return e};function Ut(e){return Array.isArray(e)?e.map(Mt):Mt(e)}function $t(e,t,r,n,i,o,a,c){return s(((s,l={})=>{if(!s||"string"!=typeof s)return"";const u=h(s),d=(e,t)=>p(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=Lt(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),v=null==e?void 0:e[f];return"success"===(null==v?void 0:v.state)?d(v.target,[t,r]):"error"===(null==v?void 0:v.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===c.method?d(u,[r]):"skeleton"===c.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}function Wt(t,r,n,i,o,a,c,l,u,d){return s(((s,f={})=>{if(!t)return"";const v=function(t,r){let n=t,i=r.split(".");for(const t of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(t,s);if(!v)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(s)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(v))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(s)),"";const{entry:g,metadata:y}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(v);if(!g||"string"!=typeof g)return"";const _=h(g),b=(e,t)=>p(e,t,f.variables,f.variablesOptions);if(!a)return b(_,[o]);const m=null==n?void 0:n[s];if(m)return p(h(m),[i,o],f.variables,f.variablesOptions);let x=Lt(Object.assign(Object.assign({source:_},(null==y?void 0:y.context)&&{context:y.context}),{id:s})),w=null==r?void 0:r[x];return"success"===(null==w?void 0:w.state)?b(w.target,[i,o]):"error"===(null==w?void 0:w.state)?b(_,[o]):l?(u({source:_,targetLocale:i,metadata:Object.assign(Object.assign({},(null==y?void 0:y.context)&&{context:y.context}),{id:s,hash:x})}),"replace"===d.method?b(_,[o]):"skeleton"===d.method?"":c?b(_,[o]):""):b(_,[o])}),[t,r,i,o,a,l,u,c])}function Vt({children:e,dictionary:t,initialTranslations:r,messages:i,locale:a,_versionId:s,defaultLocale:c,translationRequired:l,dialectTranslationRequired:u,locales:d=[],renderSettings:f,projectId:h,devApiKey:p,runtimeUrl:g,runtimeTranslationEnabled:y,onLocaleChange:b=()=>{},cookieName:m=C}){const[x,k]=n(p?null:r),[B,O]=n(a&&v(a,d)||"");o((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${m}=`))))||void 0===e?void 0:e.split("=")[1];B&&t&&t!==B&&(document.cookie=`${m}=${B};path=/`)}),[B]);o((()=>{k((e=>Object.assign(Object.assign({},r),e)))}),[r]);const{registerContentForTranslation:S,registerJsxForTranslation:E}=A({locale:B,versionId:s,projectId:h,devApiKey:p,runtimeUrl:g,setTranslations:k,defaultLocale:c,renderSettings:f,runtimeTranslationEnabled:y}),T=$t(x,B,c,l,u,y,S,f),j=Wt(t,x,i,B,c,l,u,y,S,f),H=!(l&&!x)&&B;return _(w.Provider,{value:{registerContentForTranslation:S,registerJsxForTranslation:E,setLocale:e=>{e=v(e,d)||B||c,document.cookie=`${m}=${e};path=/`,O(e),b(),window.location.reload()},_internalUseGTFunction:T,_internalUseDictFunction:j,locale:B,locales:d,defaultLocale:c,translations:x,messages:i,translationRequired:l,dialectTranslationRequired:u,renderSettings:f,runtimeTranslationEnabled:y},children:H&&e})}function Gt(e){var{children:t,name:r="branch",branch:n}=e,i=B(e,["children","name","branch"]);const{"data-_gt":o}=i,a=B(i,["data-_gt"]),s=(n=null==n?void 0:n.toString())&&void 0!==a[n]?a[n]:t;return _("span",{"data-_gt":o,"data-_gt-branch-name":n,"data-_gt-name":r||"branch",style:{display:"contents"},children:s})}function Kt(t,r=0){let n=r;const i=e=>{const{type:t,props:r}=e;n+=1;let i,o={id:n};try{i="function"==typeof t&&t.gtTransformation||""}catch(e){i=""}if(i){const t=i.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return H.includes(e)}(t)&&(e[t]=Kt(r,n)),e)),{});Object.keys(e).length&&(o.branches=e)}if("branch"===t[0]){const e=B(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=Kt(r,n),e)),{});Object.keys(t).length&&(o.branches=t)}o.transformation=t[0]}return o};function o(t){return c(t)?function(t){const{props:r}=t;if(r["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let n=i(t),o=Object.assign(Object.assign({},r),{"data-_gt":n});if(r.children&&!n.variableType&&(o.children=a(r.children)),t.type===e.Fragment)return o["data-_gt"].transformation,_("span",Object.assign({style:{all:"unset",display:"contents"}},o));return e.cloneElement(t,o)}(t):t}function a(t){return Array.isArray(t)?e.Children.map(t,o):o(t)}return a(t)}Gt.gtTransformation="branch";const Jt={variable:"value",number:"n",datetime:"date",currency:"cost"};function Xt(e="variable"){return Jt[e]||"variable"}const qt="_gt_";function Yt(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${qt}${Jt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Zt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},Qt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Zt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const i=e.transformation;if("variable"===i){const t=e.variableType||"variable";return{variable:t,key:Yt(r,t),id:e.id}}if("plural"===i&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===i&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=er(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function er(e){return Array.isArray(e)?e.map(Qt):Qt(e)}function tr(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=H),void 0===r&&(r=[j]);var n=new Intl.PluralRules(r).select(e),i=Math.abs(e);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){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&&!i&&(i=r[n]),i}function rr(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Yt(e,r),variableValue:void 0!==e.value?e.value:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},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 nr(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function ir(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function or({children:t,variables:r={},variablesOptions:n={},defaultLocale:i=j,renderVariable:o}){const a=t=>e.isValidElement(t)?(t=>{const a=ir(t);if("variable"===(null==a?void 0:a.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=rr(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(qt)){const e=Xt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),o({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[i]})}if("plural"===(null==a?void 0:a.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=a.branches||{};return s(tr(e,[i],n)||t.props.children)}if("branch"===(null==a?void 0:a.transformation)){let e=t.props,{children:n,name:i,branch:o,"data-_gt":c}=e,l=B(e,["children","name","branch","data-_gt"]);return i=i||t.props["data-_gt-name"]||"branch",o=r[i]||o||t.props["data-_gt-branch-name"],l=a.branches||{},s(void 0!==l[o]?l[o]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:s(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,s=t=>Array.isArray(t)?e.Children.map(t,a):a(t);return s(t)}function ar({sourceElement:t,targetElement:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=tr(e,o,l.branches||{})||t.props.children,c=tr(e,o,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),sr({source:s,target:c,variables:n,variablesOptions:i,locales:o,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return sr({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:sr({source:c.children,target:r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})})):or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}function sr({source:t,target:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){if(null==r&&t)return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const s=t.filter((t=>{if(e.isValidElement(t)){const e=ir(t);if(rr(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:o,variableType:a}=rr(t.props);void 0===n[e]&&(n[e]=r);const s=Xt(a);void 0===n[s]&&(n[s]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}})),c=e=>s.find((t=>{var r,n;const i=ir(t);if(void 0!==(null==i?void 0:i.id)){return i.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return r.map(((t,r)=>{if("string"==typeof t)return _(e.Fragment,{children:t},`string_${r}`);if(nr(t)){const s=t.key,c=t.variable||"variable",l=(()=>{if(void 0!==n[t.key])return n[t.key];if(s.startsWith(qt)){const e=Xt(c);if(void 0!==n[e])return n[e]}})();return _(e.Fragment,{children:a({variableType:c,variableName:s,variableValue:l,variableOptions:i[t.key],locales:o})},`var_${r}`)}const s=c(t);return s?_(e.Fragment,{children:ar({sourceElement:s,targetElement:t,variables:n,variablesOptions:i,locales:o,renderVariable:a})},`element_${r}`):void 0}))}if(r&&"object"==typeof r&&!Array.isArray(r)){const s=nr(r)?"variable":"element";if(e.isValidElement(t)){if("element"===s)return ar({sourceElement:t,targetElement:r,variables:n,variablesOptions:i,locales:o,renderVariable:a});const e=ir(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:o}=rr(t.props);void 0===n[e]&&(n[e]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}if("variable"===s){const e=r,t=e.key,s=e.variable||"variable",c=(()=>{if(void 0!==n[e.key])return n[e.key];if(t.startsWith(qt)){const e=Xt(s);if(void 0!==n[e])return n[e]}})();return a({variableType:s,variableName:t,variableValue:c,variableOptions:i[e.key]||{},locales:o})}}return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}const cr={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function lr(e){var{children:t,n:n,locale:i}=e,o=B(e,["children","n","locale"]);const{"data-_gt":a}=o,s=B(o,["data-_gt"]),c=r(w);let l;c&&(i||(i=c.locale),l||(l=c.defaultLocale));const u=[...i?[i]:[],l||j];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(t));const d=tr(n,u,s)||t;return _("span",{"data-_gt":a,"data-_gt-n":n,style:{display:"contents"},children:d})}function ur(){const{_internalUseGTFunction:e}=k("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function dr(){return k("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function fr(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=k(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function hr(){return k("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function pr({children:e,id:t,context:r}){if(!e)return;const{translations:n,translationRequired:i,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=k("<T> used on the client-side outside of <GTProvider>"),h=a((()=>Kt(e)),[e]),[p,v]=a((()=>{if(i){const e=er(h);return[e,Lt(Object.assign(Object.assign({source:e},r&&{context:r}),t&&{id:t}))]}return[void 0,""]}),[r,h,i,e]),g=null==n?void 0:n[v];o((()=>{s&&i&&n&&d&&!g&&l({source:p,targetLocale:d,metadata:{id:t,hash:v,context:r}})}),[s,n,g,i,t,v,r,d,e]);const y=()=>or({children:h,defaultLocale:f,renderVariable:I});if(!i||n&&!g&&!s||"error"===(null==g?void 0:g.state))return _(b,{children:y()});if(!g||"loading"===(null==g?void 0:g.state)){let e;return e="skeleton"===u.method?"":"replace"===u.method||c?y():"",_(b,{children:e})}return _(b,{children:(m=g.target,sr({source:h,target:m,locales:[d,f],renderVariable:I}))});var m}function vr(){return k("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function gr(){const{setLocale:e}=k("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function yr(e){const t=hr(),r=vr(),n=gr(),i=a((()=>{if(!r||0===r.length)return[];const e=r.sort(((e,t)=>(new Intl.Collator).compare(l(e).nativeNameWithRegionCode,l(t).nativeNameWithRegionCode)));return e}),[r]);return{locale:t,locales:e||i,setLocale:n}}function _r(e){var{locales:t}=e,r=B(e,["locales"]);const{locale:n,locales:i,setLocale:o}=yr(t||void 0),a=e=>{return(t=l(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return i&&0!==i.length&&o?m("select",Object.assign({},r,{value:n||"",onChange:e=>o(e.target.value),children:[!n&&_("option",{value:""}),i.map((e=>_("option",{value:e,suppressHydrationWarning:!0,children:a(e)},e)))]})):null}function br(e){var{children:t,projectId:r="",devApiKey:i,dictionary:s,locales:c=[],defaultLocale:u=j,locale:d,cacheUrl:f=E,runtimeUrl:h=T,renderSettings:p=cr,loadMessages:b,loadTranslation:m,_versionId:k}=e,S=B(e,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:H,devApiKey:z}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||import.meta.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY||import.meta.env.REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(r,i);c=a((()=>(c.unshift(u),Array.from(new Set(c)))),[u,c]);const[P,R]=function({locale:e="",defaultLocale:t=j,locales:r=[],cookieName:i=C}){const[a,s]=n(e&&v(e,r)||"");return o((()=>{var n;if(e&&e===a&&v(e,r)===a)return;const o=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(n=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===n?void 0:n.split("=")[1],l=v([...e?[e]:[],...c?[c]:[],...o],r)||t;c&&c!==l&&(document.cookie=`${i}=${l};path=/`),s(l)}),[t,r]),[a,e=>{const n=v(e,r)||a||t;n!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(n,e)),s(n),document.cookie=`${i}=${n};path=/`}]}({defaultLocale:u,locales:c,locale:d}),D=a((()=>!!(H&&h&&z&&"development"===process.env.NODE_ENV)),[H,h,z]),I=a((()=>(m?"custom":f&&"default")||"disabled"),[m]),[F,N]=n(s);o((()=>{if(F||!b)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){var t;let r;try{r=yield b(u)}catch(e){}const n=null===(t=l(u))||void 0===t?void 0:t.languageCode;if(!F&&n&&n!==u)try{r=yield b(n)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&N(r||{})}))})(),()=>{e=!1}}),[F,b]),a((()=>{if("production"===process.env.NODE_ENV&&z)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===I||!f&&!h||H||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),H&&h&&"custom"!==I&&!z&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),h===T||f===E&&"default"===I){const e=(c||c).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=l(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,z,I,f,h,H,c]);const[L,M]=a((()=>{const e=g(u,P,c);return[e,e&&y(u,P)]}),[u,P,c]),[U,$]=n(L?null:{});o((()=>$(L?null:{})),[P]);const[W,V]=n(L?null:{});o((()=>V(L?null:{})),[P]);const{registerContentForTranslation:G,registerJsxForTranslation:K}=A(Object.assign({locale:P,versionId:k,projectId:H,runtimeTranslationEnabled:D,defaultLocale:u,devApiKey:z,runtimeUrl:h,renderSettings:p,setTranslations:V},S));o((()=>{if(U||!L||!b)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){let t={};try{t=yield b(P)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(P),e)}e&&$(t)}))})(),()=>{e=!1}}),[P,b,L,U]),o((()=>{if(W||!L)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){let t;switch(I){case"custom":if(m)try{t=yield m(P)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(P),e)}break;case"default":try{t=yield function(e){return O(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:f,projectId:H,locale:P,versionId:k})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&V(t)}))})(),()=>{e=!1}}),[W,L,I,f,H,P,k]);const J=$t(W,P,u,L,M,D,G,p),X=Wt(F,W,U,P,u,L,M,D,G,p),q=!(L&&!W||!P);return _(w.Provider,{value:{registerContentForTranslation:G,registerJsxForTranslation:K,_internalUseGTFunction:J,_internalUseDictFunction:X,runtimeTranslationEnabled:D,locale:P,locales:c,setLocale:R,defaultLocale:u,translations:W,messages:U,translationRequired:L,dialectTranslationRequired:M,projectId:H,renderSettings:p},children:q&&t})}lr.gtTransformation="plural",pr.gtTransformation="translate-client";export{Gt as Branch,Vt as ClientProvider,R as Currency,D as DateTime,w as GTContext,br as GTProvider,_r as LocaleSelector,z as Num,lr as Plural,pr as T,P as Var,I as renderVariable,dr as useDefaultLocale,fr as useDict,ur as useGT,hr as useLocale,yr as useLocaleSelector,vr as useLocales,A as useRuntimeTranslation,gr as useSetLocale};
18
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?g(f,b,m)+T[3]:y(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,O)+j[0]:r<32?g(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ce.exports;var e}(),Pe(),function(){return Re||(Re=1,De.exports=(c=X(),be(),Pe(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=i.finalize(v),i.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),De.exports;var e,t,r,n,i,o,a,s,c}(),Ne(),Ue(),Ve(),Je(),Ye(),et(),function(){return tt?rt.exports:(tt=1,rt.exports=(t=X(),Ue(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return nt?it.exports:(nt=1,it.exports=(e=X(),Ue(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return ot?at.exports:(ot=1,at.exports=(e=X(),Ue(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=X(),Ue(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return lt||(lt=1,ut.exports=(e=X(),Ue(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),ut.exports;var e}(),function(){return dt?ft.exports:(dt=1,ft.exports=(e=X(),Ue(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return ht?pt.exports:(ht=1,pt.exports=(n=X(),Ue(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return vt||(vt=1,gt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),gt.exports;var e}(),bt(),function(){return mt||(mt=1,xt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),xt.exports;var e}(),function(){return wt||(wt=1,kt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),kt.exports;var e}(),function(){return Bt||(Bt=1,Ot.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Ot.exports;var e}(),Et())),V.exports),It=M(Dt),Ft=function(){return Ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ft.apply(this,arguments)};function Nt(e){return It.SHA256(e).toString(It.enc.Hex)}function Lt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Nt),t(W(Ft(Ft({source:Ut(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var Mt=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Ut(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Ut(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Ft({key:e.key},e.variable&&{variable:e.variable})}return e};function Ut(e){return Array.isArray(e)?e.map(Mt):Mt(e)}function $t(e,t,r,n,i,o,a,c){return s(((s,l={})=>{if(!s||"string"!=typeof s)return"";const u=h(s),d=(e,t)=>p(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=Lt(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),v=null==e?void 0:e[f];return"success"===(null==v?void 0:v.state)?d(v.target,[t,r]):"error"===(null==v?void 0:v.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===c.method?d(u,[r]):"skeleton"===c.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}function Wt(t,r,n,i,o,a,c,l,u,d){return s(((s,f={})=>{if(!t)return"";const v=function(t,r){let n=t,i=r.split(".");for(const t of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(t,s);if(!v)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(s)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(v))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(s)),"";const{entry:g,metadata:y}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(v);if(!g||"string"!=typeof g)return"";const _=h(g),b=(e,t)=>p(e,t,f.variables,f.variablesOptions);if(!a)return b(_,[o]);const m=null==n?void 0:n[s];if(m)return p(h(m),[i,o],f.variables,f.variablesOptions);let x=Lt(Object.assign(Object.assign({source:_},(null==y?void 0:y.context)&&{context:y.context}),{id:s})),w=null==r?void 0:r[x];return"success"===(null==w?void 0:w.state)?b(w.target,[i,o]):"error"===(null==w?void 0:w.state)?b(_,[o]):l?(u({source:_,targetLocale:i,metadata:Object.assign(Object.assign({},(null==y?void 0:y.context)&&{context:y.context}),{id:s,hash:x})}),"replace"===d.method?b(_,[o]):"skeleton"===d.method?"":c?b(_,[o]):""):b(_,[o])}),[t,r,i,o,a,l,u,c])}function Vt({children:e,dictionary:t,initialTranslations:r,messages:i,locale:a,_versionId:s,defaultLocale:c,translationRequired:l,dialectTranslationRequired:u,locales:d=[],renderSettings:f,projectId:h,devApiKey:p,runtimeUrl:g,runtimeTranslationEnabled:y,onLocaleChange:b=()=>{},cookieName:m=C}){const[x,k]=n(p?null:r),[B,O]=n(a&&v(a,d)||"");o((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${m}=`))))||void 0===e?void 0:e.split("=")[1];B&&t&&t!==B&&(document.cookie=`${m}=${B};path=/`)}),[B]);o((()=>{k((e=>Object.assign(Object.assign({},r),e)))}),[r]);const{registerContentForTranslation:S,registerJsxForTranslation:E}=A({locale:B,versionId:s,projectId:h,devApiKey:p,runtimeUrl:g,setTranslations:k,defaultLocale:c,renderSettings:f,runtimeTranslationEnabled:y}),T=$t(x,B,c,l,u,y,S,f),j=Wt(t,x,i,B,c,l,u,y,S,f),H=!(l&&!x)&&B;return _(w.Provider,{value:{registerContentForTranslation:S,registerJsxForTranslation:E,setLocale:e=>{e=v(e,d)||B||c,document.cookie=`${m}=${e};path=/`,O(e),b(),window.location.reload()},_internalUseGTFunction:T,_internalUseDictFunction:j,locale:B,locales:d,defaultLocale:c,translations:x,messages:i,translationRequired:l,dialectTranslationRequired:u,renderSettings:f,runtimeTranslationEnabled:y},children:H&&e})}function Gt(e){var{children:t,name:r="branch",branch:n}=e,i=B(e,["children","name","branch"]);const{"data-_gt":o}=i,a=B(i,["data-_gt"]),s=(n=null==n?void 0:n.toString())&&void 0!==a[n]?a[n]:t;return _("span",{"data-_gt":o,"data-_gt-branch-name":n,"data-_gt-name":r||"branch",style:{display:"contents"},children:s})}function Kt(t,r=0){let n=r;const i=e=>{const{type:t,props:r}=e;n+=1;let i,o={id:n};try{i="function"==typeof t&&t.gtTransformation||""}catch(e){i=""}if(i){const t=i.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return H.includes(e)}(t)&&(e[t]=Kt(r,n)),e)),{});Object.keys(e).length&&(o.branches=e)}if("branch"===t[0]){const e=B(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=Kt(r,n),e)),{});Object.keys(t).length&&(o.branches=t)}o.transformation=t[0]}return o};function o(t){return c(t)?function(t){const{props:r}=t;if(r["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let n=i(t),o=Object.assign(Object.assign({},r),{"data-_gt":n});if(r.children&&!n.variableType&&(o.children=a(r.children)),t.type===e.Fragment)return o["data-_gt"].transformation,_("span",Object.assign({style:{all:"unset",display:"contents"}},o));return e.cloneElement(t,o)}(t):t}function a(t){return Array.isArray(t)?e.Children.map(t,o):o(t)}return a(t)}Gt.gtTransformation="branch";const Jt={variable:"value",number:"n",datetime:"date",currency:"cost"};function Xt(e="variable"){return Jt[e]||"variable"}const qt="_gt_";function Yt(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${qt}${Jt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Zt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},Qt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Zt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const i=e.transformation;if("variable"===i){const t=e.variableType||"variable";return{variable:t,key:Yt(r,t),id:e.id}}if("plural"===i&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===i&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=er(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function er(e){return Array.isArray(e)?e.map(Qt):Qt(e)}function tr(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=H),void 0===r&&(r=[j]);var n=new Intl.PluralRules(r).select(e),i=Math.abs(e);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){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&&!i&&(i=r[n]),i}function rr(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Yt(e,r),variableValue:void 0!==e.value?e.value:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},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 nr(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function ir(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function or({children:t,variables:r={},variablesOptions:n={},defaultLocale:i=j,renderVariable:o}){const a=t=>e.isValidElement(t)?(t=>{const a=ir(t);if("variable"===(null==a?void 0:a.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=rr(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(qt)){const e=Xt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),o({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[i]})}if("plural"===(null==a?void 0:a.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=a.branches||{};return s(tr(e,[i],n)||t.props.children)}if("branch"===(null==a?void 0:a.transformation)){let e=t.props,{children:n,name:i,branch:o,"data-_gt":c}=e,l=B(e,["children","name","branch","data-_gt"]);return i=i||t.props["data-_gt-name"]||"branch",o=r[i]||o||t.props["data-_gt-branch-name"],l=a.branches||{},s(void 0!==l[o]?l[o]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:s(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,s=t=>Array.isArray(t)?e.Children.map(t,a):a(t);return s(t)}function ar({sourceElement:t,targetElement:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=tr(e,o,l.branches||{})||t.props.children,c=tr(e,o,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),sr({source:s,target:c,variables:n,variablesOptions:i,locales:o,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return sr({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:sr({source:c.children,target:r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})})):or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}function sr({source:t,target:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){if(null==r&&t)return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const s=t.filter((t=>{if(e.isValidElement(t)){const e=ir(t);if(rr(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:o,variableType:a}=rr(t.props);void 0===n[e]&&(n[e]=r);const s=Xt(a);void 0===n[s]&&(n[s]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}})),c=e=>s.find((t=>{var r,n;const i=ir(t);if(void 0!==(null==i?void 0:i.id)){return i.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return r.map(((t,r)=>{if("string"==typeof t)return _(e.Fragment,{children:t},`string_${r}`);if(nr(t)){const s=t.key,c=t.variable||"variable",l=(()=>{if(void 0!==n[t.key])return n[t.key];if(s.startsWith(qt)){const e=Xt(c);if(void 0!==n[e])return n[e]}})();return _(e.Fragment,{children:a({variableType:c,variableName:s,variableValue:l,variableOptions:i[t.key],locales:o})},`var_${r}`)}const s=c(t);return s?_(e.Fragment,{children:ar({sourceElement:s,targetElement:t,variables:n,variablesOptions:i,locales:o,renderVariable:a})},`element_${r}`):void 0}))}if(r&&"object"==typeof r&&!Array.isArray(r)){const s=nr(r)?"variable":"element";if(e.isValidElement(t)){if("element"===s)return ar({sourceElement:t,targetElement:r,variables:n,variablesOptions:i,locales:o,renderVariable:a});const e=ir(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:o}=rr(t.props);void 0===n[e]&&(n[e]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}if("variable"===s){const e=r,t=e.key,s=e.variable||"variable",c=(()=>{if(void 0!==n[e.key])return n[e.key];if(t.startsWith(qt)){const e=Xt(s);if(void 0!==n[e])return n[e]}})();return a({variableType:s,variableName:t,variableValue:c,variableOptions:i[e.key]||{},locales:o})}}return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}const cr={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function lr(e){var{children:t,n:n,locale:i}=e,o=B(e,["children","n","locale"]);const{"data-_gt":a}=o,s=B(o,["data-_gt"]),c=r(w);let l;c&&(i||(i=c.locale),l||(l=c.defaultLocale));const u=[...i?[i]:[],l||j];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(t));const d=tr(n,u,s)||t;return _("span",{"data-_gt":a,"data-_gt-n":n,style:{display:"contents"},children:d})}function ur(){const{_internalUseGTFunction:e}=k("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function dr(){return k("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function fr(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=k(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function hr(){return k("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function pr({children:e,id:t,context:r}){if(!e)return;const{translations:n,translationRequired:i,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=k("<T> used on the client-side outside of <GTProvider>"),h=a((()=>Kt(e)),[e]),[p,v]=a((()=>{if(i){const e=er(h);return[e,Lt(Object.assign(Object.assign({source:e},r&&{context:r}),t&&{id:t}))]}return[void 0,""]}),[r,h,i,e]),g=null==n?void 0:n[v];o((()=>{s&&i&&n&&d&&!g&&l({source:p,targetLocale:d,metadata:{id:t,hash:v,context:r}})}),[s,n,g,i,t,v,r,d,e]);const y=()=>or({children:h,defaultLocale:f,renderVariable:I});if(!i||n&&!g&&!s||"error"===(null==g?void 0:g.state))return _(b,{children:y()});if(!g||"loading"===(null==g?void 0:g.state)){let e;return e="skeleton"===u.method?"":"replace"===u.method||c?y():"",_(b,{children:e})}return _(b,{children:(m=g.target,sr({source:h,target:m,locales:[d,f],renderVariable:I}))});var m}function vr(){return k("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function gr(){const{setLocale:e}=k("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function yr(e){const t=hr(),r=vr(),n=gr(),i=a((()=>{if(!r||0===r.length)return[];const e=r.sort(((e,t)=>(new Intl.Collator).compare(l(e).nativeNameWithRegionCode,l(t).nativeNameWithRegionCode)));return e}),[r]);return{locale:t,locales:e||i,setLocale:n}}function _r(e){var{locales:t}=e,r=B(e,["locales"]);const{locale:n,locales:i,setLocale:o}=yr(t||void 0),a=e=>{return(t=l(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return i&&0!==i.length&&o?m("select",Object.assign({},r,{value:n||"",onChange:e=>o(e.target.value),children:[!n&&_("option",{value:""}),i.map((e=>_("option",{value:e,suppressHydrationWarning:!0,children:a(e)},e)))]})):null}function br(e){var{children:t,projectId:r="",devApiKey:i,dictionary:s,locales:c=[],defaultLocale:u=j,locale:d,cacheUrl:f=E,runtimeUrl:h=T,renderSettings:p=cr,loadMessages:b,loadTranslation:m,_versionId:k}=e,S=B(e,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:H,devApiKey:z}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||import.meta.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY||import.meta.env.REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(r,i);c=a((()=>(c.unshift(u),Array.from(new Set(c)))),[u,c]);const[P,R]=function({locale:e="",defaultLocale:t=j,locales:r=[],cookieName:i=C}){const[a,s]=n(e&&v(e,r)||"");return o((()=>{var n;if(e&&e===a&&v(e,r)===a)return;const o=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(n=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===n?void 0:n.split("=")[1],l=v([...e?[e]:[],...c?[c]:[],...o],r)||t;c&&c!==l&&(document.cookie=`${i}=${l};path=/`),s(l)}),[t,r]),[a,e=>{const n=v(e,r)||a||t;n!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(n,e)),s(n),document.cookie=`${i}=${n};path=/`}]}({defaultLocale:u,locales:c,locale:d}),D=a((()=>!!(H&&h&&z&&"development"===process.env.NODE_ENV)),[H,h,z]),I=a((()=>(m?"custom":f&&"default")||"disabled"),[m]),[F,N]=n(s);o((()=>{if(F||!b)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){var t;let r;try{r=yield b(u)}catch(e){}const n=null===(t=l(u))||void 0===t?void 0:t.languageCode;if(!F&&n&&n!==u)try{r=yield b(n)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&N(r||{})}))})(),()=>{e=!1}}),[F,b]),a((()=>{if("production"===process.env.NODE_ENV&&z)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===I||!f&&!h||H||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),H&&h&&"custom"!==I&&!z&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),h===T||f===E&&"default"===I){const e=(c||c).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=l(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,z,I,f,h,H,c]);const[L,M]=a((()=>{const e=g(u,P,c);return[e,e&&y(u,P)]}),[u,P,c]),[U,$]=n(L?null:{});o((()=>$(L?null:{})),[P]);const[W,V]=n(L?null:{});o((()=>V(L?null:{})),[P]);const{registerContentForTranslation:G,registerJsxForTranslation:K}=A(Object.assign({locale:P,versionId:k,projectId:H,runtimeTranslationEnabled:D,defaultLocale:u,devApiKey:z,runtimeUrl:h,renderSettings:p,setTranslations:V},S));o((()=>{if(U||!L||!b)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){let t={};try{t=yield b(P)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(P),e)}e&&$(t)}))})(),()=>{e=!1}}),[P,b,L,U]),o((()=>{if(W||!L)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){let t;switch(I){case"custom":if(m)try{t=yield m(P)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(P),e)}break;case"default":try{t=yield function(e){return O(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:f,projectId:H,locale:P,versionId:k})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&V(t)}))})(),()=>{e=!1}}),[W,L,I,f,H,P,k]);const J=$t(W,P,u,L,M,D,G,p),X=Wt(F,W,U,P,u,L,M,D,G,p),q=!(L&&!W||!P);return _(w.Provider,{value:{registerContentForTranslation:G,registerJsxForTranslation:K,_internalUseGTFunction:J,_internalUseDictFunction:X,runtimeTranslationEnabled:D,locale:P,locales:c,setLocale:R,defaultLocale:u,translations:W,messages:U,translationRequired:L,dialectTranslationRequired:M,projectId:H,renderSettings:p},children:q&&t})}lr.gtTransformation="plural",pr.gtTransformation="translate-client";export{Gt as Branch,Vt as ClientProvider,R as Currency,D as DateTime,w as GTContext,br as GTProvider,_r as LocaleSelector,z as Num,lr as Plural,pr as T,P as Var,I as renderVariable,dr as useDefaultLocale,fr as useDict,ur as useGT,hr as useLocale,yr as useLocaleSelector,vr as useLocales,A as useRuntimeTranslation,gr as useSetLocale};
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
17
  */
18
- function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,i=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,m,x,w,k,B,S,O,A,E=this._hash.words,j=u.words,T=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=i=E[0],k=f=E[1],B=b=E[2],S=m=E[3],O=x=E[4],r=0;r<80;r+=1)A=i+e[t+C[r]]|0,A+=r<16?h(f,b,m)+j[0]:r<32?p(f,b,m)+j[1]:r<48?v(f,b,m)+j[2]:r<64?g(f,b,m)+j[3]:y(f,b,m)+j[4],A=(A=_(A|=0,P[r]))+x|0,i=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,S)+T[0]:r<32?g(k,B,S)+T[1]:r<48?v(k,B,S)+T[2]:r<64?p(k,B,S)+T[3]:h(k,B,S)+T[4],A=(A=_(A|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=A;A=E[1]+b+S|0,E[1]=E[2]+m+O|0,E[2]=E[3]+x+w|0,E[3]=E[4]+i+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160)),Ae.exports;var e}(),Te(),function(){return Ce||(Ce=1,He.exports=(c=$(),ve(),Te(),t=(e=c).lib,r=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,o=a.create(r.hasher,e),i=n.create(),s=n.create([1]),c=i.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=o.update(t).finalize(s);o.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=o.finalize(v),o.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}i.concat(f),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),He.exports;var e,t,r,n,o,i,a,s,c}(),De(),Le(),Ne(),We(),Ke(),qe(),function(){return Ye?Ze.exports:(Ye=1,Ze.exports=(t=$(),Le(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Qe?et.exports:(Qe=1,et.exports=(e=$(),Le(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return tt?rt.exports:(tt=1,rt.exports=(e=$(),Le(),e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return nt?ot.exports:(nt=1,ot.exports=(e=$(),Le(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return it||(it=1,at.exports=(e=$(),Le(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),at.exports;var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=$(),Le(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return lt?ut.exports:(lt=1,ut.exports=(n=$(),Le(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return dt||(dt=1,ft.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(l=i[a-1],a%r?r>6&&a%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[a/r|0]<<24),i[a]=i[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=i[a];else l=i[a-4];s[c]=c<4||a<=4?l:u[o[l>>>24]]^d[o[l>>>16&255]]^f[o[l>>>8&255]]^h[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),ft.exports;var e}(),vt(),function(){return gt||(gt=1,yt.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),yt.exports;var e}(),function(){return _t||(_t=1,bt.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=f,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),bt.exports;var e}(),function(){return mt||(mt=1,xt.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),xt.exports;var e}(),Bt())),N.exports),Pt=I(Ht),zt=function(){return zt=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},zt.apply(this,arguments)};function Dt(e){return Pt.SHA256(e).toString(Pt.enc.Hex)}function Rt(e,t){var r=e.source,n=e.context,o=e.id,i=e.type;return void 0===t&&(t=Dt),t(F(zt(zt(zt({source:Lt(r)},o&&{id:o}),n&&{context:n}),i&&{type:i})))}"function"==typeof SuppressedError&&SuppressedError;var It=function(e){var t,r,n,o;if(e&&"object"==typeof e){if("props"in e){var i={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(i.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Lt(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(i.children=Lt(e.props.children)),(null===(o=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===o?void 0:o.transformation)&&(i.transformation=e.props["data-_gt"].transformation),i}if("key"in e)return zt({key:e.key},e.variable&&{variable:e.variable})}return e};function Lt(e){return Array.isArray(e)?e.map(It):It(e)}function Mt({children:r,id:n,context:o}){if(!r)return;const{translations:i,translationRequired:a,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=E("<T> used on the client-side outside of <GTProvider>"),h=t.useMemo((()=>b(r)),[r]),[p,v]=t.useMemo((()=>{if(a){const e=w(h);return[e,Rt(Object.assign(Object.assign({source:e},o&&{context:o}),n&&{id:n}))]}return[void 0,""]}),[o,h,a,r]),g=null==i?void 0:i[v];t.useEffect((()=>{s&&a&&i&&d&&!g&&l({source:p,targetLocale:d,metadata:{id:n,hash:v,context:o}})}),[s,i,g,a,n,v,o,d,r]);const _=()=>y({children:h,defaultLocale:f,renderVariable:P});if(!a||i&&!g&&!s||"error"===(null==g?void 0:g.state))return e.jsx(e.Fragment,{children:_()});if(!g||"loading"===(null==g?void 0:g.state)){let t;return t="skeleton"===u.method?"":"replace"===u.method||c?_():"",e.jsx(e.Fragment,{children:t})}return e.jsx(e.Fragment,{children:(m=g.target,S({source:h,target:m,locales:[d,f],renderVariable:P}))});var m}function Ft(){return E("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}Mt.gtTransformation="translate-client";function Nt(e,n,o,i,a,s,c,l,u,d){return t.useCallback(((f,h={})=>{if(!e)return"";const p=function(e,r){let n=e,o=r.split(".");for(const e of o){if("object"!=typeof n||Array.isArray(n)||t.isValidElement(n))return;n=n[e]}return n}(e,f);if(!p)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(f)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(p))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(f)),"";const{entry:v,metadata:g}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(p);if(!v||"string"!=typeof v)return"";const y=r.splitStringToContent(v),_=(e,t)=>r.renderContentToString(e,t,h.variables,h.variablesOptions);if(!s)return _(y,[a]);const b=null==o?void 0:o[f];if(b)return r.renderContentToString(r.splitStringToContent(b),[i,a],h.variables,h.variablesOptions);let m=Rt(Object.assign(Object.assign({source:y},(null==g?void 0:g.context)&&{context:g.context}),{id:f})),x=null==n?void 0:n[m];return"success"===(null==x?void 0:x.state)?_(x.target,[i,a]):"error"===(null==x?void 0:x.state)?_(y,[a]):l?(u({source:y,targetLocale:i,metadata:Object.assign(Object.assign({},(null==g?void 0:g.context)&&{context:g.context}),{id:f,hash:m})}),"replace"===d.method?_(y,[a]):"skeleton"===d.method?"":c?_(y,[a]):""):_(y,[a])}),[e,n,i,a,s,l,u,c])}function Ut(r){var{children:n,n:i,locale:a}=r,s=o(r,["children","n","locale"]);const{"data-_gt":c}=s,l=o(s,["data-_gt"]),u=t.useContext(A);let d;u&&(a||(a=u.locale),d||(d=u.defaultLocale));const f=[...a?[a]:[],d||p];if("number"!=typeof i)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const h=g(i,f,l)||n;return e.jsx("span",{"data-_gt":c,"data-_gt-n":i,style:{display:"contents"},children:h})}function Vt(t){var{children:r,name:n="branch",branch:i}=t,a=o(t,["children","name","branch"]);const{"data-_gt":s}=a,c=o(a,["data-_gt"]),l=(i=null==i?void 0:i.toString())&&void 0!==c[i]?c[i]:r;return e.jsx("span",{"data-_gt":s,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function Wt(){return E("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function $t(){const{setLocale:e}=E("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function Gt(e){const n=Ft(),o=Wt(),i=$t(),a=t.useMemo((()=>{if(!o||0===o.length)return[];const e=o.sort(((e,t)=>(new Intl.Collator).compare(r.getLocaleProperties(e).nativeNameWithRegionCode,r.getLocaleProperties(t).nativeNameWithRegionCode)));return e}),[o]);return{locale:n,locales:e||a,setLocale:i}}Ut.gtTransformation="plural",Vt.gtTransformation="branch",exports.Branch=Vt,exports.Currency=C,exports.DateTime=H,exports.GTProvider=function(a){var{children:s,projectId:c="",devApiKey:l,dictionary:u,locales:d=[],defaultLocale:v=p,locale:g,cacheUrl:y=f,runtimeUrl:b=h,renderSettings:m=O,loadMessages:x,loadTranslation:w,_versionId:k}=a,B=o(a,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:S,devApiKey:E}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||(void 0).REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY||(void 0).REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(c,l);d=t.useMemo((()=>(d.unshift(v),Array.from(new Set(d)))),[v,d]);const[j,T]=function({locale:e="",defaultLocale:n=p,locales:o=[],cookieName:i="generaltranslation.locale"}){const[a,s]=t.useState(e&&r.determineLocale(e,o)||"");return t.useEffect((()=>{var t;if(e&&e===a&&r.determineLocale(e,o)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(t=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===t?void 0:t.split("=")[1],u=r.determineLocale([...e?[e]:[],...l?[l]:[],...c],o)||n;l&&l!==u&&(document.cookie=`${i}=${u};path=/`),s(u)}),[n,o]),[a,e=>{const t=r.determineLocale(e,o)||a||n;t!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(t,e)),s(t),document.cookie=`${i}=${t};path=/`}]}({defaultLocale:v,locales:d,locale:g}),C=t.useMemo((()=>!!(S&&b&&E&&"development"===process.env.NODE_ENV)),[S,b,E]),H=t.useMemo((()=>(w?"custom":y&&"default")||"disabled"),[w]),[P,z]=t.useState(u);t.useEffect((()=>{if(P||!x)return;let e=!0;return(()=>{i(this,void 0,void 0,(function*(){var t;let n;try{n=yield x(v)}catch(e){}const o=null===(t=r.getLocaleProperties(v))||void 0===t?void 0:t.languageCode;if(!P&&o&&o!==v)try{n=yield x(o)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&z(n||{})}))})(),()=>{e=!1}}),[P,x]),t.useMemo((()=>{if("production"===process.env.NODE_ENV&&E)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===H||!y&&!b||S||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),S&&b&&"custom"!==H&&!E&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),b===h||y===f&&"default"===H){const e=(d||d).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=r.getLocaleProperties(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,E,H,y,b,S,d]);const[D,R]=t.useMemo((()=>{const e=r.requiresTranslation(v,j,d);return[e,e&&r.isSameLanguage(v,j)]}),[v,j,d]),[I,L]=t.useState(D?null:{});t.useEffect((()=>L(D?null:{})),[j]);const[M,F]=t.useState(D?null:{});t.useEffect((()=>F(D?null:{})),[j]);const{registerContentForTranslation:N,registerJsxForTranslation:U}=function(e){var{projectId:r,devApiKey:n,locale:a,versionId:s,defaultLocale:c,runtimeUrl:l,renderSettings:u,setTranslations:d,runtimeTranslationEnabled:f}=e,h=o(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!f)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};h=Object.assign(Object.assign({},h),{projectId:r,sourceLocale:c});const[p,v]=t.useState(0),g=t.useRef(new Map),y=t.useRef(new Map);t.useEffect((()=>{g.current.forEach((e=>e.resolve())),g.current.clear()}),[a]);const[b,m]=t.useMemo((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=y.current.get(r);if(n)return n;const o=new Promise(((n,o)=>{g.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:o})})).catch((e=>{throw e})).finally((()=>{y.current.delete(r)}));return y.current.set(r,o),o};return[e("content"),e("jsx")]}),[]),x=t.useCallback(((e,t)=>i(this,void 0,void 0,(function*(){if(0===g.current.size)return{};v((e=>e+1));const o=Array.from(e.values()),a={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});d((e=>Object.assign(Object.assign({},e||{}),c)));const f=(e,t,r)=>i(this,void 0,void 0,(function*(){const n=new AbortController,o=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==o&&clearTimeout(o)}})),p=yield f(`${l}/v1/runtime/${r}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},n&&{"x-gt-dev-api-key":n}),body:JSON.stringify({requests:o,targetLocale:t,metadata:h,versionId:s})},u.timeout);if(!p.ok)throw new Error(yield p.text());(yield p.json()).forEach(((e,t)=>{const r=o[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;a[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(_(r.metadata.id,r.metadata.hash),e.error),void(a[n]={state:"error",error:e.error,code:e.code});console.error(_(r.metadata.id,r.metadata.hash),e),a[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),o.forEach((e=>{a[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return v((e=>e-1)),o.forEach((e=>e.resolve(a[e.metadata.hash]))),a}}))),[l,r,n,h,s,u.timeout]),w=t.useRef(p);return t.useEffect((()=>{w.current=p}),[p]),t.useEffect((()=>{let e=!0;const t=setInterval((()=>{if(g.current.size>0&&w.current<100){const t=Math.min(25,g.current.size),r=new Map(Array.from(g.current.entries()).slice(0,t));(()=>{i(this,void 0,void 0,(function*(){const t=yield x(r,a);e&&d((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>g.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[a]),{registerContentForTranslation:b,registerJsxForTranslation:m}}(Object.assign({locale:j,versionId:k,projectId:S,runtimeTranslationEnabled:C,defaultLocale:v,devApiKey:E,runtimeUrl:b,renderSettings:m,setTranslations:F},B));t.useEffect((()=>{if(I||!D||!x)return;let e=!0;return(()=>{i(this,void 0,void 0,(function*(){let t={};try{t=yield x(j)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(j),e)}e&&L(t)}))})(),()=>{e=!1}}),[j,x,D,I]),t.useEffect((()=>{if(M||!D)return;let e=!0;return(()=>{i(this,void 0,void 0,(function*(){let t;switch(H){case"custom":if(w)try{t=yield w(j)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(j),e)}break;case"default":try{t=yield function(e){return i(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const o=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield o.json()}))}({cacheUrl:y,projectId:S,locale:j,versionId:k})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&F(t)}))})(),()=>{e=!1}}),[M,D,H,y,S,j,k]);const V=function(e,n,o,i,a,s,c,l){return t.useCallback(((t,u={})=>{if(!t||"string"!=typeof t)return"";const d=r.splitStringToContent(t),f=(e,t)=>r.renderContentToString(e,t,u.variables,u.variablesOptions);if(!i)return f(d,[o]);const h=Rt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==e?void 0:e[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,o]):"error"===(null==p?void 0:p.state)?f(d,[o]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[o]):"skeleton"===l.method?"":a?f(d,[o]):""):f(d,[o])}),[e,n,o,i,s,c,a])}(M,j,v,D,R,C,N,m),W=Nt(P,M,I,j,v,D,R,C,N,m),$=!(D&&!M||!j);return e.jsx(A.Provider,{value:{registerContentForTranslation:N,registerJsxForTranslation:U,_internalUseGTFunction:V,_internalUseDictFunction:W,runtimeTranslationEnabled:C,locale:j,locales:d,setLocale:T,defaultLocale:v,translations:M,messages:I,translationRequired:D,dialectTranslationRequired:R,projectId:S,renderSettings:m},children:$&&s})},exports.LocaleSelector=function(t){var{locales:n}=t,i=o(t,["locales"]);const{locale:a,locales:s,setLocale:c}=Gt(n||void 0),l=e=>{return(t=r.getLocaleProperties(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return s&&0!==s.length&&c?e.jsxs("select",Object.assign({},i,{value:a||"",onChange:e=>c(e.target.value),children:[!a&&e.jsx("option",{value:""}),s.map((t=>e.jsx("option",{value:t,suppressHydrationWarning:!0,children:l(t)},t)))]})):null},exports.Num=j,exports.Plural=Ut,exports.T=Mt,exports.Var=T,exports.useDefaultLocale=function(){return E("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=E(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const o=t(e);return r(o,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=E("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Ft,exports.useLocaleSelector=Gt,exports.useLocales=Wt,exports.useSetLocale=$t;
18
+ function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,i=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,m,x,w,k,B,S,O,A,E=this._hash.words,j=u.words,T=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=i=E[0],k=f=E[1],B=b=E[2],S=m=E[3],O=x=E[4],r=0;r<80;r+=1)A=i+e[t+C[r]]|0,A+=r<16?h(f,b,m)+j[0]:r<32?p(f,b,m)+j[1]:r<48?v(f,b,m)+j[2]:r<64?g(f,b,m)+j[3]:y(f,b,m)+j[4],A=(A=_(A|=0,P[r]))+x|0,i=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,S)+T[0]:r<32?g(k,B,S)+T[1]:r<48?v(k,B,S)+T[2]:r<64?p(k,B,S)+T[3]:h(k,B,S)+T[4],A=(A=_(A|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=A;A=E[1]+b+S|0,E[1]=E[2]+m+O|0,E[2]=E[3]+x+w|0,E[3]=E[4]+i+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160)),Ae.exports;var e}(),Te(),function(){return Ce||(Ce=1,He.exports=(c=$(),ve(),Te(),t=(e=c).lib,r=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,o=a.create(r.hasher,e),i=n.create(),s=n.create([1]),c=i.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=o.update(t).finalize(s);o.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=o.finalize(v),o.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}i.concat(f),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),He.exports;var e,t,r,n,o,i,a,s,c}(),De(),Le(),Ne(),We(),Ke(),qe(),function(){return Ye?Ze.exports:(Ye=1,Ze.exports=(t=$(),Le(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Qe?et.exports:(Qe=1,et.exports=(e=$(),Le(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return tt?rt.exports:(tt=1,rt.exports=(e=$(),Le(),e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return nt?ot.exports:(nt=1,ot.exports=(e=$(),Le(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return it||(it=1,at.exports=(e=$(),Le(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),at.exports;var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=$(),Le(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return lt?ut.exports:(lt=1,ut.exports=(n=$(),Le(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return dt||(dt=1,ft.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(l=i[a-1],a%r?r>6&&a%r==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[a/r|0]<<24),i[a]=i[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=i[a];else l=i[a-4];s[c]=c<4||a<=4?l:u[o[l>>>24]]^d[o[l>>>16&255]]^f[o[l>>>8&255]]^h[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^o[d>>>16&255]^i[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),ft.exports;var e}(),vt(),function(){return gt||(gt=1,yt.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),yt.exports;var e}(),function(){return _t||(_t=1,bt.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=f,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),bt.exports;var e}(),function(){return mt||(mt=1,xt.exports=(e=$(),ne(),le(),De(),Le(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),xt.exports;var e}(),Bt())),N.exports),Pt=I(Ht),zt=function(){return zt=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},zt.apply(this,arguments)};function Dt(e){return Pt.SHA256(e).toString(Pt.enc.Hex)}function Rt(e,t){var r=e.source,n=e.context,o=e.id;return void 0===t&&(t=Dt),t(F(zt(zt({source:Lt(r)},o&&{id:o}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var It=function(e){var t,r,n,o;if(e&&"object"==typeof e){if("props"in e){var i={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(i.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Lt(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(i.children=Lt(e.props.children)),(null===(o=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===o?void 0:o.transformation)&&(i.transformation=e.props["data-_gt"].transformation),i}if("key"in e)return zt({key:e.key},e.variable&&{variable:e.variable})}return e};function Lt(e){return Array.isArray(e)?e.map(It):It(e)}function Mt({children:r,id:n,context:o}){if(!r)return;const{translations:i,translationRequired:a,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=E("<T> used on the client-side outside of <GTProvider>"),h=t.useMemo((()=>b(r)),[r]),[p,v]=t.useMemo((()=>{if(a){const e=w(h);return[e,Rt(Object.assign(Object.assign({source:e},o&&{context:o}),n&&{id:n}))]}return[void 0,""]}),[o,h,a,r]),g=null==i?void 0:i[v];t.useEffect((()=>{s&&a&&i&&d&&!g&&l({source:p,targetLocale:d,metadata:{id:n,hash:v,context:o}})}),[s,i,g,a,n,v,o,d,r]);const _=()=>y({children:h,defaultLocale:f,renderVariable:P});if(!a||i&&!g&&!s||"error"===(null==g?void 0:g.state))return e.jsx(e.Fragment,{children:_()});if(!g||"loading"===(null==g?void 0:g.state)){let t;return t="skeleton"===u.method?"":"replace"===u.method||c?_():"",e.jsx(e.Fragment,{children:t})}return e.jsx(e.Fragment,{children:(m=g.target,S({source:h,target:m,locales:[d,f],renderVariable:P}))});var m}function Ft(){return E("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}Mt.gtTransformation="translate-client";function Nt(e,n,o,i,a,s,c,l,u,d){return t.useCallback(((f,h={})=>{if(!e)return"";const p=function(e,r){let n=e,o=r.split(".");for(const e of o){if("object"!=typeof n||Array.isArray(n)||t.isValidElement(n))return;n=n[e]}return n}(e,f);if(!p)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(f)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(p))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(f)),"";const{entry:v,metadata:g}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(p);if(!v||"string"!=typeof v)return"";const y=r.splitStringToContent(v),_=(e,t)=>r.renderContentToString(e,t,h.variables,h.variablesOptions);if(!s)return _(y,[a]);const b=null==o?void 0:o[f];if(b)return r.renderContentToString(r.splitStringToContent(b),[i,a],h.variables,h.variablesOptions);let m=Rt(Object.assign(Object.assign({source:y},(null==g?void 0:g.context)&&{context:g.context}),{id:f})),x=null==n?void 0:n[m];return"success"===(null==x?void 0:x.state)?_(x.target,[i,a]):"error"===(null==x?void 0:x.state)?_(y,[a]):l?(u({source:y,targetLocale:i,metadata:Object.assign(Object.assign({},(null==g?void 0:g.context)&&{context:g.context}),{id:f,hash:m})}),"replace"===d.method?_(y,[a]):"skeleton"===d.method?"":c?_(y,[a]):""):_(y,[a])}),[e,n,i,a,s,l,u,c])}function Ut(r){var{children:n,n:i,locale:a}=r,s=o(r,["children","n","locale"]);const{"data-_gt":c}=s,l=o(s,["data-_gt"]),u=t.useContext(A);let d;u&&(a||(a=u.locale),d||(d=u.defaultLocale));const f=[...a?[a]:[],d||p];if("number"!=typeof i)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const h=g(i,f,l)||n;return e.jsx("span",{"data-_gt":c,"data-_gt-n":i,style:{display:"contents"},children:h})}function Vt(t){var{children:r,name:n="branch",branch:i}=t,a=o(t,["children","name","branch"]);const{"data-_gt":s}=a,c=o(a,["data-_gt"]),l=(i=null==i?void 0:i.toString())&&void 0!==c[i]?c[i]:r;return e.jsx("span",{"data-_gt":s,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function Wt(){return E("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function $t(){const{setLocale:e}=E("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function Gt(e){const n=Ft(),o=Wt(),i=$t(),a=t.useMemo((()=>{if(!o||0===o.length)return[];const e=o.sort(((e,t)=>(new Intl.Collator).compare(r.getLocaleProperties(e).nativeNameWithRegionCode,r.getLocaleProperties(t).nativeNameWithRegionCode)));return e}),[o]);return{locale:n,locales:e||a,setLocale:i}}Ut.gtTransformation="plural",Vt.gtTransformation="branch",exports.Branch=Vt,exports.Currency=C,exports.DateTime=H,exports.GTProvider=function(a){var{children:s,projectId:c="",devApiKey:l,dictionary:u,locales:d=[],defaultLocale:v=p,locale:g,cacheUrl:y=f,runtimeUrl:b=h,renderSettings:m=O,loadMessages:x,loadTranslation:w,_versionId:k}=a,B=o(a,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:S,devApiKey:E}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||(void 0).REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY||(void 0).REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(c,l);d=t.useMemo((()=>(d.unshift(v),Array.from(new Set(d)))),[v,d]);const[j,T]=function({locale:e="",defaultLocale:n=p,locales:o=[],cookieName:i="generaltranslation.locale"}){const[a,s]=t.useState(e&&r.determineLocale(e,o)||"");return t.useEffect((()=>{var t;if(e&&e===a&&r.determineLocale(e,o)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(t=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===t?void 0:t.split("=")[1],u=r.determineLocale([...e?[e]:[],...l?[l]:[],...c],o)||n;l&&l!==u&&(document.cookie=`${i}=${u};path=/`),s(u)}),[n,o]),[a,e=>{const t=r.determineLocale(e,o)||a||n;t!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(t,e)),s(t),document.cookie=`${i}=${t};path=/`}]}({defaultLocale:v,locales:d,locale:g}),C=t.useMemo((()=>!!(S&&b&&E&&"development"===process.env.NODE_ENV)),[S,b,E]),H=t.useMemo((()=>(w?"custom":y&&"default")||"disabled"),[w]),[P,z]=t.useState(u);t.useEffect((()=>{if(P||!x)return;let e=!0;return(()=>{i(this,void 0,void 0,(function*(){var t;let n;try{n=yield x(v)}catch(e){}const o=null===(t=r.getLocaleProperties(v))||void 0===t?void 0:t.languageCode;if(!P&&o&&o!==v)try{n=yield x(o)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&z(n||{})}))})(),()=>{e=!1}}),[P,x]),t.useMemo((()=>{if("production"===process.env.NODE_ENV&&E)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===H||!y&&!b||S||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),S&&b&&"custom"!==H&&!E&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),b===h||y===f&&"default"===H){const e=(d||d).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=r.getLocaleProperties(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,E,H,y,b,S,d]);const[D,R]=t.useMemo((()=>{const e=r.requiresTranslation(v,j,d);return[e,e&&r.isSameLanguage(v,j)]}),[v,j,d]),[I,L]=t.useState(D?null:{});t.useEffect((()=>L(D?null:{})),[j]);const[M,F]=t.useState(D?null:{});t.useEffect((()=>F(D?null:{})),[j]);const{registerContentForTranslation:N,registerJsxForTranslation:U}=function(e){var{projectId:r,devApiKey:n,locale:a,versionId:s,defaultLocale:c,runtimeUrl:l,renderSettings:u,setTranslations:d,runtimeTranslationEnabled:f}=e,h=o(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!f)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};h=Object.assign(Object.assign({},h),{projectId:r,sourceLocale:c});const[p,v]=t.useState(0),g=t.useRef(new Map),y=t.useRef(new Map);t.useEffect((()=>{g.current.forEach((e=>e.resolve())),g.current.clear()}),[a]);const[b,m]=t.useMemo((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=y.current.get(r);if(n)return n;const o=new Promise(((n,o)=>{g.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:o})})).catch((e=>{throw e})).finally((()=>{y.current.delete(r)}));return y.current.set(r,o),o};return[e("content"),e("jsx")]}),[]),x=t.useCallback(((e,t)=>i(this,void 0,void 0,(function*(){if(0===g.current.size)return{};v((e=>e+1));const o=Array.from(e.values()),a={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});d((e=>Object.assign(Object.assign({},e||{}),c)));const f=(e,t,r)=>i(this,void 0,void 0,(function*(){const n=new AbortController,o=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==o&&clearTimeout(o)}})),p=yield f(`${l}/v1/runtime/${r}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},n&&{"x-gt-dev-api-key":n}),body:JSON.stringify({requests:o,targetLocale:t,metadata:h,versionId:s})},u.timeout);if(!p.ok)throw new Error(yield p.text());(yield p.json()).forEach(((e,t)=>{const r=o[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;a[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(_(r.metadata.id,r.metadata.hash),e.error),void(a[n]={state:"error",error:e.error,code:e.code});console.error(_(r.metadata.id,r.metadata.hash),e),a[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),o.forEach((e=>{a[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return v((e=>e-1)),o.forEach((e=>e.resolve(a[e.metadata.hash]))),a}}))),[l,r,n,h,s,u.timeout]),w=t.useRef(p);return t.useEffect((()=>{w.current=p}),[p]),t.useEffect((()=>{let e=!0;const t=setInterval((()=>{if(g.current.size>0&&w.current<100){const t=Math.min(25,g.current.size),r=new Map(Array.from(g.current.entries()).slice(0,t));(()=>{i(this,void 0,void 0,(function*(){const t=yield x(r,a);e&&d((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>g.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[a]),{registerContentForTranslation:b,registerJsxForTranslation:m}}(Object.assign({locale:j,versionId:k,projectId:S,runtimeTranslationEnabled:C,defaultLocale:v,devApiKey:E,runtimeUrl:b,renderSettings:m,setTranslations:F},B));t.useEffect((()=>{if(I||!D||!x)return;let e=!0;return(()=>{i(this,void 0,void 0,(function*(){let t={};try{t=yield x(j)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(j),e)}e&&L(t)}))})(),()=>{e=!1}}),[j,x,D,I]),t.useEffect((()=>{if(M||!D)return;let e=!0;return(()=>{i(this,void 0,void 0,(function*(){let t;switch(H){case"custom":if(w)try{t=yield w(j)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(j),e)}break;case"default":try{t=yield function(e){return i(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const o=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield o.json()}))}({cacheUrl:y,projectId:S,locale:j,versionId:k})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&F(t)}))})(),()=>{e=!1}}),[M,D,H,y,S,j,k]);const V=function(e,n,o,i,a,s,c,l){return t.useCallback(((t,u={})=>{if(!t||"string"!=typeof t)return"";const d=r.splitStringToContent(t),f=(e,t)=>r.renderContentToString(e,t,u.variables,u.variablesOptions);if(!i)return f(d,[o]);const h=Rt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==e?void 0:e[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,o]):"error"===(null==p?void 0:p.state)?f(d,[o]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[o]):"skeleton"===l.method?"":a?f(d,[o]):""):f(d,[o])}),[e,n,o,i,s,c,a])}(M,j,v,D,R,C,N,m),W=Nt(P,M,I,j,v,D,R,C,N,m),$=!(D&&!M||!j);return e.jsx(A.Provider,{value:{registerContentForTranslation:N,registerJsxForTranslation:U,_internalUseGTFunction:V,_internalUseDictFunction:W,runtimeTranslationEnabled:C,locale:j,locales:d,setLocale:T,defaultLocale:v,translations:M,messages:I,translationRequired:D,dialectTranslationRequired:R,projectId:S,renderSettings:m},children:$&&s})},exports.LocaleSelector=function(t){var{locales:n}=t,i=o(t,["locales"]);const{locale:a,locales:s,setLocale:c}=Gt(n||void 0),l=e=>{return(t=r.getLocaleProperties(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return s&&0!==s.length&&c?e.jsxs("select",Object.assign({},i,{value:a||"",onChange:e=>c(e.target.value),children:[!a&&e.jsx("option",{value:""}),s.map((t=>e.jsx("option",{value:t,suppressHydrationWarning:!0,children:l(t)},t)))]})):null},exports.Num=j,exports.Plural=Ut,exports.T=Mt,exports.Var=T,exports.useDefaultLocale=function(){return E("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=E(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const o=t(e);return r(o,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=E("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Ft,exports.useLocaleSelector=Gt,exports.useLocales=Wt,exports.useSetLocale=$t;
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
17
  */
18
- function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?y(f,b,m)+T[3]:g(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?g(k,B,O)+j[0]:r<32?y(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ve.exports;var e}(),Je(),function(){return Xe||(Xe=1,Ye.exports=(c=le(),ze(),Je(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,y=1;y<d;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<p;_++)h[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),Ye.exports;var e,t,r,n,i,o,a,s,c}(),Qe(),rt(),ot(),ct(),dt(),pt(),function(){return vt?yt.exports:(vt=1,yt.exports=(t=le(),rt(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return gt?_t.exports:(gt=1,_t.exports=(e=le(),rt(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return bt?mt.exports:(bt=1,mt.exports=(e=le(),rt(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return xt?wt.exports:(xt=1,wt.exports=(e=le(),rt(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return kt||(kt=1,Bt.exports=(e=le(),rt(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Bt.exports;var e}(),function(){return Ot?St.exports:(Ot=1,St.exports=(e=le(),rt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return At?Et.exports:(At=1,Et.exports=(n=le(),rt(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Tt||(Tt=1,jt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],y=e[v],g=e[y],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],y=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],g=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=y,d=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),jt.exports;var e}(),zt(),function(){return Pt||(Pt=1,Dt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),Dt.exports;var e}(),function(){return Rt||(Rt=1,It.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),It.exports;var e}(),function(){return Ft||(Ft=1,Mt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Mt.exports;var e}(),Ut())),oe.exports),qt=te(Yt),Zt=function(){return Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zt.apply(this,arguments)};function Qt(e){return qt.SHA256(e).toString(qt.enc.Hex)}function er(e,t){var r=e.source,n=e.context,i=e.id,o=e.type;return void 0===t&&(t=Qt),t(ie(Zt(Zt(Zt({source:rr(r)},i&&{id:i}),n&&{context:n}),o&&{type:o})))}"function"==typeof SuppressedError&&SuppressedError;var tr=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],rr(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=rr(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Zt({key:e.key},e.variable&&{variable:e.variable})}return e};function rr(e){return Array.isArray(e)?e.map(tr):tr(e)}function nr({children:r,id:n,context:i}){if(!r)return;const{translations:o,translationRequired:a,runtimeTranslationEnabled:l,dialectTranslationRequired:u,registerJsxForTranslation:d,renderSettings:f,locale:h,defaultLocale:p}=G("<T> used on the client-side outside of <GTProvider>"),v=s((()=>I(r)),[r]),[y,g]=s((()=>{if(a){const e=N(v);return[e,er(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,v,a,r]),_=null==o?void 0:o[g];c((()=>{l&&a&&o&&h&&!_&&d({source:y,targetLocale:h,metadata:{id:n,hash:g,context:i}})}),[l,o,_,a,n,g,i,h,r]);const b=()=>D({children:v,defaultLocale:p,renderVariable:q});if(!a||o&&!_&&!l||"error"===(null==_?void 0:_.state))return e(t,{children:b()});if(!_||"loading"===(null==_?void 0:_.state)){let r;return r="skeleton"===f.method?"":"replace"===f.method||u?b():"",e(t,{children:r})}return e(t,{children:(m=_.target,W({source:v,target:m,locales:[h,p],renderVariable:q}))});var m}function ir(){const{_internalUseGTFunction:e}=G("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function or(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=G(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function ar(){return G("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function sr(){return G("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}nr.gtTransformation="translate-client";function cr(e,t,r,i,o,a,s,c,l,u){return d(((d,f={})=>{if(!e)return"";const h=function(e,t){let r=e,i=t.split(".");for(const e of i){if("object"!=typeof r||Array.isArray(r)||n.isValidElement(r))return;r=r[e]}return r}(e,d);if(!h)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(d)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(h))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(d)),"";const{entry:p,metadata:v}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(h);if(!p||"string"!=typeof p)return"";const y=g(p),b=(e,t)=>_(e,t,f.variables,f.variablesOptions);if(!a)return b(y,[o]);const m=null==r?void 0:r[d];if(m)return _(g(m),[i,o],f.variables,f.variablesOptions);let x=er(Object.assign(Object.assign({source:y},(null==v?void 0:v.context)&&{context:v.context}),{id:d})),w=null==t?void 0:t[x];return"success"===(null==w?void 0:w.state)?b(w.target,[i,o]):"error"===(null==w?void 0:w.state)?b(y,[o]):c?(l({source:y,targetLocale:i,metadata:Object.assign(Object.assign({},(null==v?void 0:v.context)&&{context:v.context}),{id:d,hash:x})}),"replace"===u.method?b(y,[o]):"skeleton"===u.method?"":s?b(y,[o]):""):b(y,[o])}),[e,t,i,o,a,c,l,s])}function lr(t){var{children:r,projectId:n="",devApiKey:i,dictionary:o,locales:a=[],defaultLocale:h=H,locale:p,cacheUrl:v=j,runtimeUrl:B=C,renderSettings:O=$,loadMessages:S,loadTranslation:A,_versionId:E}=t,T=w(t,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:z,devApiKey:P}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||import.meta.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY||import.meta.env.REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(n,i);a=s((()=>(a.unshift(h),Array.from(new Set(a)))),[h,a]);const[D,I]=function({locale:e="",defaultLocale:t=H,locales:r=[],cookieName:n="generaltranslation.locale"}){const[i,o]=l(e&&y(e,r)||"");return c((()=>{var a;if(e&&e===i&&y(e,r)===i)return;const s=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(a=document.cookie.split("; ").find((e=>e.startsWith(`${n}=`))))||void 0===a?void 0:a.split("=")[1],l=y([...e?[e]:[],...c?[c]:[],...s],r)||t;c&&c!==l&&(document.cookie=`${n}=${l};path=/`),o(l)}),[t,r]),[i,e=>{const a=y(e,r)||i||t;a!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(a,e)),o(a),document.cookie=`${n}=${a};path=/`}]}({defaultLocale:h,locales:a,locale:p}),F=s((()=>!!(z&&B&&P&&"development"===process.env.NODE_ENV)),[z,B,P]),M=s((()=>(A?"custom":v&&"default")||"disabled"),[A]),[N,L]=l(o);c((()=>{if(N||!S)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){var t;let r;try{r=yield S(h)}catch(e){}const n=null===(t=f(h))||void 0===t?void 0:t.languageCode;if(!N&&n&&n!==h)try{r=yield S(n)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&L(r||{})}))})(),()=>{e=!1}}),[N,S]),s((()=>{if("production"===process.env.NODE_ENV&&P)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===M||!v&&!B||z||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),z&&B&&"custom"!==M&&!P&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),B===C||v===j&&"default"===M){const e=(a||a).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=f(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,P,M,v,B,z,a]);const[U,W]=s((()=>{const e=b(h,D,a);return[e,e&&m(h,D)]}),[h,D,a]),[G,K]=l(U?null:{});c((()=>K(U?null:{})),[D]);const[J,X]=l(U?null:{});c((()=>X(U?null:{})),[D]);const{registerContentForTranslation:Y,registerJsxForTranslation:q}=function(e){var{projectId:t,devApiKey:r,locale:n,versionId:i,defaultLocale:o,runtimeUrl:a,renderSettings:f,setTranslations:h,runtimeTranslationEnabled:p}=e,v=w(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!p)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};v=Object.assign(Object.assign({},v),{projectId:t,sourceLocale:o});const[y,g]=l(0),_=u(new Map),b=u(new Map);c((()=>{_.current.forEach((e=>e.resolve())),_.current.clear()}),[n]);const[m,x]=s((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=b.current.get(r);if(n)return n;const i=new Promise(((n,i)=>{_.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:i})})).catch((e=>{throw e})).finally((()=>{b.current.delete(r)}));return b.current.set(r,i),i};return[e("content"),e("jsx")]}),[]),B=d(((e,n)=>k(this,void 0,void 0,(function*(){if(0===_.current.size)return{};g((e=>e+1));const o=Array.from(e.values()),s={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});h((e=>Object.assign(Object.assign({},e||{}),c)));const l=(e,t,r)=>k(this,void 0,void 0,(function*(){const n=new AbortController,i=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==i&&clearTimeout(i)}})),u=yield l(`${a}/v1/runtime/${t}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},r&&{"x-gt-dev-api-key":r}),body:JSON.stringify({requests:o,targetLocale:n,metadata:v,versionId:i})},f.timeout);if(!u.ok)throw new Error(yield u.text());(yield u.json()).forEach(((e,t)=>{const r=o[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;s[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(R(r.metadata.id,r.metadata.hash),e.error),void(s[n]={state:"error",error:e.error,code:e.code});console.error(R(r.metadata.id,r.metadata.hash),e),s[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),o.forEach((e=>{s[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return g((e=>e-1)),o.forEach((e=>e.resolve(s[e.metadata.hash]))),s}}))),[a,t,r,v,i,f.timeout]),O=u(y);return c((()=>{O.current=y}),[y]),c((()=>{let e=!0;const t=setInterval((()=>{if(_.current.size>0&&O.current<100){const t=Math.min(25,_.current.size),r=new Map(Array.from(_.current.entries()).slice(0,t));(()=>{k(this,void 0,void 0,(function*(){const t=yield B(r,n);e&&h((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>_.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[n]),{registerContentForTranslation:m,registerJsxForTranslation:x}}(Object.assign({locale:D,versionId:E,projectId:z,runtimeTranslationEnabled:F,defaultLocale:h,devApiKey:P,runtimeUrl:B,renderSettings:O,setTranslations:X},T));c((()=>{if(G||!U||!S)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){let t={};try{t=yield S(D)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(D),e)}e&&K(t)}))})(),()=>{e=!1}}),[D,S,U,G]),c((()=>{if(J||!U)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){let t;switch(M){case"custom":if(A)try{t=yield A(D)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(D),e)}break;case"default":try{t=yield function(e){return k(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:v,projectId:z,locale:D,versionId:E})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&X(t)}))})(),()=>{e=!1}}),[J,U,M,v,z,D,E]);const Z=function(e,t,r,n,i,o,a,s){return d(((c,l={})=>{if(!c||"string"!=typeof c)return"";const u=g(c),d=(e,t)=>_(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=er(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),h=null==e?void 0:e[f];return"success"===(null==h?void 0:h.state)?d(h.target,[t,r]):"error"===(null==h?void 0:h.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===s.method?d(u,[r]):"skeleton"===s.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}(J,D,h,U,W,F,Y,O),Q=cr(N,J,G,D,h,U,W,F,Y,O),ee=!(U&&!J||!D);return e(V.Provider,{value:{registerContentForTranslation:Y,registerJsxForTranslation:q,_internalUseGTFunction:Z,_internalUseDictFunction:Q,runtimeTranslationEnabled:F,locale:D,locales:a,setLocale:I,defaultLocale:h,translations:J,messages:G,translationRequired:U,dialectTranslationRequired:W,projectId:z,renderSettings:O},children:ee&&r})}function ur(t){var{children:r,n:n,locale:i}=t,o=w(t,["children","n","locale"]);const{"data-_gt":s}=o,c=w(o,["data-_gt"]),l=a(V);let u;l&&(i||(i=l.locale),u||(u=l.defaultLocale));const d=[...i?[i]:[],u||H];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(r));const f=P(n,d,c)||r;return e("span",{"data-_gt":s,"data-_gt-n":n,style:{display:"contents"},children:f})}function dr(t){var{children:r,name:n="branch",branch:i}=t,o=w(t,["children","name","branch"]);const{"data-_gt":a}=o,s=w(o,["data-_gt"]),c=(i=null==i?void 0:i.toString())&&void 0!==s[i]?s[i]:r;return e("span",{"data-_gt":a,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:c})}function fr(){return G("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function hr(){const{setLocale:e}=G("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function pr(e){const t=sr(),r=fr(),n=hr(),i=s((()=>{if(!r||0===r.length)return[];const e=r.sort(((e,t)=>(new Intl.Collator).compare(f(e).nativeNameWithRegionCode,f(t).nativeNameWithRegionCode)));return e}),[r]);return{locale:t,locales:e||i,setLocale:n}}function vr(t){var{locales:n}=t,i=w(t,["locales"]);const{locale:o,locales:a,setLocale:s}=pr(n||void 0),c=e=>{return(t=f(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return a&&0!==a.length&&s?r("select",Object.assign({},i,{value:o||"",onChange:e=>s(e.target.value),children:[!o&&e("option",{value:""}),a.map((t=>e("option",{value:t,suppressHydrationWarning:!0,children:c(t)},t)))]})):null}ur.gtTransformation="plural",dr.gtTransformation="branch";export{dr as Branch,X as Currency,Y as DateTime,lr as GTProvider,vr as LocaleSelector,K as Num,ur as Plural,nr as T,J as Var,ar as useDefaultLocale,or as useDict,ir as useGT,sr as useLocale,pr as useLocaleSelector,fr as useLocales,hr as useSetLocale};
18
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?y(f,b,m)+T[3]:g(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?g(k,B,O)+j[0]:r<32?y(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ve.exports;var e}(),Je(),function(){return Xe||(Xe=1,Ye.exports=(c=le(),ze(),Je(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,y=1;y<d;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<p;_++)h[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),Ye.exports;var e,t,r,n,i,o,a,s,c}(),Qe(),rt(),ot(),ct(),dt(),pt(),function(){return vt?yt.exports:(vt=1,yt.exports=(t=le(),rt(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return gt?_t.exports:(gt=1,_t.exports=(e=le(),rt(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return bt?mt.exports:(bt=1,mt.exports=(e=le(),rt(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return xt?wt.exports:(xt=1,wt.exports=(e=le(),rt(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return kt||(kt=1,Bt.exports=(e=le(),rt(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Bt.exports;var e}(),function(){return Ot?St.exports:(Ot=1,St.exports=(e=le(),rt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return At?Et.exports:(At=1,Et.exports=(n=le(),rt(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Tt||(Tt=1,jt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],y=e[v],g=e[y],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],y=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],g=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=y,d=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),jt.exports;var e}(),zt(),function(){return Pt||(Pt=1,Dt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),Dt.exports;var e}(),function(){return Rt||(Rt=1,It.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),It.exports;var e}(),function(){return Ft||(Ft=1,Mt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Mt.exports;var e}(),Ut())),oe.exports),qt=te(Yt),Zt=function(){return Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zt.apply(this,arguments)};function Qt(e){return qt.SHA256(e).toString(qt.enc.Hex)}function er(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Qt),t(ie(Zt(Zt({source:rr(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var tr=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],rr(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=rr(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Zt({key:e.key},e.variable&&{variable:e.variable})}return e};function rr(e){return Array.isArray(e)?e.map(tr):tr(e)}function nr({children:r,id:n,context:i}){if(!r)return;const{translations:o,translationRequired:a,runtimeTranslationEnabled:l,dialectTranslationRequired:u,registerJsxForTranslation:d,renderSettings:f,locale:h,defaultLocale:p}=G("<T> used on the client-side outside of <GTProvider>"),v=s((()=>I(r)),[r]),[y,g]=s((()=>{if(a){const e=N(v);return[e,er(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,v,a,r]),_=null==o?void 0:o[g];c((()=>{l&&a&&o&&h&&!_&&d({source:y,targetLocale:h,metadata:{id:n,hash:g,context:i}})}),[l,o,_,a,n,g,i,h,r]);const b=()=>D({children:v,defaultLocale:p,renderVariable:q});if(!a||o&&!_&&!l||"error"===(null==_?void 0:_.state))return e(t,{children:b()});if(!_||"loading"===(null==_?void 0:_.state)){let r;return r="skeleton"===f.method?"":"replace"===f.method||u?b():"",e(t,{children:r})}return e(t,{children:(m=_.target,W({source:v,target:m,locales:[h,p],renderVariable:q}))});var m}function ir(){const{_internalUseGTFunction:e}=G("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function or(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=G(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function ar(){return G("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function sr(){return G("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}nr.gtTransformation="translate-client";function cr(e,t,r,i,o,a,s,c,l,u){return d(((d,f={})=>{if(!e)return"";const h=function(e,t){let r=e,i=t.split(".");for(const e of i){if("object"!=typeof r||Array.isArray(r)||n.isValidElement(r))return;r=r[e]}return r}(e,d);if(!h)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(d)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(h))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(d)),"";const{entry:p,metadata:v}=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}}(h);if(!p||"string"!=typeof p)return"";const y=g(p),b=(e,t)=>_(e,t,f.variables,f.variablesOptions);if(!a)return b(y,[o]);const m=null==r?void 0:r[d];if(m)return _(g(m),[i,o],f.variables,f.variablesOptions);let x=er(Object.assign(Object.assign({source:y},(null==v?void 0:v.context)&&{context:v.context}),{id:d})),w=null==t?void 0:t[x];return"success"===(null==w?void 0:w.state)?b(w.target,[i,o]):"error"===(null==w?void 0:w.state)?b(y,[o]):c?(l({source:y,targetLocale:i,metadata:Object.assign(Object.assign({},(null==v?void 0:v.context)&&{context:v.context}),{id:d,hash:x})}),"replace"===u.method?b(y,[o]):"skeleton"===u.method?"":s?b(y,[o]):""):b(y,[o])}),[e,t,i,o,a,c,l,s])}function lr(t){var{children:r,projectId:n="",devApiKey:i,dictionary:o,locales:a=[],defaultLocale:h=H,locale:p,cacheUrl:v=j,runtimeUrl:B=C,renderSettings:O=$,loadMessages:S,loadTranslation:A,_versionId:E}=t,T=w(t,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadMessages","loadTranslation","_versionId"]);const{projectId:z,devApiKey:P}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||import.meta.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY||import.meta.env.REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(n,i);a=s((()=>(a.unshift(h),Array.from(new Set(a)))),[h,a]);const[D,I]=function({locale:e="",defaultLocale:t=H,locales:r=[],cookieName:n="generaltranslation.locale"}){const[i,o]=l(e&&y(e,r)||"");return c((()=>{var a;if(e&&e===i&&y(e,r)===i)return;const s=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(a=document.cookie.split("; ").find((e=>e.startsWith(`${n}=`))))||void 0===a?void 0:a.split("=")[1],l=y([...e?[e]:[],...c?[c]:[],...s],r)||t;c&&c!==l&&(document.cookie=`${n}=${l};path=/`),o(l)}),[t,r]),[i,e=>{const a=y(e,r)||i||t;a!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(a,e)),o(a),document.cookie=`${n}=${a};path=/`}]}({defaultLocale:h,locales:a,locale:p}),F=s((()=>!!(z&&B&&P&&"development"===process.env.NODE_ENV)),[z,B,P]),M=s((()=>(A?"custom":v&&"default")||"disabled"),[A]),[N,L]=l(o);c((()=>{if(N||!S)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){var t;let r;try{r=yield S(h)}catch(e){}const n=null===(t=f(h))||void 0===t?void 0:t.languageCode;if(!N&&n&&n!==h)try{r=yield S(n)}catch(e){console.warn("gt-react Error: No dictionary was found. Ensure you are either passing your dictionary to the <GTProvider>, or if you are using user defined messages, that you have defined a [defaultLocale].json file in your messages directory and that your loadMessages() function is properly defined.",e)}e&&L(r||{})}))})(),()=>{e=!1}}),[N,S]),s((()=>{if("production"===process.env.NODE_ENV&&P)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===M||!v&&!B||z||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),z&&B&&"custom"!==M&&!P&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),B===C||v===j&&"default"===M){const e=(a||a).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=f(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,P,M,v,B,z,a]);const[U,W]=s((()=>{const e=b(h,D,a);return[e,e&&m(h,D)]}),[h,D,a]),[G,K]=l(U?null:{});c((()=>K(U?null:{})),[D]);const[J,X]=l(U?null:{});c((()=>X(U?null:{})),[D]);const{registerContentForTranslation:Y,registerJsxForTranslation:q}=function(e){var{projectId:t,devApiKey:r,locale:n,versionId:i,defaultLocale:o,runtimeUrl:a,renderSettings:f,setTranslations:h,runtimeTranslationEnabled:p}=e,v=w(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!p)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};v=Object.assign(Object.assign({},v),{projectId:t,sourceLocale:o});const[y,g]=l(0),_=u(new Map),b=u(new Map);c((()=>{_.current.forEach((e=>e.resolve())),_.current.clear()}),[n]);const[m,x]=s((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=b.current.get(r);if(n)return n;const i=new Promise(((n,i)=>{_.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:i})})).catch((e=>{throw e})).finally((()=>{b.current.delete(r)}));return b.current.set(r,i),i};return[e("content"),e("jsx")]}),[]),B=d(((e,n)=>k(this,void 0,void 0,(function*(){if(0===_.current.size)return{};g((e=>e+1));const o=Array.from(e.values()),s={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});h((e=>Object.assign(Object.assign({},e||{}),c)));const l=(e,t,r)=>k(this,void 0,void 0,(function*(){const n=new AbortController,i=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==i&&clearTimeout(i)}})),u=yield l(`${a}/v1/runtime/${t}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},r&&{"x-gt-dev-api-key":r}),body:JSON.stringify({requests:o,targetLocale:n,metadata:v,versionId:i})},f.timeout);if(!u.ok)throw new Error(yield u.text());(yield u.json()).forEach(((e,t)=>{const r=o[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;s[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(R(r.metadata.id,r.metadata.hash),e.error),void(s[n]={state:"error",error:e.error,code:e.code});console.error(R(r.metadata.id,r.metadata.hash),e),s[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),o.forEach((e=>{s[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return g((e=>e-1)),o.forEach((e=>e.resolve(s[e.metadata.hash]))),s}}))),[a,t,r,v,i,f.timeout]),O=u(y);return c((()=>{O.current=y}),[y]),c((()=>{let e=!0;const t=setInterval((()=>{if(_.current.size>0&&O.current<100){const t=Math.min(25,_.current.size),r=new Map(Array.from(_.current.entries()).slice(0,t));(()=>{k(this,void 0,void 0,(function*(){const t=yield B(r,n);e&&h((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>_.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[n]),{registerContentForTranslation:m,registerJsxForTranslation:x}}(Object.assign({locale:D,versionId:E,projectId:z,runtimeTranslationEnabled:F,defaultLocale:h,devApiKey:P,runtimeUrl:B,renderSettings:O,setTranslations:X},T));c((()=>{if(G||!U||!S)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){let t={};try{t=yield S(D)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored messages. If you are using a custom loadMessage(${e}), make sure it is correctly implemented.`)(D),e)}e&&K(t)}))})(),()=>{e=!1}}),[D,S,U,G]),c((()=>{if(J||!U)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){let t;switch(M){case"custom":if(A)try{t=yield A(D)}catch(e){console.error(((e="")=>`gt-react Error: fetching locally stored translations. If you are using a custom loadTranslation(${e}), make sure it is correctly implemented.`)(D),e)}break;case"default":try{t=yield function(e){return k(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:v,projectId:z,locale:D,versionId:E})}catch(e){console.error(e)}}t||(t={});try{t=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{})}catch(e){console.error(e)}e&&X(t)}))})(),()=>{e=!1}}),[J,U,M,v,z,D,E]);const Z=function(e,t,r,n,i,o,a,s){return d(((c,l={})=>{if(!c||"string"!=typeof c)return"";const u=g(c),d=(e,t)=>_(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=er(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),h=null==e?void 0:e[f];return"success"===(null==h?void 0:h.state)?d(h.target,[t,r]):"error"===(null==h?void 0:h.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===s.method?d(u,[r]):"skeleton"===s.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}(J,D,h,U,W,F,Y,O),Q=cr(N,J,G,D,h,U,W,F,Y,O),ee=!(U&&!J||!D);return e(V.Provider,{value:{registerContentForTranslation:Y,registerJsxForTranslation:q,_internalUseGTFunction:Z,_internalUseDictFunction:Q,runtimeTranslationEnabled:F,locale:D,locales:a,setLocale:I,defaultLocale:h,translations:J,messages:G,translationRequired:U,dialectTranslationRequired:W,projectId:z,renderSettings:O},children:ee&&r})}function ur(t){var{children:r,n:n,locale:i}=t,o=w(t,["children","n","locale"]);const{"data-_gt":s}=o,c=w(o,["data-_gt"]),l=a(V);let u;l&&(i||(i=l.locale),u||(u=l.defaultLocale));const d=[...i?[i]:[],u||H];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(r));const f=P(n,d,c)||r;return e("span",{"data-_gt":s,"data-_gt-n":n,style:{display:"contents"},children:f})}function dr(t){var{children:r,name:n="branch",branch:i}=t,o=w(t,["children","name","branch"]);const{"data-_gt":a}=o,s=w(o,["data-_gt"]),c=(i=null==i?void 0:i.toString())&&void 0!==s[i]?s[i]:r;return e("span",{"data-_gt":a,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:c})}function fr(){return G("useLocales(): Unable to access configured locales outside of a <GTProvider>").locales}function hr(){const{setLocale:e}=G("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function pr(e){const t=sr(),r=fr(),n=hr(),i=s((()=>{if(!r||0===r.length)return[];const e=r.sort(((e,t)=>(new Intl.Collator).compare(f(e).nativeNameWithRegionCode,f(t).nativeNameWithRegionCode)));return e}),[r]);return{locale:t,locales:e||i,setLocale:n}}function vr(t){var{locales:n}=t,i=w(t,["locales"]);const{locale:o,locales:a,setLocale:s}=pr(n||void 0),c=e=>{return(t=f(e).nativeNameWithRegionCode)?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"";var t};return a&&0!==a.length&&s?r("select",Object.assign({},i,{value:o||"",onChange:e=>s(e.target.value),children:[!o&&e("option",{value:""}),a.map((t=>e("option",{value:t,suppressHydrationWarning:!0,children:c(t)},t)))]})):null}ur.gtTransformation="plural",dr.gtTransformation="branch";export{dr as Branch,X as Currency,Y as DateTime,lr as GTProvider,vr as LocaleSelector,K as Num,ur as Plural,nr as T,J as Var,ar as useDefaultLocale,or as useDict,ir as useGT,sr as useLocale,pr as useLocaleSelector,fr as useLocales,hr as useSetLocale};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "9.2.4-alpha.1",
3
+ "version": "9.2.4-alpha.2",
4
4
  "description": "A React library for automatic internationalization.",
5
5
  "main": "./dist/index.cjs.min.cjs",
6
6
  "module": "./dist/index.esm.min.mjs",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@generaltranslation/supported-locales": "^2.0.6",
14
- "generaltranslation": "^6.2.0"
14
+ "generaltranslation": "^6.2.1-alpha.3"
15
15
  },
16
16
  "scripts": {
17
17
  "patch": "npm version patch",