1function P(o,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}function f(o){return(function(t){if(Array.isArray(t))return h(t)})(o)||(function(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)})(o)||(function(t,n){if(t){if(typeof t=="string")return h(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return h(t,n)}})(o)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function h(o,t){(t==null||t>o.length)&&(t=o.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=o[n];return e}var C,m,c,v,L,g=(C=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'],m=(function(){function o(e){var i=e.targetModal,s=e.triggers,l=s===void 0?[]:s,a=e.onShow,r=a===void 0?function(){}:a,d=e.onClose,u=d===void 0?function(){}:d,b=e.openTrigger,S=b===void 0?"data-micromodal-trigger":b,y=e.closeTrigger,I=y===void 0?"data-micromodal-close":y,p=e.openClass,T=p===void 0?"is-open":p,w=e.disableScroll,F=w!==void 0&&w,E=e.disableFocus,O=E!==void 0&&E,k=e.awaitCloseAnimation,B=k!==void 0&&k,M=e.awaitOpenAnimation,j=M!==void 0&&M,A=e.debugMode,N=A!==void 0&&A;(function(x,K){if(!(x instanceof K))throw new TypeError("Cannot call a class as a function")})(this,o),this.modal=typeof i=="string"?document.getElementById(i):i,this.config={debugMode:N,disableScroll:F,openTrigger:S,closeTrigger:I,openClass:T,onShow:r,onClose:u,awaitCloseAnimation:B,awaitOpenAnimation:j,disableFocus:O},l.length>0&&this.registerTriggers.apply(this,f(l)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,n;return t=o,(n=[{key:"registerTriggers",value:function(){for(var e=this,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];s.filter(Boolean).forEach((function(a){a.addEventListener("click",(function(r){return e.showModal(r)}))}))}},{key:"showModal",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var s=function l(){e.modal.removeEventListener("animationend",l,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",s,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,i)}},{key:"closeModal",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var s=this.config.openClass;this.modal.addEventListener("animationend",(function l(){i.classList.remove(s),i.removeEventListener("animationend",l,!1)}),!1)}else i.classList.remove(this.config.openClass)}},{key:"closeModalByIdOrElement",value:function(e){this.modal=typeof e=="string"?document.getElementById(e):e,this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var i=document.querySelector("body");switch(e){case"enable":Object.assign(i.style,{overflow:""});break;case"disable":Object.assign(i.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}},{key:"onKeydown",value:function(e){e.keyCode===27&&this.closeModal(e),e.keyCode===9&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(C);return Array.apply(void 0,f(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var i=this.getFocusableNodes();if(i.length!==0){var s=i.filter((function(l){return!l.hasAttribute(e.config.closeTrigger)}));s.length>0&&s[0].focus(),s.length===0&&i[0].focus()}}}},{key:"retainFocus",value:function(e){var i=this.getFocusableNodes();if(i.length!==0)if(i=i.filter((function(l){return l.offsetParent!==null})),this.modal.contains(document.activeElement)){var s=i.indexOf(document.activeElement);e.shiftKey&&s===0&&(i[i.length-1].focus(),e.preventDefault()),!e.shiftKey&&i.length>0&&s===i.length-1&&(i[0].focus(),e.preventDefault())}else i[0].focus()}}])&&P(t.prototype,n),o}
2)(),c=null,v=function(o){if(typeof id=="string"?!document.getElementById(o):!o)return console.warn("MicroModal: âSeems like you have missed %c'".concat(o,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<div class="modal" id="'.concat(o,'"></div>')),!1},L=function(o,t){if((function(e){e.length<=0&&(console.warn("MicroModal: âPlease specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'<a href="#" data-micromodal-trigger="my-modal"></a>'))})(o),!t)return!0;for(var n in t)v(n);return!0},{init:function(o){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},o),n=f(document.querySelectorAll("[".concat(t.openTrigger,"]"))),e=(function(l,a){var r=[];return l.forEach((function(d){var u=d.attributes[a].value;r[u]===void 0&&(r[u]=[]),r[u].push(d)})),r})(n,t.openTrigger);if(t.debugMode!==!0||L(n,e)!==!1)for(var i in e){var s=e[i];t.targetModal=i,t.triggers=f(s),c=new m(t)}},show:function(o,t){var n=t||{};n.targetModal=o,n.debugMode===!0&&v(o)===!1||(c&&c.removeEventListeners(),(c=new m(n)).showModal())},close:function(o){o?c.closeModalByIdOrElement(o):c.closeModal()}});typeof window<"u"&&(window.MicroModal=g);(o=>{o.behaviors.kineticModal={attach:function(n){const e=once("kinetic-modal","[data-micromodal]",n),i=once("kinetic-modal","[data-micromodal] iframe[data-video-id]",n),s=a=>{if("oEmbedIframe"in window){const r=a.querySelector("iframe[data-video-id]")||a;r&&r.dataset.videoId&&r.dataset.videoId in window.oEmbedIframe&&window.oEmbedIframe[r.dataset.videoId].pause()}};i.forEach(a=>{s(a),window.addEventListener("oEmbedIframeReady",()=>{s(a)})}),once("kinetic-modal","[data-micromodal-trigger]",n).forEach(a=>{a.addEventListener("keydown",r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),a.click())})}),e.forEach(a=>{let r=null;document.body.appendChild(a);const{behaviorName:d}=a.dataset;d in o.behaviors&&("options"in o.behaviors[d]?r=g.init(o.behaviors[d].options):console.error("kineticModal: Expected Drupal.behaviors.%s.options, but it's undefined. Please add an options key containing Micromodal options"),typeof o.behaviors[d].init=="function"?o.behaviors[d].init(r,a):console.error("kineticModal: Expected Drupal.behaviors.%s.init, but it's undefined. Please add an init function to your JS file."))}),g.init({disableFocus:!0,onShow:a=>{a.removeAttribute("inert");const r=a.querySelector("header [data-micromodal-close]");r&&(console.log("focusing close button"),r.focus())},onClose:a=>{a.setAttribute("inert",""),s(a)}})}}})(Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.