"use strict";functione(e){returne&&"object"==typeofe&&"default"ine?e.default:e}vart=e(require("licia/isWindows")),n=e(require("jimp"));require("licia/isStr");require("qrcode-terminal");consta=require("qrcode-reader");constr={devtools:{name:"Wechat web devTools",remote:!0,automator:!0,paths:[t?"C:/Program Files (x86)/Tencent/微信web开发者工具/cli.bat":"/Applications/wechatwebdevtools.app/Contents/MacOS/cli"],required:["project.config.json","app.json","app.js"],defaultPort:9420},adapter:{"Tool.enableRemoteDebug":{reflect:async(e,t)=>{let{qrCode:r}=awaite("Tool.enableRemoteDebug",t,!1);returnr&&(r=awaitfunction(e){constt=newBuffer(e,"base64");returnnewPromise(async(e,r)=>{consto=awaitn.read(t),c=newa;c.callback=function(t,n){if(t)returnr(t);e(n.result)},c.decode(o.bitmap)})}(r)),{qrCode:r}}},"App.callUniMethod":{reflect:"App.callWxMethod"},"App.callFunction":{reflect:async(e,t)=>{returne("App.callFunction",Object.assign(Object.assign({},t),{functionDeclaration:(n=t.functionDeclaration,"}"===n[n.length-1]?n.replace("{","{\nvar uni = wx;\n"):n.replace("=>","=>{\nvar uni = wx;\nreturn ")+"}")}),!1);varn}},"Element.getHTML":{reflect:async(e,t)=>({html:(awaite("Element.getWXML",t,!1)).wxml})}}};module.exports=r;