1"use strict";(function(Drupal){"use strict";if(typeof Drupal==="undefined")return;Drupal.surrey=Drupal.surrey||{};Drupal.surrey.helpers=Drupal.surrey.helpers||{};function cookieExists(name){return document.cookie.split(";").some(item=>item.trim().startsWith(`${name}=`));}function getCookie(name){if(!name)return null;const pattern="(?:^|;\\s*)"+name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"=([^;]*)";const match=document.cookie.match(new RegExp(pattern));if(!match)return null;try{return JSON.parse(decodeURIComponent(match[1]));}catch(_unused){return decodeURIComponent(match[1]);}}function setCookie(name,value,days){let _ref=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},_ref$path=_ref.path,path=_ref$path===void 0?"/":_ref$path,_ref$sameSite=_ref.sameSite,sameSite=_ref$sameSite===void 0?"Lax":_ref$sameSite;if(!name)return;const expires=new Date(Date.now()+days*24*60*60*1000).toUTCString();const cookieValue=typeof value==="object"?JSON.stringify(value):String(value);document.cookie=`${name}=${encodeURIComponent(cookieValue)}; path=${path}; expires=${expires}; SameSite=${sameSite}${location.protocol==="https:"?"; Secure":""}`;}function deleteCookie(name){let _ref2=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},_ref2$path=_ref2.path,path=_ref2$path===void 0?"/":_ref2$path,_ref2$domain=_ref2.domain,domain=_ref2$domain===void 0?"":_ref2$domain,_ref2$sameSite=_ref2.sameSite,sameSite=_ref2$sameSite===void 0?"Lax":_ref2$sameSite;const pastDate=new Date(0).toUTCString();const secure=location.protocol==="https:"?"; Secure":"";const domainAttr=domain?`; Domain=${domain}`:"";document.cookie=`${name}=; Path=${path}${domainAttr}; Expires=${pastDate}; Max-Age=0; SameSite=${sameSite}${secure}`;}function getToday(){const now=new Date;const yyyy=now.getFullYear();const mm=String(now.getMonth()+1).padStart(2,"0");const dd=String(now.getDate()).padStart(2,"0");return`${yyyy}-${mm}-${dd}`;}Drupal.surrey.helpers.cookieExists=cookieExists;Drupal.surrey.helpers.getCookie=getCookie;Drupal.surrey.helpers.setCookie=setCookie;Drupal.surrey.helpers.deleteCookie=deleteCookie;Drupal.surrey.helpers.getToday=getToday;})(Drupal); 2//# sourceMappingURL=helpers.js.map
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.