1/*! For license information please see applications-batch-sdk-js.js.LICENSE.txt */ 2"use strict";(self.webpackChunkwebsites_base=self.webpackChunkwebsites_base||[]).push([[4662,6837],{9597(e,t,n){n.d(t,{default:()=>i});var o=n(8987),r=n(4486);const i=()=>((0,r.default)("allConsentGiven",()=>{let e=window.cherryStore.isNewsDomain&&window.cherryStore.batch.newsVapidPublicKey?window.cherryStore.batch.newsVapidPublicKey:window.cherryStore.batch.vapidPublicKey;var t,n,r,i,a,c;t=window,n=document,r="script",t[i="batchSDK"]=t[i]||function(){(t[i].q=t[i].q||[]).push(arguments)},a=n.createElement(r),c=n.getElementsByTagName(r)[0],a.async=!0,a.src="https://via.batch.com/v3/bootstrap.min.js",c.parentNode.insertBefore(a,c);var s={native:{}};Notification&&"granted"!==Notification.permission&&(-1!==navigator.userAgent.indexOf("Firefox")||-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"))&&(s={alert:{text:window.cherryStore.batch.text,positiveSubBtnLabel:window.cherryStore.batch.positiveSubBtnLabel,negativeBtnLabel:window.cherryStore.batch.negativeBtnLabel,positiveBtnStyle:{backgroundColor:window.cherryStore.batch.backgroundColor,hoverBackgroundColor:window.cherryStore.batch.hoverBackgroundColor,textColor:window.cherryStore.batch.textColor}}}),batchSDK("setup",{apiKey:window.cherryStore.isNewsDomain&&window.cherryStore.batch.newsApiKey?window.cherryStore.batch.newsApiKey:window.cherryStore.batch.apiKey,subdomain:window.cherryStore.isNewsDomain&&window.cherryStore.batch.newsSubdomain?window.cherryStore.batch.newsSubdomain:window.cherryStore.batch.subdomain,authKey:window.cherryStore.isNewsDomain&&window.cherryStore.batch.newsAuthKey?window.cherryStore.batch.newsAuthKey:window.cherryStore.batch.authKey,vapidPublicKey:e,ui:s}),function(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=window.btoa(window.atob(t));navigator.serviceWorker.getRegistration().then(e=>e.pushManager.getSubscription()).then(e=>e.options.applicationServerKey).then(e=>btoa(String.fromCharCode.apply(String,new Uint8Array(e)))).then(e=>{n!==e?(console.debug("Batch - Registered application server doesn't match Batch's, unregistering SW and asking Batch to reregister"),navigator.serviceWorker.getRegistration().then(e=>e.unregister()).then(()=>{batchSDK(e=>{e.subscribe()})}).catch(e=>{console.debug("Batch - Could not fix application server key mismatch:",e)})):console.debug("Batch - Registered application server key matches with Batch's, not doing anything")}).catch(()=>{console.debug("Batch - Could not get applicationServerKey. User might not be subscribed to notifications.")})}(e);let d=o.A.get("x-pmc-id");batchSDK(function(e){d?(e.setCustomUserID(d),gtag("set",{dimension21:d}),window.dataLayer.push({event:"dispatch",batch_user_id:d})):e.getInstallationID().then(function(t){e.setCustomUserID(t),gtag("set",{dimension21:t}),window.dataLayer.push({event:"dispatch",batch_user_id:t})})})}),Promise.resolve())},4486(e,t,n){function o(e,t){let n;const o=()=>{window?.pmdConsent?.queue?.find(t=>t.type===e)?(clearTimeout(n),t instanceof Function&&t()):window?.pmdConsent?.queue?.find(e=>"noConsentGiven"===e.type)?clearTimeout(n):n=setTimeout(()=>{requestAnimationFrame(o)},100)};window.requestAnimationFrame(o)}function r(e){return new Promise((t,n)=>{const o=document.createElement("script");Object.entries(e).forEach(([e,t])=>{o.setAttribute(e,t)}),o.onload=t,o.onerror=n,document.head.appendChild(o)})}n.d(t,{default:()=>o}),window.pmdConsent=window.pmdConsent||function(e){(window.pmdConsent.queue=window.pmdConsent.queue||[]).push(e)},r({src:"https://tra.scds.pmdstatic.net/sourcepoint/6/sourcepoint.esm.min.js",type:"module"}),r({src:"https://tra.scds.pmdstatic.net/sourcepoint/6/sourcepoint.min.js",defer:!0,nomodule:""})},8987(e,t,n){function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}n.d(t,{A:()=>r});var r=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=o({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
vendor: 1,008 bytes, line 2
2URIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+a}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},r=0;r<n.length;r++){var i=n[r].split("="),a=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(o[c]=t.read(a,c),e===c)break}catch(e){}}return e?o[e]:o}},remove:function(e,t){r(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
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.