!function(){"use strict";var a,c,r,s,t,e,l=/^sect(\d)$/,i=document.querySelector(".nav-container"),o=document.querySelector("#nav-toggle-1"),d=document.querySelector("#nav-toggle-2"),n=window.localStorage&&"open"===window.localStorage.getItem("sidebar");function u(){var e,t,n=window.location.hash;if(n&&(n.indexOf("%")&&(n=decodeURIComponent(n)),!(e=a.querySelector('.nav-link[href="'+n+'"]')))){n=document.getElementById(n.slice(1));if(n)for(var i=n,o=document.querySelector("article.doc");(i=i.parentNode)&&i!==o;){var c=i.id;if((c=c||(c=l.test(i.className))&&(i.firstElementChild||{}).id)&&(e=a.querySelector('.nav-link[href="#'+c+'"]')))break}}if(e)t=e.parentNode;else{if(!s)return;e=(t=s).querySelector(".nav-link")}t!==r&&(L(a,".nav-item.is-active").forEach(function(e){e.classList.remove("is-active","is-current-path","is-current-page")}),t.classList.add("is-current-page"),v(r=t),f(a,e))}function v(e){for(var t,n=e.parentNode;!(t=n.classList).contains("nav-menu");)"LI"===n.tagName&&t.contains("nav-item")&&t.add("is-active","is-current-path"),n=n.parentNode;e.classList.add("is-active")}function m(){var e,t,n,i;this.classList.toggle("is-active")&&(e=parseFloat(window.getComputedStyle(this).marginTop),t=this.getBoundingClientRect(),n=a.getBoundingClientRect(),0<(i=(t.bottom-n.top-n.height+e).toFixed()))&&(a.scrollTop+=Math.min((t.top-n.top-e).toFixed(),i))}function g(e){if(o.classList.contains("is-active"))return p(e);if(d.classList.contains("is-active"))return p(e);h(e);var e=document.documentElement,t=(e.classList.add("is-clipped--nav"),o.classList.add("is-active"),d.classList.add("is-active"),i.classList.add("is-active"),c.getBoundingClientRect()),n=window.innerHeight-Math.round(t.top);Math.round(t.height)!==n&&(c.style.height=n+"px"),e.addEventListener("click",p)}function p(e){h(e);e=document.documentElement;e.classList.remove("is-clipped--nav"),o.classList.remove("is-active"),d.classList.remove("is-active"),i.classList.remove("is-active"),e.removeEventListener("click",p)}function h(e){e.stopPropagation()}function f(e,t){var n=e.getBoundingClientRect(),i=n.height,o=window.getComputedStyle(c);"sticky"===o.position&&(i-=n.top-parseFloat(o.top)),e.scrollTop=Math.max(0,.5*(t.getBoundingClientRect().height-i)+t.offsetTop)}function L(e,t){return[].slice.call(e.querySelectorAll(t))}function S(e){var e=Math.max(250,e.x),e=Math.min(600,e);e=e,document.documentElement.style.setProperty("--nav-width",e+"px"),window.localStorage&&window.localStorage.setItem("nav-width",""+e)}o&&o.addEventListener("click",g),d&&d.addEventListener("click",g),i&&(i.addEventListener("click",h),a=i.querySelector("[data-panel=menu]")),a&&(c=i.querySelector(".nav"),r=a.querySelector(".is-current-page"),(s=r)?(v(r),f(a,r.querySelector(".nav-link"))):a.scrollTop=0,(t=a.querySelector(".nav-item.is-current-page.is-active"))&&t.querySelector(".nav-item-toggle")&&t.querySelector(".nav-link").addEventListener("click",function(e){return t.querySelector(".nav-item-toggle").click(),e.preventDefault(),!1}),L(a,".nav-item-toggle").forEach(function(e){var t=e.parentElement,e=(e.addEventListener("click",m.bind(t)),function(e,t){e=e.nextElementSibling;return(!e||!t||e[e.matches?"matches":"msMatchesSelector"](t))&&e}(e,".nav-text"));e&&(e.style.cursor="pointer",e.addEventListener("click",m.bind(t)))}),(e=document.querySelectorAll(".version-toggle"))&&e.forEach(function(e){var t=e.parentElement.parentElement;e.addEventListener("click",function(){t.classList.toggle("is-active")})}),document.querySelector("#browse-version").addEventListener("click",function(){MicroModal.show("modal-versions",{disableScroll:!0})}),document.querySelector("#nav-collapse-toggle").addEventListener("click",function(){n?document.body.classList.add("nav-sm"):document.body.classList.remove("nav-sm"),window.localStorage&&window.localStorage.setItem("sidebar",n?"close":"open"),n=!n}),a.querySelector('.nav-link[href^="#"]')&&(window.location.hash&&u(),window.addEventListener("hashchange",u)),document.querySelector(".nav-resize").addEventListener("mousedown",e=>{document.addEventListener("mousemove",S,!1),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",S,!1)},!1)}))}();
!function(){"use strict";document.querySelectorAll(".content article a").forEach(function(e){var t=window.location;t&&e.hostname&&e.hostname!==t.hostname&&(e.classList.add("external"),e.setAttribute("target","_blank"))});var e=document.querySelector("div.toc");if(e){if(document.querySelector("body.-toc"))return e.parentNode.removeChild(e);var t=parseInt(e.dataset.levels||2,10);if(!(t<0)){for(var o="article.doc",a=document.querySelector(o),n=[],i=0;i<=t;i++){var r=[o];if(i){for(var c=1;c<=i;c++)r.push((2===c?".sectionbody>":"")+".sect"+c);r.push("h"+(i+1)+"[id]")}else r.push("h1[id].sect0");n.push(r.join(">"))}f=n.join(","),m=a.parentNode;var d,s=[].slice.call((m||document).querySelectorAll(f));if(!s.length)return e.parentNode.removeChild(e);var l={},u=s.reduce(function(e,t){var o=document.createElement("a"),n=(o.textContent=t.textContent,l[o.href="#"+t.id]=o,document.createElement("li"));return n.dataset.level=parseInt(t.nodeName.slice(1),10)-1,n.appendChild(o),e.appendChild(n),e},document.createElement("ul")),m=e.querySelector(".toc-menu"),f=(m||((m=document.createElement("div")).className="toc-menu"),document.createElement("h3")),e=(f.textContent=e.dataset.title||"Contents",m.appendChild(f),m.appendChild(u),!document.getElementById("toc")&&a.querySelector("h1.page ~ :not(.is-before-toc)"));e&&((f=document.createElement("aside")).className="toc embedded",f.appendChild(m.cloneNode(!0)),e.parentNode.insertBefore(f,e)),window.addEventListener("load",function(){h(),window.addEventListener("scroll",h)})}}function h(){var n,i,t,e=window.pageYOffset,o=1.15*p(document.documentElement,"fontSize")+80,r=a.offsetTop;e&&window.innerHeight+e+2>=document.documentElement.scrollHeight?(d=Array.isArray(d)?d:Array(d||0),n=[],i=s.length-1,s.forEach(function(e,t){var o="#"+e.id;t===i||e.getBoundingClientRect().top+p(e,"paddingTop")>r?(n.push(o),d.indexOf(o)<0&&l[o].classList.add("is-active")):~d.indexOf(o)&&l[d.shift()].classList.remove("is-active")}),u.scrollTop=u.scrollHeight-u.offsetHeight,d=1<n.length?n:n[0]):(Array.isArray(d)&&(d.forEach(function(e){l[e].classList.remove("is-active")}),d=void 0),s.some(function(e){if(e.getBoundingClientRect().top+p(e,"paddingTop")-o>r)return!0;t="#"+e.id}),t?t!==d&&(d&&l[d].classList.remove("is-active"),(e=l[t]).classList.add("is-active"),u.scrollHeight>u.offsetHeight&&(u.scrollTop=Math.max(0,e.offsetTop+e.offsetHeight-u.offsetHeight)),d=t):d&&(l[d].classList.remove("is-active"),d=void 0))}function p(e,t){return parseFloat(window.getComputedStyle(e)[t])}}();
!function(){"use strict";var o=document.querySelector("article.doc"),t=document.querySelector(".header .navbar");function i(e){return e&&(~e.indexOf("%")?decodeURIComponent(e):e).slice(1)}function r(e){if(e){if(e.altKey||e.ctrlKey)return;window.location.hash="#"+this.id,e.preventDefault()}window.scrollTo(0,function e(t,n){return o.contains(t)?e(t.offsetParent,t.offsetTop+n):n}(this,0)-t.getBoundingClientRect().bottom-80)}window.addEventListener("load",function e(t){var n;(n=i(window.location.hash))&&(n=document.getElementById(n))&&(r.bind(n)(),setTimeout(r.bind(n),0)),window.removeEventListener("load",e)}),Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]')).forEach(function(e){var t;(t=i(e.hash))&&(t=document.getElementById(t))&&e.addEventListener("click",r.bind(t))})}();
!function(){"use strict";var t,e=document.querySelector(".page-versions .version-menu-toggle");e&&(t=document.querySelector(".page-versions"),e.addEventListener("click",function(e){t.classList.toggle("is-active"),e.stopPropagation()}),document.documentElement.addEventListener("click",function(){t.classList.remove("is-active")}))}();
!function(){"use strict";var t=document.querySelector(".navbar-burger");t&&t.addEventListener("click",function(t){t.stopPropagation(),document.documentElement.classList.toggle("is-clipped--navbar"),this.classList.toggle("is-active");t=document.getElementById(this.dataset.target);{var e;t.classList.toggle("is-active")&&(t.style.maxHeight="",e=window.innerHeight-Math.round(t.getBoundingClientRect().top),parseInt(window.getComputedStyle(t).maxHeight,10)!==e)&&(t.style.maxHeight=e+"px")}}.bind(t))}();
!function(){/*! Spring.io Asciidoctor Source Toolbox | ASL-2.0 License */
"use strict";var a=/^\$ (\S[^\\\n]*(\\\n(?!\$ )[^\\\n]*)*)(?=\n|$)/gm,o=/( ) *\\\n *|\\\n( ?) */g,c=/ +$/gm,d=window.navigator.clipboard;function r(e){this.removeEventListener(e.type,r),this.style.maxHeight=""}[].slice.call(document.querySelectorAll(".doc pre.highlight, .doc .content > pre:not([class])")).forEach(function(e){var t,n,i;if(e.classList.contains("highlight"))t=e.querySelector("code");else{if(!e.innerText.startsWith("$ "))return;var l=e.parentNode.parentNode;l.classList.remove("literalblock"),l.classList.add("listingblock"),e.classList.add("highlightjs","highlight"),(t=Object.assign(document.createElement("code"),{className:"language-console hljs"})).dataset.lang="console",t.appendChild(e.firstChild),e.appendChild(t)}var s,l=Object.assign(document.createElement("div"),{className:"source-toolbox"});e.querySelector(".fold-block")&&((i=Object.assign(document.createElement("button"),{className:"fold-button"})).setAttribute("title",i.dataset.foldedTitle="Expand foldable text"),i.dataset.unfoldedTitle="Collapse foldable text",l.appendChild(i)),d&&((n=Object.assign(document.createElement("button"),{className:"copy-button"})).setAttribute("title","Copy to clipboard"),(s=Object.assign(document.createElement("span"),{className:"copy-toast"})).appendChild(document.createTextNode("Copied!")),n.appendChild(s),l.appendChild(n)),(i||n)&&(e.appendChild(l),i&&i.addEventListener("click",function(e){var n=function(e){var t=e.querySelector(".scratch-block");return t||e.appendChild(Object.assign(document.createElement("div"),{className:"scratch-block",style:"clear: left; height: 0; overflow: hidden"}))}(e),i=e.classList.contains("is-unfolded")?"folded":"unfolded";[].slice.call(e.querySelectorAll(".fold-block")).forEach(function(e){var t;1!==e.classList.length&&(e.removeEventListener("transitionrun",r),e.removeEventListener("transitionend",r),e.classList.contains("is-hidden-"+i)?(e.style.maxHeight=Math.round(e.getBoundingClientRect().height)+"px",e.addEventListener("transitionrun",r)):(t=n.appendChild(e.cloneNode(!0)),e.style.maxHeight=Math.round(t.getBoundingClientRect().height)+"px",e.addEventListener("transitionend",r)))}),n.innerHTML="",this.setAttribute("title",this.dataset[i+"Title"]),e.classList["unfolded"==i?"add":"remove"]("is-unfolded")}.bind(i,t)),n)&&n.addEventListener("click",function(e){var t=e;e.querySelector(".fold-block")&&(t=e.cloneNode(!0),[].slice.call(t.querySelectorAll(".is-hidden-unfolded")).forEach(function(e){e.parentNode.removeChild(e)}));t=t.innerText.replace(c,"");"console"===e.dataset.lang&&t.startsWith("$ ")&&(t=function(e){var t,n=[];for(;t=a.exec(e);)n.push(t[1].replace(o,"$1$2"));return n.join(" && ")}(t));window.navigator.clipboard.writeText(t).then(function(){this.classList.add("clicked"),this.offsetHeight,this.classList.remove("clicked")}.bind(this),function(){})}.bind(n,t))})}();
!function(){"use strict";var e;(e=document.getElementById("switch-theme-checkbox"))&&(e.checked=document.documentElement.classList.contains("dark-theme"),e.addEventListener("change",function(){document.documentElement.classList.toggle("dark-theme",this.checked),document.documentElement.setAttribute("data-theme",this.checked?"dark":"light"),function(e){window.localStorage&&window.localStorage.setItem("theme",e)}(this.checked?"dark":"light"),this.checked?this.parentElement.classList.add("active"):this.parentElement.classList.remove("active")}.bind(e)))}();
!function(){"use strict";var t;(t=document.getElementById("copy-url"))&&t.addEventListener("click",function(t){var e=function(t){t=t.location.hash;return function(t){if(!t||"string"!=typeof t)return;return/^#[-.\w]+$/.test(t)}(t)?t:""}(window),e=document.querySelector('meta[name="versioned-url"]')?.content+e;window.navigator.clipboard.writeText(e),this.classList.add("copied"),setTimeout(()=>{this.classList.remove("copied")},1500)})}();