1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2Drupal.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;};};; 3var Helpers=(function(helpers,$){'use strict';helpers.demoHelper=function(demoArg){};helpers.scrollTo=function($target,hash,offset,duration){if(typeof offset==='undefined')offset=0;if(typeof duration==='undefined')duration=500;var scrollTarget=$target.offset().top-offset;return $('html, body').animate({scrollTop:scrollTarget},duration,function(){$target.focus();if(!$target.is(':focus')){$target.attr('tabindex','-1');$target.focus();$target.removeAttr('tabindex');if(hash)location.hash=hash;}$('html, body').scrollTop(scrollTarget);}).promise();};return helpers;}(Helpers||{},jQuery));; 4(function($,Drupal,Helpers,once){'use strict';Drupal.behaviors.backTop={attach:function(context){$(once('back-top','body',context)).each(function(){var $backTopElement=$('.back-top');if($backTopElement.length){const scrollTrigger=200;const scrollStop=$(document).height()-110;const backToTop=function(){if($(window).scrollTop()>scrollTrigger)$backTopElement.addClass('show');else $backTopElement.removeClass('show');if($(window).scrollTop()>scrollTrigger&&$(window).scrollTop()<scrollStop)$backTopElement.addClass('scrolling');else $backTopElement.removeClass('scrolling');};backToTop();$(window).on('scroll',Drupal.debounce(function(){backToTop();},200));$backTopElement.on('click',function(e){var $body=$('body');Helpers.scrollTo($body,0,700);});}});}};}(jQuery,Drupal,Helpers,once));; 5(function($,Drupal,once){'use strict';Drupal.behaviors.collapsible={attach:function(context){$(once('collapsible','body',context)).each(function(){var $body=$('body');$body.on('click','.js-collapsible-cta',function(event){var $cta=$(this);var $parent=$cta.closest('.js-collapsible');var rel=$parent.attr('data-collapsible-rel');var $others;if($cta.attr('aria-expanded')==='false'){if(rel){$others=$('[data-collapsible-rel="'+rel+'"].is-expanded');$others.find('.js-collapsible-cta').first().attr('aria-expanded','false');$others.removeClass('is-expanded');$others.trigger('collapsible-close');}$cta.attr('aria-expanded','true');$parent.addClass('is-expanded');$parent.trigger('collapsible-open');}else{$cta.attr('aria-expanded','false');$parent.removeClass('is-expanded');$parent.trigger('collapsible-close');}});$body.on('click focusin',function(event){var $target=$(event.target);var $parent=$target.parents('.js-collapsible');$('.js-collapsible.is-expanded').not($parent).each(function(){var $collapsible=$(this);if($collapsible.attr('data-collapsible-close')==='true'){var $cta=$collapsible.find('.js-collapsible-cta');$cta.attr('aria-expanded','false');$collapsible.removeClass('is-expanded');$collapsible.trigger('collapsible-close');}});});});}};}(jQuery,Drupal,once));; 6(function($,Drupal,Helpers,once){'use strict';Drupal.behaviors.collapsibleSearch={attach:function(context){$(once('collapsible-search','.collapsible-search',context)).each(function(){var $current=$(this);var $buttonOpen=$current.find('.collapsible-search-cta');var $buttonClose=$current.find('.collapsible-search-cta-close');function focus(){var focusableElements='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';var inner=document.querySelectorAll('.collapsible-search.is-expanded .collapsible-search-inner')[0];var firstFocusableElement=inner.querySelectorAll(focusableElements)[0];var focusableContent=inner.querySelectorAll(focusableElements);var lastFocusableElement=focusableContent[focusableContent.length-1];document.addEventListener('keydown',function(e){let isTabPressed=e.key==='Tab'||e.keyCode===9;if(!isTabPressed)return;if(e.shiftKey){if(document.activeElement===firstFocusableElement){lastFocusableElement.focus();e.preventDefault();}}else{if(document.activeElement===lastFocusableElement){firstFocusableElement.focus();e.preventDefault();}}});firstFocusableElement.focus();}$buttonOpen.on('click',function(){$('body').addClass('no-scroll');$current.addClass("is-expanded");focus();});$buttonClose.on('click',function(){$('body').removeClass('no-scroll');$buttonOpen.focus();$current.removeClass("is-expanded");});});}};}(jQuery,Drupal,Helpers,once));; 7(function($,Drupal){'use strict';Drupal.behaviors.orejimeCustom={attach:function(context){$(document).ready(function(){$('.cookie-link').on('click',function(e){e.preventDefault();orejime.show();setTimeout(()=>
7{$('.orejime-Modal-saveButton').on('click',function(){document.location.reload();});},1000);});$('.orejime-Notice-description').html(Drupal.t('La CNDP utilise des cookies dont le dépôt est soumis à votre consentement'+' sur ce site afin de mesurer lâaudience du site, des déposer des traceurs tiers vous permettant de visionner des vidéos et de partager du contenu sur'+' les réseaux sociaux ou plateformes présents sur le site (Facebook, YouTube). Pour en savoir plus, cliquez ')+'<a href="/politique-de-cookies">ici.</a>'+'<br> <br>'+Drupal.t('Si vous acceptez le dépôt de ces cookies, vous pourrez revenir à tout moment sur votre décision via lâoutil de gestion des cookies en footer.'));});}};}(jQuery,Drupal));; 8(function($,Drupal,once){'use strict';Drupal.behaviors.header={attach:function(context){$(once('header','body',context)).each(function(){var $header=$('.header').first();var $headerWrap=$('.header-wrapper');function updateHeader(){var $headerWrapper=$header.find('.header-wrapper').outerHeight();$header.css('padding-top',$headerWrapper);}function updateHeaderWrapper(){$headerWrap.css('margin-top',$('body').css('padding-top'));}function headerScroll(){var windowScroll=$(window).scrollTop();if(windowScroll>0)$header.addClass('is-scrolling');else $header.removeClass('is-scrolling');}headerScroll();updateHeader();setTimeout(updateHeaderWrapper,300);$(window).on('scroll',function(){headerScroll();});$(window).on('resize',Drupal.debounce(function(){updateHeader();updateHeaderWrapper();},200));});}};}(jQuery,Drupal,once));; 9(function($,once){'use strict';Drupal.behaviors.menuExpanded={attach:function(context){var $context=$('body');$(once('menu-expanded','body',context)).each(function(){$context.on('click','.menu-link.no-link',function(event){var $target=$(event.target);var $item=$target.closest('.menu-item');if($item.find('.menu-submenu').length>0){if(!$item.is('.is-expanded')){$item.siblings('.menu-item.is-expanded').removeClass('is-expanded').find('> .menu-link.no-link').attr('aria-expanded','false');$item.addClass('is-expanded').find('> .menu-link.no-link').attr({'aria-expanded':'true'});}else $item.removeClass('is-expanded').find('> .menu-link.no-link').attr('aria-expanded','false');return false;}});$context.on('click focusin',function(event){var $target=$(event.target);var $item=$target.closest('.menu-item');if($item.length===0)$('.menu-item.is-expanded').removeClass('is-expanded').find('> .menu-link.no-link').attr('aria-expanded','false');else $item.siblings('.menu-item.is-expanded').removeClass('is-expanded').find('> .menu-link.no-link').attr('aria-expanded','false');});});}};}(jQuery,once));; 10(function(Drupal,once){'use strict';Drupal.behaviors.resizeVideo={attach:function(context){once('resizeVideos','main',context).forEach((element)=>{const players=['iframe[src*="youtube.com"]','iframe[src*="vimeo.com"]','iframe[src*="youtu.be"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="dailymotion.com"]'];const videos=document.querySelectorAll(players.join(','));if(videos.length)videos.forEach((video)=>{const width=video.getAttribute('width');const height=video.getAttribute('height');const aspectRatio=height/width;const wrapper=document.createElement('div');wrapper.className='resize-video';wrapper.style.paddingBottom=aspectRatio*100+'%';video.parentNode.insertBefore(wrapper,video);wrapper.appendChild(video);video.removeAttribute('height');video.removeAttribute('width');});});}};}(Drupal,once));; 11(function($,Drupal,once){'use strict';Drupal.behaviors.rwdTable={attach:function(context){$(once('rwd-table','.text-formatted table, .cke_editable table',context)).each(function(){$(this).wrap('<div class="rwd-table"></div>');});}};}(jQuery,Drupal,once));; 12(function($,Drupal,once){'use strict';Drupal.behaviors.social={attach:function(context){$(once('social','.social',context)).each(function(){$(this).on('click','.print',function(event){window.print();});});}};}(jQuery,Drupal,once));; 13(function($,Drupal,once){'use strict';Drupal.behaviors.textFormatted={attach:function(context){$(once('text-formatted','.text-formatted',context)).each(function(){var $current=$(this);var $external=$current.find('a[target="_blank"]');$external.append("<span class='external-link' aria-hidden='true'></span>");});}};}(jQuery,Drupal,once));; 14(function($,Drupal){"use strict";const appCallback=(consent,app)=>{document.dispatchEvent(new CustomEvent('orejimeAppCallback',{detail:{consent,app:app.name}}));};Drupal.behaviors.orejime={attach:function(context,settings){if(settings.orejime)window.orejimeConfig=OrejimeConfig.init(context,settings);if(document.querySelector('.consent-modal-button'))document.querySelector('.consent-modal-button').addEventListener('click',function(){orejime.show();},false);
14if(document.querySelector('.reset-button'))document.querySelector('.reset-button').addEventListener('click',function(){orejime.internals.manager.resetConsent();location.reload();},false);}};var OrejimeConfig={init:function(context,settings){var lang=settings.orejime.language;var config={elementID:'orejime',lang,cookieName:settings.orejime.cookie_name,cookieExpiresAfterDays:settings.orejime.expires_after_days,cookieDomain:settings.orejime.cookie_domain,mustConsent:settings.orejime.must_consent,mustNotice:settings.orejime.must_notice,privacyPolicy:settings.orejime.privacy_policy,default:true,translations:{},logo:settings.orejime.logo,debug:settings.orejime.debug,apps:[]};config['translations'][lang]=$.extend({},settings.orejime.texts,{'purposes':{}});$.each(settings.orejime.purposes,function(index,value){config['translations'][lang]['purposes'][value]=value;});$.each(settings.orejime.manage,function(index,value){config['translations'][lang][index]={'description':value.description};config['apps'].push({name:value.name,title:value.label,purposes:value.purposes,cookies:value.cookies,required:parseInt(value.required),default:parseInt(value.default),callback:appCallback});});if(settings.orejime.categories!==null&&settings.orejime.categories.length!=0){config['categories']={};var cat=[];var description=[];$.each(settings.orejime.categories,function(index,value){var apps=[];var c=1;$.each(value.apps,function(i,v){if(v!==0)apps[c]=v;c++;});cat.push({name:value.name,title:value.title,apps});if(value.description!=='')description[value.name]={'description':value.description};});config['categories']=cat;config['translations'][lang]['categories']=description;}return config;}};})(jQuery,Drupal);;
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.