PageSourceSearch

https://www.centralbanking.com/sites/default/files/js/js_i36wXFJ5S…80pwR6dfKqh5wUyBElc2Db5xbYLPwynsB5vlDcfIW48

js centralbanking.com collected 2026-10-01 10:18:05 UTC 59,768 bytes, 16 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
3/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
4loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
4for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
5/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
6Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
7(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
8((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
9(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
9once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl.hasOwnProperty(originalUrl))drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url))if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
9$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url)&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
9d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
9$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
10(function($,Drupal,once){'use strict';Drupal.AjaxCommands.prototype.flagSaved=function(ajax,response,status){$('#savearticlemsg').html('Saved').animate({opacity:0}
10,2000,'swing',function(){$('#savearticlemsg').hide();});};Drupal.AjaxCommands.prototype.flagRemoved=function(ajax,response,status){Drupal.theme('removearticlemsg','Removed').animate({opacity:0},2000,'swing',function(){$('#removearticlemsg').remove();});};Drupal.behaviors.popupMessageInit={attach:function(context,settings){if($('.flag.flag-article .use-ajax').length>0)$('.flag.flag-article.not-saved .use-ajax').on('click',function(){$('#savearticlemsg').remove();$('<div class="save-article-message" id="savearticlemsg">'+Drupal.t('Saving')+'...</div>').appendTo('body');$('#savearticlemsg').show();});$(once('popup-message-init','.flag.flag-article.saved .use-ajax')).on('click',function(){Drupal.theme('removearticlemsg','Removing...');});}};Drupal.theme.removearticlemsg=function(message){$('#removearticlemsg').remove();return $('<div class="save-article-message" id="removearticlemsg">'+Drupal.t(message)+'</div>').appendTo('body').show();};})(jQuery,Drupal,once);;
11(function($,Drupal,once){'use strict';Drupal.behaviors.AnonymousFollow={attach:function(context,settings){$(once('im-anonymous-follow','.anonymous-flag',context)).click(function(e){e.preventDefault();if($('html',context).hasClass('ip_user'))$('#ipusermsg').show();else $('#nousermsg').show();});once('im-anonymous-follow','.follow-message',context).forEach(function(element){$(element).find('span.close-user-msg, span.close-ip-msg').click(function(){$(this).parent('div').hide();});});}};})(jQuery,Drupal,once);;
12!function(){var e={53:function(e){function t(e){return (t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;})(e);}e.exports={checkUserAccessToContent:function(e){if(this.checkIfNestedObjectExist(e,"article","piano_resource_ids"))for(var t=e.article.piano_resource_ids,n=0;n<t.length;n++)this.checkIfResourceGivesAccess(t[n]);},checkIfResourceGivesAccess:function(e){var t={rid:e},n=this.accessCheckCallback;tp.push(["init",function(){tp.api.callApi("/access/check",t,n);}]);},accessCheckCallback:function(e){e.access&&e.access.granted?(console.log("Piano: User have access!"),document.getElementById("piano-lock").style.removeProperty("display")):console.log("Piano: User have no access!");},checkIfNestedObjectExist:function(e){if("object"!==t(e))return !1;for(var n=Array.prototype.slice.call(arguments,1),r=0;r<n.length;r++){if(!e||!e.hasOwnProperty(n[r]))return !1;e=e[n[r]];}return !0;}};},277:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.cacheDuration=36e5,this.cacheKeyPrefix="accessTags_";}var n,r;return n=e,(r=[{key:"getAccessTags",value:function(e){return this.extractAccessTypeTags(e.description,e.rid);}},{key:"extractAccessTypeTags",value:function(e,t){if(!e)return [];var n=this.cacheKeyPrefix+t,r=this.getFromCache(n);if(r)return r;for(var i,o=/RID-tag:(access-type-[^\)]+)/g,a=[];null!==(i=o.exec(e));)a.push(i[1]);return this.saveToCache(n,a),a;}},{key:"getFromCache",value:function(e){try{var t=localStorage.getItem(e);if(t){var n=JSON.parse(t),r=n.data,i=n.timestamp;if((new Date()).getTime()-i<this.cacheDuration)return r;localStorage.removeItem(e);}}catch(e){return null;}return null;}},{key:"saveToCache",value:function(e,t){try{var n={data:t,timestamp:(new Date()).getTime()};localStorage.setItem(e,JSON.stringify(n));}catch(e){}}}])&&t(n.prototype,r),e;}();e.exports=n;},657:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.invoiceResource=window.location.origin+"/rest/piano/v1/piano-invoice",this.sessionTokenResource=window.location.origin+"/session/token";}var n,r;return n=e,(r=[{key:"handleEvents",value:function(){var e=this;window.tp.push(["addHandler","customEvent",function(t,n,r,i){"bb8-invoice-form-submit"===t.eventName&&e.invoiceFormSubmit(e,t);}]);}},{key:"invoiceFormSubmit",value:function(e,t){t.params.formUrl=location.href;var n=JSON.parse(t.params.params).iframeId;
12e.sendPostMessageToPianoAction(n),e.isValidateEventParams(t.params)?e.postInvoiceData(e,t.params):e.sendPostMessageToPiano(n,!1,"You have entered an invalid data","company");}},{key:"sendPostMessageToPiano",value:function(e,t,n,r){var i=jQuery("#"+e);i.length&&i[0].contentWindow.postMessage({piano:{success:t,message:n,object:r}},"*");}},{key:"sendPostMessageToPianoAction",value:function(e){var t=jQuery("#"+e);t.length&&t[0].contentWindow.postMessage({pianoLoader:!0},"*");}},{key:"postInvoiceData",value:function(e,t){var n={url:e.invoiceResource,method:"POST",timeout:0,headers:{"X-CSRF-Token":"","Content-Type":"application/json"},data:JSON.stringify(t)},r={url:e.sessionTokenResource,method:"GET",timeout:0,headers:{"Content-Type":"application/json"}};jQuery.ajax(r).done((function(r){n.headers["X-CSRF-Token"]=r,jQuery.ajax(n).done((function(n){if("queued"===n.status){var r=JSON.parse(t.params).iframeId;e.sendPostMessageToPiano(r,!0,"success","");}}));}));}},{key:"isValidateEventParams",value:function(e){return ""!==e.company&&""!==e.telephone&&""!==e.address&&""!==e.town&&""!==e.postcode;}}])&&t(n.prototype,r),e;}();e.exports=n;},870:function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r;}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}function r(e){return (r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;})(e);}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e);}var i,o;return i=e,(o=[{key:"ensureHsqIsReady",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,r=0,i=function i(){window._hsq&&"function"==typeof window._hsq.push?e():r<n&&(r++,setTimeout(i,t));};i();}},{key:"pushToHubspot",value:function(e,t,n){this.ensureHsqIsReady((function(){var r={site_name:drupalSettings.siteName,piano_variant_id:e.eventParam
12s.templateVariantId||"",piano_variant_name:e.eventParams.templateVariantName||"",piano_template_name:e.eventModuleParams.moduleName,piano_template_id:e.eventParams.templateId||"",piano_experience_name:t,piano_experience_id:n,piano_container_selector:e.eventParams.containerSelector||"",event_type:e.eventType};["meterExpired","meterActive"].includes(e.eventType)&&(r.meter_name=e.eventParams.meterName||"",r.maxviews=e.eventParams.maxViews||"",r.totalviews=e.eventParams.totalViews||""),"showOffer"===e.eventType&&(r.offer_name=e.eventModuleParams.moduleName||"",r.offer_id=e.eventParams.offerId||"");var i=drupalSettings.universal_variable&&"prod"===drupalSettings.universal_variable.environment?"pe5138252_piano_experience_views":"pe7171801_piano_experience_test";window._hsq.push(["trackCustomBehavioralEvent",{name:i,properties:r}]);}));}},{key:"handleEvents",value:function(){var e=this;tp.push(["addHandler","experienceExecute",function(n){var i=drupalSettings.user.idpuid||drupalSettings.user.uid;if(function(e){return "object"===r(e.result.events)&&e.result.events.length>0&&"object"===r(e.result.experiences)&&e.result.experiences.length>0;}(n)&&n.user.uid===i){var o,a=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return "Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0;}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return {s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]};},e:function(e){throw e;},f:o};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var a,s=!0,c=!1;return {s:function(){r=r.call(e);},n:function(){var e=r.next();return s=e.done,e;},e:function(e){c=!0,a=e;},f:function(){try{s||null==r.return||r.return();}finally{if(c)throw a;}}};}(function(e,t){var n=e.result.events.find((function(e){return "meterExpired"===e.eventType;}));return n?[n]:e.result.events.filter((function(e){return t.includes(e.eventType||"");}));}(n,["showTemplate","showOffer","meterExpired","meterActive"]));try{for(a.s();!(o=a.n()).done;){var s=o.value;e.handleEvent(n,s);}}catch(e){a.e(e);}finally{a.f();}}}]);}},{key:"handleEvent",value:function(e,t){var n=this,r=t.eventExecutionContext.experienceId||"";if(r){var i=e.result.experiences.find((function(e){return (e.id||"")===r;}));if(i&&i.hasOwnProperty("title")){var o=i.title;"complete"===document.readyState?this.pushToHubspot(t,o,r):window.addEventListener("load",(function(){return n.pushToHubspot(t,o,r);}));}}}}])&&n(i.prototype,o),e;}();e.exports=i;},263:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),n(this,"site","risk.net"),n(this,"resourceIds",["RISKMEMBER","RISKMEMBERWELCOME"]),n(this,"selector","html"),n(this,"classes","register-link");}var r,i;return r=e,(i=[{key:"setClasses",value:function(){var e=this;e.site===drupalSettings.universal_variable.site&&(drupalSettings.user.uid?jQuery(window).on("im_piano_user_access_list_generated",(function(t){if(0===t.detail.length)return jQuery(e.selector).addClass(e.classes),!1;t.detail.every((function(t){return !(t.resource&&e.resourceIds.includes(t.resource.rid)&&t.granted&&t.user.uid===(drupalSettings.user.idpuid||drupalSettings.user.uid));}))&&jQuery(e.selector).addClass(e.classes);})):jQuery(e.selector).addClass(e.classes));}}])&&t(r.prototype,i),e;}();e.exports=r;},509:function(e){"use strict";e.exports={loadPianoLibrary:function(e){if(e.imPiano.pianoApplicationId){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=e.imPiano.pianoJavascriptUrl+"/xbuilder/experience/load?aid="+e.imPiano.pianoApplicationId;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);}}};},92:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e);}var n,r;return n=e,(r=[{key:"addPianoLoginHandler",value:function(e){var t,n=this,r=null===(t=e.language_switcher_info)||void 0===t?void 0:t.current_langcode,i="/form/membership?tfv=purchase";r&&"en"!==r&&(i="/"+r+i),window.tp.push(["addHandler","loginRequired",function(e){n.setCo
12okieWithUserState(e),location.href=window.location.origin+i;}]);}},{key:"setCookieWithUserState",value:function(e){document.cookie="__pianoParams="+encodeURIComponent(JSON.stringify(e))+"; expires="+new Date((new Date()).getTime()+36e5).toGMTString()+"; path=/; domain=."+window.location.host;}}])&&t(n.prototype,r),e;}();e.exports=n;},236:function(e){e.exports={createMyAccount:function(){window.location.pathname.includes("/my-account")&&window.tp.push(["init",function(){window.tp.myaccount.show({displayMode:"inline",containerSelector:"#accountDetails"});}]);}};},269:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.termForNewUser=t.imPiano.pianoTermIdForNewUser;}var n,r;return n=e,(r=[{key:"handleEvents",value:function(){var e=this;window.tp.push(["addHandler","checkoutComplete",function(t){t.termId===e.termForNewUser&&e.setCookie();}]),window.tp.push(["addHandler","customEvent",function(t,n,r,i){"bb8-invoice-form-submit"===t.eventName&&t.params.termId===e.termForNewUser&&e.setCookie();}]);}},{key:"setCookie",value:function(){document.cookie="_pc_pianoFirstSub=true; path=/; domain=."+window.location.host;}}])&&t(n.prototype,r),e;}();e.exports=n;},758:function(e){"use strict";function t(e){return (t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;})(e);}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r;}e.exports={pushAll:function(e){this.pushContentTagsToPiano(e),this.pushContentAuthorToPiano(e),this.pushNativeContentFlagToPiano(e),this.pushUnlockingResourceIdToPiano(e);},pushUnlockingResourceIdToPiano:function(e){this.checkIfNestedObjectExist(e,"article","piano_resource_ids")&&e.article.piano_resource_ids.forEach((function(e){window.tp.push(["setCustomVariable",e,"yes"]);})),this.checkIfNestedObjectExist(e,"dynamic_page","piano_resource_ids")&&e.dynamic_page.piano_resource_ids.forEach((function(e){window.tp.push(["setCustomVariable",e,"yes"]);}));},pushNativeContentFlagToPiano:function(e){if(this.checkIfNestedObjectExist(e,"article","article_type")){var t=e.article.article_type;"Sponsored"!==t&&"Advertisement"!==t||window.tp.push(["setContentIsNative",!0]);}},pushContentTagsToPiano:function(e){var t=this.getContentTagsFromUv(e);window.tp.push(["setTags",t]);},pushContentAuthorToPiano:function(e){if(this.checkIfNestedObjectExist(e,"article","author")){var t=e.article.author[0];t&&window.tp.push(["setContentAuthor",t.name]);}},getContentTagsFromUv:function(e){var t,r=[];if(this.checkIfNestedObjectExist(e,"article","topics")&&(r=r.concat(e.article.topics)),this.checkIfNestedObjectExist(e,"article","organisations")&&(r=r.concat(e.article.organisations)),this.checkIfNestedObjectExist(e,"article","hidden_tags")&&(r=r.concat(e.article.hidden_tags)),this.checkIfNestedObjectExist(e,"article","people")&&(r=r.concat(e.article.people)),this.checkIfNestedObjectExist(e,"article","article_type")&&r.push(e.article.article_type),this.checkIfNestedObjectExist(e,"article","unlocking_products")){var i,o=e.article.unlocking_products;(i=r).push.apply(i,function(e){if(Array.isArray(e))return n(e);}(t=Object.values(o))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e);}(t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return "Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0;}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}());}if(this.checkIfNestedObjectExist(e,"page_type")&&r.push(e.page_type),this.checkIfNestedObjectExist(e,"article","category")&&e.article.category.length>0){var a=e.article.category,s=Array.prototype.concat.apply([],a);r=r.concat(s);}return this.checkIfNestedObjectExist(e,"dynamic_page","custom_page_values")&&r.push(e.dynamic_page.custom_page_values),this.checkIfNestedObjectExist(e,"organisation_central_bank","active_page")&&r.push(e.organisation_central_bank.active_page),this.checkIfNestedObjectExist(e,"language_code")&&r.push("lang-"+e.language_code),r;},checkIfNestedObjectExist:function(e){if("object"!==t(e))return !1;
12for(var n=Array.prototype.slice.call(arguments,1),r=0;r<n.length;r++){if(!e||!e.hasOwnProperty(n[r]))return !1;e=e[n[r]];}return !0;}};},650:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e);}var n,r;return n=e,(r=[{key:"redirectUserToPianoCheckout",value:function(){var e=this;window.tp.push(["init",function(){e.redirectToPianoCheckoutOnClick();var t=e.getUserState();e.isNotEmptyObject(t)&&window.tp.offer.startCheckout(t);}]);}},{key:"isNotEmptyObject",value:function(e){return null!==e&&Object.keys(e).length>0;}},{key:"getUserState",value:function(){var e={};if(window.tp.user.isUserValid()&&window.drupalSettings.user.uid){var t=this.getCookieByName("__pianoParams");if(!t)return e;e=this.parseJsonString(t),this.deleteCookieByName("__pianoParams");}return e;}},{key:"parseJsonString",value:function(e){var t={};try{t=JSON.parse(decodeURIComponent(e));}catch(e){console.error(e,e.stack);}return t;}},{key:"deleteCookieByName",value:function(e){document.cookie=e+"=null; expires=-1; path=/; domain=."+window.location.host;}},{key:"getCookieByName",value:function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift();}},{key:"redirectToPianoCheckoutOnClick",value:function(){var e=this;document.addEventListener("click",(function(t){if("triger_piano_checkout"==t.target.id){t.preventDefault();var n=e.getUserState();e.isNotEmptyObject(n)&&window.tp.offer.startCheckout(n);}}));}}])&&t(n.prototype,r),e;}();e.exports=n;},658:function(e){"use strict";e.exports={pushUserToPiano:function(e){if(tp.push(["setUseTinypassAccounts",!1]),tp.push(["setUsePianoIdUserProvider",!1]),tp.push(["setUsePianoIdLiteUserProvider",!0]),void 0===e.imPiano.jwt){if(this.isUserLoggedIn()){var t=this.getTokenFromUrl();t&&tp.push(["setExternalJWT",t]);}}else tp.push(["setExternalJWT",e.imPiano.jwt]);},getTokenFromUrl:function(){var e=window.document.location.origin+"/jwt/token";try{var t=new XMLHttpRequest();if(t.open("GET",e,!1),t.send(null),200!==t.status)return null;var n=JSON.parse(t.responseText);if(n.token)return n.token;}catch(e){return null;}},hasCookieWithPrefix:function(e){for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].trim();if(r.startsWith(e))return r.split("=")[1];}return null;},isUserLoggedIn:function(){return "1"===this.hasCookieWithPrefix("SESSimUserLoggedIn");}};},747:function(e,t,n){function r(e){return (r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;})(e);}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return "Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0;}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return {s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]};},e:function(e){throw e;},f:i};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var a,s=!0,c=!1;return {s:function(){n=n.call(e);},n:function(){var e=n.next();return s=e.done,e;},e:function(e){c=!0,a=e;},f:function(){try{s||null==n.return||n.return();}finally{if(c)throw a;}}};}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r;}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var s=n(277),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.resourceWeight=t.imPiano.productsPriority;}var t,n;return t=e,(n=[{key:"getSiteSubscriptionUv",value:function(){var e=this;window.tp.push(["init",function(){e.getUserAccessList();}]);}},{key:"getUserAccessList",value:function(){var e=this.getUserAccessConversionListCallback.bind(this);tp.api.callApi("/conversion/list",{offset:0},e);}},{key:"getUserAccessConversionListCallback",value:function(e){var t=e.conversions||[],n=[];if(t.forEach((function(e){if(e.user_access&&e.user_access.granted){var t=e.user_access;void 0!==e.term&&(t.term=e.term),n.push(t);}})),this.emitCustomEvent("im_piano_user_access_list_generated",n),0===n.length)return this.emitCustomEvent("im_piano_user_uv_generated",window.universal_variable),void this.executeCallbackAfterUserUvReady();var r=this.getSiteAccess(n);r.granted&&this.setSiteSubscription(r),this.emitCustomEvent("im_piano_user_uv_generated",window.universal_variable),this.executeCallbackAfterUserUvReady();}},{key:"emitCustomEvent",value:function(e,t){var n=new CustomEvent(e,{detail:t});window.dispatchEvent(n);}},{key:"executeCallbackAfterUserUvReady",value:function(){"function"==typeof window.runAfterUserUvReady&&window.runAfterUserUvReady();}},{key:"setSiteSubscription",value:function(e){var t=(new s()).getAccessTags(e.resource);window.universal_variable.site_subscription={active:1,campaign_list:null,end_date:e.expire_date,id:e.access_id,is_active_base_on_date:"present",order_header:null,paid:null,product:e.resource.rid,seats:null,source:null,start_date:e.start_date,status:null,suspended:null,tracking_code:null,access_tags:t,trial:this.isTrialSiteSubscription(e),type:e.term?e.term.type:"",term_id:e.term?e.term.term_id:""};}},{key:"isTrialSiteSubscription",value:function(e){return e.resource.rid.toLowerCase().includes("trial");}}
12,{key:"isSpecificResource",value:function(e){return e.toLowerCase().includes("trial")||e.includes("LOCK");}},{key:"getSiteAccess",value:function(e){var t=this.getPageResourcesFromUv();return t.length>0?this.getAccessUnlockingPage(e,t):this.getFirstValidAccess(e);}},{key:"sortAccessList",value:function(e){var t=this;return e.sort((function(e,n){var r=e.resource&&e.resource.rid?e.resource.rid:null,i=n.resource&&n.resource.rid?n.resource.rid:null,o=r&&t.resourceWeight[r]?parseInt(t.resourceWeight[r]):0;return (i&&t.resourceWeight[i]?parseInt(t.resourceWeight[i]):0)-o;})),e;}},{key:"getAccessUnlockingPage",value:function(e,t){e=this.sortAccessList(e);var n,r=new s(),o=[],a=null,c=i(e);try{for(c.s();!(n=c.n()).done;){var u=n.value;if(u.granted&&u.resource&&u.resource.rid&&t.includes(u.resource.rid)){if(r.getAccessTags(u.resource).includes("access-type-registration")){a||(a=u);continue;}o=u;break;}}}catch(e){c.e(e);}finally{c.f();}0===o.length&&(o=this.getFirstValidNonRegistrationAccess(e)||a||this.getFirstValidAccess(e));return o;}},{key:"getFirstValidNonRegistrationAccess",value:function(e){var t,n=new s(),r=i(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.granted&&o.term&&o.term.aid===window.tp.aid&&o.resource&&o.resource.rid&&!this.isSpecificResource(o.resource.rid)&&!n.getAccessTags(o.resource).includes("access-type-registration"))return o;}}catch(e){r.e(e);}finally{r.f();}return null;}},{key:"getFirstValidAccess",value:function(e){var t,n=[],r=i(e=this.sortAccessList(e));try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.granted&&o.term&&o.term.aid===window.tp.aid){if(o.resource&&o.resource.rid&&!this.isSpecificResource(o.resource.rid))return o;n||(n=o);}}}catch(e){r.e(e);}finally{r.f();}return n;}},{key:"checkIfNestedObjectExist",value:function(e){if("object"!==r(e))return !1;for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++){if(!e||!e.hasOwnProperty(t[n]))return !1;e=e[t[n]];}return !0;}},{key:"getPageResourcesFromUv",value:function(){var e=window.universal_variable;return this.checkIfNestedObjectExist(e,"article","piano_resource_ids")?e.article.piano_resource_ids:[];}}])&&a(t.prototype,n),e;}();e.exports=c;},86:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e);}var n,r;return n=e,(r=[{key:"setUserUv",value:function(){var e=this;window.tp.push(["init",function(){var t=e.getUserUvFromJwt();Object.keys(t).length>0&&(void 0!==t.email&&(window.universal_variable.user=t),void 0!==t.company_id&&(window.universal_variable.OA=t));}]);}},{key:"getUserUvFromJwt",value:function(){var e=window.tp.getExternalJWT(),t=this.parseJwt(e);return 0===Object.keys(t).length?{}:t.oa_user?{user_id:t.email,company_id:t.email}:{department:t.department,email_hash:t.email_hash,drupal_session_id:t.drupal_session_id,email:t.email,first_name:t.first_name,id:t.uid,job_title:t.job_title,title:t.title,user_country:t.delivery_country,company_name:t.company_name,industry_type:t.industry_type,roles:t.roles,persona:t.persona};}},{key:"parseJwt",value:function(e){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return "%"+("00"+e.charCodeAt(0).toString(16)).slice(-2);})).join(""));return n=n.replace(/"\[\\"|\\"\]"/g,'"'),JSON.parse(n);}catch(e){return {};}}}])&&t(n.prototype,r),e;}();e.exports=n;}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports;}!function(e,t,r){var i=n(658),o=(n(53),n(509)),a=n(758),s=n(236),c=n(92),u=n(650),l=n(86),f=n(747),p=n(657),d=n(870),v=n(269),h=n(263);window.tp=window.tp||[];var y=r.universal_variable,m=new c(),g=new u(),b=new l(),w=new f(r),_=new h(),k=new p(),S=new d(),C=new v(r);i.pushUserToPiano(r),a.pushAll(y),s.createMyAccount(),m.addPianoLoginHandler(r),g.redirectUserToPianoCheckout(),k.handleEvents(),S.handleEvents(),C.handleEvents(),b.setUserUv(),w.getSiteSubscriptionUv(),_.setClasses(),o.loadPianoLibrary(r);}(jQuery,Drupal,drupalSettings);}();;
13(function($,Drupal,once){Drupal.behaviors.imHeaderSearch={attach:function(context,settings){if(!once('im-header-search','body',context).length)return;$(context).on('mouseup','.header-search-button',function(){setTimeout(function(){$('.im-search-header-form input.search-head-input').focus();$('.im-search-header-form').trigger("ux_ga_tracking:main_search_init");},1100);});var delayTimer;$(context).on('keyup','.im-search-header-form input.search-head-input',function(){var menu_item=$(this).closest('.search-panel-content');var input_val=$.trim($(this).val());clearTimeout(delayTimer);delayTimer=setTimeout(function(){if(input_val.length!==0){$(this).val(input_val);document.querySelector('#edit-search-loop').setAttribute('aria-disabled','true');document.querySelector('#edit-query').setAttribute('aria-busy','true');document.querySelector('span.loading').removeAttribute('aria-hidden');$('.im-search-header-form .loop').addClass('search-icon');var prefix=(drupalSettings.path&&drupalSettings.path.pathPrefix)?'/'+drupalSettings.path.pathPrefix.replace(/\/$/,''):'';$.ajax({method:'GET',url:prefix+'/ajax/search-articles',dataType:'json',data:{name:input_val},success:function(data){$(menu_item).find('#search-panel-sections ul').remove();$(menu_item).find('#search-panel-topics ul').remove();$(menu_item).find('.im-search-header-form .loop').removeClass('search-icon');document.querySelector('#edit-search-loop').removeAttribute('aria-disabled');document.querySelector('#edit-query').removeAttribute('aria-busy');document.querySelector('span.loading').setAttribute('aria-hidden','true');
13if(data.articles.length==0&&data.topics.length==0){$(menu_item).find('#search-panel-sections').addClass('hide-element');$(menu_item).find('#search-panel-topics').addClass('hide-element');return;}var menu_article=Drupal.theme('imSearchArticleResult',data.articles);var menu_topic=Drupal.theme('imSearchTopicsResult',data.topics);$(menu_item).find('#search-panel-sections #sections-content').append(menu_article);$(menu_topic).insertAfter($(menu_item).find('#search-panel-topics .search-panel-subheading'));$(menu_item).find('#search-panel-sections').removeClass('hide-element');$(menu_item).find('#search-panel-topics').removeClass('hide-element');$(menu_item).trigger("ux_ga_tracking:main_search_results",[input_val]);}});}},1000);});$(context).on('click','.main-search-form input.search-submit',function(e,form_done){if(!form_done){e.preventDefault();$(this).addClass('search-submit-icon');$('<span class="search-submit-icon"></span>').insertAfter('.main-search-form input.search-submit');setTimeout(function(){$(context).find('.main-search-form input.search-submit').trigger('click',true);},500);}});}};Drupal.theme.imSearchArticleResult=function(items){var html='<ul>';$.each(items,function(index,item){html+='<li>';html+='<a href="'+item.url+'?ref=header-search">'+item.text+'</a>';html+='</li>';});html+='</ul>';return html;};Drupal.theme.imSearchTopicsResult=function(items){var html='<ul class="topics-content">';$.each(items,function(index,item){html+='<li>';html+='<a href="'+item.url+'?ref=header-search">'+item.text+'</a>';html+='</li>';});html+='</ul>';return html;};})(jQuery,Drupal,once);;
14(function(Drupal,once){Drupal.behaviors.loadFollowLink={attach:function(context,settings){const elements=once('follow-link','.follow-link-container',context);const listingFollowElement=document.querySelector('.listing-follow');elements.forEach(function(container){const entityType=container.getAttribute('data-entity-type');const entityId=container.getAttribute('data-entity-id');const flagId=container.getAttribute('data-flag-id');const url=Drupal.url(`flag/get-flag-link/${entityType}/${entityId}/${flagId}`);fetch(url).then((response)=>response.json()).then((data)=>{if(data.status==='success'){listingFollowElement.innerHTML=data.link;Drupal.attachBehaviors(listingFollowElement);}else console.error('Error loading follow link:',data.message);}).catch((error)=>{console.error('AJAX error:',error);});});}};})(Drupal,once);;
15(function($){if(!$('html.ip_user .nav .holder .clicker4').hasClass('institution'))$('html.ip_user .nav .holder .clicker4').addClass('institution');if(!$('html.ip_user .menu-sidebar-inner .sidebar-list li.login-icon').hasClass('institution'))$('html.ip_user .menu-sidebar-inner .sidebar-list li.login-icon').addClass('institution');if(!$('html.register_user .menu-sidebar-inner .sidebar-list li.login-icon').hasClass('user'))$('html.register_user .menu-sidebar-inner .sidebar-list li.login-icon').addClass('user');if(!$('html.ip_user .mobile-ip-user-wrapper').hasClass('mask'))$('html.ip_user .mobile-ip-user-wrapper').addClass('mask');if(!$('html.ip_user .mobile-ip-user-menu-wrapper').hasClass('menu4'))$('html.ip_user .mobile-ip-user-menu-wrapper').addClass('menu4');})(jQuery);;
16(function($,Drupal,once){Drupal.behaviors.imLoginRedirect={attach:function(context,settings){const destination=window.location.pathname+window.location.search;if(destination=='/')return;let links=once('im-login-redirect','[data-drupal-link-system-path="user/login"]',context);links.forEach(function(link){if(!link.search)link.search='?destination='+encodeURIComponent(destination);else link.search='destination='+encodeURIComponent(destination);});}};})(jQuery,Drupal,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.