1!(function (e) { 2 window.BorlabsCookie = (function () { 3 'use strict'; 4 var o, 5 t, 6 n = 'data-cookie-accordion', 7 i = 'data-cookie-accordion-parent', 8 a = 'data-cookie-accordion-status', 9 c = 'data-cookie-accordion-target', 10 s = "#BorlabsCookieBox input[type='checkbox']", 11 r = '#BorlabsCookieBox', 12 l = '#BorlabsCookieBoxWrap', 13 d = 'data-borlabs-cookie-group', 14 u = "#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']", 15 b = 'data-cookie-accept', 16 h = 'data-cookie-accept-all', 17 k = 'data-cookie-back', 18 p = 'data-cookie-individual', 19 f = 'data-cookie-refuse', 20 v = 'data-borlabs-cookie-preference', 21 g = '.borlabs-cookie-preference', 22 m = 'data-borlabs-cookie-switch', 23 x = '._brlbs-btn-switch-status', 24 y = 'data-borlabs-cookie-unblock', 25 C = 'data-borlabs-cookie-type', 26 w = 'data-borlabs-cookie-id', 27 L = 'data-borlabs-script-blocker-id', 28 _ = 'data-borlabs-script-blocker-js-handle', 29 B = "input[type='checkbox'][name='unblockAll']", 30 O = 'data-borlabs-cookie-uid', 31 S = 'data-borlabs-cookie-consent-history', 32 j = '.BorlabsCookie', 33 I = {}, 34 T = {}, 35 D = {}, 36 A = {}, 37 E = { scriptBlockerId: {}, jsHandle: {} }, 38 U = !1, 39 P = { consents: {}, expires: null, uid: null, version: null }, 40 H = { consentSaved: null, codeUnblocked: null, codeUnblockedAfterConsent: null }; 41 function N(e, o) { 42 if (o) { 43 var t = o.querySelectorAll( 44 'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])' 45 ), 46 n = Array.from(t).filter(function (e) { 47 return 0 !== e.offsetHeight; 48 }), 49 i = n[0], 50 a = n[n.length - 1]; 51 ('Tab' === e.key || 9 === e.keyCode) && 52 (e.shiftKey 53 ? document.activeElement === i && (e.preventDefault(), a.focus()) 54 : document.activeElement === a && (e.preventDefault(), i.focus())); 55 } 56 } 57 function R(e) { 58 // e.addEventListener( 59 // 'keydown', 60 // function (o) { 61 // return N(o, e); 62 // }, 63 // !0 64 // ); 65 } 66 function G(e) { 67 e.removeEventListener( 68 'keydown', 69 function (o) { 70 return N(o, e); 71 }, 72 !0 73 ); 74 } 75 function J() { 76 e(r).attr('aria-modal', !1); 77 } 78 var M = function () { 79 e(l).length && 'SCRIPT' === e(l)[0].tagName && e(l).after(e(l).html()), 80 e(document).on('click', '[' + b + ']', function (e) { 81 e.preventDefault(), Y(), q(); 82 }), 83 e(document).on('click', '[' + h + ']', function (e) { 84 e.preventDefault(), K(); 85 }), 86 e(document).on('click', '[' + k + ']', function (e) { 87 e.preventDefault(), W(); 88 }), 89 e(document).on('click', '[' + p + ']', function (e) { 90 e.preventDefault(), $(); 91 }), 92 e(document).on('click', '[' + f + ']', function (o) { 93 o.preventDefault(); 94 var t = []; 95 e(u + ':checked').each(function () { 96 -1 === t.indexOf(this.value) && 97 (e(this).trigger('click'), t.push(this.value)); 98 }), 99 Y(), 100 q(); 101 }), 102 F(), 103 Q(), 104 Z(), 105 !0 === ee() 106 ? (re(), le(), de(), document.dispatchEvent(H.codeUnblocked), J()) 107 : o.showCookieBox 108 ? 0 === o.hideCookieBoxOnPages.length || 109 -1 === 110 o.hideCookieBoxOnPages.indexOf( 111 window.location.protocol + 112 '//' + 113 window.location.host + 114 window.location.pathname 115 ) 116 ? o.cookiesForBots && 117 /bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test( 118 navigator.userAgent.toLowerCase() 119 ) 120 ? (te(o.cookies, !1), 121 re(), 122 le(), 123 de(), 124 J(), 125 document.dispatchEvent(H.codeUnblocked)) 126 : o.respectDoNotTrack && 127 void 0 !== navigator.doNotTrack && 128 '1' === navigator.doNotTrack 129 ? (te({ essential: o.cookies.essential }, !1), 130 re(), 131 le(), 132 de(), 133 J(), 134 document.dispatchEvent(H.codeUnblocked)) 135 : z(!0) 136 : (re(), le(), de(), J(), document.dispatchEvent(H.codeUnblocked)) 137 : J(); 138 }, 139 z = function (t) { 140 e(r).attr('aria-modal', !0), 141 e('body').addClass('borlabs-position-fix'), 142 R(document.querySelector('.cookie-box')), 143 void 0 === t && (t = !1); 144 var n = e(u), 145 i = null; 146 return ( 147 Object.keys(P.consents).length 148 ? (e('[' + d + ']').each(function () { 149 -1 === 150 Object.keys(P.consents).indexOf( 151 this.dataset.borlabsCookieGroup 152 ) && e(this).addClass('borlabs-hide'); 153 }), 154 n.length && 155 '1' === o.boxLayoutAdvanced && 156 n.each(function () { 157 (i = this.value), 158 'string' == typeof this.dataset.borlabsCookieCheckbox && 159 ('object' == typeof P.consents[i] 160 ? e(this).prop('checked', !0) 161 : e(this).prop('checked', !1)); 162 })) 163 : n.length && 164 n.each(function () { 165 (i = this.value), 166 '1' === o.boxLayoutAdvanced && 167 '1' === o.ignorePreSelectStatus && 168 !1 === U && 169 'essential' !== i && 170 (e(this).prop('checked', !1), 171 e(s + "[name='cookies[" + i + "][]']") 172 .prop('checked', !1) 173 .trigger('change')); 174 }), 175 o.blockContent 176 ? (e(r + ' > div').addClass('_brlbs-block-content'), 177 o.animation 178 ? (e(r + ' > div').addClass('_brlbs-bg-animation'), 179 setTimeout(function () { 180 e(r + ' > div').addClass('_brlbs-bg-dark'); 181 }, 25)) 182 : e(r + ' > div').addClass('_brlbs-bg-dark')) 183 : e('._brlbs-' + o.boxLayout + '-wrap').addClass('_brlbs-position-fixed'), 184 e(r + ' > div').css('display', ''), 185 e(r + ' > div').addClass('show-cookie-box'), 186 o.animation && 187 e(r + ' ._brlbs-' + o.boxLayout).addClass( 188 'animated ' + o.animationIn + (t && o.animationDelay ? ' delay-1s' : '') 189 ), 190 e('#CookieBoxSaveButton')[0].focus(), 191 !0 192 ); 193 }, 194 q = function () { 195 return ( 196 J(), 197 G(document.querySelector('.cookie-box')), 198 o.animation && 199 (e(r + ' ._brlbs-' + o.boxLayout).removeClass('delay-1s '), 200 e(r + ' ._brlbs-' + o.boxLayout).removeClass(o.animationIn), 201 e(r + ' ._brlbs-' + o.boxLayout).addClass(o.animationOut)), 202 e(r + ' > div').addClass('borlabs-hide'), 203 o.blockContent 204 ? e(r + ' > div').removeClass('_brlbs-bg-dark') 205 : e('._brlbs-' + o.boxLayout + '-wrap').addClass('_brlbs-position-fixed'), 206 setTimeout( 207 function () { 208 e('._brlbs-' + o.boxLayout + '-wrap').removeAttr('style'), 209 e('._brlbs-' + o.boxLayout + ' .cookie-box .container').removeAttr( 210 'style' 211 ), 212 e( 213 '._brlbs-' + o.boxLayout + ' .cookie-preference .container' 214 ).removeAttr('style'), 215 o.animation && 216 (e('._brlbs-' + o.boxLayout).removeClass('animated'), 217 e('._brlbs-' + o.boxLayout).removeClass('delay-1s'), 218 e('._brlbs-' + o.boxLayout).removeClass(o.animationIn), 219 e('._brlbs-' + o.boxLayout).removeClass(o.animationOut)), 220 e(r + ' > div').removeClass('show-cookie-box'), 221 o.blockContent && 222 e(r + ' > div').removeClass('_brlbs-block-content'); 223 }, 224 o.animation ? 1e3 : 0 225 ), 226 e('body').removeClass('borlabs-position-fix'), 227 !0 228 ); 229 }, 230 $ = function () { 231 G(document.querySelector('.cookie-box')), 232 R(document.querySelector('.cookie-preference')); 233 var t = e(u), 234 n = null; 235 t.length && 236 t.each(function () { 237 (n = this.value), 238 Object.keys(P.consents).length 239 ? !1 === U && 240 (void 0 !== P.consents[n] 241 ? (e(this).prop('checked', !0), 242 e(this).trigger('change'), 243 e(s + "[name='cookies[" + n + "][]']").each(function () { 244 -1 !== P.consents[n].indexOf(this.value) 245 ? e(this).prop('checked', !0) 246 : e(this).prop('checked', !1), 247 e(this).trigger('change'); 248 })) 249 : (e(this).prop('checked', !1), 250 e(this).trigger('change'), 251 e(s + "[name='cookies[" + n + "][]']") 252 .prop('checked', !1) 253 .trigger('change'))) 254 : ('1' === o.ignorePreSelectStatus && 255 !1 === U && 256 (e(this).prop('checked', !1), 257 e(r + ' [' + d + "='" + this.value + "']").addClass( 258 'borlabs-hide' 259 )), 260 e(this).trigger('change'), 261 e(s + "[name='cookies[" + n + "][]']").each(function () { 262 '1' === o.ignorePreSelectStatus && 263 !1 === U && 264 e(this).prop('checked', !1), 265 e(this).trigger('change'); 266 })); 267 }), 268 e('._brlbs-' + o.boxLayout + ' .cookie-box .container').animate( 269 { height: 0, opacity: 0 }, 270 function () { 271 e('._brlbs-' + o.boxLayout + ' .cookie-box').attr('aria-hidden', !0), 272 e('._brlbs-' + o.boxLayout + ' .cookie-preference').attr( 273 'aria-hidden', 274 !1 275 ), 276 e('#CookiePrefSave')[0].focus(), 277 e('._brlbs-' + o.boxLayout + '-wrap').animate( 278 { 279 width: '100vw', 280 maxWidth: 'box' === o.boxLayout ? '768px' : '100%' 281 }, 282 'box' === o.boxLayout ? 400 : 0, 283 function () { 284 var t = e( 285 '._brlbs-' + 286 o.boxLayout + 287 ' .cookie-preference .container' 288 )[0].scrollHeight; 289 e( 290 '._brlbs-' + 291 o.boxLayout + 292 ' .cookie-preference .container' 293 ).animate({ height: '80vh', maxHeight: t, opacity: 1 }); 294 } 295 ); 296 } 297 ); 298 }, 299 W = function () { 300 G(document.querySelector('.cookie-preference')), 301 e('._brlbs-' + o.boxLayout + ' .cookie-preference .container').animate( 302 { height: 0, opacity: 0 }, 303 function () { 304 e('._brlbs-' + o.boxLayout + ' .cookie-box').attr('aria-hidden', !1), 305 e('._brlbs-' + o.boxLayout + ' .cookie-preference').attr( 306 'aria-hidden', 307 !0 308 ), 309 e('._brlbs-' + o.boxLayout + '-wrap').animate( 310 { maxWidth: 'box' === o.boxLayout ? '375px' : '100%' }, 311 'box' === o.boxLayout ? 400 : 0, 312 function () { 313 var t = 314 e( 315 '._brlbs-' + o.boxLayout + ' .cookie-box .container' 316
316 )[0].scrollHeight + 'px'; 317 e( 318 '._brlbs-' + o.boxLayout + ' .cookie-box .container' 319 ).animate({ height: t, opacity: 1 }); 320 } 321 ), 322 e('#CookieBoxSaveButton')[0].focus(); 323 } 324 ); 325 }, 326 V = function (t) { 327 return ( 328 void 0 !== t && t.preventDefault(), 329 e('._brlbs-' + o.boxLayout + ' .cookie-preference .container a[' + k + ']').css( 330 'display', 331 'none' 332 ), 333 e( 334 '._brlbs-' + 335 o.boxLayout + 336 ' .cookie-preference .container a[' + 337 k + 338 '] + span._brlbs-separator' 339 ).css('display', 'none'), 340 e('._brlbs-' + o.boxLayout + ' .cookie-box .container').css('height', 0), 341 e('._brlbs-' + o.boxLayout + ' .cookie-box .container').css('opacity', 0), 342 e('._brlbs-' + o.boxLayout + '-wrap').css({ 343 width: '100vw', 344 maxWidth: 'box' === o.boxLayout ? '768px' : '100%' 345 }), 346 z(!1), 347 setTimeout(function () { 348 $(); 349 }, 500), 350 !0 351 ); 352 }, 353 F = function () { 354 e('[' + n + ']').on('click', '[' + c + ']', function () { 355 var o = e(this).closest('[' + n + ']'); 356 o.find('[' + i + ']:visible').length && 357 (o.find('[' + a + "='hide']").addClass('borlabs-hide'), 358 o.find('[' + a + "='show']").removeClass('borlabs-hide'), 359 o.find('[' + i + ']:visible').slideUp()), 360 o.find('[' + i + "='" + this.dataset.cookieAccordionTarget + "']:hidden") 361 .length && 362 (e(this) 363 .children('[' + a + "='show']") 364 .addClass('borlabs-hide'), 365 e(this) 366 .children('[' + a + "='hide']") 367 .removeClass('borlabs-hide'), 368 o 369 .find('[' + i + "='" + this.dataset.cookieAccordionTarget + "']") 370 .slideDown()); 371 }); 372 }, 373 K = function () { 374 var o = e(u), 375 t = null; 376 o.length && 377 o.each(function () { 378 (t = this.value), 379 e(this).prop('checked', !0), 380 e(this).trigger('change'), 381 e(s + "[name='cookies[" + t + "][]']").each(function () { 382 e(this).prop('checked', !0), e(this).trigger('change'); 383 }); 384 }), 385 Y(), 386 q(); 387 }, 388 Q = function () { 389 e(document).on('click', u, function () { 390 (U = !0), 391 this.checked 392 ? (e(s + "[name='cookies[" + this.value + "][]']") 393 .prop('checked', !0) 394 .trigger('change'), 395 e(u + "[value='" + this.value + "']").prop('checked', !0), 396 e(r + ' [' + d + "='" + this.value + "']").length && 397 e(r + ' [' + d + "='" + this.value + "']").removeClass( 398 'borlabs-hide' 399 )) 400 : (e(s + "[name='cookies[" + this.value + "][]']") 401 .prop('checked', !1) 402 .trigger('change'), 403 e(u + "[value='" + this.value + "']").prop('checked', !1), 404 e(r + ' [' + d + "='" + this.value + "']").length && 405 e(r + ' [' + d + "='" + this.value + "']").addClass( 406 'borlabs-hide' 407 )); 408 }); 409 }, 410 Z = function () { 411 e(document).on('click', s + "[name^='cookies']", function () { 412 (U = !0), 413 this.checked && 414 (e(u + "[value='" + this.dataset.cookieGroup + "']") 415 .prop('checked', !0) 416 .trigger('change'), 417 e(r + ' [' + d + "='" + this.dataset.cookieGroup + "']").length && 418 e( 419 r + ' [' + d + "='" + this.dataset.cookieGroup + "']" 420 ).removeClass('borlabs-hide')); 421 }); 422 }, 423 X = function () { 424 !0 === this.checked 425 ? (e(this) 426 .parent() 427 .parent() 428 .children(x) 429 .children() 430 .last() 431 .css('display', 'none'), 432 e(this) 433 .parent() 434 .parent() 435 .children(x) 436 .children() 437 .first() 438 .css('display', 'inline-block')) 439 : (e(this) 440 .parent() 441 .parent() 442 .children(x) 443 .children() 444 .first() 445 .css('display', 'none'), 446 e(this) 447 .parent() 448 .parent() 449 .children(x) 450 .children() 451 .last() 452 .css('display', 'inline-block')); 453 }, 454 Y = function () { 455 var t = { essential: o.cookies.essential }, 456 n = e(u + ':checked'), 457 i = e(s + "[name^='cookies']:checked"); 458 if ( 459 (n.length && 460 (n.each(function () { 461 this.value.length && 462 new RegExp(/^[a-z-_]{3,}$/).test(this.value) && 463 'essential' !== this.value && 464 (t[this.value] = []); 465 }), 466 i.length && 467 i.each(function () { 468 this.value.length && 469 'string' == typeof this.dataset.cookieGroup && 470 new RegExp(/^[a-z-_]{3,}$/).test(this.value) && 471 new RegExp(/^[a-z-_]{3,}$/).test(this.dataset.cookieGroup) && 472 t[this.dataset.cookieGroup].push(this.value); 473 })), 474 Object.keys(P.consents).length) 475 ) 476 for (var a in P.consents) 477 if (void 0 !== t[a]) 478 for (var c in P.consents[a]) 479 -1 === t[a].indexOf(P.consents[a][
479c]) && ue(a, P.consents[a][c]); 480 else if (void 0 !== I[a]) for (var r in I[a]) ue(a, r); 481 te(t, !0), 482 '1' !== o.reloadAfterConsent && 483 (re(), 484 le(), 485 de(), 486 document.dispatchEvent(H.codeUnblockedAfterConsent), 487 document.dispatchEvent(H.codeUnblocked)); 488 }, 489 ee = function () { 490 var e = !1; 491 return ( 492 'string' == typeof P.version && 493 (P.version === o.cookieVersion ? (e = !0) : (P.consents = {})), 494 e 495 ); 496 }, 497 oe = function () { 498 if (document.cookie.length) 499 for (var e = document.cookie.split(';'), t = 0; t < e.length; t++) 500 try { 501 e[t] = decodeURIComponent(e[t]); 502 var n = e[t].split('='), 503 i = void 0 !== n[0] ? n[0].trim() : '', 504 a = void 0 !== n[1] ? n[1].trim() : ''; 505 if ('borlabs-cookie' === i) { 506 var c = JSON.parse(decodeURIComponent(a)); 507 void 0 !== c.domainPath 508 ? c.domainPath === window.location.hostname + o.cookiePath && 509 (P = c) 510 : (P = c); 511 } 512 } catch (o) { 513 console.log('The cookie is spoiled:'), 514 console.dir(e[t]), 515 console.dir(o); 516 } 517 return P; 518 }, 519 te = function (e, t) { 520 var n = {}, 521 i = '', 522 a = [], 523 c = o.cookieLifetime; 524 if ( 525 (1 == Object.keys(e).length && 526 void 0 !== o.cookieLifetimeEssentialOnly && 527 (c = o.cookieLifetimeEssentialOnly), 528 !1 === t || !1 === ee()) 529 ) { 530 var s = new Date(); 531 s.setTime(s.getTime() + 24 * parseInt(c) * 60 * 60 * 1e3), 532 (i = s.toUTCString()); 533 } else i = P.expires; 534 (n.consents = e), 535 (n.domainPath = window.location.hostname + o.cookiePath), 536 (n.expires = i), 537 (n.uid = P.uid), 538 (n.version = o.cookieVersion), 539 void 0 === n.consents.essential && (n.consents.essential = o.cookies.essential), 540 a.push('borlabs-cookie=' + encodeURIComponent(JSON.stringify(n))), 541 '' !== window.location.hostname && 542 '' === o.automaticCookieDomainAndPath && 543 a.push('domain=' + window.location.hostname), 544 a.push('path=' + o.cookiePath), 545 a.push('expires=' + i), 546 a.push('SameSite=Lax'), 547 (document.cookie = a.join(';')), 548 oe(), 549 // ve(), 550 me(), 551 document.dispatchEvent(H.consentSaved); 552 }, 553 ne = function (e, t, n) { 554 var i, 555 a = '', 556 c = [], 557 s = '', 558 r = new Date(); 559 return ( 560 null == t || !1 === t 561 ? '' !== window.location.hostname && 562 '' === o.automaticCookieDomainAndPath && 563 (a = window.location.hostname) 564 : (a = t), 565 void 0 === n && (n = !1), 566 (i = (function (e, o) { 567 var t = { name: '', value: '' }; 568 if ( 569 (void 0 === o && (o = !1), 570 o && (e = e.replace('*', '')), 571 document.cookie.length) 572 ) 573 for (var n = document.cookie.split(';'), i = 0; i < n.length; i++) 574 try { 575 n[i] = decodeURIComponent(n[i]); 576 var a = n[i].split('='), 577 c = void 0 !== a[0] ? a[0].trim() : '', 578 s = void 0 !== a[1] ? a[1].trim() : ''; 579 o 580 ? -1 !== c.indexOf(e) && ((t.name = c), (t.value = s)) 581 : c === e && ((t.name = c), (t.value = s)); 582 } catch (e) { 583 console.log('The cookie is spoiled:'), 584 console.dir(n[i]), 585 console.dir(e); 586 } 587 return t; 588 })(e, n)).name.length && 589 (c.push(i.name + '='), 590 '' !== a && c.push('domain=' + a), 591 c.push('path=' + o.cookiePath), 592 r.setTime(r.getTime() - 864e5), 593 (s = r.toUTCString()), 594 c.push('expires=' + s), 595 (document.cookie = c.join(';'))), 596 !0 597 ); 598 }, 599 ie = function (e, o) { 600 return ( 601 (function (e, o) { 602 'string' == typeof e && 603 e.length && 604 new RegExp(/^[a-z-_]{3,}$/).test(e) && 605 (void 0 === P.consents[e] && (P.consents[e] = []), 606 'string' == typeof o && 607 new RegExp(/^[a-z-_]{3,}$/).test(o) && 608 -1 === P.consents[e].indexOf(o) && 609 P.consents[e].push(o)), 610 te(P.consents, !0); 611 })(e, o), 612 !0 613 ); 614 }, 615 ae = function (e, o) { 616 return ( 617 (function (e, o) { 618 if ( 619 'string' == typeof e && 620 e.length && 621 new RegExp(/^[a-z-_]{3,}$/).test(e) 622 ) { 623 var t = !0; 624 'string' == typeof o && 625 new RegExp(/^[a-z-_]{3,}$/).test(o) && 626 void 0 !== P.consents[e] && 627 -1 !== P.consents[e].indexOf(o) && 628 (P.consents[e].splice(P.consents[e].indexOf(o), 1), (t = !1)), 629 !0 === t && void 0 !== P.consents[e] && delete P.consents[e]; 630 } 631 Object.keys(P.consents).length && te(P.consents, !0); 632 })(e, o), 633 ue(e, o), 634 !0 635 ); 636 }, 637 ce = function (e) { 638 var o = !1; 639 for (var t in P.consents) -1 !== P.consents[t].indexOf(e) && (o = !0); 640 return o; 641 }, 642 se = function () { 643 function e() { 644 var e = ''; 645 if ('object' == typeof window.crypto) { 646 var o = 0, 647 t = new Uint32Array(4); 648 for (window.crypto.getRandomValues(t); o < 4; o++) 649 e += 'abcdefhgihjklmnopqrstuvwxyz0123456789'[t[o] % 37]; 650 } else 651 e = Math.floor(65536 * (1 + Math.random())) 652 .toString(16) 653 .substring(1); 654 return e; 655 } 656 return e() + e() + '-' + e() + e() + '-' + e() + e() + '-' + e() + e(); 657 }, 658 re = function () { 659 for (var o in P.consents) 660 for (var n in P.consents[o]) { 661 var i = P.consents[o][n]; 662 void 0 !== I[o] && 663 void 0 !== I[o][i] && 664 (void 0 !== t[o] && 665 void 0 !== t[o][i] && 666 (e('body').append(fe(t[o][i])), delete t[o][i]), 667 void 0 !== I[o][i].optInJS && 668 (e('body').append(fe(I[o][i].optInJS)), (I[o][i].optInJS = ''))); 669 } 670 }, 671 le = function () { 672 e('[' + C + "='cookie-group']").each(function () { 673 if (void 0 !== P.consents[this.dataset.borlabsCookieId]) { 674 var t = ''; 675 (t = 676 'javascript' === o.cookieBoxIntegration 677 ? fe(this.firstChild.innerHTML) 678 : fe(this.innerHTML)), 679 e(this).prev().length 680 ? e(this).prev().after(t) 681 : e(this).parent().prepend(t), 682 this.parentNode.removeChild(this); 683 } 684 }); 685 }, 686 de = function () { 687 e('[' + C + "='cookie']").each(function () { 688 for (var t in P.consents) 689 if (-1 !== P.consents[t].indexOf(this.dataset.borlabsCookieId)) { 690 var n = ''; 691 (n = 692 'javascript' === o.cookieBoxIntegration 693 ? fe(this.firstChild.innerHTML) 694 : fe(this.innerHTML)), 695 e(this).prev().length 696 ? e(this).prev().after(n) 697 : e(this).parent().prepend(n), 698 this.parentNode.removeChild(this); 699 } 700 }); 701 }, 702 ue = function (o, t) { 703 void 0 !== I[o] && 704 void 0 !== I[o][t] && 705 void 0 !== I[o][t].optOutJS && 706 (e('body').append(fe(I[o][t].optOutJS)), (I[o][t].optOutJS = '')); 707 }, 708 be = function (t) { 709 t.preventDefault(); 710 var n, 711 i, 712 a = e(this).parents('.BorlabsCookie'), 713 c = !1; 714 if ( 715 ((n = a.find('[' + C + "='content-blocker']")[0].dataset.borlabsCookieId), 716 void 0 !== T[n] && 717 void 0 !== T[n].settings.unblockAll && 718 '1' === T[n].settings.unblockAll && 719 (c = !0), 720 (i = a.find(B)).length && (c = !!i[0].checked), 721 c) 722 ) 723 for (var s in (e('[' + C + "='content-blocker'][" + w + "='" + n + "']").each( 724 function () { 725 he(e(this).parents('.BorlabsCookie')); 726 } 727 ), 728 o.cookies)) 729 -1 !== o.cookies[s].indexOf(n) && ie(s, n); 730 else he(a); 731 }, 732 he = function (e) { 733 var t = e.find('[' + C + "='content-blocker']"), 734 n = ''; 735 if (t.length) { 736 var i = ''; 737 (n = t[0].dataset.borlabsCookieId), 738 void 0 !== T[n].settings.executeGlobalCodeBeforeUnblocking && 739 '1' === T[n].settings.executeGlobalCodeBeforeUnblocking && 740 void 0 === D[n] && 741 (T[n].global(T[n]), (D[n] = !0)), 742 (i = 743 'javascript' === o.cookieBoxIntegration 744 ? fe(t[0].firstChild.innerHTML) 745 : fe(t[0].innerHTML)); 746 var a = setInterval(function () { 747 var o = !0; 748 if (void 0 !== A[n]) { 749 var t; 750 if (void 0 !== A[n].scriptBlockerId) 751 for (t in A[n].scriptBlockerId) 752 !0 !== pe(A[n].scriptBlockerId[t], 'scriptBlockerId') && 753 (o = !1); 754 if (void 0 !== A[n].scriptBlockerId) 755 for (t in A[n].jsHandle) 756 !0 !== pe(A[n].jsHandle[t], 'jsHandle') && (o = !1); 757 } 758 !0 === o && 759 (clearInterval(a), 760 e.prev().length ? e.prev().after(i) : e.parent().prepend(i), 761 (void 0 !== T[n].settings.executeGlobalCodeBeforeUnblocking && 762 '0' !== T[n].settings.executeGlobalCodeBeforeUnblocking) || 763 (void 0 === D[n] && (T[n].global(T[n]), (D[n] = !0))
763), 764 T[n].init(e.prev()[0], T[n]), 765 e[0].parentNode.removeChild(e[0])); 766 }, 50); 767 } 768 }, 769 ke = function (o, t, n) { 770 var i = e(o)[0]; 771 if (void 0 !== i) { 772 var a = document.createElement('script'); 773 if ( 774 ('' !== i.id && (a.id = i.id), 775 '' !== i.className && (a.className = i.className), 776 '' !== i.dataset) 777 ) 778 for (var c in i.dataset) 779 if (-1 === c.indexOf('borlabs')) { 780 var s = c.split(/(?=[A-Z])/); 781 for (var r in s) s[r] = '-' + s[r].toLowerCase(); 782 a.setAttribute('data' + s.join(''), i.dataset.hasOwnProperty(c)); 783 } 784 'string' == typeof i.dataset.borlabsScriptBlockerSrc 785 ? ((a.src = i.dataset.borlabsScriptBlockerSrc), 786 (a.onload = function () { 787 E[n][t]--, ke(o, t, n); 788 }), 789 i.parentNode.insertBefore(a, i), 790 i.parentNode.removeChild(i)) 791 : ((a.type = 'text/javascript'), 792 (a.innerHTML = i.innerHTML), 793 i.parentNode.insertBefore(a, i), 794 i.parentNode.removeChild(i), 795 E[n][t]--, 796 ke(o, t, n)); 797 } 798 return !0; 799 }, 800 pe = function (e, o) { 801 var t = !1; 802 return void 0 !== E[o][e] && 0 === E[o][e] && (t = !0), t; 803 }, 804 fe = function (e) { 805 return decodeURIComponent( 806 Array.prototype.map 807 .call(window.atob(e), function (e) { 808 return '%' + ('00' + e.charCodeAt(0).toString(16)).slice(-2); 809 }) 810 .join('') 811 ); 812 }, 813 ve = function () { 814 // te(o.cookies, !0); 815 }, 816 ge = function () { 817 e.ajax(o.ajaxURL, { 818 type: 'POST', 819 data: { 820 action: 'borlabs_cookie_handler', 821 type: 'consent_history', 822 language: o.language, 823 uid: P.uid 824 } 825 }).done(function (o) { 826 (o = e.parseJSON(o)).length && 827 e.each(o, function (o, t) { 828 e('[' + S + '] table').append( 829 '<tr><td>' + 830 t.stamp + 831 '</td><td>' + 832 t.version + 833 '</td><td>' + 834 t.consent + 835 '</td></tr>' 836 ); 837 }); 838 }); 839 }, 840 me = function () { 841 if (o.crossDomainCookie.length) 842 for (var t in o.crossDomainCookie) { 843 var n = o.crossDomainCookie[t]; 844 e('body').append( 845 '<iframe class="borlabs-hide" src="' + 846 n + 847 '?__borlabsCookieCall=cDC&cookieLang=' + 848 o.language + 849 '&cookieData=' + 850 encodeURIComponent(JSON.stringify(P)) + 851 '"></iframe>' 852 ); 853 } 854 }, 855 xe = function () { 856 e(j + " [name^='borlabsCookie']").each(function () { 857 ce(this.value) ? (this.checked = !0) : (this.checked = !1), 858 e(this).trigger('change'); 859 }), 860 e(document).on('change', j + " [name^='borlabsCookie']", function () { 861 this.checked 862 ? ie(this.dataset.cookieGroup, this.value) 863 : ae(this.dataset.cookieGroup, this.value); 864 }); 865 }, 866 ye = function () { 867 if (Object.keys(I).length) 868 for (var e in I) 869 if (Object.keys(I[e]).length) 870 for (var o in I[e]) 871 if ( 872 void 0 !== I[e][o].settings && 873 void 0 !== I[e][o].settings.blockCookiesBeforeConsent && 874 '1' === I[e][o].settings.blockCookiesBeforeConsent && 875 void 0 !== I[e][o].cookieNameList && 876 !1 === ce(o) 877 ) 878 for (var t in I[e][o].cookieNameList) 879 ne(t, null, -1 !== t.indexOf('*')), 880 ne(t, '', -1 !== t.indexOf('*')); 881 }; 882 return { 883 addConsent: ie, 884 allocateScriptBlockerToContentBlocker: function (e, o, t) { 885 ('scriptBlockerId' !== t && 'jsHandle' !== t) || 886 (void 0 === A[e] && (A[e] = { scriptBlockerId: [], jsHandle: [] }), 887 -1 === A[e][t].indexOf(o) && A[e][t].push(o)); 888 }, 889 callWhenLoaded: function (e, o) { 890 var t = function () { 891 !0 === window.hasOwnProperty(e) ? o(o) : window.setTimeout(t, 1e3); 892 }; 893 t(); 894 }, 895 checkCookieConsent: ce, 896 checkCookieGroupConsent: function (e) { 897 var o = !1; 898 return void 0 !== P.consents[e] && (o = !0), o; 899 }, 900 deleteCookie: ne, 901 getCookie: oe, 902 hideCookieBox: q, 903 init: function (n, i, a, c) { 904 return ( 905 'about:blank' !== window.location.href && 906 ((o = e.extend( 907 { 908 ajaxURL: '', 909 language: 'en', 910 animation: '1', 911 animationDelay: '', 912 animationIn: 'fadeIn', 913 animationOut: 'fadeOut', 914 blockContent: '', 915 boxLayout: 'box', 916 boxLayoutAdvanced: '0', 917 automaticCookieDomainAndPath: '', 918 cookieDomain: '', 919 cookiePath: '', 920 cookieLifetime: '365', 921 crossDomainCookie: [], 922 cookieBeforeConsent: '', 923 cookiesForBots: '1', 924 cookieVersion: '1', 925 hideCookieBoxOnPages: [], 926 respectDoNotTrack: '', 927 reloadAfterConsent: '', 928 showCookieBox: '1', 929 cookieBoxIntegration: 'javascript', 930 ignorePreSelectStatus: '1', 931 cookies: [] 932 }, 933 n 934 )), 935 (t = c), 936 (I = i), 937 (T = a), 938 (H.consentSaved = document.createEvent('Event')), 939 H.consentSaved.initEvent('borlabs-cookie-consent-saved', !0, !0), 940 (H.codeUnblocked = document.createEvent('Event')),
941 H.codeUnblocked.initEvent('borlabs-cookie-code-unblocked', !0, !0), 942 (H.codeUnblockedAfterConsent = document.createEvent('Event')), 943 H.codeUnblockedAfterConsent.initEvent( 944 'borlabs-cookie-code-unblocked-after-consent', 945 !0, 946 !0 947 ), 948 oe(), 949 ye(), 950 null === P.uid && (P.uid = se()), 951 o.cookieBeforeConsent && 952 'function' == typeof Object && 953 (void 0 === Object.entries && 954 (Object.entries = function (e) { 955 for (var o = Object.keys(e), t = o.length, n = new Array(t); t--; ) 956 n[t] = [o[t], e[o[t]]]; 957 return n; 958 }), 959 0 === Object.entries(P.consents).length && ve()), 960 M(), 961 e(document).on('click', '[' + y + ']', be), 962 e(document).on('click', '[' + v + ']', V), 963 e(document).on('click', g, V), 964 e(document).on('change', '[' + m + ']', X), 965 e(document).on('keydown', function (o) { 966 9 === o.keyCode && e(j).addClass('_brlbs-keyboard'); 967 }), 968 e(document).on('mousedown', function (o) { 969 e(j).is(':visible') && e(j).removeClass('_brlbs-keyboard'); 970 }), 971 e('body').on( 972 'focus', 973 j + "._brlbs-keyboard input[type='checkbox']", 974 function (o) { 975 var t = e(o.currentTarget).closest('label'); 976 t && e(t).addClass('_brlbs-focused'); 977 } 978 ), 979 e(j).on('blur', "input[type='checkbox']", function (o) { 980 var t = e(o.currentTarget).closest('label'); 981 t && e(t).removeClass('_brlbs-focused'); 982 }), 983 e('[' + S + ']').length && ge(), 984 xe(), 985 e('[' + O + ']').length && 986 e('[' + O + ']').each(function () { 987 e(this).html(P.uid); 988 }), 989 !0) 990 ); 991 }, 992 initConsentHistoryTable: ge, 993 initSwitchConsentButtonStatus: xe, 994 openCookiePreference: V, 995 removeConsent: ae, 996 showCookieBox: z, 997 unblockContentId: function (o) { 998 e('[' + C + "='content-blocker'][" + w + "='" + o + "']").each(function () { 999 he(e(this).parents('.BorlabsCookie')); 1000 }); 1001 }, 1002 unblockScriptBlockerId: function (o) { 1003 var t = '[' + L + "='" + o + "']"; 1004 return ( 1005 e(t).length && 1006 ((E.scriptBlockerId[o] = e(t).length), ke(t, o, 'scriptBlockerId')), 1007 !0 1008 ); 1009 }, 1010 unblockScriptBlockerJSHandle: function (o) { 1011 var t = '[' + _ + "='" + o + "']"; 1012 return e(t).length && ((E.jsHandle[o] = e(t).length), ke(t, o, 'jsHandle')), !0; 1013 } 1014 }; 1015 })(); 1016})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.