let config = {"apiKey":"61cf6f8a977487d8a53ea3a771239c431f99892c","product":"PRO_MULTISITE","text":{"title":"This site uses cookies","intro":"Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used.","necessaryTitle":"Essential cookies","necessaryDescription":"Necessary cookies enable core functionality. The website cannot function properly without these cookies, and can only be disabled by changing your browser preferences. These also include cookies which allow us to analyse and report on the use of our websites.","notifyTitle":"Your choice regarding cookies on this site","notifyDescription":"We use cookies to optimise site functionality and give you the best possible experience","accept":"Accept","acceptSettings":"Accept recommended settings","reject":"I do not accept","rejectSettings":"I do not accept cookies","settings":"Cookie Preferences"},"initialState":"box","layout":"slideout","position":"left","theme":"light","logConsent":true,"necessaryCookies":["XSRF-TOKEN"],"optionalCookies":[{"name":"analytics","label":"Analytics","description":"Analytical cookies help us to improve our website by collecting and reporting information on its usage.","cookies":["_ga","_ga*","_gid","_gat","__utma","__utmt","__utmb","__utmc","__utmz","__utmv"],"onAccept":function(){
    if (typeof gtag === 'function') {
        gtag('consent', 'update', {'analytics_storage': 'granted'});
    }
},"onRevoke":function(){
    if (typeof gtag === 'function') {
        gtag('consent', 'update', {'analytics_storage': 'denied'});
    }
}},{"name":"history_consent","label":"Search History","description":"Search history cookies enable you to quickly undertake your previous searches again.","cookies":["history_consent","history"],"onAccept":function() {
    const d = new Date();
    d.setTime(d.getTime() + (90*24*60*60*1000));
    document.cookie = "history_consent=accepted; expires=" + d.toUTCString() + "; path=/";
},"onRevoke":function() {
    document.cookie = "history_consent=revoked; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/";
    document.cookie = "history=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/";
}},{"name":"hotjar","label":"Pseudonymous Cookies","description":"These cookies offer us information on how the website is used. Personal data is changed to pseudonym.","cookies":["_hjid","_hjRecordingLastActivity","_hjClosedSurveyInvites","_hjDonePolls","_hjMinimizedPolls","_hjDoneTestersWidgets","_hjIncludedInSample","_hjShownFeedbackMessage","hjTLDTest","_hjUserAttributesHash","_hjCachedUserAttributes","_hjLocalStorageTest","_hjptid"],"onAccept":function () {
    (function(h,o,t,j,a,r){
    h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
    h._hjSettings={hjid:3475602,hjsv:6};
    a=o.getElementsByTagName('head')[0];
    r=o.createElement('script');r.async=1;
    r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
    a.appendChild(r);
    })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');                            
},"onRevoke":function () {
    //remove hotjar functions?
    //for (var prop in window) {
    //    if (prop.startsWith('hj')) {
    //        if (typeof window[prop] === 'function' || typeof window[prop] === 'object') {
    //            delete window[prop];
    //        }
    //    }
    //}
}},{"name":"clarity","label":"Nonpersonally identifiable information","description":"These cookies offer us information on how the website is used.","cookies":["_clck","_clsk","CLID","ANONCHK","MR","MUID","SM"],"onAccept":function () {  
    (function(c, l, a, r, i, t, y) {
        c[a] = c[a] || function() {
            (c[a].q = c[a].q || []).push(arguments)
        };
        t = l.createElement(r);
        t.async = 1;
        t.src = 'https://www.clarity.ms/tag/' + i;
        t.onload = function() {
            // This ensures clarity consent is only called when the script is fully loaded
            if (window.clarity) {
                window.clarity('consent');
            }
        };
        y = l.getElementsByTagName(r)[0];
        y.parentNode.insertBefore(t, y);
    })(window, document, 'clarity', 'script', 'o212p0n6id');
},"onRevoke":function () {
    if(window.clarity) {
        window.clarity('consent', false);
    }
    // CLID and MUID don't seem to be removed when consent is set to false, so let's do it manually
    document.cookie = 'CLID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=' + window.location.hostname;
    document.cookie = 'MUID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=' + window.location.hostname;
}}],"consentCookieExpiry":90,"subDomains":false,"branding":{"fontFamily":"Lato, Roboto, Arial, sans-serif","fontSizeTitle":"1.2em","fontSizeHeaders":"1.1em","fontSize":"1em","removeIcon":false,"removeAbout":true},"statement":{"description":"For more detailed information on the cookies we use, please check","name":"Privacy & Cookies","url":"https:\/\/www.library.wales\/index.php?id=355","updated":"13\/09\/2024"},"accessibility":{"overlay":true}};/* main cc script */
let script = document.createElement("script");

script.src = "https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js";

script.onload = function () {
  CookieControl.load(config);
  setTimeout(function () {
    let accept = document.getElementById("ccc-notify-accept"),
      recommended = document.getElementById("ccc-recommended-settings");
    if (accept) {
      accept.focus();
    } else if (recommended) {
      recommended.focus();
    }
  }, 250);
};

document.body.appendChild(script);
let css = ':root, [data-bs-theme="light"] {   --llgc-cc-text: #333;   --llgc-cc-blue: #1d4ebf;   --llgc-cc-darkblue: #212529;   --llgc-cc-darkgrey: #2b3035;    --llgc-cc-bg: #fff;    --llgc-cc-accept-color: #fff;   --llgc-cc-accept-outline: #fff;   --llgc-cc-accept-bg: var(--llgc-cc-blue);   --llgc-cc-accept-border: var(--llgc-cc-blue);    --llgc-cc-reject-color: var(--llgc-cc-text);   --llgc-cc-reject-outline: #000;   --llgc-cc-reject-bg: #fff;   --llgc-cc-reject-border: var(--llgc-cc-blue);    --llgc-cc-toggle-outline-offset: 1px;   --llgc-cc-toggle-outline-color: #333;   --llgc-cc-toggle-color: #000;   --llgc-cc-toggle-bg: #ddd;   --llgc-cc-toggle-switch: #fff; }  [data-bs-theme="dark"] {   --llgc-cc-bg: var(--llgc-cc-darkblue);   --llgc-cc-text: #8f8f8f;    --llgc-cc-accept-color: #fff;   --llgc-cc-accept-outline: #fff;   --llgc-cc-accept-bg: var(--llgc-cc-blue);   --llgc-cc-accept-border: var(--llgc-cc-blue);    --llgc-cc-reject-color: #ccc;   --llgc-cc-reject-outline: #fff;   --llgc-cc-reject-bg: var(--llgc-cc-darkgrey);   --llgc-cc-reject-border: var(--llgc-cc-darkgrey);    --llgc-cc-toggle-outline-color: #ccc;   --llgc-cc-toggle-color: #fff;   --llgc-cc-toggle-bg: #464c53;   --llgc-cc-toggle-switch: var(--llgc-cc-darkblue); }  /* BACKGROUNDS */ #ccc #ccc-content, #ccc #ccc-notify {   background: var(--llgc-cc-bg) !important; }  /* TEXT */ #ccc, #ccc #ccc-content, #ccc #ccc-notify, #ccc h1, #ccc h2, #ccc h3, #ccc p, #ccc p span, #ccc a, #ccc a span, #ccc-content button, #ccc-content button span, #ccc-content span {   color: var(--llgc-cc-text) !important;   fill: var(--llgc-cc-text) !important; }  /* BUTTONS */ #ccc .ccc-notify-button:focus-within {   outline-offset: -4px;   outline-style: solid;   outline-width: 2px; } /* accept */ #ccc #ccc-notify-accept, #ccc #ccc-recommended-settings {   border-color: var(--llgc-cc-accept-border) !important; } #ccc #ccc-notify-accept:focus-within, #ccc #ccc-recommended-settings:focus-within {   outline-color: var(--llgc-cc-accept-outline) !important; } #ccc #ccc-notify-accept, #ccc #ccc-notify-accept span, #ccc #ccc-recommended-settings, #ccc #ccc-recommended-settings span {   background-color: var(--llgc-cc-accept-bg) !important;   color: var(--llgc-cc-accept-color) !important; }  /* reject */ #ccc #ccc-notify-reject, #ccc #ccc-reject-settings {   border-color: var(--llgc-cc-reject-border) !important; } #ccc #ccc-notify-reject:focus-within, #ccc #ccc-reject-settings:focus-within {   outline-color: var(--llgc-cc-reject-outline) !important;   outline-offset: -5px; } #ccc #ccc-notify-reject, #ccc #ccc-notify-reject span, #ccc #ccc-reject-settings, #ccc #ccc-reject-settings span {   background-color: var(--llgc-cc-reject-bg) !important;   color: var(--llgc-cc-reject-color) !important; }  /* preferences link */ /* mostly copies from the reject button */ #ccc .ccc-content--light .ccc-notify-button, #ccc .ccc-content--light .ccc-notify-button span {   background-color: transparent !important;   color: var(--llgc-cc-reject-color) !important; } #ccc .ccc-content--light .ccc-notify-button:focus-within, #ccc .ccc-content--light .ccc-notify-button:focus-within span {   outline-color: var(--llgc-cc-reject-outline) !important;   outline-offset: -5px; }  /* TOGGLES */ #ccc .checkbox-toggle {   background: var(--llgc-cc-toggle-bg) !important;   border-color: var(--llgc-cc-toggle-bg) !important; } #ccc .checkbox-toggle:focus-within {   outline-style: solid !important;   outline-width: 2px;   outline-offset: var(--llgc-cc-toggle-outline-offset) !important;   outline-color: var(--llgc-cc-toggle-outline-color) !important; } #ccc .checkbox-toggle-toggle {   background: var(--llgc-cc-toggle-switch) !important; } #ccc .checkbox-toggle-on, #ccc .checkbox-toggle-off {   color: var(--llgc-cc-toggle-color) !important; }  /* LAYOUT */ #ccc #ccc-notify-dismiss {   top: 6px !important;   display: none !important; }  #ccc .checkbox-toggle--slider .checkbox-toggle-off {   opacity: 1 !important; } #ccc #ccc-notify p {   opacity: 1 !important; }  #ccc .ccc-notify-buttons {   display: flex; } #ccc-notify-accept {   order: 2; } #ccc-notify-reject {   order: 1; } #ccc-button-holder {   display: flex; } #ccc-recommended-settings {   order: 2; } ';/* adds some css to the page to better control accessibility, branding, and layout */
let style = document.createElement("style");
style.appendChild(document.createTextNode(css));
style.classList.add("llgc-cc-added-styles");
document.body.appendChild(style);
