1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(_,$,Drupal,drupalSettings){'use strict';var Bootstrap={processedOnce:{},settings:drupalSettings.bootstrap||{}};Bootstrap.checkPlain=function(str){return str&&Drupal.checkPlain(str)||'';};Bootstrap.createPlugin=function(id,plugin,noConflict){if($.fn[id]!==void 0)return this.fatal('Specified jQuery plugin identifier already exists: @id. Use Drupal.bootstrap.replacePlugin() instead.',{'@id':id});if(typeof plugin!=='function')return this.fatal('You must provide a constructor function to create a jQuery plugin "@id": @plugin',{'@id':id,'@plugin':plugin});this.pluginNoConflict(id,plugin,noConflict);$.fn[id]=plugin;};Bootstrap.diffObjects=function(objects){var args=Array.prototype.slice.call(arguments);return _.pick(args[0],_.difference.apply(_,_.map(args,function(obj){return Object.keys(obj);})));};Bootstrap.eventMap={Event:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvent:/^(?:click|dblclick|mouse(?:down|enter|leave|up|over|move|out))$/,KeyboardEvent:/^(?:key(?:down|press|up))$/,TouchEvent:/^(?:touch(?:start|end|move|cancel))$/};Bootstrap.extendPlugin=function(id,callback){if(typeof $.fn[id]!=='function')return this.fatal('Specified jQuery plugin identifier does not exist: @id',{'@id':id});if(typeof callback!=='function')return this.fatal('You must provide a callback function to extend the jQuery plugin "@id": @callback',{'@id':id,'@callback':callback});var constructor=$.fn[id]&&$.fn[id].Constructor||$.fn[id];var plugin=callback.apply(constructor,[this.settings]);if(!$.isPlainObject(plugin))return this.fatal('Returned value from callback is not a plain object that can be used to extend the jQuery plugin "@id": @obj',{'@obj':plugin});this.wrapPluginConstructor(constructor,plugin,true);return $.fn[id];};Bootstrap.superWrapper=function(parent,fn){return function(){var previousSuper=this.super;this.super=parent;var ret=fn.apply(this,arguments);if(previousSuper)this.super=previousSuper;else delete this.super;return ret;};};Bootstrap.fatal=function(message,args){if(this.settings.dev&&console.warn){for(var name in args)if(args.hasOwnProperty(name)&&typeof args[name]==='object')args[name]=JSON.stringify(args[name]);Drupal.throwError(new Error(Drupal.formatString(message,args)));}return false;};Bootstrap.intersectObjects=function(objects){var args=Array.prototype.slice.call(arguments);return _.pick(args[0],_.intersection.apply(_,_.map(args,function(obj){return Object.keys(obj);})));};Bootstrap.normalizeObject=function(obj){if(!$.isPlainObject(obj))return obj;for(var k in obj)if(typeof obj[k]==='string')if(obj[k]==='true')obj[k]=true;else if(obj[k]==='false')obj[k]=false;
2else{if(obj[k].match(/^[\d-.]$/))obj[k]=parseFloat(obj[k]);}else{if($.isPlainObject(obj[k]))obj[k]=Bootstrap.normalizeObject(obj[k]);}return obj;};Bootstrap.once=function(id,callback){if(this.processedOnce[id])return this;callback.call(this,this.settings);this.processedOnce[id]=true;return this;};Bootstrap.option=function(key,value){var options=$.isPlainObject(key)?$.extend({},key):{};if(arguments.length===0)return $.extend({},this.options);if(typeof key==="string"){var parts=key.split('.');key=parts.shift();var obj=options;if(parts.length){for(var i=0;i<parts.length-1;i++){obj[parts[i]]=obj[parts[i]]||{};obj=obj[parts[i]];}key=parts.pop();}if(arguments.length===1)return obj[key]===void 0?null:obj[key];obj[key]=value;}$.extend(true,this.options,options);};Bootstrap.pluginNoConflict=function(id,plugin,noConflict){if(plugin.noConflict===void 0&&(noConflict===void 0||noConflict)){var old=$.fn[id];plugin.noConflict=function(){$.fn[id]=old;return this;};}};Bootstrap.relayEvent=function(target,name,stopPropagation){return function(e){if(stopPropagation===void 0||stopPropagation)e.stopPropagation();var $target=$(target);var parts=name.split('.').filter(Boolean);var type=parts.shift();e.target=$target[0];e.currentTarget=$target[0];e.namespace=parts.join('.');e.type=type;$target.trigger(e);};};Bootstrap.replacePlugin=function(id,callback,noConflict){if(typeof $.fn[id]!=='function')return this.fatal('Specified jQuery plugin identifier does not exist: @id',{'@id':id});if(typeof callback!=='function')return this.fatal('You must provide a valid callback function to replace a jQuery plugin: @callback',{'@callback':callback});var constructor=$.fn[id]&&$.fn[id].Constructor||$.fn[id];var plugin=callback.apply(constructor,[this.settings]);if(typeof plugin!=='function')return this.fatal('Returned value from callback is not a usable function to replace a jQuery plugin "@id": @plugin',{'@id':id,'@plugin':plugin});this.wrapPluginConstructor(constructor,plugin);this.pluginNoConflict(id,plugin,noConflict);$.fn[id]=plugin;};Bootstrap.simulate=function(element,type,options){var ret=true;if(element instanceof $){element.each(function(){if(!Bootstrap.simulate(this,type,options))ret=false;});return ret;}if(!(element instanceof HTMLElement))this.fatal('Passed element must be an instance of HTMLElement, got "@type" instead.',{'@type':typeof element});if(typeof $.simulate==='function'){new $.simulate(element,type,options);return true;}var event;var ctor;var types=[].concat(type);for(var i=0,l=types.length;i<l;i++){type=types[i];for(var name in this.eventMap)if(this.eventMap[name].test(type)){ctor=name;break;}if(!ctor)throw new SyntaxError('Only rudimentary HTMLEvents, KeyboardEvents and MouseEvents are supported: '+type);var opts={bubbles:true,cancelable:true};if(ctor==='KeyboardEvent'||ctor==='MouseEvent')$.extend(opts,{ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1});if(ctor==='MouseEvent')$.extend(opts,{button:0,pointerX:0,pointerY:0,view:window});if(options)$.extend(opts,options);if(typeof window[ctor]==='function'){event=new window[ctor](type,opts);if(!element.dispatchEvent(event))ret=false;}else if(document.createEvent){event=document.createEvent(ctor);event.initEvent(type,opts.bubbles,opts.cancelable);if(!element.dispatchEvent(event))ret=false;}else if(typeof element.fireEvent==='function'){event=$.extend(document.createEventObject(),opts);if(!element.fireEvent('on'+type,event))ret=false;}else{if(typeof element[type])element[type]();}}return ret;};Bootstrap.stripHtml=function(html){if(html instanceof $)html=html.html();else{if(html instanceof Element)html=html.innerHTML;}var tmp=document.createElement('DIV');tmp.innerHTML=html;return (tmp.textContent||tmp.innerText||'').replace(/^[\s\n\t]*|[\s\n\t]*$/,'');};Bootstrap.unsupported=function(type,name,value){Bootstrap.warn('Unsupported by Drupal Bootstrap: (@type) @name -> @value',{'@type':type,'@name':name,'@value':typeof value==='object'?JSON.stringify(value):value});};Bootstrap.warn=function(message,args){if(this.settings.dev&&console.warn)console.warn(Drupal.formatString(message,args));};Bootstrap.wrapPluginConstructor=function(constructor,plugin,extend){var proto=constructor.prototype;var option=this.option;if(proto.option===void (0))proto.option=function(){return option.apply(this,arguments);};if(extend){if(plugin.prototype!==void 0)for(var key in plugin.prototype){if(!plugin.prototype.hasOwnProperty(key))continue;var value=plugin.prototype[key];if(typeof value==='function')proto[key]=this.superWrapper(proto[key]||function(){},value);else proto[key]=$.isPlainObject(value)?$.extend(true,{},proto[key],value):value;}delete plugin.prototype;for(key in plugin){if(!plugin.hasOwnProperty(key))continue;value=plugin[key];if(typeof value==='function')constructor[key]=this.superWrapper(constructor[key]||function(){},value);else constructor[key]=$.isPlainObject(value)?$.extend(true,{},constructor[key],value):value;}}};Drupal.bootstrap=Drupal.bootstrap||Bootstrap;})(window._,window.jQuery,window.Drupal,window.drupalSettings);; 3(function($,_){var Attributes=function(attributes){this.data={};this.data['class']=[];
3this.merge(attributes);};Attributes.prototype.toString=function(){var output='';var name,value;var checkPlain=function(str){return str&&str.toString().replace(/&/g,'&').replace(/"/g,'"').replace(/</g,'<').replace(/>/g,'>')||'';};var data=this.getData();for(name in data){if(!data.hasOwnProperty(name))continue;value=data[name];if(_.isFunction(value))value=value();if(_.isObject(value))value=_.values(value);if(_.isArray(value))value=value.join(' ');output+=' '+checkPlain(name)+'="'+checkPlain(value)+'"';}return output;};Attributes.prototype.toPlainObject=function(){var object={};var name,value;var data=this.getData();for(name in data){if(!data.hasOwnProperty(name))continue;value=data[name];if(_.isFunction(value))value=value();if(_.isObject(value))value=_.values(value);if(_.isArray(value))value=value.join(' ');object[name]=value;}return object;};Attributes.prototype.addClass=function(value){var args=Array.prototype.slice.call(arguments);this.data['class']=this.sanitizeClasses(this.data['class'].concat(args));return this;};Attributes.prototype.exists=function(name){return this.data[name]!==void (0)&&this.data[name]!==null;};Attributes.prototype.get=function(name,defaultValue){if(!this.exists(name))this.data[name]=defaultValue;return this.data[name];};Attributes.prototype.getData=function(){return _.extend({},this.data);};Attributes.prototype.getClasses=function(){return this.get('class',[]);};Attributes.prototype.hasClass=function(className){className=this.sanitizeClasses(Array.prototype.slice.call(arguments));var classes=this.getClasses();for(var i=0,l=className.length;i<l;i++)if(_.indexOf(classes,className[i])===-1)return false;return true;};Attributes.prototype.merge=function(object,recursive){if(!object)return this;if(object instanceof $)object=object[0];if(object instanceof Node)object=Array.prototype.slice.call(object.attributes).reduce(function(attributes,attribute){attributes[attribute.name]=attribute.value;return attributes;},{});else if(object instanceof Attributes)object=object.getData();else object=_.extend({},object);if(!$.isPlainObject(object)){setTimeout(function(){throw new Error('Passed object is not supported: '+object);});return this;}if(object&&object['class']!==void 0){this.addClass(object['class']);delete object['class'];}if(recursive===void 0||recursive)this.data=$.extend(true,{},this.data,object);else this.data=$.extend({},this.data,object);return this;};Attributes.prototype.remove=function(name){if(this.exists(name))delete this.data[name];return this;};Attributes.prototype.removeClass=function(className){var remove=this.sanitizeClasses(Array.prototype.slice.apply(arguments));this.data['class']=_.without(this.getClasses(),remove);return this;};Attributes.prototype.replaceClass=function(oldValue,newValue){var classes=this.getClasses();var i=_.indexOf(this.sanitizeClasses(oldValue),classes);if(i>=0){classes[i]=newValue;this.set('class',classes);}return this;};Attributes.prototype.sanitizeClasses=function(classes){return _.chain(Array.prototype.slice.call(arguments)).flatten().map(function(string){return string.split(' ');}).flatten().filter().map(function(value){return Attributes.cleanClass(value);}).uniq().value();};Attributes.prototype.set=function(name,value){var obj=$.isPlainObject(name)?name:{};if(typeof name==='string')obj[name]=value;return this.merge(obj);};Attributes.cleanClass=function(identifier,filter){filter=filter||{' ':'-','_':'-','/':'-','[':'-',']':''};identifier=identifier.toLowerCase();if(filter['__']===void 0)identifier=identifier.replace('__','#DOUBLE_UNDERSCORE#');identifier=identifier.replace(Object.keys(filter),Object.keys(filter).map(function(key){return filter[key];}));if(filter['__']===void 0)identifier=identifier.replace('#DOUBLE_UNDERSCORE#','__');
3identifier=identifier.replace(/[^\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00A1-\uFFFF]/g,'');identifier=identifier.replace(['/^[0-9]/','/^(-[0-9])|^(--)/'],['_','__']);return identifier;};Attributes.create=function(attributes){return new Attributes(attributes);};window.Attributes=Attributes;})(window.jQuery,window._);; 4(function($,Drupal,Bootstrap,Attributes){if(!Drupal.icon)Drupal.icon={bundles:{}};if(!Drupal.theme.icon||Drupal.theme.prototype.icon)$.extend(Drupal.theme,{icon:function(bundle,icon,attributes){if(!Drupal.icon.bundles[bundle])return '';attributes=Attributes.create(attributes).addClass('icon').set('aria-hidden','true');icon=Drupal.icon.bundles[bundle](icon,attributes);return '<span'+attributes+'></span>';}});Drupal.icon.bundles.bootstrap=function(icon,attributes){attributes.addClass(['glyphicon','glyphicon-'+icon]);};$.extend(Drupal.theme,{ajaxThrobber:function(){return Drupal.theme('bootstrapIcon','refresh',{'class':['ajax-throbber','glyphicon-spin']});},button:function(attributes){attributes=Attributes.create(attributes).addClass('btn');var context=attributes.get('context','default');var label=attributes.get('value','');attributes.remove('context').remove('value');if(!attributes.hasClass(['btn-default','btn-primary','btn-success','btn-info','btn-warning','btn-danger','btn-link']))attributes.addClass('btn-'+Bootstrap.checkPlain(context));if(!attributes.exists('type'))attributes.set('type',attributes.hasClass('form-submit')?'submit':'button');return '<button'+attributes+'>'+label+'</button>';},btn:function(attributes){return Drupal.theme('button',attributes);},'btn-block':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-block'));},'btn-lg':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-lg'));},'btn-sm':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-sm'));},'btn-xs':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-xs'));},bootstrapIcon:function(name,attributes){return Drupal.theme('icon','bootstrap',name,attributes);}});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes);; 5var Drupal=Drupal||{};(function($,Drupal,Bootstrap){"use strict";var $document=$(document);Bootstrap.extendPlugin('popover',function(settings){return {DEFAULTS:{animation:!!settings.popover_animation,autoClose:!!settings.popover_auto_close,enabled:settings.popover_enabled,html:!!settings.popover_html,placement:settings.popover_placement,selector:settings.popover_selector,trigger:settings.popover_trigger,title:settings.popover_title,content:settings.popover_content,delay:parseInt(settings.popover_delay,10),container:settings.popover_container}};});Drupal.behaviors.bootstrapPopovers={$activePopover:null,attach:function(context){if(!$.fn.popover||!$.fn.popover.Constructor.DEFAULTS.enabled)return;var _this=this;$document.on('show.bs.popover','[data-toggle=popover]',function(){var $trigger=$(this);var popover=$trigger.data('bs.popover');if(popover.options.originalTrigger==='click'){if(_this.$activePopover&&_this.getOption('autoClose')&&!_this.$activePopover.is($trigger))_this.$activePopover.popover('hide');_this.$activePopover=$trigger;}}).on('focus.bs.popover',':visible',function(e){var $target=$(e.target);if(_this.$activePopover&&_this.getOption('autoClose')&&!_this.$activePopover.is($target)&&!$target.closest('.popover.in')[0]){_this.$activePopover.popover('hide');_this.$activePopover=null;}}).on('click.bs.popover',function(e){var $target=$(e.target);if(_this.$activePopover&&_this.getOption('autoClose')&&!$target.is('[data-toggle=popover]')&&!$target.closest('.popover.in')[0]){_this.$activePopover.popover('hide');_this.$activePopover=null;}}).on('keyup.bs.popover',function(e){if(_this.$activePopover&&_this.getOption('autoClose')&&e.which===27){_this.$activePopover.popover('hide');_this.$activePopover=null;}});;var elements=$(context).find('[data-toggle=popover]').toArray();for(var i=0;i<elements.length;i++){var $element=$(elements[i]);var options=$.extend({},$.fn.popover.Constructor.DEFAULTS,$element.data());options.originalTrigger=options.trigger;if(options.trigger==='click')options.trigger='manual';var target=options.target||$element.is('a[href^="#"]')&&$element.attr('href');var $target=$document.find(target).clone();if(!options.content&&$target[0]){$target.removeClass('visually-hidden hidden').removeAttr('aria-hidden');options.content=$target.wrap('<div/>').parent()[options.html?'html':'text']()||'';}$element.popover(options);if(options.originalTrigger==='click'){$element.off('click.drupal.bootstrap.popover').on('click.drupal.bootstrap.popover',function(e){$(this).popover('toggle');e.preventDefault();e.stopPropagation();});;}}},detach:function(context){if(!$.fn.popover||!$.fn.popover.Constructor.DEFAULTS.enabled)return;$(context).find('[data-toggle="popover"]').off('click.drupal.bootstrap.popover').popover('destroy');;},getOption:function(name,defaultValue,element){var $element=element?$(element):this.$activePopover;var options=$.extend(true,{},$.fn.popover.Constructor.DEFAULTS,($element&&$element.data('bs.popover')||{}).options);if(options[name]!==void 0)return options[name];return defaultValue!==void 0?defaultValue:void 0;}};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);;
6var Drupal=Drupal||{};(function($,Drupal,Bootstrap){"use strict";Bootstrap.extendPlugin('tooltip',function(settings){return {DEFAULTS:{animation:!!settings.tooltip_animation,enabled:settings.tooltip_enabled,html:!!settings.tooltip_html,placement:settings.tooltip_placement,selector:settings.tooltip_selector,trigger:settings.tooltip_trigger,delay:parseInt(settings.tooltip_delay,10),container:settings.tooltip_container}};});Drupal.behaviors.bootstrapTooltips={attach:function(context){if(!$.fn.tooltip||!$.fn.tooltip.Constructor.DEFAULTS.enabled)return;var elements=$(context).find('[data-toggle="tooltip"]').toArray();for(var i=0;i<elements.length;i++){var $element=$(elements[i]);var options=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,$element.data());$element.tooltip(options);}},detach:function(context){if(!$.fn.tooltip||!$.fn.tooltip.Constructor.DEFAULTS.enabled)return;$(context).find('[data-toggle="tooltip"]').tooltip('destroy');}};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);; 7(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"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </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);; 8(function($,Drupal){'use strict';Drupal.theme.progressBar=function(id){return '<div class="progress-wrapper" aria-live="polite">'+'<div class="message"></div>'+'<div id ="'+id+'" class="progress progress-striped active">'+'<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">'+'<span class="percentage"></span>'+'</div>'+'</div>'+'<div class="progress-label"></div>'+'</div>';};$.extend(Drupal.ProgressBar.prototype,{setProgress:function(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('.progress-bar').css('width',percentage+'%').attr('aria-valuenow',percentage);$(this.element).find('.percentage').html(percentage+'%');}if(message){message=message.replace(/<br\/> |\s*$/,'');$('.message',this.element).html(message);}if(label)$('.progress-label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},displayError:function(string){var error=$('<div class="alert alert-block alert-error"><button class="close" data-dismiss="alert">×</button><h4>'+Drupal.t('Error message')+'</h4></div>').append(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 9/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 10loadjs=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}
10function 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;for(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}();; 11/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 12Drupal.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;};};; 13(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);; 14((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})=>
14{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);; 15(function($,Drupal){Drupal.Message.getMessageTypeClass=function(type){var classes=this.getMessageTypeClasses();return 'alert alert-'+(classes[type]||'success');};Drupal.Message.getMessageTypeClasses=function(){return {status:'success',error:'danger',warning:'warning',info:'info'};};Drupal.Message.getMessageTypeLabel=function(type){var labels=this.getMessageTypeLabels();return labels[type];};Drupal.Message.getMessageTypeLabels=function(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message'),info:Drupal.t('Informative message')};};Drupal.Message.getMessageTypeRole=function(type){var labels=this.getMessageTypeRoles();return labels[type];};Drupal.Message.getMessageTypeRoles=function(){return {status:'status',error:'alert',warning:'alert',info:'status'};};Drupal.theme.message=function(message,options){options=options||{};var wrapper=Drupal.theme('messageWrapper',options.id||(new Date()).getTime(),options.type||'status');if(options.dismissible===void 0||!!options.dismissible){wrapper.classList.add('alert-dismissible');wrapper.appendChild(Drupal.theme('messageClose'));}wrapper.appendChild(Drupal.theme('messageContents',message&&message.text));return wrapper;};Drupal.theme.messageWrapper=function(id,type){var wrapper=document.createElement('div');var label=Drupal.Message.getMessageTypeLabel(type);wrapper.setAttribute('class',Drupal.Message.getMessageTypeClass(type));wrapper.setAttribute('role',Drupal.Message.getMessageTypeRole(type));wrapper.setAttribute('aria-label',label);wrapper.setAttribute('data-drupal-message-id',id);wrapper.setAttribute('data-drupal-message-type',type);if(label)wrapper.appendChild(Drupal.theme('messageLabel',label));return wrapper;};Drupal.theme.messageClose=function(){var element=document.createElement('button');element.setAttribute('class','close');element.setAttribute('type','button');element.setAttribute('role','button');element.setAttribute('data-dismiss','alert');element.setAttribute('aria-label',Drupal.t('Close'));element.innerHTML='<span aria-hidden="true">×</span>';return element;};Drupal.theme.messageLabel=function(label){var element=document.createElement('h2');element.setAttribute('class','sr-only');element.innerHTML=label;return element;};Drupal.theme.messageContents=function(html){var element=document.createElement('p');element.innerHTML=''+html;return element;};})(window.jQuery,window.Drupal);; 16(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}`;once('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)=>
16{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;$(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"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </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
16d}`,$.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));
16$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);; 17(function($,window,Drupal,drupalSettings){Drupal.Ajax.prototype.findGlyphicon=function(element){return $(element).closest('.form-item').find('.ajax-progress.glyphicon');};Drupal.Ajax.prototype.glyphiconStart=function(element,message){var $glyphicon=this.findGlyphicon(element);if($glyphicon[0]){$glyphicon.addClass('glyphicon-spin');if($.fn.tooltip&&drupalSettings.bootstrap.tooltip_enabled){$glyphicon.removeAttr('data-toggle').removeAttr('data-original-title').removeAttr('title').tooltip('destroy');;if(message)$glyphicon.attr('data-toggle','tooltip').attr('title',message).tooltip();}if(message)$glyphicon.parent().append('<div class="sr-only message">'+message+'</div>');}return $glyphicon;};Drupal.Ajax.prototype.glyphiconStop=function(element){var $glyphicon=this.findGlyphicon(element);if($glyphicon[0]){$glyphicon.removeClass('glyphicon-spin');if($.fn.tooltip&&drupalSettings.bootstrap.tooltip_enabled){$glyphicon.removeAttr('data-toggle').removeAttr('data-original-title').removeAttr('title').tooltip('destroy');;}}};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){var $element=$(this.element);var $glyphicon=this.glyphiconStart($element,this.progress.message);if($glyphicon[0]){this.progress.element=$glyphicon.parent();this.progress.glyphicon=true;return;}if(!this.progress.element)this.progress.element=$(Drupal.theme('ajaxThrobber'));if(this.progress.message)this.progress.element.after('<div class="message">'+this.progress.message+'</div>');if($element.is('input')||$element.is('select'))$element.after(this.progress.element);else $element.append(this.progress.element);};var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)this.progress.element.parent().find('.message').remove();return success.apply(this,[response,status]);};})(jQuery,this,Drupal,drupalSettings);; 18(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});
18const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;document.querySelectorAll(`[data-offset-${edge}]`).forEach((el)=>{if(el.style.display==='none')return;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);});return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);; 19(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
19if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);; 20(function($,Drupal,Bootstrap,Attributes){'use strict';var $document=$(document);Bootstrap.modalFindFocusableElement=function(modal){return modal.$dialogBody.find(':input,:button,.btn').not('.visually-hidden,.sr-only');};$document.on('shown.bs.modal',function(e){var $modal=$(e.target);var modal=$modal.data('bs.modal');var $ckeditor=$modal.find('[data-ckeditor5-id]');if($ckeditor.length){$('.ck-body-wrapper').appendTo($modal);$('.ck-body-wrapper .ck-body>div').each(function(){$(this).css('margin-top',-window.scrollY+'px');});}if(modal&&modal.options.focusInput){var $focusable=Bootstrap.modalFindFocusableElement(modal);if($focusable&&$focusable[0]){var $input=$focusable.filter(':visible:first').focus();if(modal.options.selectText&&$input.is(':text'))$input[0].setSelectionRange(0,$input[0].value.length);}else{if(modal.$close.is(':visible'))modal.$close.focus();}}});Bootstrap.once('modal',function(settings){Bootstrap.replacePlugin('modal',function(){var BootstrapModal=this;Bootstrap.Modal=function(element,options){this.$body=$(document.body);this.$element=$(element);
20this.$dialog=this.$element.find('.modal-dialog');this.$header=this.$dialog.find('.modal-header');this.$title=this.$dialog.find('.modal-title');this.$close=this.$header.find('.close');this.$footer=this.$dialog.find('.modal-footer');this.$content=this.$dialog.find('.modal-content');this.$dialogBody=this.$dialog.find('.modal-body');this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;this.options=this.mapDialogOptions(options);};Bootstrap.Modal.DEFAULTS=$.extend({},BootstrapModal.DEFAULTS,{animation:!!settings.modal_animation,backdrop:settings.modal_backdrop==='static'?'static':!!settings.modal_backdrop,focusInput:!!settings.modal_focus_input,selectText:!!settings.modal_select_text,keyboard:!!settings.modal_keyboard,remote:null,show:!!settings.modal_show,size:settings.modal_size});Bootstrap.Modal.prototype=BootstrapModal.prototype;Bootstrap.Modal.prototype.destroy=function(){this.hide();Drupal.detachBehaviors(this.$element[0]);this.$element.removeData('bs.modal').remove();};Bootstrap.Modal.prototype.init=function(){if(this.options.remote)this.$content.load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal');},this));};Bootstrap.Modal.prototype.mapDialogOptions=function(options){return options||{};};var Plugin=function(){var args=Array.prototype.slice.call(arguments);var method=args[0];var options=args[1]||{};var relatedTarget=args[2]||null;if($.isPlainObject(method)){relatedTarget=options||null;options=method;method=null;}var ret=void 0;this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var initialize=false;var showMethods=['open','show','toggle'];if(!data&&method&&showMethods.indexOf(method)===-1)return;options=Bootstrap.normalizeObject($.extend({},Bootstrap.Modal.DEFAULTS,data&&data.options,$this.data(),options));delete options['bs.modal'];if(!data){$this.data('bs.modal',(data=new Bootstrap.Modal(this,options)));initialize=true;}if(initialize||(!method&&!args.length))data.init();if(method)if(typeof data[method]==='function')try{ret=data[method].apply(data,args.slice(1));}catch(e){Drupal.throwError(e);}else Bootstrap.unsupported('method',method);else{data.option(options);if(options.show&&!data.isShown)data.show(relatedTarget);}});return this.length===1&&ret!==void 0?ret:this;};Plugin.Constructor=Bootstrap.Modal;$document.off('click.bs.modal.data-api').on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr('href');var target=$this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''));var $target=$document.find(target);var options=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());if($this.is('a'))e.preventDefault();$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return;$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus');});});$target.modal(options,this);});return Plugin;});$.extend(Drupal.theme,{bootstrapModal:function(variables){var output='';var settings=drupalSettings.bootstrap||{};var defaults={attributes:{class:['modal'],tabindex:-1,role:'dialog'},body:'',closeButton:true,description:{attributes:{class:['help-block']},content:null,position:'before'},footer:'',id:'drupal-modal',size:settings.modal_size?settings.modal_size:'',title:{attributes:{class:['modal-title']},content:Drupal.t('Loading...'),html:false,tag:'h4'}};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id));if(settings.modal_animation)attributes.addClass('fade');output+='<div'+attributes+'>';output+=Drupal.theme('bootstrapModalDialog',_.omit(variables,'attributes'));output+='</div>';return output;},bootstrapModalDialog:function(variables){var output='';var defaults={attributes:{class:['modal-dialog'],role:'document'},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--dialog'));if(variables.size)attributes.addClass(variables.size);output+='<div'+attributes+'>';output+=Drupal.theme('bootstrapModalContent',_.omit(variables,'attributes'));output+='</div>';return output;},bootstrapModalContent:function(variables){var output='';var defaults={attributes:{class:['modal-content']},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--content'));output+='<div'+attributes+'>';variables=_.omit(variables,'attributes');output+=Drupal.theme('bootstrapModalHeader',variables);output+=Drupal.theme('bootstrapModalBody',variables);output+=Drupal.theme('bootstrapModalFooter',variables);output+='</div>';return output;},bootstrapModalBody:function(variables){var output='';var defaults={attributes:{class:['modal-body']},body:'',description:{attributes:{class:['help-block']},content:null,position:'before'},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--body'));output+='<div'+attributes+'>';if(typeof variables.description==='string')variables.description=$.extend({},defaults.description,{content:variables.description});var description=variables.description;description.attributes=Attributes.create(defaults.description.attributes).merge(description.attributes);if(description.content&&description.position==='invisible')description.attributes.addClass('sr-only');if(description.content&&description.position==='before')output+='<p'+description.attributes+'>'+description.content+'</p>';output+=variables.body;if(description.content&&(description.position==='after'||description.position==='invisible'))output+='<p'+description.attributes+'>'+description.content+'</p>';output+='</div>';return output;},bootstrapModalClose:function(variables){var defaults={attributes:{'aria-label':Drupal.t('Close'),class:['close'],'data-dismiss':'modal',type:'button'}};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);return '<button'+attributes+'><span aria-hidden="true">×</span></button>';},bootstrapModalFooter:function(variables,force){var output='';var defaults={attributes:{class:['modal-footer']},footer:'',id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);if(force||variables.footer){var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--footer'));output+='<div'+attributes+'>';output+=variables.footer;output+='</div>';}return output;},bootstrapModalHeader:function(variables){var output='';var defaults={attributes:{class:['modal-header']}
20,closeButton:true,id:'drupal-modal',title:{attributes:{class:['modal-title']},content:Drupal.t('Loading...'),html:false,tag:'h4'}};variables=$.extend(true,{},defaults,variables);if(typeof variables.title==='string')variables.title=$.extend({},defaults.title,{content:variables.title});var title=Drupal.theme('bootstrapModalTitle',variables.title);if(title){var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--header'));output+='<div'+attributes+'>';if(variables.closeButton)output+=Drupal.theme('bootstrapModalClose',_.omit(variables,'attributes'));output+=title;output+='</div>';}return output;},bootstrapModalTitle:function(variables){var output='';var defaults={attributes:{class:['modal-title']},closeButton:true,id:'drupal-modal',content:Drupal.t('Loading...'),html:false,tag:'h4'};if(typeof variables==='string')variables=$.extend({},defaults,{content:title});variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--title'));output+='<'+Drupal.checkPlain(variables.tag)+Attributes.create(defaults.attributes).merge(variables.attributes)+'>';if(variables.closeButton)output+=Drupal.theme('bootstrapModalClose',_.omit(variables,'attributes'));output+=(variables.html?variables.content:Drupal.checkPlain(variables.content));output+='</'+Drupal.checkPlain(variables.tag)+'>';return output;}});});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes);; 21(function($,Drupal,Bootstrap,Attributes){Bootstrap.Dialog=Bootstrap.Dialog||{};Bootstrap.Dialog.handlers={};Bootstrap.Dialog.Handler=function(type,data){this.ctor=$.fn.modal;this.extend=null;this.plugin='modal';this.prefix='modal';this.themeHooks={modal:'bootstrapModal',dialog:'bootstrapModalDialog',header:'bootstrapModalHeader',title:'bootstrapModalTitle',close:'bootstrapModalClose',content:'bootstrapModalContent',body:'bootstrapModalBody',footer:'bootstrapModalFooter'};this.type=type;this.selectors={dialog:'.modal-dialog',header:'.modal-header',title:'.modal-title',close:'.close',content:'.modal-content',body:'.modal-body',footer:'.modal-footer',buttons:'.modal-buttons'};$.extend(this,data);if(this.extend)Bootstrap.extend(this.plugin,this.extend);};Bootstrap.Dialog.Handler.get=function(type){if(type instanceof $)type=type[0];if(type instanceof HTMLElement)type=type.dialogType;if(!type)type='modal';if(!Bootstrap.Dialog.handlers[type])Bootstrap.Dialog.handlers[type]=new Bootstrap.Dialog.Handler();return Bootstrap.Dialog.handlers[type];};Bootstrap.Dialog.Handler.register=function(type,data){Bootstrap.Dialog.handlers[type]=new Bootstrap.Dialog.Handler(type,data);};Bootstrap.Dialog.Handler.prototype.invoke=function(context){var args=Array.prototype.slice.call(arguments);return this.ctor.apply(context,args.slice(1));};Bootstrap.Dialog.Handler.prototype.theme=function(hook){var args=Array.prototype.slice.call(arguments);return $(Drupal.theme.apply(Drupal.theme,[this.themeHooks[hook]].concat(args.slice(1))));};Bootstrap.Dialog.Handler.prototype.ensureModalStructure=function(element,options){var $element=$(element);if($element.is('[data-drupal-theme="'+this.themeHooks.modal+'"]'))return;var attributes=Attributes.create(element).remove('style').set('data-drupal-theme',this.themeHooks.modal);if(options.$trigger&&options.$trigger[0]){var trigger=options.$trigger[0];var data={};for(var i=0,l=trigger.attributes.length;i<l;i++){var name=trigger.attributes[i].name;if(name&&name.substring(0,5)==='data-')data[name]=trigger.getAttribute(name);}attributes.merge(data);}options=$.extend(true,{},options,{attributes});var $modal=this.theme('modal',options);var $body=$element.find(this.selectors.body);var $existing=$body[0]?$body.contents():$element.contents();$element.attr(Attributes.create($modal).toPlainObject());$element.append($modal.html());$element.find(this.selectors.body).append($existing);};})(jQuery,Drupal,Drupal.bootstrap,Attributes);; 22(function($,Drupal,Bootstrap,Attributes,drupalSettings){'use strict';Bootstrap.once('modal.jquery.ui.bridge',function(settings){var rtl=document.documentElement.getAttribute('dir').toLowerCase()==='rtl';$(function(){drupalSettings.dialog.buttonClass='btn';drupalSettings.dialog.buttonPrimaryClass='btn-primary';});Bootstrap.Dialog.Bridge=function(options){var args=Array.prototype.slice.call(arguments);var $element=$(this);var type=options&&options.dialogType||$element[0].dialogType||'modal';$element[0].dialogType=type;var handler=Bootstrap.Dialog.Handler.get(type);if(args.length===1&&typeof options==='object'){this.each(function(){handler.ensureModalStructure(this,options);});return handler.invoke(this,{dialogOptions:options,jQueryUiBridge:true});}var ret;try{ret=handler.invoke.apply(handler,[this].concat(args));}catch(e){Bootstrap.warn(e);}return this.length===1&&ret!==void 0?ret:this;};Bootstrap.createPlugin('dialog',Bootstrap.Dialog.Bridge);Bootstrap.Modal.Bridge=function(){var Modal=this;return {DEFAULTS:{jQueryUiBridge:false},prototype:{close:function(){var _this=this;this.hide.apply(this,arguments);setTimeout(function(){if(!_this.isShown&&_this.$backdrop)_this.hideModal();},(Modal.TRANSITION_DURATION!==void 0?Modal.TRANSITION_DURATION:300)+10);},createButtons:function(){var handler=Bootstrap.Dialog.Handler.get(this.$element);this.$footer.find(handler.selectors.buttons).remove();var buttons=this.options.dialogOptions&&this.options.dialogOptions.buttons||[];if(!Array.isArray(buttons)){var array=[];for(var k in buttons)if(typeof buttons[k]==='function')array.push({label:k,click:buttons[k]});else if(buttons[k].text||buttons[k].label){Bootstrap.warn('Malformed jQuery UI dialog button: @key. The button object should be inside an array.',{'@key':k});array.push(buttons[k]);}else Bootstrap.unsupported('button',k,buttons[k]);buttons=array;}
22if(buttons.length){var $buttons=$('<div class="modal-buttons"/>').appendTo(this.$footer);for(var i=0,l=buttons.length;i<l;i++){var button=buttons[i];var $button=$(Drupal.theme('bootstrapModalDialogButton',button));if(typeof button.create==='function')button.create.call($button[0]);if(typeof button.click==='function')$button.on('click',button.click.bind(this.$element));$buttons.append($button);}}this.$footer[this.$footer.children()[0]?'show':'hide']();},init:function(){var handler=Bootstrap.Dialog.Handler.get(this.$element);if(!this.$dialog)this.$dialog=this.$element.find(handler.selectors.dialog);this.$dialog.addClass('js-drupal-dialog');if(!this.$header)this.$header=this.$dialog.find(handler.selectors.header);if(!this.$title)this.$title=this.$dialog.find(handler.selectors.title);if(!this.$close)this.$close=this.$header.find(handler.selectors.close);if(!this.$footer)this.$footer=this.$dialog.find(handler.selectors.footer);if(!this.$content)this.$content=this.$dialog.find(handler.selectors.content);if(!this.$dialogBody)this.$dialogBody=this.$dialog.find(handler.selectors.body);if(this.options.jQueryUiBridge){this.$element.on('hide.bs.modal',Bootstrap.relayEvent(this.$element,'dialogbeforeclose',false));this.$element.on('hidden.bs.modal',Bootstrap.relayEvent(this.$element,'dialogclose',false));this.$element.on('show.bs.modal',Bootstrap.relayEvent(this.$element,'dialogcreate',false));this.$element.on('shown.bs.modal',Bootstrap.relayEvent(this.$element,'dialogopen',false));}if(!this.$footer[0])this.$footer=handler.theme('footer',{},true).insertAfter(this.$dialogBody);$.extend(true,this.options,this.mapDialogOptions(this.options));this.createButtons();this.super();if(this.options.dialogOptions&&this.options.dialogOptions.autoResize&&this.options.dialogOptions.position)this.position(this.options.dialogOptions.position);if(this.options.jQueryUiBridge&&this.options.show&&!this.isShown)this.show();},instance:function(){Bootstrap.unsupported('method','instance',arguments);},isOpen:function(){return !!this.isShown;},mapDialogOptions:function(options){var handler=Bootstrap.Dialog.Handler.get(this.$element);var mappedOptions={};var dialogOptions=options.dialogOptions||{};delete options.dialogOptions;for(var k in options)if(Modal.DEFAULTS.hasOwnProperty(k))mappedOptions[k]=options[k];else dialogOptions[k]=options[k];var cssUnitRegExp=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)?$/;var parseCssUnit=function(value,defaultUnit){var parts=(''+value).match(cssUnitRegExp);return parts&&parts[1]!==void 0?parts[1]+(parts[2]||defaultUnit||'px'):null;};var styles={};var cssProperties=['height','maxHeight','maxWidth','minHeight','minWidth','width'];for(var i=0,l=cssProperties.length;i<l;i++){var prop=cssProperties[i];if(dialogOptions[prop]!==void 0){var value=parseCssUnit(dialogOptions[prop]);if(value){styles[prop]=value;if(dialogOptions.autoResize&&(prop==='height'||prop==='maxHeight')){styles.display='flex';styles.flexDirection='column';this.$dialogBody.css('overflow','scroll');}}}}this.$content.css(styles);var classesMap={'ui-dialog':'modal-content','ui-dialog-titlebar':'modal-header','ui-dialog-title':'modal-title','ui-dialog-titlebar-close':'close','ui-dialog-content':'modal-body','ui-dialog-buttonpane':'modal-footer'};if(dialogOptions.dialogClass){if(dialogOptions.classes===void 0)dialogOptions.classes={};if(dialogOptions.classes['ui-dialog']===void 0)dialogOptions.classes['ui-dialog']='';var dialogClass=dialogOptions.classes['ui-dialog'].split(' ');dialogClass.push(dialogOptions.dialogClass);dialogOptions.classes['ui-dialog']=dialogClass.join(' ');delete dialogOptions.dialogClass;}for(k in classesMap)this.$element.find('.'+classesMap[k]).addClass(k);var events=['beforeClose','close','create','drag','dragStart','dragStop','focus','open','resize','resizeStart','resizeStop'];for(i=0,l=events.length;i<l;i++){var event=events[i].toLowerCase();if(dialogOptions[event]===void 0||typeof dialogOptions[event]!=='function')continue;this.$element.on('dialog'+event,dialogOptions[event]);}var title;if((dialogOptions.title===null||dialogOptions.title===void 0)&&(title=this.$element.attr('title')))dialogOptions.title=title;
22for(var name in dialogOptions){if(!dialogOptions.hasOwnProperty(name)||dialogOptions[name]===void 0)continue;switch(name){case 'appendTo':Bootstrap.unsupported('option',name,dialogOptions.appendTo);break;case 'autoOpen':mappedOptions.show=dialogOptions.show=!!dialogOptions.autoOpen;break;case 'classes':if(dialogOptions.classes)for(var key in dialogOptions.classes)if(dialogOptions.classes.hasOwnProperty(key)&&classesMap[key]!==void 0){var attributes=Attributes.create().addClass(dialogOptions.classes[key]).toPlainObject();var selector='.'+classesMap[key];this.$element.find(selector).addClass(attributes['class']);}break;case 'closeOnEscape':mappedOptions.keyboard=!!dialogOptions.closeOnEscape;if(!dialogOptions.closeOnEscape&&dialogOptions.modal)mappedOptions.backdrop='static';break;case 'closeText':Bootstrap.unsupported('option',name,dialogOptions.closeText);break;case 'draggable':this.$content.draggable({handle:handler.selectors.header,drag:Bootstrap.relayEvent(this.$element,'dialogdrag'),start:Bootstrap.relayEvent(this.$element,'dialogdragstart'),end:Bootstrap.relayEvent(this.$element,'dialogdragend')}).draggable(dialogOptions.draggable?'enable':'disable');break;case 'hide':if(dialogOptions.hide===false||dialogOptions.hide===true){this.$element[dialogOptions.hide?'addClass':'removeClass']('fade');mappedOptions.animation=dialogOptions.hide;}else Bootstrap.unsupported('option',name+' (complex animation)',dialogOptions.hide);break;case 'modal':if(!dialogOptions.closeOnEscape&&dialogOptions.modal)mappedOptions.backdrop='static';else mappedOptions.backdrop=dialogOptions.modal;if(!dialogOptions.modal&&!dialogOptions.position)this.position({my:'center',of:window});break;case 'position':this.position(dialogOptions.position);break;case 'resizable':this.$content.resizable({resize:Bootstrap.relayEvent(this.$element,'dialogresize'),start:Bootstrap.relayEvent(this.$element,'dialogresizestart'),end:Bootstrap.relayEvent(this.$element,'dialogresizeend')}).resizable(dialogOptions.resizable?'enable':'disable');break;case 'show':if(dialogOptions.show===false||dialogOptions.show===true){this.$element[dialogOptions.show?'addClass':'removeClass']('fade');mappedOptions.animation=dialogOptions.show;}else Bootstrap.unsupported('option',name+' (complex animation)',dialogOptions.show);break;case 'title':this.$title.text(dialogOptions.title);break;}}mappedOptions.dialogOptions=dialogOptions;return mappedOptions;},moveToTop:function(){Bootstrap.unsupported('method','moveToTop',arguments);},option:function(){var clone={options:{}};this.super.apply(clone,arguments);$.extend(true,this.options,this.mapDialogOptions(clone.options));this.createButtons();},position:function(position){this.$element.css({bottom:'initial',overflow:'visible',right:'initial'});this.$element.position(position);},open:function(){this.show.apply(this,arguments);},widget:function(){return this.$element;}}};};Bootstrap.extendPlugin('modal',Bootstrap.Modal.Bridge);Bootstrap.Dialog.Handler.register('dialog');Bootstrap.Dialog.Handler.register('modal');$.extend(Drupal.theme,{bootstrapModalDialogButton:function(button){var attributes=Attributes.create();var icon='';var iconPosition=button.iconPosition||'beginning';iconPosition=(iconPosition==='end'&&!rtl)||(iconPosition==='beginning'&&rtl)?'after':'before';if(button.bootstrapIcon)icon=Drupal.theme('icon','bootstrap',button.icon);else{if(button.icon){var iconAttributes=Attributes.create().addClass(['ui-icon',button.icon]).set('aria-hidden','true');icon='<span'+iconAttributes+'></span>';}}var value=button.label||button.text;if(icon&&((button.showLabel!==void 0&&!button.showLabel)||(button.text!==void 0&&!button.text)))value='<span'+Attributes.create().addClass('sr-only')+'>'+value+'</span>';attributes.set('value',iconPosition==='before'?icon+value:value+icon);attributes[button.disabled?'set':'remove']('disabled','disabled');if(button.classes)attributes.addClass(Object.keys(button.classes).map(function(key){return button.classes[key];}));if(button['class'])attributes.addClass(button['class']);if(button.primary)attributes.addClass('btn-primary');return Drupal.theme('button',attributes);}});});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes,window.drupalSettings);;
23(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));window.addEventListener('dialog:beforecreate',(event)=>{const dialog=event.target;$(dialog).on('dialogButtonsChange.dialogDeprecation',(e)=>{if(!e?.originalEvent){Drupal.deprecationError({message:`jQuery event dialogButtonsChange is deprecated in 11.2.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3464202`});dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));}});});window.addEventListener('dialog:beforeclose',(event)=>{const dialog=event.target;$(dialog).off(`dialogButtonsChange.dialogDeprecation`);});}})(jQuery,Drupal,once);; 24class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);if(settings.dialogClass)Drupal.deprecationError({message:'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.'});const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false,uiDialogTitleHeadingLevel:2});};dialog.showModal=()=>{openDialog({modal:true,uiDialogTitleHeadingLevel:1});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);; 25(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);; 26(function($,Drupal,{focusable}){Drupal.behaviors.dialog={attach(context,settings){if(!document.querySelector('#drupal-modal'))document.body.insertAdjacentHTML('beforeend','<div id="drupal-modal" class="ui-front" style="display:none"></div>');if(context!==document){const dialog=context.closest('.ui-dialog-content');if(dialog){if($(dialog).dialog('option','drupalAutoButtons'))dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));setTimeout(function(){if(!dialog.contains(document.activeElement)){const autoFocusElement=dialog?.querySelector('[autofocus]');if(autoFocusElement){autoFocusElement.focus();return;}const focusableElements=focusable(dialog);if(focusableElements.length>0){focusableElements[0].focus();return;}const dialogWrapper=dialog.closest('.ui-dialog');const buttonPane=dialogWrapper?.querySelector('.ui-dialog-buttonpane');const focusableButtons=focusable(buttonPane);if(focusableButtons.length>0){focusableButtons[0].focus();return;}const closeButton=dialogWrapper?.querySelector('.ui-dialog-titlebar-close');if(closeButton){closeButton.focus();return;}dialog.focus();}},0);}}const originalClose=settings.dialog.close;settings.dialog.close=function(event,...args){originalClose.apply(settings.dialog,[event,...args]);const $element=$(event.target);const ajaxContainer=$element.data('uiDialog')?$element.data('uiDialog').opener.closest('[data-drupal-ajax-container]'):[];if(ajaxContainer.length&&(document.activeElement===document.body||$(document.activeElement).not(':visible'))){const focusableChildren=focusable(ajaxContainer[0]);if(focusableChildren.length>0)setTimeout(()=>{focusableChildren[0].focus();}
26,0);}$(event.target).remove();};},prepareDialogButtons($dialog){const buttons=[];const buttonSelectors='.form-actions input[type=submit], .form-actions a.button, .form-actions a.action-link';const buttonElements=$dialog[0].querySelectorAll(buttonSelectors);buttonElements.forEach((button)=>{button.style.display='none';buttons.push({text:button.innerHTML||button.getAttribute('value'),class:button.getAttribute('class'),'data-once':button.dataset.once,click(e){if(button.tagName==='A')button.click();else ['mousedown','mouseup','click'].forEach((event)=>button.dispatchEvent(new MouseEvent(event)));e.preventDefault();}});});return buttons;}};Drupal.AjaxCommands.prototype.openDialog=function(ajax,response,status){if(!response.selector)return false;let dialog=document.querySelector(response.selector);if(!dialog){dialog=document.createElement('div');dialog.id=response.selector.replace(/^#/,'');dialog.classList.add('ui-front');document.body.appendChild(dialog);}if(!ajax.wrapper)ajax.wrapper=dialog.id;response.command='insert';response.method='html';ajax.commands.insert(ajax,response,status);response.dialogOptions=response.dialogOptions||{};if(typeof response.dialogOptions.drupalAutoButtons==='undefined')response.dialogOptions.drupalAutoButtons=true;else if(response.dialogOptions.drupalAutoButtons==='false')response.dialogOptions.drupalAutoButtons=false;else response.dialogOptions.drupalAutoButtons=!!response.dialogOptions.drupalAutoButtons;if(!response.dialogOptions.buttons&&response.dialogOptions.drupalAutoButtons)response.dialogOptions.buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));const dialogButtonsChange=()=>{const buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));$(dialog).dialog('option','buttons',buttons);};dialog.addEventListener('dialogButtonsChange',dialogButtonsChange);dialog.addEventListener('dialog:beforeclose',(event)=>{dialog.removeEventListener('dialogButtonsChange',dialogButtonsChange);});const createdDialog=Drupal.dialog(dialog,response.dialogOptions);if(response.dialogOptions.modal)createdDialog.showModal();else createdDialog.show();dialog.parentElement?.querySelector('.ui-dialog-buttonset')?.classList.add('form-actions');};Drupal.AjaxCommands.prototype.closeDialog=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog){Drupal.dialog(dialog).close();if(!response.persist)dialog.remove();}};Drupal.AjaxCommands.prototype.setDialogOption=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog)$(dialog).dialog('option',response.optionName,response.optionValue);};window.addEventListener('dialog:aftercreate',(event)=>{const dialog=event.dialog;const cancelButton=event.target.querySelector('.dialog-cancel');const cancelClick=(e)=>{dialog.close('cancel');e.preventDefault();e.stopPropagation();};cancelButton?.removeEventListener('click',cancelClick);cancelButton?.addEventListener('click',cancelClick);});Drupal.AjaxCommands.prototype.openModalDialogWithUrl=function(ajax,response){const dialogOptions=response.dialogOptions||{};const elementSettings={progress:{type:'throbber'},dialogType:'modal',dialog:dialogOptions,url:response.url,httpMethod:'GET'};Drupal.ajax(elementSettings).execute();};})(jQuery,Drupal,window.tabbable);; 27(function($,Drupal,Bootstrap){Drupal.behaviors.dialog.ajaxCurrentButton=null;Drupal.behaviors.dialog.ajaxOriginalButton=null;var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.dialogType)for(var i=0,l=response.length;i<l;i++)if(response[i].dialogOptions){response[i].dialogType=response[i].dialogOptions.dialogType=this.dialogType;response[i].$trigger=response[i].dialogOptions.$trigger=$(this.element);}return success.apply(this,[response,status]);};var beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.dialogType){options.data['ajax_page_state[dialogType]']=this.dialogType;var id=$(this.element).parents('.js-drupal-dialog:first').attr('id');if(id)options.data['ajax_page_state[dialogId]']=id;}return beforeSerialize.apply(this,arguments);};Drupal.behaviors.dialog.ajaxUpdateButtons=function(reset){if(this.ajaxCurrentButton&&this.ajaxOriginalButton){this.ajaxCurrentButton.html(this.ajaxOriginalButton.html()||this.ajaxOriginalButton.attr('value'));this.ajaxCurrentButton.prop('disabled',this.ajaxOriginalButton.prop('disabled'));}if(reset){this.ajaxCurrentButton=null;this.ajaxOriginalButton=null;}};$(document).ajaxSend(function(){Drupal.behaviors.dialog.ajaxUpdateButtons();}).ajaxComplete(function(){Drupal.behaviors.dialog.ajaxUpdateButtons(true);});;Drupal.behaviors.dialog.prepareDialogButtons=function prepareDialogButtons($dialog){var _this=this;var buttons=[];var $buttons=$dialog.find('.form-actions').find('button, input[type=submit], a.button, .btn');$buttons.each(function(){var $originalButton=$(this).attr('tabindex',-1).css({display:'block',width:0,height:0,padding:0,border:0,overflow:'hidden'});
27buttons.push({text:Bootstrap.stripHtml($originalButton)||$originalButton.attr('value'),class:$originalButton.attr('class').replace('use-ajax-submit',''),click:function click(e){e.preventDefault();e.stopPropagation();_this.ajaxCurrentButton=$(e.target);_this.ajaxOriginalButton=$originalButton;Bootstrap.simulate($originalButton,['mousedown','mouseup','click']);},create:function(){_this.ajaxCurrentButton=$(this);_this.ajaxOriginalButton=$originalButton;_this.ajaxUpdateButtons(true);}});});return buttons;};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);; 28var $jq=jQuery.noConflict();$jq(document).ready(function(){$jq(".toggle-close-alertes").click(function(){$jq(this).closest(".region-alerts").hide();});});$jq(window).resize(function(){});; 29function MaFonctionMarquage(var1,var2,var3,var4,var5){if(var1=='menu_click')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","menu_text":"'+var2+'","menu_level":"'+var3+'","menu_type":"'+var4+'",});';if(var1=='footer_click')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","footer_text":"'+var2+'","footer_type":"'+var3+'",});';if(var1=='hp_slider')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","hp_slider_text":"'+var2+'","hp_slider_them":"'+var3+'",});';if(var1=='hp_search')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","hp_search_keyword":"'+var2+'","hp_search_them":"'+var3+'",});';if(var1=='ms_search')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","ms_keyword":"'+var2+'","ms_them":"'+var3+'","ms_filtrerpar":"'+var4+'","ms_trierpar":"'+var5+'",});';if(var1=='hp_block')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","hp_section_title":"'+var2+'","hp_block_them":"'+var3+'","hp_block_title":"'+var4+'",});';if(var1=='newsletter_click')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'",});';if(var1=='social_share')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","social_media":"'+var2+'",});';if(var1=='contact_button')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","contact_text":"'+var2+'",});';if(var1=='ms_service')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","ms_service":"'+var2+'",});';if(var1=='ms_answer')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","ms_answer":"'+var2+'",});';if(var1=='slider')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","slider_text":"'+var2+'","slider_them":"'+var3+'",});';if(var1=='newsletter_submit')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","newsletter_name":"'+var2+'",});';if(var1=='contact_submit')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","contact_type":"'+var2+'",});';if(var1=='block')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","section_title":"'+var2+'","block_them":"'+var3+'","block_title":"'+var4+'",});';if(var1=='search_click')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","saerch_result_title":"'+var2+'",});';if(var1=='telechargement')var MaFonctionMarquage='javascript:dataLayer.push({"event":"'+var1+'","nom_document":"'+var2+'","type_aplication":"'+var3+'",});';return MaFonctionMarquage;}jQuery(function(){var evenement,menu_text,menu_level,menu_type,footer_text,footer_type,hp_slider_text,hp_slider_them,hp_section_title,hp_block_title,hp_block_them,section_title,block_title,block_them,slider_text,slider_them,ms_service_title,ms_answer_title,ms_them,ms_filtrerpar,ms_trierpar;jQuery('a.site_slogan').attr('onclick',MaFonctionMarquage('menu_click','la mayenne','Secondaire','Accueil',''));jQuery('#block-sitebranding-header a').attr('onclick',MaFonctionMarquage('menu_click','lamayenne.fr','Primaire','Accueil',''));jQuery('#block-mayennedevblocdulogobis p.uncontrasted-only a').attr('onclick',MaFonctionMarquage('menu_click','Mayenne','Primaire','Accueil',''));jQuery("nav#block-navigationprincipale ul li a").each(function(){evenement='menu_click';menu_text=jQuery(this).text().replace(/"/g,'').trim();menu_level='Primaire';menu_type='Menu';jQuery(this).attr('onclick',MaFonctionMarquage(evenement,menu_text,menu_level,menu_type,''));});jQuery("button#toggle-search-header-block ").attr('onclick',MaFonctionMarquage('menu_click','Rechercher','Primaire','Recherche',''));jQuery("ul.nav.menu--les-sites-de-la-mayenne li a").each(function(){evenement='menu_click';menu_text=jQuery(this).text().replace(/"/g,'').trim();menu_level='Secondaire';menu_type='Menu';jQuery(this).attr('onclick',MaFonctionMarquage(evenement,menu_text,menu_level,menu_type,''));});jQuery("footer ul.menu--footer.nav li a").each(function(){evenement='footer_click';footer_text=jQuery(this).text().replace(/"/g,'').trim();footer_type='Link';jQuery(this).attr('onclick',MaFonctionMarquage(evenement,footer_text,footer_type,'',''));});jQuery("footer #block-mayennedevblocdinscriptionalanewsletter a.btn").attr('onclick',MaFonctionMarquage('footer_click',jQuery('footer #block-mayennedevblocdinscriptionalanewsletter a.btn').text().replace(/"/g,'').trim(),'Newsletter','',''));jQuery("footer #block-lienstetieres ul li a").each(function(){evenement='footer_click';footer_text=jQuery(this).text().replace(/"/g,'').trim();footer_type='Social';jQuery(this).attr('onclick',MaFonctionMarquage(evenement,footer_text,footer_type,'',''));});jQuery(".path-frontpage #views_slideshow_cycle_main_accueil_slider_principale-page_1 .views_slideshow_cycle_slide.views_slideshow_slide").each(function(){evenement='hp_slider';hp_slider_text=jQuery(this).find('h2').text().replace(/"/g,'').trim();hp_slider_them=jQuery(this).find('.views-field-field-type-slide > p').text().replace(/"/g,'').trim();jQuery(this).attr('onclick',MaFonctionMarquage(evenement,hp_slider_text,hp_slider_them,'',''));jQuery(this).find('h2 a').attr('onclick',MaFonctionMarquage(evenement,hp_slider_text,hp_slider_them,'',''));jQuery(this).find('.views-field-field-description a').attr('onclick',MaFonctionMarquage(evenement,hp_slider_text,hp_slider_them,'',''));jQuery(this).find('.slide-picto-lien a').attr('onclick',MaFonctionMarquage(evenement,hp_slider_text,hp_slider_them,'',''));});jQuery('#views-exposed-form-solr-page-de-recherche-aides-services-accueil-bloc').on('submit',function(){dataLayer.push({"event":"hp_search","hp_search_keyword":jQuery('#edit-requete-services-accueil-bloc').val(),"hp_search_them":jQuery("#edit-field-thematique-service-services-accueil-bloc option[value='"+jQuery('#edit-field-thematique-service-services-accueil-bloc').val()+"']").text().trim(),"hp_search_nbresult":''});});
29jQuery(".path-frontpage .region-content section:not(.col-sm-12.col-xs-12)").each(function(){hp_section_title=jQuery(this).find('.view-header h2').text().replace(/"/g,'').trim();jQuery(this).find('.col').each(function(){evenement='hp_block';hp_block_title=jQuery(this).find('h3 > a').text().replace(/"/g,'').trim();hp_block_them=jQuery(this).find('.views-field-field-type-editorial > p').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));});jQuery(this).find('.views-row').each(function(){evenement='hp_block';hp_block_title=jQuery(this).find('.views-field-title h3 a').text().replace(/"/g,'').trim();hp_block_them=jQuery(this).find('.views-field-field-type-editorial p').text().replace(/"/g,'').trim();if(hp_block_them=='')hp_block_them=jQuery(this).find(' p.field-type-editorial-custom').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));});jQuery(this).find('.view-footer a.special-link').attr('onclick',MaFonctionMarquage('hp_block',hp_section_title,'lamayenne.fr',jQuery(this).find('.view-footer a.special-link').text().trim(),''));});jQuery("body.path-frontpage .px-0.block-title-dotted").each(function(){hp_section_title=jQuery(this).find('h2').text().replace(/"/g,'').trim();jQuery(this).find('.col').each(function(){evenement='hp_block';hp_block_title=jQuery(this).find('.views-field-title h3 a').text().replace(/"/g,'').trim();hp_block_them=jQuery(this).find('.views-field-field-type-editorial p').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));});jQuery(this).find('.views-row').each(function(){evenement='hp_block';hp_block_title=jQuery(this).find('.views-field-title h3 a').text().replace(/"/g,'').trim();hp_block_them=jQuery(this).find('.views-field-field-type-editorial p').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,hp_section_title,hp_block_them,hp_block_title,''));});});jQuery(".page-node-type-page-entree article .px-0.block-title-dotted ").each(function(){section_title=jQuery(this).find('h2').text().replace(/"/g,'').trim();jQuery(this).find(' ul li.col').each(function(){evenement='block';block_title=jQuery(this).find('.field--name-field-display-title h3 a').text().replace(/"/g,'').trim();block_them=jQuery(this).find('.view-page-editoriale-type-editorial .views-field-nothing span').text().replace(/"/g,'').trim();jQuery(this).find('.field--name-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_t
29itle,''));jQuery(this).find('.field--name-field-display-title a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));});jQuery(this).find('.view-footer a.special-link').attr('onclick',MaFonctionMarquage('block',section_title,'lamayenne.fr',jQuery(this).find('.view-footer a.special-link').text().trim(),''));jQuery(this).find('div.special-link a').each(function(){jQuery(this).attr('onclick',MaFonctionMarquage('block',section_title,'lamayenne.fr',jQuery(this).text().trim(),''));});});jQuery('.grid.views-view-grid ul.row li.col.col-xs-12').each(function(){evenement='block';section_title=jQuery('.field--name-field-display-title h1').text().replace(/"/g,'').trim();block_title=jQuery(this).find('.field--name-field-display-title h3 a').text().replace(/"/g,'').trim();block_them=jQuery(this).find('.view-page-editoriale-type-editorial .views-field-nothing span').text().replace(/"/g,'').trim();jQuery(this).find('.field--name-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_t
29itle,''));jQuery(this).find('.field--name-field-display-title a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));section_title=jQuery('.field--name-field-display-title h1').text().replace(/"/g,'').trim();block_title=jQuery(this).find('.views-field.views-field-title a').text().replace(/"/g,'').trim();block_them=jQuery(this).find('.views-field-field-type-editorial .field-content a').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));jQuery(this).find('.views-field.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));jQuery(this).find('.views-field-field-type-editorial .field-content a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));});jQuery("body .px-0.block-title-dotted").each(function(){section_title=jQuery(this).find('h2').text().replace(/"/g,'').trim();jQuery(this).find('.col').each(function(){evenement='block';block_title=jQuery(this).find('.views-field-title h3 a').text().replace(/"/g,'').trim();block_them=jQuery(this).find('.views-field-field-type-editorial p').text().trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_t
29itle,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));evenement='block';block_title=jQuery(this).find('.field--name-field-display-title h3 a').text().replace(/"/g,'').trim();block_them=jQuery(this).find('.view-page-editoriale-type-editorial span').text().trim();jQuery(this).find('.field--name-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));jQuery(this).find('.field--name-field-display-title h3 a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));});jQuery(this).find('.views-row').each(function(){evenement='block';block_title=jQuery(this).find('.views-field-title h3 a').text().replace(/"/g,'').trim();block_them=jQuery(this).find('.views-field-field-type-editorial p').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-field-visuel a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_t
29itle,''));});jQuery(this).find('.col-xs-12 .field--name-field-sport-en-direct .views-row').each(function(){evenement='block';block_them='Le direct';block_title=jQuery(this).find('.views-field-title a').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,section_title,block_them,block_title,''));});jQuery(this).find('.view-footer a.special-link').attr('onclick',MaFonctionMarquage('block',section_title,'lamayenne.fr',jQuery(this).find('.view-footer a.special-link').text().replace(/"/g,'').trim(),''));jQuery(this).find('div.special-link a').each(function(){jQuery(this).attr('onclick',MaFonctionMarquage('block',section_title,'lamayenne.fr',jQuery(this).text().trim(),''));});});jQuery('#block-magazine-slideshow-block').find('.views_slideshow_slide').each(function(){evenement='block';section_title='Maymag';jQuery(this).find('article').each(function(){block_title=jQuery(this).find('.field--name-field-lien-milibris').text().replace(/"/g,'').trim();jQuery(this).find('a').each(function(){jQuery(this).attr('onclick',MaFonctionMarquage(evenement,section_title,'',block_title,''));});});});jQuery('section:not(.block-magazine-slideshow-block) .views_slideshow_slide:not([id*="page_enteee_sport_en_direct-block"])').each(function(){evenement='slider';slider_text=jQuery(this).find('h2').text().replace(/"/g,'').trim();slider_them=jQuery(this).find('.views-field-field-type-slide > p').text().replace(/"/g,'').trim();jQuery(this).find('h2 a').attr('onclick',MaFonctionMarquage(evenement,slider_text,slider_them,'',''));jQuery(this).find('.views-field-field-description a').attr('onclick',MaFonctionMarquage(evenement,slider_text,slider_them,'',''));jQuery(this).find('.slide-picto-lien a').attr('onclick',MaFonctionMarquage(evenement,slider_text,slider_them,'',''));});jQuery('.region-content section[id^=block-mayennedevblocdabonnement] a.btn').attr('onclick',MaFonctionMarquage('newsletter_click','','','',''));jQuery('.a2a_mini_services a.a2a_i').each(function(){jQuery(this).attr('onclick',MaFonctionMarquage('social_share',jQuery(this).text().replace(/"/g,'').trim(),'','',''));});jQuery('.article-entete-ombre .a2a_kit ul li a.a2a_button_facebook').attr('onclick',MaFonctionMarquage('social_share','Facebook','','',''));jQuery('.article-entete-ombre .a2a_kit ul li a.a2a_button_twitter').attr('onclick',MaFonctionMarquage('social_share','Twitter','','',''));jQuery('.article-entete-ombre .a2a_kit ul li a.a2a_dd').attr('onclick',MaFonctionMarquage('social_share','Partager','','',''));jQuery('.field--type-link a[href="/form/formulaire-de-contact"]').attr('onclick',MaFonctionMarquage('contact_button','Contactez-nous','','',''));jQuery('article.page-editoriale.node-bg-noir .px-0.w-100 a').each(function(){evenement='slider';slider_them=jQuery('article.page-editoriale.node-bg-noir .px-0.w-100').find('.view-page-editoriale-type-editorial .views-field-nothing span').text().replace(/"/g,'').trim();slider_text=jQuery('article.page-editoriale.node-bg-noir .px-0.w-100').find('.field--name-field-display-title h2 a').text().replace(/"/g,'').trim();jQuery(this).attr('onclick',MaFonctionMarquage(evenement,slider_text,slider_them,'',''));});jQuery(".view-services-bloc-les-services-populaires .view-content ul li a").each(function(){evenement='ms_service';ms_service_title=jQuery(this).text().replace(/"/g,'').trim();jQuery(this).attr('onclick',MaFonctionMarquage(evenement,ms_service_title,'','',''));});jQuery(".view-services-bloc-les-services-populaires").find('.view-footer a.special-link').attr('onclick',MaFonctionMarquage('ms_service',jQuery('.view-services-bloc-les-services-populaires').find('.view-footer a.special-link').text().replace(/"/g,'').trim(),'','',''));jQuery('#block-views-block-accueil-que-pouvons-nous-faire-pour-vous-block-1 ul.view-content.pl-0 li.views-row').each(function(){jQuery(this).find('span.btn a').attr('onclick',MaFonctionMarquage('ms_service',jQuery(this).find('span.btn a').text().replace(/"/g,'').trim(),'','',''));});jQuery("li.question-reponse").each(function(){evenement='ms_answer';ms_answer_title=jQuery(this).find('.views-field-title').text().replace(/"/g,'').trim();jQuery(this).find('.views-field-title a').attr('onclick',MaFonctionMarquage(evenement,ms_answer_title,'','',''));});jQuery('.path-may-services #views-exposed-form-solr-page-de-recherche-aides-services-jumbotron').submit(function(e){var them_id=jQuery('#edit-field-thematique-service-services-jumbotron').val();ms_them=jQuery("#edit-field-thematique-service-services-jumbotron option[value='"+them_id+"']").text().replace(/"/g,'').trim();ms_filtrerpar=jQuery("#edit-field-type-service option[value='"+jQuery('#edit-field-type-service').val()+"']").text().replace(/"/g,'').trim();ms_trierpar=jQuery("#edit-sort-by option[value='"+jQuery('#edit-sort-by').val()+"']").text().replace(/"/g,'').trim();dataLayer.push({"event":"ms_search","ms_keyword":jQuery('#edit-requete-services-jumbotron').val(),"ms_them":ms_them,"ms_result":"","ms_f
29iltrerpar":ms_filtrerpar,"ms_trierpar":ms_trierpar});});jQuery('.path-may-services #views-exposed-form-solr-page-de-recherche-aides-services-1-page').submit(function(e){var them_id=jQuery('#edit-field-thematique-service-services-jumbotron').val();ms_them=jQuery("#edit-field-thematique-service-services-jumbotron option[value='"+them_id+"']").text().replace(/"/g,'').trim();ms_filtrerpar=jQuery("#edit-field-type-service option[value='"+jQuery('#edit-field-type-service').val()+"']").text().replace(/"/g,'').trim();ms_trierpar=jQuery("#edit-sort-by option[value='"+jQuery('#edit-sort-by').val()+"']").text().replace(/"/g,'').trim();dataLayer.push({"event":"ms_search","ms_keyword":jQuery('#edit-requete-services-jumbotron').val(),"ms_them":ms_them,"ms_result":"","ms_filtrerpar":ms_filtrerpar,"ms_trierpar":ms_trierpar});});jQuery('.item-list ul li a').each(function(){var url=location.href;if(url.indexOf('recherche')!=-1)jQuery(this).attr('onclick',MaFonctionMarquage('search_click',jQuery(this).text().replace(/"/g,'').trim(),'','',''));});jQuery('form#sendinblue-form-subscribe').submit(function(e){dataLayer.push({"event":'newsletter_submit',"newsletter_name":"Newsletter lamayenne.fr"});});jQuery("form#webform-submission-formulaire-de-contact-add-form").submit(function(){dataLayer.push({"event":"contact_submit","contact_type":jQuery(this).find('#edit-thematique-de-la-demande option:selected').text().replace(/"/g,'').trim()});});jQuery('.field--name-field-fichier.field--type-file').each(function(){jQuery(this).find('a').each(function(){var href=jQuery(this).attr('href');if(href.indexOf('.pdf')!=-1||href.indexOf('.xls')!=-1||href.indexOf('.xlsx')!=-1){evenement='telechargement';var type_aplication=jQuery(this).attr('type');var nom_doc=jQuery(this).text().replace(/"/g,'').trim();jQuery(this).attr('onclick',MaFonctionMarquage(evenement,nom_doc,type_aplication,'',''));}});});jQuery('document').ready(function(){var url=location.href;if(url.indexOf('/recherche')!=-1&&url.replace(/\//g,' ').split(" ").length-3==1){var debut=url.indexOf('requete=');var fin=url.indexOf('&');var search_keyword=url.substring(debut+8,fin);var evenement='search_submit';var search_nb_result=jQuery('.px-1 h2').text().match(/(\d+)/g)[0];var search_filtrerpar=jQuery("#views-exposed-form-solr-page-de-recherche-generale-1-page #edit-type option[value='"+jQuery('#views-exposed-form-solr-page-de-recherche-generale-1-page #edit-type').val()+"']").text().replace(/"/g,'').trim();var search_trierpar=jQuery("#views-exposed-form-solr-page-de-recherche-generale-1-page #edit-sort-by option[value='"+jQuery('#edit-sort-by').val()+"']").text().replace(/"/g,'').trim();return dataLayer.push({"event":"search_submit","search_keyword":search_keyword,"search_nb_result":search_nb_result,"search_filtrerpar":search_filtrerpar,"search_trierpar":search_trierpar});}});});; 30window.addEventListener('load',()=>{if(!document.querySelector('.keen-slider'))return;document.querySelectorAll('.keen-slider').forEach((slider)=>{new KeenSlider('.'+slider.parentElement.classList.value.replaceAll(' ','.')+' .keen-slider',{loop:true,created:()=>{},slides:{perView:3,spacing:20},breakpoints:{'(max-width: 640px)':{slides:{perView:2,spacing:20}},'(max-width: 480px)':{slides:{perView:1,spacing:20}}}},[navigation]);console.log();});});function navigation(slider){let wrapper,dots,arrowLeft,arrowRight;function markup(remove){wrapperMarkup(remove);dotMarkup(remove);arrowMarkup(remove);}function removeElement(elt){elt.parentNode.removeChild(elt);}function createDiv(className){const div=document.createElement("div");const classNames=className.split(" ");classNames.forEach((name)=>div.classList.add(name));return div;}function arrowMarkup(remove){if(remove){removeElement(arrowLeft);removeElement(arrowRight);return;}arrowLeft=createDiv("arrow arrow--left");arrowLeft.addEventListener("click",()=>slider.prev());arrowRight=createDiv("arrow arrow--right");arrowRight.addEventListener("click",()=>slider.next());wrapper.appendChild(arrowLeft);wrapper.appendChild(arrowRight);}function wrapperMarkup(remove){if(remove){const parent=wrapper.parentNode;while(wrapper.firstChild)parent.insertBefore(wrapper.firstChild,wrapper);removeElement(wrapper);return;}wrapper=createDiv("navigation-wrapper");slider.container.parentNode.getElementsByClassName('view-header')[0].insertAdjacentElement('afterend',wrapper);wrapper.appendChild(slider.container);}function dotMarkup(remove){if(remove){removeElement(dots);return;}dots=createDiv("dots");
30slider.track.details.slides.forEach((_e,idx)=>{const dot=createDiv("dot");dot.addEventListener("click",()=>slider.moveToIdx(idx));dots.appendChild(dot);});wrapper.appendChild(dots);}function updateClasses(){const slide=slider.track.details.rel;slide===0?arrowLeft.classList.add("arrow--disabled"):arrowLeft.classList.remove("arrow--disabled");slide===slider.track.details.slides.length-1?arrowRight.classList.add("arrow--disabled"):arrowRight.classList.remove("arrow--disabled");Array.from(dots.children).forEach(function(dot,idx){idx===slide?dot.classList.add("dot--active"):dot.classList.remove("dot--active");});}slider.on("created",()=>{markup();updateClasses();});slider.on("optionsChanged",()=>{console.log(2);markup(true);markup();updateClasses();});slider.on("slideChanged",()=>{updateClasses();});slider.on("destroyed",()=>{markup(true);});}; 31!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).KeenSlider=t();}(this,(function(){"use strict";var n=function(){return n=Object.assign||function(n){for(var t,i=1,e=arguments.length;i<e;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n;},n.apply(this,arguments);};function t(n,t,i){if(i||2===arguments.length)for(var e,r=0,a=t.length;r<a;r++)!e&&r in t||(e||(e=Array.prototype.slice.call(t,0,r)),e[r]=t[r]);return n.concat(e||Array.prototype.slice.call(t));}function i(n){return Array.prototype.slice.call(n);}function e(n,t){var i=Math.floor(n);return i===t||i+1===t?n:t;}function r(){return Date.now();}function a(n,t,i){if(t="data-keen-slider-"+t,null===i)return n.removeAttribute(t);n.setAttribute(t,i||"");}function o(n,t){return t=t||document,"function"==typeof n&&(n=n(t)),Array.isArray(n)?n:"string"==typeof n?i(t.querySelectorAll(n)):n instanceof HTMLElement?[n]:n instanceof NodeList?i(n):[];}function u(n){n.raw&&(n=n.raw),n.cancelable&&!n.defaultPrevented&&n.preventDefault();}function s(n){n.raw&&(n=n.raw),n.stopPropagation&&n.stopPropagation();}function c(){var n=[];return {add:function(t,i,e,r){t.addListener?t.addListener(e):t.addEventListener(i,e,r),n.push([t,i,e,r]);},input:function(n,t,i,e){this.add(n,t,function(n){return function(t){t.nativeEvent&&(t=t.nativeEvent);var i=t.changedTouches||[],e=t.targetTouches||[],r=t.detail&&t.detail.x?t.detail:null;return n({id:r?r.identifier?r.identifier:"i":e[0]?e[0]?e[0].identifier:"e":"d",idChanged:r?r.identifier?r.identifier:"i":i[0]?i[0]?i[0].identifier:"e":"d",raw:t,x:r&&r.x?r.x:e[0]?e[0].screenX:r?r.x:t.pageX,y:r&&r.y?r.y:e[0]?e[0].screenY:r?r.y:t.pageY});};}(i),e);},purge:function(){n.forEach((function(n){n[0].removeListener?n[0].removeListener(n[2]):n[0].removeEventListener(n[1],n[2],n[3]);})),n=[];}};}function d(n,t,i){return Math.min(Math.max(n,t),i);}function l(n){return (n>0?1:0)-(n<0?1:0)||+n;}function f(n){var t=n.getBoundingClientRect();return {height:e(t.height,n.offsetHeight),width:e(t.width,n.offsetWidth)};}function p(n,t,i,e){var r=n&&n[t];return null==r?i:e&&"function"==typeof r?r():r;}function v(n){return Math.round(1e6*n)/1e6;}function h(n){var t,i,e,r,a,o;function u(t){o||(o=t),s(!0);var a=t-o;a>e&&(a=e);var l=r[i];if(l[3]<a)return i++,u(t);var f=l[2],p=l[4],v=l[0],h=l[1]*(0,l[5])(0===p?1:(a-f)/p);if(h&&n.track.to(v+h),a<e)return d();o=null,s(!1),c(null),n.emit("animationEnded");}function s(n){t.active=n;}function c(n){t.targetIdx=n;}function d(){var n;n=u,a=window.requestAnimationFrame(n);}function l(){var t;t=a,window.cancelAnimationFrame(t),s(!1),c(null),o&&n.emit("animationStopped"),o=null;}return t={active:!1,start:function(t){if(l(),n.track.details){var a=0,o=n.track.details.position;i=0,e=0,r=t.map((function(n){var t,i=Number(o),r=null!==(t=n.earlyExit)&&void 0!==t?t:n.duration,u=n.easing,s=n.distance*u(r/n.duration)||0;o+=s;var c=e;return e+=r,a+=s,[i,n.distance,c,e,n.duration,u];})),c(n.track.distToIdx(a)),d(),n.emit("animationStarted");}},stop:l,targetIdx:null};}function m(n){var i,e,a,o,u,s,c,f,h,m,g,b,x,y,k=1/0,w=[],M=null,T=0;function C(n){_(T+n);}function E(n){var t=z(T+n).abs;return D(t)?t:null;}function z(n){var i=Math.floor(Math.abs(v(n/e))),r=v((n%e+e)%e);r===e&&(r=0);var a=l(n),o=c.indexOf(t([],c,!0).reduce((function(n,t){return Math.abs(t-r)<Math.abs(n-r)?t:n;}))),u=o;return a<0&&i++,o===s&&(u=0,i+=a>0?1:-1),{abs:u+i*s*a,origin:o,rel:u};}function I(n,t,i){var e;if(t||!S())return A(n,i);if(!D(n))return null;var r=z(null!=i?i:T),a=r.abs,o=n-r.rel,u=a+o;e=A(u);var c=A(u-s*l(o));return (null!==c&&Math.abs(c)<Math.abs(e)||null===e)&&(e=c),v(e);}function A(n,t){if(null==t&&(t=v(T)),!D(n)||null===n)return null;n=Math.round(n);var i=z(t),r=i.abs,a=i.rel,o=i.origin,u=O(n),d=(t%e+e)%e,l=c[o],f=Math.floor((n-(r-a))/s)*e;return v(l-d-l+c[u]+f+(o===s?e:0));}function D(n){return L(n)===n;}function L(n){return d(n,h,m);}function S(){return o.loop;}function O(n){return (n%s+s)%s;}function _(t){var i;i=t-T,w.push({distance:i,timestamp:r()}),w.length>6&&(w=w.slice(-6)),T=v(t);var e=H().abs;if(e!==M){var a=null!==M;M=e,a&&n.emit("slideChanged");}}function H(t){var r=t?null:function(){if(s){var n=S(),t=n?(T%e+e)%e:T,i=(n?T%e:T)-u[0][2],r=0-(i<0&&n?e-Math.abs(i):i),c=0,d=z(T),f=d.abs,p=d.rel,v=u[p][2],k=u.map((function(t,i){var a=r+c;(a<0-t[0]||a>1)&&(a+=(Math.abs(a)>e-1&&n?e:0)*l(-a));var u=i-p,d=l(u),h=u+f;n&&(-1===d&&a>v&&(h+=s),1===d&&a<v&&(h-=s),null!==g&&h<g&&(a+=e),null!==b&&h>b&&(a-=e));var m=a+t[0]+t[1],x=Math.max(a>=0&&m<=1?1:m<0||a>1?0:a<0?Math.min(1,(t[0]+a)/t[0]):(1-a)/t[0],0);return c+=t[0]+t[1],{abs:h,distance:o.rtl?-1*a+1-t[0]:a,portion:x,size:t[0]};}));return f=L(f),p=O(f),{abs:L(f),length:a,max:y,maxIdx:m,min:x,minIdx:h,position:T,progress:n?t/e:T/a,rel:p,slides:k,slidesLength:e};}}();return i.details=r,n.emit("detailsChanged"),r;}return i={absToRel:O,add:C,details:null,distToIdx:E,idxToDist:I,init:function(t){if(function(){if(o=n.options,u=(o.trackConfig||[]).map((function(n){return [p(n,"size",1),p(n,"spacing",0),p(n,"origin",0)];})),s=u.length){e=v(u.reduce((function(n,t){return n+t[0]+t[1];}),0));var t,i=s-1;a=v(e+u[0][2]-u[i][0]-u[i][2]-u[i][1]),c=u.reduce((function(n,i){if
31(!n)return [0];var e=u[n.length-1],r=n[n.length-1]+(e[0]+e[2])+e[1];return r-=i[2],n[n.length-1]>r&&(r=n[n.length-1]),r=v(r),n.push(r),(!t||t<r)&&(f=n.length-1),t=r,n;}),null),0===a&&(f=0),c.push(v(e));}}(),!s)return H(!0);var i;!function(){var t=n.options.range,i=n.options.loop;g=h=i?p(i,"min",-1/0):0,b=m=i?p(i,"max",k):f;var e=p(t,"min",null),r=p(t,"max",null);null!==e&&(h=e),null!==r&&(m=r),x=h===-1/0?h:n.track.idxToDist(h||0,!0,0),y=m===k?m:I(m,!0,0),null===r&&(b=m),p(t,"align",!1)&&m!==k&&0===u[O(m)][2]&&(y-=1-u[O(m)][0],m=E(y-T)),x=v(x),y=v(y);}(),i=t,Number(i)===i?C(A(L(t))):H();},to:_,velocity:function(){var n=r(),t=w.reduce((function(t,i){var e=i.distance,r=i.timestamp;return n-r>200||(l(e)!==l(t.distance)&&t.distance&&(t={distance:0,lastTimestamp:0,time:0}),t.time&&(t.distance+=e),t.lastTimestamp&&(t.time+=r-t.lastTimestamp),t.lastTimestamp=r),t;}),{distance:0,lastTimestamp:0,time:0});return t.distance/t.time||0;}};}function g(n){var t,i,e,r,a,o,u,s;function c(n){return 2*n;}function f(n){return d(n,u,s);}function p(n){return 1-Math.pow(1-n,3);}function v(){return e?n.track.velocity():0;}function h(){b();var t="free-snap"===n.options.mode,i=n.track,e=v();r=l(e);var u=n.track.details,s=[];if(e||!t){var d=m(e),h=d.dist,g=d.dur;if(g=c(g),h*=r,t){var x=i.idxToDist(i.distToIdx(h),!0);x&&(h=x);}s.push({distance:h,duration:g,easing:p});var y=u.position,k=y+h;if(k<a||k>o){var w=k<a?a-y:o-y,M=0,T=e;if(l(w)===r){var C=Math.min(Math.abs(w)/Math.abs(h),1),E=function(n){return 1-Math.pow(1-n,1/3);}(C)*g;s[0].earlyExit=E,T=e*(1-C);}else s[0].earlyExit=0,M+=w;var z=m(T,100),I=z.dist*r;n.options.rubberband&&(s.push({distance:I,duration:c(z.dur),easing:p}),s.push({distance:-I+M,duration:500,easing:p}));}n.animator.start(s);}else n.moveToIdx(f(u.abs),!0,{duration:500,easing:function(n){return 1+--n*n*n*n*n;}});}function m(n,t){void 0===t&&(t=1e3);var i=147e-9+(n=Math.abs(n))/t;return {dist:Math.pow(n,2)/i,dur:n/i};}function g(){var t=n.track.details;t&&(a=t.min,o=t.max,u=t.minIdx,s=t.maxIdx);}function b(){n.animator.stop();}n.on("updated",g),n.on("optionsChanged",g),n.on("created",g),n.on("dragStarted",(function(){e=!1,b(),t=i=n.track.details.abs;})),n.on("dragChecked",(function(){e=!0;})),n.on("dragEnded",(function(){var e=n.options.mode;"snap"===e&&function(){var e=n.track,r=n.track.details,u=r.position,s=l(v());(u>o||u<a)&&(s=0);var c=t+s;0===r.slides[e.absToRel(c)].portion&&(c-=s),t!==i&&(c=i),l(e.idxToDist(c,!0))!==s&&(c+=s),c=f(c);var d=e.idxToDist(c,!0);n.animator.start([{distance:d,duration:500,easing:function(n){return 1+--n*n*n*n*n;}}]);}(),"free"!==e&&"free-snap"!==e||h();})),n.on("dragged",(function(){i=n.track.details.abs;}));}function b(n){var t,i,e,r,a,f,p,v,h,m,g,b,x,y,k,w,M,T,C=c();function E(t){if(f&&v===t.id){var o=D(t);if(h){if(!A(t))return I(t);m=o,h=!1,n.emit("dragChecked");}if(w)return m=o;u(t);var c=function(t){if(M===-1/0&&T===1/0)return t;var e=n.track.details,o=e.length,u=e.position,s=d(t,M-u,T-u);if(0===o)return 0;if(!n.options.rubberband)return s;if(u<=T&&u>=M)return t;if(u<M&&i>0||u>T&&i<0)return t;var c=(u<M?u-M:u-T)/o,l=r*o,f=Math.abs(c*l),p=Math.max(0,1-f/a*2);return p*p*t;}(p(m-o)/r*e);i=l(c);var x=n.track.details.position;(x>M&&x<T||x===M&&i>0||x===T&&i<0)&&s(t),g+=c,!b&&Math.abs(g*r)>5&&(b=!0),n.track.add(c),m=o,n.emit("dragged");}}function z(t){!f&&n.track.details&&n.track.details.length&&(g=0,f=!0,b=!1,h=!0,v=t.id,A(t),m=D(t),n.emit("dragStarted"));}function I(t){f&&v===t.idChanged&&(f=!1,n.emit("dragEnded"));}function A(n){var t=L(),i=t?n.y:n.x,e=t?n.x:n.y,r=void 0!==x&&void 0!==y&&Math.abs(y-e)<=Math.abs(x-i);return x=i,y=e,r;}function D(n){return L()?n.y:n.x;}function L(){return n.options.vertical;}function S(){r=n.size,a=L()?window.innerHeight:window.innerWidth;var t=n.track.details;t&&(M=t.min,T=t.max);}function O(n){b&&(s(n),u(n));}function _(){if(C.purge(),n.options.drag&&!n.options.disabled){var i;i=n.options.dragSpeed||1,p="function"==typeof i?i:function(n){return n*i;},e=n.options.rtl?-1:1,S(),t=n.container,function(){var n="data-keen-slider-clickable";o("[".concat(n,"]:not([").concat(n,"=false])"),t).map((function(n){C.add(n,"dragstart",s),C.add(n,"mousedown",s),C.add(n,"touchstart",s);}));}(),C.add(t,"dragstart",(function(n){u(n);})),C.add(t,"click",O,{capture:!0}
31),C.input(t,"ksDragStart",z),C.input(t,"ksDrag",E),C.input(t,"ksDragEnd",I),C.input(t,"mousedown",z),C.input(t,"mousemove",E),C.input(t,"mouseleave",I),C.input(t,"mouseup",I),C.input(t,"touchstart",z,{passive:!0}),C.input(t,"touchmove",E,{passive:!1}),C.input(t,"touchend",I),C.input(t,"touchcancel",I),C.add(window,"wheel",(function(n){f&&u(n);}));var r="data-keen-slider-scrollable";o("[".concat(r,"]:not([").concat(r,"=false])"),n.container).map((function(n){return function(n){var t;C.input(n,"touchstart",(function(n){t=D(n),w=!0,k=!0;}),{passive:!0}),C.input(n,"touchmove",(function(i){var e=L(),r=e?n.scrollHeight-n.clientHeight:n.scrollWidth-n.clientWidth,a=t-D(i),o=e?n.scrollTop:n.scrollLeft,s=e&&"scroll"===n.style.overflowY||!e&&"scroll"===n.style.overflowX;if(t=D(i),(a<0&&o>0||a>0&&o<r)&&k&&s)return w=!0;k=!1,u(i),w=!1;})),C.input(n,"touchend",(function(){w=!1;}));}(n);}));}}n.on("updated",S),n.on("optionsChanged",_),n.on("created",_),n.on("destroyed",C.purge);}function x(n){var t,i,e=null;function r(t,i,e){n.animator.active?o(t,i,e):requestAnimationFrame((function(){return o(t,i,e);}));}function a(){r(!1,!1,i);}function o(i,r,a){var o=0,u=n.size,d=n.track.details;if(d&&t){var l=d.slides;t.forEach((function(n,t){if(i)!e&&r&&s(n,null,a),c(n,null,a);else{if(!l[t])return;var d=l[t].size*u;!e&&r&&s(n,d,a),c(n,l[t].distance*u-o,a),o+=d;}}));}}function u(t){return "performance"===n.options.renderMode?Math.round(t):t;}function s(n,t,i){var e=i?"height":"width";null!==t&&(t=u(t)+"px"),n.style["min-"+e]=t,n.style["max-"+e]=t;}function c(n,t,i){if(null!==t){t=u(t);var e=i?t:0;t="translate3d(".concat(i?0:t,"px, ").concat(e,"px, 0)");}n.style.transform=t,n.style["-webkit-transform"]=t;}function d(){t&&(o(!0,!0,i),t=null),n.on("detailsChanged",a,!0);}function l(){r(!1,!0,i);}function f(){d(),i=n.options.vertical,n.options.disabled||"custom"===n.options.renderMode||(e="auto"===p(n.options.slides,"perView",null),n.on("detailsChanged",a),(t=n.slides).length&&l());}n.on("created",f),n.on("optionsChanged",f),n.on("beforeOptionsChanged",(function(){d();})),n.on("updated",l),n.on("destroyed",d);}function y(t,i){return function(e){var r,u,s,d,l,v,h=c();function m(n){var t;a(e.container,"reverse","rtl"!==(t=e.container,window.getComputedStyle(t,null).getPropertyValue("direction"))||n?null:""),a(e.container,"v",e.options.vertical&&!n?"":null),a(e.container,"disabled",e.options.disabled&&!n?"":null);}function g(){b()&&M();}function b(){var t=null;if(d.forEach((function(n){n.matches&&(t=n.__media);})),t===r)return !1;r||e.emit("beforeOptionsChanged"),r=t;var i=t?s.breakpoints[t]:s;return e.options=n(n({},s),i),m(),I(),A(),C(),!0;}function x(n){var t=f(n);return (e.options.vertical?t.height:t.width)/e.size||1;}function y(){return e.options.trackConfig.length;}function k(t){for(var a in r=!1,s=n(n({},i),t),h.purge(),u=e.size,d=[],s.breakpoints||[]){var o=window.matchMedia(a);o.__media=a,d.push(o),h.add(o,"change",g);}h.add(window,"orientationchange",z),h.add(window,"resize",E),b();}function w(n){e.animator.stop();var t=e.track.details;e.track.init(null!=n?n:t?t.abs:0);}function M(n){w(n),e.emit("optionsChanged");}function T(n,t){if(n)return k(n),void M(t);I(),A();var i=y();C(),y()!==i?M(t):w(t),e.emit("updated");}function C(){var n=e.options.slides;if("function"==typeof n)return e.options.trackConfig=n(e.size,e.slides);for(var t=e.slides,i=t.length,r="number"==typeof n?n:p(n,"number",i,!0),a=[],o=p(n,"perView",1,!0),u=p(n,"spacing",0,!0)/e.size||0,s="auto"===o?u:u/o,c=p(n,"origin","auto"),d=0,l=0;l<r;l++){var f="auto"===o?x(t[l]):1/o-u+s,v="center"===c?.5-f/2:"auto"===c?0:c;a.push({origin:v,size:f,spacing:u}),d+=f;}if(d+=u*(r-1),"auto"===c&&!e.options.loop&&1!==o){var h=0;a.map((function(n){var t=d-h;return h+=n.size+u,t>=1||(n.origin=1-t-(d>1?0:1-d)),n;}));}e.options.trackConfig=a;}function E(){I();var n=e.size;e.options.disabled||n===u||(u=n,T());}function z(){E(),setTimeout(E,500),setTimeout(E,2e3);}function I(){var n=f(e.container);e.size=(e.options.vertical?n.height:n.width)||1;}function A(){e.slides=o(e.options.selector,e.container);}e.container=(v=o(t,l||document)).length?v[0]:null,e.destroy=function(){h.purge(),e.emit("destroyed"),m(!0);},e.prev=function(){e.moveToIdx(e.track.details.abs-1,!0);},e.next=function(){e.moveToIdx(e.track.details.abs+1,!0);},e.update=T,k(e.options);};}return function(n,i,e){try{return function(n,t){var i,e={};
31return i={emit:function(n){e[n]&&e[n].forEach((function(n){n(i);}));var t=i.options&&i.options[n];t&&t(i);},moveToIdx:function(n,t,e){var r=i.track.idxToDist(n,t);if(r){var a=i.options.defaultAnimation;i.animator.start([{distance:r,duration:p(e||a,"duration",500),easing:p(e||a,"easing",(function(n){return 1+--n*n*n*n*n;}))}]);}},on:function(n,t,i){void 0===i&&(i=!1),e[n]||(e[n]=[]);var r=e[n].indexOf(t);r>-1?i&&delete e[n][r]:i||e[n].push(t);},options:n},function(){if(i.track=m(i),i.animator=h(i),t)for(var n=0,e=t;n<e.length;n++)(0,e[n])(i);i.track.init(i.options.initial||0),i.emit("created");}(),i;}(i,t([y(n,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),x,b,g],e||[],!0));}catch(n){console.error(n);}};}));; 32window.addEventListener('load',()=>{const $navigationBars=document.querySelectorAll('.sticky, .fixed');const $anchorNavigationBar=$navigationBars[$navigationBars.length-1];if($navigationBars.length===0)return;const $drupalMenu=document.getElementById('toolbar-bar');const $mainMenu=document.getElementsByTagName('header')[0];const $panels=document.querySelectorAll('.panel:nth-child(n+3)');let oldScrollY=-1;let oldWidth=-1;let $anchors=document.querySelectorAll('.sticky a[href^="#"]');for(let $anchor of $anchors){const $destination=document.getElementById($anchor.getAttribute('href').slice(1));if(!$destination)continue;$destination.source=$anchor;$anchor.destination=$destination;$anchor.addEventListener('click',anchorClick);}['scroll','resize'].forEach((eventName)=>{window.addEventListener(eventName,stickNavigation);});stickNavigation();function anchorClick(event){event.preventDefault();window.scrollTo(0,event.target.destination.getBoundingClientRect().top+window.scrollY-$mainMenu.getBoundingClientRect().bottom-$anchorNavigationBar.offsetHeight-16*3.5);}function stickNavigation(){if(window.scrollY===oldScrollY&&window.screen.width===oldWidth)return;oldScrollY=window.scrollY;oldWidth=window.screen.width;document.body.style.marginTop=document.getElementsByTagName('header')[0].offsetHeight+'px';for(let $navigationBar of $navigationBars){const $navigationBarChild=$navigationBar.getElementsByClassName('sticky-child')[0];let top=$navigationBar.getBoundingClientRect().top;let offsetTop=0;if($navigationBarChild){offsetTop=$navigationBarChild.offsetTop;top=$navigationBarChild.getBoundingClientRect().top;}let bottom=$mainMenu.getBoundingClientRect().bottom;if($mainMenu.id===$navigationBar.id)if($drupalMenu)bottom=Math.max(0,$drupalMenu.getBoundingClientRect().bottom);else bottom=0;if(top<=bottom||window.screen.width<=930)$navigationBar.classList.add('top');else $navigationBar.classList.remove('top');if(top<=bottom||$mainMenu.id===$navigationBar.id)$navigationBar.style.top=(bottom-offsetTop)+'px';if(!$panels.length)continue;for(let i=0;i<$panels.length;i++)$panels[i].source.parentElement.classList.remove('active');let i=$panels.length-1;let found=false;while(i>=0&&!found){if($panels[i].getBoundingClientRect().top-16*3.5-5<$navigationBar.getBoundingClientRect().bottom){$panels[i].source.parentElement.classList.add('active');found=true;}i--;}if(!found)$panels[0].source.parentElement.classList.add('active');}}});; 33!function(_,u,l){"use strict";var t,p=void 0===l.eu_cookie_compliance.cookie_value_disagreed||""===l.eu_cookie_compliance.cookie_value_disagreed?"0":l.eu_cookie_compliance.cookie_value_disagreed,r=void 0===l.eu_cookie_compliance.cookie_value_agreed_show_thank_you||""===l.eu_cookie_compliance.cookie_value_agreed_show_thank_you?"1":l.eu_cookie_compliance.cookie_value_agreed_show_thank_you,s=void 0===l.eu_cookie_compliance.cookie_value_agreed||""===l.eu_cookie_compliance.cookie_value_agreed?"2":l.eu_cookie_compliance.cookie_value_agreed;function m(e,o,i){var c="",n=(void 0!==i.expires&&("number"==typeof i.expires&&(n=new Date,i.expires=n.setTime(n.getTime()+24*i.expires*60*60*1e3)),c="; expires="+i.expires.toUTCString()),void 0===i.path?"/":i.path),a="";void 0!==i.domain&&(a="; domain="+i.domain),document.cookie=e+"="+(o||"")+c+"; path="+n+a+"; SameSite=Strict"}function a(e){var o=document.cookie.split(";");if(void 0===e)return o;for(var i=e+"=",c=0;c<o.length;c++){for(var n=o[c];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(i))return n.substring(i.length,n.length)}return null}function k(e){document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}u.behaviors.euCookieCompliancePopup={attach:function(e){if(void 0!==l.eu_cookie_compliance){const i=document.querySelector(l.eu_cookie_compliance.containing_element);var o;i.getAttribute("data-eu-cookie-compliance-once")||(i.setAttribute("data-eu-cookie-compliance-once","true"),g=d.getCurrentStatus(),h=d.getAcceptedCategories(),l.eu_cookie_compliance.popup_eu_only_js?u.eu_cookie_compliance.showBanner()&&(o=l.path.baseUrl+l.path.pathPrefix+"eu-cookie-compliance-check",_.getJSON(o,{},function(e){e.in_eu?u.eu_cookie_compliance.execute():(u.eu_cookie_compliance.setStatus(s),l.eu_cookie_compliance.geoip_match=!1,c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),"categories"===l.eu_cookie_compliance.method&&(e=l.eu_cookie_compliance.cookie_categories,u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e)))})):l.eu_cookie_compliance.hide_the_banner||u.eu_cookie_compliance.execute(),_(i).addClass("eu-cookie-compliance-status-"+u.eu_cookie_compliance.getCurrentStatus()))}}},u.eu_cookie_compliance=u.eu_cookie_compliance||function(){(u.eu_cookie_compliance.queue=u.eu_cookie_compliance.queue||[]).push(arguments)},u.eu_cookie_compliance.a=+new Date;var d=u.eu_cookie_compliance,h=[],g=null,c=(d.updateSelectedCategories=function(e){h=e},d.updateCurrentStatus=function(e){g=e},u.eu_cookie_compliance.execute=function(){try{var e,o,i;l.eu_cookie_compliance.popup_enabled&&u.eu_cookie_compliance.cookiesEnabled()&&l.eu_cookie_compliance.modules_allow_popup&&(g=u.eu_cookie_compliance.getCurrentStatus(),void 0===u.eu_cookie_compliance.getVersion()&&u.eu_cookie_compliance.setVersion("unknown"),!0===l.eu_cookie_compliance.popup_eu_only&&!0!==l.eu_cookie_compliance.geoip_match||(e=u.eu_cookie_compliance.getVersion()!==l.eu_cookie_compliance.cookie_policy_version,o=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name,i=!l.eu_cookie_compliance.open_by_default||null!==g&&!e||"null"===a(o)&&l.eu_cookie_compliance.settings_tab_enabled,g!==p||!l.eu_cookie_compliance.settings_tab_enabled||"opt_in"!==l.eu_cookie_compliance.method&&"categories"!==l.eu_cookie_compliance.method?g===p&&"default"===l.eu_cookie_compliance.method||null===g||g!==p&&l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup||g!==p&&e?!l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.disagree_do_not_show_popup&&null!==g||(window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.mobile_popup_html_info,i):u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_info,i),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener()):g===r&&l.eu_cookie_compliance.popup_agreed_enabled?(u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_agreed),u.eu_cookie_compliance.attachHideEvents()):g===s&&l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&(u.eu_cookie_compliance.createWithdrawBanner(l.eu_cookie_compliance.withdraw_markup),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener()):(u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_info,null!==g),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner),u.eu_cookie_compliance.attachAgreeEvents())))}catch(e){}},u.eu_cookie_compliance.initPopup=function(){u.eu_cookie_compliance.attachAgreeEvents(),"categories"===l.eu_cookie_compliance.method&&(u.eu_cookie_compliance.setPreferenceCheckboxes(h),u.eu_cookie_compliance.attachSavePreferencesEvents()),l.eu_cookie_compliance.withdraw_enabled&&(u.eu_cookie_compliance.attachWithdrawEvents(),g!==r&&g!==s||(_(".eu-cookie-withdraw-button").removeClass("visually-hidden"),_(".eu-cookie-compliance-reject-button").addClass("visually-hidden")))},u.eu_cookie_compliance.positionTab=function(){if(l.eu_cookie_compliance.popup_position){let e=_(".eu-cookie-withdraw-tab").outerHeight();_("#sliding-popup").length&&(e+=_("#sliding-popup").outerHeight()),_(".eu-cookie-withdraw-wrapper").length?_(".eu-cookie-withdraw-tab").css("margin-top","0"):_(".eu-cookie-withdraw-tab").css("margin-top",e+"px")}},u.eu_cookie_compliance.createWithdrawBanner=function(e){var o=_("<div></div>").html(e),e=_(".eu-cookie-withdraw-banner",o),i=(o.attr({id:"sliding-popup",role:"alertdialog","aria-describedby":"popup-text","aria-label":u.t("Cookie compliance banner")}),o.addClass("eu-cookie-withdraw-wrapper"),o.trigger("eu_cookie_compliance_popup_close"),l.eu_cookie_compliance.popup_use_bare_css||l.eu_cookie_compliance.popup_use_olivero_css||e.height(l.eu_cookie_compliance.popup_height).width(l.eu_cookie_compliance.popup_width),o.hide(),0);l.eu_cookie_compliance.popup_position?(o.prependTo(l.eu_cookie_compliance.containing_element),i=parseInt(o.outerHeight()),o.show().addClass("sliding-popup-top").addClass("clearfix").css({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(i)}),setTimeout(function(){var e=o.outerHeight();o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"})}.bind(o),0)):(l.eu_cookie_compliance.better_support_for_screen_readers?o.prependTo(l.eu_cookie_compliance.containing_element):o.appendTo(l.eu_cookie_compliance.containing_element),i=o.outerHeight(),o.show().addClass("sliding-popup-bottom").css({bottom:-1*i}),setTimeout(function(){var e=o.outerHeight();o.animate({bottom:-1*e},l.eu_cookie_compliance.popup_delay,null)}.bind(o),0)),_("body").removeClass("eu-cookie-compliance-popup-open"),e.attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)},u.eu_cookie_compliance.getBannerTopPosition=function(e){let o;return l.eu_cookie_compliance.fixed_top_position?(o=0,_(".toolbar-tray-horizontal.is-active").length&&(o+=parseInt(_(".toolbar-tray-horizontal.is-active").css("height"))),_(".toolbar-bar").length&&!_("#gin-toolbar-bar").length&&(o+=parseInt(_(".toolbar-bar").css("height"))),o+"px"):0},u.eu_cookie_compliance.getBannerTopHiddenPosition=function(e){let o=0;return l.eu_cookie_compliance.fixed_top_position?o=-e:(_(".toolbar-tray-horizontal.is-active").length&&(o=-parseInt(_(".toolbar-tray-horizontal.is-active").css("height"))),_(".toolbar-bar").length&&!_("#gin-toolbar-bar").length&&(o-=parseInt(_(".toolbar-bar").css("height")))),o+"px"},u.eu_cookie_compliance.getBannerBottomHiddenPosition=function(){return-_("#sliding-popup").outerHeight()+"px"},u.eu_cookie_compliance.toggleWithdrawBanner=function(){var e,o,i,c=_("#sliding-popup"),n=parseInt(c.outerHeight()),a=c.find(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").is(":visible");a&&(e=parseInt(c.css("top")),o=parseInt(_(l.eu_cookie_compliance.containing_element).css("padding-top")),i=parseInt(_(l.eu_cookie_compliance.containing_element).css("margin-top")),a=l.eu_cookie_compliance.popup_position?l.eu_cookie_compliance.fixed_top_position?!(e===-n):!(e===-(o+i+n)):0===parseInt(c.css("bottom"))),l.eu_cookie_compliance.popup_position?a?(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-n+"px"},l.eu_cookie_compliance.popup_delay),c.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(n)},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_close")):(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":"0px"},l.eu_cookie_compliance.popup_delay),c.find(".eu-cookie-compliance-banner").show(),c.animate({top:u.eu_cookie_compliance.getBannerTopPosition(n)},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_open")):a?c.animate({bottom:-1*n},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_close"):(c.find(".eu-cookie-compliance-banner").show(),c.animate({bottom:0},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_open")),a?(_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(_("body").addClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!1).find("a, button, input").attr("tabindex",0))},u.eu_cookie_compliance.resizeListener=function(){var e,o,i,c=_("#sliding-popup"),n=(e=function(){var e=c.outerHeight();l.eu_cookie_compliance.popup_position?(parseFloat(c.css("top"))<0&&(_("body").hasClass("eu-cookie-compliance-popup-open")?(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":"0px"}),c.css("top",u.eu_cookie_compliance.getBannerTopPosition(e))):(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":-e+"px"}),c.css("top",u.eu_cookie_compliance.getBannerTopHiddenPosition(e)))),u.eu_cookie_compliance.positionTab()):0!==parseFloat(c.css("bottom"))&&c.css("bottom",-1*e),u.eu_cookie_compliance.positionTab()},o=50,function(){clearTimeout(i),i=setTimeout(function(){clearTimeout(i),e()},o)});setTimeout(function(){n()}),window.addEventListener("resize",n)},u.eu_cookie_compliance.createPopup=function(e,o){var i=_("<div></div>").html(e),e=(i.attr({id:"sliding-popup",role:"alertdialog","aria-describedby":"popup-text","aria-label":u.t("Cookie compliance banner")}),l.eu_cookie_compliance.popup_use_bare_css||l.eu_cookie_compliance.popup_use_olivero_css||i.height(l.eu_cookie_compliance.popup_height).width(l.eu_cookie_compliance.popup_width),i.hide(),0);l.eu_cookie_compliance.popup_position?(i.prependTo(l.eu_cookie_compliance.containing_element),e=i.outerHeight(),i.addClass("sliding-popup-top clearfix").css({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)}),!0!==o?(i.show(),i.animate({top:u.eu_cookie_compliance.getBannerTopPosition(e)},l.eu_cookie_compliance.popup_delay,null,function(){i.trigger("eu_cookie_compliance_popup_open"),u.eu_cookie_compliance.positionTab()})):(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":-e+"px"}),setTimeout(function(){i.show(),u.eu_cookie_compliance.positionTab()},0))):(l.eu_cookie_compliance.better_support_for_screen_readers?i.prependTo(l.eu_cookie_compliance.containing_element):i.appendTo(l.eu_cookie_compliance.containing_element),e=i.outerHeight(),i.show().addClass("sliding-popup-bottom").css({bottom:-1*e}),!0!==o&&i.animate({bottom:0},l.eu_cookie_compliance.popup_delay,null,function(){i.trigger("eu_cookie_compliance_popup_open")})),!0!==o?(_("body").addClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!1).find("a, button, input").attr("tabindex",0)):(_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1))},u.eu_cookie_compliance.attachAgreeEvents=function(){var e,o,i=l.eu_cookie_compliance.popup_clicking_confirmation,c=l.eu_cookie_compliance.popup_scrolling_confirmation;"categories"===l.eu_cookie_compliance.method&&l.eu_cookie_compliance.enable_save_preferences_button?_(".agree-button").click(u.eu_cookie_compliance.acceptAllAction):_(".agree-button").click(u.eu_cookie_compliance.acceptAction),_(".decline-button").click(u.eu_cookie_compliance.declineAction),_(".eu-cookie-compliance-close-button").click(u.eu_cookie_compliance.closeAction),_(".eu-cookie-compliance-reject-button").click(u.eu_cookie_compliance.rejectAllAction),i&&_("a, input[type=submit], button[type=submit]").not(".popup-content *").bind("click.euCookieCompliance",u.eu_cookie_compliance.acceptAction),c&&(e=!1,o=function(){e?(u.eu_cookie_compliance.acceptAction(),_(window).off("scroll",o)):e=!0},_(window).bind("scroll",o)),_(".find-more-button").not(".find-more-button-processed").addClass("find-more-
33button-processed").click(u.eu_cookie_compliance.moreInfoAction)},u.eu_cookie_compliance.closeAction=function(){switch(l.eu_cookie_compliance.close_button_action){case"close_banner":u.eu_cookie_compliance.toggleWithdrawBanner();break;case"save_preferences":u.eu_cookie_compliance.savePreferencesAction();break;case"reject_all_cookies":u.eu_cookie_compliance.rejectAllAction();break;case"accept_all_cookies":u.eu_cookie_compliance.acceptAllAction()}},u.eu_cookie_compliance.attachSavePreferencesEvents=function(){_(".eu-cookie-compliance-save-preferences-button").click(u.eu_cookie_compliance.savePreferencesAction)},u.eu_cookie_compliance.attachHideEvents=function(){var e=l.eu_cookie_compliance.popup_hide_agreed,o=l.eu_cookie_compliance.popup_clicking_confirmation;_(".hide-popup-button").click(function(){u.eu_cookie_compliance.changeStatus(s)}),o&&_("a, input[type=submit], button[type=submit]").unbind("click.euCookieCompliance"),e&&_("a, input[type=submit], button[type=submit]").bind("click.euCookieComplianceHideAgreed",function(){u.eu_cookie_compliance.changeStatus(s)}),_(".find-more-button").not(".find-more-button-processed").addClass("find-more-button-processed").click(u.eu_cookie_compliance.moreInfoAction)},u.eu_cookie_compliance.attachWithdrawEvents=function(){_(".eu-cookie-withdraw-button").click(u.eu_cookie_compliance.withdrawAction),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)},u.eu_cookie_compliance.acceptAction=function(){var e=l.eu_cookie_compliance.popup_agreed_enabled,o=r;e||(u.eu_cookie_compliance.setStatus(r),o=s),c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),void 0!==t&&clearInterval(t),"categories"===l.eu_cookie_compliance.method&&(e=_("#eu-cookie-compliance-categories input:checkbox:checked").map(function(){return _(this).val()}).get(),u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e),e.length||(o=p)),u.eu_cookie_compliance.changeStatus(o),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup&&(u.eu_cookie_compliance.attachWithdrawEvents(),g!==r&&g!==s||(_(".eu-cookie-withdraw-button").removeClass("visually-hidden"),_(".eu-cookie-compliance-reject-button").addClass("visually-hidden")))},u.eu_cookie_compliance.acceptAllAction=function(){var e=l.eu_cookie_compliance.cookie_categories;u.eu_cookie_compliance.setPreferenceCheckboxes(e),u.eu_cookie_compliance.acceptAction()},u.eu_cookie_compliance.rejectAllAction=function(){u.eu_cookie_compliance.setStatus(p),u.eu_cookie_compliance.setPreferenceCheckboxes([]),u.eu_cookie_compliance.acceptAction()},u.eu_cookie_compliance.savePreferencesAction=function(){var e=_("#eu-cookie-compliance-categories input:checkbox:checked").map(function(){return _(this).val()}).get(),o=l.eu_cookie_compliance.popup_agreed_enabled,i=r;o||(u.eu_cookie_compliance.setStatus(r),i=s),c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),c=!0,u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e),e.length||(i=p),u.eu_cookie_compliance.changeStatus(i)},u.eu_cookie_compliance.loadCategoryScripts=function(e){for(var o in e)!0!==i[e[o]]&&"function"==typeof euCookieComplianceLoadScripts&&(euCookieComplianceLoadScripts(e[o]),i[e[o]]=!0)},u.eu_cookie_compliance.declineAction=function(){parseInt(l.eu_cookie_compliance.set_cookie_session_zero_on_disagree)&&(l.eu_cookie_compliance.cookie_session=1),u.eu_cookie_compliance.setStatus(p);var e,o=_("#sliding-popup");(o.hasClass("sliding-popup-top")?(e=o.outerHeight(),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),l.eu_cookie_compliance.settings_tab_enabled?o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null):o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null,function(){l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":0}),o.hide()})):l.eu_cookie_compliance.settings_tab_enabled?o.animate({bottom:-1*o.outerHeight()},l.eu_cookie_compliance.popup_delay,null):o.animate({bottom:-1*o.outerHeight()},l.eu_cookie_compliance.popup_delay,null,function(){o.hide()})).trigger("eu_cookie_compliance_popup_close"),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)},u.eu_cookie_compliance.withdrawAction=function(){parseInt(l.eu_cookie_compliance.set_cookie_session_zero_on_disagree)&&(l.eu_cookie_compliance.cookie_session=1),u.eu_cookie_compliance.setStatus(null),u.eu_cookie_compliance.setAcceptedCategories([]),location.reload()},u.eu_cookie_compliance.moreInfoAction=function(){l.eu_cookie_compliance.disagree_do_not_show_popup?(u.eu_cookie_compliance.setStatus(p),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?_("#sliding-popup .eu-cookie-compliance-banner").trigger("eu_cookie_compliance_popup_close").hide():_("#sliding-popup").trigger("eu_cookie_compliance_popup_close").remove(),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):l.eu_cookie_compliance.popup_link_new_window?window.open(l.eu_cookie_compliance.popup_link):window.location.href=l.eu_cookie_compliance.popup_link},u.eu_cookie_compliance.getCookieStatus=function(){var e=a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name);return e=void 0!==e&&"null"!==e?e:null},u.eu_cookie_compliance.getCurrentStatus=function(){var e=new o,e=(d.handleEvent("preStatusLoad",e),g=u.eu_cookie_compliance.getCookieStatus(),new n);return d.handleEvent("postStatusLoad",e),g},u.eu_cookie_compliance.setPreferenceCheckboxes=function(e){for(var o in null===u.eu_cookie_compliance.getCookieStatus()&&u.eu_cookie_compliance.getCookieStatus()!==p||_("#eu-cookie-compliance-categories input:checkbox").not(":disabled").prop("checked",!1),e){o=document.getElementById("cookie-category-"+e[o]);null!==o&&(o.checked=!0)}},u.eu_cookie_compliance.getAcceptedCategories=function(){var e=new C;d.handleEvent("prePreferencesLoad",e);var o,e=a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories");for(o in h=null!=e?(-1!==e.indexOf("%")&&(e=decodeURI(e).replaceAll(/%2C/g,",")),JSON.parse(e)):[],l.eu_cookie_compliance.cookie_categories_details){var i=l.eu_cookie_compliance.cookie_categories_details[o];"required"===i.checkbox_default_state&&-1===_.inArray(i.id,h)&&h.push(i.id)}e=new S;return d.handleEvent("postPreferencesLoad",e),h},u.eu_cookie_compliance.changeStatus=function(o){var e,i=l.eu_cookie_compliance.reload_page,c=g;if(g!==parseInt(o)){if(l.eu_cookie_compliance.popup_position){let e=_("#sliding-popup").outerHeight();l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,function(){o!==r||null!==c||i?c===r&&(l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?(_("#sliding-popup").hide(),window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.mobile_popup_html_info):_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_info),e=_("#sliding-popup").outerHeight(),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").css("top",u.eu_cookie_compliance.getBannerTopHiddenPosition(e)),_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close"),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener(),_("#sliding-popup").show()):(_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close").remove(),_("body").css({"margin-top":"0px"})),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":"0px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_agreed).animate({top:u.eu_cookie_compliance.getBannerTopPosition(e)},l.eu_cookie_compliance.popup_delay),u.eu_cookie_compliance.attachHideEvents()),l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&u.eu_cookie_compliance.showWithdrawBanner(o)})}else _(".sliding-popup-bottom").animate({bottom:-1*_("#sliding-popup").outerHeight()},l.eu_cookie_compliance.popup_delay,function(){o!==r||null!==c||i?c===r&&(_("#sliding-popup").css("display","none"),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?(window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.mobile_popup_html_info):_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_info),_(".sliding-popup-bottom").css("bottom",u.eu_cookie_compliance.getBannerBottomHiddenPosition()),_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close"),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener(),_("#sliding-popup").css("display","block")):_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close").remove(),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_agreed).animate({bottom:0},l.eu_cookie_compliance.popup_delay),u.eu_cookie_compliance.attachHideEvents()),l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&u.eu_cookie_compliance.showWithdrawBanner(o)});if(l.eu_cookie_compliance.reload_page)if(0!==(e=l.eu_cookie_compliance.reload_routes_list).length){for(var n=l.path.currentPath,a=!1,t=0;!a&&t<e.length;t++)var p=new RegExp(e[t],"g"),a=null!==n.match(p);(a&&!l.eu_cookie_compliance.reload_options||!a&&l.eu_cookie_compliance.reload_options)&&location.reload()}else location.reload();u.eu_cookie_compliance.setStatus(o)}},u.eu_cookie_compliance.showWithdrawBanner=function(e){e===s&&l.eu_cookie_compliance.withdraw_enabled&&(l.eu_cookie_compliance.withdraw_button_on_info_popup||(u.eu_cookie_compliance.createWithdrawBanner(l.eu_cookie_compliance.withdraw_markup),u.eu_cookie_compliance.resizeListener()),u.eu_cookie_compliance.attachWithdrawEvents(),l.eu_cookie_compliance.popup_position&&u.eu_cookie_compliance.positionTab())},u.eu_cookie_compliance.setStatus=function(e){var o=new b,o=(d.handleEvent("preStatusSave",o),new Date),i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name;1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a)));parseInt(l.eu_cookie_compliance.cookie_session)?m(n,e,{path:c,domain:i,sameSite:"strict"}):(a=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+a),m(n,e,{expires:o,path:c,domain:i,sameSite:"strict"}));var a="eu-cookie-compliance-status-"+g,n="eu-cookie-compliance-status-"+e,c=(_("."+a).removeClass(a).addClass(n),g=e,_(document).trigger("eu_cookie_compliance.changeStatus",[e]),u.eu_cookie_compliance.setVersion(),l.eu_cookie_compliance.store_consent&&(e===r&&l.eu_cookie_compliance.popup_agreed_enabled||e===s&&!l.eu_cookie_compliance.popup_agreed_enabled)&&(o=l.path.baseUrl+l.path.pathPrefix+"eu-cookie-compliance/store_consent/banner",_.post(o,{},function(e){})),new v);d.handleEvent("postStatusSave",c),e===p&&"opt_out"===l.eu_cookie_compliance.method&&(t=setInterval(u.eu_cookie_compliance.BlockCookies,5e3))},u.eu_cookie_compliance.setAcceptedCategories=function(e){var o=new P,o=(d.handleEvent("prePreferencesSave",o),new Date),i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories",a=(1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a))),JSON.stringify(e)),t=(parseInt(l.eu_cookie_compliance.cookie_session)?m(n,a,{path:c,domain:i,sameSite:"strict"}):(t=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+t),m(n,a,{expires:o,path:c,domain:i,sameSite:"strict"}
33)),h=e,_(document).trigger("eu_cookie_compliance.changePreferences",[e]),new B);d.handleEvent("postPreferencesSave",t)},u.eu_cookie_compliance.hasAgreed=function(e){var o=g===r||g===s;return o=void 0!==e&&o&&"categories"===l.eu_cookie_compliance.method?u.eu_cookie_compliance.hasAgreedWithCategory(e):o},u.eu_cookie_compliance.hasAgreedWithCategory=function(e){return-1!==_.inArray(e,h)},u.eu_cookie_compliance.showBanner=function(){var e=!1;return g===p&&"default"===l.eu_cookie_compliance.method||null===g?l.eu_cookie_compliance.disagree_do_not_show_popup&&null!==g||(e=!0):(g===r&&l.eu_cookie_compliance.popup_agreed_enabled||g===s&&l.eu_cookie_compliance.withdraw_enabled)&&(e=!0),e},u.eu_cookie_compliance.cookiesEnabled=function(){var e=navigator.cookieEnabled;return void 0!==navigator.cookieEnabled||e||(date.setDate(date.getDate()+100),m("testcookie","testcookie",{expires:date,sameSite:"strict"}),e=-1!==a("testcookie").indexOf("testcookie")),e},u.eu_cookie_compliance.cookieMatches=function(e,o){if(e===o)return!0;if(o.indexOf("*")<0)return!1;try{return new RegExp("^"+o.replace(/\./g,"\\.").replace(/\*/g,".+")+"$","g").test(e)}catch(e){return!1}},u.eu_cookie_compliance.isAllowed=function(e){if(0===e.indexOf("SESS")||0===e.indexOf("SSESS"))return!0;var o,i=l.eu_cookie_compliance.allowed_cookies.split(/\r\n|\n|\r/g);for(o in i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name),i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories"),i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version"),i)if("string"==typeof i[o]){if(u.eu_cookie_compliance.cookieMatches(e,i[o]))return!0;if("categories"===l.eu_cookie_compliance.method){var c=i[o].indexOf(":");if(-1!==c){var n=i[o].substr(0,c),c=i[o].substr(c+1);if(u.eu_cookie_compliance.cookieMatches(e,c)&&u.eu_cookie_compliance.hasAgreedWithCategory(n))return!0}}}return!1},u.eu_cookie_compliance.getVersion=function(){return!!u.eu_cookie_compliance.hasAgreed()&&a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version")},!(u.eu_cookie_compliance.setVersion=function(e){if(!u.eu_cookie_compliance.hasAgreed())return!1;var o=new Date,i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version",a=(1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a))),void 0!==e?e:l.eu_cookie_compliance.cookie_policy_version);parseInt(l.eu_cookie_compliance.cookie_session)?m(n,a,{path:c,domain:i,sameSite:"strict"}):(e=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+e),m(n,a,{expires:o,path:c,domain:i,sameSite:"strict"}))})),i={},o=(_(function(){void 0!==l.eu_cookie_compliance&&(u.eu_cookie_compliance.hasAgreed()||null===g&&"opt_in"!==l.eu_cookie_compliance.method&&"categories"!==l.eu_cookie_compliance.method)&&("function"==typeof euCookieComplianceLoadScripts&&euCookieComplianceLoadScripts(),c=!0,"categories"===l.eu_cookie_compliance.method&&u.eu_cookie_compliance.loadCategoryScripts(h))}),u.eu_cookie_compliance.BlockCookies=function(){var e,o=u.eu_cookie_compliance.getCookieStatus();if(o!==r&&o!==s||"categories"===l.eu_cookie_compliance.method||void 0===t)for(e in a()){var i,c=window.location.hostname,n=!1;if(!u.eu_cookie_compliance.isAllowed(e)){for(;!n&&""!==c;)k(e),(n=!a(e))||(k(e),n=!a(e)),c=-1===(i=c.indexOf("."))?"":c.substring(i+1);n||(document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;")}}else clearInterval(t)},void 0===l.eu_cookie_compliance||!l.eu_cookie_compliance.automatic_cookies_removal||("opt_in"!==l.eu_cookie_compliance.method||null!==g&&u.eu_cookie_compliance.hasAgreed())&&("opt_out"!==l.eu_cookie_compliance.method||u.eu_cookie_compliance.hasAgreed()||null===g)&&"categories"!==l.eu_cookie_compliance.method||(t=setInterval(u.eu_cookie_compliance.BlockCookies,5e3)),d.handleEvent=function(e,o){for(var i=function(e){var o=[];if(void 0!==u.eu_cookie_compliance&&void 0!==u.eu_cookie_compliance.queue&&u.eu_cookie_compliance.queue.length)for(var i,c,n=0;n<u.eu_cookie_compliance.queue.length;n++)u.eu_cookie_compliance.queue[n].length&&(i=(c=u.eu_cookie_compliance.queue[n])[0],c=c[1],"string"==typeof i&&"function"==typeof c&&i===e&&o.push(c));return o}(e),c=0;c<i.length;c++)void 0!==i[c]&&(o.subscribe(i[c]),o.fire({currentStatus:g,currentCategories:h}),o.unsubscribe(i[c]))},(T=e.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;
33this.handlers.forEach(function(e){e.call(i,o)})},e);function e(){this.handlers=[]}(T=f.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var n=f;function f(){this.handlers=[]}(T=w.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var b=w;function w(){this.handlers=[]}(T=y.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var v=y;function y(){this.handlers=[]}(T=x.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var C=x;function x(){this.handlers=[]}(T=A.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var S=A;function A(){this.handlers=[]}(T=E.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var P=E;function E(){this.handlers=[]}(T=H.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var T,B=H;function H(){this.handlers=[]}}(jQuery,Drupal,drupalSettings,window.Cookies);; 34(function($,Drupal,drupalSettings){'use strict';Drupal.viewsSlideshow=Drupal.viewsSlideshow||{};var pagerLocation;var slideNum;var error;var excludeMethods;Drupal.viewsSlideshowControls=Drupal.viewsSlideshowControls||{};Drupal.viewsSlideshowControls.play=function(options){try{if(typeof drupalSettings.viewsSlideshowControls[options.slideshowID].top.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].top.type].play=='function')Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].top.type].play(options);}catch(err){}try{if(typeof drupalSettings.viewsSlideshowControls[options.slideshowID].bottom.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].bottom.type].play=='function')Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].bottom.type].play(options);}catch(err){}};Drupal.viewsSlideshowControls.pause=function(options){try{if(typeof drupalSettings.viewsSlideshowControls[options.slideshowID].top.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].top.type].pause=='function')Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].top.type].pause(options);}catch(err){}try{if(typeof drupalSettings.viewsSlideshowControls[options.slideshowID].bottom.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].bottom.type].pause=='function')Drupal[drupalSettings.viewsSlideshowControls[options.slideshowID].bottom.type].pause(options);}catch(err){}};Drupal.behaviors.viewsSlideshowControlsText={attach:function(context){$('.views_slideshow_controls_text_previous:not(.views-slideshow-controls-text-previous-processed)',context).addClass('views-slideshow-controls-text-previous-processed').each(function(){var uniqueID=$(this).attr('id').replace('views_slideshow_controls_text_previous_','');$(this).click(function(){Drupal.viewsSlideshow.action({"action":'previousSlide',"slideshowID":uniqueID});return false;});});
34$('.views_slideshow_controls_text_next:not(.views-slideshow-controls-text-next-processed)',context).addClass('views-slideshow-controls-text-next-processed').each(function(){var uniqueID=$(this).attr('id').replace('views_slideshow_controls_text_next_','');$(this).click(function(){Drupal.viewsSlideshow.action({"action":'nextSlide',"slideshowID":uniqueID});return false;});});$('.views_slideshow_controls_text_pause:not(.views-slideshow-controls-text-pause-processed)',context).addClass('views-slideshow-controls-text-pause-processed').each(function(){var uniqueID=$(this).attr('id').replace('views_slideshow_controls_text_pause_','');$(this).click(function(){if(drupalSettings.viewsSlideshow[uniqueID].paused)Drupal.viewsSlideshow.action({"action":'play',"slideshowID":uniqueID,"force":true});else Drupal.viewsSlideshow.action({"action":'pause',"slideshowID":uniqueID,"force":true});return false;});});}};Drupal.viewsSlideshowControlsText=Drupal.viewsSlideshowControlsText||{};Drupal.viewsSlideshowControlsText.pause=function(options){var pauseText=Drupal.theme.viewsSlideshowControlsPause?Drupal.theme('viewsSlideshowControlsPause'):'';var $element=$('#views_slideshow_controls_text_pause_'+options.slideshowID);$element.find('a').text(pauseText);$element.removeClass('views-slideshow-controls-text-status-play');$element.addClass('views-slideshow-controls-text-status-pause');};Drupal.viewsSlideshowControlsText.play=function(options){var playText=Drupal.theme.viewsSlideshowControlsPlay?Drupal.theme('viewsSlideshowControlsPlay'):'';var $element=$('#views_slideshow_controls_text_pause_'+options.slideshowID);$element.find('a').text(playText);$element.removeClass('views-slideshow-controls-text-status-pause');$element.addClass('views-slideshow-controls-text-status-play');};Drupal.theme.viewsSlideshowControlsPause=function(){return Drupal.t('Resume');};Drupal.theme.viewsSlideshowControlsPlay=function(){return Drupal.t('Pause');};Drupal.viewsSlideshowPager=Drupal.viewsSlideshowPager||{};Drupal.viewsSlideshowPager.transitionBegin=function(options){try{if(typeof drupalSettings.viewsSlideshowPager!="undefined"&&typeof drupalSettings.viewsSlideshowPager[options.slideshowID].top.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].transitionBegin=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].transitionBegin(options);}catch(err){}try{if(typeof drupalSettings.viewsSlideshowPager!="undefined"&&typeof drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].transitionBegin=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].transitionBegin(options);}catch(err){}};Drupal.viewsSlideshowPager.goToSlide=function(options){try{if(typeof drupalSettings.viewsSlideshowPager[options.slideshowID].top.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide(options);}catch(err){}try{if(typeof drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide(options);}catch(err){}};Drupal.viewsSlideshowPager.previousSlide=function(options){try{if(typeof drupalSettings.viewsSlideshowPager[options.slideshowID].top.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].previousSlide=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].previousSlide(options);}catch(err){}try{if(typeof drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].previousSlide=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].previousSlide(options);}catch(err){}};Drupal.viewsSlideshowPager.nextSlide=function(options){try{if(typeof drupalSettings.viewsSlideshowPager[options.slideshowID].top.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].nextSlide=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].top.type].nextSlide(options);}catch(err){}try{if(typeof drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type!="undefined"&&typeof Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].nextSlide=='function')Drupal[drupalSettings.viewsSlideshowPager[options.slideshowID].bottom.type].nextSlide(options);}catch(err){}};Drupal.behaviors.viewsSlideshowPagerFields={attach:function(context){$('.views_slideshow_pager_field:not(.views-sli
34deshow-pager-field-processed)',context).addClass('views-slideshow-pager-field-processed').each(function(){var pagerInfo=$(this).attr('id').split('_');var location=pagerInfo[2];pagerInfo.splice(0,3);var uniqueID=pagerInfo.join('_');if(drupalSettings.viewsSlideshowPagerFields[uniqueID][location].activatePauseOnHover)$(this).children().each(function(index,pagerItem){var mouseIn=function(){Drupal.viewsSlideshow.action({"action":'goToSlide',"slideshowID":uniqueID,"slideNum":index});Drupal.viewsSlideshow.action({"action":'pause',"slideshowID":uniqueID});};var mouseOut=function(){Drupal.viewsSlideshow.action({"action":'play',"slideshowID":uniqueID});};if(jQuery.fn.hoverIntent)$(pagerItem).hoverIntent(mouseIn,mouseOut);else $(pagerItem).hover(mouseIn,mouseOut);});else $(this).children().each(function(index,pagerItem){$(pagerItem).click(function(){Drupal.viewsSlideshow.action({"action":'goToSlide',"slideshowID":uniqueID,"slideNum":index});});});});}};Drupal.viewsSlideshowPagerFields=Drupal.viewsSlideshowPagerFields||{};Drupal.viewsSlideshowPagerFields.transitionBegin=function(options){for(pagerLocation in drupalSettings.viewsSlideshowPager[options.slideshowID])if(drupalSettings.viewsSlideshowPager[options.slideshowID]){$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"]').removeClass('active');$('#views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'_'+options.slideNum).addClass('active');}};Drupal.viewsSlideshowPagerFields.goToSlide=function(options){for(pagerLocation in drupalSettings.viewsSlideshowPager[options.slideshowID])if(drupalSettings.viewsSlideshowPager[options.slideshowID]){$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"]').removeClass('active');$('#views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'_'+options.slideNum).addClass('active');}};Drupal.viewsSlideshowPagerFields.previousSlide=function(options){for(pagerLocation in drupalSettings.viewsSlideshowPager[options.slideshowID])if(drupalSettings.viewsSlideshowPager[options.slideshowID]){var pagerNum=$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"].active').attr('id').replace('views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'_','');if(pagerNum===0)pagerNum=$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"]').length()-1;else pagerNum--;$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"]').removeClass('active');$('#views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'_'+pagerNum).addClass('active');}};Drupal.viewsSlideshowPagerFields.nextSlide=function(options){for(pagerLocation in drupalSettings.viewsSlideshowPager[options.slideshowID])if(drupalSettings.viewsSlideshowPager[options.slideshowID]){var pagerNum=$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"].active').attr('id').replace('views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'_','');var totalPagers=$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"]').length();pagerNum++;if(pagerNum===totalPagers)pagerNum=0;$('[id^="views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'"]').removeClass('active');$('#views_slideshow_pager_field_item_'+pagerLocation+'_'+options.slideshowID+'_'+slideNum).addClass('active');}};Drupal.viewsSlideshowPagerBullets=Drupal.viewsSlideshowPagerFields||{};Drupal.viewsSlideshowSlideCounter=Drupal.viewsSlideshowSlideCounter||{};Drupal.viewsSlideshowSlideCounter.transitionBegin=function(options){$('#views_slideshow_slide_counter_'+options.slideshowID+' .num').text(options.slideNum+1);};Drupal.viewsSlideshow.action=function(options){var status={'value':true,'text':''};if(typeof options.action=='undefined'||options.action===''){status.value=false;status.text=Drupal.t('There was no action specified.');return error;}if(options.action==='pause'){drupalSettings.viewsSlideshow[options.slideshowID].paused=1;if(options.force)drupalSettings.viewsSlideshow[options.slideshowID].pausedForce=1;}else{if(options.action==='play')if(!drupalSettings.viewsSlideshow[options.slideshowID].pausedForce||options.force){drupalSettings.viewsSlideshow[options.slideshowID].paused=0;drupalSettings.viewsSlideshow[options.slideshowID].pausedForce=0;}else{status.value=false;status.text+=' '+Drupal.t('This slideshow is forced paused.');return status;}}switch(options.action){case "goToSlide":case "transitionBegin":case "transitionEnd":if(typeof options.slideNum=='undefined'||typeof options.slideNum!=='number'||parseInt(options.slideNum)!==(options.slideNum-0)){status.value=false;status.text=Drupal.t('An invalid integer was specified for slideNum.');}case "pause":case "play":case "nextSlide":case "previousSlide":var methods=drupalSettings.viewsSlideshow[options.slideshowID]['methods'];var excludeMethodsObj={};if(typeof options.excludeMethods!=='undefined')for(var i=0;i<excludeMethods.length;i++)excludeMethodsObj[excludeMethods[i]]='';for(var i=0;i<methods[options.action].length;i++)if(Drupal[methods[options.action][i]]!=='undefined'&&typeof Drupal[methods[options.action][i]][options.action]=='function'&&!(methods[options.action][i] in excludeMethodsObj))Drupal[methods[options.action][i]][options.action](options);break;default:status.value=false;status.text=Drupal.t('An invalid action "@action" was specified.',{"@action":options.action});}return status;};})(jQuery,Drupal,drupalSettings);; 35var $jq=jQuery.noConflict();$jq(document).ready(function(){$jq(".first-may").html(function(){var text=$jq(this).text().trim().split(" ");var length=text.length;var first=text.shift();return (length>0?"<span class='class-may'>"+first+"</span> ":first)+text.join(" ");});$jq("li.check").prepend('<span class="img-check"><span class="sr-only">S\'applique</span></span>');$jq("li.cross").prepend('<span class="img-cross"><span class="sr-only">Ne s\'applique pas</span></span>');$jq("#toggle-search-header-block").click(function(){$jq("header .region-header .header-block-search").toggle();$jq(this).toggleClass('btn-search-picto').toggleClass('btn-cross-picto');$jq('header .region-header nav[id*="navigationprincipale"]').removeClass('in');$jq('#toggle-navigation-block').attr("aria-expanded",'false');if($jq(this).hasClass('btn-cross-picto')){$jq("header .region-header .header-block-search").find('input.form-text').focus();$jq("header .region-header .header-block-search").attr("aria-expanded",'false');$jq(this).attr("aria-expanded",'true');}else $jq(this).attr("aria-expanded",'false');});$jq('#toggle-navigation-block').click(function(){$jq("header .region-header .header-block-search").hide();$jq("#toggle-search-header-block").removeClass('btn-cross-picto').addClass('btn-search-picto');$jq('#toggle-search-header-block').attr("aria-expanded",'false');if($jq(this).attr("aria-expanded")==='false')$jq(this).attr("aria-expanded",'true');else $jq(this).attr("aria-expanded",'false');});var $skipNav=$jq("#skip-nav");var $skipLink=$jq(".skip-link");var $skipLinkContent=$jq("#lien-contenu");var $skipLinkMenu=$jq("#lien-menu");var $skipLinkSearch=$jq("#lien-recherche");var $skipLinkContraste=$jq("#lien-contraste");var $skipLinkContraste_header=$jq("#toggle-contraste-header-block");var $skipLinkContraste_footer=$jq("#lien-contraste-footer");var $headerRoleBanner=$jq("header[role=banner]");$skipLink.focus(function(){$jq(this).closest($skipNav).removeClass("visually-hidden");$jq(this).closest($skipNav).addClass("reveal");}).blur(function(){$jq(this).closest($skipNav).removeClass("reveal");$jq(this).closest($skipNav).addClass("visually-hidden");});$skipLinkContent.click(function(){$jq("#main-content").focus();});$skipLinkMenu.click(function(){setTimeout(function(){$jq("#block-navigationprincipale ul li:first-child a").focus();},100);});$skipLinkSearch.click(function(){$jq("#search-block-form .form-submit").focus();});$skipLinkContraste.click(function(){if(!$jq("body").hasClass("contraste-active")){$jq("body").addClass("contraste-active");$skipLinkContraste.text('Rétablir le contraste');sessionStorage.setItem('contrast',"1");}else{$jq("body").removeClass("contraste-active");$skipLinkContraste.text('Accentuer le contraste');sessionStorage.setItem('contrast',"0");}});$skipLinkContraste_header.click(function(){if(!$jq("body").hasClass("contraste-active")){$jq("body").addClass("contraste-active");$skipLinkContraste_header.children('span').text('Rétablir le contraste');sessionStorage.setItem('contrast',"1");}else{$jq("body").removeClass("contraste-active");$skipLinkContraste_header.children('span').text('Accentuer le contraste');sessionStorage.setItem('contrast',"0");}return false;});
35$skipLinkContraste_footer.click(function(){if(!$jq("body").hasClass("contraste-active")){$jq("body").addClass("contraste-active");$skipLinkContraste_footer.text('Rétablir le contraste');sessionStorage.setItem('contrast',"1");}else{$jq("body").removeClass("contraste-active");$skipLinkContraste_footer.text('Accentuer le contraste');sessionStorage.setItem('contrast',"0");}return false;});var $LinkEcrireAvis=$jq("#lien-ecrire-avis");var $BlockRedactionAvis=$jq(".field--name-field-formulaire-depot-avis");var $ItemNoteAvis=$jq(".form-item-note-avis");if(!$ItemNoteAvis.hasClass("has-error")){$BlockRedactionAvis.removeClass("avis-afficher");$BlockRedactionAvis.addClass("avis-masquer");}else{$BlockRedactionAvis.removeClass("avis-masquer");$BlockRedactionAvis.addClass("avis-afficher");}$LinkEcrireAvis.click(function(){if(!$BlockRedactionAvis.hasClass("avis-afficher")){$BlockRedactionAvis.removeClass("avis-masquer");$BlockRedactionAvis.addClass("avis-afficher");}else{$BlockRedactionAvis.removeClass("avis-afficher");$BlockRedactionAvis.addClass("avis-masquer");}return false;});var $LinkAvis=$jq("#lien-tous-les-avis");var $BlockAvis=$jq(".field--name-field-liste-avis");$BlockAvis.addClass("avis-masquer");$LinkAvis.click(function(){if(!$BlockAvis.hasClass("avis-afficher")){$BlockAvis.removeClass("avis-masquer");$BlockAvis.addClass("avis-afficher");$LinkAvis.text($LinkAvis.text().replace("Voir","Masquer"));}else{$BlockAvis.removeClass("avis-afficher");$BlockAvis.addClass("avis-masquer");$LinkAvis.text($LinkAvis.text().replace("Masquer","Voir"));}return false;});if(null!==sessionStorage.getItem('contrast')&&sessionStorage.getItem('contrast')==="1"){$jq("body").addClass("contraste-active");$skipLinkContraste.text('Rétablir le contraste');$skipLinkContraste_header.children('span').text('Rétablir le contraste');}else{}$jq("#a2apage_sm_ifr").removeAttr("frameborder");function init(){var iBase=TextResizeDetector.addEventListener(onFontResize,null);}$skipNav.on('click','#lien-recherche',function(){$jq("#toggle-search-header-block").trigger("click");});var $regionHeader=$jq('header .region-header');var paddingLeft=$regionHeader.css('padding-left');var paddingRight=$regionHeader.css('padding-right');function onFontResize(e,args){var textPerCent=args[0].iSize/args[0].iBase*100;if(textPerCent>150)$jq('.bar-sites-mayenne .region, header .region-header').css('padding-left','40px').css('padding-right','40px');else $jq('.bar-sites-mayenne .region, header .region-header').css('padding-left',paddingLeft).css('padding-right',paddingRight);}TextResizeDetector.TARGET_ELEMENT_ID='skip-nav-container';TextResizeDetector.USER_INIT_FUNC=init;$jq(".dropdown .special-dropdown-toggle").click(function(){$jq(this).parent(".dropdown").toggleClass('open');$jq(this).attr("aria-expanded",($jq(this).attr("aria-expanded")=="false")?"true":"false");});var $role_button=$jq('[role="button"]');$role_button.each(function(){$jq(this).on('keydown',function(e){if(e.which===32||e.which===13){e.preventDefault();$jq(this).click();}});});$jq('.field--name-field-fichier a').attr('target','_blank');$jq('.field--name-field-mots-cles, .views-field-field-mots-cles').remove();$jq(".dropdown-share .dropdown-toggle").click(function(e){e.preventDefault();if("false"==$jq('.dropdown-share .dropdown-toggle').attr("aria-expanded")){$jq(".dropdown-share .dropdown-toggle").attr("aria-expanded","true");$jq(".dropdown-share .dropdown-buttons").show();}else{$jq(".dropdown-share .dropdown-toggle").attr("aria-expanded","false");$jq(".dropdown-share .dropdown-buttons").hide();}});});$jq(window).resize(function(){});Drupal.viewsSlideshowControlsText.pause=function(options){var playText=Drupal.theme.viewsSlideshowControlsPlay?Drupal.theme('viewsSlideshowControlsPlay'):'';var pauseText=Drupal.theme.viewsSlideshowControlsPause?Drupal.theme('viewsSlideshowControlsPause'):'';var $element=$jq('#views_slideshow_controls_text_pause_'+options.slideshowID);var linkContentString=$element.find('a').html().replace(playText,pauseText);$element.find('a').html(linkContentString);$element.removeClass('views-slideshow-controls-text-status-play');
35$element.addClass('views-slideshow-controls-text-status-pause');};Drupal.viewsSlideshowControlsText.play=function(options){var playText=Drupal.theme.viewsSlideshowControlsPlay?Drupal.theme('viewsSlideshowControlsPlay'):'';var pauseText=Drupal.theme.viewsSlideshowControlsPause?Drupal.theme('viewsSlideshowControlsPause'):'';var $element=$jq('#views_slideshow_controls_text_pause_'+options.slideshowID);var linkContentString=$element.find('a').html().replace(pauseText,playText);$element.find('a').html(linkContentString);$element.removeClass('views-slideshow-controls-text-status-pause');$element.addClass('views-slideshow-controls-text-status-play');};(function($,Drupal){Drupal.behaviors.gtmGdprEvent={attach:function(){const status=Drupal.eu_cookie_compliance.getCurrentStatus();const allCategories=drupalSettings.eu_cookie_compliance.cookie_categories;const categoriesCount=allCategories.length;const selectedCategories=Drupal.eu_cookie_compliance.getAcceptedCategories();var gtmVars={'event':'gdpr'};if(status===null&&selectedCategories.length==0)for(var i=0;i<categoriesCount;i++)gtmVars[allCategories[i]]=0;else for(i=0;i<categoriesCount;i++)if($.inArray(allCategories[i],selectedCategories)>-1)gtmVars[allCategories[i]]=1;else gtmVars[allCategories[i]]=0;dataLayer.push(gtmVars);}};})(jQuery,Drupal);; 36$jq(document).ready(function(){$jq('.content-slideshow').contentSlideshow();});$jq.fn.contentSlideshow=function(options){return this.each(function(){var self=$jq.extend({},$jq.fn.contentSlideshow.defaults,options,{$contentSlideshow:$jq(this),$timeout:null});$jq.fn.contentSlideshow.initialisation(self);});};$jq.fn.contentSlideshow.defaults={};$jq.fn.contentSlideshow.initialisation=function(self){var $label=$jq('<h2 />',{'class':'label'}).text(self.$contentSlideshow.find('h2').text());var $slideshow=$jq('<div />',{'class':'slideshow','data-index':0});var $ombre=$jq('<div />',{'class':'slideshow-ombre'});var $dotContainer=$jq('<ul />',{'class':'dot-container'});var $arrowLeft=$jq('<a />',{'href':'#','class':'arrow-left','role':'button','onclick':'event.preventDefault();','aria-label':'Précédent'});var $arrowRight=$jq('<a />',{'href':'#','class':'arrow-right','role':'button','onclick':'event.preventDefault();','aria-label':'Suivant'});var $player=$jq('<a />',{'href':'#','class':'player','role':'button','aria-label':'Pause'});var $link=self.$contentSlideshow.find('.special-link');$ombre.append($arrowLeft).append($arrowRight).append($player).append($dotContainer).append($link);;$slideshow.append($ombre).append($label);self.$contentSlideshow.find('.field--items > .field--item').each(function(j,itemElement){var $image=$jq(itemElement).find('.field--name-field-visuel picture');var $title=$jq('<p />',{'class':'text'}).text($jq(itemElement).find('.field--name-field-display-title').text());var $legende=$jq(itemElement).find('.field--name-field-legende').text();var $copyright=$jq(itemElement).find('.field--name-field-copyright').text();if($copyright)if($legende)var $legende=$jq('<p />',{'class':'text'}).text($legende+' - Copyright © '+$copyright);else var $legende=$jq('<p />',{'class':'text'}).text('Copyright © '+$copyright);else{if($legende)var $legende=$jq('<p />',{'class':'text'}).text($legende);}$slideshow.append($jq('<div />',{'class':'slide','tabindex':'-1'}).append($image).append($title).append($legende));$dotContainer.append($jq('<li />',{'class':'dot','data-index':j}).append($jq('<button />').append($jq('<span />',{'class':'sr-only'}).text('Diapo '+(j+1)))));});self.$contentSlideshow.empty().append($slideshow);$jq(document).on('click','.dot-container .dot',function(event){event.preventDefault();var index=$jq(this).attr('data-index');$jq.fn.contentSlideshow.showSlide(self,index);$jq.fn.contentSlideshow.reset(self);$jq.fn.contentSlideshow.changeFocus(self,index);});$jq(document).on('click','.content-slideshow .arrow-left',function(event){event.preventDefault();var index=parseInt($jq(this).closest('.slideshow').attr('data-index'))-1;$jq.fn.contentSlideshow.showSlide(self,index);$jq.fn.contentSlideshow.reset(self);$jq.fn.contentSlideshow.changeFocus(self,index);});$jq(document).on('click','.content-slideshow .arrow-right',function(){event.preventDefault();
36var index=parseInt($jq(this).closest('.slideshow').attr('data-index'))+1;$jq.fn.contentSlideshow.showSlide(self,index);$jq.fn.contentSlideshow.reset(self);$jq.fn.contentSlideshow.changeFocus(self,index);});$jq(document).on('keydown','.content-slideshow .arrow-left',function(event){if(event.which===32||event.which===13){event.preventDefault();var index=parseInt($jq(this).closest('.slideshow').attr('data-index'))-1;$jq.fn.contentSlideshow.showSlide(self,index);$jq.fn.contentSlideshow.reset(self);$jq.fn.contentSlideshow.changeFocus(self,index);}});$jq(document).on('keydown','.content-slideshow .arrow-right',function(){if(event.which===32||event.which===13){event.preventDefault();var index=parseInt($jq(this).closest('.slideshow').attr('data-index'))+1;$jq.fn.contentSlideshow.showSlide(self,index);$jq.fn.contentSlideshow.reset(self);$jq.fn.contentSlideshow.changeFocus(self,index);}});$jq(document).on('click','.player',function(event){event.preventDefault();$jq(this).find('i').hasClass('play')?$jq.fn.contentSlideshow.start(self):$jq.fn.contentSlideshow.stop(self);});$jq(document).on('keydown','.player',function(event){if(event.which===32||event.which===13){event.preventDefault();$jq(this).find('i').hasClass('play')?$jq.fn.contentSlideshow.start(self):$jq.fn.contentSlideshow.stop(self);}});$jq.fn.contentSlideshow.showSlide(self,0);if($slideshow.find('.slide').length>1)$jq.fn.contentSlideshow.start(self);};$jq.fn.contentSlideshow.start=function(self){self.$contentSlideshow.find('.player').attr('aria-label','Pause').empty().append($jq('<i />',{'class':'pause'}));self.$timeout=setInterval(function(){$jq.fn.contentSlideshow.showSlide(self,parseInt(self.$contentSlideshow.find('.slideshow').attr('data-index'))+1);},4000);};$jq.fn.contentSlideshow.stop=function(self){self.$contentSlideshow.find('.player').attr('aria-label','Reprendre').empty().append($jq('<i />',{'class':'play'}));if(null!==self.$timeout)clearInterval(self.$timeout);};$jq.fn.contentSlideshow.reset=function(self){$jq.fn.contentSlideshow.stop(self);$jq.fn.contentSlideshow.start(self);};$jq.fn.contentSlideshow.showSlide=function(self,index){var length=parseInt(self.$contentSlideshow.find('.slideshow .slide').length);var i=self.$contentSlideshow.find('.slideshow').attr('data-index');if(index>=length)index=0;if(index<0)index=length-1;self.$contentSlideshow.find('.slideshow').attr('data-index',index);self.$contentSlideshow.find('.slide:eq('+i+')').fadeOut(500,function(){$jq(this).removeClass('active');$jq(this).removeAttr('aria-current');});self.$contentSlideshow.find('.slide:eq('+index+')').fadeIn(500,function(){$jq(this).addClass('active');$jq(this).attr('aria-current',true);});var slide_number=parseInt(index)+1;self.$contentSlideshow.find('.dot-container .dot').removeClass('active');self.$contentSlideshow.find('.dot-container .dot').removeAttr('aria-current');self.$contentSlideshow.find('.dot-container .dot button').removeAttr('title');self.$contentSlideshow.find('.dot-container .dot:eq('+index+')').addClass('active');self.$contentSlideshow.find('.dot-container .dot:eq('+index+')').attr('aria-current',true);self.$contentSlideshow.find('.dot-container .dot:eq('+index+') button').attr('title',slide_number+' active');};$jq.fn.contentSlideshow.changeFocus=function(self,index){self.$contentSlideshow.find('.slide:eq('+index+')').focus();};; 37$jq(document).ready(function(){$jq('.node-slideshow').nodeSlideshow();});$jq.fn.nodeSlideshow=function(){return this.each(function(){var $slideshow=$jq(this).attr('data-index',0);var $pager=$jq('<div />',{'class':'node-slideshow-pager'});if($slideshow.find('.views_slideshow_slide').length>1){$slideshow.find('.view-content').addClass("has-pager");$slideshow.find('.views_slideshow_slide').each(function(index){$jq(this).attr('style','display:none;');var $bullet=$jq('<li />',{'class':'node-slideshow-bullet','data-index':index}).append($jq('<button />').append($jq('<span />',{'class':'sr-only'}).text('Diapo '+(index+1))));$bullet.on('click',function(){var index=parseInt($jq(this).attr('data-index'));$jq.fn.nodeSlideshow.showSlide($slideshow,index);$jq.fn.nodeSlideshow.changeFocus($slideshow,index);});$pager.append($bullet);});var $arrowLeft=$jq('<a />',{'href':'#','class':'node-slideshow-arrow-left','role':'button','onclick':'event.preventDefault();','aria-label':'Précédent'});var $arrowRight=$jq('<a />',{'href':'#','class':'node-slideshow-arrow-right','role':'button','onclick':'event.preventDefault();','aria-label':'Suivant'});
37$arrowLeft.on('click',function(){var index=parseInt($pager.find('.node-slideshow-bullet.active').attr('data-index'))-1;$jq.fn.nodeSlideshow.showSlide($slideshow,index);$jq.fn.nodeSlideshow.changeFocus($slideshow,index);});$arrowRight.on('click',function(){var index=parseInt($pager.find('.node-slideshow-bullet.active').attr('data-index'))+1;$jq.fn.nodeSlideshow.showSlide($slideshow,index);$jq.fn.nodeSlideshow.changeFocus($slideshow,index);});$arrowLeft.on('keydown',function(event){if(event.which===32||event.which===13){event.preventDefault();var index=parseInt($pager.find('.node-slideshow-bullet.active').attr('data-index'))-1;$jq.fn.nodeSlideshow.showSlide($slideshow,index);$jq.fn.nodeSlideshow.changeFocus($slideshow,index);}});$arrowRight.on('keydown',function(event){if(event.which===32||event.which===13){event.preventDefault();var index=parseInt($pager.find('.node-slideshow-bullet.active').attr('data-index'))+1;$jq.fn.nodeSlideshow.showSlide($slideshow,index);$jq.fn.nodeSlideshow.changeFocus($slideshow,index);}});$slideshow.prepend($pager);if(!$slideshow.is('[slideshow-arrow-out-of-pager]'))$pager.prepend($arrowRight).prepend($arrowLeft);else $slideshow.prepend($arrowRight).prepend($arrowLeft);$pager.find('.node-slideshow-bullet').first().addClass('active');$jq.fn.nodeSlideshow.start($slideshow);}});};$jq.fn.nodeSlideshow.start=function($slideshow){$jq.fn.nodeSlideshow.showSlide($slideshow,0);};$jq.fn.nodeSlideshow.showSlide=function($slideshow,index){var length=parseInt($slideshow.find('.node-slideshow-pager .node-slideshow-bullet').length);var i=$slideshow.attr('data-index');if(index>=length)index=0;if(index<0)index=length-1;$slideshow.attr('data-index',index);$slideshow.find('.views_slideshow_slide:eq('+i+')').fadeOut(0,function(){$jq(this).removeClass('active');$jq(this).removeAttr('aria-current');});$slideshow.find('.views_slideshow_slide:eq('+index+')').fadeIn(0,function(){$jq(this).addClass('active');$jq(this).attr('aria-current',true);});var slide_number=parseInt(index)+1;$slideshow.find('.node-slideshow-pager .node-slideshow-bullet').removeClass('active');$slideshow.find('.node-slideshow-pager .node-slideshow-bullet').removeAttr('aria-current');$slideshow.find('.node-slideshow-pager .node-slideshow-bullet button').removeAttr('title');$slideshow.find('.node-slideshow-pager .node-slideshow-bullet:eq('+index+')').addClass('active');$slideshow.find('.node-slideshow-pager .node-slideshow-bullet:eq('+index+')').attr('aria-current',true);$slideshow.find('.node-slideshow-pager .node-slideshow-bullet:eq('+index+') button').attr('title',slide_number+' active');};$jq.fn.nodeSlideshow.changeFocus=function($slideshow,index){$slideshow.find('.views_slideshow_slide:eq('+index+')').focus();};; 38TextResizeDetector=function(){var el=null;var iIntervalDelay=200;var iInterval=null;var iCurrSize=16;var iBase=16;var aListeners=[];var $body=$jq('body');var createControlElement=function(){el=document.createElement('span');el.id='textResizeControl';el.innerHTML=' ';el.style.position="absolute";el.style.left="-9999px";el.style.lineHeight="1em";var elC=document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID);if(elC)elC.insertBefore(el,elC.firstChild);};function _stopDetector(){window.clearInterval(iInterval);iInterval=null;};function _startDetector(){if(!iInterval)iInterval=window.setInterval('TextResizeDetector.detect()',iIntervalDelay);};function _detect(){var iNewSize=TextResizeDetector.getSize();if(iNewSize!==iCurrSize)for(var i=0;i<aListeners.length;i++){aListnr=aListeners[i];var oArgs={iBase,iDelta:((iCurrSize!=-1)?iNewSize-iCurrSize+'px':"0px"),iSize:iCurrSize=iNewSize};if(!aListnr.obj)aListnr.fn('textSizeChanged',[oArgs]);else aListnr.fn.apply(aListnr.obj,['textSizeChanged',[oArgs]]);}return iCurrSize;};var onAvailable=function(){if(!TextResizeDetector.onAvailableCount_i)TextResizeDetector.onAvailableCount_i=0;if(document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID)){TextResizeDetector.init();if(TextResizeDetector.USER_INIT_FUNC)TextResizeDetector.USER_INIT_FUNC();TextResizeDetector.onAvailableCount_i=null;}else{if(TextResizeDetector.onAvailableCount_i<600){TextResizeDetector.onAvailableCount_i++;setTimeout(onAvailable,200);}}};setTimeout(onAvailable,500);return {init:function(){createControlElement();_startDetector();},addEventListener:function(fn,obj,bScope){aListeners[aListeners.length]={fn,obj};return iBase;},detect:function(){return _detect();}
38,getSize:function(){var iSize;return el.offsetHeight;},stopDetector:function(){return _stopDetector();},startDetector:function(){return _startDetector();}};}();TextResizeDetector.TARGET_ELEMENT_ID='doc';TextResizeDetector.USER_INIT_FUNC=null;;
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.