1"use strict";function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return _regeneratorDefine2(s,"_invoke",function(n,r,o){var a,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return a=t,l=0,c=e,f.n=n,i}};function h(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,a=u[t],h=f.p,g=a[2];n>3?(o=g===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=h&&((o=n<2&&h<a[1])?(l=0,f.v=r,f.n=a[1]):h<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,f.n=g,l=0))}if(o||n>1)return i;throw d=!0,r}return function(o,u,g){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,g),l=u,c=g;(t=l<2?e:c)||!d;){a||(l?l<3?(l>1&&(f.n=-1),h(l,c)):f.n=c:f.v=c);try{if(s=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a["return"])&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(t){a=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,a),!0),s}var i={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,_regeneratorDefine2(d,"constructor",s),_regeneratorDefine2(s,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine2(s,o,"GeneratorFunction"),_regeneratorDefine2(d),_regeneratorDefine2(d,o,"Generator"),_regeneratorDefine2(d,r,function(){return this}),_regeneratorDefine2(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:f}})()}function _regeneratorDefine2(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine2=function(e,t,n,r){function a(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},_regeneratorDefine2(e,t,n,r)}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,l,"next",e)}function l(e){asyncGeneratorStep(a,r,o,i,l,"throw",e)}i(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_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(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var util={diffDate:function(e){var t,n=arguments.length>1&&arguments[1]!==undefined&&arguments[1],r=new Date,o=new Date(e),a=r.getTime()-o.getTime(),i=36e5,l=24*i;if(n){var c=a/l,s=a/i,u=a/6e4;t=c>14?null:c>=1?parseInt(c)+" "+ctx.date_suffix.day:s>=1?parseInt(s)+" "+ctx.date_suffix.hour:u>=1?parseInt(u)+" "+ctx.date_suffix.min:ctx.date_suffix.just}else t=parseInt(a/l);return t},copy:function(e,t){var n=document.getElementById(e);n&&(n.select(),navigator.clipboard.writeText(n.value).then(function(){t&&t.length>0&&hud.toast(t,2500)})["catch"](function(){}))},toggle:function(e){var t=document.getElementById(e);t&&t.classList.toggle("display")},scrollTop:function(){smoothScrollTo(0)},scrollComment:function(){var e=document.getElementById("comments");e&&smoothScrollTo(e.getBoundingClientRect().top+window.scrollY-32)},viewportLazyload:function(e,t){if((!(arguments.length>2&&arguments[2]!==undefined)||arguments[2])&&"IntersectionObserver"in window){var n=new IntersectionObserver(function(e){e[0].intersectionRatio>0&&(t(),n.disconnect())});n.observe(e)}else t()}}
1,hud={toast:function(e,t){var n=Number(isNaN(t)?2e3:t),r=document.createElement("div");r.classList.add("toast"),r.classList.add("show"),r.innerHTML=e,document.body.appendChild(r),setTimeout(function(){document.body.removeChild(r)},n)}},siteShell=document.querySelector(".site-shell"),leftbarStateKey="stellar:v2:leftbar-state",leftbarDrawerQuery="(max-width: 768px)",leftbarHiddenQuery="(max-width: 768px)",rightbarDrawerQuery="(max-width: 1180px)",shellDrawerTrigger=null,searchDialogTrigger=null,searchDialogRestoreFocus=!0,searchCloseFallbackDelay=260,searchCloseTimer=null,searchCloseListener=null,shellInputModality="pointer";function regionElement(e){return document.getElementById(e+"-region")}function regionUsesDrawer(e){return"function"==typeof window.matchMedia&&window.matchMedia("leftbar"===e?leftbarDrawerQuery:rightbarDrawerQuery).matches}function regionHiddenWhenClosed(e){return"function"==typeof window.matchMedia&&("leftbar"===e?window.matchMedia(leftbarHiddenQuery).matches:regionUsesDrawer(e))}function setRegionInteractive(e,t){var n=regionElement(e);if(n){var r=regionHiddenWhenClosed(e);n.inert=r&&!t,r&&!t?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden")}}function syncLeftbarControls(){syncRightbarFocus();var e=regionUsesDrawer("leftbar"),t=e?"leftbar"===(null==siteShell?void 0:siteShell.dataset.drawer):"collapsed"!==document.documentElement.dataset.leftbarState;document.querySelectorAll('[data-shell-action="toggle-leftbar"]').forEach(function(n){n.setAttribute("aria-expanded",String(t)),n.setAttribute("aria-label",e?t?"Close leftbar":"Open leftbar":t?"Collapse leftbar":"Expand leftbar")})}function syncRightbarFocus(){var e=regionElement("rightbar");e&&(!regionUsesDrawer("rightbar")&®ionElement("leftbar")&&"collapsed"===document.documentElement.dataset.leftbarState?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))}function syncDrawerControls(){syncRightbarFocus();var e=(null==siteShell?void 0:siteShell.dataset.drawer)||"";["leftbar","rightbar"].forEach(function(t){var n=e===t&®ionUsesDrawer(t);document.querySelectorAll('[data-shell-action="toggle-'+t+'-drawer"]').forEach(function(e){e.setAttribute("aria-expanded",String(n)),e.setAttribute("aria-label",(n?"Close ":"Open ")+t)}),setRegionInteractive(t,n||!regionUsesDrawer(t))})}function focusRegion(e){var t,n=regionElement(e);null==n||null===(t=n.querySelector('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'))||void 0===t||t.focus()}function _dismissDrawer(e){var t;if(siteShell){var n=!1!==(null==e?void 0:e.restoreFocus),r=!!siteShell.dataset.drawer;delete siteShell.dataset.drawer,syncDrawerControls(),syncLeftbarControls(),r&&n&&null!==(t=shellDrawerTrigger)&&void 0!==t&&t.focus&&shellDrawerTrigger.focus(),r&&(shellDrawerTrigger=null)}}function toggleDrawer(e,t){siteShell&®ionUsesDrawer(e)&®ionElement(e)&&(siteShell.dataset.drawer===e?_dismissDrawer():(shellDrawerTrigger=t||document.activeElement,siteShell.dataset.drawer=e,syncDrawerControls(),syncLeftbarControls(),focusRegion(e)))}function toggleLeftbarState(){var e=document.documentElement,t="collapsed"===e.dataset.leftbarState?"expanded":"collapsed";e.dataset.leftbarState=t;try{localStorage.setItem(leftbarStateKey,t)}catch(n){}syncLeftbarControls()}function _toggleLeftbar(e){regionUsesDrawer("leftbar")?toggleDrawer("leftbar",e):toggleLeftbarState()}function searchDialogElement(){return document.getElementById("site-search-dialog")}function searchScopeOption(e,t){return null==e?void 0:e.querySelector('[data-search-scope-option="'+t+'"]')}function applySearchScope(e,t){var n=!(arguments.length>2&&arguments[2]!==undefined)||arguments[2],r=null==e?void 0:e.querySelector(".search-input"),o=null==e?void 0:e.querySelector(".search-dialog__scope");if(r&&o){var a=["all","blog","current"].includes(t)?t:"all",i=searchScopeOption(e,a),l=null==i?void 0:i.querySelector('input[type="radio"]');i&&!i.hidden&&l&&(r.dataset.domain="current"===a?o.dataset.currentDomain||"":"blog"===a?"blog":"",l.checked=!0,n&&r.value.trim().length>0&&r.dispatchEvent(new Event("input",{bubbles:!0})))}}function searchMotionEnabled(){return"function"!=typeof window.matchMedia||!window.matchMedia("(prefers-reduced-motion: reduce)").matches}function configureSearchScope(e,t){var n,r,o,a=null==e?void 0:e.querySelector(".search-dialog__scope");if(!a)return!1;var i=searchScopeOption(e,"blog"),l=searchScopeOption(e,"current"),c=null==l?void 0:l.querySelector("[data-search-scope-current-label]"),s=(null==t||null===(n=t.dataset)||void 0===n?void 0:n.searchDomain)||"",u="true"===(null==t||null===(r=t.dataset)||void 0===r?void 0:r.searchDomainBlog),d=s.length>0&&"blog"!==s;return i.hidden=!u,l.hidden=!d,c&&(c.textContent=(null==t||null===(o=t.dataset)||void 0===o?void 0:o.searchDomainLabel)||""),a.dataset.currentDomain=s,a.hidden=1+Number(u)+Number(d)<2,applySearchScope(e,d?"current":u?"blog":"all",!1),!0}function clearSearchClosePending(e){null!==searchCloseTimer&&(clearTimeout(searchCloseTimer),searchCloseTimer=null),searchCloseListener&&(e.removeEventListener("animationend",searchCloseListener),searchCloseListener=null),e.classList.remove("is-closing")}function syncSearchScrollbarGutter(){var e=document.documentElement;if(!e.hasAttribute("data-search-open")){var t=Math.max(0,window.innerWidth-e.clientWidth);e.style.setProperty("--stellar-scrollbar-gutter",t+"px")}}function finishSearchClose(e){var t,n;clearSearchClosePending(e),e.open&&e.close(),document.documentElement.removeAttribute("data-search-open"),searchDialogRestoreFocus&&null!==(t=searchDialogTrigger)&&void 0!==t&&t.focus?searchDialogTrigger.focus():null!==(n=searchDialogTrigger)&&void 0!==n&&n.blur&&searchDialogTrigger.blur(),searchDialogTrigger=null,searchDialogRestoreFocus=!0}function _closeSearch(){var e=searchDialogElement();null!=e&&e.open&&null===searchCloseTimer&&(searchMotionEnabled()?(searchCloseListener=function(t){"search-dialog-out"===t.animationName&&finishSearchClose(e)},e.classList.add("is-closing"),e.addEventListener("animationend",searchCloseListener),searchCloseTimer=setTimeout(function(){finishSearchClose(e)},searchCloseFallbackDelay)):finishSearchClose(e))}function _openSearch(e){var t=!(arguments.length>1&&arguments[1]!==undefined)||arguments[1],n=searchDialogElement(),r=null==n?void 0:n.querySelector(".search-input"),o=null==n?void 0:n.querySelector(".search-wrapper"),a=null==n?void 0:n.querySelector(".search-result");if(n&&r){var i;if(clearSearchClosePending(n),searchDialogTrigger=e||document.activeElement,searchDialogRestoreFocus=t,r.value="",!configureSearchScope(n,e))r.dataset.algoliaFilterPath=(null==e||null===(i=e.dataset)||void 0===i?void 0:i.algoliaFilterPath)||"";o&&(o.setAttribute("searching","false"),o.classList.remove("noresult")),null==a||a.replaceChildren(),n.open||n.showModal(),syncSearchScrollbarGutter(),document.documentElement.setAttribute("data-search-open",""),r.focus()}}function _toggleToc(e){var t=document.querySelector("#data-toc");if(t){var n=t.classList.toggle("collapse");null==e||e.classList.toggle("is-active",n),null==e||e.setAttribute("aria-pressed",String(n))}}var shellActions={"toggle-leftbar-drawer":function(e){toggleDrawer("leftbar",e)},"toggle-rightbar-drawer":function(e){toggleDrawer("rightbar",e)},"dismiss-drawer":function(){_dismissDrawer()},"toggle-leftbar":function(e){_toggleLeftbar(e)},"open-search":function(e){_openSearch(e,"pointer"!==shellInputModality)},"close-search":function(){_closeSearch()},"toggle-toc":function(e){_toggleToc(e)}};syncLeftbarControls(),syncDrawerControls(),document.addEventListener("pointerdown",function(){shellInputModality="pointer"}),document.addEventListener("click",function(e){var t,n,r,o=null===(t=e.target)||void 0===t||null===(n=t.closest)||void 0===n?void 0:n.call(t,"[data-shell-action]"),a=null==o||null===(r=o.dataset)||void 0===r?void 0:r.shellAction;a&&"function"==typeof shellActions[a]&&(e.preventDefault(),shellActions[a](o))}),document.addEventListener("keydown",function(e){var t;
1(shellInputModality="keyboard","Escape"===e.key)&&(null!==(t=searchDialogElement())&&void 0!==t&&t.open?_closeSearch():_dismissDrawer())});var searchDialog=searchDialogElement();null==searchDialog||searchDialog.addEventListener("cancel",function(e){e.preventDefault(),_closeSearch()}),null==searchDialog||searchDialog.addEventListener("click",function(e){e.target===searchDialog&&_closeSearch()}),null==searchDialog||searchDialog.addEventListener("change",function(e){var t;"site-search-scope"===(null===(t=e.target)||void 0===t?void 0:t.name)&&applySearchScope(searchDialog,e.target.value)}),"function"==typeof window.matchMedia&&[leftbarDrawerQuery,leftbarHiddenQuery,rightbarDrawerQuery].filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return window.matchMedia(e)}).forEach(function(e){var t=function(){_dismissDrawer({restoreFocus:!1}),syncDrawerControls()};"function"==typeof e.addEventListener?e.addEventListener("change",t):"function"==typeof e.addListener&&e.addListener(t)});var scrollAnim=null;function cancelSmoothScroll(){null!==scrollAnim&&(cancelAnimationFrame(scrollAnim),scrollAnim=null)}function smoothScrollTo(e){cancelSmoothScroll(),e=Math.max(0,e);var t=window.scrollY,n=e-t;if(!(Math.abs(n)<2)){var r=Math.min(600,Math.max(300,.15*Math.abs(n))),o=performance.now();scrollAnim=requestAnimationFrame(function e(a){var i=Math.min(1,(a-o)/r),l=1-Math.pow(1-i,3);window.scrollTo({top:t+n*l,behavior:"instant"}),scrollAnim=i<1?requestAnimationFrame(e):null})}}window.addEventListener("wheel",cancelSmoothScroll,{passive:!0}),window.addEventListener("touchstart",cancelSmoothScroll,{passive:!0});var tocClickBound=new WeakMap;function rebuildToc(e){var t=document.querySelector("#data-toc");if(t){var n=t.querySelector(".widget-body");if(n){var r=(e&&e.closest?e.closest("article.md-text"):null)||document.querySelector("article.md-text");if(r){var o=r.querySelectorAll("h1,h2,h3,h4,h5,h6");if(0!==o.length){var a=document.createElement("ol");a.className="toc ui-collection-adapter";var i=[];o.forEach(function(e){var t=e.id;if(t){var n=parseInt(e.tagName.substring(1),10),r=document.createElement("li");r.className="toc-item toc-level-"+n;var o=document.createElement("a");o.className="toc-link "+ctx.ui.classes.interactive,o.href="#"+encodeURIComponent(t);var l=document.createElement("span");for(l.className="toc-text",l.textContent=e.textContent.trim(),o.appendChild(l),r.appendChild(o);i.length>0&&i[i.length-1].level>=n;)i.pop();if(0===i.length)a.appendChild(r);else{var c=i[i.length-1];c.childOl||(c.childOl=document.createElement("ol"),c.childOl.className="toc-child",c.li.appendChild(c.childOl)),c.childOl.appendChild(r)}i.push({level:n,li:r})}}),n.innerHTML="",n.appendChild(a),bindTocClick(t)}}}}}function bindTocIndicator(e){var t=null,n=function(){t=null;var n=e.querySelector(".toc");if(n){var r=n.querySelector("a.toc-link.active");if(!r||!r.getClientRects().length)return n.style.removeProperty("--toc-active-height"),void n.style.setProperty("--toc-active-opacity","0");var o=r.getBoundingClientRect();n.style.setProperty("--toc-active-y",o.top-n.getBoundingClientRect().top+"px"),n.style.setProperty("--toc-active-height",o.height+"px"),n.style.setProperty("--toc-active-opacity","1")}},r=function(){null===t&&(t=requestAnimationFrame(n))},o=new MutationObserver(r);o.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class","collapse"]}),o.observe(document.documentElement,{attributes:!0,attributeFilter:["data-leftbar-state"]});var a=new ResizeObserver(r);a.observe(e);var i=["mouseenter","mouseleave","focusin","focusout","transitionend"];return i.forEach(function(t){return e.addEventListener(t,r)}),window.addEventListener("resize",r),r(),function(){o.disconnect(),a.disconnect(),i.forEach(function(t){return e.removeEventListener(t,r)}),window.removeEventListener("resize",r),null!==t&&cancelAnimationFrame(t)}}function bindTocClick(e){if(tocClickBound.has(e))return tocClickBound.get(e);var t=function(e){var t=e.target.closest("a.toc-link");if(t){var n=t.getAttribute("href"),r=n&&0===n.indexOf("#")?decodeURIComponent(n.slice(1)):null,o=r&&document.getElementById(r);if(o){e.preventDefault();smoothScrollTo(o.getBoundingClientRect().top+window.scrollY-32),_dismissDrawer(),window.history&&window.history.pushState&&window.history.pushState(window.history.state,"",n)}}};e.addEventListener("click",t);var n=bindTocIndicator(e),r=function(){n(),e.removeEventListener("click",t),tocCl
1ickBound["delete"](e)};return tocClickBound.set(e,r),r}function bindAnchorClick(){document.addEventListener("click",function(e){var t=e.target.closest('a[href^="#"]');if(t&&!e.defaultPrevented){var n=t.getAttribute("href");if(n&&0===n.indexOf("#")){var r=n.slice(1);try{r=decodeURIComponent(r)}catch(i){}var o=r&&document.getElementById(r);if(o){e.preventDefault();var a="start"===r?0:32;smoothScrollTo(o.getBoundingClientRect().top+window.scrollY-a),window.history&&window.history.pushState&&window.history.pushState(window.history.state,"",n)}}}})}bindAnchorClick(),document.addEventListener("stellar:mdrender",function(e){rebuildToc(e.detail&&e.detail.target)});var init={toc:function(){var e=null;window.addEventListener("scroll",function(){!function(){for(var e=utils.qsa("article.md-text h1, article.md-text h2, article.md-text h3, article.md-text h4, article.md-text h5, article.md-text h6"),t=window.scrollY,n=null,r=0;r<e.length;r++){var o=e[r].getBoundingClientRect().top+window.scrollY;o>t+32+4||(!n||o>=n.getBoundingClientRect().top+window.scrollY)&&(n=e[r])}if(n){utils.dom("#data-toc a.toc-link").removeClass("active");var a=n.getAttribute("id"),i=a?"#"+a:"#undefined";if("#undefined"!=i){var l=utils.dom('#data-toc a.toc-link[href="'+encodeURI(i)+'"]');l.length>0&&l.addClass("active")}else{var c=utils.qs("#data-toc a.toc-link");c&&c.classList.add("active")}}}(),null!==e&&clearTimeout(e),e=setTimeout(function(){!function(){var e=document.querySelector("#data-toc .toc a.toc-link.active");if(e&&e.getClientRects().length)for(var t=e.parentElement;t&&t!==document.body;t=t.parentElement)if(/^(auto|scroll)$/.test(getComputedStyle(t).overflowY)&&!(t.scrollHeight<=t.clientHeight)){var n=t.getBoundingClientRect(),r=Math.max(0,n.top+t.clientTop),o=Math.min(window.innerHeight,n.top+t.clientTop+t.clientHeight);if(o<=r||n.right<=0||n.left>=window.innerWidth)return;var a=e.getBoundingClientRect(),i=Math.min(100,Math.max(0,(o-r-a.height)/2)),l=r+i,c=o-i,s=0;return a.top<l?s=a.top-l:a.bottom>c&&(s=Math.min(a.bottom-c,a.top-l)),void(s&&t.scrollBy({top:s,behavior:"smooth"}))}}()},50)})},tocLinks:function(e){var t="data-toc"===e.id?e:e.querySelector("#data-toc");if(t)return bindTocClick(t)},wikiStart:function(){utils.dom("#site-cover .cover-content.wiki .start-wrap a.button.start").click(function(e){var t=this.getAttribute("href"),n=t&&0===t.indexOf("#")?decodeURIComponent(t.slice(1)):null,r=n&&document.getElementById(n);if(r){e.preventDefault();smoothScrollTo(r.getBoundingClientRect().top+window.scrollY-0),window.history&&window.history.pushState&&window.history.pushState(window.history.state,"",t)}})},wikiCover:function(){document.querySelectorAll(".wiki-cover-terminal").forEach(function(e){var t=e.querySelector("pre code"),n=e.querySelectorAll('[role="tab"]');function r(n){var r=n.split(/\r?\n/).filter(function(e){return e.trim().length>0});e.dataset.codes=r.join("\n"),t.innerHTML="",r.forEach(function(e){var n=document.createElement("span");n.textContent=e,t.appendChild(n)})}n.length>0&&r(n[0].getAttribute("data-codes")||""),n.forEach(function(e){e.addEventListener("click",function(){n.forEach(function(t){var n=t===e;t.classList.toggle("active",n),t.setAttribute("aria-selected",n?"true":"false")}),r(e.getAttribute("data-codes")||"")})});var o=e.querySelector(".wiki-cover-copy");o&&o.addEventListener("click",function(){var t=e.dataset.codes||"";t&&navigator.clipboard&&navigator.clipboard.writeText(t).then(function(){hud.toast(o.getAttribute("data-copy-message")||"Copied",2500)})["catch"](function(){})})})},leftbarScroll:function(){var e=document.querySelector(".site-region--leftbar .site-region__body");if(null!=e){var t="Stellar.leftbarScroll.",n=function(e){return encodeURIComponent(String(e||""))};window.addEventListener("pagehide",function(){try{var n=u();sessionStorage.setItem(t+n,String(e.scrollTop)),sessionStorage.setItem(t+"last",n)}catch(r){}});try{var r=u();if(sessionStorage.getItem(t+"last")!==r)return;var o=sessionStorage.getItem(t+r);if(null==o)return;e.scrollTop=parseInt(o,10)||0;var a=e.querySelector(".ui-collection__item.is-active");if(null==a)return;var i=e.getBoundingClientRect(),l=a.getBoundingClientRect(),c=l.top-i.top,s=l.bottom-i.top;c<0?e.scrollTop+=c-16:s>e.clientHeight&&(e.scrollTop+=s-e.clientHeight+16)}catch(d){}}function u(){var e=document.querySelector(".doc-tree-widget[data-wiki]");if(null!=e)return"wiki:"+n(e.getAttribute("data-wiki"));var t=document.querySelector("widget[data-notebook]");if(null!=t)return"notebook:"+n(t.getAttribute("data-notebook"));var r=document.body;return"layout:"+n(r&&r.dataset.pageLayout||"default")}},listingNavPin:function(e,t){var n=e.querySelectorAll(".listing-nav");if(0!==n.length){var r=[],o=!1;window.addEventListener("scroll",function(){o||(o=!0,utils.requestAnimationFrame(function(){t.aborted||a(),o=!1}))},{passive:!0,signal:t}
1),window.visualViewport&&window.visualViewport.addEventListener("resize",a,{signal:t}),window.addEventListener("resize",i,{signal:t}),window.addEventListener("pageshow",i,{signal:t}),i()}function a(){var e=window.scrollY>=2;r.forEach(function(t){var n=t.listingNav.getBoundingClientRect().top;t.surface.classList.toggle("is-pinned",e&&n<=t.stickyTop+2)})}function i(){r=[],n.forEach(function(e){var t=e.querySelector(".listing-nav__surface");if(null!=t){var n=parseFloat(getComputedStyle(e).top)||16;r.push({listingNav:e,surface:t,stickyTop:n})}}),a()}},relativeDate:function(e){e.forEach(function(e){var t=e,n=t.getAttribute("datetime"),r=util.diffDate(n,!0);r&&(t.innerText=r)})},registerTabsTag:function(e,t){var n=e.querySelectorAll(".tabs .nav-tabs .tab");n.length&&(n.forEach(function(e){e.addEventListener("click",function(t){if(t.preventDefault(),!e.classList.contains("active")){_toConsumableArray(e.parentNode.children).forEach(function(t){t.classList.toggle("active",t===e)});var n=document.getElementById(e.querySelector("a").getAttribute("href").replace("#",""));_toConsumableArray(n.parentNode.children).forEach(function(e){e.classList.toggle("active",e===n)}),n.dispatchEvent(new Event("tabs:click",{bubbles:!0}))}},{signal:t})}),window.dispatchEvent(new Event("tabs:register")))},canonicalCheck:function(){var e,t=window.canonical,n=function(){try{return atob(t.encoded||"")||t.host||""}catch(e){return t.host||""}};function r(){return new Promise(function(e){if(n()!==window.location.hostname){var t="https://".concat(n()).concat(window.canonical.param.checklink),r=document.createElement("script");r.src=t,r.type="text/javascript",r.onload=function(){e(!0)},r.onerror=function(){e(!1)},document.head.appendChild(r)}else e(!0)})}function o(){return a.apply(this,arguments)}function a(){return a=_asyncToGenerator(_regenerator().m(function e(){var o,a,i,l,c,s,u=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(o=u.length>0&&u[0]!==undefined&&u[0],(a=document.createElement("meta")).name="robots",a.content="noindex, nofollow",document.head.appendChild(a),i=document.createElement("div"),l="https://".concat(n()),c=l,t.param.permalink&&t.param.permalink.startsWith("http"))try{s=new URL(t.param.permalink),c="".concat(l).concat(s.pathname).concat(s.search)}catch(d){}if(!o){e.n=3;break}return e.n=1,r();case 1:if(e.v){e.n=2;break}return e.a(2);case 2:i.className="canonical-tip official",i.innerHTML='\n <a href="'.concat(c,'" target="_self" rel="noopener noreferrer">\n æ¬ç«ä¸ºå®æ¹å¤ç¨ç«ï¼ä» ä¾åºæ¥ãç¹å»ç§»æ¥ä¸»ç«<br>').concat(l,"\n </a>\n "),e.n=4;break;case 3:i.className="canonical-tip unofficial",i.innerHTML='\n <a href="'.concat(c,'" target="_self" rel="noopener noreferrer">\n <div class="headline icon">â ï¸</div>\n æ¬ç«ä¸ºéæ³å éç«ï¼è¯·åå¾å®æ¹æºç«è®¿é®ã<br>\n æºç«ï¼').concat(l,"\n </a>\n ");case 4:document.body.appendChild(i);case 5:return e.a(2)}},e)})),a.apply(this,arguments)}if(n()){var i=new URL(window.location.href).hostname.replace(/^www\./,"");if("localhost"!=i){var l=window.btoa(i),c=t.encoded===l,s=document.querySelector('link[rel="canonical"]');if(!s){var u;if(c)return;return null!==(u=t.allowedHosts)&&void 0!==u&&u.includes(i)?void o(!0):void o(!1)}var d=new URL(s.href).hostname.replace(/^www\./,""),f=window.btoa(d);t.encoded===f&&c||o(null===(e=t.allowedHosts)||void 0===e?void 0:e.includes(i))}}}};window.stellar=window.stellar||{},stellar.toast=hud.toast,stellar.initPage=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document,t=new AbortController,n=init.tocLinks(e);return init.listingNavPin(e,t.signal),init.relativeDate(e.querySelectorAll("#post-meta time")),init.registerTabsTag(e,t.signal),function(){t.abort(),null==n||n()}},stellar.syncPageShell=function(){_dismissDrawer(),syncDrawerControls()},init.toc(),init.wikiStart(),init.wikiCover(),init.leftbarScroll(),init.canonicalCheck(); 2//# sourceMappingURL=../maps/js/main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.