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","PHPSESSID"],"optionalCookies":[],"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);
