drill.init(async(e,i)=>{let a=i.queShadow(".windows_topright");try{let{remote:e}=require("electron");require("path");let n=e.getCurrentWindow();"win32"==process.platform?(a.display="",i.queShadow(".o_leftbtns").style["margin-left"]="50px"):a.display="none",a.que('[frame-btn-type="close"]').on("click",e=>{n.close()});let t=()=>{n.isMaximized()?(a.que('[frame-btn-type="maximize"]').display="none",a.que('[frame-btn-type="unmaximize"]').display=""):(a.que('[frame-btn-type="maximize"]').display="",a.que('[frame-btn-type="unmaximize"]').display="none")};t(),n.on("maximize",e=>{t()}),n.on("unmaximize",e=>{t()}),i.$title.on("dblclick",()=>{n.isMaximized()?a.que('[frame-btn-type="unmaximize"]').ele.click():a.que('[frame-btn-type="maximize"]').ele.click()}),a.que('[frame-btn-type="maximize"]').on("click",function(e){this.class.contains("disabled")||n.maximize()}),a.que('[frame-btn-type="unmaximize"]').on("click",function(e){this.class.contains("disabled")||n.unmaximize()}),a.que('[frame-btn-type="minimize"]').on("click",function(e){this.class.contains("disabled")||n.minimize()}),n.isMaximizable()||(a.que('[frame-btn-type="maximize"]').class.add("disabled"),a.que('[frame-btn-type="unmaximize"]').class.add("disabled"))}catch(e){a.display="none"}});