Revision 7dc92704ed651a868575c83c910a4e630264b670 (click the page title to view the current version)

Chronicle/SpecialGuests/1018InAmb/Indická velvyslankyně spouštěla na Fakultě jaderné a fyzikálně inženýrské ČVUT reaktor_files/L.js

;var LEADY_COOKIE_CONSENT_OBTAINED = true;
/* */
"object"===typeof Leady&&"undefined"!==String(Leady)?"object"===typeof console&&"function"===typeof console.log&&console.log("[Leady] Already loaded with key "+String(Leady)+". Please check that the Leady JavaScript snippet is deployed only once."):("object"!==typeof _leady&&(_leady=[]),Leady=function(){function L(){d.sessionStorage&&(h?d.sessionStorage.setItem("leady_tab_id",q):d.sessionStorage.removeItem("leady_tab_id"));d.removeEventListener("beforeunload",L)}function M(a){if(h)return!0;if(!G||
void 0===m(Z))return!1;var b=m(G);if(void 0===b)return!1;if(void 0!==N){try{var c=b.match(new RegExp(N))}catch(g){c=!1}return c}try{var f=JSON.parse(b)}catch(g){}if(void 0===f){b=b.replace(/%2c/g,",").replace(/'/g,'"').replace(/([{\[,])\s*(\w+?):/g,'$1"$2":');try{f=JSON.parse(b)}catch(g){return a||console.debug("[Leady] Value of the cookie consent is expected to be a JSON-like object. Please update your settings to allow Leady to check the cookie consent value."),!1}}return void 0!==O?f[O]:!!f}function P(a){var b=
typeof a;if("undefined"!==b&&"boolean"!==b)throw H(b,"isOptedOut","{boolean=} verbose");b=m("leady_opt_out")||"[0,0,0]";b=JSON.parse(b);var c,f=new Date(b[1]),g=new Date(b[2]);g>new Date&&(c=b[0]);return a?{opted_out:c,updated:f,expires:g}:c}function H(a,b,c){return new TypeError("Boolean expected, got "+a+".\nUsage: Leady."+b+"("+c+")")}function aa(){this.i={m:function(){return this.j(this.g(),this.g(),this.g(),this.g(),4)},j:function(a,b,c,f,g){var e=Array(36);a=[a&4294967295,b&4294905855|(g||4)<<
12,c&1073741823|2147483648,f&4294967295];for(c=b=0;4>b;b++)for(f=a[b],g=0;8>g;g++){if(8===c||13===c||18===c||23===c)e[c++]="-";var k=f>>>28&15;f=(f&268435455)<<4;e[c++]=this.l.charAt(k)}return e.join("")},l:"0123456789abcdef",g:function(){try{var a=new Uint8Array(4);(d.crypto||d.msCrypto).getRandomValues(a);return a[3]+256*a[2]+65536*a[1]+16777216*a[0]}catch(b){return Math.floor(4294967296*Math.random())}}};return this.i.m()}function Q(a){try{return I(a)}catch(b){return unescape(a)}}function A(a,
b,c){var f=c;c=a+("="+B(b||""));f=new Date(f);p.cookie=c+(isNaN(f)?"":"; expires="+f.toUTCString())+"; path=/";return m(a)===b}function m(a){a=a.replace(/[\[\]]/g,function(b){return"\\"+b});if(a=(new RegExp("(^|;)[ ]*"+a+"=([^;]*)")).exec(p.cookie))return I(a[2])}function ba(a){r=m("leady_session_id");M()?(h=!0,console.debug("[Leady] Cookies has been allowed.")):console.debug("[Leady] Cookies not allowed, waiting for the user's consent.");r||(r=aa(),h?A("leady_session_id",r):R=setInterval(function(){M(!0)&&
(clearInterval(R),h=!0,A("leady_session_id",r),console.debug("[Leady] Cookies has been allowed."))},1E3*a))}function J(a){for(var b="",c=0,f=a.length;c<f;c++)b+=""+a.charCodeAt(c).toString(16);return b}function v(a,b,c){if("beforeunload"===b){if(!C)return;C=!1}try{a.removeEventListener(b,c,!1)}catch(f){a.detachEvent("on"+b,c)}}function w(a,b,c){if("beforeunload"===b){if(C)return;C=!0}try{a.addEventListener(b,c,!1)}catch(f){a.attachEvent("on"+b,c)}}function n(a,b,c,f){var g=f;c||(c=x({}));if(b&&b.length)for(var e=
0,k=b.length;e<k;e++)if(b[e].length){if("pageview"===b[e][0]){0<e&&n("o"===a?"e":a,b.slice(0,e),c);n("i",[],c);b=b.slice(e+1);b.length&&n("e",b,c);"o"===a&&n("o",[],c);return}if("cookies"===b[e][0]){h=!0===b[e][1];return}}e="https://"+(h?"t":"ct")+".leady.com/L?k="+t+"&d="+a+"&s="+r;if("i"===a||"e"===a){var l=d.location.href;k="";try{k=d.top.document.referrer}catch(y){if(d.parent)try{k=d.parent.document.referrer}catch(ea){k=""}}""===k&&(k=p.referrer);var D=p.domain||"";l=l||"";if("translate.googleusercontent.com"===
D)""===k&&(k=l),l=(l=RegExp("[\\?&#]u=([^&#]*)").exec(l))?I(l[1]):"";else if("cc.bingj.com"===D||"webcache.googleusercontent.com"===D||"74.6."===D.slice(0,5))l=p.baseURI;l=[l,k];k=Q(l[0]);l=Q(l[1]);e+="&l="+B(k.replace(RegExp("#.*"),""))+"&r="+B(l.replace(RegExp("#.*"),""));if(b&&b.length)try{e+="&e="+B(JSON.stringify(b))}catch(y){}else if("e"===a)return;if("i"===a){if("undefined"===typeof leady_omit_ua)try{var S=m("_ga");S&&(e+="&g="+J(S))}catch(y){}if("undefined"===typeof leady_omit_fbc){try{var T=
m("_fbc");T&&(e+="&fc="+J(T))}catch(y){}try{var U=m("_fbp");U&&(e+="&fp="+J(U))}catch(y){}}}}e+="&nc="+(h?"0":"1");c&&(e+="&"+c);if(!g)try{g=!navigator.sendBeacon(e)}catch(y){g=!0}if(g&&(a=String(Math.random()).slice(2,8),e=c?e+a:e+("&9"+a),(new Image(1,1)).src=e+(Math.random()+"").slice(2,8),f)){Date.prototype.h=Date.prototype.getTime;for(c=(new Date).getTime()+49;(new Date).h()<c;);delete Date.prototype.h}}function ca(a){var b=x({type:"load"});n("e",a,b);return{push:function(){var c=x({type:null});
return n("e",Array.prototype.slice.call(arguments),c)}}}function x(a){"object"===typeof a&&null!==a&&(a=a.type);return(da[a]||"0")+q}function K(a){if(!(h&&"visibilityState"in document&&"visible"!==document.visibilityState)){var b=Date.now();w(d,"beforeunload",u);if(!E||1E3<b-E)"localStorage"in window&&(h?window.localStorage.setItem("leady_tab_id",q):window.localStorage.removeItem("leady_tab_id")),a=x(a),clearTimeout(V),n("i",[],a),F=null,E=b}}function u(a){function b(f,g){if("localStorage"in window){var e=
window.localStorage.getItem("leady_tab_id");if(e&&e!=q)return;window.localStorage.removeItem("leady_tab_id")}f=x(f);n("o",[],f,g);E=null;F=c}var c=Date.now();if(!F||1E3<c-F)v(d,"beforeunload",u),!h||a&&"beforeunload"===a.type?b(a,!0):V=setTimeout(function(){b(a)},300)}function W(a){if(h)return K(a)}function X(a){if(h)return u(a)}function Y(a){h&&("visible"===document.visibilityState?K(a):u(a))}function z(){}a:{try{var t=RegExp("/([a-z0-9]{16})/L.js","i").exec(document.currentScript.src)[1];break a}catch(a){if("string"===
typeof window.leady_track_key){t=window.leady_track_key;break a}}t=void 0}var p=document,d=window,B=d.encodeURIComponent,I=d.decodeURIComponent,h=d.LEADY_COOKIE_CONSENT_OBTAINED,G=d.LEADY_COOKIE_CONSENT_LEVEL,Z=d.LEADY_COOKIE_CONSENT_ACCEPTED||G,O=d.LEADY_COOKIE_CONSENT_KEY,N=d.LEADY_COOKIE_CONSENT_MATCH,R=null,C=!1,E,F,V=null,r="",da={load:"1",pageshow:"2",pagehide:"3",visibilitychange:"4",beforeunload:"5"},q;d.sessionStorage&&(q=d.sessionStorage.getItem("leady_tab_id"))?d.sessionStorage.removeItem("leady_tab_id"):
q=Math.floor(Math.random()*Math.pow(10,4));d.addEventListener("beforeunload",L);t?P()?(A("leady_session_id","",1E3),"object"===typeof console&&"function"===typeof console.log&&console.log("[Leady] Tracking in this browser is stopped. Run Leady.optOut(false) to enable it.")):(ba(2),w(d,"pageshow",W),K({type:"load"}),_leady=new ca(_leady),w(d,"pagehide",X),w(p,"visibilitychange",Y),w(d,"beforeunload",u)):"object"===typeof console&&"function"===typeof console.log&&console.log("[Leady] Could not start Leady. Please check that the Leady JavaScript snippet is deployed correctly.");
z.prototype.toString=function(){return t};z.prototype.optOut=function(a,b){var c=typeof a;if("boolean"!==c)throw H(c,"optOut","{boolean} disableTracking, {(Date|string|number)=NEVER} expires");c=new Date(2038,0,19,3,14,7);a&&(d._leady=[],v(d,"beforeunload",u),v(d,"pageshow",W),v(d,"pagehide",X),v(p,"visibilitychange",Y));a=JSON.stringify([a,new Date,b||c]);return A("leady_opt_out",a,c)};z.prototype.isOptedOut=P;z.prototype.getCookiesStatus=function(a){var b=typeof a;if("undefined"!==b&&"boolean"!==
b)throw H(b,"getCookiesStatus","{boolean=} verbose");return a?{cookies_allowed:!!h,LEADY_COOKIE_CONSENT_LEVEL:{name:d.LEADY_COOKIE_CONSENT_LEVEL,value:d.LEADY_COOKIE_CONSENT_LEVEL?m(d.LEADY_COOKIE_CONSENT_LEVEL):null},LEADY_COOKIE_CONSENT_ACCEPTED:{name:d.LEADY_COOKIE_CONSENT_ACCEPTED,value:d.LEADY_COOKIE_CONSENT_ACCEPTED?m(d.LEADY_COOKIE_CONSENT_ACCEPTED):null},LEADY_COOKIE_CONSENT_MATCH:d.LEADY_COOKIE_CONSENT_MATCH,LEADY_COOKIE_CONSENT_KEY:d.LEADY_COOKIE_CONSENT_KEY}:!!h};window.addEventListener("message",
function(a){try{a.source===window&&"get_leady_track_key"===a.data.type&&window.postMessage({type:"leady_track_key",data:t},"*")}catch(b){}},!1);return new z}());