"use strict";!function(){var c,s,r,o=/^sect(\d)$/,n=document.querySelector(".nav-container"),i=document.querySelector(".nav-toggle"),l=(i.addEventListener("click",function(e){if(i.classList.contains("is-active"))return u(e);var t=document.documentElement;t.classList.add("is-clipped--nav"),i.classList.add("is-active"),n.classList.add("is-active"),t.addEventListener("click",u),v(e)}),n.addEventListener("click",v),n.querySelector("[data-panel=menu]"));function e(){var e,t,n=window.location.hash;if(n&&(n.indexOf("%")&&(n=decodeURIComponent(n)),!(e=l.querySelector('.nav-link[href="'+n+'"]')))){n=document.getElementById(n.slice(1));if(n)for(var i=n,a=document.querySelector("article.doc");(i=i.parentNode)&&i!==a;){var c=i.id;if((c=!c&&(c=i.className.match(o))?(i.firstElementChild||{}).id:c)&&(e=l.querySelector('.nav-link[href="#'+c+'"]')))break}}if(e)t=e.parentNode;else{if(!r)return;e=(t=r).querySelector(".nav-link")}t!==s&&(f(l,".nav-item.is-active").forEach(function(e){e.classList.remove("is-active","is-current-path","is-current-page")}),t.classList.add("is-current-page"),d(s=t),m(l,e))}function d(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 a(){this.classList.toggle("is-active")}function u(e){var t=document.documentElement;t.classList.remove("is-clipped--nav"),i.classList.remove("is-active"),n.classList.remove("is-active"),t.removeEventListener("click",u),v(e)}function v(e){e.stopPropagation()}function m(e,t){var n=e.getBoundingClientRect(),i=n.height,a=window.getComputedStyle(c);"sticky"===a.position&&(i-=n.top-parseFloat(a.top)),e.scrollTop=Math.max(0,.5*(t.getBoundingClientRect().height-i)+t.offsetTop)}function f(e,t){return[].slice.call(e.querySelectorAll(t))}l&&(c=n.querySelector(".nav"),s=l.querySelector(".is-current-page"),(r=s)?(d(s),m(l,s.querySelector(".nav-link"))):l.scrollTop=0,f(l,".nav-item-toggle").forEach(function(e){var t=e.parentElement,e=(e.addEventListener("click",a.bind(t)),function(e,t){e=e.nextElementSibling;if(e)return(!t||e[e.matches?"matches":"msMatchesSelector"](t))&&e}(e,".nav-text"));e&&(e.style.cursor="pointer",e.addEventListener("click",a.bind(t)))}),c.querySelector(".context").addEventListener("click",function(){var e=c.querySelector(".is-active[data-panel]"),t="menu"===e.dataset.panel?"explore":"menu";e.classList.toggle("is-active"),c.querySelector("[data-panel="+t+"]").classList.toggle("is-active")}),l.addEventListener("mousedown",function(e){1<e.detail&&e.preventDefault()}),l.querySelector('.nav-link[href^="#"]')&&(window.location.hash&&e(),window.addEventListener("hashchange",e)))}();
"use strict";!function(){var e=document.querySelector("aside.toc.sidebar");if(e){if(document.querySelector("body.-toc"))return e.parentNode.removeChild(e);var t=parseInt(e.dataset.levels||2);if(!(t<0)){for(var d,c,a=document.querySelector("article.doc"),n=[],o=0;o<=t;o++)n.push(o?".sect"+o+">h"+(o+1)+"[id]":"h1[id].sect0");if(i=n.join(","),!(d=[].slice.call((a||document).querySelectorAll(i))).length)return e.parentNode.removeChild(e);var s={},l=d.reduce(function(e,t){var n=document.createElement("a"),o=(n.textContent=t.textContent,s[n.href="#"+t.id]=n,document.createElement("li"));return o.dataset.level=parseInt(t.nodeName.slice(1))-1,o.appendChild(n),e.appendChild(o),e},document.createElement("ul")),i=e.querySelector(".toc-menu"),r=(i||((i=document.createElement("div")).className="toc-menu"),document.createElement("h3")),e=(r.textContent=e.dataset.title||"Contents",i.appendChild(r),i.appendChild(l),!document.getElementById("toc")&&a.querySelector("h1.page ~ :not(.is-before-toc)"));e&&((r=document.createElement("aside")).className="toc embedded",r.appendChild(i.cloneNode(!0)),e.parentNode.insertBefore(r,e)),window.addEventListener("load",function(){u(),window.addEventListener("scroll",u)})}}function u(){var o,i,t,e=window.pageYOffset,n=1.15*m(document.documentElement,"fontSize"),r=a.offsetTop;if(e&&window.innerHeight+e+2>=document.documentElement.scrollHeight)return c=Array.isArray(c)?c:Array(c||0),o=[],i=d.length-1,d.forEach(function(e,t){var n="#"+e.id;t===i||e.getBoundingClientRect().top+m(e,"paddingTop")>r?(o.push(n),c.indexOf(n)<0&&s[n].classList.add("is-active")):~c.indexOf(n)&&s[c.shift()].classList.remove("is-active")}),l.scrollTop=l.scrollHeight-l.offsetHeight,void(c=1<o.length?o:o[0]);Array.isArray(c)&&(c.forEach(function(e){s[e].classList.remove("is-active")}),c=void 0),d.some(function(e){if(e.getBoundingClientRect().top+m(e,"paddingTop")-n>r)return!0;t="#"+e.id}),t?t!==c&&(c&&s[c].classList.remove("is-active"),(e=s[t]).classList.add("is-active"),l.scrollHeight>l.offsetHeight&&(l.scrollTop=Math.max(0,e.offsetTop+e.offsetHeight-l.offsetHeight)),c=t):c&&(s[c].classList.remove("is-active"),c=void 0)}function m(e,t){return parseFloat(window.getComputedStyle(e)[t])}}();
"use strict";!function(){var o=document.querySelector("article.doc"),t=document.querySelector(".toolbar");function i(e){return e&&(~e.indexOf("%")?decodeURIComponent(e):e).slice(1)}function c(e){e&&(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)}window.addEventListener("load",function e(t){var n;(n=i(window.location.hash))&&(n=document.getElementById(n))&&(c.bind(n)(),setTimeout(c.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",c.bind(t))})}();
"use strict";!function(){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")}))}();
"use strict";document.addEventListener("DOMContentLoaded",function(){var t=Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"),0);0!==t.length&&t.forEach(function(e){e.addEventListener("click",function(t){t.stopPropagation(),e.classList.toggle("is-active"),document.getElementById(e.dataset.target).classList.toggle("is-active"),document.documentElement.classList.toggle("is-clipped--navbar")})})});
"use strict";function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Map"===(t="Object"===t&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=r[t];return a}!function(){var r=window.location.search;new URLSearchParams(r).has("raw")&&(["toolbar","nav-container","toc","header","footer"].forEach(function(r){_toConsumableArray(document.getElementsByClassName(r)).forEach(function(r){return r.remove()})}),[].filter.call(document.getElementsByTagName("a"),function(r){return 0<=r.className.indexOf("page")}).forEach(function(r){var e=new URL(r.href);e.setAttribute("search","raw"),r.href=e}))}();