maverick-wave 5.36.0 → 5.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/maverick-wave.min.css +2 -2
- package/maverick-wave.min.js +1 -1
- package/package.json +2 -2
- package/src/js/main.js +15 -0
- package/src/scss/components/_faq.scss +156 -0
- package/src/scss/components/_index.scss +1 -0
- package/src/scss/components/_occasions.scss +67 -47
package/maverick-wave.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";function e(e,t){e&&(e.classList.toggle("mw-active",t),t||e.classList.remove("active"))}function t(e){return!!e&&(e.classList.contains("mw-active")||e.classList.contains("active"))}const n=new WeakSet;function o(e){return!(!e||n.has(e))&&(n.add(e),!0)}let a=!1;function c(){a||(a=!0,function(){const t=document.querySelector(".mw-theme-toggle");if(!t)return;const n=document.documentElement,o=t.querySelector(".mw-theme-toggle-slider i"),a=getComputedStyle(document.documentElement).getPropertyValue("--mw-internal-theme-mode").trim()||"switchable";if("switchable"!==a)return console.log(`Theme mode fixed to: ${a}. Disabling toggle.`),o&&(o.className="light"===a?"fas fa-sun":"fas fa-moon"),e(t,"light"===a),t.style.opacity="0.4",t.style.pointerEvents="none",t.style.cursor="default",t.setAttribute("aria-disabled","true"),localStorage.removeItem("mw-theme"),void n.classList.remove("mw-theme-light","mw-theme-dark");const c=window.matchMedia("(prefers-color-scheme: light)"),r=window.CSS&&CSS.supports("color","light-dark(#000, #fff)"),i=()=>r&&c.matches,s=localStorage.getItem("mw-theme");let l=s?"light"===s:i();const d=a=>{n.classList.add("mw-theme-switching"),n.classList.toggle("mw-theme-light",a),n.classList.toggle("mw-theme-dark",!a),n.offsetHeight,n.classList.remove("mw-theme-switching"),e(t,a),o&&(o.className=a?"fas fa-sun":"fas fa-moon")};d(l),c.addEventListener("change",()=>{localStorage.getItem("mw-theme")||(l=i(),d(l),w())}),t.addEventListener("click",()=>{l=!l,d(l),localStorage.setItem("mw-theme",l?"light":"dark"),w()})}(),w(),function(){const e=document.querySelector(".mw-menu-btn"),t=document.querySelector(".mw-navbar");if(!e||!t)return;const n="BUTTON"===e.tagName;function o(o){e.classList.toggle("mw-active",o),t.classList.toggle("mw-active",o),document.body.classList.toggle("mw-nav-open",o),n&&e.setAttribute("aria-expanded",String(o))}function a(e){e.preventDefault(),e.stopPropagation(),o(!t.classList.contains("mw-active"))}e.addEventListener("click",a),document.addEventListener("click",function(n){t.classList.contains("mw-active")&&(t.contains(n.target)||e.contains(n.target)||o(!1))}),document.addEventListener("keydown",function(n){"Escape"===n.key&&t.classList.contains("mw-active")&&(o(!1),e.focus())})}(),function(){const e=document.querySelector(".mw-header-reveal");if(!e)return;if(CSS.supports("animation-timeline","scroll()"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const t=document.querySelector(".mw-announcement:not(.mw-announcement-static)"),n=270;let o=null;const a=()=>{const a=window.scrollY<n;a!==o&&(o=a,e.classList.toggle("mw-header-away",a),t&&t.classList.toggle("mw-announcement-away",a))};a(),requestAnimationFrame(()=>{e.classList.add("mw-header-driven"),t&&t.classList.add("mw-announcement-driven")}),window.addEventListener("scroll",a,{passive:!0})}(),function(){if(CSS.supports("animation-timeline","view()"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const e=document.querySelectorAll(".mw-parallax-media");if(!e.length)return;const t=[...e].map(e=>(e.classList.add("mw-parallax-driven"),{el:e,pinned:Boolean(e.closest(".mw-parallax-sticky"))})),n=e=>Math.min(1,Math.max(0,e)),o=(e,t)=>{if(e.pinned)return n(window.scrollY/t);const o=e.el.getBoundingClientRect();return n((t-o.top)/(t+o.height))};let a=!1;const c=()=>{a=!1;const e=document.documentElement.clientHeight,n=t.map(t=>o(t,e));t.forEach((e,t)=>e.el.style.setProperty("--mw-parallax-progress",n[t]))},r=()=>{a||(a=!0,requestAnimationFrame(c))};c(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r,{passive:!0})}(),function(){function e(e){const t=e.style.position,n="sticky"===getComputedStyle(e).position;n&&(e.style.position="static");const o=e.getBoundingClientRect().top+window.scrollY;return n&&(e.style.position=t),o}function t(e){const t=window.scrollY,n=e-t;if(!n)return;const o=Math.min(2e3,600+.5*Math.abs(n)),a={};p=a;let c=null;function r(e){if(p!==a)return;null===c&&(c=e);const i=Math.min(1,(e-c)/o),s=i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2;window.scrollTo({top:t+n*s,behavior:"instant"}),i<1?requestAnimationFrame(r):p=null}requestAnimationFrame(r)}document.querySelectorAll('a[href^="#"]').forEach(n=>{n.addEventListener("click",function(n){const o=this.getAttribute("href");if("#"===o)return;const a=document.querySelector(o);if(!a)return;const c=document.querySelector(".mw-menu-btn"),r=document.querySelector(".mw-navbar");c&&r&&(c.classList.remove("mw-active"),r.classList.remove("mw-active"),document.body.classList.remove("mw-nav-open"),"BUTTON"===c.tagName&&c.setAttribute("aria-expanded","false")),n.preventDefault();const i=Math.max(0,e(a)-h());a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1"),a.focus({preventScroll:!0}),window.matchMedia("(prefers-reduced-motion: reduce)").matches?window.scrollTo({top:i,behavior:"instant"}):t(i),history.replaceState(null,"",o)})})}(),function(){const t=document.querySelectorAll("section[id]"),n=document.querySelectorAll(".mw-navbar-link");if(0===t.length||0===n.length)return;window.addEventListener("scroll",E(function(){let o="";const a=h()+2;t.forEach(e=>{const t=e.offsetTop-a,n=e.clientHeight;scrollY>=t&&scrollY<t+n&&(o=e.getAttribute("id"))}),n.forEach(t=>{e(t,!1);const n=t.getAttribute("href");if(n){const a=n.indexOf("#");if(-1!==a){n.substring(a+1)===o&&e(t,!0)}}})},100),{passive:!0})}(),document.addEventListener("click",e=>{const t=e.target.closest(".mw-modal-close");if(t){const e=t.closest("dialog.mw-modal");if(e)return void e.close();const n=t.closest(".mw-modal-overlay");return void(n&&n.classList.remove("mw-modal-open"))}const n=e.target.closest("[data-mw-modal]");var o;n?x(document.getElementById(n.dataset.mwModal)):e.target.matches("dialog.mw-modal[open]")&&(!("closedBy"in(o=e.target))||null===o.getAttribute("closedby"))&&e.target.close()}),function(){let e=null;document.addEventListener("click",t=>{const n=t.target.closest("a[href]"),o=n&&n.closest(".mw-mosaic, [data-mw-lightbox]");if(!o||!n.querySelector("img")||t.defaultPrevented)return;if(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;t.preventDefault();const a=Array.from(o.querySelectorAll("a[href]")).filter(e=>e.querySelector("img")).map(e=>({a:e,box:e.getBoundingClientRect()})).sort((e,t)=>Math.round(e.box.top-t.box.top)||e.box.left-t.box.left).map(({a:e})=>e);e=e||function(){const e=document.createElement("dialog");e.className="mw-lightbox",e.setAttribute("aria-label","Image viewer");const t=document.createElement("div");t.className="mw-lightbox-bar";const n=d("mw-overlay-btn mw-lightbox-prev","Previous image","prev"),o=d("mw-overlay-btn mw-lightbox-next","Next image","next"),a=d("mw-overlay-btn mw-lightbox-close","Close","close");a.autofocus=!0;const c=document.createElement("span");c.className="mw-lightbox-count",c.setAttribute("aria-live","polite");const r=document.createElement("div");r.className="mw-lightbox-track",t.append(n,c,o,a),e.append(t,r),document.body.appendChild(e);let i=[],s=-1;function l(e){const t=r.children[e]&&r.children[e].querySelector("img");t&&!t.src&&(t.src=t.dataset.src)}const m=u(r,()=>r.clientWidth,n,o,e=>{e!==s&&(s=e,c.textContent=e+1+" / "+i.length,[e-1,e,e+1].forEach(l))});return a.addEventListener("click",()=>e.close()),r.addEventListener("click",t=>{t.target.classList.contains("mw-lightbox-slide")&&e.close()}),e.addEventListener("keydown",e=>{"ArrowLeft"===e.key?n.click():"ArrowRight"===e.key&&o.click()}),e.addEventListener("close",()=>{e.open||i[s]&&i[s].focus()}),{open(t,n){i=t,s=-1,r.replaceChildren(...t.map(f)),e.showModal(),r.scrollTo({left:n*r.clientWidth,behavior:"instant"}),m()}}}(),e.open(a,a.indexOf(n))})}(),function(){function e(e){document.querySelectorAll(".mw-dropdown[open]").forEach(t=>{t!==e&&t.removeAttribute("open")})}document.addEventListener("click",function(t){const n=t.target.closest(".mw-dropdown");e(n),n&&t.target.closest(".mw-dropdown-item")&&n.removeAttribute("open")}),document.addEventListener("keydown",function(e){if("Escape"!==e.key)return;const t=document.querySelector(".mw-dropdown[open]");if(!t)return;t.removeAttribute("open");const n=t.querySelector("summary");n&&n.focus()})}(),document.addEventListener("click",e=>{const t=e.target.closest(".mw-tags-remove");if(!t)return;const n=t.closest(".mw-tags-item");n&&n.remove()}),document.addEventListener("click",e=>{const t=e.target.closest("[data-mw-copy]");if(!t||!navigator.clipboard)return;const n=t.getAttribute("data-mw-copy"),o=t.closest(".mw-input-group")?.querySelector("input"),a=n||o?.value;a&&navigator.clipboard.writeText(a).then(()=>{t.dispatchEvent(new CustomEvent("mwCopied",{bubbles:!0,detail:{text:a}}))})}),function(){const e=document.querySelector(".mw-localhost-indicator-activated"),t=document.querySelector(".mw-header");if(e&&k()){const e=document.createElement("div");e.className="mw-localhost-indicator-pulse",t.prepend(e)}}(),function(){const e=["snow","christmas","newyear","spring","easter","summer","autumn","football","birthday","anniversary"],t=document.documentElement,n=new URLSearchParams(location.search),o=n.get("mw-occasion");e.includes(o)&&!t.classList.contains("mw-occasion-"+o)&&(e.forEach(e=>t.classList.remove("mw-occasion-"+e)),t.classList.add("mw-occasion-"+o),t.classList.toggle("mw-occasion-scroll",n.has("mw-occasion-scroll")),t.classList.toggle("mw-occasion-sm","sm"===n.get("mw-occasion-size")),t.classList.toggle("mw-occasion-lg","lg"===n.get("mw-occasion-size")),n.has("mw-occasion-intro")&&t.setAttribute("data-mw-occasion-intro","preview"));const a=e.find(e=>t.classList.contains("mw-occasion-"+e));if(!a)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;t.classList.contains("mw-occasion-scroll")&&function(e){if(!window.ScrollTimeline)return;const t=document.createElement("div");t.className="mw-occasion-drift",t.setAttribute("aria-hidden","true"),"summer"===e?function(e){const t=Math.round(5*Math.min(1.4,M()));for(let n=0;n<t;n++)q(e,"beam","beaming",{"--mw-occasion-size":L(9,16).toFixed(1)+"vw","--mw-occasion-angle":(24+54*n/Math.max(1,t-1)+L(-3,3)).toFixed(1)+"deg","--mw-occasion-lap":String(n%2)})}(t):function(e,t){const n={snow:["flake","flake","crystal"],christmas:["flake","flake","star"],newyear:["glint"],spring:["petal"],easter:["petal"],autumn:["maple","oak","birch"],football:["strip"],birthday:["confetti"],anniversary:["confetti","glint"]}[t],o={flake:[9,16],crystal:[16,22],star:[14,20],glint:[16,24],petal:[18,26],maple:[28,40],oak:[28,40],birch:[24,34],strip:[12,18],confetti:[11,17]},a=Math.min(1.15,Math.max(.85,window.innerWidth/1280)),c=Math.round((window.innerWidth<768?11:18)*M());for(let t=0;t<c;t++){const r=n[t%n.length],i=["maple","oak","birch","petal"].includes(r);q(e,r,"falling",{"--mw-occasion-x":((t+L(.1,.9))*(100/c)).toFixed(1)+"vw","--mw-occasion-size":(L(o[r][0],o[r][1])*a).toFixed(1)+"px","--mw-occasion-start":(37*t%100*.3).toFixed(1)+"%","--mw-occasion-lap":String(t%3),"--mw-occasion-drift":L(-6,6).toFixed(1)+"vw","--mw-occasion-sway":L(8,24).toFixed(0)+"px","--mw-occasion-spin":A(.5,2).toFixed(2)+"turn","--mw-occasion-axis":C(i?"soft":["confetti","strip"].includes(r))})}}(t,e);function n(){const e=document.documentElement.scrollHeight-innerHeight;t.style.setProperty("--mw-occasion-laps",String(Math.max(1,Math.round(e/(1.2*innerHeight)))))}document.body.appendChild(t),n(),window.addEventListener("load",n),window.addEventListener("resize",E(n,200),{passive:!0})}(a);const c=t.getAttribute("data-mw-occasion-intro"),r=navigator.connection&&navigator.connection.saveData;null===c||r||"preview"!==c&&function(e){try{if(sessionStorage.getItem("mw-occasion-intro")===e)return!0;sessionStorage.setItem("mw-occasion-intro",e)}catch{}return!1}(a)||function(e){function t(){if(!document.hidden)return e();document.addEventListener("visibilitychange",function t(){document.hidden||(document.removeEventListener("visibilitychange",t),e())})}"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0})}(()=>function(e){const t=document.createElement("div");t.className="mw-occasion-intro mw-occasion-intro-"+e,t.setAttribute("aria-hidden","true");const n=function(){const e=window.innerWidth*window.innerHeight/1296e3,t=(navigator.hardwareConcurrency||8)<=4||(navigator.deviceMemory||8)<=4;return Math.min(1,Math.max(.4,e))*(t?.5:1)*M()}();(function(){const e={size:[18,28],drift:[12,40],time:[3,4.2],spread:1.4,spin:1.2,flip:"soft"};return{snow:(e,t)=>D(e,t(70),["flake","flake","flake","crystal"],{size:[6,17],drift:[-4,6],time:[4.2,6.2],spread:2.4,spin:.5}),christmas:(e,t)=>{e.insertAdjacentHTML("beforeend",'<svg class="mw-occasion-tree" viewBox="0 0 120 150"><defs><linearGradient id="mw-tree-fir" x1="0" x2="1"><stop offset="0" stop-color="#2a7a45"/><stop offset=".55" stop-color="#17532d"/><stop offset="1" stop-color="#0d3a1e"/></linearGradient><radialGradient id="mw-tree-light"><stop offset="0" stop-color="#fffbe6"/><stop offset=".35" stop-color="#ffe08a"/><stop offset="1" stop-color="#ffd166" stop-opacity="0"/></radialGradient><radialGradient id="mw-tree-glow"><stop offset="0" stop-color="#fff3b0" stop-opacity=".9"/><stop offset="1" stop-color="#ffd166" stop-opacity="0"/></radialGradient><linearGradient id="mw-tree-gold" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff4c2"/><stop offset=".5" stop-color="#f1c84b"/><stop offset="1" stop-color="#b8860b"/></linearGradient></defs><rect x="53" y="108" width="14" height="18" rx="2" fill="#6b4226"/><g fill="url(#mw-tree-fir)"><path d="M60 56C70 76 86 94 106 112C84 106 36 106 14 112C34 94 50 76 60 56Z"/><path d="M60 32C68 48 80 64 96 80C80 76 40 76 24 80C40 64 52 48 60 32Z"/><path d="M60 12C66 24 74 36 86 50C76 47 44 47 34 50C46 36 54 24 60 12Z"/></g><g fill="none" stroke="#e9c46a" stroke-width="1.4" stroke-opacity=".85"><path d="M40 44Q62 54 80 42"/><path d="M30 70Q60 86 88 66"/><path d="M22 100Q62 118 100 94"/></g><circle cx="54" cy="38" r="3.4" fill="#d62839"/><circle cx="68" cy="39" r="3" fill="#e9b949"/><circle cx="46" cy="62" r="3.4" fill="#e9b949"/><circle cx="74" cy="62" r="3.4" fill="#d62839"/><circle cx="60" cy="66" r="3" fill="#cfd6de"/><circle cx="40" cy="94" r="3.6" fill="#d62839"/><circle cx="62" cy="95" r="3.6" fill="#e9b949"/><circle cx="84" cy="92" r="3.4" fill="#cfd6de"/><g>'+[[46.5,46.5],[61,48.5],[74.5,45.1],[39,74],[53.7,77],[68.2,75.6],[81.3,70.3],[31.6,103.7],[49.8,107.5],[69.3,106.5],[88.6,100.3]].map(([e,t])=>`<g class="mw-occasion-tree-light"><circle cx="${e}" cy="${t}" r="4.6" fill="url(#mw-tree-light)"/><circle cx="${e}" cy="${t}" r="1.4" fill="#fffbe6"/></g>`).join("")+'</g><circle class="mw-occasion-tree-glow" cx="60" cy="12" r="18" fill="url(#mw-tree-glow)"/><path class="mw-occasion-tree-star" fill="url(#mw-tree-gold)" d="M60 3L62.23 8.93L68.56 9.22L63.61 13.17L65.29 19.28L60 15.8L54.71 19.28L56.39 13.17L51.44 9.22L57.77 8.93Z"/></svg>'),D(e,t(34),["flake","flake","star"],{size:[6,16],drift:[-4,6],time:[4.4,6.4],spread:2.4,spin:.6})},newyear:(e,t)=>function(e,t,n){const o=["#ffd166","#fff1c1","#ff6b6b","#4cc9f0","#c4a7ff"];for(let a=0;a<t;a++){const t=L(14,86).toFixed(1)+"vw",c=L(14,46).toFixed(1)+"vh",r=.55*a+L(0,.2),i=(r+.65).toFixed(2)+"s";q(e,"trail","launching",{"--mw-occasion-x":t,"--mw-occasion-y":c,"--mw-occasion-size":"6px","--mw-occasion-delay":r.toFixed(2)+"s"}),q(e,"flash","flashing",{"--mw-occasion-x":t,"--mw-occasion-y":c,"--mw-occasion-size":"26vmin","--mw-occasion-delay":i});for(let r=0;r<n;r++){const s=r%3==0,l=360/n*r+L(-5,5),d=s?L(6,10):L(14,22),m=l*Math.PI/180;q(e,"spark","exploding",{"--mw-occasion-x":t,"--mw-occasion-y":c,"--mw-occasion-dx":(Math.cos(m)*d).toFixed(2)+"vmin","--mw-occasion-dy":(Math.sin(m)*d).toFixed(2)+"vmin","--mw-occasion-angle":(l+90).toFixed(0)+"deg","--mw-occasion-size":s?"12px":"20px","--mw-occasion-tint":o[a%o.length],"--mw-occasion-time":L(1.3,1.8).toFixed(2)+"s","--mw-occasion-delay":i})}}}(e,Math.min(6,Math.max(3,t(5))),Math.max(18,t(36))),spring:(t,n)=>D(t,n(44),["petal"],e),easter:(t,n)=>D(t,n(44),["petal"],e),summer:(e,t)=>{const n=document.createElement("div");n.className="mw-occasion-sun",e.appendChild(n),function(e,t){for(let n=0;n<t;n++)q(e,"glint","twinkling",{"--mw-occasion-x":L(35,96).toFixed(1)+"vw","--mw-occasion-y":L(4,62).toFixed(1)+"vh","--mw-occasion-size":L(14,30).toFixed(1)+"px","--mw-occasion-time":L(1.2,2.2).toFixed(2)+"s","--mw-occasion-delay":L(.4,2.8).toFixed(2)+"s","--mw-occasion-spin":A(.1,.25).toFixed(2)+"turn"})}(e,t(18))},autumn:(e,t)=>D(e,t(32),["maple","oak","birch"],{size:[30,46],drift:[-8,22],time:[3,4.2],spread:1.4,spin:1.5,flip:"soft"}),football:(e,t)=>{F(e,t(80),["strip"],{size:[12,20],spin:5,flip:!0}),F(e,3,["ball"],{size:[34,46],spin:3})},birthday:(e,t)=>{F(e,t(90),["confetti"],{size:[10,15],spin:5,flip:!0}),D(e,Math.max(4,t(8)),["balloon"],{size:[44,62],drift:[-6,6],time:[3.8,4.8],spread:.8,rising:!0})},anniversary:(e,t)=>F(e,t(90),["confetti","confetti","glint"],{size:[10,16],spin:5,flip:!0})}})()[e](t,e=>Math.max(1,Math.round(e*n))),document.body.appendChild(t);const o=["pointerdown","keydown","wheel","touchmove"];function a(){t.remove(),o.forEach(e=>window.removeEventListener(e,c))}function c(){t.classList.add("mw-occasion-leaving"),setTimeout(a,350)}o.forEach(e=>window.addEventListener(e,c,{once:!0,passive:!0})),t.addEventListener("animationend",e=>{e.target===t&&a()})}(a))}(),function(){if(!k())return;const e=document.querySelector('meta[name="viewport"]'),t=e&&e.getAttribute("content")||"";if(/viewport-fit\s*=\s*cover/.test(t))return;console.warn('MaverickWave: <meta name="viewport"> is missing viewport-fit=cover. env(safe-area-inset-*) resolves to 0 without it, so notched phones lose the gutter, the nav panel and the modal padding that expect it.')}())}function r(n){const a=n||document;!function(e){e.querySelectorAll(".mw-gallery").forEach(e=>{if(!o(e))return;const t=e.closest(".mw-gallery-container")||e.parentElement;t&&function(e,t){const n=t.querySelector(".mw-gallery-track");if(!n||!n.children.length)return;const o=n.children,a=e.querySelector(".mw-gallery-dots"),c=e.querySelector(".mw-gallery-desc"),r=t.querySelector(".mw-gallery-navi-prev"),i=t.querySelector(".mw-gallery-navi-next");let s=0;function l(e){const t=o.length;s=(e+t)%t,n.style.transform=`translateX(-${100*s}%)`,a&&a.querySelectorAll(".mw-gallery-dot").forEach((e,t)=>{e.classList.toggle("mw-active",t===s)}),c&&(c.textContent=o[s].dataset.desc||"")}if(a)for(let e=0;e<o.length;e++){const t=document.createElement("button");t.type="button",t.className="mw-gallery-dot"+(0===e?" mw-active":""),t.setAttribute("aria-label","Go to slide "+(e+1)),t.addEventListener("click",()=>l(e)),a.appendChild(t)}r&&r.addEventListener("click",()=>l(s-1));i&&i.addEventListener("click",()=>l(s+1));let d=0,m=0,u=!1;n.addEventListener("touchstart",e=>{u=1===e.touches.length,u&&(d=e.touches[0].clientX,m=e.touches[0].clientY)},{passive:!0}),n.addEventListener("touchcancel",()=>u=!1),n.addEventListener("touchend",e=>{if(!u)return;u=!1;const t=e.changedTouches[0].clientX-d,n=e.changedTouches[0].clientY-m;Math.abs(t)<50||Math.abs(t)<=Math.abs(n)||l(s+(t<0?1:-1))},{passive:!0}),l(0)}(t,e)})}(a),function(e){e.querySelectorAll(".mw-portrait-gallery").forEach(e=>{o(e)&&function(e){const t=e.querySelector(".mw-portrait-gallery-track");if(!t)return;const n=Array.from(t.children);if(n.forEach(e=>{const t=e.querySelector(":scope > img, :scope > video");t&&function(e,t){if(e.classList.contains("mw-fit-cover"))return;const n="VIDEO"===t.tagName,o=e.classList.contains("mw-fit-contain");function a(){if(!o){const n=m(t);if(!n||!e.clientHeight)return;const o=n/(e.clientWidth/e.clientHeight);e.classList.toggle("mw-fit-contain",Math.max(o,1/o)>=1.4)}const a=n?t.poster:t.currentSrc||t.src;if(e.classList.contains("mw-fit-contain")&&a&&!e.querySelector(":scope > .mw-fit-backdrop")){const t=document.createElement("img");t.className="mw-fit-backdrop",t.alt="",t.src=a,e.prepend(t)}}new ResizeObserver(a).observe(e),t.addEventListener(n?"loadedmetadata":"load",a)}(e,t)}),n.length<2)return;const o=d("mw-overlay-btn mw-portrait-gallery-prev","Previous image","prev"),a=d("mw-overlay-btn mw-portrait-gallery-next","Next image","next"),c=document.createElement("div");c.className="mw-portrait-gallery-dots";const r=()=>n[1].offsetLeft-n[0].offsetLeft;n.forEach((e,n)=>{const o=document.createElement("button");o.type="button",o.className="mw-portrait-gallery-dot",o.setAttribute("aria-label","Go to image "+(n+1)),o.addEventListener("click",()=>t.scrollTo({left:n*r()})),c.appendChild(o)}),e.append(o,a,c),u(t,r,o,a,e=>{Array.from(c.children).forEach((t,n)=>{t.classList.toggle("mw-active",n===e)})})()}(e)})}(a),function(e){e.querySelectorAll(".mw-mosaic-item").forEach(e=>{if(!o(e))return;const t=e.querySelector("img"),n=["mw-mosaic-wide","mw-mosaic-tall","mw-mosaic-big"].some(t=>e.classList.contains(t));function a(){const n=m(t);return n>=1.3?e.classList.add("mw-mosaic-wide"):n&&n<=.8&&e.classList.add("mw-mosaic-tall"),n>0}t&&!n&&(a()||t.addEventListener("load",a,{once:!0}))})}(a),function(e){e.querySelectorAll(".mw-story-reel").forEach(e=>{o(e)&&function(e){const t=Array.from(e.querySelectorAll(":scope > img, :scope > video")),n=d("mw-story-reel-prev","Previous","prev"),o=d("mw-story-reel-next","Next","next"),a=e.querySelector(".mw-story-reel-pause input"),c=e.querySelector('[popovertargetaction="hide"]');c&&(c.autofocus=!0);e.append(n,o);const r=()=>e.getAnimations({subtree:!0}).filter(e=>e instanceof CSSAnimation);function i(){const e=r().find(e=>"mw-story-reel-fill"===e.animationName);if(!e)return null;const n=t.filter(e=>"none"!==getComputedStyle(e).display).length,o=e.effect.getTiming().duration/n;return{count:n,length:o,index:Math.floor(e.currentTime/o)}}function s(e){t.forEach(t=>{"VIDEO"===t.tagName&&t!==e&&t.pause()}),e&&"VIDEO"===e.tagName&&(e.currentTime=0,a&&a.checked||e.play().catch(()=>{}))}function l(n){const o=i();if(!o)return;const a=Math.max(o.index+n,0);if(a>=o.count)return void e.hidePopover();const c=a*o.length+20;r().forEach(e=>e.currentTime=c),s(t[a])}function m(n){const o=e.matches(":popover-open")&&i(),c=o&&t[o.index];c&&"VIDEO"===c.tagName&&(n||a&&a.checked?c.pause():c.play().catch(()=>{}))}let u=0;function f(e){return t=>{t.detail&&t.timeStamp-u>250||l(e)}}e.addEventListener("pointerdown",e=>{u=e.timeStamp,m(!0)}),["pointerup","pointercancel"].forEach(t=>{e.addEventListener(t,()=>m(!1))}),n.addEventListener("click",f(-1)),o.addEventListener("click",f(1)),e.addEventListener("animationend",n=>{if("mw-story-reel-fill"===n.animationName)e.hidePopover();else if("mw-story-reel-frame"===n.animationName){const e=i();e&&t[e.index]===n.target&&s(n.target)}}),e.addEventListener("toggle",e=>{s("open"===e.newState?t[0]:null)}),a&&a.addEventListener("change",()=>m(!1));e.addEventListener("keydown",e=>{"ArrowLeft"===e.key?l(-1):"ArrowRight"===e.key&&l(1)})}(e)})}(a),function(t){t.querySelectorAll(".mw-deck").forEach(t=>{if(o(t))try{!function(t){const n=t.querySelector(".mw-deck-slides");if(!n)return;const o=Array.from(n.children).filter(e=>e.classList.contains("mw-slide"));if(!o.length)return;const a=!t.classList.contains("mw-deck-portrait"),c=t===document.body,r=t.querySelector(".mw-deck-counter"),i=t.querySelector(".mw-deck-segments"),s=e=>String(e).padStart(2,"0"),l=Number.parseInt(location.hash.slice(1),10)-1,d=c&&l>0&&l<o.length?l:0;let m=d,u=-1,f=!1;i&&i.replaceChildren(...o.map(()=>document.createElement("span")));function w(n){if(!(n<0||n>=o.length)&&(m=n,n!==u)){if(u=n,o.forEach((t,o)=>e(t,o===n)),r){const e=document.createElement("span");e.className="mw-deck-counter-current",e.textContent=s(n+1),r.replaceChildren(e," / "+s(o.length))}if(t.style.setProperty("--mw-deck-progress",String((n+1)/o.length)),i&&Array.from(i.children).forEach((e,t)=>e.classList.toggle("mw-done",t<=n)),c)try{history.replaceState(history.state,"","#"+(n+1))}catch{}}}const h=e=>a?e.offsetLeft:e.offsetTop;function p(e,t=!0){const c=o[Math.max(0,Math.min(o.length-1,e))],r=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;n.scrollTo({left:a?c.offsetLeft:0,top:a?0:c.offsetTop,behavior:t&&!r?"smooth":"auto"})}function g(){const e=a?n.scrollLeft:n.scrollTop;let t=0;return o.forEach((n,a)=>{Math.abs(h(n)-e)<Math.abs(h(o[t])-e)&&(t=a)}),t}let y=!1;n.addEventListener("scroll",()=>{f&&!y&&(y=!0,requestAnimationFrame(()=>{y=!1,w(g())}))},{passive:!0});const v=()=>document.fullscreenElement||document.webkitFullscreenElement,b=document.fullscreenEnabled||document.webkitFullscreenEnabled,E=c?document.documentElement:t;function k(){if(b)try{const e=v()?(document.exitFullscreen||document.webkitExitFullscreen).call(document):(E.requestFullscreen||E.webkitRequestFullscreen).call(E);e&&e.catch&&e.catch(()=>{})}catch{}}b||t.querySelectorAll("[data-deck-fullscreen]").forEach(e=>{e.hidden=!0});const x=()=>p(m,!1);if(["fullscreenchange","webkitfullscreenchange"].forEach(e=>{document.addEventListener(e,()=>{t.classList.toggle("mw-deck-fullscreen",Boolean(v())),x()})}),window.addEventListener("resize",x),t.addEventListener("click",e=>{if(!(e.target instanceof Element))return;const t=e.target.closest("[data-deck-goto], [data-deck-next], [data-deck-prev], [data-deck-fullscreen]");if(t)if(t.hasAttribute("data-deck-goto")){const e=o.findIndex(e=>e.id===t.dataset.deckGoto);e>=0&&p(e)}else t.hasAttribute("data-deck-next")?p(m+1):t.hasAttribute("data-deck-prev")?p(m-1):k()}),(c?document:t).addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing)return;if(e.metaKey||e.ctrlKey||e.altKey)return;const t=e.target instanceof Element?e.target:document.body;if(t.closest("input, textarea, select, [contenteditable]"))return;if(" "===e.key&&t.closest("button, a, summary")&&t.matches(":focus-visible"))return;const n={ArrowRight:1,ArrowDown:1,PageDown:1," ":e.shiftKey?-1:1,ArrowLeft:-1,ArrowUp:-1,PageUp:-1};if(e.key in n)p(m+n[e.key]);else if("Home"===e.key)p(0);else if("End"===e.key)p(o.length-1);else{if("f"!==e.key&&"F"!==e.key)return;k()}e.preventDefault()}),c&&window.self===window.top){let e=!1;document.addEventListener("wheel",t=>{t.ctrlKey||!a&&n.contains(t.target)||Math.abs(t.deltaX)>Math.abs(t.deltaY)||(t.preventDefault(),e||Math.abs(t.deltaY)<8||(e=!0,p(m+Math.sign(t.deltaY)),setTimeout(()=>e=!1,700)))},{passive:!1})}t.classList.add("mw-deck-ready"),p(d,!1),requestAnimationFrame(()=>requestAnimationFrame(()=>{f=!0,w(d)}))}(t)}catch(e){console.error("MaverickWave: deck not initialised",e)}})}(a),function(n){const a=n.querySelectorAll(".mw-accordion-header");a.forEach(n=>{if(!o(n))return;const a="BUTTON"===n.tagName;a&&n.setAttribute("aria-expanded",String(t(n))),n.addEventListener("click",function(){const n=!t(this);e(this,n),e(this.nextElementSibling,n),a&&this.setAttribute("aria-expanded",String(n))})})}(a),function(e){const t=Array.from(e.querySelectorAll(".mw-progress-fill")).filter(o);if(!t.length)return;const n=CSS.supports("animation-timeline","view()"),a=e=>e.dataset.value?e.dataset.value+"%":e.style.width,c=[];if(t.forEach(e=>{const t=a(e);t&&(e.style.setProperty("--mw-progress-value",t),n?e.classList.add("mw-progress-driven"):c.push(e))}),n)return;const r=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(e.target.style.width=a(e.target),t.unobserve(e.target))})},{root:null,threshold:.2});c.forEach(e=>r.observe(e))}(a),function(e){if(CSS.supports("animation-timeline","view()"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const t=Array.from(e.querySelectorAll(".mw-reveal, .mw-reveal-stagger > *")).filter(o);if(!t.length)return;const n=e=>{const t=e.parentElement;if(!t||!t.classList.contains("mw-reveal-stagger"))return 0;const n=getComputedStyle(t).gridTemplateColumns.split(" ").length;return[...t.children].indexOf(e)%n*90},a=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(t.unobserve(e.target),e.target.style.animationDelay=n(e.target)+"ms",e.target.classList.replace("mw-reveal-hidden","mw-reveal-run"))})},{threshold:.15});t.forEach(e=>{e.getBoundingClientRect().top<window.innerHeight||(e.classList.add("mw-reveal-hidden"),a.observe(e))})}(a),function(e){e.querySelectorAll(".mw-tabs-nav").forEach(e=>{if(!o(e))return;const t=Array.from(e.querySelectorAll(".mw-tabs-nav-item"));if(!t.length)return;const n=!!e.closest(".mw-tabs-vertical");e.setAttribute("role","tablist"),n&&e.setAttribute("aria-orientation","vertical"),t.forEach((e,o)=>{const a=y(e);e.setAttribute("role","tab"),e.id||(e.id=(a?a.id:"mw-tab-"+o)+"-tab"),a&&(e.setAttribute("aria-controls",a.id),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",e.id)),v(e),e.addEventListener("click",()=>b(t,e)),e.addEventListener("keydown",e=>{const a=function(e,t,n,o){const a=t?"ArrowUp":"ArrowLeft",c=t?"ArrowDown":"ArrowRight";return e.key===a?(o-1+n)%n:e.key===c?(o+1)%n:"Home"===e.key?0:"End"===e.key?n-1:null}(e,n,t.length,o);null!==a&&(e.preventDefault(),b(t,t[a]),t[a].focus())})}),g(e);const a=new ResizeObserver(()=>g(e));a.observe(e),t.forEach(e=>a.observe(e))})}(a),function(e){const t=e.querySelectorAll(".mw-alert-close");t.forEach(e=>{o(e)&&e.addEventListener("click",function(){const e=this.closest(".mw-alert");e&&(e.classList.add("mw-alert-closing"),setTimeout(()=>{e.classList.add("mw-alert-closed")},300))})})}(a),function(e){e.querySelectorAll(".mw-slider-container").forEach(e=>{if(!o(e))return;const t=e.querySelector(".mw-slider"),n=e.querySelector(".mw-slider-value");if(!t||!n)return;const a=()=>{const e=Number(t.value),o=Number(t.max)||100,a=Math.round(e/o*100);t.style.setProperty("--value",a+"%"),n.classList.contains("mw-slider-numeric")?n.setAttribute("data-value",e):n.setAttribute("data-value",a)};t.addEventListener("input",a),a()})}(a),function(t){const n=t.querySelectorAll(".mw-image-slider");n.forEach(t=>{if(!o(t))return;const n=t.querySelectorAll(".mw-image-slider-overlay-image"),a=t.querySelectorAll("button[data-index]");if(!n.length||!a.length)return;let c=0;function r(){n.forEach(t=>{e(t,parseInt(t.dataset.index)===c)}),a.forEach(t=>{e(t,parseInt(t.dataset.index)===c)})}function i(e){c=e,r()}a.forEach(e=>{e.addEventListener("click",()=>{i(parseInt(e.dataset.index))})}),r()})}(a),function(e){const t=e.querySelectorAll(".mw-item-list-checkbox, .mw-item-list-checkbox-scroll");t.forEach(e=>{if(!o(e))return;e.querySelectorAll("li").forEach(e=>{const t=e.querySelector('input[type="checkbox"]'),n=e.querySelector(".mw-checkbox");t&&n&&(t.checked&&e.classList.add("mw-selected"),e.addEventListener("click",function(e){e.target!==t&&e.target.closest(".mw-checkbox")!==n&&s(this)}),t.addEventListener("change",function(){const e=this.closest("li");this.checked?e.classList.add("mw-selected"):e.classList.remove("mw-selected"),e.dispatchEvent(new CustomEvent("checkboxToggle",{detail:{checked:this.checked,item:e}}))}),n.addEventListener("click",function(e){setTimeout(()=>{const e=this.closest("li");this.querySelector('input[type="checkbox"]').checked?e.classList.add("mw-selected"):e.classList.remove("mw-selected")},0)}))})})}(a),function(e){e.querySelectorAll(".mw-kanban").forEach(e=>{o(e)&&function(e){const t=Array.from(e.querySelectorAll(".mw-kanban-column")),n=e.querySelector(".mw-kanban-composer"),o=e.querySelector(".mw-kanban-card-template"),a=e.dataset.kanbanPrefix||"MW",c=n.querySelector(".mw-kanban-composer-title"),r=n.querySelector(".mw-kanban-composer-text"),i=n.querySelector(".mw-kanban-composer-priority"),s=n.querySelector(".mw-kanban-composer-assignee");let l=null;function d(){t.forEach(function(e,n){const o=e.querySelectorAll(".mw-kanban-card"),a=e.querySelector(".mw-kanban-count");a&&(a.textContent=o.length),e.querySelectorAll("[data-kanban-move]").forEach(function(e){const o=n+parseInt(e.dataset.kanbanMove,10);e.disabled=o<0||o>=t.length})})}function m(){const t=Array.from(e.querySelectorAll(".mw-kanban-card-id")).map(function(e){return parseInt(e.textContent.split("-").pop(),10)||0});return a+"-"+(Math.max(0,...t)+1)}function u(e){const t=e.querySelector(".mw-card-ribbon");if(!t)return"";const n=Array.from(t.classList).find(function(e){return 0===e.indexOf("mw-card-addon-")});return n?n.replace("mw-card-addon-",""):""}function f(e,t){const n=e.querySelector(".mw-card-ribbon");if(n&&n.remove(),!t||!t.value)return;const o=document.createElement("div");o.className="mw-card-ribbon mw-card-addon-"+t.value,o.textContent=t.textContent,e.prepend(o)}function w(e){const t=e.querySelector(".mw-avatar-initials");return t?t.textContent.trim():""}function h(e,t){const n=e.querySelector(t);return n?n.textContent.replace(/\s+/g," ").trim():""}function p(e,t){const n=e.querySelector(".mw-kanban-card-actions"),o=n.querySelector(".mw-avatar");if(!t)return void(o&&o.remove());const a=o||document.createElement("div");a.className="mw-avatar mw-avatar-xs mw-avatar-initials",a.textContent=t,o||n.prepend(a)}function g(e,t){y(),l=t||null,c.value=t?h(t,".mw-kanban-card-title"):"",r.value=t?h(t,".mw-kanban-card-text"):"",i.value=t?u(t):"",s.value=t?w(t):"",t?(t.classList.add("mw-kanban-editing"),t.before(n)):e.querySelector(".mw-kanban-column-body").prepend(n),n.classList.add("mw-active"),c.focus()}function y(){n.classList.remove("mw-active"),l&&l.classList.remove("mw-kanban-editing"),l=null}function v(){const e=c.value.trim();if(!e)return void c.focus();const t=l||o.content.firstElementChild.cloneNode(!0);if(t.querySelector(".mw-kanban-card-title").textContent=e,t.querySelector(".mw-kanban-card-text").textContent=r.value.trim(),f(t,i.selectedOptions[0]),p(t,s.value),!l){const e=m();t.classList.add("mw-kanban-card-in"),t.querySelector(".mw-kanban-card-id").textContent=e,t.querySelectorAll("[aria-label]").forEach(function(t){t.setAttribute("aria-label",t.getAttribute("aria-label").replace(/[A-Z]+-\d+/,e))}),n.before(t)}y(),d()}const b=["mw-kanban-card-moved-forward","mw-kanban-card-moved-back"];function E(e,n){const o=e.closest(".mw-kanban-column"),a=t[t.indexOf(o)+n];a&&(a.querySelector(".mw-kanban-column-body").appendChild(e),e.classList.remove.apply(e.classList,b),e.offsetWidth,e.classList.add(n>0?b[0]:b[1]),d())}e.addEventListener("click",function(e){const t=e.target.closest("[data-kanban-move]");if(t){if(E(t.closest(".mw-kanban-card"),parseInt(t.dataset.kanbanMove,10)),t.disabled){const e=t.parentElement.querySelector("[data-kanban-move]:not(:disabled)");e&&e.focus()}return}const n=e.target.closest(".mw-kanban-edit");if(n){const e=n.closest(".mw-kanban-card");return void g(e.closest(".mw-kanban-column"),e)}const o=e.target.closest(".mw-kanban-delete");if(o){const e=o.closest(".mw-kanban-card");return e===l&&y(),e.remove(),void d()}const a=e.target.closest(".mw-kanban-add");a?g(a.closest(".mw-kanban-column"),null):e.target.closest(".mw-kanban-composer-cancel")&&y()}),n.addEventListener("submit",function(e){e.preventDefault(),v()}),n.addEventListener("keydown",function(e){"Escape"===e.key&&y()}),d()}(e)})}(a),function(e){e.querySelectorAll("[data-calendar]").forEach(e=>{o(e)&&function(e){const t=e.querySelector(".mw-calendar-grid"),n=e.querySelector(".mw-calendar-title");if(!t)return;const o="week"===e.dataset.calendar,a=function(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}(e.dataset.calendarMarkers),c=e.dataset.calendarLocale||document.documentElement.lang||void 0,r=new Date;r.setHours(0,0,0,0);let i=e.dataset.calendarDate?new Date(e.dataset.calendarDate+"T00:00:00"):new Date(r),s=e.dataset.calendarSelected||"";function l(e){const t=new Date(e);return t.setDate(t.getDate()-(t.getDay()+6)%7),t}function d(e){return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")}function m(e){const t=l(e);t.setDate(t.getDate()+3);const n=l(new Date(t.getFullYear(),0,4));return n.setDate(n.getDate()+3),1+Math.round((t-n)/6048e5)}function u(){if(!o)return i.toLocaleDateString(c,{month:"long",year:"numeric"});const e=l(i),t=new Date(e);t.setDate(t.getDate()+6);const n=e.toLocaleDateString(c,{day:"numeric",month:e.getMonth()===t.getMonth()?void 0:"short"}),a=t.toLocaleDateString(c,{day:"numeric",month:"short",year:"numeric"});return"Week "+m(e)+" · "+n+" - "+a}function f(e){const t=e.getDay();return 0===t||6===t}function w(){const e=l(new Date);for(let n=0;n<7;n++){const n=document.createElement("div");n.className="mw-calendar-weekday",f(e)&&n.classList.add("mw-calendar-weekend"),n.setAttribute("aria-hidden","true"),n.textContent=e.toLocaleDateString(c,{weekday:"short"}),t.appendChild(n),e.setDate(e.getDate()+1)}}function h(e,t){const n=d(e),i=document.createElement("button");i.type="button",i.className="mw-calendar-day",i.tabIndex=-1,i.dataset.calendarDay=n,i.setAttribute("aria-pressed",n===s?"true":"false"),i.setAttribute("aria-label",e.toLocaleDateString(c,{weekday:"long",day:"numeric",month:"long",year:"numeric"})),f(e)&&i.classList.add("mw-calendar-weekend"),o||e.getMonth()===t||i.classList.add("mw-calendar-adjacent"),n===d(r)&&(i.classList.add("mw-calendar-today"),i.setAttribute("aria-current","date")),n===s&&i.classList.add("mw-selected");const l=document.createElement("span");l.className="mw-calendar-date",l.textContent=e.getDate(),i.appendChild(l);const m=[].concat(a[n]||[]);if(m.length){const e=document.createElement("span");e.className="mw-calendar-dots",m.forEach(function(t){const n=document.createElement("span");n.className=t?"mw-calendar-dot mw-calendar-dot-"+t:"mw-calendar-dot",e.appendChild(n)}),i.appendChild(e)}return i}function p(){const e=i.getMonth(),a=o?7:42,c=l(o?i:new Date(i.getFullYear(),e,1));t.innerHTML="",w();for(let n=0;n<a;n++)t.appendChild(h(c,e)),c.setDate(c.getDate()+1);n&&(n.textContent=u()),g()}function g(){const e=t.querySelector(".mw-selected")||t.querySelector(".mw-calendar-today")||t.querySelector(".mw-calendar-day:not(.mw-calendar-adjacent)")||t.querySelector(".mw-calendar-day");e&&(e.tabIndex=0)}function y(n){s=n===s?"":n,t.querySelectorAll(".mw-calendar-day").forEach(function(e){const t=e.dataset.calendarDay===s;e.classList.toggle("mw-selected",t),e.setAttribute("aria-pressed",t?"true":"false")}),e.dispatchEvent(new CustomEvent("mw-calendar-select",{bubbles:!0,detail:{date:s}}))}function v(e){o?i.setDate(i.getDate()+7*e):i=new Date(i.getFullYear(),i.getMonth()+e,1),p()}function b(e){const n=d(e);let o=t.querySelector('[data-calendar-day="'+n+'"]');o||(i=new Date(e),p(),o=t.querySelector('[data-calendar-day="'+n+'"]')),o&&(t.querySelectorAll(".mw-calendar-day").forEach(function(e){e.tabIndex=-1}),o.tabIndex=0,o.focus())}e.addEventListener("click",function(e){const t=e.target.closest("[data-calendar-nav]");if(t)return void v(parseInt(t.dataset.calendarNav,10));const n=e.target.closest(".mw-calendar-day");n&&!n.disabled&&y(n.dataset.calendarDay)}),t.addEventListener("keydown",function(e){const t={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7}[e.key];if(!t)return;const n=e.target.closest(".mw-calendar-day");if(!n)return;e.preventDefault();const o=new Date(n.dataset.calendarDay+"T00:00:00");o.setDate(o.getDate()+t),b(o)}),p()}(e)})}(a),function(t){t.querySelectorAll(".mw-lang-switch").forEach(t=>{if(!o(t))return;const n=t.querySelectorAll("[data-mw-lang]"),a=t.querySelector("summary"),c=t.querySelector("summary .mw-flag"),r=t.querySelector("summary .mw-lang-switch-code");n.forEach(o=>{o.addEventListener("click",function(){const i=o.dataset.mwLang,s=o.querySelector(".mw-lang-switch-name"),l=s?s.textContent.trim():i;n.forEach(t=>{e(t,t===o),t===o?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")}),r&&(r.textContent=i);const d=o.querySelector(".mw-flag");c&&d&&(c.className=d.className),a&&a.setAttribute("aria-label","Language: "+l),t.dispatchEvent(new CustomEvent("mw-language-change",{bubbles:!0,detail:{lang:i,name:l}}))})})})}(a)}function i(){try{c()}catch(e){console.error("MaverickWave: page behaviour not initialised",e)}r(document)}function s(e){const t=e.querySelector('input[type="checkbox"]');if(!t)return;const n=t.checked;t.checked=!n,t.checked?e.classList.add("mw-selected"):e.classList.remove("mw-selected"),e.dispatchEvent(new CustomEvent("checkboxToggle",{detail:{checked:t.checked,item:e}}))}window.MaverickWave={init:function(e){c(),r(e)}},window.mwToggleCheckbox=s;const l={close:"M6 6l12 12M18 6L6 18",prev:"M15 5l-7 7 7 7",next:"M9 5l7 7-7 7"};function d(e,t,n){const o=document.createElement("button");return o.type="button",o.className=e,o.setAttribute("aria-label",t),o.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="'+l[n]+'"/></svg>',o}function m(e){const t=e.naturalWidth||e.videoWidth||+e.getAttribute("width"),n=e.naturalHeight||e.videoHeight||+e.getAttribute("height");return t&&n?t/n:0}function u(e,t,n,o,a){function c(){const c=e.scrollWidth-e.clientWidth-2,r=e.children.length-1;a(e.scrollLeft>=c?r:Math.round(e.scrollLeft/t())),n.disabled=e.scrollLeft<=2,o.disabled=e.scrollLeft>=c}return n.addEventListener("click",()=>e.scrollBy({left:-t()})),o.addEventListener("click",()=>e.scrollBy({left:t()})),e.addEventListener("scroll",c,{passive:!0}),c}function f(e){const t=document.createElement("figure");t.className="mw-lightbox-slide";const n=document.createElement("img");n.dataset.src=e.href,n.alt=e.querySelector("img").alt,n.decoding="async",t.appendChild(n);const o=e.closest("figure"),a=o&&o.querySelector("figcaption");if(a){const e=document.createElement("figcaption");a.childNodes.forEach(t=>e.append(t.cloneNode(!0))),t.appendChild(e)}return t}function w(){const e=Array.from(document.querySelectorAll(".color-swatch")),t=e.map(e=>function(e){if(!e||"transparent"===e)return"#000000";const t=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,"0"),n=e.match(/color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+))?\)/);if(n){const e="#"+t(255*n[1])+t(255*n[2])+t(255*n[3]),o=void 0===n[4]?1:parseFloat(n[4]);return(o<1?`${e} / ${o}`:e).toUpperCase()}const o=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(!o)return e;const a="#"+t(o[1])+t(o[2])+t(o[3]),c=void 0===o[4]?1:parseFloat(o[4]);return(c<1?`${a} / ${c}`:a).toUpperCase()}(window.getComputedStyle(e).backgroundColor));e.forEach((e,n)=>{const o=e.parentElement.querySelector(".mw-text-muted");o&&(o.textContent=t[n])})}function h(){const e=parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop);return Number.isNaN(e)?0:e}let p=null;function g(e){const t=e.querySelector(".mw-tabs-nav-item.mw-active, .mw-tabs-nav-item.active");t?(e.style.setProperty("--mw-tabs-marker-x",t.offsetLeft+"px"),e.style.setProperty("--mw-tabs-marker-w",t.offsetWidth),e.style.setProperty("--mw-tabs-marker-y",t.offsetTop+"px"),e.style.setProperty("--mw-tabs-marker-h",t.offsetHeight),e.setAttribute("data-mw-tabs-marker","")):e.removeAttribute("data-mw-tabs-marker")}function y(e){const t=e.getAttribute("data-tab");return t?document.getElementById(t):null}function v(e){const n=t(e);e.setAttribute("aria-selected",String(n)),e.tabIndex=n?0:-1}function b(t,n){t.forEach(t=>{const o=t===n;e(t,o),e(y(t),o),v(t)});const o=n.closest(".mw-tabs-nav");o&&g(o)}function E(e,t){let n;return function(){const o=this,a=arguments;clearTimeout(n),n=setTimeout(()=>e.apply(o,a),t)}}function k(){const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||e.includes("192.168.")}function x(e){e&&("DIALOG"===e.tagName?e.showModal():e.classList.add("mw-modal-open"))}function L(e,t){return e+Math.random()*(t-e)}function S(e){return e[Math.floor(Math.random()*e.length)]}function A(e,t){return(Math.random()<.5?-1:1)*L(e,t)}function q(e,t,n,o){const a=document.createElement("span");a.className="mw-occasion-particle mw-occasion-"+t+" mw-occasion-"+n,Object.keys(o).forEach(e=>a.style.setProperty(e,o[e])),e.appendChild(a)}function M(){const e=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--mw-occasion-amount"));return e>0?e:1}function C(e){return"soft"===e?L(.2,.6).toFixed(2)+" "+L(0,.5).toFixed(2)+" 1":e?"1 "+L(0,1).toFixed(2)+" 0.3":"z"}function D(e,t,n,o){for(let a=0;a<t;a++)q(e,S(n),o.rising?"rising":"falling",{"--mw-occasion-x":L(-5,100).toFixed(1)+"vw","--mw-occasion-drift":L(o.drift[0],o.drift[1]).toFixed(1)+"vw","--mw-occasion-size":L(o.size[0],o.size[1]).toFixed(1)+"px","--mw-occasion-time":L(o.time[0],o.time[1]).toFixed(2)+"s","--mw-occasion-delay":L(0,o.spread).toFixed(2)+"s","--mw-occasion-sway":L(6,22).toFixed(0)+"px","--mw-occasion-sway-time":L(1.2,2.4).toFixed(2)+"s","--mw-occasion-spin":A(.3,o.spin||.3).toFixed(2)+"turn","--mw-occasion-spin-time":L(2.5,5).toFixed(2)+"s","--mw-occasion-axis":C(o.flip)})}function F(e,t,n,o){for(let a=0;a<t;a++){const t=a%2==0;q(e,S(n),"bursting",{"--mw-occasion-x":t?"-2vw":"100vw","--mw-occasion-dx":(t?1:-1)*L(8,62)+"vw","--mw-occasion-peak":L(55,92)+"vh","--mw-occasion-size":L(o.size[0],o.size[1]).toFixed(1)+"px","--mw-occasion-time":L(2.6,3.6).toFixed(2)+"s","--mw-occasion-delay":(L(0,.35)+(a%3==2?.9:0)).toFixed(2)+"s","--mw-occasion-spin":A(1.5,o.spin).toFixed(2)+"turn","--mw-occasion-spin-time":L(.8,1.6).toFixed(2)+"s","--mw-occasion-axis":C(o.flip)})}}["wheel","touchstart"].forEach(e=>{window.addEventListener(e,()=>p=null,{passive:!0})}),window.mwOpenModal=e=>x(document.getElementById(e)),window.mwCloseModal=e=>{var t;(t=document.getElementById(e))&&("DIALOG"===t.tagName?t.close():t.classList.remove("mw-modal-open"))},window.mwRefreshColorSwatches=w,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()}();
|
|
1
|
+
!function(){"use strict";function e(e,t){e&&(e.classList.toggle("mw-active",t),t||e.classList.remove("active"))}function t(e){return!!e&&(e.classList.contains("mw-active")||e.classList.contains("active"))}const n=new WeakSet;function o(e){return!(!e||n.has(e))&&(n.add(e),!0)}let a=!1;function c(){a||(a=!0,function(){const t=document.querySelector(".mw-theme-toggle");if(!t)return;const n=document.documentElement,o=t.querySelector(".mw-theme-toggle-slider i"),a=getComputedStyle(document.documentElement).getPropertyValue("--mw-internal-theme-mode").trim()||"switchable";if("switchable"!==a)return console.log(`Theme mode fixed to: ${a}. Disabling toggle.`),o&&(o.className="light"===a?"fas fa-sun":"fas fa-moon"),e(t,"light"===a),t.style.opacity="0.4",t.style.pointerEvents="none",t.style.cursor="default",t.setAttribute("aria-disabled","true"),localStorage.removeItem("mw-theme"),void n.classList.remove("mw-theme-light","mw-theme-dark");const c=window.matchMedia("(prefers-color-scheme: light)"),r=window.CSS&&CSS.supports("color","light-dark(#000, #fff)"),i=()=>r&&c.matches,s=localStorage.getItem("mw-theme");let l=s?"light"===s:i();const d=a=>{n.classList.add("mw-theme-switching"),n.classList.toggle("mw-theme-light",a),n.classList.toggle("mw-theme-dark",!a),n.offsetHeight,n.classList.remove("mw-theme-switching"),e(t,a),o&&(o.className=a?"fas fa-sun":"fas fa-moon")};d(l),c.addEventListener("change",()=>{localStorage.getItem("mw-theme")||(l=i(),d(l),w())}),t.addEventListener("click",()=>{l=!l,d(l),localStorage.setItem("mw-theme",l?"light":"dark"),w()})}(),w(),function(){const e=document.querySelector(".mw-menu-btn"),t=document.querySelector(".mw-navbar");if(!e||!t)return;const n="BUTTON"===e.tagName;function o(o){e.classList.toggle("mw-active",o),t.classList.toggle("mw-active",o),document.body.classList.toggle("mw-nav-open",o),n&&e.setAttribute("aria-expanded",String(o))}function a(e){e.preventDefault(),e.stopPropagation(),o(!t.classList.contains("mw-active"))}e.addEventListener("click",a),document.addEventListener("click",function(n){t.classList.contains("mw-active")&&(t.contains(n.target)||e.contains(n.target)||o(!1))}),document.addEventListener("keydown",function(n){"Escape"===n.key&&t.classList.contains("mw-active")&&(o(!1),e.focus())})}(),function(){const e=document.querySelector(".mw-header-reveal");if(!e)return;if(CSS.supports("animation-timeline","scroll()"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const t=document.querySelector(".mw-announcement:not(.mw-announcement-static)"),n=270;let o=null;const a=()=>{const a=window.scrollY<n;a!==o&&(o=a,e.classList.toggle("mw-header-away",a),t&&t.classList.toggle("mw-announcement-away",a))};a(),requestAnimationFrame(()=>{e.classList.add("mw-header-driven"),t&&t.classList.add("mw-announcement-driven")}),window.addEventListener("scroll",a,{passive:!0})}(),function(){if(CSS.supports("animation-timeline","view()"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const e=document.querySelectorAll(".mw-parallax-media");if(!e.length)return;const t=[...e].map(e=>(e.classList.add("mw-parallax-driven"),{el:e,pinned:Boolean(e.closest(".mw-parallax-sticky"))})),n=e=>Math.min(1,Math.max(0,e)),o=(e,t)=>{if(e.pinned)return n(window.scrollY/t);const o=e.el.getBoundingClientRect();return n((t-o.top)/(t+o.height))};let a=!1;const c=()=>{a=!1;const e=document.documentElement.clientHeight,n=t.map(t=>o(t,e));t.forEach((e,t)=>e.el.style.setProperty("--mw-parallax-progress",n[t]))},r=()=>{a||(a=!0,requestAnimationFrame(c))};c(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r,{passive:!0})}(),function(){function e(e){const t=e.style.position,n="sticky"===getComputedStyle(e).position;n&&(e.style.position="static");const o=e.getBoundingClientRect().top+window.scrollY;return n&&(e.style.position=t),o}function t(e){const t=window.scrollY,n=e-t;if(!n)return;const o=Math.min(2e3,600+.5*Math.abs(n)),a={};g=a;let c=null;function r(e){if(g!==a)return;null===c&&(c=e);const i=Math.min(1,(e-c)/o),s=i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2;window.scrollTo({top:t+n*s,behavior:"instant"}),i<1?requestAnimationFrame(r):g=null}requestAnimationFrame(r)}document.querySelectorAll('a[href^="#"]').forEach(n=>{n.addEventListener("click",function(n){const o=this.getAttribute("href");if("#"===o)return;const a=document.querySelector(o);if(!a)return;p(a);const c=document.querySelector(".mw-menu-btn"),r=document.querySelector(".mw-navbar");c&&r&&(c.classList.remove("mw-active"),r.classList.remove("mw-active"),document.body.classList.remove("mw-nav-open"),"BUTTON"===c.tagName&&c.setAttribute("aria-expanded","false")),n.preventDefault();const i=Math.max(0,e(a)-h());a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1"),a.focus({preventScroll:!0}),window.matchMedia("(prefers-reduced-motion: reduce)").matches?window.scrollTo({top:i,behavior:"instant"}):t(i),history.replaceState(null,"",o)})})}(),function(){const t=document.querySelectorAll("section[id]"),n=document.querySelectorAll(".mw-navbar-link");if(0===t.length||0===n.length)return;window.addEventListener("scroll",k(function(){let o="";const a=h()+2;t.forEach(e=>{const t=e.offsetTop-a,n=e.clientHeight;scrollY>=t&&scrollY<t+n&&(o=e.getAttribute("id"))}),n.forEach(t=>{e(t,!1);const n=t.getAttribute("href");if(n){const a=n.indexOf("#");if(-1!==a){n.substring(a+1)===o&&e(t,!0)}}})},100),{passive:!0})}(),document.addEventListener("click",e=>{const t=e.target.closest(".mw-modal-close");if(t){const e=t.closest("dialog.mw-modal");if(e)return void e.close();const n=t.closest(".mw-modal-overlay");return void(n&&n.classList.remove("mw-modal-open"))}const n=e.target.closest("[data-mw-modal]");var o;n?L(document.getElementById(n.dataset.mwModal)):e.target.matches("dialog.mw-modal[open]")&&(!("closedBy"in(o=e.target))||null===o.getAttribute("closedby"))&&e.target.close()}),function(){let e=null;document.addEventListener("click",t=>{const n=t.target.closest("a[href]"),o=n&&n.closest(".mw-mosaic, [data-mw-lightbox]");if(!o||!n.querySelector("img")||t.defaultPrevented)return;if(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;t.preventDefault();const a=Array.from(o.querySelectorAll("a[href]")).filter(e=>e.querySelector("img")).map(e=>({a:e,box:e.getBoundingClientRect()})).sort((e,t)=>Math.round(e.box.top-t.box.top)||e.box.left-t.box.left).map(({a:e})=>e);e=e||function(){const e=document.createElement("dialog");e.className="mw-lightbox",e.setAttribute("aria-label","Image viewer");const t=document.createElement("div");t.className="mw-lightbox-bar";const n=d("mw-overlay-btn mw-lightbox-prev","Previous image","prev"),o=d("mw-overlay-btn mw-lightbox-next","Next image","next"),a=d("mw-overlay-btn mw-lightbox-close","Close","close");a.autofocus=!0;const c=document.createElement("span");c.className="mw-lightbox-count",c.setAttribute("aria-live","polite");const r=document.createElement("div");r.className="mw-lightbox-track",t.append(n,c,o,a),e.append(t,r),document.body.appendChild(e);let i=[],s=-1;function l(e){const t=r.children[e]&&r.children[e].querySelector("img");t&&!t.src&&(t.src=t.dataset.src)}const m=u(r,()=>r.clientWidth,n,o,e=>{e!==s&&(s=e,c.textContent=e+1+" / "+i.length,[e-1,e,e+1].forEach(l))});return a.addEventListener("click",()=>e.close()),r.addEventListener("click",t=>{t.target.classList.contains("mw-lightbox-slide")&&e.close()}),e.addEventListener("keydown",e=>{"ArrowLeft"===e.key?n.click():"ArrowRight"===e.key&&o.click()}),e.addEventListener("close",()=>{e.open||i[s]&&i[s].focus()}),{open(t,n){i=t,s=-1,r.replaceChildren(...t.map(f)),e.showModal(),r.scrollTo({left:n*r.clientWidth,behavior:"instant"}),m()}}}(),e.open(a,a.indexOf(n))})}(),function(){function e(e){document.querySelectorAll(".mw-dropdown[open]").forEach(t=>{t!==e&&t.removeAttribute("open")})}document.addEventListener("click",function(t){const n=t.target.closest(".mw-dropdown");e(n),n&&t.target.closest(".mw-dropdown-item")&&n.removeAttribute("open")}),document.addEventListener("keydown",function(e){if("Escape"!==e.key)return;const t=document.querySelector(".mw-dropdown[open]");if(!t)return;t.removeAttribute("open");const n=t.querySelector("summary");n&&n.focus()})}(),document.addEventListener("click",e=>{const t=e.target.closest(".mw-tags-remove");if(!t)return;const n=t.closest(".mw-tags-item");n&&n.remove()}),document.addEventListener("click",e=>{const t=e.target.closest("[data-mw-copy]");if(!t||!navigator.clipboard)return;const n=t.getAttribute("data-mw-copy"),o=t.closest(".mw-input-group")?.querySelector("input"),a=n||o?.value;a&&navigator.clipboard.writeText(a).then(()=>{t.dispatchEvent(new CustomEvent("mwCopied",{bubbles:!0,detail:{text:a}}))})}),function(){const e=document.querySelector(".mw-localhost-indicator-activated"),t=document.querySelector(".mw-header");if(e&&x()){const e=document.createElement("div");e.className="mw-localhost-indicator-pulse",t.prepend(e)}}(),function(){const e=["snow","christmas","newyear","spring","easter","summer","autumn","football","birthday","anniversary"],t=document.documentElement,n=new URLSearchParams(location.search),o=n.get("mw-occasion");e.includes(o)&&!t.classList.contains("mw-occasion-"+o)&&(e.forEach(e=>t.classList.remove("mw-occasion-"+e)),t.classList.add("mw-occasion-"+o),t.classList.toggle("mw-occasion-scroll",n.has("mw-occasion-scroll")),t.classList.toggle("mw-occasion-sm","sm"===n.get("mw-occasion-size")),t.classList.toggle("mw-occasion-lg","lg"===n.get("mw-occasion-size")),n.has("mw-occasion-intro")&&t.setAttribute("data-mw-occasion-intro","preview"));const a=e.find(e=>t.classList.contains("mw-occasion-"+e));if(!a)return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;t.classList.contains("mw-occasion-scroll")&&function(e){if(!window.ScrollTimeline)return;const t=document.createElement("div");t.className="mw-occasion-drift",t.setAttribute("aria-hidden","true"),"summer"===e?function(e){const t=Math.round(5*Math.min(1.4,C()));for(let n=0;n<t;n++)M(e,"beam","beaming",{"--mw-occasion-size":S(9,16).toFixed(1)+"vw","--mw-occasion-angle":(24+54*n/Math.max(1,t-1)+S(-3,3)).toFixed(1)+"deg","--mw-occasion-lap":String(n%2)})}(t):function(e,t){const n={snow:["flake","flake","crystal"],christmas:["flake","flake","star"],newyear:["glint"],spring:["petal"],easter:["petal"],autumn:["maple","oak","birch"],football:["strip"],birthday:["confetti"],anniversary:["confetti","glint"]}[t],o={flake:[9,16],crystal:[16,22],star:[14,20],glint:[16,24],petal:[18,26],maple:[28,40],oak:[28,40],birch:[24,34],strip:[12,18],confetti:[11,17]},a=Math.min(1.15,Math.max(.85,window.innerWidth/1280)),c=Math.round((window.innerWidth<768?11:18)*C());for(let t=0;t<c;t++){const r=n[t%n.length],i=["maple","oak","birch","petal"].includes(r);M(e,r,"falling",{"--mw-occasion-x":((t+S(.1,.9))*(100/c)).toFixed(1)+"vw","--mw-occasion-size":(S(o[r][0],o[r][1])*a).toFixed(1)+"px","--mw-occasion-start":(37*t%100*.3).toFixed(1)+"%","--mw-occasion-lap":String(t%3),"--mw-occasion-drift":S(-6,6).toFixed(1)+"vw","--mw-occasion-sway":S(8,24).toFixed(0)+"px","--mw-occasion-spin":q(.5,2).toFixed(2)+"turn","--mw-occasion-axis":D(i?"soft":["confetti","strip"].includes(r))})}}(t,e);function n(){const e=document.documentElement.scrollHeight-innerHeight;t.style.setProperty("--mw-occasion-laps",String(Math.max(1,Math.round(e/(1.2*innerHeight)))))}document.body.appendChild(t),n(),window.addEventListener("load",n),window.addEventListener("resize",k(n,200),{passive:!0})}(a);const c=t.getAttribute("data-mw-occasion-intro"),r=navigator.connection&&navigator.connection.saveData;null===c||r||"preview"!==c&&function(e){try{if(sessionStorage.getItem("mw-occasion-intro")===e)return!0;sessionStorage.setItem("mw-occasion-intro",e)}catch{}return!1}(a)||function(e){function t(){if(!document.hidden)return e();document.addEventListener("visibilitychange",function t(){document.hidden||(document.removeEventListener("visibilitychange",t),e())})}"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0})}(()=>function(e){const t=document.createElement("div");t.className="mw-occasion-intro mw-occasion-intro-"+e,t.setAttribute("aria-hidden","true");const n=function(){const e=window.innerWidth*window.innerHeight/1296e3,t=(navigator.hardwareConcurrency||8)<=4||(navigator.deviceMemory||8)<=4;return Math.min(1,Math.max(.4,e))*(t?.5:1)*C()}();(function(){const e={size:[18,28],drift:[12,40],time:[3,4.2],spread:1.4,spin:1.2,flip:"soft"};return{snow:(e,t)=>F(e,t(70),["flake","flake","flake","crystal"],{size:[6,17],drift:[-4,6],time:[4.2,6.2],spread:2.4,spin:.5}),christmas:(e,t)=>{e.insertAdjacentHTML("beforeend",'<svg class="mw-occasion-tree" viewBox="0 0 120 150"><defs><linearGradient id="mw-tree-fir" x1="0" x2="1"><stop offset="0" stop-color="#2a7a45"/><stop offset=".55" stop-color="#17532d"/><stop offset="1" stop-color="#0d3a1e"/></linearGradient><radialGradient id="mw-tree-light"><stop offset="0" stop-color="#fffbe6"/><stop offset=".35" stop-color="#ffe08a"/><stop offset="1" stop-color="#ffd166" stop-opacity="0"/></radialGradient><radialGradient id="mw-tree-glow"><stop offset="0" stop-color="#fff3b0" stop-opacity=".9"/><stop offset="1" stop-color="#ffd166" stop-opacity="0"/></radialGradient><linearGradient id="mw-tree-gold" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#fff4c2"/><stop offset=".5" stop-color="#f1c84b"/><stop offset="1" stop-color="#b8860b"/></linearGradient></defs><rect x="53" y="108" width="14" height="18" rx="2" fill="#6b4226"/><g fill="url(#mw-tree-fir)"><path d="M60 56C70 76 86 94 106 112C84 106 36 106 14 112C34 94 50 76 60 56Z"/><path d="M60 32C68 48 80 64 96 80C80 76 40 76 24 80C40 64 52 48 60 32Z"/><path d="M60 12C66 24 74 36 86 50C76 47 44 47 34 50C46 36 54 24 60 12Z"/></g><g fill="none" stroke="#e9c46a" stroke-width="1.4" stroke-opacity=".85"><path d="M40 44Q62 54 80 42"/><path d="M30 70Q60 86 88 66"/><path d="M22 100Q62 118 100 94"/></g><circle cx="54" cy="38" r="3.4" fill="#d62839"/><circle cx="68" cy="39" r="3" fill="#e9b949"/><circle cx="46" cy="62" r="3.4" fill="#e9b949"/><circle cx="74" cy="62" r="3.4" fill="#d62839"/><circle cx="60" cy="66" r="3" fill="#cfd6de"/><circle cx="40" cy="94" r="3.6" fill="#d62839"/><circle cx="62" cy="95" r="3.6" fill="#e9b949"/><circle cx="84" cy="92" r="3.4" fill="#cfd6de"/><g>'+[[46.5,46.5],[61,48.5],[74.5,45.1],[39,74],[53.7,77],[68.2,75.6],[81.3,70.3],[31.6,103.7],[49.8,107.5],[69.3,106.5],[88.6,100.3]].map(([e,t])=>`<g class="mw-occasion-tree-light"><circle cx="${e}" cy="${t}" r="4.6" fill="url(#mw-tree-light)"/><circle cx="${e}" cy="${t}" r="1.4" fill="#fffbe6"/></g>`).join("")+'</g><circle class="mw-occasion-tree-glow" cx="60" cy="12" r="18" fill="url(#mw-tree-glow)"/><path class="mw-occasion-tree-star" fill="url(#mw-tree-gold)" d="M60 3L62.23 8.93L68.56 9.22L63.61 13.17L65.29 19.28L60 15.8L54.71 19.28L56.39 13.17L51.44 9.22L57.77 8.93Z"/></svg>'),F(e,t(34),["flake","flake","star"],{size:[6,16],drift:[-4,6],time:[4.4,6.4],spread:2.4,spin:.6})},newyear:(e,t)=>function(e,t,n){const o=["#ffd166","#fff1c1","#ff6b6b","#4cc9f0","#c4a7ff"];for(let a=0;a<t;a++){const t=S(14,86).toFixed(1)+"vw",c=S(14,46).toFixed(1)+"vh",r=.55*a+S(0,.2),i=(r+.65).toFixed(2)+"s";M(e,"trail","launching",{"--mw-occasion-x":t,"--mw-occasion-y":c,"--mw-occasion-size":"6px","--mw-occasion-delay":r.toFixed(2)+"s"}),M(e,"flash","flashing",{"--mw-occasion-x":t,"--mw-occasion-y":c,"--mw-occasion-size":"26vmin","--mw-occasion-delay":i});for(let r=0;r<n;r++){const s=r%3==0,l=360/n*r+S(-5,5),d=s?S(6,10):S(14,22),m=l*Math.PI/180;M(e,"spark","exploding",{"--mw-occasion-x":t,"--mw-occasion-y":c,"--mw-occasion-dx":(Math.cos(m)*d).toFixed(2)+"vmin","--mw-occasion-dy":(Math.sin(m)*d).toFixed(2)+"vmin","--mw-occasion-angle":(l+90).toFixed(0)+"deg","--mw-occasion-size":s?"12px":"20px","--mw-occasion-tint":o[a%o.length],"--mw-occasion-time":S(1.3,1.8).toFixed(2)+"s","--mw-occasion-delay":i})}}}(e,Math.min(6,Math.max(3,t(5))),Math.max(18,t(36))),spring:(t,n)=>F(t,n(44),["petal"],e),easter:(t,n)=>F(t,n(44),["petal"],e),summer:(e,t)=>{const n=document.createElement("div");n.className="mw-occasion-sun",e.appendChild(n),function(e,t){for(let n=0;n<t;n++)M(e,"glint","twinkling",{"--mw-occasion-x":S(35,96).toFixed(1)+"vw","--mw-occasion-y":S(4,62).toFixed(1)+"vh","--mw-occasion-size":S(14,30).toFixed(1)+"px","--mw-occasion-time":S(1.2,2.2).toFixed(2)+"s","--mw-occasion-delay":S(.4,2.8).toFixed(2)+"s","--mw-occasion-spin":q(.1,.25).toFixed(2)+"turn"})}(e,t(18))},autumn:(e,t)=>F(e,t(32),["maple","oak","birch"],{size:[30,46],drift:[-8,22],time:[3,4.2],spread:1.4,spin:1.5,flip:"soft"}),football:(e,t)=>{N(e,t(80),["strip"],{size:[12,20],spin:5,flip:!0}),N(e,3,["ball"],{size:[34,46],spin:3})},birthday:(e,t)=>{N(e,t(90),["confetti"],{size:[10,15],spin:5,flip:!0}),F(e,Math.max(4,t(8)),["balloon"],{size:[44,62],drift:[-6,6],time:[3.8,4.8],spread:.8,rising:!0})},anniversary:(e,t)=>N(e,t(90),["confetti","confetti","glint"],{size:[10,16],spin:5,flip:!0})}})()[e](t,e=>Math.max(1,Math.round(e*n))),document.body.appendChild(t);const o=["pointerdown","keydown","wheel","touchmove"];function a(){t.remove(),o.forEach(e=>window.removeEventListener(e,c))}function c(){t.classList.add("mw-occasion-leaving"),setTimeout(a,350)}o.forEach(e=>window.addEventListener(e,c,{once:!0,passive:!0})),t.addEventListener("animationend",e=>{e.target===t&&a()})}(a))}(),function(){const e=()=>p(document.getElementById(location.hash.slice(1)));e(),window.addEventListener("hashchange",e)}(),function(){if(!x())return;const e=document.querySelector('meta[name="viewport"]'),t=e&&e.getAttribute("content")||"";if(/viewport-fit\s*=\s*cover/.test(t))return;console.warn('MaverickWave: <meta name="viewport"> is missing viewport-fit=cover. env(safe-area-inset-*) resolves to 0 without it, so notched phones lose the gutter, the nav panel and the modal padding that expect it.')}())}function r(n){const a=n||document;!function(e){e.querySelectorAll(".mw-gallery").forEach(e=>{if(!o(e))return;const t=e.closest(".mw-gallery-container")||e.parentElement;t&&function(e,t){const n=t.querySelector(".mw-gallery-track");if(!n||!n.children.length)return;const o=n.children,a=e.querySelector(".mw-gallery-dots"),c=e.querySelector(".mw-gallery-desc"),r=t.querySelector(".mw-gallery-navi-prev"),i=t.querySelector(".mw-gallery-navi-next");let s=0;function l(e){const t=o.length;s=(e+t)%t,n.style.transform=`translateX(-${100*s}%)`,a&&a.querySelectorAll(".mw-gallery-dot").forEach((e,t)=>{e.classList.toggle("mw-active",t===s)}),c&&(c.textContent=o[s].dataset.desc||"")}if(a)for(let e=0;e<o.length;e++){const t=document.createElement("button");t.type="button",t.className="mw-gallery-dot"+(0===e?" mw-active":""),t.setAttribute("aria-label","Go to slide "+(e+1)),t.addEventListener("click",()=>l(e)),a.appendChild(t)}r&&r.addEventListener("click",()=>l(s-1));i&&i.addEventListener("click",()=>l(s+1));let d=0,m=0,u=!1;n.addEventListener("touchstart",e=>{u=1===e.touches.length,u&&(d=e.touches[0].clientX,m=e.touches[0].clientY)},{passive:!0}),n.addEventListener("touchcancel",()=>u=!1),n.addEventListener("touchend",e=>{if(!u)return;u=!1;const t=e.changedTouches[0].clientX-d,n=e.changedTouches[0].clientY-m;Math.abs(t)<50||Math.abs(t)<=Math.abs(n)||l(s+(t<0?1:-1))},{passive:!0}),l(0)}(t,e)})}(a),function(e){e.querySelectorAll(".mw-portrait-gallery").forEach(e=>{o(e)&&function(e){const t=e.querySelector(".mw-portrait-gallery-track");if(!t)return;const n=Array.from(t.children);if(n.forEach(e=>{const t=e.querySelector(":scope > img, :scope > video");t&&function(e,t){if(e.classList.contains("mw-fit-cover"))return;const n="VIDEO"===t.tagName,o=e.classList.contains("mw-fit-contain");function a(){if(!o){const n=m(t);if(!n||!e.clientHeight)return;const o=n/(e.clientWidth/e.clientHeight);e.classList.toggle("mw-fit-contain",Math.max(o,1/o)>=1.4)}const a=n?t.poster:t.currentSrc||t.src;if(e.classList.contains("mw-fit-contain")&&a&&!e.querySelector(":scope > .mw-fit-backdrop")){const t=document.createElement("img");t.className="mw-fit-backdrop",t.alt="",t.src=a,e.prepend(t)}}new ResizeObserver(a).observe(e),t.addEventListener(n?"loadedmetadata":"load",a)}(e,t)}),n.length<2)return;const o=d("mw-overlay-btn mw-portrait-gallery-prev","Previous image","prev"),a=d("mw-overlay-btn mw-portrait-gallery-next","Next image","next"),c=document.createElement("div");c.className="mw-portrait-gallery-dots";const r=()=>n[1].offsetLeft-n[0].offsetLeft;n.forEach((e,n)=>{const o=document.createElement("button");o.type="button",o.className="mw-portrait-gallery-dot",o.setAttribute("aria-label","Go to image "+(n+1)),o.addEventListener("click",()=>t.scrollTo({left:n*r()})),c.appendChild(o)}),e.append(o,a,c),u(t,r,o,a,e=>{Array.from(c.children).forEach((t,n)=>{t.classList.toggle("mw-active",n===e)})})()}(e)})}(a),function(e){e.querySelectorAll(".mw-mosaic-item").forEach(e=>{if(!o(e))return;const t=e.querySelector("img"),n=["mw-mosaic-wide","mw-mosaic-tall","mw-mosaic-big"].some(t=>e.classList.contains(t));function a(){const n=m(t);return n>=1.3?e.classList.add("mw-mosaic-wide"):n&&n<=.8&&e.classList.add("mw-mosaic-tall"),n>0}t&&!n&&(a()||t.addEventListener("load",a,{once:!0}))})}(a),function(e){e.querySelectorAll(".mw-story-reel").forEach(e=>{o(e)&&function(e){const t=Array.from(e.querySelectorAll(":scope > img, :scope > video")),n=d("mw-story-reel-prev","Previous","prev"),o=d("mw-story-reel-next","Next","next"),a=e.querySelector(".mw-story-reel-pause input"),c=e.querySelector('[popovertargetaction="hide"]');c&&(c.autofocus=!0);e.append(n,o);const r=()=>e.getAnimations({subtree:!0}).filter(e=>e instanceof CSSAnimation);function i(){const e=r().find(e=>"mw-story-reel-fill"===e.animationName);if(!e)return null;const n=t.filter(e=>"none"!==getComputedStyle(e).display).length,o=e.effect.getTiming().duration/n;return{count:n,length:o,index:Math.floor(e.currentTime/o)}}function s(e){t.forEach(t=>{"VIDEO"===t.tagName&&t!==e&&t.pause()}),e&&"VIDEO"===e.tagName&&(e.currentTime=0,a&&a.checked||e.play().catch(()=>{}))}function l(n){const o=i();if(!o)return;const a=Math.max(o.index+n,0);if(a>=o.count)return void e.hidePopover();const c=a*o.length+20;r().forEach(e=>e.currentTime=c),s(t[a])}function m(n){const o=e.matches(":popover-open")&&i(),c=o&&t[o.index];c&&"VIDEO"===c.tagName&&(n||a&&a.checked?c.pause():c.play().catch(()=>{}))}let u=0;function f(e){return t=>{t.detail&&t.timeStamp-u>250||l(e)}}e.addEventListener("pointerdown",e=>{u=e.timeStamp,m(!0)}),["pointerup","pointercancel"].forEach(t=>{e.addEventListener(t,()=>m(!1))}),n.addEventListener("click",f(-1)),o.addEventListener("click",f(1)),e.addEventListener("animationend",n=>{if("mw-story-reel-fill"===n.animationName)e.hidePopover();else if("mw-story-reel-frame"===n.animationName){const e=i();e&&t[e.index]===n.target&&s(n.target)}}),e.addEventListener("toggle",e=>{s("open"===e.newState?t[0]:null)}),a&&a.addEventListener("change",()=>m(!1));e.addEventListener("keydown",e=>{"ArrowLeft"===e.key?l(-1):"ArrowRight"===e.key&&l(1)})}(e)})}(a),function(t){t.querySelectorAll(".mw-deck").forEach(t=>{if(o(t))try{!function(t){const n=t.querySelector(".mw-deck-slides");if(!n)return;const o=Array.from(n.children).filter(e=>e.classList.contains("mw-slide"));if(!o.length)return;const a=!t.classList.contains("mw-deck-portrait"),c=t===document.body,r=t.querySelector(".mw-deck-counter"),i=t.querySelector(".mw-deck-segments"),s=e=>String(e).padStart(2,"0"),l=Number.parseInt(location.hash.slice(1),10)-1,d=c&&l>0&&l<o.length?l:0;let m=d,u=-1,f=!1;i&&i.replaceChildren(...o.map(()=>document.createElement("span")));function w(n){if(!(n<0||n>=o.length)&&(m=n,n!==u)){if(u=n,o.forEach((t,o)=>e(t,o===n)),r){const e=document.createElement("span");e.className="mw-deck-counter-current",e.textContent=s(n+1),r.replaceChildren(e," / "+s(o.length))}if(t.style.setProperty("--mw-deck-progress",String((n+1)/o.length)),i&&Array.from(i.children).forEach((e,t)=>e.classList.toggle("mw-done",t<=n)),c)try{history.replaceState(history.state,"","#"+(n+1))}catch{}}}const h=e=>a?e.offsetLeft:e.offsetTop;function p(e,t=!0){const c=o[Math.max(0,Math.min(o.length-1,e))],r=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;n.scrollTo({left:a?c.offsetLeft:0,top:a?0:c.offsetTop,behavior:t&&!r?"smooth":"auto"})}function g(){const e=a?n.scrollLeft:n.scrollTop;let t=0;return o.forEach((n,a)=>{Math.abs(h(n)-e)<Math.abs(h(o[t])-e)&&(t=a)}),t}let y=!1;n.addEventListener("scroll",()=>{f&&!y&&(y=!0,requestAnimationFrame(()=>{y=!1,w(g())}))},{passive:!0});const v=()=>document.fullscreenElement||document.webkitFullscreenElement,b=document.fullscreenEnabled||document.webkitFullscreenEnabled,E=c?document.documentElement:t;function k(){if(b)try{const e=v()?(document.exitFullscreen||document.webkitExitFullscreen).call(document):(E.requestFullscreen||E.webkitRequestFullscreen).call(E);e&&e.catch&&e.catch(()=>{})}catch{}}b||t.querySelectorAll("[data-deck-fullscreen]").forEach(e=>{e.hidden=!0});const x=()=>p(m,!1);if(["fullscreenchange","webkitfullscreenchange"].forEach(e=>{document.addEventListener(e,()=>{t.classList.toggle("mw-deck-fullscreen",Boolean(v())),x()})}),window.addEventListener("resize",x),t.addEventListener("click",e=>{if(!(e.target instanceof Element))return;const t=e.target.closest("[data-deck-goto], [data-deck-next], [data-deck-prev], [data-deck-fullscreen]");if(t)if(t.hasAttribute("data-deck-goto")){const e=o.findIndex(e=>e.id===t.dataset.deckGoto);e>=0&&p(e)}else t.hasAttribute("data-deck-next")?p(m+1):t.hasAttribute("data-deck-prev")?p(m-1):k()}),(c?document:t).addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing)return;if(e.metaKey||e.ctrlKey||e.altKey)return;const t=e.target instanceof Element?e.target:document.body;if(t.closest("input, textarea, select, [contenteditable]"))return;if(" "===e.key&&t.closest("button, a, summary")&&t.matches(":focus-visible"))return;const n={ArrowRight:1,ArrowDown:1,PageDown:1," ":e.shiftKey?-1:1,ArrowLeft:-1,ArrowUp:-1,PageUp:-1};if(e.key in n)p(m+n[e.key]);else if("Home"===e.key)p(0);else if("End"===e.key)p(o.length-1);else{if("f"!==e.key&&"F"!==e.key)return;k()}e.preventDefault()}),c&&window.self===window.top){let e=!1;document.addEventListener("wheel",t=>{t.ctrlKey||!a&&n.contains(t.target)||Math.abs(t.deltaX)>Math.abs(t.deltaY)||(t.preventDefault(),e||Math.abs(t.deltaY)<8||(e=!0,p(m+Math.sign(t.deltaY)),setTimeout(()=>e=!1,700)))},{passive:!1})}t.classList.add("mw-deck-ready"),p(d,!1),requestAnimationFrame(()=>requestAnimationFrame(()=>{f=!0,w(d)}))}(t)}catch(e){console.error("MaverickWave: deck not initialised",e)}})}(a),function(n){const a=n.querySelectorAll(".mw-accordion-header");a.forEach(n=>{if(!o(n))return;const a="BUTTON"===n.tagName;a&&n.setAttribute("aria-expanded",String(t(n))),n.addEventListener("click",function(){const n=!t(this);e(this,n),e(this.nextElementSibling,n),a&&this.setAttribute("aria-expanded",String(n))})})}(a),function(e){const t=Array.from(e.querySelectorAll(".mw-progress-fill")).filter(o);if(!t.length)return;const n=CSS.supports("animation-timeline","view()"),a=e=>e.dataset.value?e.dataset.value+"%":e.style.width,c=[];if(t.forEach(e=>{const t=a(e);t&&(e.style.setProperty("--mw-progress-value",t),n?e.classList.add("mw-progress-driven"):c.push(e))}),n)return;const r=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(e.target.style.width=a(e.target),t.unobserve(e.target))})},{root:null,threshold:.2});c.forEach(e=>r.observe(e))}(a),function(e){if(CSS.supports("animation-timeline","view()"))return;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const t=Array.from(e.querySelectorAll(".mw-reveal, .mw-reveal-stagger > *")).filter(o);if(!t.length)return;const n=e=>{const t=e.parentElement;if(!t||!t.classList.contains("mw-reveal-stagger"))return 0;const n=getComputedStyle(t).gridTemplateColumns.split(" ").length;return[...t.children].indexOf(e)%n*90},a=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(t.unobserve(e.target),e.target.style.animationDelay=n(e.target)+"ms",e.target.classList.replace("mw-reveal-hidden","mw-reveal-run"))})},{threshold:.15});t.forEach(e=>{e.getBoundingClientRect().top<window.innerHeight||(e.classList.add("mw-reveal-hidden"),a.observe(e))})}(a),function(e){e.querySelectorAll(".mw-tabs-nav").forEach(e=>{if(!o(e))return;const t=Array.from(e.querySelectorAll(".mw-tabs-nav-item"));if(!t.length)return;const n=!!e.closest(".mw-tabs-vertical");e.setAttribute("role","tablist"),n&&e.setAttribute("aria-orientation","vertical"),t.forEach((e,o)=>{const a=v(e);e.setAttribute("role","tab"),e.id||(e.id=(a?a.id:"mw-tab-"+o)+"-tab"),a&&(e.setAttribute("aria-controls",a.id),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",e.id)),b(e),e.addEventListener("click",()=>E(t,e)),e.addEventListener("keydown",e=>{const a=function(e,t,n,o){const a=t?"ArrowUp":"ArrowLeft",c=t?"ArrowDown":"ArrowRight";return e.key===a?(o-1+n)%n:e.key===c?(o+1)%n:"Home"===e.key?0:"End"===e.key?n-1:null}(e,n,t.length,o);null!==a&&(e.preventDefault(),E(t,t[a]),t[a].focus())})}),y(e);const a=new ResizeObserver(()=>y(e));a.observe(e),t.forEach(e=>a.observe(e))})}(a),function(e){const t=e.querySelectorAll(".mw-alert-close");t.forEach(e=>{o(e)&&e.addEventListener("click",function(){const e=this.closest(".mw-alert");e&&(e.classList.add("mw-alert-closing"),setTimeout(()=>{e.classList.add("mw-alert-closed")},300))})})}(a),function(e){e.querySelectorAll(".mw-slider-container").forEach(e=>{if(!o(e))return;const t=e.querySelector(".mw-slider"),n=e.querySelector(".mw-slider-value");if(!t||!n)return;const a=()=>{const e=Number(t.value),o=Number(t.max)||100,a=Math.round(e/o*100);t.style.setProperty("--value",a+"%"),n.classList.contains("mw-slider-numeric")?n.setAttribute("data-value",e):n.setAttribute("data-value",a)};t.addEventListener("input",a),a()})}(a),function(t){const n=t.querySelectorAll(".mw-image-slider");n.forEach(t=>{if(!o(t))return;const n=t.querySelectorAll(".mw-image-slider-overlay-image"),a=t.querySelectorAll("button[data-index]");if(!n.length||!a.length)return;let c=0;function r(){n.forEach(t=>{e(t,parseInt(t.dataset.index)===c)}),a.forEach(t=>{e(t,parseInt(t.dataset.index)===c)})}function i(e){c=e,r()}a.forEach(e=>{e.addEventListener("click",()=>{i(parseInt(e.dataset.index))})}),r()})}(a),function(e){const t=e.querySelectorAll(".mw-item-list-checkbox, .mw-item-list-checkbox-scroll");t.forEach(e=>{if(!o(e))return;e.querySelectorAll("li").forEach(e=>{const t=e.querySelector('input[type="checkbox"]'),n=e.querySelector(".mw-checkbox");t&&n&&(t.checked&&e.classList.add("mw-selected"),e.addEventListener("click",function(e){e.target!==t&&e.target.closest(".mw-checkbox")!==n&&s(this)}),t.addEventListener("change",function(){const e=this.closest("li");this.checked?e.classList.add("mw-selected"):e.classList.remove("mw-selected"),e.dispatchEvent(new CustomEvent("checkboxToggle",{detail:{checked:this.checked,item:e}}))}),n.addEventListener("click",function(e){setTimeout(()=>{const e=this.closest("li");this.querySelector('input[type="checkbox"]').checked?e.classList.add("mw-selected"):e.classList.remove("mw-selected")},0)}))})})}(a),function(e){e.querySelectorAll(".mw-kanban").forEach(e=>{o(e)&&function(e){const t=Array.from(e.querySelectorAll(".mw-kanban-column")),n=e.querySelector(".mw-kanban-composer"),o=e.querySelector(".mw-kanban-card-template"),a=e.dataset.kanbanPrefix||"MW",c=n.querySelector(".mw-kanban-composer-title"),r=n.querySelector(".mw-kanban-composer-text"),i=n.querySelector(".mw-kanban-composer-priority"),s=n.querySelector(".mw-kanban-composer-assignee");let l=null;function d(){t.forEach(function(e,n){const o=e.querySelectorAll(".mw-kanban-card"),a=e.querySelector(".mw-kanban-count");a&&(a.textContent=o.length),e.querySelectorAll("[data-kanban-move]").forEach(function(e){const o=n+parseInt(e.dataset.kanbanMove,10);e.disabled=o<0||o>=t.length})})}function m(){const t=Array.from(e.querySelectorAll(".mw-kanban-card-id")).map(function(e){return parseInt(e.textContent.split("-").pop(),10)||0});return a+"-"+(Math.max(0,...t)+1)}function u(e){const t=e.querySelector(".mw-card-ribbon");if(!t)return"";const n=Array.from(t.classList).find(function(e){return 0===e.indexOf("mw-card-addon-")});return n?n.replace("mw-card-addon-",""):""}function f(e,t){const n=e.querySelector(".mw-card-ribbon");if(n&&n.remove(),!t||!t.value)return;const o=document.createElement("div");o.className="mw-card-ribbon mw-card-addon-"+t.value,o.textContent=t.textContent,e.prepend(o)}function w(e){const t=e.querySelector(".mw-avatar-initials");return t?t.textContent.trim():""}function h(e,t){const n=e.querySelector(t);return n?n.textContent.replace(/\s+/g," ").trim():""}function p(e,t){const n=e.querySelector(".mw-kanban-card-actions"),o=n.querySelector(".mw-avatar");if(!t)return void(o&&o.remove());const a=o||document.createElement("div");a.className="mw-avatar mw-avatar-xs mw-avatar-initials",a.textContent=t,o||n.prepend(a)}function g(e,t){y(),l=t||null,c.value=t?h(t,".mw-kanban-card-title"):"",r.value=t?h(t,".mw-kanban-card-text"):"",i.value=t?u(t):"",s.value=t?w(t):"",t?(t.classList.add("mw-kanban-editing"),t.before(n)):e.querySelector(".mw-kanban-column-body").prepend(n),n.classList.add("mw-active"),c.focus()}function y(){n.classList.remove("mw-active"),l&&l.classList.remove("mw-kanban-editing"),l=null}function v(){const e=c.value.trim();if(!e)return void c.focus();const t=l||o.content.firstElementChild.cloneNode(!0);if(t.querySelector(".mw-kanban-card-title").textContent=e,t.querySelector(".mw-kanban-card-text").textContent=r.value.trim(),f(t,i.selectedOptions[0]),p(t,s.value),!l){const e=m();t.classList.add("mw-kanban-card-in"),t.querySelector(".mw-kanban-card-id").textContent=e,t.querySelectorAll("[aria-label]").forEach(function(t){t.setAttribute("aria-label",t.getAttribute("aria-label").replace(/[A-Z]+-\d+/,e))}),n.before(t)}y(),d()}const b=["mw-kanban-card-moved-forward","mw-kanban-card-moved-back"];function E(e,n){const o=e.closest(".mw-kanban-column"),a=t[t.indexOf(o)+n];a&&(a.querySelector(".mw-kanban-column-body").appendChild(e),e.classList.remove.apply(e.classList,b),e.offsetWidth,e.classList.add(n>0?b[0]:b[1]),d())}e.addEventListener("click",function(e){const t=e.target.closest("[data-kanban-move]");if(t){if(E(t.closest(".mw-kanban-card"),parseInt(t.dataset.kanbanMove,10)),t.disabled){const e=t.parentElement.querySelector("[data-kanban-move]:not(:disabled)");e&&e.focus()}return}const n=e.target.closest(".mw-kanban-edit");if(n){const e=n.closest(".mw-kanban-card");return void g(e.closest(".mw-kanban-column"),e)}const o=e.target.closest(".mw-kanban-delete");if(o){const e=o.closest(".mw-kanban-card");return e===l&&y(),e.remove(),void d()}const a=e.target.closest(".mw-kanban-add");a?g(a.closest(".mw-kanban-column"),null):e.target.closest(".mw-kanban-composer-cancel")&&y()}),n.addEventListener("submit",function(e){e.preventDefault(),v()}),n.addEventListener("keydown",function(e){"Escape"===e.key&&y()}),d()}(e)})}(a),function(e){e.querySelectorAll("[data-calendar]").forEach(e=>{o(e)&&function(e){const t=e.querySelector(".mw-calendar-grid"),n=e.querySelector(".mw-calendar-title");if(!t)return;const o="week"===e.dataset.calendar,a=function(e){if(!e)return{};try{return JSON.parse(e)}catch(e){return{}}}(e.dataset.calendarMarkers),c=e.dataset.calendarLocale||document.documentElement.lang||void 0,r=new Date;r.setHours(0,0,0,0);let i=e.dataset.calendarDate?new Date(e.dataset.calendarDate+"T00:00:00"):new Date(r),s=e.dataset.calendarSelected||"";function l(e){const t=new Date(e);return t.setDate(t.getDate()-(t.getDay()+6)%7),t}function d(e){return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")}function m(e){const t=l(e);t.setDate(t.getDate()+3);const n=l(new Date(t.getFullYear(),0,4));return n.setDate(n.getDate()+3),1+Math.round((t-n)/6048e5)}function u(){if(!o)return i.toLocaleDateString(c,{month:"long",year:"numeric"});const e=l(i),t=new Date(e);t.setDate(t.getDate()+6);const n=e.toLocaleDateString(c,{day:"numeric",month:e.getMonth()===t.getMonth()?void 0:"short"}),a=t.toLocaleDateString(c,{day:"numeric",month:"short",year:"numeric"});return"Week "+m(e)+" · "+n+" - "+a}function f(e){const t=e.getDay();return 0===t||6===t}function w(){const e=l(new Date);for(let n=0;n<7;n++){const n=document.createElement("div");n.className="mw-calendar-weekday",f(e)&&n.classList.add("mw-calendar-weekend"),n.setAttribute("aria-hidden","true"),n.textContent=e.toLocaleDateString(c,{weekday:"short"}),t.appendChild(n),e.setDate(e.getDate()+1)}}function h(e,t){const n=d(e),i=document.createElement("button");i.type="button",i.className="mw-calendar-day",i.tabIndex=-1,i.dataset.calendarDay=n,i.setAttribute("aria-pressed",n===s?"true":"false"),i.setAttribute("aria-label",e.toLocaleDateString(c,{weekday:"long",day:"numeric",month:"long",year:"numeric"})),f(e)&&i.classList.add("mw-calendar-weekend"),o||e.getMonth()===t||i.classList.add("mw-calendar-adjacent"),n===d(r)&&(i.classList.add("mw-calendar-today"),i.setAttribute("aria-current","date")),n===s&&i.classList.add("mw-selected");const l=document.createElement("span");l.className="mw-calendar-date",l.textContent=e.getDate(),i.appendChild(l);const m=[].concat(a[n]||[]);if(m.length){const e=document.createElement("span");e.className="mw-calendar-dots",m.forEach(function(t){const n=document.createElement("span");n.className=t?"mw-calendar-dot mw-calendar-dot-"+t:"mw-calendar-dot",e.appendChild(n)}),i.appendChild(e)}return i}function p(){const e=i.getMonth(),a=o?7:42,c=l(o?i:new Date(i.getFullYear(),e,1));t.innerHTML="",w();for(let n=0;n<a;n++)t.appendChild(h(c,e)),c.setDate(c.getDate()+1);n&&(n.textContent=u()),g()}function g(){const e=t.querySelector(".mw-selected")||t.querySelector(".mw-calendar-today")||t.querySelector(".mw-calendar-day:not(.mw-calendar-adjacent)")||t.querySelector(".mw-calendar-day");e&&(e.tabIndex=0)}function y(n){s=n===s?"":n,t.querySelectorAll(".mw-calendar-day").forEach(function(e){const t=e.dataset.calendarDay===s;e.classList.toggle("mw-selected",t),e.setAttribute("aria-pressed",t?"true":"false")}),e.dispatchEvent(new CustomEvent("mw-calendar-select",{bubbles:!0,detail:{date:s}}))}function v(e){o?i.setDate(i.getDate()+7*e):i=new Date(i.getFullYear(),i.getMonth()+e,1),p()}function b(e){const n=d(e);let o=t.querySelector('[data-calendar-day="'+n+'"]');o||(i=new Date(e),p(),o=t.querySelector('[data-calendar-day="'+n+'"]')),o&&(t.querySelectorAll(".mw-calendar-day").forEach(function(e){e.tabIndex=-1}),o.tabIndex=0,o.focus())}e.addEventListener("click",function(e){const t=e.target.closest("[data-calendar-nav]");if(t)return void v(parseInt(t.dataset.calendarNav,10));const n=e.target.closest(".mw-calendar-day");n&&!n.disabled&&y(n.dataset.calendarDay)}),t.addEventListener("keydown",function(e){const t={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7}[e.key];if(!t)return;const n=e.target.closest(".mw-calendar-day");if(!n)return;e.preventDefault();const o=new Date(n.dataset.calendarDay+"T00:00:00");o.setDate(o.getDate()+t),b(o)}),p()}(e)})}(a),function(t){t.querySelectorAll(".mw-lang-switch").forEach(t=>{if(!o(t))return;const n=t.querySelectorAll("[data-mw-lang]"),a=t.querySelector("summary"),c=t.querySelector("summary .mw-flag"),r=t.querySelector("summary .mw-lang-switch-code");n.forEach(o=>{o.addEventListener("click",function(){const i=o.dataset.mwLang,s=o.querySelector(".mw-lang-switch-name"),l=s?s.textContent.trim():i;n.forEach(t=>{e(t,t===o),t===o?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")}),r&&(r.textContent=i);const d=o.querySelector(".mw-flag");c&&d&&(c.className=d.className),a&&a.setAttribute("aria-label","Language: "+l),t.dispatchEvent(new CustomEvent("mw-language-change",{bubbles:!0,detail:{lang:i,name:l}}))})})})}(a)}function i(){try{c()}catch(e){console.error("MaverickWave: page behaviour not initialised",e)}r(document)}function s(e){const t=e.querySelector('input[type="checkbox"]');if(!t)return;const n=t.checked;t.checked=!n,t.checked?e.classList.add("mw-selected"):e.classList.remove("mw-selected"),e.dispatchEvent(new CustomEvent("checkboxToggle",{detail:{checked:t.checked,item:e}}))}window.MaverickWave={init:function(e){c(),r(e)}},window.mwToggleCheckbox=s;const l={close:"M6 6l12 12M18 6L6 18",prev:"M15 5l-7 7 7 7",next:"M9 5l7 7-7 7"};function d(e,t,n){const o=document.createElement("button");return o.type="button",o.className=e,o.setAttribute("aria-label",t),o.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true"><path d="'+l[n]+'"/></svg>',o}function m(e){const t=e.naturalWidth||e.videoWidth||+e.getAttribute("width"),n=e.naturalHeight||e.videoHeight||+e.getAttribute("height");return t&&n?t/n:0}function u(e,t,n,o,a){function c(){const c=e.scrollWidth-e.clientWidth-2,r=e.children.length-1;a(e.scrollLeft>=c?r:Math.round(e.scrollLeft/t())),n.disabled=e.scrollLeft<=2,o.disabled=e.scrollLeft>=c}return n.addEventListener("click",()=>e.scrollBy({left:-t()})),o.addEventListener("click",()=>e.scrollBy({left:t()})),e.addEventListener("scroll",c,{passive:!0}),c}function f(e){const t=document.createElement("figure");t.className="mw-lightbox-slide";const n=document.createElement("img");n.dataset.src=e.href,n.alt=e.querySelector("img").alt,n.decoding="async",t.appendChild(n);const o=e.closest("figure"),a=o&&o.querySelector("figcaption");if(a){const e=document.createElement("figcaption");a.childNodes.forEach(t=>e.append(t.cloneNode(!0))),t.appendChild(e)}return t}function w(){const e=Array.from(document.querySelectorAll(".color-swatch")),t=e.map(e=>function(e){if(!e||"transparent"===e)return"#000000";const t=e=>Math.max(0,Math.min(255,Math.round(e))).toString(16).padStart(2,"0"),n=e.match(/color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+))?\)/);if(n){const e="#"+t(255*n[1])+t(255*n[2])+t(255*n[3]),o=void 0===n[4]?1:parseFloat(n[4]);return(o<1?`${e} / ${o}`:e).toUpperCase()}const o=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(!o)return e;const a="#"+t(o[1])+t(o[2])+t(o[3]),c=void 0===o[4]?1:parseFloat(o[4]);return(c<1?`${a} / ${c}`:a).toUpperCase()}(window.getComputedStyle(e).backgroundColor));e.forEach((e,n)=>{const o=e.parentElement.querySelector(".mw-text-muted");o&&(o.textContent=t[n])})}function h(){const e=parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop);return Number.isNaN(e)?0:e}function p(e){const t=e&&e.closest(".mw-faq-item");t&&(t.open=!0)}let g=null;function y(e){const t=e.querySelector(".mw-tabs-nav-item.mw-active, .mw-tabs-nav-item.active");t?(e.style.setProperty("--mw-tabs-marker-x",t.offsetLeft+"px"),e.style.setProperty("--mw-tabs-marker-w",t.offsetWidth),e.style.setProperty("--mw-tabs-marker-y",t.offsetTop+"px"),e.style.setProperty("--mw-tabs-marker-h",t.offsetHeight),e.setAttribute("data-mw-tabs-marker","")):e.removeAttribute("data-mw-tabs-marker")}function v(e){const t=e.getAttribute("data-tab");return t?document.getElementById(t):null}function b(e){const n=t(e);e.setAttribute("aria-selected",String(n)),e.tabIndex=n?0:-1}function E(t,n){t.forEach(t=>{const o=t===n;e(t,o),e(v(t),o),b(t)});const o=n.closest(".mw-tabs-nav");o&&y(o)}function k(e,t){let n;return function(){const o=this,a=arguments;clearTimeout(n),n=setTimeout(()=>e.apply(o,a),t)}}function x(){const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||e.includes("192.168.")}function L(e){e&&("DIALOG"===e.tagName?e.showModal():e.classList.add("mw-modal-open"))}function S(e,t){return e+Math.random()*(t-e)}function A(e){return e[Math.floor(Math.random()*e.length)]}function q(e,t){return(Math.random()<.5?-1:1)*S(e,t)}function M(e,t,n,o){const a=document.createElement("span");a.className="mw-occasion-particle mw-occasion-"+t+" mw-occasion-"+n,Object.keys(o).forEach(e=>a.style.setProperty(e,o[e])),e.appendChild(a)}function C(){const e=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--mw-occasion-amount"));return e>0?e:1}function D(e){return"soft"===e?S(.2,.6).toFixed(2)+" "+S(0,.5).toFixed(2)+" 1":e?"1 "+S(0,1).toFixed(2)+" 0.3":"z"}function F(e,t,n,o){for(let a=0;a<t;a++)M(e,A(n),o.rising?"rising":"falling",{"--mw-occasion-x":S(-5,100).toFixed(1)+"vw","--mw-occasion-drift":S(o.drift[0],o.drift[1]).toFixed(1)+"vw","--mw-occasion-size":S(o.size[0],o.size[1]).toFixed(1)+"px","--mw-occasion-time":S(o.time[0],o.time[1]).toFixed(2)+"s","--mw-occasion-delay":S(0,o.spread).toFixed(2)+"s","--mw-occasion-sway":S(6,22).toFixed(0)+"px","--mw-occasion-sway-time":S(1.2,2.4).toFixed(2)+"s","--mw-occasion-spin":q(.3,o.spin||.3).toFixed(2)+"turn","--mw-occasion-spin-time":S(2.5,5).toFixed(2)+"s","--mw-occasion-axis":D(o.flip)})}function N(e,t,n,o){for(let a=0;a<t;a++){const t=a%2==0;M(e,A(n),"bursting",{"--mw-occasion-x":t?"-2vw":"100vw","--mw-occasion-dx":(t?1:-1)*S(8,62)+"vw","--mw-occasion-peak":S(55,92)+"vh","--mw-occasion-size":S(o.size[0],o.size[1]).toFixed(1)+"px","--mw-occasion-time":S(2.6,3.6).toFixed(2)+"s","--mw-occasion-delay":(S(0,.35)+(a%3==2?.9:0)).toFixed(2)+"s","--mw-occasion-spin":q(1.5,o.spin).toFixed(2)+"turn","--mw-occasion-spin-time":S(.8,1.6).toFixed(2)+"s","--mw-occasion-axis":D(o.flip)})}}["wheel","touchstart"].forEach(e=>{window.addEventListener(e,()=>g=null,{passive:!0})}),window.mwOpenModal=e=>L(document.getElementById(e)),window.mwCloseModal=e=>{var t;(t=document.getElementById(e))&&("DIALOG"===t.tagName?t.close():t.classList.remove("mw-modal-open"))},window.mwRefreshColorSwatches=w,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()}();
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maverick-wave",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.38.0",
|
|
4
4
|
"config": {
|
|
5
|
-
"version_short": "5.
|
|
5
|
+
"version_short": "5.38"
|
|
6
6
|
},
|
|
7
7
|
"description": "A lightweight, modern CSS framework for building responsive websites with elegance and speed.",
|
|
8
8
|
"main": "src/js/main.js",
|
package/src/js/main.js
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
initCopyButtons();
|
|
52
52
|
initLocalhostIndicator();
|
|
53
53
|
initOccasions();
|
|
54
|
+
initFaqLinks();
|
|
54
55
|
warnMissingViewportFit();
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -1479,6 +1480,19 @@
|
|
|
1479
1480
|
return Number.isNaN(padding) ? 0 : padding;
|
|
1480
1481
|
}
|
|
1481
1482
|
|
|
1483
|
+
function openFaqItem(target) {
|
|
1484
|
+
const item = target && target.closest('.mw-faq-item');
|
|
1485
|
+
if (item) item.open = true;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
// Same-page anchors go through initSmoothScrolling and never fire hashchange
|
|
1489
|
+
function initFaqLinks() {
|
|
1490
|
+
const openFromHash = () =>
|
|
1491
|
+
openFaqItem(document.getElementById(location.hash.slice(1)));
|
|
1492
|
+
openFromHash();
|
|
1493
|
+
window.addEventListener('hashchange', openFromHash);
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1482
1496
|
// Anything the user does with the wheel or a finger outranks a running glide
|
|
1483
1497
|
let glide = null;
|
|
1484
1498
|
['wheel', 'touchstart'].forEach((type) => {
|
|
@@ -1542,6 +1556,7 @@
|
|
|
1542
1556
|
|
|
1543
1557
|
const targetElement = document.querySelector(targetId);
|
|
1544
1558
|
if (!targetElement) return;
|
|
1559
|
+
openFaqItem(targetElement);
|
|
1545
1560
|
|
|
1546
1561
|
const menuBtn = document.querySelector('.mw-menu-btn');
|
|
1547
1562
|
const nav = document.querySelector('.mw-navbar');
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
@use '../abstracts' as *;
|
|
2
|
+
|
|
3
|
+
@layer mw.components {
|
|
4
|
+
.mw-faq {
|
|
5
|
+
--mw-faq-gutter: 0px;
|
|
6
|
+
--mw-faq-icon: 2rem;
|
|
7
|
+
|
|
8
|
+
border-top: 1px solid var(--mw-border);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.mw-faq-item {
|
|
12
|
+
border-bottom: 1px solid var(--mw-border);
|
|
13
|
+
|
|
14
|
+
// A row from 0fr to 1fr and not a height to auto: auto only interpolates
|
|
15
|
+
// where interpolate-size exists, which is Chrome alone
|
|
16
|
+
&::details-content {
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-rows: 0fr;
|
|
19
|
+
transition:
|
|
20
|
+
grid-template-rows var(--mw-duration-slow) var(--mw-ease-out),
|
|
21
|
+
content-visibility var(--mw-duration-slow) allow-discrete;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[open]::details-content {
|
|
25
|
+
grid-template-rows: 1fr;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mw-faq-question {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
gap: spacing('4');
|
|
34
|
+
padding: spacing('4') var(--mw-faq-gutter);
|
|
35
|
+
list-style: none;
|
|
36
|
+
font-family: var(--mw-font-family-heading);
|
|
37
|
+
font-size: font-size('base');
|
|
38
|
+
font-weight: font-weight('medium');
|
|
39
|
+
line-height: 1.4;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
transition: color var(--mw-duration-base) var(--mw-ease-out);
|
|
42
|
+
@include tappable;
|
|
43
|
+
@include focus-ring-inset;
|
|
44
|
+
|
|
45
|
+
@include media-up('sm') {
|
|
46
|
+
padding-block: spacing('5');
|
|
47
|
+
font-size: font-size('md');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Safari before 18.4 draws its triangle here and not as ::marker
|
|
51
|
+
&::-webkit-details-marker {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
color: var(--mw-primary-text-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Plus into minus: the second layer is the vertical bar, folded to 0
|
|
60
|
+
&::after {
|
|
61
|
+
content: '';
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
width: var(--mw-faq-icon);
|
|
64
|
+
height: var(--mw-faq-icon);
|
|
65
|
+
border: 1px solid var(--mw-border-accent);
|
|
66
|
+
border-radius: radius('full');
|
|
67
|
+
background:
|
|
68
|
+
linear-gradient(currentColor, currentColor) center / 0.75rem 2px
|
|
69
|
+
no-repeat,
|
|
70
|
+
linear-gradient(currentColor, currentColor) center / 2px 0.75rem
|
|
71
|
+
no-repeat;
|
|
72
|
+
color: var(--mw-primary-text-color);
|
|
73
|
+
transition:
|
|
74
|
+
background-size var(--mw-duration-slow) var(--mw-ease-out),
|
|
75
|
+
background-color var(--mw-duration-base) var(--mw-ease-out),
|
|
76
|
+
border-color var(--mw-duration-base) var(--mw-ease-out),
|
|
77
|
+
color var(--mw-duration-base) var(--mw-ease-out),
|
|
78
|
+
rotate var(--mw-duration-slow) var(--mw-ease-out),
|
|
79
|
+
scale var(--mw-duration-fast) var(--mw-ease-out);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:hover::after {
|
|
83
|
+
border-color: var(--mw-primary-color);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:active::after {
|
|
87
|
+
scale: 0.88;
|
|
88
|
+
transition-duration: var(--mw-duration-instant);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[open] > & {
|
|
92
|
+
color: var(--mw-primary-text-color);
|
|
93
|
+
|
|
94
|
+
&::after {
|
|
95
|
+
rotate: 180deg;
|
|
96
|
+
border-color: var(--mw-primary-color);
|
|
97
|
+
background-color: var(--mw-primary-color);
|
|
98
|
+
background-size:
|
|
99
|
+
0.75rem 2px,
|
|
100
|
+
2px 0;
|
|
101
|
+
color: var(--mw-primary-accent-text-color);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// No padding-block here: a grid item keeps its padding in a 0fr row, so the
|
|
107
|
+
// shut answer would show a strip of it. The last margin is clipped instead.
|
|
108
|
+
.mw-faq-answer {
|
|
109
|
+
min-height: 0;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
padding-inline: var(--mw-faq-gutter);
|
|
112
|
+
hyphens: auto;
|
|
113
|
+
|
|
114
|
+
@include media-up('sm') {
|
|
115
|
+
padding-inline-end: calc(
|
|
116
|
+
var(--mw-faq-gutter) + var(--mw-faq-icon) + #{spacing('4')}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
> * {
|
|
121
|
+
max-width: 68ch;
|
|
122
|
+
margin-block: 0 spacing('3');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
> :last-child {
|
|
126
|
+
margin-bottom: spacing('5');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.mw-faq-cards {
|
|
131
|
+
--mw-faq-gutter: #{spacing('4')};
|
|
132
|
+
|
|
133
|
+
display: grid;
|
|
134
|
+
gap: spacing('3');
|
|
135
|
+
border-top: none;
|
|
136
|
+
|
|
137
|
+
@include media-up('sm') {
|
|
138
|
+
--mw-faq-gutter: #{spacing('5')};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
> .mw-faq-item {
|
|
142
|
+
border: 1px solid var(--mw-border);
|
|
143
|
+
background: var(--mw-card-background);
|
|
144
|
+
box-shadow: var(--mw-elevation-1);
|
|
145
|
+
@include surface;
|
|
146
|
+
transition:
|
|
147
|
+
border-color var(--mw-duration-base) var(--mw-ease-out),
|
|
148
|
+
box-shadow var(--mw-duration-base) var(--mw-ease-out);
|
|
149
|
+
|
|
150
|
+
&[open] {
|
|
151
|
+
border-color: var(--mw-primary-color);
|
|
152
|
+
box-shadow: var(--mw-elevation-3);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|