~etalab/code.gouv.fr

573942348f0bc537d6cefc7fb76be7541500374e — Bastien Guerry 10 days ago 60c6327 + 46166a3
Merge branch 'preproduction' into production
M resources/public/index.html => resources/public/index.html +7 -35
@@ 1,5 1,5 @@
<!DOCTYPE html>
<html data-fr-theme="">
<html id="html" data-fr-scheme="">
  <head>
    <title>code.gouv.fr - Codes sources du secteur public - French Public Sector Sources Codes</title>
    <meta charset="utf-8">


@@ 30,46 30,18 @@
  </head>
  <body>
    <div id="app"></div>
    <dialog id="fr-theme-modal" class="fr-modal" role="dialog" aria-labelledby="fr-theme-modal-title">
      <div class="fr-container fr-container--fluid">
        <div class="fr-grid-row fr-grid-row--center">
          <div class="fr-col-12 fr-col-md-6 fr-col-lg-4">
            <div class="fr-modal__body">
              <div class="fr-modal__header">
                <button class="fr-link--close fr-link" aria-controls="fr-theme-modal">Fermer</button>
              </div>
              <div class="fr-modal__content">
                <h1 id="fr-theme-modal-title" class="fr-modal__title">Paramètres d’affichage</h1>
                <div id="fr-switch-theme" class="fr-form-group fr-switch-theme">
                  <fieldset class="fr-fieldset">
                    <legend class="fr-fieldset__legend fr-text--regular">Choisissez un thème pour personnaliser l’apparence du site.</legend>
                    <div class="fr-fieldset__content">
                      <div class="fr-radio-group fr-radio-rich">
                        <input type="radio" id="fr-radios-theme-light" name="fr-radios-theme" value="light">
                        <label class="fr-label" for="fr-radios-theme-light">Thème clair</label>
                      </div>
                      <div class="fr-radio-group fr-radio-rich">
                        <input type="radio" id="fr-radios-theme-dark" name="fr-radios-theme" value="dark">
                        <label class="fr-label" for="fr-radios-theme-dark">Thème sombre</label>
                      </div>
                    </div>
                  </fieldset>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </dialog>

    <script src="https://tag.aticdn.net/619928/smarttag.js"></script>
    <script>var ATTag = new ATInternet.Tracker.Tag();ATTag.page.send({name:'Page_Name'});</script>
    <script src="/js/codegouvfr.js"></script>
    <script src="/js/dsfr.nomodule.min.js"></script>
    <script type="module" src="/js/dsfr.module.min.js"></script>
    <script nomodule src="/js/dsfr.nomodule.min.js"></script>
    <script>codegouvfr.core.init();</script>
    <script>var ATTag = new ATInternet.Tracker.Tag();ATTag.page.send({name:'Page_Name'});</script>

    <noscript>
      <p>We do understand why you might not want to use Javascript.</p>
      <p>To access to the data exposed in this website, please refer to <a href="https://git.sr.ht/~etalab/code.gouv.fr">its repository</a>.</p>
      <p>Nous comprenons bien pourquoi vous ne souhaitez pas utiliser de Javascript.</p>
      <p>Pour accéder aux données exposées via ce site web, merci de vous référer à <a href="https://git.sr.ht/~etalab/code.gouv.fr">ce dépôt</a>.</p>
    </noscript>

  </body>

A resources/public/js/dsfr.module.min.js => resources/public/js/dsfr.module.min.js +3 -0
@@ 0,0 1,3 @@
/*! DSFR v1.2.0 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
const e=new class{constructor(){this.modules={}}create(e){const t=new e;this.modules[t.type]=t}getModule(e){return this.modules[e]}add(e,t){this.modules[e].add(t)}remove(e,t){this.modules[e].remove(t)}get isActive(){return this._isActive}set isActive(e){if(e===this._isActive)return;this._isActive=e;const t=Object.keys(this.modules).map((e=>this.modules[e]));if(e)for(const e of t)e.activate();else for(const e of t)e.deactivate()}get isLegacy(){return this._isLegacy}set isLegacy(e){e!==this._isLegacy&&(this._isLegacy=e)}},t="fr",s="dsfr",i="1.2.0";class n{constructor(e,t,s,i){switch(this.level=e,this.light=t,this.dark=s,i){case"warn":this.logger=console.warn;break;case"error":this.logger=console.error;break;default:this.logger=console.log}}log(...e){const t=new r(s);for(const s of e)t.add(s);this.print(t)}print(e){e.setColor(this.color),this.logger.apply(console,e.getMessage())}get color(){return window.matchMedia("(prefers-color-scheme: dark)").matches?this.dark:this.light}}class r{constructor(e){this.inputs=["%c"],this.styles=["font-family:Marianne","line-height: 1.5"],this.objects=[],e&&this.add(`${e} :`)}add(e){switch(typeof e){case"object":case"function":this.inputs.push("%o "),this.objects.push(e);break;default:this.inputs.push(`${e} `)}}setColor(e){this.styles.push(`color:${e}`)}getMessage(){return[this.inputs.join(""),this.styles.join(";"),...this.objects]}}const o={trace:new n(0,"#616161","#989898"),debug:new n(1,"#000091","#8B8BFF"),info:new n(2,"#007c3b","#00ed70"),warn:new n(3,"#ba4500","#fa5c00","warn"),error:new n(4,"#D80600","#FF4641","error")};const a=new class{constructor(){this.level=2;for(const e in o){const t=o[e];this[e]=(...e)=>{this.level<=t.level&&t.log.apply(t,e)},this[e].print=t.print.bind(t)}}state(){const t=new r;t.add(e),this.trace.print(t)}tree(){const t=e.getModule("stage");if(!t)return;const s=new r;this._branch(t.root,0,s),this.trace.print(s)}_branch(e,t,s){let i="";if(t>0){let e="";for(let s=0;s<t;s++)e+="    ";i+=e+"└─ "}i+=`[${e.id}] ${e.html}`,s.add(i),s.add({"@":e}),s.add("\n");for(const n of e.children)i+=this._branch(n,t+1,s)}},c=e=>{"loading"!==document.readyState?window.requestAnimationFrame(e):document.addEventListener("DOMContentLoaded",e)},l={AUTO:"auto",MANUAL:"manual",RUNTIME:"runtime",LOADED:"loaded",VUE:"vue",ANGULAR:"angular",REACT:"react"};const h=new class{constructor(){this._mode=l.AUTO,this.isStarted=!1,this.starting=this.start.bind(this),this.preventManipulation=!1}configure(e={},t){this.startCallback=t,!0===e.verbose&&(a.level=0),this.mode=e.mode||l.AUTO}set mode(e){switch(e){case l.AUTO:this.preventManipulation=!1,t=this.starting,c(t);break;case l.LOADED:this.preventManipulation=!1,c(this.starting);break;case l.RUNTIME:this.preventManipulation=!1,this.start();break;case l.MANUAL:this.preventManipulation=!1;break;case l.VUE:case l.ANGULAR:case l.REACT:this.preventManipulation=!0;break;default:return void a.error("Illegal mode")}var t;this._mode=e,a.info(`mode set to ${e}`)}get mode(){return this._mode}start(){a.info("start"),this.startCallback()}};class d{constructor(){this._collection=[]}forEach(e){this._collection.forEach(e)}map(e){return this._collection.map(e)}get length(){return this._collection.length}add(e){return!(this._collection.indexOf(e)>-1)&&(this._collection.push(e),this.onAdd&&this.onAdd(),this.onPopulate&&1===this._collection.length&&this.onPopulate(),!0)}remove(e){const t=this._collection.indexOf(e);if(-1===t)return!1;this._collection.splice(t,1),this.onRemove&&this.onRemove(),this.onEmpty&&0===this._collection.length&&this.onEmpty()}execute(...e){for(const t of this._collection)t&&t.apply(null,e)}clear(){this._collection.length=0}clone(){const e=new d;return e._collection=this._collection.slice(),e}get collection(){return this._collection}}class u extends d{constructor(e){super(),this.type=e,this.isActive=!1}activate(){}deactivate(){}}const m=e=>`${t}-${e}`;m.selector=(e,t)=>(void 0===t&&(t="."),`${t}${m(e)}`),(m.attr=e=>`data-${m(e)}`).selector=(e,t)=>{let s=m.attr(e);return void 0!==t&&(s+=`="${t}"`),`[${s}]`},m.event=e=>`${s}.${e}`,m.emission=(e,t)=>`emission:${e}.${t}`;const p=(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t)),g=(e,t)=>{const s=e.parentElement;return s.matches(t)?s:s===document.documentElement?null:g(s,t)};class f{constructor(e,t,s){this.selector=e,this.InstanceClass=t,this.creator=s,this.instances=new d,this.isIntroduced=!1,this._instanceClassName=this.InstanceClass.instanceClassName,this._instanceClassNames=this.getInstanceClassNames(this.InstanceClass),this._property=this._instanceClassName.substring(0,1).toLowerCase()+this._instanceClassName.substring(1);const i=this._instanceClassName.replace(/[^a-zA-Z0-9]+/g,"-").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([^0-9])/g,"$1-$2").replace(/([^0-9])([0-9])/g,"$1-$2").toLowerCase();this._attribute=m.attr(`js-${i}`)}getInstanceClassNames(e){const t=Object.getPrototypeOf(e);return t&&"Instance"!==t.instanceClassName?[...this.getInstanceClassNames(t),e.instanceClassName]:[e.instanceClassName]}hasInstanceClassName(e){return this._instanceClassNames.indexOf(e)>-1}introduce(){this.isIntroduced||(this.isIntroduced=!0,e.getModule("stage").parse(document.documentElement,this))}parse(e,t){const s=[];return e.matches&&e.matches(this.selector)&&s.push(e),!t&&e.querySelectorAll&&e.querySelector(this.selector)&&s.push.apply(s,p(e,this.selector)),s}create(e){if(!e.node.matches(this.selector))return;const t=new this.InstanceClass;return this.instances.add(t),t}remove(e){this.instances.remove(e)}dispose(){const e=this.instances.collection;for(let t=e.length-1;t>-1;t--)e[t]._dispose();this.creator=null}get instanceClassName(){return this._instanceClassName}get instanceClassNames(){return this._instanceClassNames}get property(){return this._property}get attribute(){return this._attribute}}class b extends u{constructor(){super("register")}register(t,s,i){const n=new f(t,s,i);return this.add(n),e.isActive&&n.introduce(),n}activate(){for(const e of this.collection)e.introduce()}remove(e){e.dispose(),super.remove(e)}}let v=0;class y{constructor(e,t){t?this.id=t:(v++,this.id=v),this.node=e,this.attributeNames=[],this.instances=[],this._children=[],this._parent=null,this._projects=[]}get proxy(){const e=this;if(!this._proxy){this._proxy={id:this.id,get parent(){return e.parent?e.parent.proxy:null},get children(){return e.children.map((e=>e.proxy))}};for(const e of this.instances)this._proxy[e.registration.property]=e.proxy}return this._proxy}get html(){const e=this.node.outerHTML.indexOf(">");return this.node.outerHTML.substring(0,e+1)}project(e){-1===this._projects.indexOf(e)&&this._projects.push(e)}populate(){const e=this._projects.slice();this._projects.length=0;for(const t of e)this.create(t)}create(e){if(this.hasInstance(e.instanceClassName))return;a.debug(`create instance of ${e.instanceClassName} on element [${this.id}]`);const t=e.create(this);this.instances.push(t),t._config(this,e),this._proxy&&(this._proxy[e.property]=t.proxy)}remove(e){const t=this.instances.indexOf(e);t>-1&&this.instances.splice(t,1),this._proxy&&delete this._proxy[e.registration.property]}get parent(){return this._parent}get ascendants(){return[this.parent,...this.parent.ascendants]}get children(){return this._children}get descendants(){const e=[...this._children];return this._children.forEach((t=>e.push(...t.descendants))),e}addChild(e,t){return this._children.indexOf(e)>-1?null:(e._parent=this,!isNaN(t)&&t>-1&&t<this._children.length?this._children.splice(t,0,e):this._children.push(e),e)}removeChild(e){const t=this._children.indexOf(e);if(-1===t)return null;e._parent=null,this._children.splice(t,1)}emit(t,s){const i=e.getModule("stage").collection,n=[];for(const e of i)n.push(...e._emit(t,s));return n}_emit(e,t){const s=[];for(const i of this.instances)s.push(...i._emitter.emit(e,t));return s}ascend(e,t){return this._parent?this._parent._ascend(e,t):[]}_ascend(e,t){const s=[];for(const i of this.instances)s.push(...i._ascent.emit(e,t));return this._parent&&s.push(...this._parent._ascend(e,t)),s}descend(e,t){const s=[];for(const i of this._children)s.push(...i._descend(e,t));return s}_descend(e,t){const s=[];for(const i of this.instances)s.push(...i._descent.emit(e,t));for(const i of this._children)s.push(...i._descend(e,t));return s}getInstance(e){for(const t of this.instances)if(t.registration.hasInstanceClassName(e))return t;return null}hasInstance(e){return null!==this.getInstance(e)}getDescendantInstances(e,t,s){if(!e)return[];const i=[];for(const n of this._children){const r=n.getInstance(e);r&&(i.push(r),s)||(t&&n.hasInstance(t)||!n.children.length||i.push.apply(i,n.getDescendantInstances(e,t,s)))}return i}getAscendantInstance(e,t){if(!e||!this._parent)return null;const s=this._parent.getInstance(e);return s||(t&&this._parent.hasInstance(t)?null:this._parent.getAscendantInstance(e,t))}dispose(){for(const e of this.instances)e._dispose();this.instances.length=0,e.remove("stage",this),this.parent.removeChild(this),this._children.length=0,a.debug(`remove element [${this.id}] ${this.html}`)}prepare(e){-1===this.attributeNames.indexOf(e)&&this.attributeNames.push(e)}examine(){const e=this.attributeNames.slice();this.attributeNames.length=0;for(let t=this.instances.length-1;t>-1;t--)this.instances[t].examine(e)}}class E extends y{constructor(){super(document.documentElement,"root"),this.node.setAttribute(m.attr("js"),!0)}}class _ extends u{constructor(){super("stage"),this.root=new E,super.add(this.root),this.observer=new MutationObserver(this.mutate.bind(this)),this.modifications=[],this.willModify=!1,this.modifying=this.modify.bind(this)}hasElement(e){for(const t of this.collection)if(t.node===e)return!0;return!1}getElement(e){for(const t of this.collection)if(t.node===e)return t;const t=new y(e);return this.add(t),a.debug(`add element [${t.id}] ${t.html}`),t}getProxy(e){if(!this.hasElement(e))return null;return this.getElement(e).proxy}add(e){super.add(e),this.put(e,this.root)}put(e,t){let s=0;for(let i=t.children.length-1;i>-1;i--){const n=t.children[i],r=e.node.compareDocumentPosition(n.node);if(r&Node.DOCUMENT_POSITION_CONTAINS)return void this.put(e,n);if(r&Node.DOCUMENT_POSITION_CONTAINED_BY)t.removeChild(n),e.addChild(n,0);else if(r&Node.DOCUMENT_POSITION_PRECEDING){s=i+1;break}}t.addChild(e,s)}activate(){this.observer.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}deactivate(){this.observer.disconnect()}mutate(e){const t=[];e.forEach((e=>{switch(e.type){case"childList":e.removedNodes.forEach((e=>this.dispose(e))),e.addedNodes.forEach((e=>this.parse(e)));break;case"attributes":if(this.hasElement(e.target)){const s=this.getElement(e.target);s.prepare(e.attributeName),-1===t.indexOf(s)&&t.push(s);for(const e of s.descendants)-1===t.indexOf(e)&&t.push(e)}-1===this.modifications.indexOf(e.target)&&this.modifications.push(e.target)}})),t.forEach((e=>e.examine())),this.modifications.length&&!this.willModify&&(this.willModify=!0,window.requestAnimationFrame(this.modifying))}modify(){this.willModify=!1;const e=this.modifications.slice();this.modifications.length=0;for(const t of e)document.documentElement.contains(t)&&this.parse(t)}dispose(e){const t=[];this.forEach((s=>{e.contains(s.node)&&t.push(s)}));for(const e of t)e.dispose(),this.remove(e)}parse(t,s,i){const n=s?[s]:e.getModule("register").collection,r=[];for(const e of n){const s=e.parse(t,i);for(const t of s){const s=this.getElement(t);s.project(e),-1===r.indexOf(s)&&r.push(s)}}for(const e of r)e.populate()}}class L extends u{constructor(){super("render"),this.rendering=this.render.bind(this),this.nexts=new d}activate(){window.requestAnimationFrame(this.rendering)}request(e){this.nexts.add(e)}render(){if(!e.isActive)return;if(window.requestAnimationFrame(this.rendering),this.forEach((e=>e.render())),!this.nexts.length)return;const t=this.nexts.clone();this.nexts.clear(),t.forEach((e=>e.next()))}}class A extends u{constructor(){super("resize"),this.requireResize=!1,this.resizing=this.resize.bind(this);const e=this.request.bind(this);document.fonts&&document.fonts.ready.then(e),window.addEventListener("resize",e),window.addEventListener("orientationchange",e)}activate(){this.request()}request(){this.requireResize||(this.requireResize=!0,window.requestAnimationFrame(this.resizing))}resize(){this.requireResize&&(this.forEach((e=>e.resize())),this.requireResize=!1)}}class S extends u{constructor(){super("lock"),this._isLocked=!1,this._scrollY=0,this.onPopulate=this.lock.bind(this),this.onEmpty=this.unlock.bind(this)}get isLocked(){return this._isLocked}lock(){this._isLocked||(this._isLocked=!0,this._scrollY=window.scrollY,document.body.style.top=-1*this._scrollY+"px",document.documentElement.setAttribute(m.attr("scrolling"),"false"))}unlock(){this._isLocked&&(this._isLocked=!1,document.documentElement.removeAttribute(m.attr("scrolling")),document.body.style.top="",window.scroll(0,this._scrollY))}}class C extends u{constructor(){super("load"),this.loading=this.load.bind(this)}activate(){window.addEventListener("load",this.loading)}load(){this.forEach((e=>e.load()))}}const w=new class{constructor(){e.create(b),e.create(_),e.create(L),e.create(A),e.create(S),e.create(C);const t=e.getModule("register");this.register=t.register.bind(t)}get isActive(){return e.isActive}start(){a.debug("START"),e.isActive=!0}stop(){a.debug("STOP"),e.isActive=!1}},T=e=>"."===e.charAt(0)?e.substr(1):e,N=e=>e.className?e.className.split(" "):[],I=(e,t,s)=>{t=T(t);const i=N(e),n=i.indexOf(t);!0===s?n>-1&&i.splice(n,1):-1===n&&i.push(t),e.className=i.join(" ")},O=(e,t)=>I(e,t),x=(e,t)=>I(e,t,!0),D=(e,t)=>N(e).indexOf(T(t))>-1;a.info(`version ${i}`);const M=t=>e.getModule("stage").getProxy(t);M.Modes=l,Object.defineProperty(M,"mode",{set:e=>{h.mode=e},get:()=>h.mode}),Object.defineProperty(M,"preventManipulation",{get:()=>h.preventManipulation}),Object.defineProperty(M,"isLegacy",{get:()=>e.isLegacy}),M.setLegacy=()=>{e.isLegacy=!0},M.ns=m,M.addClass=O,M.hasClass=D,M.removeClass=x,M.queryParentSelector=g,M.querySelectorAllArray=p,M.start=w.start,M.stop=w.stop,M.register=w.register,M.inspector=a,h.configure(window[s],M.start),window[s]=M;class k{constructor(){this.emissions={}}add(e,t){if("function"!=typeof t)throw new Error("closure must be a function");this.emissions[e]||(this.emissions[e]=[]),this.emissions[e].push(t)}remove(e,t){if(this.emissions[e])if(t){const s=this.emissions[e].indexOf(t);s>-1&&this.emissions[e].splice(s)}else delete this.emissions[e]}emit(e,t){if(!this.emissions[e])return[];const s=[];for(const i of this.emissions[e])i&&s.push(i(t));return s}dispose(){this.emissions=null}}class H{constructor(e,t){this.id=e,this.minWidth=t}test(){return window.matchMedia(`(min-width: ${this.minWidth}em)`).matches}}const R={XS:new H("xs",0),SM:new H("sm",36),MD:new H("md",48),LG:new H("lg",62),XL:new H("xl",78)};class P{constructor(e=!0){this.jsAttribute=e,this._isRendering=!1,this._isResizing=!1,this._isScrollLocked=!1,this._isLoading=!1,this._listeners={},this._keyListenerTypes=[],this._keys=[],this.handlingKey=this.handleKey.bind(this),this._emitter=new k,this._ascent=new k,this._descent=new k,this._registrations=[],this._nexts=[]}static get instanceClassName(){return"Instance"}_config(e,t){this.element=e,this.registration=t,this.node=e.node,this.id=e.node.id,this.jsAttribute&&this.setAttribute(t.attribute,!0),this.init()}init(){}get proxy(){const e=this;return{render:()=>e.render(),resize:()=>e.resize()}}register(t,s){const i=e.getModule("register").register(t,s,this);this._registrations.push(i)}getRegisteredInstances(e){for(const t of this._registrations)if(t.hasInstanceClassName(e))return t.instances.collection;return[]}dispatch(e,t,s,i){const n=new CustomEvent(e,{detail:t,bubble:!0===s,cancelable:!0===i});this.node.dispatchEvent(n)}listen(e,t,s){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].indexOf(t)>-1||(this._listeners[e].push(t),this.node.addEventListener(e,t,s))}unlisten(e,t){if(e)if(t){if(!this._listeners[e])return;const s=this._listeners[e].indexOf(t);s>-1&&this._listeners[e].splice(s,1),this.node.removeEventListener(e,t)}else{if(!this._listeners[e])return;for(const t of this._listeners[e])this.node.removeEventListener(e,t);this._listeners[e].length=0}else for(const e in this._listeners)this.unlisten(e)}listenKey(e,t,s=!1,i=!1,n="down"){-1===this._keyListenerTypes.indexOf(n)&&(this.listen(`key${n}`,this.handlingKey),this._keyListenerTypes.push(n)),this._keys.push(new j(n,e,t,s,i))}unlistenKey(e,t){this._keys=this._keys.filter((s=>s.code!==e||s.closure!==t)),this._keyListenerTypes.forEach((e=>{this._keys.some((t=>t.type===e))||this.unlisten(`key${e}`,this.handlingKey)}))}handleKey(e){for(const t of this._keys)t.handle(e)}get isRendering(){return this._isRendering}set isRendering(t){this._isRendering!==t&&(t?e.add("render",this):e.remove("render",this),this._isRendering=t)}render(){}request(t){this._nexts.push(t),e.getModule("render").request(this)}next(){const e=this._nexts.slice();this._nexts.length=0;for(const t of e)t&&t()}get isResizing(){return this._isResizing}set isResizing(t){this._isResizing!==t&&(t?(e.add("resize",this),this.resize()):e.remove("resize",this),this._isResizing=t)}resize(){}isBreakpoint(e){switch(!0){case"string"==typeof e:return R[e.toUpperCase()].test();default:return e.test()}}get isScrollLocked(){return this._isScrollLocked}set isScrollLocked(t){this._isScrollLocked!==t&&(t?e.add("lock",this):e.remove("lock",this),this._isScrollLocked=t)}get isLoading(){return this._isLoading}set isLoading(t){this._isLoading!==t&&(t?e.add("load",this):e.remove("load",this),this._isLoading=t)}load(){}examine(e){this.node.matches(this.registration.selector)?this.mutate(e):this._dispose()}mutate(e){}_dispose(){a.debug(`dispose instance of ${this.registration.instanceClassName} on element [${this.element.id}]`),this.removeAttribute(this.registration.attribute),this.unlisten(),this._keys=null,this.isRendering=!1,this.isResizing=!1,this._nexts=null,e.getModule("render").nexts.remove(this),this.isScrollLocked=!1,this.isLoading=!1,this._emitter.dispose(),this._emitter=null,this._ascent.dispose(),this._ascent=null,this._descent.dispose(),this._descent=null,this.element.remove(this);for(const t of this._registrations)e.remove("register",t);this._registrations=null,this.registration.remove(this),this.dispose()}dispose(){}emit(e,t){return this.element.emit(e,t)}addEmission(e,t){this._emitter.add(e,t)}removeEmission(e,t){this._emitter.remove(e,t)}ascend(e,t){return this.element.ascend(e,t)}addAscent(e,t){this._ascent.add(e,t)}removeAscent(e,t){this._ascent.remove(e,t)}descend(e,t){return this.element.descend(e,t)}addDescent(e,t){this._descent.add(e,t)}removeDescent(e,t){this._descent.remove(e,t)}get style(){return this.node.style}addClass(e){O(this.node,e)}removeClass(e){x(this.node,e)}hasClass(e){return D(this.node,e)}setAttribute(e,t){this.node.setAttribute(e,t)}getAttribute(e){return this.node.getAttribute(e)}hasAttribute(e){return this.node.hasAttribute(e)}removeAttribute(e){this.node.removeAttribute(e)}setProperty(e,t){this.node.style.setProperty(e,t)}removeProperty(e){this.node.style.removeProperty(e)}focus(){this.node.focus()}get hasFocus(){return this.node===document.activeElement}matches(e){return this.node.matches(e)}querySelector(e){return this.node.querySelector(e)}querySelectorAll(e){return p(this.node,e)}queryParentSelector(e){return g(this.node,e)}getRect(){return this.node.getBoundingClientRect()}get isLegacy(){return e.isLegacy}}class j{constructor(e,t,s,i,n){this.type=e,this.eventType=`key${e}`,this.code=t,this.closure=s,this.preventDefault=!0===i,this.stopPropagation=!0===n}handle(e){e.type===this.eventType&&e.keyCode===this.code&&(this.closure(e),this.preventDefault&&e.preventDefault(),this.stopPropagation&&e.stopPropagation())}}const G={DISCLOSE:m.event("disclose"),CONCEAL:m.event("conceal")},B={RESET:m.emission("disclosure","reset"),ADDED:m.emission("disclosure","added"),REMOVED:m.emission("disclosure","removed"),GROUP:m.emission("disclosure","group"),UNGROUP:m.emission("disclosure","ungroup")},$=(e,...t)=>(t.forEach((t=>{const s=Object.keys(t).reduce(((e,s)=>(e[s]=Object.getOwnPropertyDescriptor(t,s),e)),{});Object.getOwnPropertySymbols(t).forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);i.enumerable&&(s[e]=i)})),Object.defineProperties(e,s)})),e);class q extends P{constructor(e,t,s,i){super(),this.type=e,this._selector=t,this.DisclosureButtonInstanceClass=s,this.disclosuresGroupInstanceClassName=i,this.modifier=this._selector+"--"+this.type.id,this.pristine=!0}static get instanceClassName(){return"Disclosure"}init(){this.addDescent(B.RESET,this.reset.bind(this)),this.addDescent(B.GROUP,this.update.bind(this)),this.addDescent(B.UNGROUP,this.update.bind(this)),this.register(`[aria-controls="${this.id}"]`,this.DisclosureButtonInstanceClass),this.ascend(B.ADDED),this.update()}get proxy(){const e=this,t=Object.assign(super.proxy,{disclose:e.disclose.bind(e),conceal:e.conceal.bind(e),focus:e.focus.bind(e)});return $(t,{get buttons(){return e.buttons.map((e=>e.proxy))},get group(){const t=e.group;return t?t.proxy:null}})}get buttons(){return this.getRegisteredInstances(this.DisclosureButtonInstanceClass.instanceClassName)}update(){this.getGroup()}getGroup(){if(!this.disclosuresGroupInstanceClassName)return void(this._group=null);const e=this.element.getAscendantInstance(this.disclosuresGroupInstanceClassName,this.constructor.instanceClassName);e&&e.validate(this)?this._group=e:this._group=null}get group(){return this._group}disclose(e){return!this.disclosed&&(this.pristine=!1,this.disclosed=!0,!e&&this.group&&(this.group.current=this),!0)}conceal(e,t){return!!this.disclosed&&(this.pristine=!1,this.disclosed=!1,t||this.focus(),!e&&this.group&&this.group.current===this&&(this.group.current=null),this.descend(B.RESET),!0)}get disclosed(){return this._disclosed}set disclosed(e){if(this._disclosed!==e){this.dispatch(e?G.DISCLOSE:G.CONCEAL,this.type),this._disclosed=e,e?this.addClass(this.modifier):this.removeClass(this.modifier);for(let t=0;t<this.buttons.length;t++)this.buttons[t].apply(e)}}reset(){}toggle(e){if(this.type.canConceal)switch(!0){case!e:case this.disclosed:this.conceal();break;default:this.disclose()}else this.disclose()}get buttonHasFocus(){return!!this.buttons.some((e=>e.hasFocus))}get hasFocus(){return!!super.hasFocus||(!!this.buttonHasFocus||this.querySelectorAll(":focus").length>0)}focus(){for(let e=0;e<this.buttons.length;e++){const t=this.buttons[e];if(t.isPrimary)return void t.focus()}}dispose(){this._group=null,super.dispose(),this.ascend(B.REMOVED)}}class z extends P{constructor(e){super(),this.type=e,this.attributeName=e.ariaState?"aria-"+e.id:m.attr(e.id)}static get instanceClassName(){return"DisclosureButton"}init(){this.controlsId=this.getAttribute("aria-controls"),this.isPrimary=this.hasAttribute(this.attributeName),this.isPrimary&&this.disclosed&&this.registration.creator.pristine&&this.registration.creator.disclose(),this.listen("click",this.click.bind(this))}get proxy(){return Object.assign(super.proxy,{focus:this.focus.bind(this)})}click(e){this.registration.creator&&this.registration.creator.toggle(this.isPrimary)}mutate(e){this.isPrimary&&e.indexOf(this.attributeName)>-1&&this.registration.creator&&(this.disclosed?this.registration.creator.disclose():this.type.canConceal&&this.registration.creator.conceal())}apply(e){this.isPrimary&&this.setAttribute(this.attributeName,e)}get disclosed(){return"true"===this.getAttribute(this.attributeName)}}class U extends P{constructor(e,t){super(t),this.disclosureInstanceClassName=e,this._index=-1}static get instanceClassName(){return"DisclosuresGroup"}init(){this.addAscent(B.ADDED,this.update.bind(this)),this.addAscent(B.REMOVED,this.update.bind(this)),this.descend(B.GROUP),this.update()}get proxy(){const e=this,t={set index(t){e.index=t},get index(){return e.index},get length(){return e.length},get current(){const t=e.current;return t?t.proxy:null},get members(){return e.members.map((e=>e.proxy))},get hasFocus(){return e.hasFocus}};return $(super.proxy,t)}validate(e){return!0}getMembers(){const e=this.element.getDescendantInstances(this.disclosureInstanceClassName,this.constructor.instanceClassName,!0);this._members=e.filter(this.validate.bind(this))}update(){this.getMembers(),this.getIndex()}get members(){return this._members}get length(){return this.members.length}getIndex(){this._index=-1;for(let e=0;e<this.length;e++)this.index>-1?this.members[e].conceal(!0,!0):this.members[e].disclosed&&(this.index=e)}get index(){return this._index}set index(e){if(!(e<-1||e>=this.length||e===this._index)){this._index=e;for(let t=0;t<this.length;t++){const s=this.members[t];e===t?s.disclose(!0):s.conceal(!0,!0)}this.apply()}}get current(){return-1===this._index?null:this.members[this._index]}set current(e){this.index=this.members.indexOf(e)}get hasFocus(){const e=this.current;return!!e&&e.hasFocus}apply(){}dispose(){super.dispose(),this.descend(B.UNGROUP),this._members=null}}const F={EXPAND:{id:"expanded",ariaState:!0,ariaControls:!0,canConceal:!0},SELECT:{id:"selected",ariaState:!0,ariaControls:!0,canConceal:!1},OPENED:{id:"opened",ariaState:!1,ariaControls:!0,canConceal:!0}};class K extends z{constructor(){super(F.EXPAND)}static get instanceClassName(){return"CollapseButton"}}const W={COLLAPSE:m.selector("collapse")};const V={CHANGE:m("equisized")};const Y={INJECT_SVG:`[${m.attr("inject-svg")}]`};M.register((M.core={Instance:P,Breakpoints:R,KeyCodes:{TAB:9,ESCAPE:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},Disclosure:q,DisclosureButton:z,DisclosuresGroup:U,DisclosureType:F,DisclosureEvent:G,DisclosureEmission:B,Collapse:class extends q{constructor(){super(F.EXPAND,W.COLLAPSE,K,"CollapsesGroup")}static get instanceClassName(){return"Collapse"}init(){super.init(),this.listen("transitionend",this.transitionend.bind(this))}transitionend(e){this.disclosed||(this.style.maxHeight="")}unbound(){this.style.maxHeight="none"}disclose(e){this.disclosed||(this.unbound(),this.adjust(),this.request((()=>{super.disclose(e)})))}conceal(e,t){this.disclosed&&(this.adjust(),this.request((()=>{super.conceal(e,t)})))}adjust(){this.setProperty("--collapser","none");const e=this.node.offsetHeight;this.setProperty("--collapse",-e+"px"),this.setProperty("--collapser","")}reset(){this.pristine||(this.disclosed=!1)}},CollapseButton:K,CollapsesGroup:class extends U{constructor(){super("Collapse")}static get instanceClassName(){return"CollapsesGroup"}},CollapseSelector:W,RootSelector:{ROOT:":root"},Equisized:class extends P{static get instanceClassName(){return"Equisized"}init(){this.ascend(V.CHANGE)}measure(){return this.style.width="auto",this.getRect().width}adjust(e){this.style.width=`${e}px`}dispose(){this.ascend(V.CHANGE)}},EquisizedEmission:V,EquisizedsGroup:class extends P{static get instanceClassName(){return"EquisizedsGroup"}init(){this.isResizing=!0,this.isLoading=!0,this.addAscent(V.CHANGE,this.resize.bind(this))}load(){this.resize()}resize(){const e=this.element.getDescendantInstances("Equisized"),t=Math.max(...e.map((e=>e.measure())));e.forEach((e=>e.adjust(t)))}},InjectSvg:class extends P{static get instanceClassName(){return"InjectSvg"}init(){this.node&&(this.img=this.node.querySelector("img")),this.isLegacy||this.replace()}get proxy(){const e=this;return Object.assign(super.proxy,{replace:e.replace.bind(e),restore:e.restore.bind(e)})}fetch(){this.img&&(this.imgID=this.img.getAttribute("id"),this.imgClass=this.img.getAttribute("class"),this.imgURL=this.img.getAttribute("src"),fetch(this.imgURL).then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html");this.svg=t.querySelector("svg"),this.svg&&this.replace()})))}replace(){if(!this.svg)return void this.fetch();this.imgID&&void 0!==this.imgID&&this.svg.setAttribute("id",this.imgID),this.imgClass&&void 0!==this.imgClass&&this.svg.setAttribute("class",this.imgClass),this.svg.hasAttribute("xmlns:a")&&this.svg.removeAttribute("xmlns:a"),this.node.setAttribute("data-fr-inject-svg",!0);var e,t;e=this.svg,t={"aria-hidden":!0,focusable:!1},Object.keys(t).forEach((s=>e.setAttribute(s,t[s]))),this.node.replaceChild(this.svg,this.img)}restore(){this.img&&this.svg&&(this.node.setAttribute("data-fr-inject-svg",!1),this.node.replaceChild(this.img,this.svg))}},InjectSvgSelector:Y}).CollapseSelector.COLLAPSE,M.core.Collapse),M.register(M.core.InjectSvgSelector.INJECT_SVG,M.core.InjectSvg),function(e,t){function s(e,t){var s=arguments.length>2?arguments[2]:[];if(!1===n(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,s)}function i(e,t){return e[t]}function n(e){return"function"==typeof e}function r(e){if(null===e||e===t)throw TypeError();return Object(e)}function o(e,s){var i=function(e,t){return r(e)[t]}(e,s);if(null===i||i===t)return t;if(!1===n(i))throw new TypeError("Method not callable: "+s);return i}function a(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function c(e,t){if("string"===t)var r=["toString","valueOf"];else r=["valueOf","toString"];for(var o=0;o<r.length;++o){var c=i(e,r[o]);if(n(c)){var l=s(c,e);if("object"!==a(l))return l}}throw new TypeError("Cannot convert to primitive.")}function l(e,t){return a(e)===a(t)&&("number"===a(e)?!(!isNaN(e)||!isNaN(t))||1/e==1/0&&1/t==-1/0||1/e==-1/0&&1/t==1/0||e===t:function(e,t){return e===t}(e,t))}function h(e){if("symbol"===a(e))throw new TypeError("Cannot convert a Symbol value to a number");var t=Number(e);return isNaN(t)?0:1/t==1/0||1/t==-1/0||t===1/0||t===-1/0?t:(t<0?-1:1)*Math.floor(Math.abs(t))}function d(e){var t=h(e);return t<=0?0:Math.min(t,Math.pow(2,53)-1)}function u(i){switch(a(i)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return u(function(i){var n=arguments.length>1?arguments[1]:t;if("object"===a(i)){if(arguments.length<2)var r="default";else n===String?r="string":n===Number&&(r="number");var l="function"==typeof e.Symbol&&"symbol"==typeof e.Symbol.toPrimitive?o(i,e.Symbol.toPrimitive):t;if(l!==t){var h=s(l,i,[r]);if("object"!==a(h))return h;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===r&&(r="number"),c(i,r)}return i}(i,String));default:return String(i)}}var m,p,g,f;m=Array.prototype,p="includes",g=function(e){var t=r(this),s=d(i(t,"length"));if(0===s)return!1;var n=h(arguments[1]);if(n>=0)var o=n;else(o=s+n)<0&&(o=0);for(;o<s;){var a=i(t,u(o));if(l(e,a))return!0;o+=1}return!1},f={value:g,writable:!0,enumerable:!1,configurable:!0},Object.defineProperty(m,p,f),function(){function e(e,s){if(!e)throw new Error("Not enough arguments");var i;if("createEvent"in document){i=document.createEvent("Event");var n=!(!s||s.bubbles===t)&&s.bubbles,r=!(!s||s.cancelable===t)&&s.cancelable;return i.initEvent(e,n,r),i}return(i=document.createEventObject()).type=e,i.bubbles=!(!s||s.bubbles===t)&&s.bubbles,i.cancelable=!(!s||s.cancelable===t)&&s.cancelable,i}var s={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var i=window.Event&&window.Event.prototype||null;e.NONE=0,e.CAPTURING_PHASE=1,e.AT_TARGET=2,e.BUBBLING_PHASE=3,window.Event=Window.prototype.Event=e,i&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:i}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var e=this,t=arguments[0],i=arguments[1];if(e===window&&t in s)throw new Error("In IE8 the event: "+t+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");e._events||(e._events={}),e._events[t]||(e._events[t]=function(t){var s,i=e._events[t.type].list,n=i.slice(),r=-1,o=n.length;for(t.preventDefault=function(){!1!==t.cancelable&&(t.returnValue=!1)},t.stopPropagation=function(){t.cancelBubble=!0},t.stopImmediatePropagation=function(){t.cancelBubble=!0,t.cancelImmediate=!0},t.currentTarget=e,t.relatedTarget=t.fromElement||null,t.target=t.target||t.srcElement||e,t.timeStamp=(new Date).getTime(),t.clientX&&(t.pageX=t.clientX+document.documentElement.scrollLeft,t.pageY=t.clientY+document.documentElement.scrollTop);++r<o&&!t.cancelImmediate;)r in n&&(s=n[r],i.includes(s)&&"function"==typeof s&&s.call(e,t))},e._events[t].list=[],e.attachEvent&&e.attachEvent("on"+t,e._events[t])),e._events[t].list.push(i)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var e,t=this,s=arguments[0],i=arguments[1];t._events&&t._events[s]&&t._events[s].list&&-1!==(e=t._events[s].list.indexOf(i))&&(t._events[s].list.splice(e,1),t._events[s].list.length||(t.detachEvent&&t.detachEvent("on"+s,t._events[s]),delete t._events[s]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(e){if(!arguments.length)throw new Error("Not enough arguments");if(!e||"string"!=typeof e.type)throw new Error("DOM Events Exception 0");var t=this,s=e.type;try{if(!e.bubbles){e.cancelBubble=!0;var i=function(e){e.cancelBubble=!0,(t||window).detachEvent("on"+s,i)};this.attachEvent("on"+s,i)}this.fireEvent("on"+s,e)}catch(i){e.target=t;do{e.currentTarget=t,"_events"in t&&"function"==typeof t._events[s]&&t._events[s].call(t,e),"function"==typeof t["on"+s]&&t["on"+s].call(t,e),t=9===t.nodeType?t.parentWindow:t.parentNode}while(t&&!e.cancelBubble)}return!0},document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&document.dispatchEvent(new e("DOMContentLoaded",{bubbles:!0}))})))}}(),e.CustomEvent=function(e,t){if(!e)throw Error('TypeError: Failed to construct "CustomEvent": An event name must be provided.');var s;if(t=t||{bubbles:!1,cancelable:!1,detail:null},"createEvent"in document)try{(s=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail)}catch(i){(s=document.createEvent("Event")).initEvent(e,t.bubbles,t.cancelable),s.detail=t.detail}else(s=new Event(e,t)).detail=t&&t.detail||null;return s},CustomEvent.prototype=Event.prototype}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(e,t){!function(t){function s(e,t){if("change"===e&&this.addListener(t),arguments[2]&&arguments[2].once){var s=this,i=function(){s.removeListener(i),s.removeListener(t)};this.addListener(i)}}function i(e,t){"change"===e&&this.removeListener(t)}var n=function(){try{var e={};return t.Object.defineProperty(e,"t",{configurable:!0,enumerable:!1,get:function(){return this._v},set:function(e){this._v=e+e}}),e.t=1,2===e.t}catch(e){return!1}}(),r={enumerable:!0,configurable:!0,get:function(){return this._onchangeHandler||null},set:function(e){var t=this;t._onchangeListener||(t._onchangeListener=function(){"function"==typeof t._onchangeHandler&&t._onchangeHandler.call(t,arguments[0])},t.addEventListener("change",t._onchangeListener)),t._onchangeHandler=e}};if("MediaQueryList"in t){var o=t.MediaQueryList.prototype.addListener,a=t.MediaQueryList.prototype.removeListener;t.MediaQueryList.prototype.addListener=function(e){var t=e;t.handleEvent&&(t=t.handleEvent),o.call(this,t)},t.MediaQueryList.prototype.removeListener=function(e){var t=e;t.handleEvent&&(t=t.handleEvent),a.call(this,t)},t.MediaQueryList.prototype.addEventListener=s,t.MediaQueryList.prototype.removeEventListener=i,n&&t.Object.defineProperty(t.MediaQueryList.prototype,"onchange",r)}else{var c=e.matchMedia;e.matchMedia=function(e){var o=c(e),a=o.addListener,l=o.removeListener;return o.addListener=function(e){var t=e;t.handleEvent&&(t=t.handleEvent),a.call(this,t)},o.removeListener=function(e){var t=e;t.handleEvent&&(t=t.handleEvent),l.call(this,t)},o.addEventListener=s,o.removeEventListener=i,n&&t.Object.defineProperty(o,"onchange",r),o}}}(e)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(e,t){var s,i=function(){var e=!0,s=function(t,s,i,n){Object.defineProperty?Object.defineProperty(t,s,{configurable:!1===e||!!n,get:i}):t.__defineGetter__(s,i)};try{s({},"support")}catch(t){e=!1}return function(e,i){var n=this,r=[],o={},a=0,c=0,l=function(e){s(n,e,(function(){return d(),r[e]}),!1)},h=function(){if(a>=c)for(;c<a;++c)l(c)},d=function(){var t,s,n=arguments,c=/\s+/;if(n.length)for(s=0;s<n.length;++s)if(c.test(n[s]))throw(t=new SyntaxError('String "'+n[s]+'" contains an invalid character')).code=5,t.name="InvalidCharacterError",t;for(""===(r="object"==typeof e[i]?(""+e[i].baseVal).replace(/^\s+|\s+$/g,"").split(c):(""+e[i]).replace(/^\s+|\s+$/g,"").split(c))[0]&&(r=[]),o={},s=0;s<r.length;++s)o[r[s]]=!0;a=r.length,h()};return d(),s(n,"length",(function(){return d(),a})),n.toLocaleString=n.toString=function(){return d(),r.join(" ")},n.item=function(e){return d(),r[e]},n.contains=function(e){return d(),!!o[e]},n.add=function(){d.apply(n,t=arguments);for(var t,s,c=0,l=t.length;c<l;++c)s=t[c],o[s]||(r.push(s),o[s]=!0);a!==r.length&&(a=r.length>>>0,"object"==typeof e[i]?e[i].baseVal=r.join(" "):e[i]=r.join(" "),h())},n.remove=function(){d.apply(n,t=arguments);for(var t,s={},c=0,l=[];c<t.length;++c)s[t[c]]=!0,delete o[t[c]];for(c=0;c<r.length;++c)s[r[c]]||l.push(r[c]);r=l,a=l.length>>>0,"object"==typeof e[i]?e[i].baseVal=r.join(" "):e[i]=r.join(" "),h()},n.toggle=function(e,s){return d.apply(n,[e]),t!==s?s?(n.add(e),!0):(n.remove(e),!1):o[e]?(n.remove(e),!1):(n.add(e),!0)},n.forEach=Array.prototype.forEach,n}}();"DOMTokenList"in(s=e)&&s.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(s.DOMTokenList=i),function(){var e=document.createElement("span");"classList"in e&&(e.classList.toggle("x",!1),e.classList.contains("x")&&(e.classList.constructor.prototype.toggle=function(e){var s=arguments[1];if(s===t){var i=!this.contains(e);return this[i?"add":"remove"](e),i}return s=!!s,this[s?"add":"remove"](e),s}))}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a","b"),!e.classList.contains("b"))){var t=e.classList.constructor.prototype.add;e.classList.constructor.prototype.add=function(){for(var e=arguments,s=arguments.length,i=0;i<s;i++)t.call(this,e[i])}}}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a"),e.classList.add("b"),e.classList.remove("a","b"),e.classList.contains("b"))){var t=e.classList.constructor.prototype.remove;e.classList.constructor.prototype.remove=function(){for(var e=arguments,s=arguments.length,i=0;i<s;i++)t.call(this,e[i])}}}(),function(e){var t=!0,s=function(e,s,i,n){Object.defineProperty?Object.defineProperty(e,s,{configurable:!1===t||!!n,get:i}):e.__defineGetter__(s,i)};try{s({},"support")}catch(e){t=!1}var n=function(e,r,o){s(e.prototype,r,(function(){var e,a=this,c="__defineGetter__DEFINE_PROPERTY"+r;if(a[c])return e;if(a[c]=!0,!1===t){for(var l,h=n.mirror||document.createElement("div"),d=h.childNodes,u=d.length,m=0;m<u;++m)if(d[m]._R===a){l=d[m];break}l||(l=h.appendChild(document.createElement("div"))),e=DOMTokenList.call(l,a,o)}else e=new i(a,o);return s(a,r,(function(){return e})),delete a[c],e}),!0)};n(e.Element,"classList","className"),n(e.HTMLElement,"classList","className"),n(e.HTMLLinkElement,"relList","rel"),n(e.HTMLAnchorElement,"relList","rel"),n(e.HTMLAreaElement,"relList","rel")}(e),function(e){e.DOMTokenList.prototype.forEach=e.Array.prototype.forEach;var t=document.createElement("span");t.classList&&t.classList.constructor&&t.classList.constructor.prototype&&!t.classList.constructor.prototype.forEach&&(t.classList.constructor.prototype.forEach=e.Array.prototype.forEach)}(e),NodeList.prototype.forEach=Array.prototype.forEach}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(e,t){!function(){function t(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1}if("HTMLElement"in e&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(e){}"Node"in e?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}()}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(e){for(var t=this,s=(t.document||t.ownerDocument).querySelectorAll(e),i=0;s[i]&&s[i]!==t;)++i;return!!s[i]};const Q=window[s],X={SYSTEM:"system",LIGHT:"light",DARK:"dark"},Z={THEME:Q.ns.attr("theme"),SCHEME:Q.ns.attr("scheme"),TRANSITION:Q.ns.attr("transition")},J={LIGHT:"light",DARK:"dark"},ee={SCHEME:Q.ns.emission("scheme","scheme"),THEME:Q.ns.emission("scheme","theme"),ASK:Q.ns.emission("scheme","ask")};class te extends Q.core.Instance{constructor(){super(!1)}static get instanceClassName(){return"Scheme"}init(){this.changing=this.change.bind(this),this.hasAttribute(Z.TRANSITION)&&(this.removeAttribute(Z.TRANSITION),this.request(this.restoreTransition.bind(this)));const e=localStorage.getItem("scheme"),t=this.getAttribute(Z.SCHEME);switch(e){case X.DARK:case X.LIGHT:case X.SYSTEM:this.scheme=e;break;default:switch(t){case X.DARK:this.scheme=X.DARK;break;case X.LIGHT:this.scheme=X.LIGHT;break;default:this.scheme=X.SYSTEM}}this.addAscent(ee.ASK,this.ask.bind(this)),this.addAscent(ee.SCHEME,this.apply.bind(this))}get proxy(){const e=this,t={get scheme(){return e.scheme},set scheme(t){e.scheme=t}};return $(super.proxy,t)}restoreTransition(){this.setAttribute(Z.TRANSITION,"")}ask(){this.descend(ee.SCHEME,this.scheme)}apply(e){this.scheme=e}get scheme(){return this._scheme}set scheme(e){if(this._scheme!==e){switch(this._scheme=e,e){case X.SYSTEM:this.listenPreferences();break;case X.DARK:this.unlistenPreferences(),this.theme=J.DARK;break;case X.LIGHT:this.unlistenPreferences(),this.theme=J.LIGHT;break;default:return void(this.scheme=X.SYSTEM)}this.descend(ee.SCHEME,e),localStorage.setItem("scheme",e),this.setAttribute(Z.SCHEME,e)}}get theme(){return this._theme}set theme(e){if(this._theme!==e)switch(e){case J.LIGHT:case J.DARK:this._theme=e,this.setAttribute(Z.THEME,e),this.descend(ee.THEME,e)}}listenPreferences(){this.isListening||(this.isListening=!0,this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.changing),this.change())}unlistenPreferences(){this.isListening&&(this.isListening=!1,this.mediaQuery.removeEventListener("change",this.changing),this.mediaQuery=null)}change(){this.isListening&&(this.theme=this.mediaQuery.matches?J.DARK:J.LIGHT)}mutate(e){e.indexOf(Z.SCHEME)>-1&&(this.scheme=this.getAttribute(Z.SCHEME)),e.indexOf(Z.THEME)>-1&&(this.theme=this.getAttribute(Z.THEME))}dispose(){this.unlistenPreferences()}}const se={SCHEME:`:root${Q.ns.attr.selector("theme")}, :root${Q.ns.attr.selector("scheme")}`,SWITCH_THEME:Q.ns.selector("switch-theme"),RADIO_BUTTONS:`input[name="${Q.ns("radios-theme")}"]`};Q.scheme={Scheme:te,SchemeValue:X,SchemeSelector:se,SchemeEmission:ee,SchemeTheme:J},Q.register(Q.scheme.SchemeSelector.SCHEME,Q.scheme.Scheme);const ie={GROUP:Q.ns.selector("accordions-group"),COLLAPSE:`${Q.ns.selector("accordion")} > ${Q.ns.selector("collapse")}`};class ne extends Q.core.CollapsesGroup{static get instanceClassName(){return"AccordionsGroup"}validate(e){return e.node.matches(ie.COLLAPSE)}}Q.accordion={AccordionSelector:ie,AccordionsGroup:ne},Q.register(Q.accordion.AccordionSelector.GROUP,Q.accordion.AccordionsGroup);const re={EQUISIZED_BUTTON:`${Q.ns.selector("btns-group--equisized")} ${Q.ns.selector("btn")}`,EQUISIZED_GROUP:Q.ns.selector("btns-group--equisized")};Q.button={ButtonSelector:re},Q.register(Q.button.ButtonSelector.EQUISIZED_BUTTON,Q.core.Equisized),Q.register(Q.button.ButtonSelector.EQUISIZED_GROUP,Q.core.EquisizedsGroup);class oe extends Q.core.Instance{constructor(){super(),this.count=0,this.focusing=this.focus.bind(this)}static get instanceClassName(){return"Breadcrumb"}init(){this.getCollapse(),this.isResizing=!0}get proxy(){const e=this;return Object.assign(super.proxy,{focus:e.focus.bind(e),disclose:e.collapse.disclose.bind(e.collapse)})}getCollapse(){const e=this.collapse;e?e.listen(Q.core.DisclosureEvent.DISCLOSE,this.focusing):this.addAscent(Q.core.DisclosureEmission.ADDED,this.getCollapse.bind(this))}resize(){const e=this.collapse,t=this.links;e&&t.length&&(this.isBreakpoint(Q.core.Breakpoints.MD)?e.buttonHasFocus&&t[0].focus():t.indexOf(document.activeElement)>-1&&e.focus())}get links(){return[...this.querySelectorAll("a[href]")]}get collapse(){return this.element.getDescendantInstances(Q.core.Collapse.instanceClassName,null,!0)[0]}focus(){this.count=0,this._focus()}_focus(){const e=this.links[0];e&&(e.focus(),this.request(this.verify.bind(this)))}verify(){if(this.count++,this.count>100)return;const e=this.links[0];e&&document.activeElement!==e&&this._focus()}}const ae={BREADCRUMB:Q.ns.selector("breadcrumb")};Q.breadcrumb={BreadcrumbSelector:ae,Breadcrumb:oe},Q.register(Q.breadcrumb.BreadcrumbSelector.BREADCRUMB,Q.breadcrumb.Breadcrumb);const ce={LIST:Q.ns.selector("sidemenu__list"),COLLAPSE:`${Q.ns.selector("sidemenu__item")} > ${Q.ns.selector("collapse")}`};class le extends Q.core.CollapsesGroup{static get instanceClassName(){return"SidemenuList"}validate(e){return e.node.matches(ce.COLLAPSE)}}Q.sidemenu={SidemenuList:le,SidemenuSelector:ce},Q.register(Q.sidemenu.SidemenuSelector.LIST,Q.sidemenu.SidemenuList);const he={MODAL:Q.ns.selector("modal"),SCROLL_SHADOW:Q.ns.selector("scroll-shadow"),BODY:Q.ns.selector("modal__body")};class de extends Q.core.DisclosureButton{constructor(){super(Q.core.DisclosureType.OPENED)}static get instanceClassName(){return"ModalButton"}}const ue={ACTIVATE:Q.ns.emission("modal","activate"),DEACTIVATE:Q.ns.emission("modal","deactivate")};class me extends Q.core.Disclosure{constructor(){super(Q.core.DisclosureType.OPENED,he.MODAL,de,"ModalsGroup"),this.scrollDistance=0,this.scrolling=this.resize.bind(this,!1),this.resizing=this.resize.bind(this,!0)}static get instanceClassName(){return"Modal"}init(){super.init(),this.listen("click",this.click.bind(this)),this.listenKey(Q.core.KeyCodes.ESCAPE,this.conceal.bind(this),!0,!0)}click(e){e.target===this.node&&this.conceal()}disclose(e){return!!super.disclose(e)&&(this.descend(ue.ACTIVATE),this.isScrollLocked=!0,!0)}conceal(e,t){return!!super.conceal(e,t)&&(this.isScrollLocked=!1,this.descend(ue.DEACTIVATE),!0)}}const pe=['[tabindex="0"]',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details","iframe"].join(),ge=['[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'].join(),fe=(e,t)=>{if(!(e instanceof Element))return!1;const s=window.getComputedStyle(e);if(!s)return!1;if("hidden"===s.visibility)return!1;for(void 0===t&&(t=e);t.contains(e);){if("none"===s.display)return!1;e=e.parentElement}return!0};class be{constructor(e,t){this.element=null,this.activeElement=null,this.onTrap=e,this.onUntrap=t,this.waiting=this.wait.bind(this),this.handling=this.handle.bind(this),this.focusing=this.maintainFocus.bind(this),this.current=null}get trapped(){return null!==this.element}trap(e){this.trapped&&this.untrap(),this.element=e,this.isTrapping=!0,this.wait(),this.onTrap&&this.onTrap()}wait(){fe(this.element)?this.trapping():window.requestAnimationFrame(this.waiting)}trapping(){if(!this.isTrapping)return;this.isTrapping=!1;const e=this.focusables;e.length&&e[0].focus(),this.element.setAttribute("aria-modal",!0),window.addEventListener("keydown",this.handling),document.body.addEventListener("focus",this.focusing,!0),this.stunneds=[]}stun(e){for(const t of e.children)t!==this.element&&(t.contains(this.element)?this.stun(t):this.stunneds.push(new ve(t)))}maintainFocus(e){if(!this.element.contains(e.target)){const t=this.focusables;if(0===t.length)return;const s=t[0];e.preventDefault(),s.focus()}}handle(e){if(9!==e.keyCode)return;const t=this.focusables;if(0===t.length)return;const s=t[0],i=t[t.length-1],n=t.indexOf(document.activeElement);e.shiftKey?!this.element.contains(document.activeElement)||n<1?(e.preventDefault(),i.focus()):(document.activeElement.tabIndex>0||t[n-1].tabIndex>0)&&(e.preventDefault(),t[n-1].focus()):this.element.contains(document.activeElement)&&n!==t.length-1&&-1!==n?document.activeElement.tabIndex>0&&(e.preventDefault(),t[n+1].focus()):(e.preventDefault(),s.focus())}get focusables(){let e=Q.querySelectorAllArray(this.element,pe);const t=Q.querySelectorAllArray(document.documentElement,'input[type="radio"]');if(t.length){const s={};for(const e of t){const t=e.getAttribute("name");void 0===s[t]&&(s[t]=new ye(t)),s[t].push(e)}e=e.filter((e=>{if("input"!==e.tagName.toLowerCase()||"radio"!==e.getAttribute("type").toLowerCase())return!0;const t=e.getAttribute("name");return s[t].keep(e)}))}const s=Q.querySelectorAllArray(this.element,ge);s.sort(((e,t)=>e.tabIndex-t.tabIndex));const i=e.filter((e=>-1===s.indexOf(e)));return s.concat(i).filter((e=>"-1"!==e.tabIndex&&fe(e,this.element)))}untrap(){this.trapped&&(this.isTrapping=!1,this.element.removeAttribute("aria-modal"),window.removeEventListener("keydown",this.handling),document.body.removeEventListener("focus",this.focusing,!0),this.element=null,this.onUntrap&&this.onUntrap())}dispose(){this.untrap()}}class ve{constructor(e){this.element=e,this.hidden=e.getAttribute("aria-hidden"),this.inert=e.getAttribute("inert"),this.element.setAttribute("aria-hidden",!0),this.element.setAttribute("inert","")}unstun(){null===this.hidden?this.element.removeAttribute("aria-hidden"):this.element.setAttribute("aria-hidden",this.hidden),null===this.inert?this.element.removeAttribute("inert"):this.element.setAttribute("inert",this.inert)}}class ye{constructor(e){this.name=e,this.buttons=[]}push(e){this.buttons.push(e),(e===document.activeElement||e.checked||void 0===this.selected)&&(this.selected=e)}keep(e){return this.selected===e}}class Ee extends Q.core.DisclosuresGroup{constructor(){super("Modal",!1),this.trap=new be}static get instanceClassName(){return"ModalsGroup"}apply(e,t){super.apply(e,t),null===this.current?this.trap.untrap():this.trap.trap(this.current.node)}}class _e extends Q.core.Instance{static get instanceClassName(){return"ModalBody"}init(){this.listen("scroll",this.shade.bind(this)),this.addDescent(ue.ACTIVATE,this.activate.bind(this)),this.addDescent(ue.DEACTIVATE,this.deactivate.bind(this))}activate(){this.isResizing=!0,this.resize()}deactivate(){this.isResizing=!1}shade(){this.node.scrollHeight>this.node.clientHeight?this.node.offsetHeight+this.node.scrollTop>=this.node.scrollHeight?this.removeClass(he.SCROLL_SHADOW):this.addClass(he.SCROLL_SHADOW):this.removeClass(he.SCROLL_SHADOW)}resize(){this.adjust(),this.request(this.adjust.bind(this))}adjust(){const e=32*(this.isBreakpoint(Q.core.Breakpoints.MD)?2:1);this.style.maxHeight=window.innerHeight-e+"px",this.shade()}}Q.modal={Modal:me,ModalButton:de,ModalBody:_e,ModalsGroup:Ee,ModalSelector:he},Q.register(Q.modal.ModalSelector.MODAL,Q.modal.Modal),Q.register(Q.modal.ModalSelector.BODY,Q.modal.ModalBody),Q.register(Q.core.RootSelector.ROOT,Q.modal.ModalsGroup);const Le={NAVIGATION:Q.ns.selector("nav"),COLLAPSE:`${Q.ns.selector("nav__item")} > ${Q.ns.selector("collapse")}`,ITEM:Q.ns.selector("nav__item"),ITEM_RIGHT:Q.ns("nav__item--align-right"),MENU:Q.ns.selector("menu")};class Ae extends Q.core.Instance{constructor(){super(),this._isRightAligned=!1}static get instanceClassName(){return"NavigationItem"}init(){this.addAscent(Q.core.DisclosureEmission.ADDED,this.calculate.bind(this)),this.addAscent(Q.core.DisclosureEmission.REMOVED,this.calculate.bind(this)),this.isResizing=!0,this.calculate()}resize(){this.calculate()}calculate(){const e=this.element.getDescendantInstances(Q.core.Collapse.instanceClassName,null,!0)[0];if(e&&this.isBreakpoint(Q.core.Breakpoints.LG)&&e.element.node.matches(Le.MENU)){const t=this.element.node.parentElement.getBoundingClientRect().right,s=e.element.node.getBoundingClientRect().width,i=this.element.node.getBoundingClientRect().left;this.isRightAligned=i+s>t}else this.isRightAligned=!1}get isRightAligned(){return this._isRightAligned}set isRightAligned(e){this._isRightAligned!==e&&(this._isRightAligned=e,e?Q.addClass(this.element.node,Le.ITEM_RIGHT):Q.removeClass(this.element.node,Le.ITEM_RIGHT))}}const Se={NONE:-1,INSIDE:0,OUTSIDE:1};class Ce extends Q.core.CollapsesGroup{static get instanceClassName(){return"Navigation"}init(){super.init(),this.clicked=!1,this.out=!1,this.listen("focusout",this.focusOut.bind(this)),this.listen("mousedown",this.down.bind(this))}validate(e){return e.element.node.matches(Le.COLLAPSE)}down(e){this.isBreakpoint(Q.core.Breakpoints.LG)&&-1!==this.index&&this.current&&(this.position=this.current.element.node.contains(e.target)?Se.INSIDE:Se.OUTSIDE,this.request(this.getPosition.bind(this)))}focusOut(e){this.isBreakpoint(Q.core.Breakpoints.LG)&&(this.out=!0,this.request(this.getPosition.bind(this)))}getPosition(){if(this.out)switch(this.position){case Se.OUTSIDE:this.index=-1;break;case Se.INSIDE:this.current&&this.current.focus();break;default:this.index>-1&&!this.current.hasFocus&&(this.index=-1)}this.position=Se.NONE,this.out=!1}get index(){return super.index}set index(e){-1===e&&null!==this.current&&this.current.hasFocus&&this.current.focus(),super.index=e}}Q.navigation={Navigation:Ce,NavigationItem:Ae,NavigationMousePosition:Se,NavigationSelector:Le},Q.register(Q.navigation.NavigationSelector.NAVIGATION,Q.navigation.Navigation),Q.register(Q.navigation.NavigationSelector.ITEM,Q.navigation.NavigationItem);class we extends Q.core.DisclosureButton{constructor(){super(Q.core.DisclosureType.SELECT)}static get instanceClassName(){return"TabButton"}apply(e){super.apply(e),this.isPrimary&&this.setAttribute("tabindex",e?"0":"-1")}}const Te={TAB:Q.ns.selector("tabs__tab"),GROUP:Q.ns.selector("tabs"),PANEL:Q.ns.selector("tabs__panel"),LIST:Q.ns.selector("tabs__list")};class Ne extends Q.core.Disclosure{constructor(){super(Q.core.DisclosureType.SELECT,Te.PANEL,we,"TabsGroup")}static get instanceClassName(){return"TabPanel"}translate(e,t){this.style.transition=t?"none":"",this.style.transform=`translate(${100*e}%)`}reset(){this.group.index=0}}class Ie extends Q.core.DisclosuresGroup{constructor(){super("TabPanel")}static get instanceClassName(){return"TabsGroup"}init(){super.init(),this.list=this.querySelector(Te.LIST),this.listen("transitionend",this.transitionend.bind(this)),this.listenKey(Q.core.KeyCodes.RIGHT,this.pressRight.bind(this),!0,!0),this.listenKey(Q.core.KeyCodes.LEFT,this.pressLeft.bind(this),!0,!0),this.listenKey(Q.core.KeyCodes.HOME,this.pressHome.bind(this),!0,!0),this.listenKey(Q.core.KeyCodes.END,this.pressEnd.bind(this),!0,!0),this.isRendering=!0}transitionend(e){this.style.transition="none"}get buttonHasFocus(){return this.members.some((e=>e.buttonHasFocus))}pressRight(){this.buttonHasFocus&&(this.index<this.length-1?this.index++:this.index=0,this.focus())}pressLeft(){this.buttonHasFocus&&(this.index>0?this.index--:this.index=this.length-1,this.focus())}pressHome(){this.buttonHasFocus&&(this.index=0,this.focus())}pressEnd(){this.buttonHasFocus&&(this.index=this.length-1,this.focus())}focus(){this.current&&this.current.focus()}apply(){for(let e=0;e<this._index;e++)this.members[e].translate(-1);this.current.style.transition="",this.current.style.transform="";for(let e=this._index+1;e<this.length;e++)this.members[e].translate(1);this.style.transition=""}render(){if(null===this.current)return;const e=Math.round(this.current.node.offsetHeight);this.panelHeight!==e&&(this.panelHeight=e,this.style.height=this.panelHeight+this.list.offsetHeight+"px")}}Q.tab={TabPanel:Ne,TabButton:we,TabsGroup:Ie,TabSelector:Te},Q.register(Q.tab.TabSelector.PANEL,Q.tab.TabPanel),Q.register(Q.tab.TabSelector.GROUP,Q.tab.TabsGroup);const Oe={SCROLLABLE:Q.ns.emission("table","scrollable"),CHANGE:Q.ns.emission("table","change"),CAPTION_HEIGHT:Q.ns.emission("table","captionheight")};class xe extends Q.core.Instance{static get instanceClassName(){return"Table"}init(){this.addAscent(Oe.CAPTION_HEIGHT,this.setCaptionHeight.bind(this))}setCaptionHeight(e){this.setProperty("--table-offset",`calc(${e}px + 1rem)`)}}const De={TABLE:Q.ns.selector("table"),SHADOW:Q.ns.selector("table__shadow"),SHADOW_LEFT:Q.ns.selector("table__shadow--left"),SHADOW_RIGHT:Q.ns.selector("table__shadow--right"),ELEMENT:`${Q.ns.selector("table")}:not(${Q.ns.selector("table--no-scroll")}) table`,CAPTION:`${Q.ns.selector("table")} table caption`};class Me extends Q.core.Instance{static get instanceClassName(){return"TableElement"}init(){this.listen("scroll",this.scroll.bind(this)),this.content=this.querySelector("tbody"),this.isResizing=!0}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,e?(this.addClass(De.SHADOW),this.scroll()):(this.removeClass(De.SHADOW),this.removeClass(De.SHADOW_LEFT),this.removeClass(De.SHADOW_RIGHT)))}scroll(){const e=this.node.scrollLeft<=8,t=this.content.offsetWidth-this.node.offsetWidth-8,s=Math.abs(this.node.scrollLeft)>=t,i="rtl"===document.documentElement.getAttribute("dir"),n=i?De.SHADOW_RIGHT:De.SHADOW_LEFT,r=i?De.SHADOW_LEFT:De.SHADOW_RIGHT;e?this.removeClass(n):this.addClass(n),s?this.removeClass(r):this.addClass(r)}resize(){this.isScrolling=this.content.offsetWidth>this.node.offsetWidth}dispose(){this.isScrolling=!1}}class ke extends Q.core.Instance{static get instanceClassName(){return"TableCaption"}init(){this.height=0,this.isResizing=!0}resize(){const e=this.getRect().height;this.height!==e&&(this.height=e,this.ascend(Oe.CAPTION_HEIGHT,e))}}Q.table={Table:xe,TableElement:Me,TableCaption:ke,TableSelector:De},Q.register(Q.table.TableSelector.TABLE,Q.table.Table),Q.register(Q.table.TableSelector.ELEMENT,Q.table.TableElement),Q.register(Q.table.TableSelector.CAPTION,Q.table.TableCaption);const He={HEADER:Q.ns.selector("header"),TOOLS_LINKS:Q.ns.selector("header__tools-links"),MENU_LINKS:Q.ns.selector("header__menu-links"),LINKS:`${Q.ns.selector("header__tools-links")} ${Q.ns.selector("links-group")}`,MODALS:`${Q.ns.selector("header__search")}${Q.ns.selector("modal")}, ${Q.ns.selector("header__menu")}${Q.ns.selector("modal")}`};class Re extends Q.core.Instance{static get instanceClassName(){return"HeaderLinks"}init(){const e=this.queryParentSelector(He.HEADER);this.toolsLinks=e.querySelector(He.TOOLS_LINKS),this.menuLinks=e.querySelector(He.MENU_LINKS);if(this.toolsLinks.innerHTML.replace(/  +/g," ")!==this.menuLinks.innerHTML.replace(/  +/g," "))switch(Q.mode){case Q.Modes.ANGULAR:case Q.Modes.REACT:case Q.Modes.VUE:Q.inspector.warn(`header__tools-links content is different from header__menu-links content.\nAs you're using a dynamic framework, you should handle duplication of this content yourself, please refer to documentation: \n${Q.header.doc}`);break;default:this.menuLinks.innerHTML=this.toolsLinks.innerHTML}}}class Pe extends Q.core.Instance{static get instanceClassName(){return"HeaderModal"}init(){this.isResizing=!0}resize(){this.isBreakpoint(Q.core.Breakpoints.LG)?this.unqualify():this.qualify()}qualify(){this.setAttribute("role","dialog");const e=this.element.getInstance("Modal");if(!e)return;const t=e.buttons;let s="";for(const e of t)if(s=e.id||s,e.isPrimary&&s)break;this.setAttribute("aria-labelledby",s)}unqualify(){const e=this.element.getInstance("Modal");e&&e.conceal(),this.removeAttribute("role"),this.removeAttribute("aria-labelledby")}}Q.header={HeaderLinks:Re,HeaderModal:Pe,HeaderSelector:He,doc:"https://gouvfr.atlassian.net/wiki/spaces/DB/pages/222789846/En-t+te+-+Header"},Q.register(Q.header.HeaderSelector.LINKS,Q.header.HeaderLinks),Q.register(Q.header.HeaderSelector.MODALS,Q.header.HeaderModal);const je={DISPLAY:Q.ns.selector("display"),RADIO_BUTTONS:`input[name="${Q.ns("radios-theme")}"]`,FIELDSET:Q.ns.selector("fieldset")};class Ge extends Q.core.Instance{static get instanceClassName(){return"Display"}init(){if(this.radios=this.querySelectorAll(je.RADIO_BUTTONS),Q.scheme){this.changing=this.change.bind(this);for(const e of this.radios)e.addEventListener("change",this.changing);this.addDescent(Q.scheme.SchemeEmission.SCHEME,this.apply.bind(this)),this.ascend(Q.scheme.SchemeEmission.ASK)}else this.querySelector(je.FIELDSET).setAttribute("disabled","")}get scheme(){return this._scheme}set scheme(e){if(this._scheme!==e&&Q.scheme)switch(e){case Q.scheme.SchemeValue.SYSTEM:case Q.scheme.SchemeValue.LIGHT:case Q.scheme.SchemeValue.DARK:this._scheme=e;for(const t of this.radios)t.checked=t.value===e;this.ascend(Q.scheme.SchemeEmission.SCHEME,e)}}change(){for(const e of this.radios)if(e.checked)return void(this.scheme=e.value)}apply(e){this.scheme=e}dispose(){for(const e of this.radios)e.removeEventListener("change",this.changing)}}Q.display={Display:Ge,DisplaySelector:je},Q.register(Q.display.DisplaySelector.DISPLAY,Q.display.Display);
//# sourceMappingURL=dsfr.module.min.js.map

M resources/public/js/dsfr.nomodule.min.js => resources/public/js/dsfr.nomodule.min.js +2 -2
@@ 1,3 1,3 @@
/*! DSFR v1.1.0 | SPDX-License-Identifier: MIT | License-Filename: LICENCE.md | restricted use (see terms and conditions) */
!function(){"use strict";var t=window.dsfr||{core:{}};window.dsfr=t;var e=function(t){return"fr-"+t};e.selector=function(t,i){return void 0===i&&(i="."),""+i+e(t)},(e.attr=function(t,i,n){return"data-"+e(t)}).selector=function(t,i){var n=e.attr(t);return void 0!==i&&(n+='="'+i+'"'),"["+n+"]"},e.event=function(t){return"dsfr."+t};var i=function(t,e,i){"."===e.charAt(0)&&(e=e.substr(1));var n=t.className.split(" "),s=n.indexOf(e);!0===i?s>-1&&n.splice(s,1):-1===s&&n.push(e),t.className=n.join(" ")},n=function(t,e){return i(t,e)},s=function(t,e){return i(t,e,!0)},o=function(){this.closures=[],this.nexts=[],this.rendering=this.render.bind(this),this.render()};o.prototype.add=function(t){var e=this;this.closures.push(t);return function(){var i=e.closures.indexOf(t);-1!==i&&e.closures.splice(i,1)}},o.prototype.next=function(t,e){e=void 0===e?0:e-1,void 0===this.nexts[e]&&(this.nexts[e]=[]),this.nexts[e].push(t)},o.prototype.render=function(){window.requestAnimationFrame(this.rendering);for(var t=0,e=this.closures;t<e.length;t+=1){e[t].call()}var i=this.nexts.shift();if(i)for(var n=0,s=i;n<s.length;n+=1){s[n].call()}};var r=function(){this.renderer=new o};r.prototype.register=function(t,e){},r.prototype.start=function(){},r.prototype.stop=function(){};var c=new r,h=function(t,e){this.selector=t,this.builders=e,this.instances=[],"loading"!==document.readyState?window.requestAnimationFrame(this.start.bind(this)):document.addEventListener("DOMContentLoaded",this.start.bind(this))};h.prototype.start=function(){if(!(this.instances.length>0)&&document.querySelectorAll(this.selector).length>0)for(var t=0;t<this.builders.length;t++)this.instances.push(this.builders[t]())};var a={},l={},u=0,d=function(t){for(var e in l)if(l[e]===t)return e;var i=++u;return l[i]=t,i},p=function(t,e,i){var n=d(t);a[n]||(a[n]=[]),a[n].push(this),this.element=t,this.id=t.id,this._isRendering=!1,this._isResizing=!1,this.listeners={},this.isResizing=e,this.isRendering=i},f={isRendering:{configurable:!0},isResizing:{configurable:!0}};p.prototype.dispatch=function(t,e){var i=new CustomEvent(t,e);this.element.dispatchEvent(i)},p.prototype.listen=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].indexOf(e)>-1||(this.listeners[t].push(e),this.element.addEventListener(t,e))},p.prototype.unlisten=function(t,e){if(t)if(e){if(!this.listeners[t])return;var i=this.listeners[t].indexOf(e);i>-1&&this.listeners[t].splice(i,1),this.element.removeEventListener(e)}else{if(!this.listeners[t])return;for(var n=0,s=this.listeners[t];n<s.length;n+=1){var o=s[n];this.element.removeEventListener(o)}this.listeners[t].length=0}else for(var r in this.listeners)this.unlisten(r)},f.isRendering.get=function(){return this._isRendering},f.isRendering.set=function(t){this._isRendering!==t&&(this._isRendering=t)},p.prototype.render=function(){},f.isResizing.get=function(){return this._isResizing},f.isResizing.set=function(t){this._isResizing!==t&&(this._isResizing=t)},p.prototype.resize=function(){},p.prototype.destroy=function(){},p.getInstances=function(t,e){var i=d(t);return a[i]?e?a[i].filter((function(t){return t instanceof e})):a[i]:null},Object.defineProperties(p.prototype,f);var m=e.attr("group"),y=[],b=function(t,e){this.id=t,this.element=e,this.members=[],this._index=-1,this._current=null,y.push(this)},g={length:{configurable:!0},index:{configurable:!0},current:{configurable:!0},hasFocus:{configurable:!0}},v={selector:{configurable:!0}};b.getGroupById=function(t){for(var e=0,i=y;e<i.length;e+=1){var n=i[e];if(n.constructor===this&&n.id===t)return n}return new this(t)},b.getGroupByElement=function(t){for(var e=0,i=y;e<i.length;e+=1){var n=i[e];if(n.element===t)return n}return new this(!1,t)},b.groupById=function(t,e){var i=t.element.getAttribute(m);null!==i&&e.getGroupById(i).add(t)},b.groupByParent=function(t,e,i){if(void 0===i&&(i=e.selector),""!==i)for(var n=t.element.parentElement;n;){if(n.classList.contains(t.constructor.selector))return;if(n.classList.contains(i))return void e.getGroupByElement(n).add(t);n=n.parentElement}},v.selector.get=function(){return""},b.prototype.add=function(t){if(-1===this.members.indexOf(t))switch(this.members.push(t),t.setGroup(this),!0){case null!==this.current:case!(t.disclosed||t.primary&&t.primary.disclosed):t.disclosed=!1;break;default:this._current=t,this._index=this.members.indexOf(t),t.disclosed=!0}},g.length.get=function(){return this.members.length},g.index.get=function(){return this._index},g.index.set=function(t){t<-1||t>=this.length||this._index===t||(null!==this.current&&this.current.conceal(!0,!0),this._index=t,this._current=this._index>-1?this.members[this._index]:null,null!==this.current&&this.current.disclose(!0),this.apply())},g.current.get=function(){return this._current},g.current.set=function(t){this.index=this.members.indexOf(t)},g.hasFocus.get=function(){return void 0===this.current?null:this.current.hasFocus},b.prototype.apply=function(){},Object.defineProperties(b.prototype,g),Object.defineProperties(b,v);var w=function(t,e){this.element=t,this.disclosure=e,this.hasAttribute=this.element.hasAttribute(this.disclosure.attributeName),this.element.addEventListener("click",this.click.bind(this)),this.observer=new MutationObserver(this.mutate.bind(this)),this.observe()},E={disclosed:{configurable:!0},hasFocus:{configurable:!0}};w.prototype.observe=function(){this.observer.observe(this.element,{attributes:!0})},w.prototype.click=function(t){this.disclosure.change(this.hasAttribute)},w.prototype.mutate=function(t){var e=this;t.forEach((function(t){"attributes"===t.type&&t.attributeName===e.disclosure.attributeName&&e.disclosure.change(e.disclosed)}))},w.prototype.apply=function(t){this.hasAttribute&&(this.observer&&this.observer.disconnect(),this.element.setAttribute(this.disclosure.attributeName,t),this.observer&&this.observe())},E.disclosed.get=function(){return"true"===this.element.getAttribute(this.disclosure.attributeName)},E.hasFocus.get=function(){return this.element===document.activeElement},Object.defineProperties(w.prototype,E);var _=e.event("DISCLOSE"),x=e.event("CONCEAL"),L=[],A=function(t){function i(i){t.call(this,i),this.buttons=[],this._selector=this.constructor.selector,this.modifier=this._selector+"--"+this.type.id,this.attributeName=this.type.ariaState?"aria-"+this.type.id:e.attr(this.type.id),this.pristine=!0;var n=document.querySelectorAll(this.type.ariaControls?'[aria-controls="'+this.id+'"]':e.attr.selector("controls",this.id));if(n.length>0)for(var s=0;s<n.length;s++)this.addButton(n[s]);this.disclosed=this.primary&&this.primary.disclosed,this.gather()}t&&(i.__proto__=t),i.prototype=Object.create(t&&t.prototype),i.prototype.constructor=i;var o={type:{configurable:!0},GroupConstructor:{configurable:!0},disclosed:{configurable:!0},buttonHasFocus:{configurable:!0},hasFocus:{configurable:!0}},r={type:{configurable:!0},selector:{configurable:!0}};return i.prototype.gather=function(){this.group||(b.groupById(this,this.GroupConstructor),b.groupByParent(this,this.GroupConstructor))},i.build=function(t){for(var e=0,i=Array.prototype.slice.call(t.querySelectorAll("."+this.selector));e<i.length;e+=1){var n=i[e];L.push(new this(n))}},o.type.get=function(){return this.constructor.type},r.type.get=function(){return null},r.selector.get=function(){return""},i.prototype.addButton=function(t){var e=this.buttonFactory(t);e.hasAttribute&&(void 0===this.primary?this.primary=e:e.apply(this.primary.disclosed)),this.buttons.push(e)},o.GroupConstructor.get=function(){return b},i.prototype.buttonFactory=function(t){return new w(t,this)},i.prototype.disclose=function(t){return!this.disclosed&&(this.pristine=!1,this.disclosed=!0,t||void 0===this.group||(this.group.current=this),!0)},i.prototype.conceal=function(t,e){if(!this.disclosed)return!1;this.pristine=!1,this.disclosed=!1,e||this.focus(),t||void 0===this.group||(this.group.current=null);for(var i=0,n=L;i<n.length;i+=1){var s=n[i];s!==this&&this.element.contains(s.element)&&s.reset()}return!0},o.disclosed.get=function(){return this._disclosed},o.disclosed.set=function(t){if(this._disclosed!==t){this.dispatch(t?_:x,this.type),this._disclosed=t,t?n(this.element,this.modifier):s(this.element,this.modifier);for(var e=0;e<this.buttons.length;e++)this.buttons[e].apply(t)}},i.prototype.reset=function(){},i.prototype.change=function(t){if(this.constructor.type.canConceal)switch(!0){case!t:case this.disclosed:this.conceal();break;default:this.disclose()}else this.disclose()},i.prototype.setGroup=function(t){this.group=t},o.buttonHasFocus.get=function(){return!!this.buttons.some((function(t){return t.hasFocus}))},o.hasFocus.get=function(){return this.element===document.activeElement||(this.element.querySelectorAll(":focus").length>0||this.buttonHasFocus)},i.prototype.focus=function(){for(var t=0;t<this.buttons.length;t++){var e=this.buttons[t];if(e.hasAttribute)return void e.element.focus()}},Object.defineProperties(i.prototype,o),Object.defineProperties(i,r),i}(p);A.DISCLOSE_EVENT=_,A.CONCEAL_EVENT=x;var S={expand:{id:"expanded",ariaState:!0,ariaControls:!0,canConceal:!0},select:{id:"selected",ariaState:!0,ariaControls:!0,canConceal:!1},opened:{id:"opened",ariaState:!1,ariaControls:!0,canConceal:!0}},C=function(t){this.element=t,this.collections={}};C.prototype._add=function(t,e){void 0===this.collections[t]&&(this.collections[t]=new k(t,this.element)),this.collections[t].add(e)},C.prototype.down=function(t,e,i,n){this._add("down",new O(t,e,i,n))},C.prototype.up=function(t,e,i,n){this._add("up",new O(t,e,i,n))},C.prototype.dispose=function(){for(var t=0,e=this.collections;t<e.length;t+=1){e[t].dispose()}this.types=null};var k=function(t,e){this.type=t,this.element=e,this.actions=[],this.binding=this.handle.bind(this),this.element.addEventListener("key"+t,this.binding)};k.prototype.add=function(t){this.actions.push(t)},k.prototype.handle=function(t){for(var e=0,i=this.actions;e<i.length;e+=1){i[e].handle(t)}},k.prototype.dispose=function(){this.element.removeEventListener("key"+this.type,this.binding),this.actions=null};var O=function(t,e,i,n){this.key=t,this.closure=e,this.preventDefault=!0===i,this.stopPropagation=!0===n};O.prototype.handle=function(t){t.keyCode===this.key&&(this.closure(t),this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation())},C.TAB=9,C.ESCAPE=27,C.END=35,C.HOME=36,C.LEFT=37,C.UP=38,C.RIGHT=39,C.DOWN=40;var P=e("collapse"),q=[],z={},I=function(t){function e(e){t.call(this,e),q.push(this),this.requesting=this.request.bind(this),e.addEventListener("transitionend",this.transitionend.bind(this)),this.disclosed&&this.unbound()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={type:{configurable:!0},selector:{configurable:!0}};return e.prototype.gatherByAscendants=function(){if(!this.group)for(var t in z)for(var e=this.element.parentElement;e;){if(e.classList.contains(t))return void("string"==typeof z[t]?b.groupByParent(this,b,z[t]):b.groupByParent(this,z[t]));e=e.parentElement}},e.prototype.gather=function(){this.gatherByAscendants(),t.prototype.gather.call(this)},i.type.get=function(){return S.expand},i.selector.get=function(){return P},e.register=function(t,e){z[t]=e;for(var i=0,n=q;i<n.length;i+=1){n[i].gatherByAscendants()}},e.prototype.transitionend=function(t){this.disclosed||(this.element.style.maxHeight="")},e.prototype.unbound=function(){this.element.style.maxHeight="none"},e.prototype.disclose=function(e){var i=this;this.disclosed||(this.unbound(),this.adjust(),this.requested=function(){t.prototype.disclose.call(i,e)},window.requestAnimationFrame(this.requesting))},e.prototype.conceal=function(e,i){var n=this;this.disclosed&&(this.adjust(),this.requested=function(){t.prototype.conceal.call(n,e,i)},window.requestAnimationFrame(this.requesting))},e.prototype.request=function(){this.requested&&this.requested(),this.requested=null},e.prototype.adjust=function(){this.element.style.setProperty("--collapser","none");var t=this.element.offsetHeight;this.element.style.setProperty("--collapse",-t+"px"),this.element.style.setProperty("--collapser","")},e.prototype.reset=function(){this.pristine||(this.disclosed=!1)},Object.defineProperties(e,i),e}(A),j=function(t,e){this.selector=t,this.group=e,this.elements=this.group.querySelectorAll(this.selector),this.maxWidth=0,this.changing=this.change.bind(this),window.addEventListener("resize",this.changing),window.addEventListener("load",this.changing)};j.prototype.change=function(){this.reset();for(var t=0;t<this.elements.length;t++){var e=this._getWidth(this.elements[t]);e>this.maxWidth&&(this.maxWidth=e)}this.apply()},j.prototype.apply=function(){for(var t=0;t<this.elements.length;t++)this.elements[t].style.width=this.maxWidth+1+"px"},j.prototype.reset=function(){for(var t=0;t<this.elements.length;t++)this.elements[t].style.width="auto";this.maxWidth=0},j.prototype._getWidth=function(t){var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft)+parseInt(i.marginRight)},t.core.ns=e,t.core.addClass=n,t.core.removeClass=s,t.core.engine=c,t.core.Instance=p,t.core.Initializer=h,t.core.Disclosure=A,t.core.DisclosureButton=w,t.core.DisclosuresGroup=b,t.core.DISCLOSURE_TYPES=S,t.KeyListener=C,t.Collapse=I,t.Equisized=j;new h("."+P,[function(){I.build(document)}]);var D=t.core.ns("accordions-group"),G=t.core.ns("accordion"),R=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={selector:{configurable:!0}};return i.selector.get=function(){return D},Object.defineProperties(e,i),e}(t.core.DisclosuresGroup);t.AccordionsGroup=R,t.Collapse.register(G,R);var T=t.core.ns.selector("breadcrumb")+" "+t.core.ns.selector("collapse"),F=function(e){function i(i){e.call(this,i),this.collapse=t.core.Instance.getInstances(i,t.Collapse)[0],this.links=[].concat(this.element.querySelectorAll("a[href]")),this.count=0,this.links.length&&(this.listen(t.core.Disclosure.DISCLOSE_EVENT,this.focus.bind(this)),this.resizing=this.resize.bind(this),window.addEventListener("resize",this.resizing))}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.focus=function(){var e=this;this.links[0].focus(),t.core.engine.renderer.next((function(){e.verify()}))},i.prototype.verify=function(){this.count++,this.count>100||document.activeElement!==this.links[0]&&this.focus()},i.prototype.resize=function(){window.matchMedia("(min-width: 48em)").matches?this.collapse.buttons[0]===document.activeElement&&this.links.focus():this.links.indexOf(document.activeElement)>-1&&this.collapse.focus()},i}(t.core.Instance);new t.core.Initializer(T,[function(){for(var t=[],e=document.querySelectorAll(T),i=0;i<e.length;i++)t.push(new F(e[i]))}]);var H=t.core.ns.selector("btn"),N=t.core.ns.selector("btns-group"),B=t.core.ns.selector("btns-group--equisized");new t.core.Initializer(N,[function(){for(var e=document.querySelectorAll(B),i=[],n=0;n<e.length;n++)i.push(new t.Equisized(H,e[n]))}]);var M=t.core.ns.selector("modal"),W=t.core.ns("modal"),K=t.core.ns("no-scroll"),V=t.core.ns("scroll-shadow"),U=t.core.ns.selector("modal__body"),Y=['[tabindex="0"]',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false" i])',"details>summary:first-of-type","details"].join(),J=['[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'].join(),Q=function(t,e){if("hidden"===window.getComputedStyle(t).visibility)return!1;for(void 0===e&&(e=t);e.contains(t);){if("none"===window.getComputedStyle(t).display)return!1;t=t.parentElement}return!0},X=function(t,e){this.element=null,this.activeElement=null,this.onTrap=t,this.onUntrap=e,this.waiting=this.wait.bind(this),this.handling=this.handle.bind(this),this.current=null},Z={trapped:{configurable:!0},focusables:{configurable:!0}};Z.trapped.get=function(){return null!==this.element},X.prototype.trap=function(t){this.trapped&&this.untrap(),this.element=t,this.isTrapping=!0,this.wait(),this.onTrap&&this.onTrap()},X.prototype.wait=function(){Q(this.element)?this.trapping():t.core.engine.renderer.next(this.waiting)},X.prototype.trapping=function(){if(this.isTrapping){this.isTrapping=!1;var t=this.focusables;t.length&&t[0].focus(),this.element.setAttribute("aria-modal",!0),window.addEventListener("keydown",this.handling),this.stunneds=[]}},X.prototype.stun=function(t){for(var e=0,i=t.children;e<i.length;e+=1){var n=i[e];n!==this.element&&(n.contains(this.element)?this.stun(n):this.stunneds.push(new $(n)))}},X.prototype.handle=function(t){if(9===t.keyCode){var e=this.focusables;if(0!==e.length){var i=e[0],n=e[e.length-1],s=e.indexOf(document.activeElement);t.shiftKey?!this.element.contains(document.activeElement)||s<1?(t.preventDefault(),n.focus()):(document.activeElement.tabIndex>0||e[s-1].tabIndex>0)&&(t.preventDefault(),e[s-1].focus()):this.element.contains(document.activeElement)&&s!==e.length-1&&-1!==s?document.activeElement.tabIndex>0&&(t.preventDefault(),e[s+1].focus()):(t.preventDefault(),i.focus())}}},Z.focusables.get=function(){var t=this,e=[].concat(this.element.querySelectorAll(Y)),i=[].concat(document.documentElement.querySelectorAll('input[type="radio"]'));if(i.length){for(var n={},s=0,o=i;s<o.length;s+=1){var r=o[s],c=r.getAttribute("name");void 0===n[c]&&(n[c]=new tt(c)),n[c].push(r)}e=e.filter((function(t){if("input"!==t.tagName.toLowerCase()||"radio"!==t.getAttribute("type").toLowerCase())return!0;var e=t.getAttribute("name");return n[e].keep(t)}))}var h=[].concat(this.element.querySelectorAll(J));h.sort((function(t,e){return t.tabIndex-e.tabIndex}));var a=e.filter((function(t){return-1===h.indexOf(t)}));return h.concat(a).filter((function(e){return"-1"!==e.tabIndex&&Q(e,t.element)}))},X.prototype.untrap=function(){this.trapped&&(this.isTrapping=!1,this.element.removeAttribute("aria-modal"),window.removeEventListener("keydown",this.handling),this.element=null,this.onUntrap&&this.onUntrap())},Object.defineProperties(X.prototype,Z);var $=function(t){this.element=t,this.hidden=t.getAttribute("aria-hidden"),this.inert=t.getAttribute("inert"),this.element.setAttribute("aria-hidden",!0),this.element.setAttribute("inert","")};$.prototype.unstun=function(){null===this.hidden?this.element.removeAttribute("aria-hidden"):this.element.setAttribute("aria-hidden",this.hidden),null===this.inert?this.element.removeAttribute("inert"):this.element.setAttribute("inert",this.inert)};var tt=function(t){this.name=t,this.buttons=[]};tt.prototype.push=function(t){this.buttons.push(t),(t===document.activeElement||t.checked||void 0===this.selected)&&(this.selected=t)},tt.prototype.keep=function(t){return this.selected===t};var et=function(t){function e(){t.call(this),this.trap=new X}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(e,i){t.prototype.apply.call(this,e,i),null===this.current?this.trap.untrap():this.trap.trap(this.current.element)},e}(t.core.DisclosuresGroup),it=new et,nt=function(e){function i(t){e.call(this,t),this.body=this.element.querySelector(U),this.scrollDistance=0,this.scrolling=this.resize.bind(this,!1),this.resizing=this.resize.bind(this,!0),this.init(),this.resize(!0)}e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i;var n={GroupConstructor:{configurable:!0}},s={type:{configurable:!0},selector:{configurable:!0}};return i.prototype.init=function(){this.element.addEventListener("click",this.click.bind(this)),this.keyListener=new t.KeyListener(this.element),this.keyListener.down(t.KeyListener.ESCAPE,this.conceal.bind(this),!0,!0),this.body&&(this.body.addEventListener("scroll",this.scrolling),window.addEventListener("resize",this.resizing))},i.prototype.click=function(t){this.body&&this.body!==t.target&&!this.body.contains(t.target)&&this.conceal()},i.prototype.gather=function(){it.add(this)},i.prototype.disclose=function(t){return!!e.prototype.disclose.call(this,t)&&(this.resize(!0),this.handleScroll(!1),!0)},i.prototype.conceal=function(t,i){return!!e.prototype.conceal.call(this,t,i)&&(this.handleScroll(!0),!0)},i.prototype.handleScroll=function(e){e?(t.core.removeClass(document.documentElement,K),document.body.style.top="",window.scroll(0,this.scrollDistance)):(document.documentElement.classList.contains(K)||(this.scrollDistance=window.scrollY),document.body.style.top=-1*this.scrollDistance+"px",t.core.addClass(document.documentElement,K))},i.prototype.resize=function(e,i){var n=this;this.body&&(this.body.scrollHeight>this.body.clientHeight?this.body.offsetHeight+this.body.scrollTop>=this.body.scrollHeight?t.core.removeClass(this.body,V):t.core.addClass(this.body,V):t.core.removeClass(this.body,V),this.isMedium=window.matchMedia("(min-width: 48em)").matches,e&&(this.isMedium?this.body.style.removeProperty("max-height"):(this.body.style.maxHeight=window.innerHeight-32+"px",t.core.engine.renderer.next((function(){n.body.style.maxHeight=window.innerHeight-32+"px"})))))},s.type.get=function(){return t.core.DISCLOSURE_TYPES.opened},s.selector.get=function(){return W},n.GroupConstructor.get=function(){return et},Object.defineProperties(i.prototype,n),Object.defineProperties(i,s),i}(t.core.Disclosure);t.Modal=nt,t.ModalsGroup=et,t.FocusTrap=X;new t.core.Initializer(M,[function(){nt.build(document)}]);var st=t.core.ns("nav"),ot=t.core.ns("nav__list"),rt=t.core.ns("nav__item"),ct=t.core.ns("nav__item--align-right"),ht=t.core.ns("menu"),at=function(t){function e(e,i){t.call(this,e,i),this.menus=[],this.navList=i.querySelector("."+ot),document.addEventListener("focusout",this.focusOut.bind(this)),window.addEventListener("resize",this.resize.bind(this)),window.addEventListener("orientationchange",this.resize.bind(this)),this.resize()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={index:{configurable:!0}},n={selector:{configurable:!0}};return n.selector.get=function(){return st},e.prototype.add=function(e){t.prototype.add.call(this,e),e.element.classList.contains(ht)&&this.menus.push(new lt(e,this.navList.getBoundingClientRect().right))},e.prototype.focusOut=function(t){var e=this;requestAnimationFrame((function(){null===e.current||e.current.hasFocus||(e.index=-1)}))},i.index.get=function(){return t.prototype.index},i.index.set=function(e){-1===e&&null!==this.current&&this.current.hasFocus&&this.current.focus(),t.prototype.index=e},e.prototype.resize=function(){for(var t=this.navList.getBoundingClientRect().right,e=0,i=this.menus;e<i.length;e+=1){i[e].place(t)}},Object.defineProperties(e.prototype,i),Object.defineProperties(e,n),e}(t.core.DisclosuresGroup),lt=function(t,e){this.initialize(t),this.place(e)};lt.prototype.initialize=function(t){this.element=t.element;for(var e=0,i=t.buttons;e<i.length;e+=1){var n=i[e];if(n.hasAttribute){this.button=n.element;break}}for(var s=this.element.parentElement;s;){if(s.classList.contains(rt)){this.item=s;break}s=s.parentElement}},lt.prototype.place=function(e){var i=getComputedStyle(this.element),n=parseFloat(i.width);this.button.getBoundingClientRect().left+n>e?t.core.addClass(this.item,ct):t.core.removeClass(this.item,ct)},t.Navigation=at,t.Collapse.register(st,at);var ut=t.core.ns.attr("theme"),dt=t.core.ns.attr("transition"),pt=function(){this.init()};pt.prototype.init=function(){var t=this;if(this.root=document.documentElement,this.scheme=localStorage.getItem("scheme")?localStorage.getItem("scheme"):null,null===this.scheme){var e=this.root.getAttribute(ut);"dark"===e||"light"===e?this.scheme=e:window.matchMedia("(prefers-color-scheme: dark)").matches?(this.scheme="dark",localStorage.setItem("scheme","dark")):this.scheme="light"}"dark"===this.scheme?this.root.hasAttribute(dt)?(this.root.removeAttribute(dt),this.root.setAttribute(ut,"dark"),setTimeout((function(){t.root.setAttribute(dt,"")}),300)):this.root.setAttribute(ut,"dark"):this.root.setAttribute(ut,"light"),this.observer=new MutationObserver(this.mutate.bind(this)),this.observer.observe(this.root,{attributes:!0})},pt.prototype.mutate=function(t){var e=this;t.forEach((function(t){if("attributes"===t.type&&t.attributeName===ut){var i=e.root.getAttribute(ut);"dark"===i?localStorage.setItem("scheme","dark"):"light"===i&&localStorage.setItem("scheme","light")}}))},t.Scheme=pt;var ft='input[name="'+t.core.ns.selector("radios-theme","")+'"]',mt=t.core.ns.selector("switch-theme","#"),yt=t.core.ns.attr("theme"),bt=function(){this.attributeName=yt,this.theme=null,this.radios=document.querySelectorAll(ft);for(var t=0;t<this.radios.length;t++)this.radios[t].addEventListener("change",this.change.bind(this));this.observer=new MutationObserver(this.mutate.bind(this)),this.observe(),this.apply()};bt.prototype.observe=function(){this.observer.observe(document.documentElement,{attributes:!0})},bt.prototype.mutate=function(t){var e=this;t.forEach((function(t){"attributes"===t.type&&t.attributeName===e.attributeName&&e.apply()}))},bt.prototype.apply=function(){var t=document.documentElement.getAttribute(this.attributeName);this.isApplying=!0;for(var e=0;e<this.radios.length;e++)this.radios[e].checked=this.radios[e].value===t;this.isApplying=!1},bt.prototype.change=function(){this.isApplying||(this.observer&&this.observer.disconnect(),this.theme=document.querySelector(ft+":checked"),this.theme?document.documentElement.setAttribute(this.attributeName,this.theme.value):document.documentElement.removeAttribute(this.attributeName),this.observer&&this.observe())};new t.core.Initializer(":root["+ut+"]",[function(){new pt}]),new t.core.Initializer(""+mt,[function(){new bt}]);var gt=t.core.ns("sidemenu"),vt=t.core.ns("sidemenu__list");t.Collapse.register(gt,vt);var wt=t.core.ns.selector("table"),Et=t.core.ns("table--no-scroll"),_t="left",xt="right",Lt=t.core.ns("table--shadow"),At=t.core.ns("table--shadow-left"),St=t.core.ns("table--shadow-right"),Ct=function(t){this.init(t)};Ct.prototype.init=function(e){this.table=e,this.table.setAttribute(t.core.ns.attr("js-table"),"true"),this.tableElem=this.table.querySelector("table"),this.tableContent=this.tableElem.querySelector("tbody"),this.isScrollable=this.tableContent.offsetWidth>this.tableElem.offsetWidth,this.caption=this.tableElem.querySelector("caption"),this.captionHeight=0;var i=this.change.bind(this);this.tableElem.addEventListener("scroll",i)},Ct.prototype.change=function(){var t=this.tableContent.offsetWidth>this.tableElem.offsetWidth,e=this.tableElem.offsetWidth>this.table.offsetWidth;t||e?this.table.classList.contains(Et)||this.scroll():t!==this.isScrollable&&this.delete(),this.isScrollable=t,e=!1;var i=this.caption.getBoundingClientRect();this.table.style.setProperty("--table-offset",i.height+"px")},Ct.prototype.delete=function(){t.core.removeClass(this.table,St),t.core.removeClass(this.table,At),t.core.removeClass(this.table,Lt),this.caption&&(this.tableElem.style.marginTop="",this.caption.style.top="",this.tableElem.style.marginBottom="",this.caption.style.bottom="")},Ct.prototype.scroll=function(){t.core.addClass(this.table,Lt),this.setShadowPosition()},Ct.prototype.setShadowPosition=function(){var t=this.getScrollPosition(_t),e=this.getScrollPosition(xt);"rtl"===document.documentElement.getAttribute("dir")?(this.setShadowVisibility(xt,t),this.setShadowVisibility(_t,e)):(this.setShadowVisibility(_t,t),this.setShadowVisibility(xt,e))},Ct.prototype.getScrollPosition=function(t){var e=1;switch("rtl"===document.documentElement.getAttribute("dir")&&(e=-1),t){case _t:return this.tableElem.scrollLeft*e;case xt:return this.tableContent.offsetWidth-this.tableElem.offsetWidth-this.tableElem.scrollLeft*e;default:return!1}},Ct.prototype.setShadowVisibility=function(e,i){i<=1?e===_t?t.core.removeClass(this.table,At):e===xt&&t.core.removeClass(this.table,St):e===_t?t.core.addClass(this.table,At):e===xt&&t.core.addClass(this.table,St)},t.Table=Ct;var kt=[],Ot=function(){for(var t=0;t<kt.length;t++)kt[t].change()};new t.core.Initializer(wt,[function(){for(var t=document.querySelectorAll(wt),e=0;e<t.length;e++)kt.push(new Ct(t[e]));window.addEventListener("resize",Ot),window.addEventListener("orientationchange",Ot),Ot()}]);var Pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(e){t.prototype.apply.call(this,e),this.hasAttribute&&this.element.setAttribute("tabindex",e?"0":"-1")},e}(t.core.DisclosureButton),qt=t.core.ns.selector("tabs"),zt=t.core.ns("tabs"),It=t.core.ns("tabs__tab"),jt=t.core.ns("tabs__panel"),Dt=t.core.ns("tabs__list"),Gt=function(e){function i(i,n){e.call(this,i,n),this.list=n.querySelector("."+Dt),n.addEventListener("transitionend",this.transitionend.bind(this)),this.init(),t.core.engine.renderer.add(this.render.bind(this))}e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i;var n={selector:{configurable:!0}};return n.selector.get=function(){return zt},i.prototype.transitionend=function(t){this.element.style.transition="none"},i.prototype.init=function(){this.keyListener=new t.KeyListener(this.element),this.keyListener.down(t.KeyListener.RIGHT,this.arrowRightPress.bind(this),!0,!0),this.keyListener.down(t.KeyListener.LEFT,this.arrowLeftPress.bind(this),!0,!0),this.keyListener.down(t.KeyListener.HOME,this.homePress.bind(this),!0,!0),this.keyListener.down(t.KeyListener.END,this.endPress.bind(this),!0,!0)},i.prototype.arrowRightPress=function(){document.activeElement.classList.contains(It)&&(this.index<this.length-1?this.index++:this.index=0,this.focus())},i.prototype.arrowLeftPress=function(){document.activeElement.classList.contains(It)&&(this.index>0?this.index--:this.index=this.length-1,this.focus())},i.prototype.homePress=function(){document.activeElement.classList.contains(It)&&(this.index=0,this.focus())},i.prototype.endPress=function(){document.activeElement.classList.contains(It)&&(this.index=this.length-1,this.focus())},i.prototype.focus=function(){this.current&&this.current.focus()},i.prototype.apply=function(){for(var t=0;t<this._index;t++)this.members[t].translate(-1);this.current.element.style.transition="",this.current.element.style.transform="";for(var e=this._index+1;e<this.length;e++)this.members[e].translate(1);this.element.style.transition=""},i.prototype.add=function(t){if(e.prototype.add.call(this,t),1===this.length||t.disclosed)this.current=t;else{var i=this.members.indexOf(t);this._index>-1&&this._index!==i&&t.translate(i<this._index?-1:1,!0)}},i.prototype.render=function(){if(null!==this.current){var t=Math.round(this.current.element.offsetHeight);this.panelHeight!==t&&(this.panelHeight=t,this.element.style.height=this.panelHeight+this.list.offsetHeight+"px")}},Object.defineProperties(i,n),i}(t.core.DisclosuresGroup),Rt=function(e){function i(){e.apply(this,arguments)}e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i;var n={GroupConstructor:{configurable:!0}},s={type:{configurable:!0},selector:{configurable:!0}};return s.type.get=function(){return t.core.DISCLOSURE_TYPES.select},s.selector.get=function(){return jt},n.GroupConstructor.get=function(){return Gt},i.prototype.buttonFactory=function(t){return new Pt(t,this)},i.prototype.translate=function(t,e){this.element.style.transition=e?"none":"",this.element.style.transform="translate("+100*t+"%)"},i.prototype.reset=function(){this.group.index=0},Object.defineProperties(i.prototype,n),Object.defineProperties(i,s),i}(t.core.Disclosure);t.Tab=Rt,t.TabButton=Pt,t.TabsGroup=Gt;new t.core.Initializer(qt,[function(){Rt.build(document)}]);var Tt=t.core.ns.selector("header"),Ft=t.core.ns.selector("header__search"),Ht=t.core.ns.selector("header__menu"),Nt=t.core.ns.selector("header__tools-links"),Bt=t.core.ns.selector("header__menu-links"),Mt=Nt+" "+t.core.ns.selector("links-group"),Wt=function(t){this.header=t||document.querySelector(Tt),this.modals=[],this.init()};Wt.prototype.getModal=function(e){var i=this.header.querySelector(e);if(i){var n=t.core.Instance.getInstances(i,t.Modal);n&&n.length&&this.modals.push(new Kt(n[0]))}},Wt.prototype.init=function(){this.getModal(Ft),this.getModal(Ht),this.linksGroup=this.header.querySelector(Mt),this.toolsLinks=this.header.querySelector(Nt),this.menuLinks=this.header.querySelector(Bt),this.changing=this.change.bind(this),window.addEventListener("resize",this.changing),this.change()},Wt.prototype.change=function(){this.isLarge=window.matchMedia("(min-width: 62em)").matches,this.isLarge?this.modals.forEach((function(t){return t.disable()})):this.modals.forEach((function(t){return t.enable()})),null!==this.linksGroup&&(this.isLarge?this.toolsLinks.appendChild(this.linksGroup):this.menuLinks.appendChild(this.linksGroup))};var Kt=function(t){this.modal=t};Kt.prototype.enable=function(){this.modal.element.setAttribute("role","dialog"),this.modal.element.setAttribute("aria-labelledby",this.modal.primary.element.id)},Kt.prototype.disable=function(){this.modal.conceal(),this.modal.element.removeAttribute("role"),this.modal.element.removeAttribute("aria-labelledby")},t.Header=Wt;new t.core.Initializer(Tt,[function(){for(var t=[],e=0,i=Array.prototype.slice.call(document.querySelectorAll(Tt));e<i.length;e+=1){var n=i[e];t.push(new Wt(n))}}])}();
/*! DSFR v1.2.0 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
!function(){"use strict";var t=function(){this.modules={}},e={isActive:{configurable:!0},isLegacy:{configurable:!0}};t.prototype.create=function(t){var e=new t;this.modules[e.type]=e},t.prototype.getModule=function(t){return this.modules[t]},t.prototype.add=function(t,e){this.modules[t].add(e)},t.prototype.remove=function(t,e){this.modules[t].remove(e)},e.isActive.get=function(){return this._isActive},e.isActive.set=function(t){var e=this;if(t!==this._isActive){this._isActive=t;var n=Object.keys(this.modules).map((function(t){return e.modules[t]}));if(t)for(var i=0,s=n;i<s.length;i+=1){s[i].activate()}else for(var o=0,r=n;o<r.length;o+=1){r[o].deactivate()}}},e.isLegacy.get=function(){return this._isLegacy},e.isLegacy.set=function(t){t!==this._isLegacy&&(this._isLegacy=t)},Object.defineProperties(t.prototype,e);var n=new t,i="fr",s="dsfr",o="1.2.0",r=function(t,e,n,i){switch(this.level=t,this.light=e,this.dark=n,i){case"warn":this.logger=console.warn;break;case"error":this.logger=console.error;break;default:this.logger=console.log}},c={color:{configurable:!0}};r.prototype.log=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=new a(s),i=0,o=t;i<o.length;i+=1){var r=o[i];n.add(r)}this.print(n)},r.prototype.print=function(t){t.setColor(this.color),this.logger.apply(console,t.getMessage())},c.color.get=function(){return window.matchMedia("(prefers-color-scheme: dark)").matches?this.dark:this.light},Object.defineProperties(r.prototype,c);var a=function(t){this.inputs=["%c"],this.styles=["font-family:Marianne","line-height: 1.5"],this.objects=[],t&&this.add(t+" :")};a.prototype.add=function(t){switch(typeof t){case"object":case"function":this.inputs.push("%o "),this.objects.push(t);break;default:this.inputs.push(t+" ")}},a.prototype.setColor=function(t){this.styles.push("color:"+t)},a.prototype.getMessage=function(){return[this.inputs.join(""),this.styles.join(";")].concat(this.objects)};var l={trace:new r(0,"#616161","#989898"),debug:new r(1,"#000091","#8B8BFF"),info:new r(2,"#007c3b","#00ed70"),warn:new r(3,"#ba4500","#fa5c00","warn"),error:new r(4,"#D80600","#FF4641","error")},u=function(){var t=this;this.level=2;var e=function(e){var n=l[e];t[e]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];t.level<=n.level&&n.log.apply(n,e)},t[e].print=n.print.bind(n)};for(var n in l)e(n)};u.prototype.state=function(){var t=new a;t.add(n),this.trace.print(t)},u.prototype.tree=function(){var t=n.getModule("stage");if(t){var e=new a;this._branch(t.root,0,e),this.trace.print(e)}},u.prototype._branch=function(t,e,n){var i="";if(e>0){for(var s="",o=0;o<e;o++)s+="    ";i+=s+"└─ "}i+="["+t.id+"] "+t.html,n.add(i),n.add({"@":t}),n.add("\n");for(var r=0,c=t.children;r<c.length;r+=1){var a=c[r];i+=this._branch(a,e+1,n)}};var h=new u,p=function(t){"loading"!==document.readyState?window.requestAnimationFrame(t):document.addEventListener("DOMContentLoaded",t)},d={AUTO:"auto",MANUAL:"manual",RUNTIME:"runtime",LOADED:"loaded",VUE:"vue",ANGULAR:"angular",REACT:"react"},f=function(){this._mode=d.AUTO,this.isStarted=!1,this.starting=this.start.bind(this),this.preventManipulation=!1},y={mode:{configurable:!0}};f.prototype.configure=function(t,e){void 0===t&&(t={}),this.startCallback=e,!0===t.verbose&&(h.level=0),this.mode=t.mode||d.AUTO},y.mode.set=function(t){switch(t){case d.AUTO:this.preventManipulation=!1,e=this.starting,p(e);break;case d.LOADED:this.preventManipulation=!1,p(this.starting);break;case d.RUNTIME:this.preventManipulation=!1,this.start();break;case d.MANUAL:this.preventManipulation=!1;break;case d.VUE:case d.ANGULAR:case d.REACT:this.preventManipulation=!0;break;default:return void h.error("Illegal mode")}var e;this._mode=t,h.info("mode set to "+t)},y.mode.get=function(){return this._mode},f.prototype.start=function(){h.info("start"),this.startCallback()},Object.defineProperties(f.prototype,y);var m=new f,g=function(){this._collection=[]},b={length:{configurable:!0},collection:{configurable:!0}};g.prototype.forEach=function(t){this._collection.forEach(t)},g.prototype.map=function(t){return this._collection.map(t)},b.length.get=function(){return this._collection.length},g.prototype.add=function(t){return!(this._collection.indexOf(t)>-1)&&(this._collection.push(t),this.onAdd&&this.onAdd(),this.onPopulate&&1===this._collection.length&&this.onPopulate(),!0)},g.prototype.remove=function(t){var e=this._collection.indexOf(t);if(-1===e)return!1;this._collection.splice(e,1),this.onRemove&&this.onRemove(),this.onEmpty&&0===this._collection.length&&this.onEmpty()},g.prototype.execute=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=0,i=this._collection;n<i.length;n+=1){var s=i[n];s&&s.apply(null,t)}},g.prototype.clear=function(){this._collection.length=0},g.prototype.clone=function(){var t=new g;return t._collection=this._collection.slice(),t},b.collection.get=function(){return this._collection},Object.defineProperties(g.prototype,b);var v=function(t){function e(e){t.call(this),this.type=e,this.isActive=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){},e.prototype.deactivate=function(){},e}(g),_=function(t){return i+"-"+t};_.selector=function(t,e){return void 0===e&&(e="."),""+e+_(t)},(_.attr=function(t){return"data-"+_(t)}).selector=function(t,e){var n=_.attr(t);return void 0!==e&&(n+='="'+e+'"'),"["+n+"]"},_.event=function(t){return s+"."+t},_.emission=function(t,e){return"emission:"+t+"."+e};var E=function(t,e){return Array.prototype.slice.call(t.querySelectorAll(e))},L=function(t,e){var n=t.parentElement;return n.matches(e)?n:n===document.documentElement?null:L(n,e)},O=function(t,e,n){this.selector=t,this.InstanceClass=e,this.creator=n,this.instances=new g,this.isIntroduced=!1,this._instanceClassName=this.InstanceClass.instanceClassName,this._instanceClassNames=this.getInstanceClassNames(this.InstanceClass),this._property=this._instanceClassName.substring(0,1).toLowerCase()+this._instanceClassName.substring(1);var i=this._instanceClassName.replace(/[^a-zA-Z0-9]+/g,"-").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([^0-9])/g,"$1-$2").replace(/([^0-9])([0-9])/g,"$1-$2").toLowerCase();this._attribute=_.attr("js-"+i)},C={instanceClassName:{configurable:!0},instanceClassNames:{configurable:!0},property:{configurable:!0},attribute:{configurable:!0}};O.prototype.getInstanceClassNames=function(t){var e=Object.getPrototypeOf(t);return e&&"Instance"!==e.instanceClassName?this.getInstanceClassNames(e).concat([t.instanceClassName]):[t.instanceClassName]},O.prototype.hasInstanceClassName=function(t){return this._instanceClassNames.indexOf(t)>-1},O.prototype.introduce=function(){this.isIntroduced||(this.isIntroduced=!0,n.getModule("stage").parse(document.documentElement,this))},O.prototype.parse=function(t,e){var n=[];return t.matches&&t.matches(this.selector)&&n.push(t),!e&&t.querySelectorAll&&t.querySelector(this.selector)&&n.push.apply(n,E(t,this.selector)),n},O.prototype.create=function(t){if(t.node.matches(this.selector)){var e=new this.InstanceClass;return this.instances.add(e),e}},O.prototype.remove=function(t){this.instances.remove(t)},O.prototype.dispose=function(){for(var t=this.instances.collection,e=t.length-1;e>-1;e--)t[e]._dispose();this.creator=null},C.instanceClassName.get=function(){return this._instanceClassName},C.instanceClassNames.get=function(){return this._instanceClassNames},C.property.get=function(){return this._property},C.attribute.get=function(){return this._attribute},Object.defineProperties(O.prototype,C);var A=function(t){function e(){t.call(this,"register")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,i){var s=new O(t,e,i);return this.add(s),n.isActive&&s.introduce(),s},e.prototype.activate=function(){for(var t=0,e=this.collection;t<e.length;t+=1){e[t].introduce()}},e.prototype.remove=function(e){e.dispose(),t.prototype.remove.call(this,e)},e}(v),S=0,N=function(t,e){e?this.id=e:(S++,this.id=S),this.node=t,this.attributeNames=[],this.instances=[],this._children=[],this._parent=null,this._projects=[]},w={proxy:{configurable:!0},html:{configurable:!0},parent:{configurable:!0},ascendants:{configurable:!0},children:{configurable:!0},descendants:{configurable:!0}};w.proxy.get=function(){var t=this;if(!this._proxy){this._proxy={id:this.id,get parent(){return t.parent?t.parent.proxy:null},get children(){return t.children.map((function(t){return t.proxy}))}};for(var e=0,n=this.instances;e<n.length;e+=1){var i=n[e];this._proxy[i.registration.property]=i.proxy}}return this._proxy},w.html.get=function(){var t=this.node.outerHTML.indexOf(">");return this.node.outerHTML.substring(0,t+1)},N.prototype.project=function(t){-1===this._projects.indexOf(t)&&this._projects.push(t)},N.prototype.populate=function(){var t=this._projects.slice();this._projects.length=0;for(var e=0,n=t;e<n.length;e+=1){var i=n[e];this.create(i)}},N.prototype.create=function(t){if(!this.hasInstance(t.instanceClassName)){h.debug("create instance of "+t.instanceClassName+" on element ["+this.id+"]");var e=t.create(this);this.instances.push(e),e._config(this,t),this._proxy&&(this._proxy[t.property]=e.proxy)}},N.prototype.remove=function(t){var e=this.instances.indexOf(t);e>-1&&this.instances.splice(e,1),this._proxy&&delete this._proxy[t.registration.property]},w.parent.get=function(){return this._parent},w.ascendants.get=function(){return[this.parent].concat(this.parent.ascendants)},w.children.get=function(){return this._children},w.descendants.get=function(){var t=[].concat(this._children);return this._children.forEach((function(e){return t.push.apply(t,e.descendants)})),t},N.prototype.addChild=function(t,e){return this._children.indexOf(t)>-1?null:(t._parent=this,!isNaN(e)&&e>-1&&e<this._children.length?this._children.splice(e,0,t):this._children.push(t),t)},N.prototype.removeChild=function(t){var e=this._children.indexOf(t);if(-1===e)return null;t._parent=null,this._children.splice(e,1)},N.prototype.emit=function(t,e){for(var i=[],s=0,o=n.getModule("stage").collection;s<o.length;s+=1){var r=o[s];i.push.apply(i,r._emit(t,e))}return i},N.prototype._emit=function(t,e){for(var n=[],i=0,s=this.instances;i<s.length;i+=1){var o=s[i];n.push.apply(n,o._emitter.emit(t,e))}return n},N.prototype.ascend=function(t,e){return this._parent?this._parent._ascend(t,e):[]},N.prototype._ascend=function(t,e){for(var n=[],i=0,s=this.instances;i<s.length;i+=1){var o=s[i];n.push.apply(n,o._ascent.emit(t,e))}return this._parent&&n.push.apply(n,this._parent._ascend(t,e)),n},N.prototype.descend=function(t,e){for(var n=[],i=0,s=this._children;i<s.length;i+=1){var o=s[i];n.push.apply(n,o._descend(t,e))}return n},N.prototype._descend=function(t,e){for(var n=[],i=0,s=this.instances;i<s.length;i+=1){var o=s[i];n.push.apply(n,o._descent.emit(t,e))}for(var r=0,c=this._children;r<c.length;r+=1){var a=c[r];n.push.apply(n,a._descend(t,e))}return n},N.prototype.getInstance=function(t){for(var e=0,n=this.instances;e<n.length;e+=1){var i=n[e];if(i.registration.hasInstanceClassName(t))return i}return null},N.prototype.hasInstance=function(t){return null!==this.getInstance(t)},N.prototype.getDescendantInstances=function(t,e,n){if(!t)return[];for(var i=[],s=0,o=this._children;s<o.length;s+=1){var r=o[s],c=r.getInstance(t);c&&(i.push(c),n)||(e&&r.hasInstance(e)||!r.children.length||i.push.apply(i,r.getDescendantInstances(t,e,n)))}return i},N.prototype.getAscendantInstance=function(t,e){if(!t||!this._parent)return null;var n=this._parent.getInstance(t);return n||(e&&this._parent.hasInstance(e)?null:this._parent.getAscendantInstance(t,e))},N.prototype.dispose=function(){for(var t=0,e=this.instances;t<e.length;t+=1){e[t]._dispose()}this.instances.length=0,n.remove("stage",this),this.parent.removeChild(this),this._children.length=0,h.debug("remove element ["+this.id+"] "+this.html)},N.prototype.prepare=function(t){-1===this.attributeNames.indexOf(t)&&this.attributeNames.push(t)},N.prototype.examine=function(){var t=this.attributeNames.slice();this.attributeNames.length=0;for(var e=this.instances.length-1;e>-1;e--)this.instances[e].examine(t)},Object.defineProperties(N.prototype,w);var T=function(t){function e(){t.call(this,document.documentElement,"root"),this.node.setAttribute(_.attr("js"),!0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(N),I=function(t){function e(){t.call(this,"stage"),this.root=new T,t.prototype.add.call(this,this.root),this.observer=new MutationObserver(this.mutate.bind(this)),this.modifications=[],this.willModify=!1,this.modifying=this.modify.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasElement=function(t){for(var e=0,n=this.collection;e<n.length;e+=1){if(n[e].node===t)return!0}return!1},e.prototype.getElement=function(t){for(var e=0,n=this.collection;e<n.length;e+=1){var i=n[e];if(i.node===t)return i}var s=new N(t);return this.add(s),h.debug("add element ["+s.id+"] "+s.html),s},e.prototype.getProxy=function(t){return this.hasElement(t)?this.getElement(t).proxy:null},e.prototype.add=function(e){t.prototype.add.call(this,e),this.put(e,this.root)},e.prototype.put=function(t,e){for(var n=0,i=e.children.length-1;i>-1;i--){var s=e.children[i],o=t.node.compareDocumentPosition(s.node);if(o&Node.DOCUMENT_POSITION_CONTAINS)return void this.put(t,s);if(o&Node.DOCUMENT_POSITION_CONTAINED_BY)e.removeChild(s),t.addChild(s,0);else if(o&Node.DOCUMENT_POSITION_PRECEDING){n=i+1;break}}e.addChild(t,n)},e.prototype.activate=function(){this.observer.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})},e.prototype.deactivate=function(){this.observer.disconnect()},e.prototype.mutate=function(t){var e=this,n=[];t.forEach((function(t){switch(t.type){case"childList":t.removedNodes.forEach((function(t){return e.dispose(t)})),t.addedNodes.forEach((function(t){return e.parse(t)}));break;case"attributes":if(e.hasElement(t.target)){var i=e.getElement(t.target);i.prepare(t.attributeName),-1===n.indexOf(i)&&n.push(i);for(var s=0,o=i.descendants;s<o.length;s+=1){var r=o[s];-1===n.indexOf(r)&&n.push(r)}}-1===e.modifications.indexOf(t.target)&&e.modifications.push(t.target)}})),n.forEach((function(t){return t.examine()})),this.modifications.length&&!this.willModify&&(this.willModify=!0,window.requestAnimationFrame(this.modifying))},e.prototype.modify=function(){this.willModify=!1;var t=this.modifications.slice();this.modifications.length=0;for(var e=0,n=t;e<n.length;e+=1){var i=n[e];document.documentElement.contains(i)&&this.parse(i)}},e.prototype.dispose=function(t){var e=[];this.forEach((function(n){t.contains(n.node)&&e.push(n)}));for(var n=0,i=e;n<i.length;n+=1){var s=i[n];s.dispose(),this.remove(s)}},e.prototype.parse=function(t,e,i){for(var s=[],o=0,r=e?[e]:n.getModule("register").collection;o<r.length;o+=1)for(var c=r[o],a=0,l=c.parse(t,i);a<l.length;a+=1){var u=l[a],h=this.getElement(u);h.project(c),-1===s.indexOf(h)&&s.push(h)}for(var p=0,d=s;p<d.length;p+=1){d[p].populate()}},e}(v),D=function(t){function e(){t.call(this,"render"),this.rendering=this.render.bind(this),this.nexts=new g}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){window.requestAnimationFrame(this.rendering)},e.prototype.request=function(t){this.nexts.add(t)},e.prototype.render=function(){if(n.isActive&&(window.requestAnimationFrame(this.rendering),this.forEach((function(t){return t.render()})),this.nexts.length)){var t=this.nexts.clone();this.nexts.clear(),t.forEach((function(t){return t.next()}))}},e}(v),j=function(t){function e(){t.call(this,"resize"),this.requireResize=!1,this.resizing=this.resize.bind(this);var e=this.request.bind(this);document.fonts&&document.fonts.ready.then(e),window.addEventListener("resize",e),window.addEventListener("orientationchange",e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){this.request()},e.prototype.request=function(){this.requireResize||(this.requireResize=!0,window.requestAnimationFrame(this.resizing))},e.prototype.resize=function(){this.requireResize&&(this.forEach((function(t){return t.resize()})),this.requireResize=!1)},e}(v),P=function(t){function e(){t.call(this,"lock"),this._isLocked=!1,this._scrollY=0,this.onPopulate=this.lock.bind(this),this.onEmpty=this.unlock.bind(this)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isLocked:{configurable:!0}};return n.isLocked.get=function(){return this._isLocked},e.prototype.lock=function(){this._isLocked||(this._isLocked=!0,this._scrollY=window.scrollY,document.body.style.top=-1*this._scrollY+"px",document.documentElement.setAttribute(_.attr("scrolling"),"false"))},e.prototype.unlock=function(){this._isLocked&&(this._isLocked=!1,document.documentElement.removeAttribute(_.attr("scrolling")),document.body.style.top="",window.scroll(0,this._scrollY))},Object.defineProperties(e.prototype,n),e}(v),M=function(t){function e(){t.call(this,"load"),this.loading=this.load.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){window.addEventListener("load",this.loading)},e.prototype.load=function(){this.forEach((function(t){return t.load()}))},e}(v),x=function(){n.create(A),n.create(I),n.create(D),n.create(j),n.create(P),n.create(M);var t=n.getModule("register");this.register=t.register.bind(t)},k={isActive:{configurable:!0}};k.isActive.get=function(){return n.isActive},x.prototype.start=function(){h.debug("START"),n.isActive=!0},x.prototype.stop=function(){h.debug("STOP"),n.isActive=!1},Object.defineProperties(x.prototype,k);var R=new x,H=function(t){return"."===t.charAt(0)?t.substr(1):t},G=function(t){return t.className?t.className.split(" "):[]},B=function(t,e,n){e=H(e);var i=G(t),s=i.indexOf(e);!0===n?s>-1&&i.splice(s,1):-1===s&&i.push(e),t.className=i.join(" ")},q=function(t,e){return B(t,e)},z=function(t,e){return B(t,e,!0)},U=function(t,e){return G(t).indexOf(H(e))>-1};h.info("version "+o);var F=function(t){return n.getModule("stage").getProxy(t)};F.Modes=d,Object.defineProperty(F,"mode",{set:function(t){m.mode=t},get:function(){return m.mode}}),Object.defineProperty(F,"preventManipulation",{get:function(){return m.preventManipulation}}),Object.defineProperty(F,"isLegacy",{get:function(){return n.isLegacy}}),F.setLegacy=function(){n.isLegacy=!0},F.ns=_,F.addClass=q,F.hasClass=U,F.removeClass=z,F.queryParentSelector=L,F.querySelectorAllArray=E,F.start=R.start,F.stop=R.stop,F.register=R.register,F.inspector=h,m.configure(window[s],F.start),window[s]=F;var K=function(){this.emissions={}};K.prototype.add=function(t,e){if("function"!=typeof e)throw new Error("closure must be a function");this.emissions[t]||(this.emissions[t]=[]),this.emissions[t].push(e)},K.prototype.remove=function(t,e){if(this.emissions[t])if(e){var n=this.emissions[t].indexOf(e);n>-1&&this.emissions[t].splice(n)}else delete this.emissions[t]},K.prototype.emit=function(t,e){if(!this.emissions[t])return[];for(var n=[],i=0,s=this.emissions[t];i<s.length;i+=1){var o=s[i];o&&n.push(o(e))}return n},K.prototype.dispose=function(){this.emissions=null};var W=function(t,e){this.id=t,this.minWidth=e};W.prototype.test=function(){return window.matchMedia("(min-width: "+this.minWidth+"em)").matches};var V={XS:new W("xs",0),SM:new W("sm",36),MD:new W("md",48),LG:new W("lg",62),XL:new W("xl",78)},Y=function(t){void 0===t&&(t=!0),this.jsAttribute=t,this._isRendering=!1,this._isResizing=!1,this._isScrollLocked=!1,this._isLoading=!1,this._listeners={},this._keyListenerTypes=[],this._keys=[],this.handlingKey=this.handleKey.bind(this),this._emitter=new K,this._ascent=new K,this._descent=new K,this._registrations=[],this._nexts=[]},Q={proxy:{configurable:!0},isRendering:{configurable:!0},isResizing:{configurable:!0},isScrollLocked:{configurable:!0},isLoading:{configurable:!0},style:{configurable:!0},hasFocus:{configurable:!0},isLegacy:{configurable:!0}},$={instanceClassName:{configurable:!0}};$.instanceClassName.get=function(){return"Instance"},Y.prototype._config=function(t,e){this.element=t,this.registration=e,this.node=t.node,this.id=t.node.id,this.jsAttribute&&this.setAttribute(e.attribute,!0),this.init()},Y.prototype.init=function(){},Q.proxy.get=function(){var t=this;return{render:function(){return t.render()},resize:function(){return t.resize()}}},Y.prototype.register=function(t,e){var i=n.getModule("register").register(t,e,this);this._registrations.push(i)},Y.prototype.getRegisteredInstances=function(t){for(var e=0,n=this._registrations;e<n.length;e+=1){var i=n[e];if(i.hasInstanceClassName(t))return i.instances.collection}return[]},Y.prototype.dispatch=function(t,e,n,i){var s=new CustomEvent(t,{detail:e,bubble:!0===n,cancelable:!0===i});this.node.dispatchEvent(s)},Y.prototype.listen=function(t,e,n){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].indexOf(e)>-1||(this._listeners[t].push(e),this.node.addEventListener(t,e,n))},Y.prototype.unlisten=function(t,e){if(t)if(e){if(!this._listeners[t])return;var n=this._listeners[t].indexOf(e);n>-1&&this._listeners[t].splice(n,1),this.node.removeEventListener(t,e)}else{if(!this._listeners[t])return;for(var i=0,s=this._listeners[t];i<s.length;i+=1){var o=s[i];this.node.removeEventListener(t,o)}this._listeners[t].length=0}else for(var r in this._listeners)this.unlisten(r)},Y.prototype.listenKey=function(t,e,n,i,s){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===s&&(s="down"),-1===this._keyListenerTypes.indexOf(s)&&(this.listen("key"+s,this.handlingKey),this._keyListenerTypes.push(s)),this._keys.push(new X(s,t,e,n,i))},Y.prototype.unlistenKey=function(t,e){var n=this;this._keys=this._keys.filter((function(n){return n.code!==t||n.closure!==e})),this._keyListenerTypes.forEach((function(t){n._keys.some((function(e){return e.type===t}))||n.unlisten("key"+t,n.handlingKey)}))},Y.prototype.handleKey=function(t){for(var e=0,n=this._keys;e<n.length;e+=1){n[e].handle(t)}},Q.isRendering.get=function(){return this._isRendering},Q.isRendering.set=function(t){this._isRendering!==t&&(t?n.add("render",this):n.remove("render",this),this._isRendering=t)},Y.prototype.render=function(){},Y.prototype.request=function(t){this._nexts.push(t),n.getModule("render").request(this)},Y.prototype.next=function(){var t=this._nexts.slice();this._nexts.length=0;for(var e=0,n=t;e<n.length;e+=1){var i=n[e];i&&i()}},Q.isResizing.get=function(){return this._isResizing},Q.isResizing.set=function(t){this._isResizing!==t&&(t?(n.add("resize",this),this.resize()):n.remove("resize",this),this._isResizing=t)},Y.prototype.resize=function(){},Y.prototype.isBreakpoint=function(t){switch(!0){case"string"==typeof t:return V[t.toUpperCase()].test();default:return t.test()}},Q.isScrollLocked.get=function(){return this._isScrollLocked},Q.isScrollLocked.set=function(t){this._isScrollLocked!==t&&(t?n.add("lock",this):n.remove("lock",this),this._isScrollLocked=t)},Q.isLoading.get=function(){return this._isLoading},Q.isLoading.set=function(t){this._isLoading!==t&&(t?n.add("load",this):n.remove("load",this),this._isLoading=t)},Y.prototype.load=function(){},Y.prototype.examine=function(t){this.node.matches(this.registration.selector)?this.mutate(t):this._dispose()},Y.prototype.mutate=function(t){},Y.prototype._dispose=function(){h.debug("dispose instance of "+this.registration.instanceClassName+" on element ["+this.element.id+"]"),this.removeAttribute(this.registration.attribute),this.unlisten(),this._keys=null,this.isRendering=!1,this.isResizing=!1,this._nexts=null,n.getModule("render").nexts.remove(this),this.isScrollLocked=!1,this.isLoading=!1,this._emitter.dispose(),this._emitter=null,this._ascent.dispose(),this._ascent=null,this._descent.dispose(),this._descent=null,this.element.remove(this);for(var t=0,e=this._registrations;t<e.length;t+=1){var i=e[t];n.remove("register",i)}this._registrations=null,this.registration.remove(this),this.dispose()},Y.prototype.dispose=function(){},Y.prototype.emit=function(t,e){return this.element.emit(t,e)},Y.prototype.addEmission=function(t,e){this._emitter.add(t,e)},Y.prototype.removeEmission=function(t,e){this._emitter.remove(t,e)},Y.prototype.ascend=function(t,e){return this.element.ascend(t,e)},Y.prototype.addAscent=function(t,e){this._ascent.add(t,e)},Y.prototype.removeAscent=function(t,e){this._ascent.remove(t,e)},Y.prototype.descend=function(t,e){return this.element.descend(t,e)},Y.prototype.addDescent=function(t,e){this._descent.add(t,e)},Y.prototype.removeDescent=function(t,e){this._descent.remove(t,e)},Q.style.get=function(){return this.node.style},Y.prototype.addClass=function(t){q(this.node,t)},Y.prototype.removeClass=function(t){z(this.node,t)},Y.prototype.hasClass=function(t){return U(this.node,t)},Y.prototype.setAttribute=function(t,e){this.node.setAttribute(t,e)},Y.prototype.getAttribute=function(t){return this.node.getAttribute(t)},Y.prototype.hasAttribute=function(t){return this.node.hasAttribute(t)},Y.prototype.removeAttribute=function(t){this.node.removeAttribute(t)},Y.prototype.setProperty=function(t,e){this.node.style.setProperty(t,e)},Y.prototype.removeProperty=function(t){this.node.style.removeProperty(t)},Y.prototype.focus=function(){this.node.focus()},Q.hasFocus.get=function(){return this.node===document.activeElement},Y.prototype.matches=function(t){return this.node.matches(t)},Y.prototype.querySelector=function(t){return this.node.querySelector(t)},Y.prototype.querySelectorAll=function(t){return E(this.node,t)},Y.prototype.queryParentSelector=function(t){return L(this.node,t)},Y.prototype.getRect=function(){return this.node.getBoundingClientRect()},Q.isLegacy.get=function(){return n.isLegacy},Object.defineProperties(Y.prototype,Q),Object.defineProperties(Y,$);var X=function(t,e,n,i,s){this.type=t,this.eventType="key"+t,this.code=e,this.closure=n,this.preventDefault=!0===i,this.stopPropagation=!0===s};X.prototype.handle=function(t){t.type===this.eventType&&t.keyCode===this.code&&(this.closure(t),this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation())};var Z={DISCLOSE:_.event("disclose"),CONCEAL:_.event("conceal")},J={RESET:_.emission("disclosure","reset"),ADDED:_.emission("disclosure","added"),REMOVED:_.emission("disclosure","removed"),GROUP:_.emission("disclosure","group"),UNGROUP:_.emission("disclosure","ungroup")},tt=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return e.forEach((function(e){var n=Object.keys(e).reduce((function(t,n){return t[n]=Object.getOwnPropertyDescriptor(e,n),t}),{});Object.getOwnPropertySymbols(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);i.enumerable&&(n[t]=i)})),Object.defineProperties(t,n)})),t},et=function(t){function e(e,n,i,s){t.call(this),this.type=e,this._selector=n,this.DisclosureButtonInstanceClass=i,this.disclosuresGroupInstanceClassName=s,this.modifier=this._selector+"--"+this.type.id,this.pristine=!0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={proxy:{configurable:!0},buttons:{configurable:!0},group:{configurable:!0},disclosed:{configurable:!0},buttonHasFocus:{configurable:!0},hasFocus:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Disclosure"},e.prototype.init=function(){this.addDescent(J.RESET,this.reset.bind(this)),this.addDescent(J.GROUP,this.update.bind(this)),this.addDescent(J.UNGROUP,this.update.bind(this)),this.register('[aria-controls="'+this.id+'"]',this.DisclosureButtonInstanceClass),this.ascend(J.ADDED),this.update()},n.proxy.get=function(){var e=this,n=Object.assign.call(this,t.prototype.proxy,{disclose:e.disclose.bind(e),conceal:e.conceal.bind(e),focus:e.focus.bind(e)});return tt(n,{get buttons(){return e.buttons.map((function(t){return t.proxy}))},get group(){var t=e.group;return t?t.proxy:null}})},n.buttons.get=function(){return this.getRegisteredInstances(this.DisclosureButtonInstanceClass.instanceClassName)},e.prototype.update=function(){this.getGroup()},e.prototype.getGroup=function(){if(this.disclosuresGroupInstanceClassName){var t=this.element.getAscendantInstance(this.disclosuresGroupInstanceClassName,this.constructor.instanceClassName);t&&t.validate(this)?this._group=t:this._group=null}else this._group=null},n.group.get=function(){return this._group},e.prototype.disclose=function(t){return!this.disclosed&&(this.pristine=!1,this.disclosed=!0,!t&&this.group&&(this.group.current=this),!0)},e.prototype.conceal=function(t,e){return!!this.disclosed&&(this.pristine=!1,this.disclosed=!1,e||this.focus(),!t&&this.group&&this.group.current===this&&(this.group.current=null),this.descend(J.RESET),!0)},n.disclosed.get=function(){return this._disclosed},n.disclosed.set=function(t){if(this._disclosed!==t){this.dispatch(t?Z.DISCLOSE:Z.CONCEAL,this.type),this._disclosed=t,t?this.addClass(this.modifier):this.removeClass(this.modifier);for(var e=0;e<this.buttons.length;e++)this.buttons[e].apply(t)}},e.prototype.reset=function(){},e.prototype.toggle=function(t){if(this.type.canConceal)switch(!0){case!t:case this.disclosed:this.conceal();break;default:this.disclose()}else this.disclose()},n.buttonHasFocus.get=function(){return!!this.buttons.some((function(t){return t.hasFocus}))},n.hasFocus.get=function(){return!!t.prototype.hasFocus||(!!this.buttonHasFocus||this.querySelectorAll(":focus").length>0)},e.prototype.focus=function(){for(var t=0;t<this.buttons.length;t++){var e=this.buttons[t];if(e.isPrimary)return void e.focus()}},e.prototype.dispose=function(){this._group=null,t.prototype.dispose.call(this),this.ascend(J.REMOVED)},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(Y),nt=function(t){function e(e){t.call(this),this.type=e,this.attributeName=e.ariaState?"aria-"+e.id:_.attr(e.id)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={proxy:{configurable:!0},disclosed:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"DisclosureButton"},e.prototype.init=function(){this.controlsId=this.getAttribute("aria-controls"),this.isPrimary=this.hasAttribute(this.attributeName),this.isPrimary&&this.disclosed&&this.registration.creator.pristine&&this.registration.creator.disclose(),this.listen("click",this.click.bind(this))},n.proxy.get=function(){return Object.assign.call(this,t.prototype.proxy,{focus:this.focus.bind(this)})},e.prototype.click=function(t){this.registration.creator&&this.registration.creator.toggle(this.isPrimary)},e.prototype.mutate=function(t){this.isPrimary&&t.indexOf(this.attributeName)>-1&&this.registration.creator&&(this.disclosed?this.registration.creator.disclose():this.type.canConceal&&this.registration.creator.conceal())},e.prototype.apply=function(t){this.isPrimary&&this.setAttribute(this.attributeName,t)},n.disclosed.get=function(){return"true"===this.getAttribute(this.attributeName)},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(Y),it=function(t){function e(e,n){t.call(this,n),this.disclosureInstanceClassName=e,this._index=-1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={proxy:{configurable:!0},members:{configurable:!0},length:{configurable:!0},index:{configurable:!0},current:{configurable:!0},hasFocus:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"DisclosuresGroup"},e.prototype.init=function(){this.addAscent(J.ADDED,this.update.bind(this)),this.addAscent(J.REMOVED,this.update.bind(this)),this.descend(J.GROUP),this.update()},n.proxy.get=function(){var e=this,n={set index(t){e.index=t},get index(){return e.index},get length(){return e.length},get current(){var t=e.current;return t?t.proxy:null},get members(){return e.members.map((function(t){return t.proxy}))},get hasFocus(){return e.hasFocus}};return tt.call(this,t.prototype.proxy,n)},e.prototype.validate=function(t){return!0},e.prototype.getMembers=function(){var t=this.element.getDescendantInstances(this.disclosureInstanceClassName,this.constructor.instanceClassName,!0);this._members=t.filter(this.validate.bind(this))},e.prototype.update=function(){this.getMembers(),this.getIndex()},n.members.get=function(){return this._members},n.length.get=function(){return this.members.length},e.prototype.getIndex=function(){this._index=-1;for(var t=0;t<this.length;t++)this.index>-1?this.members[t].conceal(!0,!0):this.members[t].disclosed&&(this.index=t)},n.index.get=function(){return this._index},n.index.set=function(t){if(!(t<-1||t>=this.length||t===this._index)){this._index=t;for(var e=0;e<this.length;e++){var n=this.members[e];t===e?n.disclose(!0):n.conceal(!0,!0)}this.apply()}},n.current.get=function(){return-1===this._index?null:this.members[this._index]},n.current.set=function(t){this.index=this.members.indexOf(t)},n.hasFocus.get=function(){var t=this.current;return!!t&&t.hasFocus},e.prototype.apply=function(){},e.prototype.dispose=function(){t.prototype.dispose.call(this),this.descend(J.UNGROUP),this._members=null},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(Y),st={EXPAND:{id:"expanded",ariaState:!0,ariaControls:!0,canConceal:!0},SELECT:{id:"selected",ariaState:!0,ariaControls:!0,canConceal:!1},OPENED:{id:"opened",ariaState:!1,ariaControls:!0,canConceal:!0}},ot=function(t){function e(){t.call(this,st.EXPAND)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"CollapseButton"},Object.defineProperties(e,n),e}(nt),rt={COLLAPSE:_.selector("collapse")},ct=function(t){function e(){t.call(this,st.EXPAND,rt.COLLAPSE,ot,"CollapsesGroup")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Collapse"},e.prototype.init=function(){t.prototype.init.call(this),this.listen("transitionend",this.transitionend.bind(this))},e.prototype.transitionend=function(t){this.disclosed||(this.style.maxHeight="")},e.prototype.unbound=function(){this.style.maxHeight="none"},e.prototype.disclose=function(e){var n=this;this.disclosed||(this.unbound(),this.adjust(),this.request((function(){t.prototype.disclose.call(n,e)})))},e.prototype.conceal=function(e,n){var i=this;this.disclosed&&(this.adjust(),this.request((function(){t.prototype.conceal.call(i,e,n)})))},e.prototype.adjust=function(){this.setProperty("--collapser","none");var t=this.node.offsetHeight;this.setProperty("--collapse",-t+"px"),this.setProperty("--collapser","")},e.prototype.reset=function(){this.pristine||(this.disclosed=!1)},Object.defineProperties(e,n),e}(et),at=function(t){function e(){t.call(this,"Collapse")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"CollapsesGroup"},Object.defineProperties(e,n),e}(it),lt={CHANGE:_("equisized")},ut=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Equisized"},e.prototype.init=function(){this.ascend(lt.CHANGE)},e.prototype.measure=function(){return this.style.width="auto",this.getRect().width},e.prototype.adjust=function(t){this.style.width=t+"px"},e.prototype.dispose=function(){this.ascend(lt.CHANGE)},Object.defineProperties(e,n),e}(Y),ht=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"EquisizedsGroup"},e.prototype.init=function(){this.isResizing=!0,this.isLoading=!0,this.addAscent(lt.CHANGE,this.resize.bind(this))},e.prototype.load=function(){this.resize()},e.prototype.resize=function(){var t=this.element.getDescendantInstances("Equisized"),e=Math.max.apply(Math,t.map((function(t){return t.measure()})));t.forEach((function(t){return t.adjust(e)}))},Object.defineProperties(e,n),e}(Y),pt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={proxy:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"InjectSvg"},e.prototype.init=function(){this.node&&(this.img=this.node.querySelector("img")),this.isLegacy||this.replace()},n.proxy.get=function(){var e=this;return Object.assign.call(this,t.prototype.proxy,{replace:e.replace.bind(e),restore:e.restore.bind(e)})},e.prototype.fetch=function(){var t=this;this.img&&(this.imgID=this.img.getAttribute("id"),this.imgClass=this.img.getAttribute("class"),this.imgURL=this.img.getAttribute("src"),fetch(this.imgURL).then((function(t){return t.text()})).then((function(e){var n=(new DOMParser).parseFromString(e,"text/html");t.svg=n.querySelector("svg"),t.svg&&t.replace()})))},e.prototype.replace=function(){if(this.svg){this.imgID&&void 0!==this.imgID&&this.svg.setAttribute("id",this.imgID),this.imgClass&&void 0!==this.imgClass&&this.svg.setAttribute("class",this.imgClass),this.svg.hasAttribute("xmlns:a")&&this.svg.removeAttribute("xmlns:a"),this.node.setAttribute("data-fr-inject-svg",!0);var t,e;t=this.svg,e={"aria-hidden":!0,focusable:!1},Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])})),this.node.replaceChild(this.svg,this.img)}else this.fetch()},e.prototype.restore=function(){this.img&&this.svg&&(this.node.setAttribute("data-fr-inject-svg",!1),this.node.replaceChild(this.img,this.svg))},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(Y),dt={INJECT_SVG:"["+_.attr("inject-svg")+"]"};F.register((F.core={Instance:Y,Breakpoints:V,KeyCodes:{TAB:9,ESCAPE:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},Disclosure:et,DisclosureButton:nt,DisclosuresGroup:it,DisclosureType:st,DisclosureEvent:Z,DisclosureEmission:J,Collapse:ct,CollapseButton:ot,CollapsesGroup:at,CollapseSelector:rt,RootSelector:{ROOT:":root"},Equisized:ut,EquisizedEmission:lt,EquisizedsGroup:ht,InjectSvg:pt,InjectSvgSelector:dt}).CollapseSelector.COLLAPSE,F.core.Collapse),F.register(F.core.InjectSvgSelector.INJECT_SVG,F.core.InjectSvg),function(t,e){function n(t,e){var n=arguments.length>2?arguments[2]:[];if(!1===s(t))throw new TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,n)}function i(t,e){return t[e]}function s(t){return"function"==typeof t}function o(t){if(null===t||t===e)throw TypeError();return Object(t)}function r(t,n){var i=function(t,e){return o(t)[e]}(t,n);if(null===i||i===e)return e;if(!1===s(i))throw new TypeError("Method not callable: "+n);return i}function c(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function a(t,e){if("string"===e)var o=["toString","valueOf"];else o=["valueOf","toString"];for(var r=0;r<o.length;++r){var a=i(t,o[r]);if(s(a)){var l=n(a,t);if("object"!==c(l))return l}}throw new TypeError("Cannot convert to primitive.")}function l(t,e){return c(t)===c(e)&&("number"===c(t)?!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0||t===e:function(t,e){return t===e}(t,e))}function u(t){if("symbol"===c(t))throw new TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function h(t){var e=u(t);return e<=0?0:Math.min(e,Math.pow(2,53)-1)}function p(i){switch(c(i)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return p(function(i){var s=arguments.length>1?arguments[1]:e;if("object"===c(i)){if(arguments.length<2)var o="default";else s===String?o="string":s===Number&&(o="number");var l="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?r(i,t.Symbol.toPrimitive):e;if(l!==e){var u=n(l,i,[o]);if("object"!==c(u))return u;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===o&&(o="number"),a(i,o)}return i}(i,String));default:return String(i)}}var d,f,y,m;d=Array.prototype,f="includes",y=function(t){var e=o(this),n=h(i(e,"length"));if(0===n)return!1;var s=u(arguments[1]);if(s>=0)var r=s;else(r=n+s)<0&&(r=0);for(;r<n;){var c=i(e,p(r));if(l(t,c))return!0;r+=1}return!1},m={value:y,writable:!0,enumerable:!1,configurable:!0},Object.defineProperty(d,f,m),function(){function t(t,n){if(!t)throw new Error("Not enough arguments");var i;if("createEvent"in document){i=document.createEvent("Event");var s=!(!n||n.bubbles===e)&&n.bubbles,o=!(!n||n.cancelable===e)&&n.cancelable;return i.initEvent(t,s,o),i}return(i=document.createEventObject()).type=t,i.bubbles=!(!n||n.bubbles===e)&&n.bubbles,i.cancelable=!(!n||n.cancelable===e)&&n.cancelable,i}var n={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var i=window.Event&&window.Event.prototype||null;t.NONE=0,t.CAPTURING_PHASE=1,t.AT_TARGET=2,t.BUBBLING_PHASE=3,window.Event=Window.prototype.Event=t,i&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:i}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,e=arguments[0],i=arguments[1];if(t===window&&e in n)throw new Error("In IE8 the event: "+e+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");t._events||(t._events={}),t._events[e]||(t._events[e]=function(e){var n,i=t._events[e.type].list,s=i.slice(),o=-1,r=s.length;for(e.preventDefault=function(){!1!==e.cancelable&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=t,e.relatedTarget=e.fromElement||null,e.target=e.target||e.srcElement||t,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop);++o<r&&!e.cancelImmediate;)o in s&&(n=s[o],i.includes(n)&&"function"==typeof n&&n.call(t,e))},t._events[e].list=[],t.attachEvent&&t.attachEvent("on"+e,t._events[e])),t._events[e].list.push(i)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,e=this,n=arguments[0],i=arguments[1];e._events&&e._events[n]&&e._events[n].list&&-1!==(t=e._events[n].list.indexOf(i))&&(e._events[n].list.splice(t,1),e._events[n].list.length||(e.detachEvent&&e.detachEvent("on"+n,e._events[n]),delete e._events[n]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw new Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw new Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var i=function(t){t.cancelBubble=!0,(e||window).detachEvent("on"+n,i)};this.attachEvent("on"+n,i)}this.fireEvent("on"+n,t)}catch(i){t.target=e;do{t.currentTarget=e,"_events"in e&&"function"==typeof e._events[n]&&e._events[n].call(e,t),"function"==typeof e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode}while(e&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&document.dispatchEvent(new t("DOMContentLoaded",{bubbles:!0}))})))}}(),t.CustomEvent=function(t,e){if(!t)throw Error('TypeError: Failed to construct "CustomEvent": An event name must be provided.');var n;if(e=e||{bubbles:!1,cancelable:!1,detail:null},"createEvent"in document)try{(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail)}catch(i){(n=document.createEvent("Event")).initEvent(t,e.bubbles,e.cancelable),n.detail=e.detail}else(n=new Event(t,e)).detail=e&&e.detail||null;return n},CustomEvent.prototype=Event.prototype}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t,e){!function(e){function n(t,e){if("change"===t&&this.addListener(e),arguments[2]&&arguments[2].once){var n=this,i=function(){n.removeListener(i),n.removeListener(e)};this.addListener(i)}}function i(t,e){"change"===t&&this.removeListener(e)}var s=function(){try{var t={};return e.Object.defineProperty(t,"t",{configurable:!0,enumerable:!1,get:function(){return this._v},set:function(t){this._v=t+t}}),t.t=1,2===t.t}catch(t){return!1}}(),o={enumerable:!0,configurable:!0,get:function(){return this._onchangeHandler||null},set:function(t){var e=this;e._onchangeListener||(e._onchangeListener=function(){"function"==typeof e._onchangeHandler&&e._onchangeHandler.call(e,arguments[0])},e.addEventListener("change",e._onchangeListener)),e._onchangeHandler=t}};if("MediaQueryList"in e){var r=e.MediaQueryList.prototype.addListener,c=e.MediaQueryList.prototype.removeListener;e.MediaQueryList.prototype.addListener=function(t){var e=t;e.handleEvent&&(e=e.handleEvent),r.call(this,e)},e.MediaQueryList.prototype.removeListener=function(t){var e=t;e.handleEvent&&(e=e.handleEvent),c.call(this,e)},e.MediaQueryList.prototype.addEventListener=n,e.MediaQueryList.prototype.removeEventListener=i,s&&e.Object.defineProperty(e.MediaQueryList.prototype,"onchange",o)}else{var a=t.matchMedia;t.matchMedia=function(t){var r=a(t),c=r.addListener,l=r.removeListener;return r.addListener=function(t){var e=t;e.handleEvent&&(e=e.handleEvent),c.call(this,e)},r.removeListener=function(t){var e=t;e.handleEvent&&(e=e.handleEvent),l.call(this,e)},r.addEventListener=n,r.removeEventListener=i,s&&e.Object.defineProperty(r,"onchange",o),r}}}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t,e){var n,i=function(){var t=!0,n=function(e,n,i,s){Object.defineProperty?Object.defineProperty(e,n,{configurable:!1===t||!!s,get:i}):e.__defineGetter__(n,i)};try{n({},"support")}catch(e){t=!1}return function(t,i){var s=this,o=[],r={},c=0,a=0,l=function(t){n(s,t,(function(){return h(),o[t]}),!1)},u=function(){if(c>=a)for(;a<c;++a)l(a)},h=function(){var e,n,s=arguments,a=/\s+/;if(s.length)for(n=0;n<s.length;++n)if(a.test(s[n]))throw(e=new SyntaxError('String "'+s[n]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[i]?(""+t[i].baseVal).replace(/^\s+|\s+$/g,"").split(a):(""+t[i]).replace(/^\s+|\s+$/g,"").split(a))[0]&&(o=[]),r={},n=0;n<o.length;++n)r[o[n]]=!0;c=o.length,u()};return h(),n(s,"length",(function(){return h(),c})),s.toLocaleString=s.toString=function(){return h(),o.join(" ")},s.item=function(t){return h(),o[t]},s.contains=function(t){return h(),!!r[t]},s.add=function(){h.apply(s,e=arguments);for(var e,n,a=0,l=e.length;a<l;++a)n=e[a],r[n]||(o.push(n),r[n]=!0);c!==o.length&&(c=o.length>>>0,"object"==typeof t[i]?t[i].baseVal=o.join(" "):t[i]=o.join(" "),u())},s.remove=function(){h.apply(s,e=arguments);for(var e,n={},a=0,l=[];a<e.length;++a)n[e[a]]=!0,delete r[e[a]];for(a=0;a<o.length;++a)n[o[a]]||l.push(o[a]);o=l,c=l.length>>>0,"object"==typeof t[i]?t[i].baseVal=o.join(" "):t[i]=o.join(" "),u()},s.toggle=function(t,n){return h.apply(s,[t]),e!==n?n?(s.add(t),!0):(s.remove(t),!1):r[t]?(s.remove(t),!1):(s.add(t),!0)},s.forEach=Array.prototype.forEach,s}}();"DOMTokenList"in(n=t)&&n.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(n.DOMTokenList=i),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var n=arguments[1];if(n===e){var i=!this.contains(t);return this[i?"add":"remove"](t),i}return n=!!n,this[n?"add":"remove"](t),n}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,n=arguments.length,i=0;i<n;i++)e.call(this,t[i])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,n=arguments.length,i=0;i<n;i++)e.call(this,t[i])}}}(),function(t){var e=!0,n=function(t,n,i,s){Object.defineProperty?Object.defineProperty(t,n,{configurable:!1===e||!!s,get:i}):t.__defineGetter__(n,i)};try{n({},"support")}catch(t){e=!1}var s=function(t,o,r){n(t.prototype,o,(function(){var t,c=this,a="__defineGetter__DEFINE_PROPERTY"+o;if(c[a])return t;if(c[a]=!0,!1===e){for(var l,u=s.mirror||document.createElement("div"),h=u.childNodes,p=h.length,d=0;d<p;++d)if(h[d]._R===c){l=h[d];break}l||(l=u.appendChild(document.createElement("div"))),t=DOMTokenList.call(l,c,r)}else t=new i(c,r);return n(c,o,(function(){return t})),delete c[a],t}),!0)};s(t.Element,"classList","className"),s(t.HTMLElement,"classList","className"),s(t.HTMLLinkElement,"relList","rel"),s(t.HTMLAnchorElement,"relList","rel"),s(t.HTMLAreaElement,"relList","rel")}(t),function(t){t.DOMTokenList.prototype.forEach=t.Array.prototype.forEach;var e=document.createElement("span");e.classList&&e.classList.constructor&&e.classList.constructor.prototype&&!e.classList.constructor.prototype.forEach&&(e.classList.constructor.prototype.forEach=t.Array.prototype.forEach)}(t),NodeList.prototype.forEach=Array.prototype.forEach}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t,e){!function(){function e(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in t&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in t?Node.prototype.contains=e:document.contains=Element.prototype.contains=e}()}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(t){for(var e=this,n=(e.document||e.ownerDocument).querySelectorAll(t),i=0;n[i]&&n[i]!==e;)++i;return!!n[i]};var ft=window[s],yt={SYSTEM:"system",LIGHT:"light",DARK:"dark"},mt={THEME:ft.ns.attr("theme"),SCHEME:ft.ns.attr("scheme"),TRANSITION:ft.ns.attr("transition")},gt={LIGHT:"light",DARK:"dark"},bt={SCHEME:ft.ns.emission("scheme","scheme"),THEME:ft.ns.emission("scheme","theme"),ASK:ft.ns.emission("scheme","ask")},vt=function(t){function e(){t.call(this,!1)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={proxy:{configurable:!0},scheme:{configurable:!0},theme:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Scheme"},e.prototype.init=function(){this.changing=this.change.bind(this),this.hasAttribute(mt.TRANSITION)&&(this.removeAttribute(mt.TRANSITION),this.request(this.restoreTransition.bind(this)));var t=localStorage.getItem("scheme"),e=this.getAttribute(mt.SCHEME);switch(t){case yt.DARK:case yt.LIGHT:case yt.SYSTEM:this.scheme=t;break;default:switch(e){case yt.DARK:this.scheme=yt.DARK;break;case yt.LIGHT:this.scheme=yt.LIGHT;break;default:this.scheme=yt.SYSTEM}}this.addAscent(bt.ASK,this.ask.bind(this)),this.addAscent(bt.SCHEME,this.apply.bind(this))},n.proxy.get=function(){var e=this,n={get scheme(){return e.scheme},set scheme(t){e.scheme=t}};return tt.call(this,t.prototype.proxy,n)},e.prototype.restoreTransition=function(){this.setAttribute(mt.TRANSITION,"")},e.prototype.ask=function(){this.descend(bt.SCHEME,this.scheme)},e.prototype.apply=function(t){this.scheme=t},n.scheme.get=function(){return this._scheme},n.scheme.set=function(t){if(this._scheme!==t){switch(this._scheme=t,t){case yt.SYSTEM:this.listenPreferences();break;case yt.DARK:this.unlistenPreferences(),this.theme=gt.DARK;break;case yt.LIGHT:this.unlistenPreferences(),this.theme=gt.LIGHT;break;default:return void(this.scheme=yt.SYSTEM)}this.descend(bt.SCHEME,t),localStorage.setItem("scheme",t),this.setAttribute(mt.SCHEME,t)}},n.theme.get=function(){return this._theme},n.theme.set=function(t){if(this._theme!==t)switch(t){case gt.LIGHT:case gt.DARK:this._theme=t,this.setAttribute(mt.THEME,t),this.descend(bt.THEME,t)}},e.prototype.listenPreferences=function(){this.isListening||(this.isListening=!0,this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.changing),this.change())},e.prototype.unlistenPreferences=function(){this.isListening&&(this.isListening=!1,this.mediaQuery.removeEventListener("change",this.changing),this.mediaQuery=null)},e.prototype.change=function(){this.isListening&&(this.theme=this.mediaQuery.matches?gt.DARK:gt.LIGHT)},e.prototype.mutate=function(t){t.indexOf(mt.SCHEME)>-1&&(this.scheme=this.getAttribute(mt.SCHEME)),t.indexOf(mt.THEME)>-1&&(this.theme=this.getAttribute(mt.THEME))},e.prototype.dispose=function(){this.unlistenPreferences()},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.Instance),_t={SCHEME:":root"+ft.ns.attr.selector("theme")+", :root"+ft.ns.attr.selector("scheme"),SWITCH_THEME:ft.ns.selector("switch-theme"),RADIO_BUTTONS:'input[name="'+ft.ns("radios-theme")+'"]'};ft.scheme={Scheme:vt,SchemeValue:yt,SchemeSelector:_t,SchemeEmission:bt,SchemeTheme:gt},ft.register(ft.scheme.SchemeSelector.SCHEME,ft.scheme.Scheme);var Et={GROUP:ft.ns.selector("accordions-group"),COLLAPSE:ft.ns.selector("accordion")+" > "+ft.ns.selector("collapse")},Lt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"AccordionsGroup"},e.prototype.validate=function(t){return t.node.matches(Et.COLLAPSE)},Object.defineProperties(e,n),e}(ft.core.CollapsesGroup);ft.accordion={AccordionSelector:Et,AccordionsGroup:Lt},ft.register(ft.accordion.AccordionSelector.GROUP,ft.accordion.AccordionsGroup);var Ot={EQUISIZED_BUTTON:ft.ns.selector("btns-group--equisized")+" "+ft.ns.selector("btn"),EQUISIZED_GROUP:ft.ns.selector("btns-group--equisized")};ft.button={ButtonSelector:Ot},ft.register(ft.button.ButtonSelector.EQUISIZED_BUTTON,ft.core.Equisized),ft.register(ft.button.ButtonSelector.EQUISIZED_GROUP,ft.core.EquisizedsGroup);var Ct=function(t){function e(){t.call(this),this.count=0,this.focusing=this.focus.bind(this)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={proxy:{configurable:!0},links:{configurable:!0},collapse:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Breadcrumb"},e.prototype.init=function(){this.getCollapse(),this.isResizing=!0},n.proxy.get=function(){var e=this;return Object.assign.call(this,t.prototype.proxy,{focus:e.focus.bind(e),disclose:e.collapse.disclose.bind(e.collapse)})},e.prototype.getCollapse=function(){var t=this.collapse;t?t.listen(ft.core.DisclosureEvent.DISCLOSE,this.focusing):this.addAscent(ft.core.DisclosureEmission.ADDED,this.getCollapse.bind(this))},e.prototype.resize=function(){var t=this.collapse,e=this.links;t&&e.length&&(this.isBreakpoint(ft.core.Breakpoints.MD)?t.buttonHasFocus&&e[0].focus():e.indexOf(document.activeElement)>-1&&t.focus())},n.links.get=function(){return[].concat(this.querySelectorAll("a[href]"))},n.collapse.get=function(){return this.element.getDescendantInstances(ft.core.Collapse.instanceClassName,null,!0)[0]},e.prototype.focus=function(){this.count=0,this._focus()},e.prototype._focus=function(){var t=this.links[0];t&&(t.focus(),this.request(this.verify.bind(this)))},e.prototype.verify=function(){if(this.count++,!(this.count>100)){var t=this.links[0];t&&document.activeElement!==t&&this._focus()}},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.Instance),At={BREADCRUMB:ft.ns.selector("breadcrumb")};ft.breadcrumb={BreadcrumbSelector:At,Breadcrumb:Ct},ft.register(ft.breadcrumb.BreadcrumbSelector.BREADCRUMB,ft.breadcrumb.Breadcrumb);var St={LIST:ft.ns.selector("sidemenu__list"),COLLAPSE:ft.ns.selector("sidemenu__item")+" > "+ft.ns.selector("collapse")},Nt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"SidemenuList"},e.prototype.validate=function(t){return t.node.matches(St.COLLAPSE)},Object.defineProperties(e,n),e}(ft.core.CollapsesGroup);ft.sidemenu={SidemenuList:Nt,SidemenuSelector:St},ft.register(ft.sidemenu.SidemenuSelector.LIST,ft.sidemenu.SidemenuList);var wt={MODAL:ft.ns.selector("modal"),SCROLL_SHADOW:ft.ns.selector("scroll-shadow"),BODY:ft.ns.selector("modal__body")},Tt=function(t){function e(){t.call(this,ft.core.DisclosureType.OPENED)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"ModalButton"},Object.defineProperties(e,n),e}(ft.core.DisclosureButton),It={ACTIVATE:ft.ns.emission("modal","activate"),DEACTIVATE:ft.ns.emission("modal","deactivate")},Dt=function(t){function e(){t.call(this,ft.core.DisclosureType.OPENED,wt.MODAL,Tt,"ModalsGroup"),this.scrollDistance=0,this.scrolling=this.resize.bind(this,!1),this.resizing=this.resize.bind(this,!0)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Modal"},e.prototype.init=function(){t.prototype.init.call(this),this.listen("click",this.click.bind(this)),this.listenKey(ft.core.KeyCodes.ESCAPE,this.conceal.bind(this),!0,!0)},e.prototype.click=function(t){t.target===this.node&&this.conceal()},e.prototype.disclose=function(e){return!!t.prototype.disclose.call(this,e)&&(this.descend(It.ACTIVATE),this.isScrollLocked=!0,!0)},e.prototype.conceal=function(e,n){return!!t.prototype.conceal.call(this,e,n)&&(this.isScrollLocked=!1,this.descend(It.DEACTIVATE),!0)},Object.defineProperties(e,n),e}(ft.core.Disclosure),jt=['[tabindex="0"]',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details","iframe"].join(),Pt=['[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'].join(),Mt=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);if(!n)return!1;if("hidden"===n.visibility)return!1;for(void 0===e&&(e=t);e.contains(t);){if("none"===n.display)return!1;t=t.parentElement}return!0},xt=function(t,e){this.element=null,this.activeElement=null,this.onTrap=t,this.onUntrap=e,this.waiting=this.wait.bind(this),this.handling=this.handle.bind(this),this.focusing=this.maintainFocus.bind(this),this.current=null},kt={trapped:{configurable:!0},focusables:{configurable:!0}};kt.trapped.get=function(){return null!==this.element},xt.prototype.trap=function(t){this.trapped&&this.untrap(),this.element=t,this.isTrapping=!0,this.wait(),this.onTrap&&this.onTrap()},xt.prototype.wait=function(){Mt(this.element)?this.trapping():window.requestAnimationFrame(this.waiting)},xt.prototype.trapping=function(){if(this.isTrapping){this.isTrapping=!1;var t=this.focusables;t.length&&t[0].focus(),this.element.setAttribute("aria-modal",!0),window.addEventListener("keydown",this.handling),document.body.addEventListener("focus",this.focusing,!0),this.stunneds=[]}},xt.prototype.stun=function(t){for(var e=0,n=t.children;e<n.length;e+=1){var i=n[e];i!==this.element&&(i.contains(this.element)?this.stun(i):this.stunneds.push(new Rt(i)))}},xt.prototype.maintainFocus=function(t){if(!this.element.contains(t.target)){var e=this.focusables;if(0===e.length)return;var n=e[0];t.preventDefault(),n.focus()}},xt.prototype.handle=function(t){if(9===t.keyCode){var e=this.focusables;if(0!==e.length){var n=e[0],i=e[e.length-1],s=e.indexOf(document.activeElement);t.shiftKey?!this.element.contains(document.activeElement)||s<1?(t.preventDefault(),i.focus()):(document.activeElement.tabIndex>0||e[s-1].tabIndex>0)&&(t.preventDefault(),e[s-1].focus()):this.element.contains(document.activeElement)&&s!==e.length-1&&-1!==s?document.activeElement.tabIndex>0&&(t.preventDefault(),e[s+1].focus()):(t.preventDefault(),n.focus())}}},kt.focusables.get=function(){var t=this,e=ft.querySelectorAllArray(this.element,jt),n=ft.querySelectorAllArray(document.documentElement,'input[type="radio"]');if(n.length){for(var i={},s=0,o=n;s<o.length;s+=1){var r=o[s],c=r.getAttribute("name");void 0===i[c]&&(i[c]=new Ht(c)),i[c].push(r)}e=e.filter((function(t){if("input"!==t.tagName.toLowerCase()||"radio"!==t.getAttribute("type").toLowerCase())return!0;var e=t.getAttribute("name");return i[e].keep(t)}))}var a=ft.querySelectorAllArray(this.element,Pt);a.sort((function(t,e){return t.tabIndex-e.tabIndex}));var l=e.filter((function(t){return-1===a.indexOf(t)}));return a.concat(l).filter((function(e){return"-1"!==e.tabIndex&&Mt(e,t.element)}))},xt.prototype.untrap=function(){this.trapped&&(this.isTrapping=!1,this.element.removeAttribute("aria-modal"),window.removeEventListener("keydown",this.handling),document.body.removeEventListener("focus",this.focusing,!0),this.element=null,this.onUntrap&&this.onUntrap())},xt.prototype.dispose=function(){this.untrap()},Object.defineProperties(xt.prototype,kt);var Rt=function(t){this.element=t,this.hidden=t.getAttribute("aria-hidden"),this.inert=t.getAttribute("inert"),this.element.setAttribute("aria-hidden",!0),this.element.setAttribute("inert","")};Rt.prototype.unstun=function(){null===this.hidden?this.element.removeAttribute("aria-hidden"):this.element.setAttribute("aria-hidden",this.hidden),null===this.inert?this.element.removeAttribute("inert"):this.element.setAttribute("inert",this.inert)};var Ht=function(t){this.name=t,this.buttons=[]};Ht.prototype.push=function(t){this.buttons.push(t),(t===document.activeElement||t.checked||void 0===this.selected)&&(this.selected=t)},Ht.prototype.keep=function(t){return this.selected===t};var Gt=function(t){function e(){t.call(this,"Modal",!1),this.trap=new xt}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"ModalsGroup"},e.prototype.apply=function(e,n){t.prototype.apply.call(this,e,n),null===this.current?this.trap.untrap():this.trap.trap(this.current.node)},Object.defineProperties(e,n),e}(ft.core.DisclosuresGroup),Bt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"ModalBody"},e.prototype.init=function(){this.listen("scroll",this.shade.bind(this)),this.addDescent(It.ACTIVATE,this.activate.bind(this)),this.addDescent(It.DEACTIVATE,this.deactivate.bind(this))},e.prototype.activate=function(){this.isResizing=!0,this.resize()},e.prototype.deactivate=function(){this.isResizing=!1},e.prototype.shade=function(){this.node.scrollHeight>this.node.clientHeight?this.node.offsetHeight+this.node.scrollTop>=this.node.scrollHeight?this.removeClass(wt.SCROLL_SHADOW):this.addClass(wt.SCROLL_SHADOW):this.removeClass(wt.SCROLL_SHADOW)},e.prototype.resize=function(){this.adjust(),this.request(this.adjust.bind(this))},e.prototype.adjust=function(){var t=32*(this.isBreakpoint(ft.core.Breakpoints.MD)?2:1);this.style.maxHeight=window.innerHeight-t+"px",this.shade()},Object.defineProperties(e,n),e}(ft.core.Instance);ft.modal={Modal:Dt,ModalButton:Tt,ModalBody:Bt,ModalsGroup:Gt,ModalSelector:wt},ft.register(ft.modal.ModalSelector.MODAL,ft.modal.Modal),ft.register(ft.modal.ModalSelector.BODY,ft.modal.ModalBody),ft.register(ft.core.RootSelector.ROOT,ft.modal.ModalsGroup);var qt={NAVIGATION:ft.ns.selector("nav"),COLLAPSE:ft.ns.selector("nav__item")+" > "+ft.ns.selector("collapse"),ITEM:ft.ns.selector("nav__item"),ITEM_RIGHT:ft.ns("nav__item--align-right"),MENU:ft.ns.selector("menu")},zt=function(t){function e(){t.call(this),this._isRightAligned=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isRightAligned:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"NavigationItem"},e.prototype.init=function(){this.addAscent(ft.core.DisclosureEmission.ADDED,this.calculate.bind(this)),this.addAscent(ft.core.DisclosureEmission.REMOVED,this.calculate.bind(this)),this.isResizing=!0,this.calculate()},e.prototype.resize=function(){this.calculate()},e.prototype.calculate=function(){var t=this.element.getDescendantInstances(ft.core.Collapse.instanceClassName,null,!0)[0];if(t&&this.isBreakpoint(ft.core.Breakpoints.LG)&&t.element.node.matches(qt.MENU)){var e=this.element.node.parentElement.getBoundingClientRect().right,n=t.element.node.getBoundingClientRect().width,i=this.element.node.getBoundingClientRect().left;this.isRightAligned=i+n>e}else this.isRightAligned=!1},n.isRightAligned.get=function(){return this._isRightAligned},n.isRightAligned.set=function(t){this._isRightAligned!==t&&(this._isRightAligned=t,t?ft.addClass(this.element.node,qt.ITEM_RIGHT):ft.removeClass(this.element.node,qt.ITEM_RIGHT))},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.Instance),Ut={NONE:-1,INSIDE:0,OUTSIDE:1},Ft=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={index:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Navigation"},e.prototype.init=function(){t.prototype.init.call(this),this.clicked=!1,this.out=!1,this.listen("focusout",this.focusOut.bind(this)),this.listen("mousedown",this.down.bind(this))},e.prototype.validate=function(t){return t.element.node.matches(qt.COLLAPSE)},e.prototype.down=function(t){this.isBreakpoint(ft.core.Breakpoints.LG)&&-1!==this.index&&this.current&&(this.position=this.current.element.node.contains(t.target)?Ut.INSIDE:Ut.OUTSIDE,this.request(this.getPosition.bind(this)))},e.prototype.focusOut=function(t){this.isBreakpoint(ft.core.Breakpoints.LG)&&(this.out=!0,this.request(this.getPosition.bind(this)))},e.prototype.getPosition=function(){if(this.out)switch(this.position){case Ut.OUTSIDE:this.index=-1;break;case Ut.INSIDE:this.current&&this.current.focus();break;default:this.index>-1&&!this.current.hasFocus&&(this.index=-1)}this.position=Ut.NONE,this.out=!1},n.index.get=function(){return t.prototype.index},n.index.set=function(e){-1===e&&null!==this.current&&this.current.hasFocus&&this.current.focus(),t.prototype.index=e},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.CollapsesGroup);ft.navigation={Navigation:Ft,NavigationItem:zt,NavigationMousePosition:Ut,NavigationSelector:qt},ft.register(ft.navigation.NavigationSelector.NAVIGATION,ft.navigation.Navigation),ft.register(ft.navigation.NavigationSelector.ITEM,ft.navigation.NavigationItem);var Kt=function(t){function e(){t.call(this,ft.core.DisclosureType.SELECT)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TabButton"},e.prototype.apply=function(e){t.prototype.apply.call(this,e),this.isPrimary&&this.setAttribute("tabindex",e?"0":"-1")},Object.defineProperties(e,n),e}(ft.core.DisclosureButton),Wt={TAB:ft.ns.selector("tabs__tab"),GROUP:ft.ns.selector("tabs"),PANEL:ft.ns.selector("tabs__panel"),LIST:ft.ns.selector("tabs__list")},Vt=function(t){function e(){t.call(this,ft.core.DisclosureType.SELECT,Wt.PANEL,Kt,"TabsGroup")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TabPanel"},e.prototype.translate=function(t,e){this.style.transition=e?"none":"",this.style.transform="translate("+100*t+"%)"},e.prototype.reset=function(){this.group.index=0},Object.defineProperties(e,n),e}(ft.core.Disclosure),Yt=function(t){function e(){t.call(this,"TabPanel")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={buttonHasFocus:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"TabsGroup"},e.prototype.init=function(){t.prototype.init.call(this),this.list=this.querySelector(Wt.LIST),this.listen("transitionend",this.transitionend.bind(this)),this.listenKey(ft.core.KeyCodes.RIGHT,this.pressRight.bind(this),!0,!0),this.listenKey(ft.core.KeyCodes.LEFT,this.pressLeft.bind(this),!0,!0),this.listenKey(ft.core.KeyCodes.HOME,this.pressHome.bind(this),!0,!0),this.listenKey(ft.core.KeyCodes.END,this.pressEnd.bind(this),!0,!0),this.isRendering=!0},e.prototype.transitionend=function(t){this.style.transition="none"},n.buttonHasFocus.get=function(){return this.members.some((function(t){return t.buttonHasFocus}))},e.prototype.pressRight=function(){this.buttonHasFocus&&(this.index<this.length-1?this.index++:this.index=0,this.focus())},e.prototype.pressLeft=function(){this.buttonHasFocus&&(this.index>0?this.index--:this.index=this.length-1,this.focus())},e.prototype.pressHome=function(){this.buttonHasFocus&&(this.index=0,this.focus())},e.prototype.pressEnd=function(){this.buttonHasFocus&&(this.index=this.length-1,this.focus())},e.prototype.focus=function(){this.current&&this.current.focus()},e.prototype.apply=function(){for(var t=0;t<this._index;t++)this.members[t].translate(-1);this.current.style.transition="",this.current.style.transform="";for(var e=this._index+1;e<this.length;e++)this.members[e].translate(1);this.style.transition=""},e.prototype.render=function(){if(null!==this.current){var t=Math.round(this.current.node.offsetHeight);this.panelHeight!==t&&(this.panelHeight=t,this.style.height=this.panelHeight+this.list.offsetHeight+"px")}},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.DisclosuresGroup);ft.tab={TabPanel:Vt,TabButton:Kt,TabsGroup:Yt,TabSelector:Wt},ft.register(ft.tab.TabSelector.PANEL,ft.tab.TabPanel),ft.register(ft.tab.TabSelector.GROUP,ft.tab.TabsGroup);var Qt={SCROLLABLE:ft.ns.emission("table","scrollable"),CHANGE:ft.ns.emission("table","change"),CAPTION_HEIGHT:ft.ns.emission("table","captionheight")},$t=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"Table"},e.prototype.init=function(){this.addAscent(Qt.CAPTION_HEIGHT,this.setCaptionHeight.bind(this))},e.prototype.setCaptionHeight=function(t){this.setProperty("--table-offset","calc("+t+"px + 1rem)")},Object.defineProperties(e,n),e}(ft.core.Instance),Xt={TABLE:ft.ns.selector("table"),SHADOW:ft.ns.selector("table__shadow"),SHADOW_LEFT:ft.ns.selector("table__shadow--left"),SHADOW_RIGHT:ft.ns.selector("table__shadow--right"),ELEMENT:ft.ns.selector("table")+":not("+ft.ns.selector("table--no-scroll")+") table",CAPTION:ft.ns.selector("table")+" table caption"},Zt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isScrolling:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"TableElement"},e.prototype.init=function(){this.listen("scroll",this.scroll.bind(this)),this.content=this.querySelector("tbody"),this.isResizing=!0},n.isScrolling.get=function(){return this._isScrolling},n.isScrolling.set=function(t){this._isScrolling!==t&&(this._isScrolling=t,t?(this.addClass(Xt.SHADOW),this.scroll()):(this.removeClass(Xt.SHADOW),this.removeClass(Xt.SHADOW_LEFT),this.removeClass(Xt.SHADOW_RIGHT)))},e.prototype.scroll=function(){var t=this.node.scrollLeft<=8,e=this.content.offsetWidth-this.node.offsetWidth-8,n=Math.abs(this.node.scrollLeft)>=e,i="rtl"===document.documentElement.getAttribute("dir"),s=i?Xt.SHADOW_RIGHT:Xt.SHADOW_LEFT,o=i?Xt.SHADOW_LEFT:Xt.SHADOW_RIGHT;t?this.removeClass(s):this.addClass(s),n?this.removeClass(o):this.addClass(o)},e.prototype.resize=function(){this.isScrolling=this.content.offsetWidth>this.node.offsetWidth},e.prototype.dispose=function(){this.isScrolling=!1},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.Instance),Jt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"TableCaption"},e.prototype.init=function(){this.height=0,this.isResizing=!0},e.prototype.resize=function(){var t=this.getRect().height;this.height!==t&&(this.height=t,this.ascend(Qt.CAPTION_HEIGHT,t))},Object.defineProperties(e,n),e}(ft.core.Instance);ft.table={Table:$t,TableElement:Zt,TableCaption:Jt,TableSelector:Xt},ft.register(ft.table.TableSelector.TABLE,ft.table.Table),ft.register(ft.table.TableSelector.ELEMENT,ft.table.TableElement),ft.register(ft.table.TableSelector.CAPTION,ft.table.TableCaption);var te={HEADER:ft.ns.selector("header"),TOOLS_LINKS:ft.ns.selector("header__tools-links"),MENU_LINKS:ft.ns.selector("header__menu-links"),LINKS:ft.ns.selector("header__tools-links")+" "+ft.ns.selector("links-group"),MODALS:""+ft.ns.selector("header__search")+ft.ns.selector("modal")+", "+ft.ns.selector("header__menu")+ft.ns.selector("modal")},ee=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"HeaderLinks"},e.prototype.init=function(){var t=this.queryParentSelector(te.HEADER);if(this.toolsLinks=t.querySelector(te.TOOLS_LINKS),this.menuLinks=t.querySelector(te.MENU_LINKS),this.toolsLinks.innerHTML.replace(/  +/g," ")!==this.menuLinks.innerHTML.replace(/  +/g," "))switch(ft.mode){case ft.Modes.ANGULAR:case ft.Modes.REACT:case ft.Modes.VUE:ft.inspector.warn("header__tools-links content is different from header__menu-links content.\nAs you're using a dynamic framework, you should handle duplication of this content yourself, please refer to documentation: \n"+ft.header.doc);break;default:this.menuLinks.innerHTML=this.toolsLinks.innerHTML}},Object.defineProperties(e,n),e}(ft.core.Instance),ne=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={instanceClassName:{configurable:!0}};return n.instanceClassName.get=function(){return"HeaderModal"},e.prototype.init=function(){this.isResizing=!0},e.prototype.resize=function(){this.isBreakpoint(ft.core.Breakpoints.LG)?this.unqualify():this.qualify()},e.prototype.qualify=function(){this.setAttribute("role","dialog");var t=this.element.getInstance("Modal");if(t){for(var e="",n=0,i=t.buttons;n<i.length;n+=1){var s=i[n];if(e=s.id||e,s.isPrimary&&e)break}this.setAttribute("aria-labelledby",e)}},e.prototype.unqualify=function(){var t=this.element.getInstance("Modal");t&&t.conceal(),this.removeAttribute("role"),this.removeAttribute("aria-labelledby")},Object.defineProperties(e,n),e}(ft.core.Instance);ft.header={HeaderLinks:ee,HeaderModal:ne,HeaderSelector:te,doc:"https://gouvfr.atlassian.net/wiki/spaces/DB/pages/222789846/En-t+te+-+Header"},ft.register(ft.header.HeaderSelector.LINKS,ft.header.HeaderLinks),ft.register(ft.header.HeaderSelector.MODALS,ft.header.HeaderModal);var ie={DISPLAY:ft.ns.selector("display"),RADIO_BUTTONS:'input[name="'+ft.ns("radios-theme")+'"]',FIELDSET:ft.ns.selector("fieldset")},se=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={scheme:{configurable:!0}},i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Display"},e.prototype.init=function(){if(this.radios=this.querySelectorAll(ie.RADIO_BUTTONS),ft.scheme){this.changing=this.change.bind(this);for(var t=0,e=this.radios;t<e.length;t+=1){e[t].addEventListener("change",this.changing)}this.addDescent(ft.scheme.SchemeEmission.SCHEME,this.apply.bind(this)),this.ascend(ft.scheme.SchemeEmission.ASK)}else this.querySelector(ie.FIELDSET).setAttribute("disabled","")},n.scheme.get=function(){return this._scheme},n.scheme.set=function(t){if(this._scheme!==t&&ft.scheme)switch(t){case ft.scheme.SchemeValue.SYSTEM:case ft.scheme.SchemeValue.LIGHT:case ft.scheme.SchemeValue.DARK:this._scheme=t;for(var e=0,n=this.radios;e<n.length;e+=1){var i=n[e];i.checked=i.value===t}this.ascend(ft.scheme.SchemeEmission.SCHEME,t)}},e.prototype.change=function(){for(var t=0,e=this.radios;t<e.length;t+=1){var n=e[t];if(n.checked)return void(this.scheme=n.value)}},e.prototype.apply=function(t){this.scheme=t},e.prototype.dispose=function(){for(var t=0,e=this.radios;t<e.length;t+=1){e[t].removeEventListener("change",this.changing)}},Object.defineProperties(e.prototype,n),Object.defineProperties(e,i),e}(ft.core.Instance);ft.display={Display:se,DisplaySelector:ie},ft.register(ft.display.DisplaySelector.DISPLAY,ft.display.Display),F.setLegacy()}();
//# sourceMappingURL=dsfr.nomodule.min.js.map

A resources/public/md/sitemap.en.md => resources/public/md/sitemap.en.md +10 -0
@@ 0,0 1,10 @@
## Sitemap

- [Home](/)
- [Organizations or groups](#/groups)
- [Source code repositories](#/repos)
- [Identified dependencies](#/deps)
- [Stats](#/stats)
- [About](#/about)
- [Legal mentions](#/legal)
- [RSS feed](/data/latest.xml)

A resources/public/md/sitemap.fr.md => resources/public/md/sitemap.fr.md +10 -0
@@ 0,0 1,10 @@
## Pages du site

- [Accueil](/)
- [Organisations ou groupes](#/groups)
- [Dépôts de code source](#/repos)
- [Dépendances identifiées](#/deps)
- [Chiffres](#/stats)
- [À propos](#/about)
- [Mentions légales](#/legal)
- [Flux RSS](/data/latest.xml)

M src/cljs/codegouvfr/core.cljs => src/cljs/codegouvfr/core.cljs +148 -63
@@ 8,6 8,7 @@
            [reagent.core :as reagent]
            [reagent.dom]
            [cljs-bean.core :refer [bean]]
            [clojure.browser.dom :as dom]
            [goog.string :as gstring]
            [ajax.core :refer [GET]]
            [codegouvfr.i18n :as i]


@@ 83,6 84,9 @@

;; Utility functions

(defn new-tab [s lang]
  (str s " - " (i/i lang [:new-tab])))

(defn set-item!
  "Set `key` in browser's localStorage to `val`."
  [key val]


@@ 269,6 273,9 @@
(re-frame/reg-event-db
 :lang!
 (fn [db [_ lang]]
   (dom/set-properties
    (dom/get-element "html")
    {"lang" lang})
   (assoc db :lang lang)))

(re-frame/reg-event-db


@@ 591,14 598,16 @@
                    [:div
                     [:a.fr-link
                      {:href   (str "https://archive.softwareheritage.org/browse/origin/" r)
                       :title  (i/i lang [:swh-link])
                       :title  (new-tab (i/i lang [:swh-link]) lang)
                       :target "_blank"}
                      [:img {:width "18px" :src "/img/swh-logo.png"
                             :alt   "Software Heritage logo"}]]
                     [:a {:href   r
                          :target "_blank"
                          :title  (str (i/i lang [:go-to-repo])
                                       (when li (str (i/i lang [:under-license]) li)))}
                          :title  (new-tab
                                   (str
                                    (i/i lang [:go-to-repo])
                                    (when li (str (i/i lang [:under-license]) li))) lang)}
                      n]
                     " ("
                     [:a {:href  (rfe/href :repos {:lang lang} {:g group})


@@ 628,7 637,7 @@
                   [:td
                    {:style {:text-align "center"}}
                    [:a.fr-link
                     {:title  (i/i lang [:reuses-expand])
                     {:title  (new-tab (i/i lang [:reuses-expand]) lang)
                      :target "_blank"
                      :href   (str r "/network/dependents")}
                     g]]])))]])))


@@ 699,24 708,29 @@
         ^{:key x}
         [:option {:value x} x])]
      [:div.fr-checkbox-group.fr-col.fr-m-1w
       [:input {:type      "checkbox" :id "1" :name "1"
                :on-change #(let [v (.-checked (.-target %))]
                              (set-item! :is-not-fork v)
                              (re-frame/dispatch [:filter! {:is-not-fork v}]))}]
       [:label.fr-label {:for "1"} (i/i lang [:only-not-fork])]]
       [:input#1 {:type      "checkbox" :name "1"
                  :on-change #(let [v (.-checked (.-target %))]
                                (set-item! :is-not-fork v)
                                (re-frame/dispatch [:filter! {:is-not-fork v}]))}]
       [:label.fr-label
        {:for   "1"
         :title (i/i lang [:only-not-fork-title])}
        (i/i lang [:only-not-fork])]]
      [:div.fr-checkbox-group.fr-col.fr-m-1w
       [:input {:type      "checkbox" :id "2" :name "2"
                :on-change #(let [v (.-checked (.-target %))]
                              (set-item! :is-licensed v)
                              (re-frame/dispatch [:filter! {:is-licensed v}]))}]
       [:input#2 {:type      "checkbox" :name "2"
                  :on-change #(let [v (.-checked (.-target %))]
                                (set-item! :is-licensed v)
                                (re-frame/dispatch [:filter! {:is-licensed v}]))}]
       [:label.fr-label {:for "2"} (i/i lang [:only-with-license])]]

      [:div.fr-checkbox-group.fr-col.fr-m-1w
       [:input {:type      "checkbox" :id "3" :name "3"
                :on-change #(let [v (.-checked (.-target %))]
                              (set-item! :is-esr v)
                              (re-frame/dispatch [:filter! {:is-esr v}]))}]
       [:label.fr-label {:for "3"} (i/i lang [:only-her])]]]
       [:input#3 {:type      "checkbox" :name "3"
                  :on-change #(let [v (.-checked (.-target %))]
                                (set-item! :is-esr v)
                                (re-frame/dispatch [:filter! {:is-esr v}]))}]
       [:label.fr-label
        {:for "3" :title (i/i lang [:only-her-title])}
        (i/i lang [:only-her])]]]
     ;; Main repos table display
     [repos-table lang (count repos)]
     ;; Bottom pagination block


@@ 774,13 788,15 @@
                    (if (or h an)
                      (let [w (if h h (str annuaire-prefix an))]
                        [:a.fr-link
                         {:title  (i/i lang [:go-to-website])
                         {:title  (new-tab (i/i lang [:go-to-website]) lang)
                          :target "_blank"
                          :href   w}
                         [:img {:src au :width "100%" :alt ""}]])
                      [:img {:src au :width "100%" :alt ""}])]
                   [:td
                    [:a {:target "_blank" :title (i/i lang [:go-to-orga]) :href o} (or n l)]]
                    [:a {:target "_blank"
                         :title  (new-tab (i/i lang [:go-to-orga]) lang)
                         :href   o} (or n l)]]
                   [:td d]
                   [:td
                    {:style {:text-align "center"}}


@@ 863,8 879,9 @@
         (let [{:keys [t n d l r]} dd]
           [:tr
            [:td
             [:a {:href  l :target "_blank"
                  :title (i/i lang [:more-info])} n]]
             [:a {:href   l
                  :target "_blank"
                  :title  (new-tab (i/i lang [:more-info]) lang)} n]]
            [:td t]
            [:td d]
            (when-not repo


@@ 889,8 906,9 @@
     (for [{:keys [n t d l r] :as o} deps]
       ^{:key o}
       [:tr
        [:td [:a {:href  l :target "_blank"
                  :title (i/i lang [:more-info])} n]]
        [:td [:a {:href   l
                  :target "_blank"
                  :title  (new-tab (i/i lang [:more-info]) lang)} n]]
        [:td t]
        [:td d]
        [:td


@@ 1040,8 1058,9 @@
      [:div.fr-col-6
       (stats-table (i/i lang [:distribution-by-platform]) platforms)]
      [:div.fr-col-6
       [:img {:src "/data/top_licenses.svg" :width "100%"
              :alt (i/i lang [:most-used-licenses])}]]]]))
       [:img {:src      "/data/top_licenses.svg" :width "100%"
              :longdesc (i/i lang [:most-used-licenses])
              :alt      (i/i lang [:most-used-licenses])}]]]]))

(defn stats-page-class [lang]
  (let [deps       (reagent/atom nil)


@@ 1097,19 1116,19 @@
          [:div.fr-header__logo
           [:p.fr-logo "République" [:br] "Française"]]
          [:div.fr-header__navbar
           [:button.fr-btn--menu.fr-btn
           [:button#fr-btn-menu-mobile.fr-btn--menu.fr-btn
            {:data-fr-opened false
             :aria-controls  "header-navigation"
             :aria-controls  "modal-833"
             :aria-haspopup  "menu"
             :title          "menu"}
             :title          "Menu"}
            "Menu"]]]
         [:div.fr-header__service
          [:a {:href "/" :title (i/i lang [:index-title])}
          [:a {:href "/"} ;; FIXME
           [:p.fr-header__service-title (i/i lang [:index-title])]]
          [:p.fr-header__service-tagline (i/i lang [:index-subtitle])]]]
        [:div.fr-header__tools
         [:div.fr-header__tools-links
          [:ul.fr-links-group
          [:ul.fr-links-group   
           [:li
            [:a.fr-link.fr-fi-mail-line
             {:href  "mailto:logiciels-libres@data.gouv.fr"


@@ 1117,28 1136,29 @@
             (i/i lang [:contact])]]
           [:li
            [:a.fr-link.fr-fi-mail-line.fr-share__link--twitter
             {:href  "https://twitter.com/codegouvfr"
              :title (i/i lang [:twitter-follow])}
             {:href       "https://twitter.com/codegouvfr"
              :aria-label (i/i lang [:twitter-follow])
              :title      (new-tab (i/i lang [:twitter-follow]) lang)
              :target     "_blank"}
             "@codegouvfr"]]]]]]]]

     ;; Header menu
     [:div#header-navigation.fr-header__menu.fr-modal
      {:aria-labelledby "button-menu"}
     [:div#modal-833.fr-header__menu.fr-modal
      {:aria-labelledby "fr-btn-menu-mobile"}
      [:div.fr-container
       [:button.fr-link--close.fr-link
        {:aria-controls "header-navigation"} (i/i lang [:close])]
       [:div.fr-header__menu-links]
       [:nav.fr-nav {:role "navigation" :aria-label "Principal"}
        {:aria-controls "modal-833"} (i/i lang [:close])]
       [:div.fr-header__menu-links {:style {:display "none"}}]
       [:nav#navigation-832.fr-nav {:role "navigation" :aria-label "Principal"}
        [:ul.fr-nav__list
         [:li.fr-nav__item
          [:a.fr-nav__link
           {:aria-current (when (= path "/") "page")
            :title        (i/i lang [:back-to-homepage])
            :href         "#"}
            :on-click     #(rfe/push-state :home)}
           (i/i lang [:home])]]
         [:li.fr-nav__item
          [:a.fr-nav__link
           {:aria-current (when (= path "/groups") "page")
            :title        (i/i lang [:orgas-or-groups])
            :href         "#/groups"}
           (i/i lang [:orgas-or-groups])]]
         [:li.fr-nav__item


@@ 1172,7 1192,7 @@
     [:div.fr-col-12.fr-col-md-8
      [:div.fr-follow__newsletter
       [:div
        [:h5.fr-h5.fr-follow__title (i/i lang [:bluehats])]
        [:h1.fr-h5.fr-follow__title (i/i lang [:bluehats])]
        [:p.fr-text--sm.fr-follow__desc (i/i lang [:bluehats-desc])]
        [:a
         {:href "https://infolettres.etalab.gouv.fr/subscribe/bluehats@mail.etalab.studio"}


@@ 1182,16 1202,53 @@
       [:p.fr-h5.fr-mb-3v (i/i lang [:follow])]
       [:ul.fr-links-group.fr-links-group--lg
        [:li [:a.fr-link.fr-link--twitter
              {:href   "https://twitter.com/codegouvfr"
               :target "_blank"}
              "twitter"]]]]]]]])
              {:href       "https://twitter.com/codegouvfr"
               :aria-label (i/i lang [:twitter-follow])
               :title      (new-tab (i/i lang [:twitter-follow]) lang)
               :target     "_blank"}
              "Twitter"]]]]]]]])

(defn display-parameters-modal [lang]
  [:dialog#fr-theme-modal.fr-modal
   {:role "dialog" :aria-labelledby "fr-theme-modal-title"}
   [:div.fr-container.fr-container--fluid.fr-container-md
    [:div.fr-grid-row.fr-grid-row--center
     [:div.fr-col-12.fr-col-md-6.fr-col-lg-4
      [:div.fr-modal__body
       [:div.fr-modal__header
        [:button.fr-link--close.fr-link {:aria-controls "fr-theme-modal"}
         (i/i lang [:modal-close])]]
       [:div.fr-modal__content
        [:h1#fr-theme-modal-title.fr-modal__title
         (i/i lang [:modal-title])]
        [:div#fr-display.fr-form-group.fr-display
         [:fieldset.fr-fieldset
          [:legend#-legend.fr-fieldset__legend.fr-text--regular
           (i/i lang [:modal-select-theme])]
          [:div.fr-fieldset__content
           [:div.fr-radio-group
            [:input#fr-radios-theme-light
             {:type "radio" :name "fr-radios-theme" :value "light"}]
            [:label.fr-label {:for "fr-radios-theme-light"}
             (i/i lang [:modal-theme-light])]]
           [:div.fr-radio-group
            [:input#fr-radios-theme-dark
             {:type "radio" :name "fr-radios-theme" :value "dark"}]
            [:label.fr-label {:for "fr-radios-theme-dark"}
             (i/i lang [:modal-theme-dark])]]
           [:div.fr-radio-group
            [:input#fr-radios-theme-system
             {:type "radio" :name "fr-radios-theme" :value "system"}]
            [:label.fr-label {:for "fr-radios-theme-system"}
             (i/i lang [:modal-theme-system])]]]]]]]]]]])

(defn footer [lang]
  [:footer.fr-footer {:role "contentinfo"}
   [:div.fr-container
    [:div.fr-footer__body
     [:div.fr-footer__brand.fr-enlarge-link
      [:a.fr-link {:href "/" :title (i/i lang [:back-to-homepage])}
      [:a {:on-click #(rfe/push-state :home)
           :title    (i/i lang [:home])}
       [:p.fr-logo "République" [:br] "Française"]]]
     [:div.fr-footer__content
      [:p.fr-footer__content-desc (i/i lang [:footer-desc])


@@ 1214,7 1271,8 @@
     [:ul.fr-footer__bottom-list
      [:li.fr-footer__bottom-item
       [:a.fr-footer__bottom-link
        {:on-click #(re-frame/dispatch
        {:lang     (if (= lang "fr") "en" "fr")
         :on-click #(re-frame/dispatch
                     [:lang! (if (= lang "fr") "en" "fr")])}
        (i/i lang [:switch-lang])]]
      [:li.fr-footer__bottom-item


@@ 1231,14 1289,19 @@
        (i/i lang [:personal-data])]]
      [:li.fr-footer__bottom-item
       [:a.fr-footer__bottom-link
        {:href "#/sitemap"}
        (i/i lang [:sitemap])]]
      [:li.fr-footer__bottom-item
       [:a.fr-footer__bottom-link
        {:href "/data/latest.xml" :title (i/i lang [:subscribe-rss-flux])}
        (i/i lang [:rss-feed])]]
      [:li.fr-footer__bottom-item
       [:button.fr-footer__bottom-link.fr-fi-theme-fill.fr-link--icon-left
        {:aria-controls  "fr-theme-modal"
         :title          (i/i lang [::choose-theme])
         :title          (str (i/i lang [:modal-title]) " - "
                              (i/i lang [:new-modal]))
         :data-fr-opened false}
        (i/i lang [:choose-theme])]]]]]])
        (i/i lang [:modal-title])]]]]]])

;; Pages from md



@@ 1257,6 1320,14 @@
       "fr" (inline-resource "public/md/about.fr.md")
       (inline-resource "public/md/about.en.md")))]])

(defn sitemap-page [lang]
  [:div.fr-container.fr-grid.fr-grid--row
   [:div.fr-col-10.fr-col-md-10
    (to-hiccup
     (condp = lang
       "fr" (inline-resource "public/md/sitemap.fr.md")
       (inline-resource "public/md/sitemap.en.md")))]])

;; #00AC8C
;; #FF8D7E
;; #FDCF41


@@ 1268,24 1339,33 @@
     [:div.fr-card.fr-card--horizontal.fr-enlarge-link
      [:div.fr-card__body
       [:div.fr-card__title
        [:a.fr-card__link {:href "#/repos"} (i/i lang [:Repos])]]
        [:a.fr-card__link
         {:href  "#/repos"
          :title (i/i lang [:repos-of-source-code])}
         (i/i lang [:Repos])]]
       [:div.fr-card__desc (i/i lang [:home-repos-desc])]]
      [:div.fr-card__img
       [:img.fr-responsive-img {:src "/img/keyboard.jpg"}]]]]
       [:img.fr-responsive-img {:src "/img/keyboard.jpg" :alt ""}]]]]
    [:div.fr-col-6.fr-p-2w
     [:div.fr-card.fr-card--horizontal.fr-enlarge-link
      [:div.fr-card__body
       [:div.fr-card__title
        [:a.fr-card__link {:href "#/deps"} (i/i lang [:Deps])]]
        [:a.fr-card__link
         {:href  "#/deps"
          :title (i/i lang [:deps-stats])}
         (i/i lang [:Deps])]]
       [:div.fr-card__desc (i/i lang [:home-deps-desc])]]
      [:div.fr-card__img
       [:img.fr-responsive-img {:src "/img/rocks.jpg"}]]]]]
       [:img.fr-responsive-img {:src "/img/rocks.jpg" :alt ""}]]]]]
   [:div.fr-grid-row.fr-grid-row--center
    [:div.fr-col-6.fr-p-2w
     [:div.fr-card.fr-enlarge-link
      [:div.fr-card__body
       [:div.fr-card__title
        [:a.fr-card__link {:href "#/stats"} (i/i lang [:Stats])]]
        [:a.fr-card__link
         {:href  "#/stats"
          :title (i/i lang [:stats-expand])}
         (i/i lang [:Stats])]]
       [:div.fr-card__desc (i/i lang [:home-stats-desc])]]]]
    [:div.fr-col-6.fr-p-2w
     [:div.fr-card.fr-enlarge-link


@@ 1307,27 1387,31 @@
        view @(re-frame/subscribe [:view?])]
    [:div
     (banner lang)
     [:div.fr-container.fr-container--fluid.fr-mb-3w
     [:main#main.fr-container.fr-container--fluid.fr-mb-3w
      {:role "main"}
      [main-menu q lang view]
      (condp = view
        ;; Default page
        :home  [home-page lang]
        :home    [home-page lang]
        ;; Table to display organizations
        :orgas [orgas-page lang]
        :orgas   [orgas-page lang]
        ;; Table to display repositories
        :repos [repos-page-class lang license language platform]
        :repos   [repos-page-class lang license language platform]
        ;; Table to display statistics
        :stats [stats-page-class lang]
        :stats   [stats-page-class lang]
        ;; Table to display all dependencies
        :deps  [deps-page-class lang]
        :deps    [deps-page-class lang]
        ;; Page for legal mentions
        :legal [legal-page lang]
        :legal   [legal-page lang]
        ;; About page
        :about [about-page lang]
        :about   [about-page lang]
        ;; Sitemap
        :sitemap [sitemap-page lang]
        ;; Fall back on the organizations page
        [error-page lang])]
     (subscribe lang)
     (footer lang)]))
     (footer lang)
     (display-parameters-modal lang)]))

(defn main-class []
  (let [q        (reagent/atom nil)


@@ 1376,6 1460,7 @@
   ["deps" :deps]
   ["legal" :legal]
   ["about" :about]
   ["sitemap" :sitemap]
   ["error" :error]])

(defn ^:export init []

M src/cljs/codegouvfr/i18n.cljs => src/cljs/codegouvfr/i18n.cljs +28 -8
@@ 27,14 27,13 @@
    :bluehats                      "Gazette BlueHats 🧢"
    :bluehats-desc                 "Votre lettre d'information sur les logiciels libres par et pour les administrations."
    :browse-repos-orga             "Voir la liste des dépôts de cette organisation ou de ce groupe"
    :choose-theme                  "Paramètres d'affichage"
    :close                         "Fermer"
    :contact                       "Contact"
    :contact-title                 "Pour toute demande, n'hésitez pas à nous envoyer un courriel."
    :contact-title                 "Suivez ce lien pour nous envoyer un courriel."
    :created-at                    "Création"
    :dep                           " dépendance"
    :deps                          " dépendances"
    :deps-stats                    "Dépendances identifiées"
    :deps-stats                    "Dépendances identifiées dans tous les dépôts"
    :description                   "Description"
    :distribution-by-platform      "Répartition par plateforme"
    :download                      "Télécharger"


@@ 65,11 64,19 @@
    :list-repos-with-language      "Lister les dépôts utilisant principalement ce langage"
    :mean-repos-by-orga            "Moyenne des dépôts par organisation"
    :median-repos-by-orga          "Médiane des dépôts par organisation"
    :modal-close                   "Fermer"
    :modal-title                   "Paramètres d’affichage"
    :modal-select-theme            "Choisissez un thème pour personnaliser l’apparence du site."
    :modal-theme-light             "Thème clair"
    :modal-theme-dark              "Thème sombre"
    :modal-theme-system            "Système"
    :more-info                     "Plus d'informations"
    :most-used-identified-licenses "Licences identifiées les plus utilisées"
    :most-used-languages           "Les 10 languages les plus utilisés"
    :most-used-licenses            "Licences les plus utilisées"
    :name                          "Nom"
    :new-modal                     "S'ouvre dans une fenêtre modale"
    :new-tab                       "Ouvre un nouvel onglet"
    :no-dep-found                  "Pas de dépendance trouvée : une autre idée de requête ?"
    :no-orga-found                 "Pas d'organisation ou de groupe trouvé : une autre idée de requête ?"
    :no-repo-found                 "Pas de dépôt trouvé : une autre idée de requête ?"


@@ 77,7 84,9 @@
    :number-of-repos               "Nombre de dépôts"
    :one-group                     " groupe"
    :only-her                      "Que ESR"
    :only-her-title                "Ne voir que les dépôts de l'enseignement supérieur et de la recherche"
    :only-not-fork                 "Pas de fork"
    :only-not-fork-title           "Ne pas afficher les dépôts s'ils sont des forks d'autres dépôts"
    :only-with-license             "Avec licence"
    :orga-repo                     "Dépôt (groupe)"
    :orgas                         "Organisations"


@@ 93,6 102,7 @@
    :reused                        "Réutil."
    :reuses-expand                 "Réutilisations dans d'autres dépôts ou paquetages"
    :rss-feed                      "Flux RSS"
    :sitemap                       "Pages du site"
    :sorry                         "Désolé !"
    :sort                          "Trier"
    :sort-description-length       "Trier par longueur de description"


@@ 107,7 117,7 @@
    :sort-type                     "Trier par type"
    :sort-update-date              "Trier par date de mise à jour"
    :stars                         "étoiles"
    :stats-expand                  "Licences et langages les plus utilisées, etc."
    :stats-expand                  "Quelques statistiques sur les langages, les licences, etc."
    :subscribe                     "Abonnez-vous"
    :subscribe-rss-flux            "S'abonner au flux RSS des derniers dépôts"
    :swh-link                      "Lien vers l'archive faite par Software Heritage"


@@ 137,14 147,13 @@
    :bluehats                      "BlueHats 🧢 newsletter"
    :bluehats-desc                 "French news about free software by and for the public sector."
    :browse-repos-orga             "See the list of repositories from this organization or group"
    :choose-theme                  "Display parameter"
    :close                         "Close"
    :contact                       "Contact"
    :contact-title                 "Don't hesitate to send us an email"
    :contact-title                 "Follow this link to send us an email."
    :created-at                    "Created"
    :dep                           " dependency"
    :deps                          " dependencies"
    :deps-stats                    "Identified dependencies"
    :deps-stats                    "Identified dependencies in all repositories"
    :description                   "Description"
    :distribution-by-platform      "Distribution per platform"
    :download                      "Download"


@@ 175,11 184,19 @@
    :list-repos-with-language      "List repositories mainly written in this language"
    :mean-repos-by-orga            "Mean number of repositories by organizations"
    :median-repos-by-orga          "Median number of repositories by orgnizations"
    :modal-close                   "Close"
    :modal-title                   "Display parameters"
    :modal-select-theme            "Select a theme to customize the website appearance."
    :modal-theme-light             "Light theme"
    :modal-theme-dark              "Dark theme"
    :modal-theme-system            "System"
    :more-info                     "More information"
    :most-used-identified-licenses "Most used identified licenses"
    :most-used-languages           "Top 10 most used languages"
    :most-used-licenses            "Most used licenses"
    :name                          "Name"
    :new-modal                     "Open as a modal window"
    :new-tab                       "Open a new tab"
    :no-dep-found                  "No dependency found: would you like to make a new request?"
    :no-orga-found                 "Organization or group not found: would you like to make a new request?"
    :no-repo-found                 "Repository not found: would you like to make a new request?"


@@ 187,7 204,9 @@
    :number-of-repos               "Number of repositories"
    :one-group                     " group"
    :only-her                      "Only HER"
    :only-her-title                "Only repositories from higher education and research"
    :only-not-fork                 "No forks"
    :only-not-fork-title           "Do not display repositories if they are forks from other repositories"
    :only-with-license             "Only repositories with a known license"
    :orga-repo                     "Repository (organization)"
    :orgas                         "Organizations"


@@ 203,6 222,7 @@
    :reused                        "Reused"
    :reuses-expand                 "Reuses in other repositories or packages"
    :rss-feed                      "RSS feed"
    :sitemap                       "Sitemap"
    :sorry                         "Sorry!"
    :sort                          "Sort"
    :sort-description-length       "Sort by description length"


@@ 217,7 237,7 @@
    :sort-type                     "Sort by type"
    :sort-update-date              "Sort by update date"
    :stars                         "stars"
    :stats-expand                  "Most used Licenses and languages, etc."
    :stats-expand                  "Some stats on languages, licences, etc."
    :subscribe                     "Subscribe"
    :subscribe-rss-flux            "Subscribe to our RSS feed to receive information about the latest repositories!"
    :swh-link                      "A link to the Software Heritage archive"