1import{D as e}from"./default-renderer-B6hd38wO.js";/* empty css *//* empty css *//* empty css */import{Y as t,b as o}from"./HeaderLogoLetters-CMLHzChc.js";import{A as r}from"./ArticleThemeToggle-DuL0YjFW.js";import{s as i,t as s}from"./incrementEntryViewCountFromPage-B4JYzT2Z.js";import"./app-BiaPDw27.js";import"./refreshNavbarAuth-V-4DhXEm.js";import"./lazyDialog-CU88mIO4.js";import"./SplitText-VLUCmDhw.js";import"./distributeProjectAuthorCard-W_A8WnxX.js";import"./SocialPosts-Sl2W8KRq.js";import"./patchCommentsProtect-0fppbX_Y.js";import"./loadEmojiPicker-CsEuOpyk.js";const n=class{constructor(){this.initVars(),this.initAnimations(),this.initPage()}initVars(){var e,t;this.articleTheme=new r,this.featuredAsset=document.querySelector(".featured-asset"),this.featuredVideo=null!=(t=null==(e=this.featuredAsset)?void 0:e.querySelector("video"))?t:null,this.details=document.querySelector(".details"),this.articleBody=document.querySelector(".article-body"),this.categoriesTags=document.querySelectorAll(".categories .tag"),this.preCode=document.querySelectorAll("pre code"),this.articleIframe=document.querySelector(".article-iframe-repo iframe")}initAnimations(){}initPage(){i(),this.addListeners(),t(document)}addListeners(){const e=this;o(e,["preCodeCopy"]),this.preCode.forEach((t=>{t.tabindex=0,t.addEventListener("click",e.preCodeCopy)}))}removeListeners(){const e=this;this.preCode.forEach((t=>{t.tabindex=0,t.removeEventListener("click",e.preCodeCopy)}))}stopPage(){var e;s(),this.removeListeners(),null==(e=this.articleTheme)||e.destroy()}preCodeCopy(e){const t=this,o=e.currentTarget,r=o.textContent,i=document.createElement("textarea");o.removeEventListener("click",t.preCodeCopy),i.textContent=r,document.body.append(i),i.select(),document.execCommand("copy"),i.remove(),o.tabIndex=0,o.style.pointerEvents="none",o.timeout&&clearTimeout(o.timeout),o.timeout&&clearTimeout(o.timeout),o.focus(),o.timeout=setTimeout((()=>{o.blur(),o.tabIndex=-1,o.addEventListener("click",t.preCodeCopy),o.style.pointerEvents="all"}),2e3)}};let a;class m extends e{onEnter(){super.onEnter()}async onLeave(){if(super.onLeave(),a)try{await a.stopPage()}finally{a=null}}onEnterCompleted(){super.onEnterCompleted(),a=new n}onLeaveCompleted(){super.onLeaveCompleted()}}export{m as default};
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.