(()=>{"use strict";functione(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}constt=e=>"string"==typeofe&&/^[v\d]/.test(e)&&o.test(e),n=(e,t,n)=>{u(n);consto=((e,t)=>{constn=r(e),o=r(t),a=n.pop(),s=o.pop(),i=c(n,o);return0!==i?i:a&&s?c(a.split("."),s.split(".")):a||s?a?-1:1:0})(e,t);returnl[n].includes(o)},o=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,r=e=>{if("string"!=typeofe)thrownewTypeError("Invalid argument expected string");constt=e.match(o);if(!t)thrownewError(`Invalid argument not valid semver ('${e}' received)`);returnt.shift(),t},a=e=>"*"===e||"x"===e||"X"===e,s=e=>{constt=parseInt(e,10);returnisNaN(t)?e:t},i=(e,t)=>{if(a(e)||a(t))return0;const[n,o]=((e,t)=>typeofe!=typeoft?[String(e),String(t)]:[e,t])(s(e),s(t));returnn>o?1:n<o?-1:0},c=(e,t)=>{for(letn=0;n<Math.max(e.length,t.length);n++){consto=i(e[n]||"0",t[n]||"0");if(0!==o)returno}return0},l={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},d=Object.keys(l),u=e=>{if("string"!=typeofe)thrownewTypeError("Invalid operator type, expected string but got "+typeofe);if(-1===d.indexOf(e))thrownewError(`Invalid operator, expected one of ${d.join("|")}`)};varm=window.matchMedia("(prefers-color-scheme: dark)");functionh(e){document.documentElement.dataset.theme=m.matches?"dark":"light"}functionp(e){"light"!==e&&"dark"!==e&&"auto"!==e&&(console.error(`Got invalid theme mode: ${e}. Resetting to auto.`),e="auto");vart=m.matches?"dark":"light";document.documentElement.dataset.mode=e;varn="auto"==e?t:e;document.documentElement.dataset.theme=n,document.querySelectorAll(".dropdown-menu").forEach((e=>{"dark"===n?e.classList.add("dropdown-menu-dark"):e.classList.remove("dropdown-menu-dark")})),localStorage.setItem("mode",e),localStorage.setItem("theme",n),console.log(`[PST]: Changed to ${e} mode using the ${n} theme.`),m.onchange="auto"==e?h:""}functionf(){conste=document.documentElement.dataset.defaultMode||"auto",t=localStorage.getItem("mode")||e;varn,o;p(((o=(n=m.matches?["auto","light","dark"]:["auto","dark","light"]).indexOf(t)+1)===n.length&&(o=0),n[o]))}varg=()=>{lete=document.querySelectorAll("form.bd-search");returne.length?(1==e.length?e[0]:document.querySelector(":not(#pst-search-dialog) > form.bd-search")).querySelector("input"):void0},v=()=>{conste=g(),t=document.getElementById("pst-search-dialog");e===t.querySelector("input")?t.open?t.close():t.showModal():document.activeElement===e?e.blur():(e.focus(),e.select(),e.scrollIntoView({block:"center"}))},y=0===navigator.platform.indexOf("Mac")||"iPhone"===navigator.platform;constw=({currentTarget:e,clientX:t,clientY:n})=>{if(!e.open)return;const{left:o,right:r,top:a,bottom:s}=e.getBoundingClientRect();(t<o||r<t||n<a||s<n)&&e.close()};varE=()=>"dirhtml"==DOCUMENTATION_OPTIONS.BUILDER?DOCUMENTATION_OPTIONS.pagename.endsWith("index")?`${DOCUMENTATION_OPTIONS.pagename.substring(0,DOCUMENTATION_OPTIONS.pagename.length-5)}`:`${DOCUMENTATION_OPTIONS.pagename}/`:`${DOCUMENTATION_OPTIONS.pagename}.html`;asyncfunctionT(e){document.querySelector("#bd-header-version-warning").remove();constt=DOCUMENTATION_OPTIONS.VERSION,n=newDate,o=JSON.parse(localStorage.getItem("pst_banner_pref")||"{}");console.debug(`[PST] Dismissing the version warning banner on ${t} starting ${n}.`),o[t]=n,localStorage.setItem("pst_banner_pref",JSON.stringify(o))}asyncfunctionS(e){e.preventDefault();constt=E();letn=e.currentTarget.getAttribute("href"),o=n.replace(t,"");try{(awaitfetch(n,{method:"HEAD"})).ok?location.href=n:location.href=o}catch(e){location.href=o}}asyncfunctionb(){vare=document.querySelectorAll(".version-switcher__button");consto=e.length>0,r=DOCUMENTATION_OPTIONS.hasOwnProperty("theme_switcher_json_url"),a=DOCUMENTATION_OPTIONS.show_version_warning_banner;if(r&&(o||a)){consto=awaitasyncfunction(e){constt=E();try{varn=newURL(e)}catch(o){if(!(oinstanceofTypeError))throwo;{"file:"==window.location.protocol&&console.info("[PST]lookslikeyou