PageSourceSearch

https://www.reginalibrary.ca/sites/default/files/js/js_gqwN6YyCBQC…ymvb8Eb5Hx8WtPlc4y3Sto-6Ovi6ALiQYHt-_KVZtnQ

js reginalibrary.ca collected 2026-10-03 20:14:41 UTC 14,118 bytes, 2 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function(Drupal,drupalSettings,once){'use strict';var ICONS={share:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></svg>',facebook:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>',x:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>',linkedin:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>',whatsapp:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>',email:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',sms:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',pinterest:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"/></svg>',copy:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',more:'<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>'};var SHARE_URLS={facebook:'https://www.facebook.com/sharer/sharer.php?u={url}',x:'https://twitter.com/intent/tweet?url={url}
2&text={title}',linkedin:'https://www.linkedin.com/sharing/share-offsite/?url={url}',whatsapp:'https://api.whatsapp.com/send?text={title}%20{url}',email:'mailto:?subject={title}&body={description}%0A%0A{url}',sms:'sms:?body={title}%20{url}',pinterest:'https://pinterest.com/pin/create/button/?url={url}&description={title}&media={image}'};Drupal.behaviors.rplShare={attach:function(context,settings){var config=settings.rplShare||{};if(!config.enabled)return;var elements=once('rpl-share','.rpl-share',context);elements.forEach(function(element){initShareButton(element,config);});}};function initShareButton(element,config){var rawUrl=element.dataset.shareUrl||window.location.href;var shareUrl=convertToProductionUrl(rawUrl,config);var data={url:shareUrl,title:decodeHtmlEntities(element.dataset.shareTitle||getMetaContent('og:title')||document.title),description:decodeHtmlEntities(element.dataset.shareDescription||getMetaContent('og:description')||''),image:convertToProductionUrl(element.dataset.shareImage||getMetaContent('og:image')||'',config),style:element.dataset.shareStyle||config.defaultStyle||'icon',layout:element.dataset.shareLayout||config.layout||'vertical',direction:element.dataset.shareDirection||config.direction||'right'};var shareHtml=buildShareHtml(data,config);element.innerHTML=shareHtml;var wrapper=element.querySelector('.rpl-share-wrapper');initMainButton(wrapper,config);initSocialButtons(wrapper,data,config);initCopyLink(wrapper,data);if(config.enableMoreButton!==false&&typeof a2a!=='undefined')initAddToAny(wrapper,data);}function buildShareHtml(data,config){var layout=data.layout||'vertical';var dirClass=data.direction?(' rpl-share-dir-'+data.direction):'';var html='<div class="rpl-share-wrapper rpl-share-'+layout+dirClass+'">';html+='<ul class="rpl-share-social-list">';var items=(config.networks||['facebook','x','linkedin','email']).slice();if(config.enableCopyLink)items.push('copy');if(config.enableMoreButton!==false)items.push('more');var orderedItems=items.slice();if(layout==='vertical')orderedItems.reverse();if(layout==='horizontal'&&data.direction==='left')orderedItems.reverse();orderedItems.forEach(function(item){if(item==='copy'){html+='<li>';html+='<button class="rpl-share-social-btn rpl-share-copy" ';html+='data-tooltip="'+Drupal.t('Copy Link')+'" ';html+='aria-label="'+Drupal.t('Copy link')+'">';html+=ICONS.copy;html+='</button>';html+='</li>';return;}if(item==='more'){html+='<li>';html+='<a href="https://www.addtoany.com/share" class="rpl-share-social-btn rpl-share-more a2a_dd" ';html+='data-tooltip="'+Drupal.t('More')+'" ';html+='aria-label="'+Drupal.t('More sharing options')+'">';html+=ICONS.more;html+='</a>';html+='</li>';return;}var network=item;var label=getNetworkLabel(network);var icon=ICONS[network]||ICONS.share;html+='<li>';html+='<a href="#" class="rpl-share-social-btn rpl-share-'+network+'" ';html+='data-network="'+network+'" ';html+='data-tooltip="'+label+'" ';html+='aria-label="'+Drupal.t('Share on @network',{'@network':label})+'" ';html+='role="button">';html+=icon;html+='</a>';html+='</li>';});html+='</ul>';html+='<button class="rpl-share-main-btn" ';html+='aria-label="'+Drupal.t('Share this content')+'" ';html+='aria-expanded="false" ';html+='title="'+Drupal.t('Share')+'">';html+=ICONS.share;html+='</button>';html+='<span class="rpl-share-toast" role="status" aria-live="polite"></span>';html+='</div>';return html;}function initMainButton(wrapper,config){var mainBtn=wrapper.querySelector('.rpl-share-main-btn');if(!mainBtn)return;mainBtn.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();var isActive=wrapper.classList.contains('rpl-share-touch-active');document.querySelectorAll('.rpl-share-wrapper.rpl-share-touch-active').forEach(function(el){if(el!==wrapper){el.classList.remove('rpl-share-touch-active');var btn=el.querySelector('.rpl-share-main-btn');if(btn)btn.setAttribute('aria-expanded','false');}});wrapper.classList.toggle('rpl-share-touch-active');mainBtn.setAttribute('aria-expanded',!isActive);});document.addEventListener('click',function(e){if(!wrapper.contains(e.target)){wrapper.classList.remove('rpl-share-touch-active');mainBtn.setAttribute('aria-expanded','false');}});mainBtn.addEventListener('keydown',function(e){if(e.key==='Escape'){wrapper.classList.remove('rpl-share-touch-active');mainBtn.setAttribute('aria-expanded','false');mainBtn.focus();}});}function initSocialButtons(wrapper,data,config){var socialBtns=wrapper.querySelectorAll('.rpl-share-social-btn[data-network]');
2socialBtns.forEach(function(btn){btn.addEventListener('click',function(e){e.preventDefault();var network=this.dataset.network;var url=buildShareUrl(network,data);if(url){var width=600;var height=400;var left=(screen.width-width)/2;var top=(screen.height-height)/2;if(network==='email'||network==='sms')window.location.href=url;else window.open(url,'share_'+network,'width='+width+',height='+height+',left='+left+',top='+top+',toolbar=no,menubar=no,scrollbars=yes,resizable=yes');}});});}function buildShareUrl(network,data){var template=SHARE_URLS[network];if(!template)return null;return template.replace('{url}',encodeURIComponent(data.url)).replace('{title}',encodeURIComponent(data.title)).replace('{description}',encodeURIComponent(data.description)).replace('{image}',encodeURIComponent(data.image));}function initAddToAny(wrapper,data){var moreBtn=wrapper.querySelector('.a2a_dd');if(!moreBtn||typeof a2a==='undefined')return;moreBtn.setAttribute('data-a2a-url',data.url);moreBtn.setAttribute('data-a2a-title',data.title);window.a2a_config=window.a2a_config||{};a2a_config.exclude_services=['yummly','yahoo_mail','xing','wykop','wordpress','vk','twitter','viber','typepad','twiddla','trello','threema','symbaloo_bookmarks','svejo','slashdot','snapchat','stocktwits','skype','sitejot','sina_weibo','raindrop_io','rediff_mypage','refind','qzone','pusha','printfriendly','plurk','pinboard','odnoklassniki','outlook_com','papaly','myspace','mixi','micro_blog','mewe','meneame','mendeley','mail_ru','livejournal','line','known','kindle_it','kakao','hatena','houzz','instapaper','hacker_news','folkd','flipboard','fark','evernote','diigo','douban','draugiem','digg','diaspora','diary_ru','buffer','box_net','bookmarks_fr','blogmarks','blogger','bibsonomy','balatarin','aol_mail','mix','google_translate','gmail','pocket','telegram','pinterest','copy_link'];if(typeof a2a.init_all==='function')a2a.init_all();}function initCopyLink(wrapper,data){var copyBtn=wrapper.querySelector('.rpl-share-copy');if(!copyBtn)return;copyBtn.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();var toast=wrapper.querySelector('.rpl-share-toast');if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(data.url).then(function(){showToast(toast,Drupal.t('Link copied!'));}).catch(function(){fallbackCopy(data.url,toast);});else fallbackCopy(data.url,toast);});}function fallbackCopy(url,toast){var textarea=document.createElement('textarea');textarea.value=url;textarea.style.cssText='position:fixed;opacity:0;left:-9999px';document.body.appendChild(textarea);textarea.select();try{document.execCommand('copy');showToast(toast,Drupal.t('Link copied!'));}catch(err){showToast(toast,Drupal.t('Copy failed'));}document.body.removeChild(textarea);}function showToast(element,message){if(!element)return;element.textContent=message;element.classList.add('rpl-share-toast-visible');setTimeout(function(){element.classList.remove('rpl-share-toast-visible');},2000);}function convertToProductionUrl(url,config){if(!config.enableUrlOverride||!config.productionBaseUrl||!url)return url;var currentBaseUrl=config.currentBaseUrl||window.location.origin;if(url.indexOf(currentBaseUrl)===0)return url.replace(currentBaseUrl,config.productionBaseUrl);if(url.indexOf('/')===0&&url.indexOf('//')!==0)return config.productionBaseUrl+url;return url;}function getMetaContent(property){var meta=document.querySelector('meta[property="'+property+'"]');return meta?meta.getAttribute('content'):'';}function decodeHtmlEntities(text){if(!text)return '';var textarea=document.createElement('textarea');textarea.innerHTML=text;return textarea.value;}function getNetworkLabel(network){var labels={'x':'X','facebook':'Facebook','linkedin':'LinkedIn','email':'Email','whatsapp':'WhatsApp','sms':'SMS','pinterest':'Pinterest'};return labels[network]||network;}Drupal.behaviors.rplShare.refresh=function(context){Drupal.behaviors.rplShare.attach(context||document,drupalSettings);};document.addEventListener('rpl:share:refresh',function(e){var context=e.detail&&e.detail.context?e.detail.context:document;Drupal.behaviors.rplShare.refresh(context);});function initShareObserver(){if(typeof MutationObserver==='undefined')return;var debounceTimer=null;var observer=new MutationObserver(function(mutations){var hasNew=false;for(var i=0;i<mutations.length;i++){var added=mutations[i].addedNodes;for(var j=0;j<added.length;j++){var node=added[j];if(node.nodeType!==1)continue;if(node.classList&&node.classList.contains('rpl-share')){hasNew=true;break;}if(node.querySelector&&node.querySelector('.rpl-share')){hasNew=true;break;}}if(hasNew)break;}if(hasNew){clearTimeout(debounceTimer);debounceTimer=setTimeout(function(){Drupal.behaviors.rplShare.refresh(document);},100);}});observer.observe(document.body,{childList:true,subtree:true});}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',initShareObserver);else initShareObserver();})(Drupal,drupalSettings,once);;

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.