"use strict";this.default_IdentityRotateCookiesHttp=this.default_IdentityRotateCookiesHttp||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(a){("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:this)._F_toggles=a||[]};(0,_._F_toggles_initialize)([0x60, ]);
/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var q=function(a){return ca?p?p.brands.some(function(b){return(b=b.brand)&&-1!=b.indexOf(a)}):!1:!1},t=function(a){var b;a:{if(b=r.navigator)if(b=b.userAgent)break a;b=""}return-1!=b.indexOf(a)},u=function(){return ca?!!p&&0
a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=y(z(c,a)),b=c.next().value,
a=c.next().value,c=b);A=c>>>0;B=a>>>0},ea=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else x()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+da(c)+da(a));return c},da=function(a){a=String(a);return"0000000".slice(a.length)+a},fa=function(){var a=A,b=B;b&2147483648?x()?a=""+(BigInt(b|0)<>>0)):
(b=y(z(a,b)),a=b.next().value,b=b.next().value,a="-"+ea(a,b)):a=ea(a,b);return a},z=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},ha=function(a){a=a>>14&1023;return 0===a?536870912:a},ja=function(a){return!(!a||"object"!==typeof a||a.g!==ia)},E=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},H=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var e=F(a);if(e&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;G(a,e|1);return!0},
I=function(a){a=Error(a);a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity="warning";return a},la=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:ka.test(a)},ma=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337a.length?!0:19===a.length&&922337>Number(a.substring(0,6))},na=function(a){a=Math.trunc(a);if(!Number.isSafeInteger(a)){C(a);var b=A,c=B;if(a=
c&2147483648)b=~b+1>>>0,c=~c>>>0,0==b&&(c=c+1>>>0);b=4294967296*c+(b>>>0);a=a?-b:b}return a},oa=function(a){var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));if(!ma(a)){if(16>a.length)C(Number(a));else if(x())a=BigInt(a),A=Number(a&BigInt(4294967295))>>>0,B=Number(a>>BigInt(32)&BigInt(4294967295));else{b=+("-"===a[0]);B=A=0;for(var c=a.length,e=b,f=(c-b)%6+b;f<=c;e=f,f+=6)e=Number(a.slice(e,f)),B*=1E6,A=1E6*A+e,4294967296<=A&&(B+=
Math.trunc(A/4294967296),B>>>=0,A>>>=0);b&&(b=y(z(A,B)),a=b.next().value,b=b.next().value,A=a,B=b)}a=fa()}return a},K=function(a,b,c){null==a&&(a=J);J=void 0;if(null==a){var e=96;c?(a=[c],e|=512):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error();e=F(a);if(e&64)return a;e|=64;if(c&&(e|=512,c!==a[0]))throw Error();a:{c=a;var f=c.length;if(f){var k=f-1;if(E(c[k])){e|=256;b=k-(+!!(e&512)-1);if(1024<=b)throw Error();e=e&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,f-(+!!(e&
512)-1));if(1024f;f++){var k=c.concat(e[f].split(""));ta[f]=k;for(var d=0;d>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|g>>6];g=b[g&63];c[f++]=d+h+l+g}d=0;g=e;switch(a.length-k){case 2:d=a[k+1],g=b[(d&15)<<2]||e;case 1:a=
a[k],c[f]=b[a>>2]+b[(a&3)<<4|d>>4]+g+e}a=c.join("")}return a}}return a},va=function(a,b,c,e,f){if(null!=a){if(Array.isArray(a))a=H(a,void 0,0)?void 0:f&&F(a)&2?a:ua(a,b,c,void 0!==e,f);else if(E(a)){var k={},d;for(d in a)k[d]=va(a[d],b,c,e,f);a=k}else a=b(a,e);return a}},ua=function(a,b,c,e,f){var k=e||c?F(a):0;e=e?!!(k&32):void 0;a=Array.prototype.slice.call(a);for(var d=0;db?-c:c}});P("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});P("Array.prototype.includes",function(a){return a?a:function(b,c){var e=this;e instanceof String&&(e=String(e));var f=e.length;c=c||0;for(0>c&&(c=Math.max(c+f,0));c=k){var d=f;if(f&256)var g=e[e.length-1];else{if(null==c)break a;g=e[k+(+!!(f&512)-1)]={};d|=256}g[b]=c;b=ha(c)){if(c&256){a=a[a.length-1][1];break a}}else if(c=1+(+!!(c&512)-1),cc+1E3*this.g&&(b=Date.now()+1E3*this.g,W(b));var e=function(){$a(a).then(function(){a.l||setTimeout(e,1E3*a.g)})};setTimeout(function(){e()},b&&b>c?b-c:0)}else ab(this)};
var ab=function(a){var b=bb(a);a.l||b.then(function(){var c=function(){bb(a).then(function(){setTimeout(c,1E3*a.g)})};setTimeout(function(){c()},1E3*a.g)})},bb=function(a){var b=cb(a);return db(b).then(function(c){c=eb(Ra(c));c!==a.g&&(a.g=c)}).catch(function(){a.g*=2})},$a=function(a){var b=Za();if(!b||Date.now()>=b){var c=Math.floor(1E3*Math.random());return new Promise(function(e){setTimeout(function(){var f=Za();!f||Date.now()>=f?e(fb(a)):e()},c)})}return Promise.resolve()},db=function(a){a={method:"POST",
credentials:"same-origin",cache:"no-store",mode:"same-origin",headers:{"Content-Type":"application/json"},body:Ta(a)};if("undefined"!==typeof AbortController){var b=new AbortController;setTimeout(function(){b.abort()},3E4);a.signal=b.signal}return fetch(new Request("/RotateCookies",a)).then(function(c){return c.text()}).then(function(c){return Wa(JSON.stringify(JSON.parse(c.substring(5))[0]))})},cb=function(a){var b=new Ua;var c=a.s;if(null!=c){var e=!!e;if(!la(c))throw I("int64");"string"===typeof c?
c=oa(c):e?(c=Math.trunc(c),Number.isSafeInteger(c)?c=String(c):(e=String(c),ma(e)?c=e:(C(c),c=fa()))):c=na(c)}b=Qa(b,2,c);0!==a.i&&Sa(b,1,a.i);0!==a.m&&Sa(b,3,a.m);0!==a.h&&Sa(b,4,a.h);return b},fb=function(a){W(Date.now()+1E3*a.g);var b=cb(a);return db(b).then(function(c){c=eb(Ra(c));c!==a.g&&(W(Date.now()+1E3*c),a.g=c)}).catch(function(){a.g*=2;W(Date.now()+1E3*a.g)})},Ya=function(){try{var a=window.localStorage;if(!a)return!1;a.setItem("cookieRotationStorageAccessTest","1");a.removeItem("cookieRotationStorageAccessTest");
return!0}catch(b){return!1}},eb=function(a){60>a&&(a=60);return a},Za=function(){try{var a=window.localStorage.getItem("nextRotationAttemptTs");if(!a)return null;var b=Math.floor(Number(a));return Number.isNaN(b)?null:b}catch(c){return null}},W=function(a){try{window.localStorage.setItem("nextRotationAttemptTs",a.toString())}catch(b){}};var gb=function(a,b,c,e,f,k){(new Xa(a,b,c,e,f,k)).start()},X=["init"],Y=r;X[0]in Y||"undefined"==typeof Y.execScript||Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());)X.length||void 0===gb?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=gb;
}catch(e){_._DumpException(e)}
}).call(this,this.default_IdentityRotateCookiesHttp);
// Google Inc.