-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.min.js
1 lines (1 loc) · 247 KB
/
uno.min.js
1
window.LOW=0,window.HIGH=1,window.OUTPUT=0,window.INPUT=1,window.INPUT_PULLUP=2,window.LED_BUILTIN=13,window._UNO_={VER:{CRR:"3.1.22",OLD:["1.0.22","1.1.22","2.1.22"]}},window._UNO_.MSG={UNJS:{CODE:201,VER_CLNT:0},BLTN:{CODE:202,PIN_STAT:0,PIN_MODE:1,DT_WRITE:2,AL_WRITE:3,DLY_MLSC:4,DLY_MRSC:5,TIM_MLSC:6,TIM_MRSC:7,ADV_TONE:8,ADV_NOTN:9,ADV_PLSI:10,ADV_PLSL:11},SN_1:{CODE:212,USS_READ:0,BPS_BEGN:10,BPS_READ:11},MD_1:{CODE:222,SVR_ATCH:0,SVR_WRTE:1,SVR_READ:2,SVR_DTCH:3,ACL_POWR:10,ACL_READ:11,LCD_BEGN:20,LCD_CRSR:21,LCD_PRNT:22,LCD_CLER:23},NTR:253,SPR:254,END:255},window._UNO_.CLR=((e=0)=>{const t=["ff3300","00cc99","0066cc","6666ff","ff66cc","ff9933"];return"#"+t[parseInt(e)%t.length]}),window._UNO_.LOG={VER:"Please update the UNO.js client. System may not work properly.",NOT:"Oops! Seems like UNO.js client is not installed in your controller."},window._UNO_.TMP={};const UNO={};window._UNO_.HLP={},window._UNO_.HLP.keyGroup=((e,t)=>{let n=[];for(let s=0;s<t.length;s++){const i=t[s];2===e.length&&e[1]===window[i]?n.push(e[0]):"object"==typeof e[0]&&Array.isArray(e[0][i])&&(n=n.concat(e[0][i])),n.push(_UNO_.MSG.SPR)}return n}),window._UNO_.HLP.typeGroup=((e,t)=>{let n=[];if(e.length>1){for(let s=0;s<t.length;s++){const i=t[s];"number"==typeof i?n.push(parseInt(e[s]*i)):"string"==typeof i&&"buffer"===i&&(n=n.concat(_UNO_.HLP.encodeText(e[s])))}n.push(_UNO_.MSG.SPR)}else if("object"==typeof e[0]){const s=Object.keys(e[0]),i=Object.values(e[0]);for(let e=0;e<s.length;e++){for(let o=0;o<t.length;o++){const r=t[o];0===o?n.push(parseInt(s[e])):1===o&&("number"==typeof i[e]?n.push(parseInt(i[e]*r)):Array.isArray(i[e])&&(n=n.concat(i[e])))}n.push(_UNO_.MSG.SPR)}}return n}),window._UNO_.HLP.encodeText=(e=>{e=e.toString();const t=_UNO_.HLP.encodeText.encoder.encode(e);return Array.from(t)}),window._UNO_.HLP.encodeText.encoder=new TextEncoder,window._UNO_.HLP.decodeText=(e=>{const t=new Uint8Array(e);return _UNO_.HLP.decodeText.decoder.decode(t)}),window._UNO_.HLP.decodeText.decoder=new TextDecoder,window._UNO_.HLP.encodeArray=((e,t)=>{let n=[];for(let s=0;s<e.length;s++)"number"==typeof t[s]?n.push(t[s]*e[s]):"buffer"===t[s]&&(n=n.concat(_UNO_.HLP.encodeText(e[s]))),n.push(_UNO_.MSG.SPR);return n}),window._UNO_.HLP.decodeArray=((e,t)=>{for(let n=0;n<e.length;n++)"number"==typeof t[n]?e[n]=parseInt(e[n]*t[idx]):"buffer"===t[n]&&(e[n]=_UNO_.HLP.decodeText(e[n]));return e}),window._UNO_.HLP.showUnsupported=(()=>{const e=document.createElement("div");e.className="unojs-error-tray",e.innerHTML='\n <div class="unojs-error-inner">\n <div class="unojs-error-info">\n Unfortunately, your browser does not support Web Serial API\n to continue with uno.js.\n Please read the\n <a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serial#browser_compatibility" target="_blank">\n browser compatibility details\n </a> in MDN Docs.\n </div>\n <div class="unojs-error-button">CLOSE</div>\n </div>\n ',e.querySelector(".unojs-error-button").addEventListener("click",()=>{e.style.opacity=0,setTimeout(()=>{e.outerHTML="",document.body&&(document.body.style.overflow="")},300)}),document.body?(document.body.style.overflow="hidden",document.body.appendChild(e)):document.documentElement.append(e),setTimeout(()=>e.style.opacity=1,10)}),UNO.Controller=class{constructor(){let e=null,t=!1,n={pending:!1,resolve:null};this.init=async function(t){return new Promise((n,s)=>{const i=t=>{e=t,u.wait=!0,e.open({baudRate:2e6}).then(()=>{d.reader=e.readable.getReader(),d.writer=e.writable.getWriter(),setTimeout(()=>{c(()=>{u.runs=!0,u.wait=!1,d.port=e,n()},s)},3e3)}).catch(s)};t?i(t):navigator.serial.requestPort().then(i).catch(s)})},this.send=async function(e,r,c){return new Promise((u,p)=>{if(n.pending)l(p);else if(t)p();else{t=!0;const n=o(e,r,c),l=new Uint8Array(n);d.writer.write(l).then(()=>{a(n,"sent");let e=[];const o=()=>{d.reader.read().then(n=>{const r=Array.from(n.value);e=e.concat(r);const a=(e=s(e)).indexOf(h.END);if(a>-1){const n=e.splice(0,a);i(n,u),t=!1}else o()}).catch(p)};o()}).catch(p)}})};const s=e=>{if(u.msgs.sent.length>0){const t=u.msgs.sent[u.msgs.sent.length-1];return t[0]===h.UNJS.CODE&&t[1]===h.UNJS.VER_CLNT?e.includes(h.UNJS.CODE)?e.splice(e.indexOf(h.UNJS.CODE)):[]:e}return e},i=(e,t)=>{a(e,"received");const n=r(e);u.pins.digital=n[0],u.pins.analog=n[1],t(n.splice(2))},o=(e,t,n=[])=>{const s=[h[e].CODE,h[e][t]].concat(n);return s.push(h.END),s},r=e=>{e.splice(0,2);const t=[];for(;e.includes(h.SPR);)t.push(e.splice(0,e.indexOf(h.SPR))),e.shift();return t},a=(e,t)=>{const n=JSON.parse(JSON.stringify(e)),s=u.msgs[t];s.push(n),9===s.length&&s.shift()},l=t=>{d.writer.releaseLock(),d.reader.releaseLock(),e.close(),u.runs=!1,u.wait=null,n.pending=!1,t(),n.resolve&&n.resolve()},c=(e,t)=>{d("UNJS","VER_CLNT").then(n=>{const s=n[0].join(".");p.CRR===s?e():p.OLD.includes(s)?(console.warn(m.VER),e()):t(m.NOT)}).catch(t)};this.update=async function(){return d("BLTN","PIN_STAT")},this.pinMode=async function(){const e=v.keyGroup(arguments,["OUTPUT","INPUT","INPUT_PULLUP"]);return d("BLTN","PIN_MODE",e)},this.digitalWrite=async function(){const e=v.keyGroup(arguments,["LOW","HIGH"]);return d("BLTN","DT_WRITE",e)},this.analogWrite=async function(){const e=v.typeGroup(arguments,[1,.7843137254901961]);return d("BLTN","AL_WRITE",e)},this.digitalRead=(e=>u.pins.digital[e]),this.analogRead=(e=>parseInt(5.115*u.pins.analog[e])),this.delay=async function(e){return d("BLTN","DLY_MLSC",v.encodeText(e))},this.delayMicroseconds=async function(e){return d("BLTN","DLY_MRSC",v.encodeText(e))},this.millis=async function(){return new Promise((e,t)=>{d("BLTN","TIM_MLSC").then(t=>{e(parseInt(v.decodeText(t[0])))}).catch(t)})},this.micros=async function(){return new Promise((e,t)=>{d("BLTN","TIM_MRSC").then(t=>{e(parseInt(v.decodeText(t[0])))}).catch(t)})},this.tone=async function(e,t,n){let s;void 0===n?(s=[1,"buffer",1],n=h.NTR):s=[1,"buffer","buffer"];const i=v.encodeArray([e,t,n],s);return d("BLTN","ADV_TONE",i)},this.noTone=async function(e){return d("BLTN","ADV_NOTN",[e])},this.stop=async function(){return new Promise(e=>{u.runs?(n.pending=!0,n.resolve=e,t=!1):e()})},"serial"in navigator&&navigator.serial.addEventListener("disconnect",t=>{t.target===e&&(u.runs=!1,u.wait=null,n.pending=!1)}),this._state={pins:{digital:[],analog:[]},msgs:{received:[],sent:[]},runs:!1,wait:null,stop:n};const d=this.send,u=this._state,h=_UNO_.MSG,p=_UNO_.VER,m=_UNO_.LOG,v=_UNO_.HLP}},UNO.Accelerometer=class{constructor(e){this.powerOn=async function(){return e.send("MD_1","ACL_POWR")},this.readAccel=async function(){return new Promise((t,n)=>{e.send("MD_1","ACL_READ").then(e=>{const n=_UNO_.HLP.decodeArray(e,["buffer","buffer","buffer"]);t({x:parseInt(n[0]),y:parseInt(n[1]),z:parseInt(n[2])})}).catch(n)})}}},UNO.Buzzer=class{constructor(e,t){this.playTone=async function(n,s=1){for(let i=0;i<Math.abs(s);i++)for(let s=0;s<n.length;s++)await e.tone(t,n[s].frequency),await e.delay(n[s].duration);await e.noTone(t)}}},UNO.LiquidCrystalDisplay=class{constructor(e){this.begin=async function(t,n){return e.send("MD_1","LCD_BEGN",[t,n])},this.setCursor=async function(t,n){return e.send("MD_1","LCD_CRSR",[t,n])},this.print=async function(t){const n=_UNO_.HLP.encodeText(t);return e.send("MD_1","LCD_PRNT",n)},this.clear=async function(){return e.send("MD_1","LCD_CLER")}}},UNO.ServoMotor=class{constructor(e,t){this.attach=async function(){return e.send("MD_1","SVR_ATCH",[t])},this.write=async function(n){return e.send("MD_1","SVR_WRTE",[t,n])},this.read=async function(){return new Promise((n,s)=>{e.send("MD_1","SVR_READ",[t]).then(e=>{n(e[0][0])}).catch(s)})},this.detach=async function(){return e.send("MD_1","SVR_DTCH",[t])}}},UNO.BarometricPressureSensor=class{constructor(e,t=840){this.defaultAltitude=t,this.begin=async function(){return e.send("SN_1","BPS_BEGN")},this.read=async function(t){const n=void 0!==t?t:this.defaultAltitude,s=_UNO_.HLP.encodeText(n);return new Promise((t,n)=>{e.send("SN_1","BPS_READ",s).then(e=>{const n=_UNO_.HLP.decodeArray(e,["buffer","buffer","buffer"]);t({temperature:parseFloat(n[0]),pressure:parseFloat(n[1]),relativePressure:parseFloat(n[2])})}).catch(n)})}}},UNO.UltrasonicSensor=class{constructor(e,t,n){this.begin=async function(){return e.pinMode({OUTPUT:[t],INPUT:[n]})},this.readDuration=async function(){return new Promise((s,i)=>{e.send("SN_1","USS_READ",[t,n]).then(e=>{const t=_UNO_.HLP.decodeText(e[0]);s(parseFloat(t))}).catch(i)})}}},UNO.GraphView=class{constructor(e,t=1,n=0,s=1023,i=!1){this.element=document.createElement("div"),this.element.className="unojs-util unojs-util-graph-view",this.element.innerHTML=`\n <div class="graph-view-title">${e}</div>\n <div class="graph-view-inner" style="height: ${60*t}px;">\n <div class="graph-view-labels"></div>\n <div class="graph-view-values"></div>\n <canvas height="${60*t}" width="170"></canvas>\n </div>\n `,i&&(this.element.style.display="none");const o=this.element.querySelector("canvas").getContext("2d"),r=this.element.querySelector(".graph-view-labels"),a=this.element.querySelector(".graph-view-values");for(let e=0;e<Math.abs(t);e++){const t=document.createElement("div");t.className="label",t.innerHTML="-",r.appendChild(t);const n=document.createElement("div");n.className="value",n.style.color=_UNO_.CLR(e),n.innerHTML="0",a.appendChild(n),o.strokeStyle=_UNO_.CLR(e),o.lineWidth=.8,o.beginPath(),o.moveTo(0,60*e+30),o.lineTo(170,60*e+30),o.stroke()}let l={};const c=60/(s-n);this.update=(e=>{o.globalCompositeOperation="copy",o.drawImage(o.canvas,-20,0),o.globalCompositeOperation="source-over",Object.keys(e).forEach((s,i)=>{if(i>t)return;const d=e[s],u=r.children[i],h=a.children[i];u.innerHTML!==s&&(u.innerHTML=s),h.innerHTML!==d&&(h.innerHTML=d);const p=((void 0!==l[s]?l[s]:0)-n)*c,m=(d-n)*c;o.strokeStyle=_UNO_.CLR(i),o.beginPath(),o.moveTo(150,60*i+(60-p)),o.lineTo(170,60*i+(60-m)),o.stroke()}),l=JSON.parse(JSON.stringify(e))}),this.show=(()=>{this.element.style.display=""}),this.hide=(()=>{this.element.style.display="none"})}},UNO.SerialMonitor=class{constructor(e,t=!1){let n=50,s="received";this.element=document.createElement("div"),this.element.className="unojs-util unojs-util-serial-monitor",this.element.innerHTML='\n <div class="serial-monitor-title">\n Serial Monitor\n <select>\n <option value="received">Incomming Data</option>\n <option value="sent">Outgoing Data</option>\n </select>\n </div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n <div class="serial-monitor-item"></div>\n ',t&&(this.element.style.display="none");const i=Array.from(this.element.querySelectorAll(".serial-monitor-item"));this.element.querySelector("select").addEventListener("input",e=>{s=e.target.value});const o=()=>{(e=>{for(let t=0;t<e.length;t++)i[t].innerHTML="<div>"+e[t].join("</div><div>")+"</div>"})(e._state.msgs[s]),setTimeout(()=>{requestAnimationFrame(o)},n)};o(),this.setInterval=(e=>{n=e}),this.show=(()=>{this.element.style.display=""}),this.hide=(()=>{this.element.style.display="none"})}},UNO.StartButton=class{constructor(e,t,n){this.element=document.createElement("button");let s="start";this.element.className="unojs-util unojs-util-start-button start",this.element.addEventListener("click",()=>{"error"!==s?"starting"!==s&&"stopping"!==s&&(!1===e._state.runs?t?t():e.init?e.init():e.start&&e.start():n?n():e.stop()):_UNO_.HLP.showUnsupported()});const i=()=>{const t=e._state.runs,n=e._state.wait;!1===t&&null===n?s="start":!1===t&&!0===n?s="starting":!0===t&&!1===n?s="running":!0===t&&!0===n&&(s="stopping"),this.element.lang!==s&&(this.element.lang=s,this.element.className="unojs-util unojs-util-start-button "+s)},o=()=>{i(),setTimeout(()=>{requestAnimationFrame(o)},50)};"serial"in navigator?o():(this.element.className="unojs-util unojs-util-start-button error",s="error")}},UNO.StateView=class{constructor(e,t="NO_TEXT",n=0,s=!1){this.element=document.createElement("div"),this.element.className="unojs-util unojs-util-state-view",this.element.innerHTML=`\n <div class="state-view-title">${e}</div>\n <div class="state-view-inner">${t}</div>\n `,s&&(this.element.style.display="none");const i=this.element.querySelector(".state-view-inner");i.style.backgroundColor=_UNO_.CLR(n),this.update=((e,t)=>{i.innerHTML=e,i.style.backgroundColor=_UNO_.CLR(t)}),this.show=(()=>{this.element.style.display=""}),this.hide=(()=>{this.element.style.display="none"})}},UNO.VoltageMonitor=class{constructor(e,t=!1){let n=50;this.element=document.createElement("div"),this.element.className="unojs-util unojs-util-voltage-monitor",this.element.innerHTML='\n <div class="analog-panel-title">Analog Inputs</div>\n <div class="analog-panel">\n <div class="analog-index"></div>\n <div class="analog-values"></div>\n <canvas class="analog-canvas" width="270" height="0"></canvas>\n </div>\n <div class="digital-panel-title">Digital Pins</div>\n <div class="digital-panel">\n <div class="digital-index"></div>\n <div class="digital-values"></div>\n <canvas class="digital-canvas" width="270" height="0"></canvas>\n </div>\n ',t&&(this.element.style.display="none");const s=this.element.querySelector(".digital-canvas"),i=this.element.querySelector(".analog-canvas"),o=s.getContext("2d"),r=i.getContext("2d");o.lineWidth=.8,r.lineWidth=.8;let a={};const l=(e,t)=>{const n=this.element.querySelector("."+e+"-values");if(n.children.length===t.length)return;const s=this.element.querySelector("."+e+"-index"),i=this.element.querySelector("."+e+"-canvas"),o=i.getContext("2d"),r=30*t.length;i.setAttribute("height",r),o.clearRect(0,0,270,r),s.innerHTML="",n.innerHTML="";for(let i=0;i<t.length;i++){const t=document.createElement("div");t.innerHTML=e[0].toUpperCase()+i,t.className="value-index",s.appendChild(t);const r=document.createElement("div");r.className="value-label",r.style.color=_UNO_.CLR(i),n.appendChild(r),o.strokeStyle=_UNO_.CLR(i),o.lineWidth=.8,o.beginPath(),o.moveTo(0,30*i+15),o.lineTo(270,30*i+15),o.stroke()}},c=(e,t,n)=>{const s=this.element.querySelector("."+e+"-values"),i=this.element.querySelector("."+e+"-canvas"),o=i.getContext("2d");if(0!==i.height){o.globalCompositeOperation="copy",o.drawImage(o.canvas,-20,0),o.globalCompositeOperation="source-over";for(let i=0;i<t.length;i++){s.children[i].innerHTML=t[i];const r=(a[e]?a[e][i]:0)/n,l=t[i]/n;o.strokeStyle=_UNO_.CLR(i),o.beginPath(),o.moveTo(250,30*i+15-r),o.lineTo(270,30*i+15-l),o.stroke()}}},d=()=>{(e=>{l("analog",e.analog),l("digital",e.digital),c("analog",e.analog,68.2),c("digital",e.digital,.06666),a=JSON.parse(JSON.stringify(e))})(e._state.pins),setTimeout(()=>{requestAnimationFrame(d)},n)};d(),this.setInterval=(e=>{n=e}),this.show=(()=>{this.element.style.display=""}),this.hide=(()=>{this.element.style.display="none"})}},UNO.Uploader=class{constructor(){let e=!1;this.upload=async function(t,n){return new Promise((s,i)=>{if(e)i("Uploder is busy.");else{e=!0,_UNO_.TMP.HEX=n,new AvrgirlArduino({board:t,debug:!1}).flash(n,t=>{if(t){const n=_UNO_.TMP.AVR;n&&n.isOpen?this.abort().then(()=>{i(t),e=!1}).catch(()=>{i(t),e=!1}):(i(t),e=!1)}else s(),e=!1})}})},this.uploadFile=async function(e,t){return new Promise((n,s)=>{fetch(t).then(e=>e.text()).then(t=>{this.upload(e,t).then(n).catch(s)}).catch(s)})},this.abort=async function(){const e=_UNO_.TMP.AVR,t=e.port;return e.reader.cancel&&await e.reader.cancel(),e.writer.cancel&&await e.writer.cancel(),t.writable.locked&&e.reader.releaseLock(),t.writable.locked&&e.writer.releaseLock(),t.close&&await t.close(),!0}}},UNO.Communicator=class{constructor(){let e=null,t={pending:!1,resolve:null,reject:null},n=null;const s=new TextEncoder,i=new TextDecoder;this.start=async function(t=9600){return new Promise((s,i)=>{u.wait=!0,navigator.serial.requestPort().then(o=>{n=t,(e=o).open({baudRate:t}).then(()=>{e.reader=e.readable.getReader(),e.writer=e.writable.getWriter(),r(),d("start"),u.wait=!1,u.runs=!0,s()}).catch(()=>{u.wait=null,d("error",{method:"start"}),i()})}).catch(()=>{u.wait=null,d("error",{method:"start"}),i()})})},this.restart=async function(t=9600){return new Promise((s,i)=>{this.stop().then(()=>{setTimeout(()=>{e.open({baudRate:t}).then(()=>{n=t,e.reader=e.readable.getReader(),e.writer=e.writable.getWriter(),r(),d("start"),u.wait=!1,u.runs=!0,s()}).catch(i)},1e3)}).catch(()=>{d("error",{method:"restart"}),i()})})};let o="";const r=()=>{!1===t.pending?e.reader.read().then(e=>{const t=i.decode(e.value);d("read",{data:t}),o+=t,a(),r()}):l().then(()=>{d("stop"),u.runs=!1,u.wait=null,t.pending=!1,t.resolve()}).catch(()=>{d("error",{method:"stop"}),t.reject()})},a=()=>{const e=o.split("\r\n");if(e.length>1){for(let t=0;t<e.length-1;t++)u.msgs.received.push(e[t]),d("message",{data:e[t]});o=e[e.length-1]}};this.write=async function(t){return new Promise((n,i)=>{let o=null;"string"==typeof t||"number"==typeof t?o=s.encode(t.toString()):Array.isArray(t)?o=new Uint8Array(t):i(),e.writer.write(o).then(()=>{u.msgs.sent.push(t),d("write",{data:t}),n()}).catch(()=>{d("error",{method:"write",data:t}),i()})})},this.stop=async function(){return new Promise((e,n)=>{t.pending=!0,t.resolve=e,t.reject=n})};const l=async function(){return e.reader.cancel&&await e.reader.cancel(),e.writer.cancel&&await e.writer.cancel(),e.writable.locked&&e.reader.releaseLock(),e.writable.locked&&e.writer.releaseLock(),e.close&&await e.close(),!0};let c={message:[],error:[],disconnect:[],read:[],write:[],start:[],stop:[]};this.addEventListener=((e,t)=>{c[e]&&c[e].push(t)});const d=(e,t={})=>{t.type=e,t.timeStamp=Date.now(),t.baudRate=n;for(let n=0;n<c[e].length;n++)c[e][n](t)};"serial"in navigator&&navigator.serial.addEventListener("disconnect",t=>{t.target===e&&(u.runs=!1,u.wait=null,d("disconnect"))}),this._state={msgs:{received:[],sent:[]},runs:!1,wait:null,stop:t};const u=this._state}},UNO.UploadButton=class{constructor(e,t){this.element=document.createElement("div");const n=Object.keys(t),s=Object.values(t),i=s.map(e=>e.board);let o="upload";this.element.className="unojs-util unojs-util-uploader unojs-upload";const r=n.map((e,t)=>`<option value="${i[t]}">${e}</option>`);this.element.innerHTML=`\n <select>${r.join("")}</select>\n <div class="unojs-upload-button"></div>\n `;const a=this.element.querySelector(".unojs-upload-button"),l=this.element.querySelector("select"),c=e=>{o=e,this.element.className="unojs-util unojs-util-uploader unojs-"+e};"serial"in navigator?a.addEventListener("click",()=>{if("upload"!==o)return;c("uploading");const t=l.value,n=s.find(e=>e.board===t);e.uploadFile(l.value,n.file).then(()=>{c("uploaded"),setTimeout(()=>{c("upload")},2e3)}).catch(e=>{"NotFoundError: No port selected by the user."===e.toString()?c("upload"):(c("failed"),setTimeout(()=>{c("upload")},1e3))})}):(c("serial"),this.element.classList.add("serial-error"),a.addEventListener("click",_UNO_.HLP.showUnsupported))}},UNO.SetupView=class{constructor(e,t){this.element=document.createElement("div"),this.element.className="unjs-util-setup-view",this.element.innerHTML='\n <div class="setup-view-title">Required Components</div>\n <div class="setup-view-list"></div>\n <div class="setup-view-title">Circuit Setup</div>\n <div class="setup-view-setup"></div>\n ';const n=this.element.querySelector(".setup-view-list");Object.keys(e).forEach(t=>{const s=t.toLowerCase(),i=e[t];n.innerHTML+=`<div\n class="unojs-icon-${s} setup-view-list-item"\n ><div class="setup-view-list-item-code">${t}</div>${i}</div>`});const s=this.element.querySelector(".setup-view-setup");t.forEach(e=>{const t=document.createElement("div");t.className="setup-view-setup-item";const n=e.split("=");t.innerHTML=`\n <div class="setup-view-setup-pin">\n ${n.join('</div><div class="setup-view-setup-join"></div><div class="setup-view-setup-pin">')}\n </div>\n `,s.appendChild(t)}),this.show=(()=>{this.element.style.display=""}),this.hide=(()=>{this.element.style.display="none"})}},UNO.CommunicateView=class{constructor(e){this.element=document.createElement("div"),this.element.className="unojs-util unojs-util-communicate-view",this.element.innerHTML='\n <div class="communicate-view-title">Serial Communication</div>\n <div class="communicate-view-tray"></div>\n <div class="communicate-view-foot">\n <input\n type="text"\n placeholder="Type message here..."\n autocomplete="off"\n spellcheck="false"\n >\n <div class="communicate-view-label">Baud Rate</div>\n <select>\n <option>300</option>\n <option>1200</option>\n <option>2400</option>\n <option>4800</option>\n <option>9600</option>\n <option>19200</option>\n <option>38400</option>\n <option>57600</option>\n <option>74880</option>\n <option>115200</option>\n <option>230400</option>\n <option>250000</option>\n <option>500000</option>\n <option>1000000</option>\n <option>2000000</option>\n </select>\n </div>\n ';const t=this.element.querySelector(".communicate-view-tray"),n=this.element.querySelector("input"),s=this.element.querySelector("select"),i=()=>{const e=Array.from(t.children);for(let t=e.length-1;t>-1;t--)e.length-t>30&&e[t].remove();t.scrollTop=999999};e.addEventListener("start",e=>{s.value=e.baudRate}),e.addEventListener("message",e=>{const n=document.createElement("div");n.className="communicate-view-received",n.innerHTML=e.data,t.appendChild(n),i()}),e.addEventListener("write",e=>{const n=document.createElement("div");n.className="communicate-view-sent",n.innerHTML=e.data,t.appendChild(n),i()}),n.addEventListener("keydown",t=>{if(!1!==e._state.runs&&"Enter"===t.key&&n.value.length>0){const t=n.value;n.value="",e.write(t)}}),s.addEventListener("input",()=>{e.restart(parseInt(s.value))})}};window.AvrgirlArduino=(()=>{var t={8860:(t,e,r)=>{var n=r(4424),o=r(6126),i=r(5957),a=r(1990);t.exports=a(n,o,i)},1990:(t,e,r)=>{t.exports=function(t,e,n){var o=r(7187),i=r(9539),a=r(8623),u=function(r){if(r=r||{},this.options={debug:r.debug||!1,megaDebug:r.megaDebug||!1,board:r.board||"uno",port:r.port||"",manualReset:r.manualReset||!1,disableVerify:r.disableVerify||!1},!0===this.options.debug?this.debug=this.options.debug=console.log.bind(console):"function"==typeof this.options.debug?this.debug=this.options.debug=this.options.debug:this.debug=this.options.debug=function(){},"object"==typeof this.options.board){const t=Object.getOwnPropertyNames(this.options.board);1===t.length&&"name"===t[0]&&(this.options.board=this.options.board.name)}if("string"==typeof this.options.board&&(this.options.board=t[this.options.board]),this.options.board&&!this.options.board.manualReset&&(this.options.board.manualReset=this.options.manualReset),this.options.board&&!this.options.board.disableVerify&&(this.options.board.disableVerify=this.options.disableVerify),this.connection=new e(this.options),this.options.board){var i=n[this.options.board.protocol]||function(){};this.protocol=new i({board:this.options.board,connection:this.connection,debug:this.debug,megaDebug:this.options.megaDebug})}o.call(this)};return i.inherits(u,o),u.prototype._validateBoard=function(t){if("object"!=typeof this.options.board)return t(new Error('"'+this.options.board+'" is not a supported board type.'));if(this.protocol.chip)return this.options.port||"pro-mini"!==this.options.board.name?t(null):t(new Error("using a pro-mini, please specify the port in your options."));var e="not a supported programming protocol: "+this.options.board.protocol;return t(new Error(e))},u.prototype.flash=function(t,e){var r=this;r._validateBoard((function(n){if(n)return e(n);r.connection._init((function(n){if(n)return e(n);r.protocol._upload(t,e)}))}))},u.prototype.listPorts=u.listPorts=u.prototype.list=u.list=function(t){return e.prototype._listPorts(t)},u.listKnownBoards=function(){return Object.keys(t).filter((function(e){var r=t[e].aliases;return!r||!~r.indexOf(e)}))},u.prototype.tools=a,u}},4424:(t,e,r)=>{var n=r(8764).Buffer,o=[{name:"uno",baud:115200,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0x0043","0x7523","0x0001","0xea60","0x6015"],productPage:"https://store.arduino.cc/arduino-uno-rev3",protocol:"stk500v1"},{name:"micro",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0037","0x8037","0x0036","0x0237"],productPage:"https://store.arduino.cc/arduino-micro",protocol:"avr109"},{name:"imuduino",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0036","0x8037","0x8036"],productPage:"https://www.kickstarter.com/projects/1265095814/imuduino-wireless-3d-motion-html-js-apps-arduino-p?lang=de",protocol:"avr109"},{name:"leonardo",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0036","0x8036","0x800c"],productPage:"https://store.arduino.cc/leonardo",protocol:"avr109"},{name:"arduboy",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0036","0x8036","0x800c"],productPage:"https://arduboy.com/",protocol:"avr109"},{name:"feather",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x800c","0x000c"],productPage:"https://www.adafruit.com/feather",protocol:"avr109"},{name:"little-bits",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0036","0x8036"],productPage:"https://littlebits.com/collections/bits-and-accessories/products/arduino-bit",protocol:"avr109"},{name:"blend-micro",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x2404"],productPage:"https://redbear.cc/product/retired/blend-micro.html",protocol:"avr109"},{name:"nano",baud:57600,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0x6001","0x7523"],productPage:"https://web.archive.org/web/20150813095112/https://www.arduino.cc/en/Main/ArduinoBoardNano",protocol:"stk500v1"},{name:"nano (new bootloader)",baud:115200,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0x6001","0x7523"],productPage:"https://store.arduino.cc/arduino-nano",protocol:"stk500v1"},{name:"duemilanove168",baud:19200,signature:n.from([30,148,6]),pageSize:128,numPages:128,timeout:400,productId:["0x6001"],productPage:"https://www.arduino.cc/en/Main/arduinoBoardDuemilanove",protocol:"stk500v1"},{name:"duemilanove328",baud:57600,signature:n.from([30,149,20]),pageSize:128,numPages:256,timeout:400,productId:["0x6001"],productPage:"https://www.arduino.cc/en/Main/arduinoBoardDuemilanove",protocol:"stk500v1"},{name:"tinyduino",baud:57600,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0x6015"],productPage:"https://tinycircuits.com/pages/tinyduino-overview",protocol:"stk500v1",aliases:["tinduino"]},{name:"mega",baud:115200,signature:n.from([30,152,1]),pageSize:256,delay1:10,delay2:1,timeout:200,stabDelay:100,cmdexeDelay:25,synchLoops:32,byteDelay:0,pollValue:83,pollIndex:3,productId:["0x0042","0x6001","0x0010","0x7523"],productPage:"https://store.arduino.cc/mega-2560-r3",protocol:"stk500v2"},{name:"adk",baud:115200,signature:n.from([30,152,1]),pageSize:256,delay1:10,delay2:1,timeout:200,stabDelay:100,cmdexeDelay:25,synchLoops:32,byteDelay:0,pollValue:83,pollIndex:3,productId:["0x0044","0x6001","0x003F"],productPage:"https://store.arduino.cc/arduino-mega-adk-rev3",protocol:"stk500v2"},{name:"sf-pro-micro",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x9206","0x9205","0x0036"],productPage:"https://www.sparkfun.com/products/12640",protocol:"avr109"},{name:"pro-mini",baud:57600,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productPage:"https://store.arduino.cc/arduino-pro-mini",protocol:"stk500v1"},{name:"qduino",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x516d","0x514d"],productPage:"https://www.sparkfun.com/products/13614",protocol:"avr109"},{name:"pinoccio",baud:115200,signature:n.from([30,168,2]),pageSize:256,delay1:10,delay2:1,timeout:200,stabDelay:100,cmdexeDelay:25,synchLoops:32,byteDelay:0,pollValue:83,pollIndex:3,productId:["0x6051"],productPage:"https://www.mouser.de/new/crowd-supply/crowd-supply-pinoccio-microcontroller/",protocol:"stk500v2"},{name:"lilypad-usb",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x9207","0x9208","0x1B4F"],productPage:"https://www.sparkfun.com/products/12049",protocol:"avr109"},{name:"yun",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0041","0x8041"],productPage:"https://store.arduino.cc/arduino-yun",protocol:"avr109"},{name:"esplora",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x003C","0x803C"],productPage:"https://store.arduino.cc/arduino-esplora",protocol:"avr109"},{name:"circuit-playground-classic",baud:57600,signature:n.from([67,65,84,69,82,73,78]),productId:["0x0011","0x8011"],productPage:"https://www.adafruit.com/product/3000",protocol:"avr109"},{name:"zumjunior",baud:115200,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0xEA60"],productPage:"https://store-de.bq.com/de/zum-kit-junior",protocol:"stk500v1"},{name:"zumcore2",baud:115200,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0xEA60"],productPage:"https://www.bq.com/de/zum-core-2-0",protocol:"stk500v1"},{name:"bqZum",baud:19200,signature:n.from([30,149,15]),pageSize:128,numPages:256,timeout:400,productId:["0x6001","0x7523"],productPage:"http://diwo.bq.com/zum-bt-328-especificaciones-tecnicas/",protocol:"stk500v1"},{name:"xprov4",baud:115200,signature:n.from([30,149,22]),pageSize:128,numPages:256,timeout:400,productId:["0x0043","0x7523","0x0001","0xea60"],productPage:"http://www.spark-concepts.com/cnc-xpro-v4-controller/",protocol:"stk500v1"}];t.exports=function(){for(var t={},e=0;e<o.length;e++){var r=o[e];t[r.name]=r;var n=r.aliases;if(Array.isArray(n))for(var i=0;i<n.length;i++){t[n[i]]=r}}return t}()},8828:(t,e,r)=>{var n=r(5997),o=r(3196),i=(r(594),r(6615)),a=r(1195),u=r(8099),s=function(t){t.protocol=function(){return n},u.call(this,t)};r(9539).inherits(s,u),s.prototype._upload=function(t,e){var r,n=this;try{r="string"==typeof t?_UNO_.TMP.HEX:t}catch(t){return e(t)}n._reset((function(t){if(t)return e(t);n.debug("reset complete."),n.connection._pollForOpen((function(t){if(t)return e(t);n.debug("connected"),n._write(r,(function(t){var r=t?o.red:o.green;return n.debug(r("flash complete.")),e(t)}))}))}))},s.prototype._write=function(t,e){var r=this,n={signature:r.board.signature.toString(),debug:this.megaDebug};r.chip.init(r.connection.serialPort,n,(function(n,o){if(n)return e(n);r.debug("flashing, please wait..."),a.series([o.erase.bind(o),o.program.bind(o,t.toString()),function(t){!0===r.board.disableVerify?t():o.verify(t)},o.fuseCheck.bind(o)],(function(t){return e(t)}))}))},s.prototype._reset=function(t){var e,r=this;if(r.board.manualReset)return t(null);var n=new i(r.connection.options.port,{baudRate:1200,autoOpen:!1});r.connection.serialPort=n,e=r.connection,r.debug("resetting board..."),a.series([n.open.bind(n),e._setDTR.bind(e,!1,250)],(function(r){if(r)return t(r);a.series([e._pollForPort.bind(e)],(function(e){return t(e)}))}))},t.exports=s},1167:(t,e,r)=>{var n=r(8764).Buffer;const{EventEmitter:o}=r(7187);t.exports=class extends o{constructor(t,e){super(e),this.options=e||{},this.browser=!0,this.path=this.options.path,this.isOpen=!1,this.port=null,this.writer=null,this.reader=null,this.baudRate=this.options.baudRate,this.requestOptions=this.options.requestOptions||{},this.options.autoOpen&&this.open()}list(t){return navigator.serial.getPorts().then((e=>{if(t)return t(null,e)})).catch((e=>{if(t)return t(e)}))}open(t){window.navigator.serial.requestPort(this.requestOptions).then((t=>{if(this.port=t,_UNO_.TMP.AVR=this,!this.isOpen)return this.port.open({baudRate:this.baudRate||57600})})).then((()=>this.writer=this.port.writable.getWriter())).then((()=>this.reader=this.port.readable.getReader())).then((async()=>{for(this.emit("open"),this.isOpen=!0,t(null);this.port.readable.locked;)try{const{value:t,done:e}=await this.reader.read();if(e)break;this.emit("data",n.from(t))}catch(t){console.error(t)}})).catch((e=>{t(e)}))}async close(t){try{await this.reader.releaseLock(),await this.writer.releaseLock(),await this.port.close(),this.isOpen=!1}catch(e){if(t)return t(e);throw e}t&&t(null)}async set(t={},e){try{const e={};Object.prototype.hasOwnProperty.call(t,"dtr")&&(e.dataTerminalReady=t.dtr),Object.prototype.hasOwnProperty.call(t,"rts")&&(e.requestToSend=t.rts),Object.prototype.hasOwnProperty.call(t,"brk")&&(e.break=t.brk),Object.keys(e).length>0&&await this.port.setSignals(e)}catch(t){if(e)return e(t);throw t}if(e)return e(null)}write(t,e){if(this.writer.write(t),e)return e(null)}async read(t){let e;try{e=await this.reader.read()}catch(e){if(t)return t(e);throw e}t&&t(null,e)}flush(t){if(t)return t(null)}drain(t){if(t)return t(null)}}},6126:(t,e,r)=>{var n=r(1167),o=r(1195),i=r(9911),a=function(t){if(this.options=t,this.debug=this.options.debug?console.log.bind(console):function(){},this.board=this.options.board,"avr109"===this.board.protocol)throw new Error(`Sorry, we currently don't support ${this.board.name} or other avr109 boards in webserial. Please see https://github.com/noopkat/avrgirl-arduino/issues/204#issuecomment-703284131 for further details`)};a.prototype._init=function(t){this._setUpSerial((function(e){return t(e)}))},a.prototype._setUpSerial=function(t){return this.serialPort=new n("",{baudRate:this.board.baud,autoOpen:!1}),this.serialPort.on("open",(function(){})),t(null)},a.prototype._sniffPort=function(t){var e=this.board.productId.map((function(t){return parseInt(t,16)}));this._listPorts((function(r,n){var o=n.filter((function(t){return-1!==e.indexOf(parseInt(t._standardPid,16))}));return t(null,o)}))},a.prototype._setDTR=function(t,e,r){var n={rts:!1,dtr:t};this.serialPort.set(n,(function(t){if(t)return r(t);setTimeout((function(){r(t)}),e)}))},a.prototype._pollForPort=function(t){var e=this,r=i((function(t){var r=!1;e._sniffPort((function(n,o){o.length&&(e.options.port=o[0].comName,r=!0),t(r)}))}));r.every(100).ask(15),r((function(r){if(!r)return t(new Error("could not reconnect after resetting board."));e.debug("found port on",e.options.port),e._setUpSerial((function(e){return t(e)}))}))},a.prototype._pollForOpen=function(t){var e=this,r=i((function(t){e.serialPort.open((function(e){t(!e)}))}));r.every(200).ask(10),r((function(r){var n;r||(n=new Error("could not open board on "+e.serialPort.path)),t(n)}))},a.prototype._cycleDTR=function(t){var e=this;o.series([e._setDTR.bind(e,!0,250),e._setDTR.bind(e,!1,50)],(function(e){return t(e)}))},a.prototype._listPorts=function(t){var e=[];n.list((function(r,n){if(r)return t(r);for(var o=0;o<n.length;o+=1){var i;if(n[o].productId)i=n[o].productId;else if(n[o].pnpId)try{i="0x"+/PID_\d*/.exec(n[o].pnpId)[0].substr(4)}catch(r){i=""}else i="";n[o]._standardPid=i,e.push(n[o])}return t(null,e)}))},t.exports=a},8099:t=>{var e=function(t){this.debug=t.debug,this.megaDebug=t.megaDebug,this.board=t.board,this.connection=t.connection,this.chip=new t.protocol({quiet:!this.megaDebug})};e.prototype._reset=function(t){var e=this;e.connection._setDTR(!1,250,(function(r){return r||e.debug("reset complete."),t(r)}))},t.exports=e},5957:(t,e,r)=>{t.exports={stk500v1:r(1023),stk500v2:r(6209),avr109:r(8828)}},1023:(t,e,r)=>{var n=r(8764).Buffer,o=r(4107),i=r(3196),a=r(8623),u=r(8099),s=function(t){t.protocol=o,u.call(this,t)};r(9539).inherits(s,u),s.prototype._upload=function(t,e){var r=this;this.serialPort=this.connection.serialPort;var o=a._parseHex(t);if(!n.isBuffer(o))return e(o);r.serialPort.open((function(t){if(t)return e(t);r.debug("connected"),r._reset((function(t){if(t)return e(t);r.debug("flashing, please wait..."),r.chip.bootload(r.serialPort,o,r.board,(function(t){var n=t?i.red:i.green;return r.debug(n("flash complete.")),r.serialPort.close(),e(t)}))}))}))},s.prototype._reset=function(t){var e=this;e.connection._setDTR(!1,250,(function(r){if(r)return t(r);e.connection._setDTR(!0,50,(function(r){return e.debug("reset complete."),t(r)}))}))},t.exports=s},6209:(t,e,r)=>{var n=r(8764).Buffer,o=r(4777),i=r(1195),a=r(3196),u=r(8623),s=r(8099),c=function(t){t.protocol=function(){return o},s.call(this,t)};r(9539).inherits(c,s),c.prototype._upload=function(t,e){var r=this;r.serialPort=r.connection.serialPort;var o=u._parseHex(t);if(!n.isBuffer(o))return e(o);r.serialPort.open((function(t){if(t)return e(t);r.debug("connected");var n=r.chip(r.serialPort);i.series([r._reset.bind(r),n.sync.bind(n,5),n.verifySignature.bind(n,r.board.signature),n.enterProgrammingMode.bind(n,r.board),function(t){r.debug("flashing, please wait..."),t(null)},n.upload.bind(n,o,r.board.pageSize),n.exitProgrammingMode.bind(n)],(function(t){var n=t?a.red:a.green;return r.debug(n("flash complete.")),r.serialPort.close(),e(t)}))}))},t.exports=c},8623:(t,e,r)=>{var n=r(8764).Buffer,o=(r(594),r(4620)),i={_parseHex:function(t){try{var e;return e="string"==typeof t?_UNO_.TMP.HEX:n.from(t),o.parse(e).data}catch(t){return t}},_hexStringToByte:function(t){return n.from([parseInt(t,16)])}};t.exports=i},2190:t=>{t.exports=function(t,r,n){if(t.filter)return t.filter(r,n);if(null==t)throw new TypeError;if("function"!=typeof r)throw new TypeError;for(var o=[],i=0;i<t.length;i++)if(e.call(t,i)){var a=t[i];r.call(n,a,i,t)&&o.push(a)}return o};var e=Object.prototype.hasOwnProperty},1195:function(t,e,r){t=r.nmd(t);var n=r(4155);!function(e){"use strict";function o(t,e){e|=0;for(var r=Math.max(t.length-e,0),n=Array(r),o=0;o<r;o++)n[o]=t[e+o];return n}var i=function(t){var e=o(arguments,1);return function(){var r=o(arguments);return t.apply(null,e.concat(r))}},a=function(t){return function(){var e=o(arguments),r=e.pop();t.call(this,e,r)}};function u(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var s="function"==typeof setImmediate&&setImmediate,c="object"==typeof n&&"function"==typeof n.nextTick;function f(t){setTimeout(t,0)}function l(t){return function(e){var r=o(arguments,1);t((function(){e.apply(null,r)}))}}var p=l(s?setImmediate:c?n.nextTick:f);function h(t){return a((function(e,r){var n;try{n=t.apply(this,e)}catch(t){return r(t)}u(n)&&"function"==typeof n.then?n.then((function(t){d(r,null,t)}),(function(t){d(r,t.message?t:new Error(t))})):r(null,n)}))}function d(t,e,r){try{t(e,r)}catch(t){p(y,t)}}function y(t){throw t}var g="function"==typeof Symbol;function m(t){return g&&"AsyncFunction"===t[Symbol.toStringTag]}function v(t){return m(t)?h(t):t}function b(t){return function(e){var r=o(arguments,1),n=a((function(r,n){var o=this;return t(e,(function(t,e){v(t).apply(o,r.concat(e))}),n)}));return r.length?n.apply(this,r):n}}var w="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_="object"==typeof self&&self&&self.Object===Object&&self,S=w||_||Function("return this")(),E=S.Symbol,A=Object.prototype,x=A.hasOwnProperty,O=A.toString,R=E?E.toStringTag:void 0;function P(t){var e=x.call(t,R),r=t[R];try{t[R]=void 0;var n=!0}catch(t){}var o=O.call(t);return n&&(e?t[R]=r:delete t[R]),o}var T=Object.prototype.toString;function k(t){return T.call(t)}var I="[object Null]",M="[object Undefined]",j=E?E.toStringTag:void 0;function C(t){return null==t?void 0===t?M:I:j&&j in Object(t)?P(t):k(t)}var B="[object AsyncFunction]",L="[object Function]",D="[object GeneratorFunction]",U="[object Proxy]";function N(t){if(!u(t))return!1;var e=C(t);return e==L||e==D||e==B||e==U}var F=9007199254740991;function G(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=F}function z(t){return null!=t&&G(t.length)&&!N(t)}var W={};function q(){}function V(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}var K="function"==typeof Symbol&&Symbol.iterator,H=function(t){return K&&t[K]&&t[K]()};function $(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Y(t){return null!=t&&"object"==typeof t}var J="[object Arguments]";function Q(t){return Y(t)&&C(t)==J}var X=Object.prototype,Z=X.hasOwnProperty,tt=X.propertyIsEnumerable,et=Q(function(){return arguments}())?Q:function(t){return Y(t)&&Z.call(t,"callee")&&!tt.call(t,"callee")},rt=Array.isArray;function nt(){return!1}var ot="object"==typeof e&&e&&!e.nodeType&&e,it=ot&&t&&!t.nodeType&&t,at=it&&it.exports===ot?S.Buffer:void 0,ut=(at?at.isBuffer:void 0)||nt,st=9007199254740991,ct=/^(?:0|[1-9]\d*)$/;function ft(t,e){var r=typeof t;return!!(e=null==e?st:e)&&("number"==r||"symbol"!=r&&ct.test(t))&&t>-1&&t%1==0&&t<e}var lt="[object Arguments]",pt="[object Array]",ht="[object Boolean]",dt="[object Date]",yt="[object Error]",gt="[object Function]",mt="[object Map]",vt="[object Number]",bt="[object Object]",wt="[object RegExp]",_t="[object Set]",St="[object String]",Et="[object WeakMap]",At="[object ArrayBuffer]",xt="[object DataView]",Ot="[object Float64Array]",Rt="[object Int8Array]",Pt="[object Int16Array]",Tt="[object Int32Array]",kt="[object Uint8Array]",It="[object Uint8ClampedArray]",Mt="[object Uint16Array]",jt="[object Uint32Array]",Ct={};function Bt(t){return Y(t)&&G(t.length)&&!!Ct[C(t)]}function Lt(t){return function(e){return t(e)}}Ct["[object Float32Array]"]=Ct[Ot]=Ct[Rt]=Ct[Pt]=Ct[Tt]=Ct[kt]=Ct[It]=Ct[Mt]=Ct[jt]=!0,Ct[lt]=Ct[pt]=Ct[At]=Ct[ht]=Ct[xt]=Ct[dt]=Ct[yt]=Ct[gt]=Ct[mt]=Ct[vt]=Ct[bt]=Ct[wt]=Ct[_t]=Ct[St]=Ct[Et]=!1;var Dt="object"==typeof e&&e&&!e.nodeType&&e,Ut=Dt&&t&&!t.nodeType&&t,Nt=Ut&&Ut.exports===Dt&&w.process,Ft=function(){try{var t=Ut&&Ut.require&&Ut.require("util").types;return t||Nt&&Nt.binding&&Nt.binding("util")}catch(t){}}(),Gt=Ft&&Ft.isTypedArray,zt=Gt?Lt(Gt):Bt,Wt=Object.prototype.hasOwnProperty;function qt(t,e){var r=rt(t),n=!r&&et(t),o=!r&&!n&&ut(t),i=!r&&!n&&!o&&zt(t),a=r||n||o||i,u=a?$(t.length,String):[],s=u.length;for(var c in t)!e&&!Wt.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ft(c,s))||u.push(c);return u}var Vt=Object.prototype;function Kt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Vt)}function Ht(t,e){return function(r){return t(e(r))}}var $t=Ht(Object.keys,Object),Yt=Object.prototype.hasOwnProperty;function Jt(t){if(!Kt(t))return $t(t);var e=[];for(var r in Object(t))Yt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Qt(t){return z(t)?qt(t):Jt(t)}function Xt(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Zt(t){var e=-1;return function(){var r=t.next();return r.done?null:(e++,{value:r.value,key:e})}}function te(t){var e=Qt(t),r=-1,n=e.length;return function(){var o=e[++r];return r<n?{value:t[o],key:o}:null}}function ee(t){if(z(t))return Xt(t);var e=H(t);return e?Zt(e):te(t)}function re(t){return function(){if(null===t)throw new Error("Callback was already called.");var e=t;t=null,e.apply(this,arguments)}}function ne(t){return function(e,r,n){if(n=V(n||q),t<=0||!e)return n(null);var o=ee(e),i=!1,a=0,u=!1;function s(t,e){if(a-=1,t)i=!0,n(t);else{if(e===W||i&&a<=0)return i=!0,n(null);u||c()}}function c(){for(u=!0;a<t&&!i;){var e=o();if(null===e)return i=!0,void(a<=0&&n(null));a+=1,r(e.value,e.key,re(s))}u=!1}c()}}function oe(t,e,r,n){ne(e)(t,v(r),n)}function ie(t,e){return function(r,n,o){return t(r,e,n,o)}}function ae(t,e,r){r=V(r||q);var n=0,o=0,i=t.length;function a(t,e){t?r(t):++o!==i&&e!==W||r(null)}for(0===i&&r(null);n<i;n++)e(t[n],n,re(a))}var ue=ie(oe,1/0),se=function(t,e,r){(z(t)?ae:ue)(t,v(e),r)};function ce(t){return function(e,r,n){return t(se,e,v(r),n)}}function fe(t,e,r,n){n=n||q,e=e||[];var o=[],i=0,a=v(r);t(e,(function(t,e,r){var n=i++;a(t,(function(t,e){o[n]=e,r(t)}))}),(function(t){n(t,o)}))}var le=ce(fe),pe=b(le);function he(t){return function(e,r,n,o){return t(ne(r),e,v(n),o)}}var de=he(fe),ye=ie(de,1),ge=b(ye);function me(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function ve(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}var be=ve();function we(t,e){return t&&be(t,e,Qt)}function _e(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Se(t){return t!=t}function Ee(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}function Ae(t,e,r){return e==e?Ee(t,e,r):_e(t,Se,r)}var xe=function(t,e,r){"function"==typeof e&&(r=e,e=null),r=V(r||q);var n=Qt(t).length;if(!n)return r(null);e||(e=n);var i={},a=0,u=!1,s=Object.create(null),c=[],f=[],l={};function p(t,e){c.push((function(){g(t,e)}))}function h(){if(0===c.length&&0===a)return r(null,i);for(;c.length&&a<e;)c.shift()()}function d(t,e){var r=s[t];r||(r=s[t]=[]),r.push(e)}function y(t){me(s[t]||[],(function(t){t()})),h()}function g(t,e){if(!u){var n=re((function(e,n){if(a--,arguments.length>2&&(n=o(arguments,1)),e){var c={};we(i,(function(t,e){c[e]=t})),c[t]=n,u=!0,s=Object.create(null),r(e,c)}else i[t]=n,y(t)}));a++;var c=v(e[e.length-1]);e.length>1?c(i,n):c(n)}}function m(){for(var t=0;f.length;)t++,me(b(f.pop()),(function(t){0==--l[t]&&f.push(t)}));if(t!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(e){var r=[];return we(t,(function(t,n){rt(t)&&Ae(t,e,0)>=0&&r.push(n)})),r}we(t,(function(e,r){if(!rt(e))return p(r,[e]),void f.push(r);var n=e.slice(0,e.length-1),o=n.length;if(0===o)return p(r,e),void f.push(r);l[r]=o,me(n,(function(i){if(!t[i])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+i+"` in "+n.join(", "));d(i,(function(){0==--o&&p(r,e)}))}))})),m(),h()};function Oe(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var Re="[object Symbol]";function Pe(t){return"symbol"==typeof t||Y(t)&&C(t)==Re}var Te=1/0,ke=E?E.prototype:void 0,Ie=ke?ke.toString:void 0;function Me(t){if("string"==typeof t)return t;if(rt(t))return Oe(t,Me)+"";if(Pe(t))return Ie?Ie.call(t):"";var e=t+"";return"0"==e&&1/t==-Te?"-0":e}function je(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}function Ce(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:je(t,e,r)}function Be(t,e){for(var r=t.length;r--&&Ae(e,t[r],0)>-1;);return r}function Le(t,e){for(var r=-1,n=t.length;++r<n&&Ae(e,t[r],0)>-1;);return r}function De(t){return t.split("")}var Ue=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ne(t){return Ue.test(t)}var Fe="\\ud800-\\udfff",Ge="["+Fe+"]",ze="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",We="\\ud83c[\\udffb-\\udfff]",qe="[^"+Fe+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ke="[\\ud800-\\udbff][\\udc00-\\udfff]",He="(?:"+ze+"|"+We+")?",$e="[\\ufe0e\\ufe0f]?",Ye="(?:\\u200d(?:"+[qe,Ve,Ke].join("|")+")"+$e+He+")*",Je=$e+He+Ye,Qe="(?:"+[qe+ze+"?",ze,Ve,Ke,Ge].join("|")+")",Xe=RegExp(We+"(?="+We+")|"+Qe+Je,"g");function Ze(t){return t.match(Xe)||[]}function tr(t){return Ne(t)?Ze(t):De(t)}function er(t){return null==t?"":Me(t)}var rr=/^\s+|\s+$/g;function nr(t,e,r){if((t=er(t))&&(r||void 0===e))return t.replace(rr,"");if(!t||!(e=Me(e)))return t;var n=tr(t),o=tr(e);return Ce(n,Le(n,o),Be(n,o)+1).join("")}var or=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,ir=/,/,ar=/(=.+)?(\s*)$/,ur=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function sr(t){return t=(t=(t=(t=t.toString().replace(ur,"")).match(or)[2].replace(" ",""))?t.split(ir):[]).map((function(t){return nr(t.replace(ar,""))}))}function cr(t,e){var r={};we(t,(function(t,e){var n,o=m(t),i=!o&&1===t.length||o&&0===t.length;if(rt(t))n=t.slice(0,-1),t=t[t.length-1],r[e]=n.concat(n.length>0?a:t);else if(i)r[e]=t;else{if(n=sr(t),0===t.length&&!o&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");o||n.pop(),r[e]=n.concat(a)}function a(e,r){var o=Oe(n,(function(t){return e[t]}));o.push(r),v(t).apply(null,o)}})),xe(r,e)}function fr(){this.head=this.tail=null,this.length=0}function lr(t,e){t.length=1,t.head=t.tail=e}function pr(t,e,r){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var n=v(t),o=0,i=[],a=!1;function u(t,e,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(f.started=!0,rt(t)||(t=[t]),0===t.length&&f.idle())return p((function(){f.drain()}));for(var n=0,o=t.length;n<o;n++){var i={data:t[n],callback:r||q};e?f._tasks.unshift(i):f._tasks.push(i)}a||(a=!0,p((function(){a=!1,f.process()})))}function s(t){return function(e){o-=1;for(var r=0,n=t.length;r<n;r++){var a=t[r],u=Ae(i,a,0);0===u?i.shift():u>0&&i.splice(u,1),a.callback.apply(a,arguments),null!=e&&f.error(e,a.data)}o<=f.concurrency-f.buffer&&f.unsaturated(),f.idle()&&f.drain(),f.process()}}var c=!1,f={_tasks:new fr,concurrency:e,payload:r,saturated:q,unsaturated:q,buffer:e/4,empty:q,drain:q,error:q,started:!1,paused:!1,push:function(t,e){u(t,!1,e)},kill:function(){f.drain=q,f._tasks.empty()},unshift:function(t,e){u(t,!0,e)},remove:function(t){f._tasks.remove(t)},process:function(){if(!c){for(c=!0;!f.paused&&o<f.concurrency&&f._tasks.length;){var t=[],e=[],r=f._tasks.length;f.payload&&(r=Math.min(r,f.payload));for(var a=0;a<r;a++){var u=f._tasks.shift();t.push(u),i.push(u),e.push(u.data)}o+=1,0===f._tasks.length&&f.empty(),o===f.concurrency&&f.saturated();var l=re(s(t));n(e,l)}c=!1}},length:function(){return f._tasks.length},running:function(){return o},workersList:function(){return i},idle:function(){return f._tasks.length+o===0},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,p(f.process))}};return f}function hr(t,e){return pr(t,1,e)}fr.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},fr.prototype.empty=function(){for(;this.head;)this.shift();return this},fr.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},fr.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},fr.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):lr(this,t)},fr.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):lr(this,t)},fr.prototype.shift=function(){return this.head&&this.removeLink(this.head)},fr.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},fr.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,r=0;r<this.length;r++)t[r]=e.data,e=e.next;return t},fr.prototype.remove=function(t){for(var e=this.head;e;){var r=e.next;t(e)&&this.removeLink(e),e=r}return this};var dr=ie(oe,1);function yr(t,e,r,n){n=V(n||q);var o=v(r);dr(t,(function(t,r,n){o(e,t,(function(t,r){e=r,n(t)}))}),(function(t){n(t,e)}))}function gr(){var t=Oe(arguments,v);return function(){var e=o(arguments),r=this,n=e[e.length-1];"function"==typeof n?e.pop():n=q,yr(t,e,(function(t,e,n){e.apply(r,t.concat((function(t){var e=o(arguments,1);n(t,e)})))}),(function(t,e){n.apply(r,[t].concat(e))}))}}var mr=function(){return gr.apply(null,o(arguments).reverse())},vr=Array.prototype.concat,br=function(t,e,r,n){n=n||q;var i=v(r);de(t,e,(function(t,e){i(t,(function(t){return t?e(t):e(null,o(arguments,1))}))}),(function(t,e){for(var r=[],o=0;o<e.length;o++)e[o]&&(r=vr.apply(r,e[o]));return n(t,r)}))},wr=ie(br,1/0),_r=ie(br,1),Sr=function(){var t=o(arguments),e=[null].concat(t);return function(){return arguments[arguments.length-1].apply(this,e)}};function Er(t){return t}function Ar(t,e){return function(r,n,o,i){i=i||q;var a,u=!1;r(n,(function(r,n,i){o(r,(function(n,o){n?i(n):t(o)&&!a?(u=!0,a=e(!0,r),i(null,W)):i()}))}),(function(t){t?i(t):i(null,u?a:e(!1))}))}}function xr(t,e){return e}var Or=ce(Ar(Er,xr)),Rr=he(Ar(Er,xr)),Pr=ie(Rr,1);function Tr(t){return function(e){var r=o(arguments,1);r.push((function(e){var r=o(arguments,1);"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&me(r,(function(e){console[t](e)})))})),v(e).apply(null,r)}}var kr=Tr("dir");function Ir(t,e,r){r=re(r||q);var n=v(t),i=v(e);function a(t){if(t)return r(t);var e=o(arguments,1);e.push(u),i.apply(this,e)}function u(t,e){return t?r(t):e?void n(a):r(null)}u(null,!0)}function Mr(t,e,r){r=re(r||q);var n=v(t),i=function(t){if(t)return r(t);var a=o(arguments,1);if(e.apply(this,a))return n(i);r.apply(null,[null].concat(a))};n(i)}function jr(t,e,r){Mr(t,(function(){return!e.apply(this,arguments)}),r)}function Cr(t,e,r){r=re(r||q);var n=v(e),o=v(t);function i(t){if(t)return r(t);o(a)}function a(t,e){return t?r(t):e?void n(i):r(null)}o(a)}function Br(t){return function(e,r,n){return t(e,n)}}function Lr(t,e,r){se(t,Br(v(e)),r)}function Dr(t,e,r,n){ne(e)(t,Br(v(r)),n)}var Ur=ie(Dr,1);function Nr(t){return m(t)?t:a((function(e,r){var n=!0;e.push((function(){var t=arguments;n?p((function(){r.apply(null,t)})):r.apply(null,t)})),t.apply(this,e),n=!1}))}function Fr(t){return!t}var Gr=ce(Ar(Fr,Fr)),zr=he(Ar(Fr,Fr)),Wr=ie(zr,1);function qr(t){return function(e){return null==e?void 0:e[t]}}function Vr(t,e,r,n){var o=new Array(e.length);t(e,(function(t,e,n){r(t,(function(t,r){o[e]=!!r,n(t)}))}),(function(t){if(t)return n(t);for(var r=[],i=0;i<e.length;i++)o[i]&&r.push(e[i]);n(null,r)}))}function Kr(t,e,r,n){var o=[];t(e,(function(t,e,n){r(t,(function(r,i){r?n(r):(i&&o.push({index:e,value:t}),n())}))}),(function(t){t?n(t):n(null,Oe(o.sort((function(t,e){return t.index-e.index})),qr("value")))}))}function Hr(t,e,r,n){(z(e)?Vr:Kr)(t,e,v(r),n||q)}var $r=ce(Hr),Yr=he(Hr),Jr=ie(Yr,1);function Qr(t,e){var r=re(e||q),n=v(Nr(t));function o(t){if(t)return r(t);n(o)}o()}var Xr=function(t,e,r,n){n=n||q;var o=v(r);de(t,e,(function(t,e){o(t,(function(r,n){return r?e(r):e(null,{key:n,val:t})}))}),(function(t,e){for(var r={},o=Object.prototype.hasOwnProperty,i=0;i<e.length;i++)if(e[i]){var a=e[i].key,u=e[i].val;o.call(r,a)?r[a].push(u):r[a]=[u]}return n(t,r)}))},Zr=ie(Xr,1/0),tn=ie(Xr,1),en=Tr("log");function rn(t,e,r,n){n=V(n||q);var o={},i=v(r);oe(t,e,(function(t,e,r){i(t,e,(function(t,n){if(t)return r(t);o[e]=n,r()}))}),(function(t){n(t,o)}))}var nn=ie(rn,1/0),on=ie(rn,1);function an(t,e){return e in t}function un(t,e){var r=Object.create(null),n=Object.create(null);e=e||Er;var i=v(t),u=a((function(t,a){var u=e.apply(null,t);an(r,u)?p((function(){a.apply(null,r[u])})):an(n,u)?n[u].push(a):(n[u]=[a],i.apply(null,t.concat((function(){var t=o(arguments);r[u]=t;var e=n[u];delete n[u];for(var i=0,a=e.length;i<a;i++)e[i].apply(null,t)}))))}));return u.memo=r,u.unmemoized=t,u}var sn=l(c?n.nextTick:s?setImmediate:f);function cn(t,e,r){r=r||q;var n=z(e)?[]:{};t(e,(function(t,e,r){v(t)((function(t,i){arguments.length>2&&(i=o(arguments,1)),n[e]=i,r(t)}))}),(function(t){r(t,n)}))}function fn(t,e){cn(se,t,e)}function ln(t,e,r){cn(ne(e),t,r)}var pn=function(t,e){var r=v(t);return pr((function(t,e){r(t[0],e)}),e,1)},hn=function(t,e){var r=pn(t,e);return r.push=function(t,e,n){if(null==n&&(n=q),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,rt(t)||(t=[t]),0===t.length)return p((function(){r.drain()}));e=e||0;for(var o=r._tasks.head;o&&e>=o.priority;)o=o.next;for(var i=0,a=t.length;i<a;i++){var u={data:t[i],priority:e,callback:n};o?r._tasks.insertBefore(o,u):r._tasks.push(u)}p(r.process)},delete r.unshift,r};function dn(t,e){if(e=V(e||q),!rt(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,n=t.length;r<n;r++)v(t[r])(e)}function yn(t,e,r,n){yr(o(t).reverse(),e,r,n)}function gn(t){var e=v(t);return a((function(t,r){return t.push((function(t,e){var n;t?r(null,{error:t}):(n=arguments.length<=2?e:o(arguments,1),r(null,{value:n}))})),e.apply(this,t)}))}function mn(t){var e;return rt(t)?e=Oe(t,gn):(e={},we(t,(function(t,r){e[r]=gn.call(this,t)}))),e}function vn(t,e,r,n){Hr(t,e,(function(t,e){r(t,(function(t,r){e(t,!r)}))}),n)}var bn=ce(vn),wn=he(vn),_n=ie(wn,1);function Sn(t){return function(){return t}}function En(t,e,r){var n=5,o=0,i={times:n,intervalFunc:Sn(o)};function a(t,e){if("object"==typeof e)t.times=+e.times||n,t.intervalFunc="function"==typeof e.interval?e.interval:Sn(+e.interval||o),t.errorFilter=e.errorFilter;else{if("number"!=typeof e&&"string"!=typeof e)throw new Error("Invalid arguments for async.retry");t.times=+e||n}}if(arguments.length<3&&"function"==typeof t?(r=e||q,e=t):(a(i,t),r=r||q),"function"!=typeof e)throw new Error("Invalid arguments for async.retry");var u=v(e),s=1;function c(){u((function(t){t&&s++<i.times&&("function"!=typeof i.errorFilter||i.errorFilter(t))?setTimeout(c,i.intervalFunc(s)):r.apply(null,arguments)}))}c()}var An=function(t,e){e||(e=t,t=null);var r=v(e);return a((function(e,n){function o(t){r.apply(null,e.concat(t))}t?En(t,o,n):En(o,n)}))};function xn(t,e){cn(dr,t,e)}var On=ce(Ar(Boolean,Er)),Rn=he(Ar(Boolean,Er)),Pn=ie(Rn,1);function Tn(t,e,r){var n=v(e);function o(t,e){var r=t.criteria,n=e.criteria;return r<n?-1:r>n?1:0}le(t,(function(t,e){n(t,(function(r,n){if(r)return e(r);e(null,{value:t,criteria:n})}))}),(function(t,e){if(t)return r(t);r(null,Oe(e.sort(o),qr("value")))}))}function kn(t,e,r){var n=v(t);return a((function(o,i){var a,u=!1;function s(){var e=t.name||"anonymous",n=new Error('Callback function "'+e+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),u=!0,i(n)}o.push((function(){u||(i.apply(null,arguments),clearTimeout(a))})),a=setTimeout(s,e),n.apply(null,o)}))}var In=Math.ceil,Mn=Math.max;function jn(t,e,r,n){for(var o=-1,i=Mn(In((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a}function Cn(t,e,r,n){var o=v(r);de(jn(0,t,1),e,o,n)}var Bn=ie(Cn,1/0),Ln=ie(Cn,1);function Dn(t,e,r,n){arguments.length<=3&&(n=r,r=e,e=rt(t)?[]:{}),n=V(n||q);var o=v(r);se(t,(function(t,r,n){o(e,t,r,n)}),(function(t){n(t,e)}))}function Un(t,e){var r,n=null;e=e||q,Ur(t,(function(t,e){v(t)((function(t,i){r=arguments.length>2?o(arguments,1):i,n=t,e(!t)}))}),(function(){e(n,r)}))}function Nn(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function Fn(t,e,r){r=re(r||q);var n=v(e);if(!t())return r(null);var i=function(e){if(e)return r(e);if(t())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function Gn(t,e,r){Fn((function(){return!t.apply(this,arguments)}),e,r)}var zn=function(t,e){if(e=V(e||q),!rt(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function n(e){var n=v(t[r++]);e.push(re(i)),n.apply(null,e)}function i(i){if(i||r===t.length)return e.apply(null,arguments);n(o(arguments,1))}n([])},Wn={apply:i,applyEach:pe,applyEachSeries:ge,asyncify:h,auto:xe,autoInject:cr,cargo:hr,compose:mr,concat:wr,concatLimit:br,concatSeries:_r,constant:Sr,detect:Or,detectLimit:Rr,detectSeries:Pr,dir:kr,doDuring:Ir,doUntil:jr,doWhilst:Mr,during:Cr,each:Lr,eachLimit:Dr,eachOf:se,eachOfLimit:oe,eachOfSeries:dr,eachSeries:Ur,ensureAsync:Nr,every:Gr,everyLimit:zr,everySeries:Wr,filter:$r,filterLimit:Yr,filterSeries:Jr,forever:Qr,groupBy:Zr,groupByLimit:Xr,groupBySeries:tn,log:en,map:le,mapLimit:de,mapSeries:ye,mapValues:nn,mapValuesLimit:rn,mapValuesSeries:on,memoize:un,nextTick:sn,parallel:fn,parallelLimit:ln,priorityQueue:hn,queue:pn,race:dn,reduce:yr,reduceRight:yn,reflect:gn,reflectAll:mn,reject:bn,rejectLimit:wn,rejectSeries:_n,retry:En,retryable:An,seq:gr,series:xn,setImmediate:p,some:On,someLimit:Rn,someSeries:Pn,sortBy:Tn,timeout:kn,times:Bn,timesLimit:Cn,timesSeries:Ln,transform:Dn,tryEach:Un,unmemoize:Nn,until:Gn,waterfall:zn,whilst:Fn,all:Gr,allLimit:zr,allSeries:Wr,any:On,anyLimit:Rn,anySeries:Pn,find:Or,findLimit:Rr,findSeries:Pr,forEach:Lr,forEachSeries:Ur,forEachLimit:Dr,forEachOf:se,forEachOfSeries:dr,forEachOfLimit:oe,inject:yr,foldl:yr,foldr:yn,select:$r,selectLimit:Yr,selectSeries:Jr,wrapSync:h};e.default=Wn,e.apply=i,e.applyEach=pe,e.applyEachSeries=ge,e.asyncify=h,e.auto=xe,e.autoInject=cr,e.cargo=hr,e.compose=mr,e.concat=wr,e.concatLimit=br,e.concatSeries=_r,e.constant=Sr,e.detect=Or,e.detectLimit=Rr,e.detectSeries=Pr,e.dir=kr,e.doDuring=Ir,e.doUntil=jr,e.doWhilst=Mr,e.during=Cr,e.each=Lr,e.eachLimit=Dr,e.eachOf=se,e.eachOfLimit=oe,e.eachOfSeries=dr,e.eachSeries=Ur,e.ensureAsync=Nr,e.every=Gr,e.everyLimit=zr,e.everySeries=Wr,e.filter=$r,e.filterLimit=Yr,e.filterSeries=Jr,e.forever=Qr,e.groupBy=Zr,e.groupByLimit=Xr,e.groupBySeries=tn,e.log=en,e.map=le,e.mapLimit=de,e.mapSeries=ye,e.mapValues=nn,e.mapValuesLimit=rn,e.mapValuesSeries=on,e.memoize=un,e.nextTick=sn,e.parallel=fn,e.parallelLimit=ln,e.priorityQueue=hn,e.queue=pn,e.race=dn,e.reduce=yr,e.reduceRight=yn,e.reflect=gn,e.reflectAll=mn,e.reject=bn,e.rejectLimit=wn,e.rejectSeries=_n,e.retry=En,e.retryable=An,e.seq=gr,e.series=xn,e.setImmediate=p,e.some=On,e.someLimit=Rn,e.someSeries=Pn,e.sortBy=Tn,e.timeout=kn,e.times=Bn,e.timesLimit=Cn,e.timesSeries=Ln,e.transform=Dn,e.tryEach=Un,e.unmemoize=Nn,e.until=Gn,e.waterfall=zn,e.whilst=Fn,e.all=Gr,e.allLimit=zr,e.allSeries=Wr,e.any=On,e.anyLimit=Rn,e.anySeries=Pn,e.find=Or,e.findLimit=Rr,e.findSeries=Pr,e.forEach=Lr,e.forEachSeries=Ur,e.forEachLimit=Dr,e.forEachOf=se,e.forEachOfSeries=dr,e.forEachOfLimit=oe,e.inject=yr,e.foldl=yr,e.foldr=yn,e.select=$r,e.selectLimit=Yr,e.selectSeries=Jr,e.wrapSync=h,Object.defineProperty(e,"__esModule",{value:!0})}(e)},6314:(t,e,r)=>{"use strict";var n=r(2190);t.exports=function(){return n(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],(function(t){return"function"==typeof r.g[t]}))}},3664:t=>{t.exports=function(t,e){for(var r=0;r++<e;)t*=2;return t}},9911:(t,e,r)=>{var n=r(7413),o=r(3664);t.exports=function(t){if(!arguments.length)throw new SyntaxError("must supply a polling function");if(!n(t,"function"))throw new TypeError("poll must be a function");return function(){var e,r,i=1/0,a=!1,u=1e3,s=null,c=0;function f(){var e=t(l);0===t.length&&l(e)}function l(t){var e=u,n=r;c+=1,t||c>=i?r&&(r=null,n(!!t)):(a&&(!0===a?e=o(e,c):e+=c*a),s=setTimeout(f,e))}return e=function(t){if(s&&(clearTimeout(s),s=null,r&&r(!1),r=null,c=0),arguments.length){if(!n(t,"function"))throw new TypeError("done callback must be a function");r=t}s=setTimeout(f,u)},e.ask=function(t){if(s)throw new SyntaxError("can not set ask limit during polling");if(!n(t,"number"))throw new TypeError("ask limit must be a number");return i=t,e},e.every=function(t){if(s)throw new SyntaxError("can not set timeout during polling");if(!n(t,"number"))throw new TypeError("timout must be a number");return u=t,e},e.incr=function(t){if(s)throw new SyntexError("can not set increment during polling");if(!arguments.length||n(t,"boolean"))a=!!t;else{if(!n(t,"number"))throw new TypeError("increment must be a boolean or number");a=t}return e},e}()}},7413:t=>{t.exports=function(t,e){function r(e){return"object"==typeof t&&null!==t}function n(t){return t.name.toLowerCase()}switch(2===arguments.length&&void 0===e?e="undefined":Number.isNaN(e)&&(e="NaN"),e){case"boolean":case"function":case"string":return typeof t===e;case"number":return typeof t===e&&!isNaN(t);case Number:if(isNaN(t))return!1;case String:case Boolean:return typeof t===n(e);case Object:case"object":return r();case"array":return Array.isArray(t);case"regex":case"regexp":return t instanceof RegExp;case"date":return t instanceof Date;case"null":case null:return null===t;case"undefined":return void 0===t;case"NaN":return Number.isNaN(t);case"arguments":return!!r()&&("function"==typeof t.callee||/arguments/i.test(t.toString()));default:return"function"==typeof e?t instanceof e:t}}},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=s(t),a=i[0],u=i[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),f=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,u=0,s=n-o;u<s;u+=a)i.push(c(t,u,u+a>s?s:u+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a<u;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var o,i,a=[],u=e;u<n;u+=3)o=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(t,e,r)=>{"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */const n=r(9742),o=r(3703),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=u(r);const o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return h(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);const o=function(t){if(s.isBuffer(t)){const e=0|d(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||J(t.length)?u(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),u(t<0?0:0|d(t))}function p(t){const e=t.length<0?0:0|d(t.length),r=u(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,s.prototype),n}function d(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function y(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(t).length;default:if(o)return n?-1:K(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return O(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){let i,a=1,u=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let n=-1;for(i=r;i<u;i++)if(c(t,i)===c(e,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===s)return n*a}else-1!==n&&(i-=i-n),n=-1}else for(r+s>u&&(r=u-s),i=r;i>=0;i--){let r=!0;for(let n=0;n<s;n++)if(c(t,i+n)!==c(e,n)){r=!1;break}if(r)return i}return-1}function w(t,e,r,n){r=Number(r)||0;const o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;const i=e.length;let a;for(n>i/2&&(n=i/2),a=0;a<n;++a){const n=parseInt(e.substr(2*a,2),16);if(J(n))return a;t[r+a]=n}return a}function _(t,e,r,n){return $(K(e,t.length-r),t,r,n)}function S(t,e,r,n){return $(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function E(t,e,r,n){return $(H(e),t,r,n)}function A(t,e,r,n){return $(function(t,e){let r,n,o;const i=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function O(t,e,r){r=Math.min(t.length,r);const n=[];let o=e;for(;o<r;){const e=t[o];let i=null,a=e>239?4:e>223?3:e>191?2:1;if(o+a<=r){let r,n,u,s;switch(a){case 1:e<128&&(i=e);break;case 2:r=t[o+1],128==(192&r)&&(s=(31&e)<<6|63&r,s>127&&(i=s));break;case 3:r=t[o+1],n=t[o+2],128==(192&r)&&128==(192&n)&&(s=(15&e)<<12|(63&r)<<6|63&n,s>2047&&(s<55296||s>57343)&&(i=s));break;case 4:r=t[o+1],n=t[o+2],u=t[o+3],128==(192&r)&&128==(192&n)&&128==(192&u)&&(s=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&u,s>65535&&s<1114112&&(i=s))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(t){const e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=R));return r}(n)}e.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return function(t,e,r){return f(t),t<=0?u(t):void 0!==e?"string"==typeof r?u(t).fill(e,r):u(t).fill(e):u(t)}(t,e,r)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(Y(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=s.allocUnsafe(e);let o=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))o+e.length>n.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,o)}o+=e.length}return n},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},s.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},s.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},s.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?O(this,0,t):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,o){if(Y(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const u=Math.min(i,a),c=this.slice(n,o),f=t.slice(e,r);for(let t=0;t<u;++t)if(c[t]!==f[t]){i=c[t],a=f[t];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return S(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function P(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function T(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function k(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=e;n<r;++n)o+=Q[t[n]];return o}function I(t,e,r){const n=t.slice(e,r);let o="";for(let t=0;t<n.length-1;t+=2)o+=String.fromCharCode(n[t]+256*n[t+1]);return o}function M(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function B(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function L(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,r,n,i){return e=+e,r>>>=0,i||L(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return e=+e,r>>>=0,i||L(t,0,r,8),o.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=this[t],o=1,i=0;for(;++i<e&&(o*=256);)n+=this[t+i]*o;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=X((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))})),s.prototype.readBigUInt64BE=X((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=this[t],o=1,i=0;for(;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=X((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),s.prototype.readBigInt64BE=X((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),s.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){j(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){j(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=X((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=X((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let o=0,i=1,a=0;for(this[e]=255&t;++o<r&&(i*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=X((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=X((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const o=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),o},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{const i=s.isBuffer(t)?t:s.from(t,n),a=i.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=i[o%a]}return this};const N={};function F(t,e,r){N[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function G(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function z(t,e,r,n,o,i){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new N.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){W(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||q(e,t.length-(r+1))}(n,o,i)}function W(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function q(t,e,r){if(Math.floor(t)!==t)throw W(t,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=G(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=G(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function K(t,e){let r;e=e||1/0;const n=t.length;let o=null;const i=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const Q=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function X(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},3703:(t,e)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?p/s:p*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*y}},1924:(t,e,r)=>{"use strict";var n=r(210),o=r(5559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},5559:(t,e,r)=>{"use strict";var n=r(8612),o=r(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=u(n,a,arguments);if(s&&c){var r=s(e,"length");r.configurable&&c(e,"length",{value:1+f(0,t.length-(arguments.length-1))})}return e};var l=function(){return u(n,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},5997:(t,e,r)=>{var n=r(4155),o=r(8764).Buffer,i=r(4620),a=(r(2830).Stream,r(9539),t.exports={}),u=function(t){return(t+"").charCodeAt(0)};a.Flasher=function(t,e){var r=this;this.options=e||{},this.sp=t,this.signature=this.options.signature||"LUFACDC",this.options.debug&&this.sp.on("data",(function(t){n.stdout.write(" -> ");for(var e=0;e<t.length;e++){var r=t.toString().substring(e,e+1);(r.charCodeAt(0)<32||r.charCodeAt(0)>126)&&(r="."),n.stdout.write(r+" ["+t.readUInt8(e).toString(16)+"] ")}n.stdout.write("\n")})),this.c=function(t,e,n){return r.cmds.push({value:t,callback:function(t){e&&e(t)},expectedResponseLength:n}),this},this.flashChunkSize=0,this.bytes=[],this.cmds=[]},a.Flasher.prototype={run:function(t){var e=this;n.nextTick((function(){if(!e.running){var r=e.cmds.shift();if(r){running=!0,e.options.debug&&n.stdout.write("Send: "+r.value);var i=new o(0),a=function(u){i=o.concat([i,u]),(void 0===r.expectedResponseLength||r.expectedResponseLength<=i.length)&&(e.sp.removeListener("data",a),e.running=!1,r.callback(i),n.nextTick((function(){e.cmds.length>0?e.run(t):t&&t()})))};e.sp.on("data",a),e.sp.write(r.value)}}}))},prepare:function(t){var e=this;this.c("S",(function(r){r.toString()!==e.signature&&t(new Error("Invalid device signature; expecting: "+e.signature+" received: "+r.toString()))})).c("V").c("v").c("p").c("a").c("b",(function(r){"Y"!=(r.toString()||"X")[0]&&t(new Error("Buffered memory access not supported.")),e.flashChunkSize=r.readUInt16BE(1)})).c("t").c("TD").c("P").c("F").c("F").c("F").c("N").c("N").c("N").c("Q").c("Q").c("Q").c([u("A"),3,252]).c([u("g"),0,1,u("E")]).c([u("A"),3,255]).c([u("g"),0,1,u("E")]).c([u("A"),3,255]).c([u("g"),0,1,u("E")]).c([u("A"),3,255]).c([u("g"),0,1,u("E")]),this.run((function(){t(null,e)}))},erase:function(t){this.c("e",(function(){t&&t()})),this.run()},program:function(t,e){var r,n=this,o=[];this.totalBytes=0,this.c([u("A"),0,0],(function(){r=i.parse(t),n.totalBytes=r.data.length,Array.prototype.push.apply(o,r.data),n.allBytes=o,n.options.debug&&console.log("programming",o.length,"bytes"),n.chunksSent=[];for(var e=0;e<o.length;e+=n.flashChunkSize){var a=Array.prototype.slice.call(r.data.slice(e,e+n.flashChunkSize));n.chunksSent.push(a),n.c([u("B"),a.length>>8&255,255&a.length,u("F")].concat(a))}})),this.run((function(){e&&e()}))},verify:function(t){var e=this;this.c([u("A"),0,0],(function(){var r=0,o=function(i){var a=null;if(r++,e.allBytes.length){var s=i.length;if(e.allBytes.splice(0,s).forEach((function(t,e){t!==i.readUInt8(e)&&(a=new Error("Firmware on the device does not match local data"))})),a)return t(a);n.nextTick((function(){var t=e.flashChunkSize;e.options.debug&&console.log(e.totalBytes-r*e.flashChunkSize),e.totalBytes-r*e.flashChunkSize<e.flashChunkSize&&(t=e.totalBytes-r*e.flashChunkSize),e.c([u("g"),t>>8&255,255&t,u("F")],o,t),e.run()}))}else t&&t()};e.options.debug&&console.log("\n\nVerifying flash.."),e.c([u("g"),e.flashChunkSize>>8&255,255&e.flashChunkSize,u("F")],o,e.flashChunkSize),e.run()})),e.run()},fuseCheck:function(t){this.options.debug&&console.log("checking fuses"),this.c("F").c("F").c("F").c("N").c("N").c("N").c("Q").c("Q").c("Q").c("L").c("E"),this.run((function(){t()}))}},a.init=function(t,e,r){"function"!=typeof e||r||(r=e,e={}),new a.Flasher(t,e).prepare(r)}},2517:(t,e,r)=>{var n={};t.exports=n,n.themes={};var o=r(9539),i=n.styles=r(5784),a=Object.defineProperties,u=new RegExp(/[\r\n]+/g);n.supportsColor=r(6561).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};n.stylize=function(t,e){if(!n.enabled)return t+"";var r=i[e];return!r&&e in n?n[e](t):r.open+t+r.close};var s=/[|\\{}()[\]^$+*?.]/g;function c(t){var e=function t(){return h.apply(t,arguments)};return e._styles=t,e.__proto__=p,e}var f,l=(f={},i.grey=i.gray,Object.keys(i).forEach((function(t){i[t].closeRe=new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(s,"\\$&")}(i[t].close),"g"),f[t]={get:function(){return c(this._styles.concat(t))}}})),f),p=a((function(){}),l);function h(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return null!=t&&t.constructor===String?t:o.inspect(t)})).join(" ");if(!n.enabled||!e)return e;for(var r=-1!=e.indexOf("\n"),a=this._styles,s=a.length;s--;){var c=i[a[s]];e=c.open+e.replace(c.closeRe,c.open)+c.close,r&&(e=e.replace(u,(function(t){return c.close+t+c.open})))}return e}n.setTheme=function(t){if("string"!=typeof t)for(var e in t)!function(e){n[e]=function(r){if("object"==typeof t[e]){var o=r;for(var i in t[e])o=n[t[e][i]](o);return o}return n[t[e]](r)}}(e);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var d=function(t,e){var r=e.split("");return(r=r.map(t)).join("")};for(var y in n.trap=r(5117),n.zalgo=r(1492),n.maps={},n.maps.america=r(6260)(n),n.maps.zebra=r(3270)(n),n.maps.rainbow=r(5920)(n),n.maps.random=r(2449)(n),n.maps)!function(t){n[t]=function(e){return d(n.maps[t],e)}}(y);a(n,function(){var t={};return Object.keys(l).forEach((function(e){t[e]={get:function(){return c([e])}}})),t}())},5117:t=>{t.exports=function(t,e){var r="";t=(t=t||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return t.forEach((function(t){t=t.toLowerCase();var e=n[t]||[" "],o=Math.floor(Math.random()*e.length);r+=void 0!==n[t]?n[t][o]:t})),r}},1492:t=>{t.exports=function(t,e){t=t||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function o(t){return Math.floor(Math.random()*t)}function i(t){var e=!1;return n.filter((function(r){e=r===t})),e}return function(t,e){var n,a,u="";for(a in(e=e||{}).up=void 0===e.up||e.up,e.mid=void 0===e.mid||e.mid,e.down=void 0===e.down||e.down,e.size=void 0!==e.size?e.size:"maxi",t=t.split(""))if(!i(a)){switch(u+=t[a],n={up:0,down:0,mid:0},e.size){case"mini":n.up=o(8),n.mid=o(2),n.down=o(8);break;case"maxi":n.up=o(16)+3,n.mid=o(4)+1,n.down=o(64)+3;break;default:n.up=o(8)+1,n.mid=o(6)/2,n.down=o(8)+1}var s=["up","mid","down"];for(var c in s)for(var f=s[c],l=0;l<=n[f];l++)e[f]&&(u+=r[f][o(r[f].length)])}return u}(t,e)}},9883:(t,e,r)=>{var n=r(2517);t.exports=function(){var t=function(t,e){String.prototype.__defineGetter__(t,e)};t("strip",(function(){return n.strip(this)})),t("stripColors",(function(){return n.strip(this)})),t("trap",(function(){return n.trap(this)})),t("zalgo",(function(){return n.zalgo(this)})),t("zebra",(function(){return n.zebra(this)})),t("rainbow",(function(){return n.rainbow(this)})),t("random",(function(){return n.random(this)})),t("america",(function(){return n.america(this)})),Object.keys(n.styles).forEach((function(e){t(e,(function(){return n.stylize(this,e)}))})),n.setTheme=function(e){"string"!=typeof e?function(e){var r=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","charAt","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","charCodeAt","indexOf","lastIndexOf","length","localeCompare","match","repeat","replace","search","slice","split","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"];Object.keys(e).forEach((function(o){if(-1!==r.indexOf(o))console.log("warn: ".red+("String.prototype"+o).magenta+" is probably something you don't want to override. Ignoring style name");else if("string"==typeof e[o])n[o]=n[e[o]],t(o,(function(){return n[o](this)}));else{var i=function(t){for(var r=t||this,i=0;i<e[o].length;i++)r=n[e[o][i]](r);return r};t(o,i),n[o]=function(t){return i(t)}}}))}(e):console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")}}},3196:(t,e,r)=>{var n=r(2517);t.exports=n,r(9883)()},6260:t=>{t.exports=function(t){return function(e,r,n){if(" "===e)return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}},5920:t=>{t.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,o){return" "===r?r:t[e[n++%e.length]](r)}}},2449:t=>{t.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,o){return" "===r?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}},3270:t=>{t.exports=function(t){return function(e,r,n){return r%2==0?e:t.inverse(e)}}},5784:t=>{var e={};t.exports=e;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(t){var n=r[t],o=e[t]=[];o.open="["+n[0]+"m",o.close="["+n[1]+"m"}))},4340:(t,e,r)=>{"use strict";var n=r(4155);t.exports=function(t,e){var r=(e=e||n.argv).indexOf("--"),o=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(o+t);return-1!==i&&(-1===r||i<r)}},6561:(t,e,r)=>{"use strict";var n=r(4155),o=r(7435),i=r(4340),a=n.env,u=void 0;function s(t){var e=function(t){if(!1===u)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;var e=u?1:0;if("win32"===n.platform){var r=o.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(t){return t in a}))||"codeship"===a.CI_NAME?1:e;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var s=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,e)}(t);return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(e)}i("no-color")||i("no-colors")||i("color=false")?u=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(u=!0),"FORCE_COLOR"in a&&(u=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),t.exports={supportsColor:s,stdout:s(n.stdout),stderr:s(n.stderr)}},8769:(t,e,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,u=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var c=function(){throw new a},f=s?function(){try{return c}catch(t){try{return s(arguments,"callee").get}catch(t){return c}}}():c,l=r(1405)(),p=Object.getPrototypeOf||function(t){return t.__proto__},h=u("async function* () {}"),d=h?h.prototype:n,y=d?d.prototype:n,g="undefined"==typeof Uint8Array?n:p(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":u("async function () {}"),"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":y?p(y):n,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":u("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?p(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":g,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),w=r(7642),_=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),E=b.call(Function.call,String.prototype.replace),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,O=function(t){var e=[];return E(t,A,(function(t,r,n,o){e[e.length]=n?E(o,x,"$1"):r||t})),e},R=function(t,e){var r,n=t;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(m,n)){var i=m[n];if(void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=O(t),n=r.length>0?r[0]:"",o=R("%"+n+"%",e),i=o.name,u=o.value,c=!1,f=o.alias;f&&(n=f[0],S(r,_([0,1],f)));for(var l=1,p=!0;l<r.length;l+=1){var h=r[l];if("constructor"!==h&&p||(c=!0),w(m,i="%"+(n+="."+h)+"%"))u=m[i];else if(null!=u){if(s&&l+1>=r.length){var d=s(u,h);if(p=!!d,!e&&!(h in u))throw new a("base intrinsic for "+t+" exists, but the property is not available.");u=p&&"get"in d&&!("originalValue"in d.get)?d.get:u[h]}else p=w(u,h),u=u[h];p&&!c&&(m[i]=u)}}return u}},4079:(t,e,r)=>{"use strict";var n=r(8769)("%Object.getOwnPropertyDescriptor%");if(n)try{n([],"length")}catch(t){n=null}t.exports=n},7187:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(r,n){function o(){void 0!==i&&t.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==e&&(i=function(r){t.removeListener(e,o),n(r)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function s(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){var o,i,a,c;if(u(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),void 0===a)a=i[e]=r,++t._eventsCount;else if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=s(t))>0&&a.length>o&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,c=f,console&&console.warn&&console.warn(c)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function p(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):d(o,o.length)}function h(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)n(s,this,e);else{var c=s.length,f=d(s,c);for(r=0;r<c;++r)n(f[r],this,e)}return!0},i.prototype.addListener=function(t,e){return c(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return c(this,t,e,!0)},i.prototype.once=function(t,e){return u(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var r,n,o,i,a;if(u(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return p(this,t,!0)},i.prototype.rawListeners=function(t){return p(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},9804:t=>{var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(t,n,o){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,t[a],a,t);else for(var u in t)e.call(t,u)&&n.call(o,t[u],u,t)}},7648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,u=r.call(arguments,1),s=function(){if(this instanceof a){var e=i.apply(this,u.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,u.concat(r.call(arguments)))},c=Math.max(0,i.length-u.length),f=[],l=0;l<c;l++)f.push("$"+l);if(a=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(s),i.prototype){var p=function(){};p.prototype=i.prototype,a.prototype=new p,p.prototype=null}return a}},8612:(t,e,r)=>{"use strict";var n=r(7648);t.exports=Function.prototype.bind||n},210:(t,e,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,u=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var c=function(){throw new a},f=s?function(){try{return c}catch(t){try{return s(arguments,"callee").get}catch(t){return c}}}():c,l=r(1405)(),p=Object.getPrototypeOf||function(t){return t.__proto__},h=u("async function* () {}"),d=h?h.prototype:n,y=d?d.prototype:n,g="undefined"==typeof Uint8Array?n:p(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":u("async function () {}"),"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":y?p(y):n,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":u("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?p(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":g,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),w=r(7642),_=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),E=b.call(Function.call,String.prototype.replace),A=b.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,R=function(t){var e=A(t,0,1),r=A(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return E(t,x,(function(t,e,r,o){n[n.length]=r?E(o,O,"$1"):e||t})),n},P=function(t,e){var r,n=t;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(m,n)){var i=m[n];if(void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=R(t),n=r.length>0?r[0]:"",i=P("%"+n+"%",e),u=i.name,c=i.value,f=!1,l=i.alias;l&&(n=l[0],S(r,_([0,1],l)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],y=A(d,0,1),g=A(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(f=!0),w(m,u="%"+(n+="."+d)+"%"))c=m[u];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&p+1>=r.length){var v=s(c,d);c=(h=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else h=w(c,d),c=c[d];h&&!f&&(m[u]=c)}}return c}},1405:(t,e,r)=>{"use strict";var n=r.g.Symbol,o=r(5419);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:(t,e,r)=>{"use strict";var n=r(8612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},5717:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},4620:(t,e,r)=>{var n=r(8764).Buffer;e.parse=function(t,e){t instanceof n&&(t=t.toString("ascii"));var r=n.alloc(e||8192),o=0,i=0,a=null,u=null,s=0,c=0;for(;c+11<=t.length;){if(":"!=t.charAt(c++))throw new Error("Line "+(s+1)+" does not start with a colon (:).");s++;var f=parseInt(t.substr(c,2),16);c+=2;var l=parseInt(t.substr(c,4),16);c+=4;var p=parseInt(t.substr(c,2),16);c+=2;var h=t.substr(c,2*f),d=n.from(h,"hex");c+=2*f;var y=parseInt(t.substr(c,2),16);c+=2;for(var g=f+(l>>8)+l+p&255,m=0;m<f;m++)g=g+d[m]&255;if(y!=(g=256-g&255))throw new Error("Invalid checksum on line "+s+": got "+y+", but expected "+g);switch(p){case 0:var v=i+l;if(v+f>=r.length){var b=n.alloc(2*(v+f));r.copy(b,0,0,o),r=b}v>o&&r.fill(255,o,v),d.copy(r,v),o=Math.max(o,v+f);break;case 1:if(0!=f)throw new Error("Invalid EOF record on line "+s+".");return{data:r.slice(0,o),startSegmentAddress:a,startLinearAddress:u};case 2:if(2!=f||0!=l)throw new Error("Invalid extended segment address record on line "+s+".");i=parseInt(h,16)<<4;break;case 3:if(4!=f||0!=l)throw new Error("Invalid start segment address record on line "+s+".");a=parseInt(h,16);break;case 4:if(2!=f||0!=l)throw new Error("Invalid extended linear address record on line "+s+".");i=parseInt(h,16)<<16;break;case 5:if(4!=f||0!=l)throw new Error("Invalid start linear address record on line "+s+".");u=parseInt(h,16);break;default:throw new Error("Invalid record type ("+p+") on line "+s)}"\r"==t.charAt(c)&&c++,"\n"==t.charAt(c)&&c++}throw new Error("Unexpected end of input: missing or invalid EOF record.")}},2584:(t,e,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=r(1924)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},u=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=u?i:a},8662:t=>{"use strict";var e=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(t){}}(),u=!(!i||!a)&&i(a);t.exports=function(t){return"function"==typeof t&&(!!n.test(r.call(t))||(o?i&&i(t)===u:"[object GeneratorFunction]"===e.call(t)))}},5692:(t,e,r)=>{"use strict";var n=r(9804),o=r(6314),i=r(1924),a=i("Object.prototype.toString"),u=r(1405)()&&"symbol"==typeof Symbol.toStringTag,s=o(),c=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},f=i("String.prototype.slice"),l={},p=r(4079),h=Object.getPrototypeOf;u&&p&&h&&n(s,(function(t){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=h(e),o=p(n,Symbol.toStringTag);if(!o){var i=h(n);o=p(i,Symbol.toStringTag)}l[t]=o.get}));t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!u){var e=f(a(t),8,-1);return c(s,e)>-1}return!!p&&function(t){var e=!1;return n(l,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},7435:(t,e)=>{e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},4155:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var u,s=[],c=!1,f=-1;function l(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!c){var t=a(l);c=!0;for(var e=s.length;e;){for(u=s,s=[];++f<e;)u&&u[f].run();f=-1,e=s.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new h(t,e)),1!==s.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},9509:(t,e,r)=>{var n=r(8764),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},4777:(t,e,r)=>{var n=r(8764).Buffer,o=r(5190),i=r(4005),a=r(5269),u=200,s=100,c=25,f=32,l=0,p=83,h=3;function d(t){if(!(this instanceof d))return new d(t);var e=this;e.parser=i(t),e.constants=e.parser.constants,e.serialPort=t}d.prototype.sync=function(t,e){var r=this,o=1,i=n.from([1]);!function n(){o+=1,r.parser.send(i,(function(r,i){var u;if(!r){var s=i.message;if(s[0]!==a.CMD_SIGN_ON)(r=new Error("command response was not CMD_SIGN_ON. "+s[0])).code="E_CMD_ERROR";else if(s[1]!==a.STATUS_CMD_OK)(r=new Error("command status was not ok. "+s[1])).code="E_CMD_STATUS";else{s[2];(u=s.slice(3)+"").length}}if(r&&o<=t)return n();e(r,u)}))}()},d.prototype.reset=function(t,e,r){var n=this;o.series([function(t){n.serialPort.set({rts:!0,dtr:!0},(function(e){e?t(e):t()}))},function(e){setTimeout(e,t)},function(t){n.serialPort.set({rts:!1,dtr:!1},(function(e){e?t(e):t()}))},function(t){setTimeout(t,e)}],(function(t){r(t)}))},d.prototype.verifySignature=function(t,e){this.getSignature((function(r,n){t.equals(n)?e():e(new Error("signature doesnt match. Found: "+n.toString("hex"),r))}))},d.prototype.getSignature=function(t){var e=this,r=n.alloc(3);o.series([function(t){var o=n.from([29,4,4,0,48,0,0,0]);e.parser.send(o,(function(e,n){if(n&&n.message&&n.message.length>=6){var o=n.message[5];r.writeUInt8(o,0)}t(e)}))},function(t){var o=n.from([29,4,4,0,48,0,1,0]);e.parser.send(o,(function(e,n){if(n&&n.message&&n.message.length>=6){var o=n.message[5];r.writeUInt8(o,1)}t(e)}))},function(t){var o=n.from([29,4,4,0,48,0,2,0]);e.parser.send(o,(function(e,n){if(n&&n.message&&n.message.length>=6){var o=n.message[5];r.writeUInt8(o,2)}t(e)}))}],(function(e){t(e,r)}))},d.prototype.enterProgrammingMode=function(t,e){var r=this,o=Array.prototype.slice.call(arguments);"function"!=typeof(e=o.pop())&&(e=null),(t="function"!=typeof t&&t||{}).timeout=t.timeout||u,t.stabDelay=t.stabDelay||s,t.cmdexeDelay=t.cmdexeDelay||c,t.synchLoops=t.synchLoops||f,t.byteDelay=t.byteDelay||l,t.pollValue=t.pollValue||p,t.pollIndex=t.pollIndex||h;var i=172,a=83,d=0,y=0,g=n.from([16,t.timeout,t.stabDelay,t.cmdexeDelay,t.synchLoops,t.byteDelay,t.pollValue,t.pollIndex,i,a,d,y]);r.parser.send(g,(function(t,r){e(t)}))},d.prototype.loadAddress=function(t,e){msb=t>>24&255|128,xsb=t>>16&255,ysb=t>>8&255,lsb=255&t;var r=n.from([6,msb,xsb,ysb,lsb]);this.parser.send(r,(function(t,r){e(t)}))},d.prototype.loadPage=function(t,e){var r=t.length>>8,o=255&t.length,i=n.from([19,r,o,193,10,64,76,32,0,0]);i=n.concat([i,t]),this.parser.send(i,(function(t,r){e(t)}))},d.prototype.upload=function(t,e,r){var n,i,a=0,u=this;o.whilst((function(){return a<t.length}),(function(r){o.series([function(t){i=a>>1,t()},function(t){u.loadAddress(i,t)},function(r){n=t.slice(a,t.length>e?a+e:t.length-1),r()},function(t){u.loadPage(n,t)},function(t){a+=n.length,setTimeout(t,4)}],(function(t){r(t)}))}),(function(t){r(t)}))},d.prototype.exitProgrammingMode=function(t){var e=n.from([17,1,1]);this.parser.send(e,(function(e,r){t(e)}))},d.prototype.verify=function(t,e){e()},d.prototype.bootload=function(t,e,r){r()},t.exports=d},5269:t=>{t.exports.MESSAGE_START=27,t.exports.TOKEN=14,t.exports.CMD_SIGN_ON=1,t.exports.CMD_SET_PARAMETER=2,t.exports.CMD_GET_PARAMETER=3,t.exports.CMD_SET_DEVICE_PARAMETERS=4,t.exports.CMD_OSCCAL=5,t.exports.CMD_LOAD_ADDRESS=6,t.exports.CMD_FIRMWARE_UPGRADE=7,t.exports.CMD_ENTER_PROGMODE_ISP=16,t.exports.CMD_LEAVE_PROGMODE_ISP=17,t.exports.CMD_CHIP_ERASE_ISP=18,t.exports.CMD_PROGRAM_FLASH_ISP=19,t.exports.CMD_READ_FLASH_ISP=20,t.exports.CMD_PROGRAM_EEPROM_ISP=21,t.exports.CMD_READ_EEPROM_ISP=22,t.exports.CMD_PROGRAM_FUSE_ISP=23,t.exports.CMD_READ_FUSE_ISP=24,t.exports.CMD_PROGRAM_LOCK_ISP=25,t.exports.CMD_READ_LOCK_ISP=26,t.exports.CMD_READ_SIGNATURE_ISP=27,t.exports.CMD_READ_OSCCAL_ISP=28,t.exports.CMD_SPI_MULTI=29,t.exports.CMD_ENTER_PROGMODE_PP=32,t.exports.CMD_LEAVE_PROGMODE_PP=33,t.exports.CMD_CHIP_ERASE_PP=34,t.exports.CMD_PROGRAM_FLASH_PP=35,t.exports.CMD_READ_FLASH_PP=36,t.exports.CMD_PROGRAM_EEPROM_PP=37,t.exports.CMD_READ_EEPROM_PP=38,t.exports.CMD_PROGRAM_FUSE_PP=39,t.exports.CMD_READ_FUSE_PP=40,t.exports.CMD_PROGRAM_LOCK_PP=41,t.exports.CMD_READ_LOCK_PP=42,t.exports.CMD_READ_SIGNATURE_PP=43,t.exports.CMD_READ_OSCCAL_PP=44,t.exports.CMD_SET_CONTROL_STACK=45,t.exports.CMD_ENTER_PROGMODE_HVSP=48,t.exports.CMD_LEAVE_PROGMODE_HVSP=49,t.exports.CMD_CHIP_ERASE_HVSP=50,t.exports.CMD_PROGRAM_FLASH_HVSP=51,t.exports.CMD_READ_FLASH_HVSP=52,t.exports.CMD_PROGRAM_EEPROM_HVSP=53,t.exports.CMD_READ_EEPROM_HVSP=54,t.exports.CMD_PROGRAM_FUSE_HVSP=55,t.exports.CMD_READ_FUSE_HVSP=56,t.exports.CMD_PROGRAM_LOCK_HVSP=57,t.exports.CMD_READ_LOCK_HVSP=58,t.exports.CMD_READ_SIGNATURE_HVSP=59,t.exports.CMD_READ_OSCCAL_HVSP=60,t.exports.STATUS_CMD_OK=0,t.exports.STATUS_CMD_TOUT=128,t.exports.STATUS_RDY_BSY_TOUT=129,t.exports.STATUS_SET_PARAM_MISSING=130,t.exports.STATUS_CMD_FAILED=192,t.exports.STATUS_CKSUM_ERROR=193,t.exports.STATUS_CMD_UNKNOWN=201,t.exports.STATUS_BUILD_NUMBER_LOW=128,t.exports.STATUS_BUILD_NUMBER_HIGH=129,t.exports.STATUS_HW_VER=144,t.exports.STATUS_SW_MAJOR=145,t.exports.STATUS_SW_MINOR=146,t.exports.STATUS_VTARGET=148,t.exports.STATUS_VADJUST=149,t.exports.STATUS_OSC_PSCALE=150,t.exports.STATUS_OSC_CMATCH=151,t.exports.STATUS_SCK_DURATION=152,t.exports.STATUS_TOPCARD_DETECT=154,t.exports.STATUS_STATUS=156,t.exports.STATUS_DATA=157,t.exports.STATUS_RESET_POLARITY=158,t.exports.STATUS_CONTROLLER_INIT=159,t.exports.ANSWER_CKSUM_ERROR=176},4005:(t,e,r)=>{var n=r(8764).Buffer,o=r(5269),i=r(7187).EventEmitter;t.exports=function(t){var e,r,a=(e=new i,r={constants:o,port:t,boundOpen:!1,closed:!1,_inc:-1,_queue:[],_current:!1,states:["Start","GetSequenceNumber","GetMessageSize1","GetMessageSize2","GetToken","GetData","GetChecksum","Done"],state:0,pkt:!1,send:function(t,e){if(this.closed)return setImmediate((function(){var t=new Error("this parser is closed.");t.code="E_CLOSED",e(t)}));n.isBuffer(t)||(t=n.from(t));var r=this._commandTimeout(t[0]),i=n.from([0,0]);i.writeUInt16BE(t.length,0);var a=n.concat([n.from([o.MESSAGE_START,this._seq(),i[0],i[1],o.TOKEN]),t]),u=this.checksum(a);this._queue.push({buf:n.concat([a,n.from([u])]),seq:this._inc,cb:e,timeout:r}),this._send()},checksum:function(t){for(var e=0,r=0;r<t.length;++r)e^=t[r];return e},_seq:function(){return this._inc++,this._inc>255&&(this._inc=0),this._inc},_commandTimeout:function(t){if(timeout=1e3,t===o.CMD_SIGN_ON)timeout=200;else for(var e=Object.keys(o),r=0;r<e.length;++r)if(o[e[r]]===t){(e[r].indexOf("CMD_READ")>-1||e[r].indexOf("PROGRAM_FLASH")>-1||e[r].indexOf("EEPROM")>-1)&&(timeout=5e3);break}return timeout},_send:function(){if(this.closed)return!1;if(!this._current&&this._queue.length)if("function"==typeof t.isOpen?t.isOpen():t.isOpen){var e=this._queue.shift(),r=this._current={timeout:!1,seq:e.seq,cb:e.cb};this._current,this.state=0,n=this,this.port.write(e.buf),this.port.drain((function(){if(r!==n._current)return n.emit("log","current was no longer the current message after drain callback");r.timeout=setTimeout((function(){var t=new Error("stk500 timeout. "+e.timeout+"ms");t.code="E_TIMEOUT",n._resolveCurrent(t)}),e.timeout)})),this.emit("rawinput",e.buf)}else{var n=this;this.boundOpen||t.once("open",(function(){n._send()}))}},_handle:function(t){var e=this._current;if(this.emit("raw",t),!e)return this.emit("log","notice","dropping data","data");for(var r=0;r<t.length;++r)this._stateMachine(t.readUInt8(r))},_pkt:function(){return{seq:-1,len:[],raw:[],message:[],checksum:0}},_stateMachine:function(t){var e=this.pkt;switch(this.state){case 0:if(e=this.pkt=this._pkt(),27!==t)return this.emit("log","parser","Invalid header byte expected 27 got: "+t);++this.state;break;case 1:if(t!==this._current.seq)return this.state=0,this.emit("log","parser","Invalid sequence number. back to start. got: "+t);e.seq=t,++this.state;break;case 2:e.len.push(t),++this.state;break;case 3:e.len.push(t),e.len=e.len[0]<<8|e.len[1],++this.state;break;case 4:if(14!==t)return this.state=0,e.error=new Error("Invalid message token byte. got: "+t),e.error.code="E_PARSE",this.emit("log","parser",this.pkt.error);++this.state,e.len||++this.state;break;case 5:0===e.len&&t===o.STATUS_CKSUM_ERROR&&(e.error=new Error("send checksum error"),e.error.code="E_STATUS_CKSUM"),e.message.push(t),0==--e.len&&++this.state;break;case 6:e.checksum=this.checksum(e.raw),e.checksum=e.checksum===t,e.checksum||(e.error=new Error("recv cecksum didn't match"),e.error.code="E_RECV_CKSUM"),e.message=n.from(e.message),this.emit("data",e),this.state++,e.len=e.message.length,delete e.raw,this._resolveCurrent(!!e.error&&e.error,e)}e.raw&&e.raw.push(t)},_resolveCurrent:function(t,e){var r=this._current;this._current=!1;var n=!1;if(("E_PARSE"==t.code||"E_TIMEOUT"==t.code||this.closed)&&(n=this.queue,this.queue=[]),clearTimeout(r.timeout),r.cb(t,e),n){var o=t;for(this.closed||((o=new Error("a call queued before this call errored leaving the protocol in an upredictable state. timidly refusing to run queued commands.")).code="E_DEPENDENT",o.prev_code=t.code);n.lenth;)n.shift()(t)}this._send()}},Object.keys(r).forEach((function(t){e[t]=r[t]})),e);return t.on("data",u).once("error",s).once("close",s),a;function u(t){a._handle(t)}function s(e){a.closed=!0,t.removeListener("data",u),e||((e=new Error("serial closed.")).code="E_CLOSED"),a._current&&a._resolveCurrent(e),this.emit("closed")}}},5190:(t,e,r)=>{var n,o=r(4155);/*! * async * https://github.com/caolan/async * * Copyright 2010-2014 Caolan McMahon * Released under the MIT license */!function(){var r,i,a={};function u(t){var e=!1;return function(){if(e)throw new Error("Callback was already called.");e=!0,t.apply(r,arguments)}}null!=(r=this)&&(i=r.async),a.noConflict=function(){return r.async=i,a};var s=Object.prototype.toString,c=Array.isArray||function(t){return"[object Array]"===s.call(t)},f=function(t,e){for(var r=0;r<t.length;r+=1)e(t[r],r,t)},l=function(t,e){if(t.map)return t.map(e);var r=[];return f(t,(function(t,n,o){r.push(e(t,n,o))})),r},p=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e};void 0!==o&&o.nextTick?(a.nextTick=o.nextTick,"undefined"!=typeof setImmediate?a.setImmediate=function(t){setImmediate(t)}:a.setImmediate=a.nextTick):"function"==typeof setImmediate?(a.nextTick=function(t){setImmediate(t)},a.setImmediate=a.nextTick):(a.nextTick=function(t){setTimeout(t,0)},a.setImmediate=a.nextTick),a.each=function(t,e,r){if(r=r||function(){},!t.length)return r();var n=0;function o(e){e?(r(e),r=function(){}):(n+=1)>=t.length&&r()}f(t,(function(t){e(t,u(o))}))},a.forEach=a.each,a.eachSeries=function(t,e,r){if(r=r||function(){},!t.length)return r();var n=0,o=function(){e(t[n],(function(e){e?(r(e),r=function(){}):(n+=1)>=t.length?r():o()}))};o()},a.forEachSeries=a.eachSeries,a.eachLimit=function(t,e,r,n){h(e).apply(null,[t,r,n])},a.forEachLimit=a.eachLimit;var h=function(t){return function(e,r,n){if(n=n||function(){},!e.length||t<=0)return n();var o=0,i=0,a=0;!function u(){if(o>=e.length)return n();for(;a<t&&i<e.length;)a+=1,r(e[(i+=1)-1],(function(t){t?(n(t),n=function(){}):(a-=1,(o+=1)>=e.length?n():u())}))}()}},d=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[a.each].concat(e))}},y=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[a.eachSeries].concat(e))}},g=function(t,e,r,n){if(e=l(e,(function(t,e){return{index:e,value:t}})),n){var o=[];t(e,(function(t,e){r(t.value,(function(r,n){o[t.index]=n,e(r)}))}),(function(t){n(t,o)}))}else t(e,(function(t,e){r(t.value,(function(t){e(t)}))}))};a.map=d(g),a.mapSeries=y(g),a.mapLimit=function(t,e,r,n){return m(e)(t,r,n)};var m=function(t){return function(t,e){return function(){var r=Array.prototype.slice.call(arguments);return e.apply(null,[h(t)].concat(r))}}(t,g)};a.reduce=function(t,e,r,n){a.eachSeries(t,(function(t,n){r(e,t,(function(t,r){e=r,n(t)}))}),(function(t){n(t,e)}))},a.inject=a.reduce,a.foldl=a.reduce,a.reduceRight=function(t,e,r,n){var o=l(t,(function(t){return t})).reverse();a.reduce(o,e,r,n)},a.foldr=a.reduceRight;var v=function(t,e,r,n){var o=[];t(e=l(e,(function(t,e){return{index:e,value:t}})),(function(t,e){r(t.value,(function(r){r&&o.push(t),e()}))}),(function(t){n(l(o.sort((function(t,e){return t.index-e.index})),(function(t){return t.value})))}))};a.filter=d(v),a.filterSeries=y(v),a.select=a.filter,a.selectSeries=a.filterSeries;var b=function(t,e,r,n){var o=[];t(e=l(e,(function(t,e){return{index:e,value:t}})),(function(t,e){r(t.value,(function(r){r||o.push(t),e()}))}),(function(t){n(l(o.sort((function(t,e){return t.index-e.index})),(function(t){return t.value})))}))};a.reject=d(b),a.rejectSeries=y(b);var w=function(t,e,r,n){t(e,(function(t,e){r(t,(function(r){r?(n(t),n=function(){}):e()}))}),(function(t){n()}))};a.detect=d(w),a.detectSeries=y(w),a.some=function(t,e,r){a.each(t,(function(t,n){e(t,(function(t){t&&(r(!0),r=function(){}),n()}))}),(function(t){r(!1)}))},a.any=a.some,a.every=function(t,e,r){a.each(t,(function(t,n){e(t,(function(t){t||(r(!1),r=function(){}),n()}))}),(function(t){r(!0)}))},a.all=a.every,a.sortBy=function(t,e,r){a.map(t,(function(t,r){e(t,(function(e,n){e?r(e):r(null,{value:t,criteria:n})}))}),(function(t,e){if(t)return r(t);r(null,l(e.sort((function(t,e){var r=t.criteria,n=e.criteria;return r<n?-1:r>n?1:0})),(function(t){return t.value})))}))},a.auto=function(t,e){e=e||function(){};var r=p(t),n=r.length;if(!n)return e();var o={},i=[],u=function(t){i.unshift(t)},s=function(){n--,f(i.slice(0),(function(t){t()}))};u((function(){if(!n){var t=e;e=function(){},t(null,o)}})),f(r,(function(r){var n=c(t[r])?t[r]:[t[r]],l=function(t){var n=Array.prototype.slice.call(arguments,1);if(n.length<=1&&(n=n[0]),t){var i={};f(p(o),(function(t){i[t]=o[t]})),i[r]=n,e(t,i),e=function(){}}else o[r]=n,a.setImmediate(s)},h=n.slice(0,Math.abs(n.length-1))||[],d=function(){return e=function(t,e){return t&&o.hasOwnProperty(e)},n=!0,((t=h).reduce?t.reduce(e,n):(f(t,(function(t,r,o){n=e(n,t,r,o)})),n))&&!o.hasOwnProperty(r);var t,e,n};if(d())n[n.length-1](l,o);else{var y=function(){d()&&(!function(t){for(var e=0;e<i.length;e+=1)if(i[e]===t)return void i.splice(e,1)}(y),n[n.length-1](l,o))};u(y)}}))},a.retry=function(t,e,r){var n=[];"function"==typeof t&&(r=e,e=t,t=5),t=parseInt(t,10)||5;var o=function(o,i){for(var u=function(t,e){return function(r){t((function(t,n){r(!t||e,{err:t,result:n})}),i)}};t;)n.push(u(e,!(t-=1)));a.series(n,(function(t,e){e=e[e.length-1],(o||r)(e.err,e.result)}))};return r?o():o},a.waterfall=function(t,e){if(e=e||function(){},!c(t)){var r=new Error("First argument to waterfall must be an array of functions");return e(r)}if(!t.length)return e();var n=function(t){return function(r){if(r)e.apply(null,arguments),e=function(){};else{var o=Array.prototype.slice.call(arguments,1),i=t.next();i?o.push(n(i)):o.push(e),a.setImmediate((function(){t.apply(null,o)}))}}};n(a.iterator(t))()};var _=function(t,e,r){if(r=r||function(){},c(e))t.map(e,(function(t,e){t&&t((function(t){var r=Array.prototype.slice.call(arguments,1);r.length<=1&&(r=r[0]),e.call(null,t,r)}))}),r);else{var n={};t.each(p(e),(function(t,r){e[t]((function(e){var o=Array.prototype.slice.call(arguments,1);o.length<=1&&(o=o[0]),n[t]=o,r(e)}))}),(function(t){r(t,n)}))}};a.parallel=function(t,e){_({map:a.map,each:a.each},t,e)},a.parallelLimit=function(t,e,r){_({map:m(e),each:h(e)},t,r)},a.series=function(t,e){if(e=e||function(){},c(t))a.mapSeries(t,(function(t,e){t&&t((function(t){var r=Array.prototype.slice.call(arguments,1);r.length<=1&&(r=r[0]),e.call(null,t,r)}))}),e);else{var r={};a.eachSeries(p(t),(function(e,n){t[e]((function(t){var o=Array.prototype.slice.call(arguments,1);o.length<=1&&(o=o[0]),r[e]=o,n(t)}))}),(function(t){e(t,r)}))}},a.iterator=function(t){var e=function(r){var n=function(){return t.length&&t[r].apply(null,arguments),n.next()};return n.next=function(){return r<t.length-1?e(r+1):null},n};return e(0)},a.apply=function(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e.concat(Array.prototype.slice.call(arguments)))}};var S=function(t,e,r,n){var o=[];t(e,(function(t,e){r(t,(function(t,r){o=o.concat(r||[]),e(t)}))}),(function(t){n(t,o)}))};a.concat=d(S),a.concatSeries=y(S),a.whilst=function(t,e,r){t()?e((function(n){if(n)return r(n);a.whilst(t,e,r)})):r()},a.doWhilst=function(t,e,r){t((function(n){if(n)return r(n);var o=Array.prototype.slice.call(arguments,1);e.apply(null,o)?a.doWhilst(t,e,r):r()}))},a.until=function(t,e,r){t()?r():e((function(n){if(n)return r(n);a.until(t,e,r)}))},a.doUntil=function(t,e,r){t((function(n){if(n)return r(n);var o=Array.prototype.slice.call(arguments,1);e.apply(null,o)?r():a.doUntil(t,e,r)}))},a.queue=function(t,e){function r(t,e,r,n){if(t.started||(t.started=!0),c(e)||(e=[e]),0==e.length)return a.setImmediate((function(){t.drain&&t.drain()}));f(e,(function(e){var o={data:e,callback:"function"==typeof n?n:null};r?t.tasks.unshift(o):t.tasks.push(o),t.saturated&&t.tasks.length===t.concurrency&&t.saturated(),a.setImmediate(t.process)}))}void 0===e&&(e=1);var n=0,o={tasks:[],concurrency:e,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(t,e){r(o,t,!1,e)},kill:function(){o.drain=null,o.tasks=[]},unshift:function(t,e){r(o,t,!0,e)},process:function(){if(!o.paused&&n<o.concurrency&&o.tasks.length){var e=o.tasks.shift();o.empty&&0===o.tasks.length&&o.empty(),n+=1;var r=u((function(){n-=1,e.callback&&e.callback.apply(e,arguments),o.drain&&o.tasks.length+n===0&&o.drain(),o.process()}));t(e.data,r)}},length:function(){return o.tasks.length},running:function(){return n},idle:function(){return o.tasks.length+n===0},pause:function(){!0!==o.paused&&(o.paused=!0)},resume:function(){if(!1!==o.paused){o.paused=!1;for(var t=1;t<=o.concurrency;t++)a.setImmediate(o.process)}}};return o},a.priorityQueue=function(t,e){function r(t,e){return t.priority-e.priority}var n=a.queue(t,e);return n.push=function(t,e,o){!function(t,e,n,o){if(t.started||(t.started=!0),c(e)||(e=[e]),0==e.length)return a.setImmediate((function(){t.drain&&t.drain()}));f(e,(function(e){var i={data:e,priority:n,callback:"function"==typeof o?o:null};t.tasks.splice(function(t,e,r){for(var n=-1,o=t.length-1;n<o;){var i=n+(o-n+1>>>1);r(e,t[i])>=0?n=i:o=i-1}return n}(t.tasks,i,r)+1,0,i),t.saturated&&t.tasks.length===t.concurrency&&t.saturated(),a.setImmediate(t.process)}))}(n,t,e,o)},delete n.unshift,n},a.cargo=function(t,e){var r=!1,n=[],o={tasks:n,payload:e,saturated:null,empty:null,drain:null,drained:!0,push:function(t,r){c(t)||(t=[t]),f(t,(function(t){n.push({data:t,callback:"function"==typeof r?r:null}),o.drained=!1,o.saturated&&n.length===e&&o.saturated()})),a.setImmediate(o.process)},process:function i(){if(!r){if(0===n.length)return o.drain&&!o.drained&&o.drain(),void(o.drained=!0);var a="number"==typeof e?n.splice(0,e):n.splice(0,n.length),u=l(a,(function(t){return t.data}));o.empty&&o.empty(),r=!0,t(u,(function(){r=!1;var t=arguments;f(a,(function(e){e.callback&&e.callback.apply(null,t)})),i()}))}},length:function(){return n.length},running:function(){return r}};return o};var E=function(t){return function(e){var r=Array.prototype.slice.call(arguments,1);e.apply(null,r.concat([function(e){var r=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(e?console.error&&console.error(e):console[t]&&f(r,(function(e){console[t](e)})))}]))}};a.log=E("log"),a.dir=E("dir"),a.memoize=function(t,e){var r={},n={};e=e||function(t){return t};var o=function(){var o=Array.prototype.slice.call(arguments),i=o.pop(),u=e.apply(null,o);u in r?a.nextTick((function(){i.apply(null,r[u])})):u in n?n[u].push(i):(n[u]=[i],t.apply(null,o.concat([function(){r[u]=arguments;var t=n[u];delete n[u];for(var e=0,o=t.length;e<o;e++)t[e].apply(null,arguments)}])))};return o.memo=r,o.unmemoized=t,o},a.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},a.times=function(t,e,r){for(var n=[],o=0;o<t;o++)n.push(o);return a.map(n,e,r)},a.timesSeries=function(t,e,r){for(var n=[],o=0;o<t;o++)n.push(o);return a.mapSeries(n,e,r)},a.seq=function(){var t=arguments;return function(){var e=this,r=Array.prototype.slice.call(arguments),n=r.pop();a.reduce(t,r,(function(t,r,n){r.apply(e,t.concat([function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);n(t,e)}]))}),(function(t,r){n.apply(e,[t].concat(r))}))}},a.compose=function(){return a.seq.apply(null,Array.prototype.reverse.call(arguments))};var A=function(t,e){var r=function(){var r=this,n=Array.prototype.slice.call(arguments),o=n.pop();return t(e,(function(t,e){t.apply(r,n.concat([e]))}),o)};if(arguments.length>2){var n=Array.prototype.slice.call(arguments,2);return r.apply(this,n)}return r};a.applyEach=d(A),a.applyEachSeries=y(A),a.forever=function(t,e){!function r(n){if(n){if(e)return e(n);throw n}t(r)}()},t.exports?t.exports=a:void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()},4107:(t,e,r)=>{var n=r(8764).Buffer,o=r(4668),i=r(375),a=r(5270),u=function(t){this.opts=t||{},this.quiet=this.opts.quiet||!1,this.quiet?this.log=function(){}:"object"==typeof window?this.log=console.log.bind(window):this.log=console.log};u.prototype.sync=function(t,e,r,n){this.log("sync");var o=this,u=1,s={cmd:[i.Cmnd_STK_GET_SYNC],responseData:i.OK_RESPONSE,timeout:r};!function r(){u+=1,a(t,s,(function(t,i){if(t&&u<=e)return t&&o.log(t),o.log("failed attempt again",u),r();o.log("sync complete",t,i,u),n(t,i)}))}()},u.prototype.verifySignature=function(t,e,r,o){this.log("verify signature");var u=this;match=n.concat([n.from([i.Resp_STK_INSYNC]),e,n.from([i.Resp_STK_OK])]);var s={cmd:[i.Cmnd_STK_READ_SIGN],responseLength:match.length,timeout:r};a(t,s,(function(t,e){e?u.log("confirm signature",t,e,e.toString("hex")):u.log("confirm signature",t,"no data"),o(t,e)}))},u.prototype.getSignature=function(t,e,r){this.log("get signature");var n={cmd:[i.Cmnd_STK_READ_SIGN],responseLength:5,timeout:e};a(t,n,(function(t,e){this.log("getSignature",t,e),r(t,e)}))},u.prototype.setOptions=function(t,e,r,n){this.log("set device");var o=this,u={cmd:[i.Cmnd_STK_SET_DEVICE,e.devicecode||0,e.revision||0,e.progtype||0,e.parmode||0,e.polling||0,e.selftimed||0,e.lockbytes||0,e.fusebytes||0,e.flashpollval1||0,e.flashpollval2||0,e.eeprompollval1||0,e.eeprompollval2||0,e.pagesizehigh||0,e.pagesizelow||0,e.eepromsizehigh||0,e.eepromsizelow||0,e.flashsize4||0,e.flashsize3||0,e.flashsize2||0,e.flashsize1||0],responseData:i.OK_RESPONSE,timeout:r};a(t,u,(function(t,e){if(o.log("setOptions",t,e),t)return n(t);n()}))},u.prototype.enterProgrammingMode=function(t,e,r){this.log("send enter programming mode");var n=this,o={cmd:[i.Cmnd_STK_ENTER_PROGMODE],responseData:i.OK_RESPONSE,timeout:e};a(t,o,(function(t,e){n.log("sent enter programming mode",t,e),r(t,e)}))},u.prototype.loadAddress=function(t,e,r,n){this.log("load address");var o=this,u=255&e,s=e>>8&255,c={cmd:[i.Cmnd_STK_LOAD_ADDRESS,u,s],responseData:i.OK_RESPONSE,timeout:r};a(t,c,(function(t,e){o.log("loaded address",t,e),n(t,e)}))},u.prototype.loadPage=function(t,e,r,o){this.log("load page");var u=this,s=255&e.length,c=e.length>>8,f={cmd:n.concat([n.from([i.Cmnd_STK_PROG_PAGE,c,s,70]),e,n.from([i.Sync_CRC_EOP])]),responseData:i.OK_RESPONSE,timeout:r};a(t,f,(function(t,e){u.log("loaded page",t,e),o(t,e)}))},u.prototype.upload=function(t,e,r,n,i){this.log("program");var a,u,s=0,c=this;o.whilst((function(){return s<e.length}),(function(i){c.log("program page"),o.series([function(t){u=s>>1,t()},function(e){c.loadAddress(t,u,n,e)},function(t){a=e.slice(s,e.length>r?s+r:e.length-1),t()},function(e){c.loadPage(t,a,n,e)},function(t){c.log("programmed page"),s+=a.length,setTimeout(t,4)}],(function(t){c.log("page done"),i(t)}))}),(function(t){c.log("upload done"),i(t)}))},u.prototype.exitProgrammingMode=function(t,e,r){this.log("send leave programming mode");var n=this,o={cmd:[i.Cmnd_STK_LEAVE_PROGMODE],responseData:i.OK_RESPONSE,timeout:e};a(t,o,(function(t,e){n.log("sent leave programming mode",t,e),r(t,e)}))},u.prototype.verify=function(t,e,r,n,i){this.log("verify");var a,u,s=0,c=this;o.whilst((function(){return s<e.length}),(function(i){c.log("verify page"),o.series([function(t){u=s>>1,t()},function(e){c.loadAddress(t,u,n,e)},function(t){a=e.slice(s,e.length>r?s+r:e.length-1),t()},function(e){c.verifyPage(t,a,r,n,e)},function(t){c.log("verified page"),s+=a.length,setTimeout(t,4)}],(function(t){c.log("verify done"),i(t)}))}),(function(t){c.log("verify done"),i(t)}))},u.prototype.verifyPage=function(t,e,r,o,u){this.log("verify page");var s=this;match=n.concat([n.from([i.Resp_STK_INSYNC]),e,n.from([i.Resp_STK_OK])]);var c=e.length>=r?r:e.length,f={cmd:[i.Cmnd_STK_READ_PAGE,c>>8&255,255&c,70],responseLength:match.length,timeout:o};a(t,f,(function(t,e){s.log("confirm page",t,e,e.toString("hex")),u(t,e)}))},u.prototype.bootload=function(t,e,r,n){var i={pagesizehigh:r.pagesizehigh<<8&255,pagesizelow:255&r.pagesizelow};o.series([this.sync.bind(this,t,3,r.timeout),this.sync.bind(this,t,3,r.timeout),this.sync.bind(this,t,3,r.timeout),this.verifySignature.bind(this,t,r.signature,r.timeout),this.setOptions.bind(this,t,i,r.timeout),this.enterProgrammingMode.bind(this,t,r.timeout),this.upload.bind(this,t,e,r.pageSize,r.timeout),this.verify.bind(this,t,e,r.pageSize,r.timeout),this.exitProgrammingMode.bind(this,t,r.timeout)],(function(t){return n(t)}))},t.exports=u},2310:(t,e,r)=>{var n=r(8764).Buffer,o=[r(375).Resp_STK_INSYNC];t.exports=function(t,e,r,i){var a=n.alloc(0),u=!1,s=null,c=function(t){for(var e=0;!u&&e<t.length;){var i=t[e];-1!==o.indexOf(i)&&(t=t.slice(e,t.length-e),u=!0),e++}if(u&&(a=n.concat([a,t])),a.length>r)return f(new Error("buffer overflow "+a.length+" > "+r));a.length==r&&f()},f=function(e){s&&clearTimeout(s),t.removeListener("data",c),i(e,a)};e&&e>0&&(s=setTimeout((function(){s=null,f(new Error("receiveData timeout after "+e+"ms"))}),e)),t.on("data",c)}},5270:(t,e,r)=>{var n=r(8764).Buffer,o=r(2310),i=r(375);t.exports=function(t,e,r){var a,u=e.timeout||0,s=(i.Resp_STK_INSYNC,i.Resp_STK_NOSYNC,null),c=0;e.responseData&&e.responseData.length>0&&(s=e.responseData),s&&(c=s.length),e.responseLength&&(c=e.responseLength);var f=e.cmd;f instanceof Array&&(f=n.from(f.concat(i.Sync_CRC_EOP))),t.write(f,(function(e){if(e)return a=new Error("Sending "+f.toString("hex")+": "+e.message),r(a);o(t,u,c,(function(t,e){return t?(a=new Error("Sending "+f.toString("hex")+": "+t.message),r(a)):s&&!e.equals(s)?(a=new Error(f+" response mismatch: "+e.toString("hex")+", "+s.toString("hex")),r(a)):void r(null,e)}))}))}},375:(t,e,r)=>{var n=r(8764).Buffer;t.exports={Cmnd_STK_GET_SYNC:48,Cmnd_STK_SET_DEVICE:66,Cmnd_STK_ENTER_PROGMODE:80,Cmnd_STK_LOAD_ADDRESS:85,Cmnd_STK_PROG_PAGE:100,Cmnd_STK_LEAVE_PROGMODE:81,Cmnd_STK_READ_SIGN:117,Sync_CRC_EOP:32,Resp_STK_OK:16,Resp_STK_INSYNC:20,Resp_STK_NOSYNC:21,Cmnd_STK_READ_PAGE:116,OK_RESPONSE:n.from([20,16])}},4668:(t,e,r)=>{var n,o=r(4155);/*! * async * https://github.com/caolan/async * * Copyright 2010-2014 Caolan McMahon * Released under the MIT license */!function(){var r,i,a={};function u(t){var e=!1;return function(){if(e)throw new Error("Callback was already called.");e=!0,t.apply(r,arguments)}}null!=(r=this)&&(i=r.async),a.noConflict=function(){return r.async=i,a};var s=Object.prototype.toString,c=Array.isArray||function(t){return"[object Array]"===s.call(t)},f=function(t,e){for(var r=0;r<t.length;r+=1)e(t[r],r,t)},l=function(t,e){if(t.map)return t.map(e);var r=[];return f(t,(function(t,n,o){r.push(e(t,n,o))})),r},p=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e};void 0!==o&&o.nextTick?(a.nextTick=o.nextTick,"undefined"!=typeof setImmediate?a.setImmediate=function(t){setImmediate(t)}:a.setImmediate=a.nextTick):"function"==typeof setImmediate?(a.nextTick=function(t){setImmediate(t)},a.setImmediate=a.nextTick):(a.nextTick=function(t){setTimeout(t,0)},a.setImmediate=a.nextTick),a.each=function(t,e,r){if(r=r||function(){},!t.length)return r();var n=0;function o(e){e?(r(e),r=function(){}):(n+=1)>=t.length&&r()}f(t,(function(t){e(t,u(o))}))},a.forEach=a.each,a.eachSeries=function(t,e,r){if(r=r||function(){},!t.length)return r();var n=0,o=function(){e(t[n],(function(e){e?(r(e),r=function(){}):(n+=1)>=t.length?r():o()}))};o()},a.forEachSeries=a.eachSeries,a.eachLimit=function(t,e,r,n){h(e).apply(null,[t,r,n])},a.forEachLimit=a.eachLimit;var h=function(t){return function(e,r,n){if(n=n||function(){},!e.length||t<=0)return n();var o=0,i=0,a=0;!function u(){if(o>=e.length)return n();for(;a<t&&i<e.length;)a+=1,r(e[(i+=1)-1],(function(t){t?(n(t),n=function(){}):(a-=1,(o+=1)>=e.length?n():u())}))}()}},d=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[a.each].concat(e))}},y=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[a.eachSeries].concat(e))}},g=function(t,e,r,n){if(e=l(e,(function(t,e){return{index:e,value:t}})),n){var o=[];t(e,(function(t,e){r(t.value,(function(r,n){o[t.index]=n,e(r)}))}),(function(t){n(t,o)}))}else t(e,(function(t,e){r(t.value,(function(t){e(t)}))}))};a.map=d(g),a.mapSeries=y(g),a.mapLimit=function(t,e,r,n){return m(e)(t,r,n)};var m=function(t){return function(t,e){return function(){var r=Array.prototype.slice.call(arguments);return e.apply(null,[h(t)].concat(r))}}(t,g)};a.reduce=function(t,e,r,n){a.eachSeries(t,(function(t,n){r(e,t,(function(t,r){e=r,n(t)}))}),(function(t){n(t,e)}))},a.inject=a.reduce,a.foldl=a.reduce,a.reduceRight=function(t,e,r,n){var o=l(t,(function(t){return t})).reverse();a.reduce(o,e,r,n)},a.foldr=a.reduceRight;var v=function(t,e,r,n){var o=[];t(e=l(e,(function(t,e){return{index:e,value:t}})),(function(t,e){r(t.value,(function(r){r&&o.push(t),e()}))}),(function(t){n(l(o.sort((function(t,e){return t.index-e.index})),(function(t){return t.value})))}))};a.filter=d(v),a.filterSeries=y(v),a.select=a.filter,a.selectSeries=a.filterSeries;var b=function(t,e,r,n){var o=[];t(e=l(e,(function(t,e){return{index:e,value:t}})),(function(t,e){r(t.value,(function(r){r||o.push(t),e()}))}),(function(t){n(l(o.sort((function(t,e){return t.index-e.index})),(function(t){return t.value})))}))};a.reject=d(b),a.rejectSeries=y(b);var w=function(t,e,r,n){t(e,(function(t,e){r(t,(function(r){r?(n(t),n=function(){}):e()}))}),(function(t){n()}))};a.detect=d(w),a.detectSeries=y(w),a.some=function(t,e,r){a.each(t,(function(t,n){e(t,(function(t){t&&(r(!0),r=function(){}),n()}))}),(function(t){r(!1)}))},a.any=a.some,a.every=function(t,e,r){a.each(t,(function(t,n){e(t,(function(t){t||(r(!1),r=function(){}),n()}))}),(function(t){r(!0)}))},a.all=a.every,a.sortBy=function(t,e,r){a.map(t,(function(t,r){e(t,(function(e,n){e?r(e):r(null,{value:t,criteria:n})}))}),(function(t,e){if(t)return r(t);r(null,l(e.sort((function(t,e){var r=t.criteria,n=e.criteria;return r<n?-1:r>n?1:0})),(function(t){return t.value})))}))},a.auto=function(t,e){e=e||function(){};var r=p(t),n=r.length;if(!n)return e();var o={},i=[],u=function(t){i.unshift(t)},s=function(){n--,f(i.slice(0),(function(t){t()}))};u((function(){if(!n){var t=e;e=function(){},t(null,o)}})),f(r,(function(r){var n=c(t[r])?t[r]:[t[r]],l=function(t){var n=Array.prototype.slice.call(arguments,1);if(n.length<=1&&(n=n[0]),t){var i={};f(p(o),(function(t){i[t]=o[t]})),i[r]=n,e(t,i),e=function(){}}else o[r]=n,a.setImmediate(s)},h=n.slice(0,Math.abs(n.length-1))||[],d=function(){return e=function(t,e){return t&&o.hasOwnProperty(e)},n=!0,((t=h).reduce?t.reduce(e,n):(f(t,(function(t,r,o){n=e(n,t,r,o)})),n))&&!o.hasOwnProperty(r);var t,e,n};if(d())n[n.length-1](l,o);else{var y=function(){d()&&(!function(t){for(var e=0;e<i.length;e+=1)if(i[e]===t)return void i.splice(e,1)}(y),n[n.length-1](l,o))};u(y)}}))},a.retry=function(t,e,r){var n=[];"function"==typeof t&&(r=e,e=t,t=5),t=parseInt(t,10)||5;var o=function(o,i){for(var u=function(t,e){return function(r){t((function(t,n){r(!t||e,{err:t,result:n})}),i)}};t;)n.push(u(e,!(t-=1)));a.series(n,(function(t,e){e=e[e.length-1],(o||r)(e.err,e.result)}))};return r?o():o},a.waterfall=function(t,e){if(e=e||function(){},!c(t)){var r=new Error("First argument to waterfall must be an array of functions");return e(r)}if(!t.length)return e();var n=function(t){return function(r){if(r)e.apply(null,arguments),e=function(){};else{var o=Array.prototype.slice.call(arguments,1),i=t.next();i?o.push(n(i)):o.push(e),a.setImmediate((function(){t.apply(null,o)}))}}};n(a.iterator(t))()};var _=function(t,e,r){if(r=r||function(){},c(e))t.map(e,(function(t,e){t&&t((function(t){var r=Array.prototype.slice.call(arguments,1);r.length<=1&&(r=r[0]),e.call(null,t,r)}))}),r);else{var n={};t.each(p(e),(function(t,r){e[t]((function(e){var o=Array.prototype.slice.call(arguments,1);o.length<=1&&(o=o[0]),n[t]=o,r(e)}))}),(function(t){r(t,n)}))}};a.parallel=function(t,e){_({map:a.map,each:a.each},t,e)},a.parallelLimit=function(t,e,r){_({map:m(e),each:h(e)},t,r)},a.series=function(t,e){if(e=e||function(){},c(t))a.mapSeries(t,(function(t,e){t&&t((function(t){var r=Array.prototype.slice.call(arguments,1);r.length<=1&&(r=r[0]),e.call(null,t,r)}))}),e);else{var r={};a.eachSeries(p(t),(function(e,n){t[e]((function(t){var o=Array.prototype.slice.call(arguments,1);o.length<=1&&(o=o[0]),r[e]=o,n(t)}))}),(function(t){e(t,r)}))}},a.iterator=function(t){var e=function(r){var n=function(){return t.length&&t[r].apply(null,arguments),n.next()};return n.next=function(){return r<t.length-1?e(r+1):null},n};return e(0)},a.apply=function(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e.concat(Array.prototype.slice.call(arguments)))}};var S=function(t,e,r,n){var o=[];t(e,(function(t,e){r(t,(function(t,r){o=o.concat(r||[]),e(t)}))}),(function(t){n(t,o)}))};a.concat=d(S),a.concatSeries=y(S),a.whilst=function(t,e,r){t()?e((function(n){if(n)return r(n);a.whilst(t,e,r)})):r()},a.doWhilst=function(t,e,r){t((function(n){if(n)return r(n);var o=Array.prototype.slice.call(arguments,1);e.apply(null,o)?a.doWhilst(t,e,r):r()}))},a.until=function(t,e,r){t()?r():e((function(n){if(n)return r(n);a.until(t,e,r)}))},a.doUntil=function(t,e,r){t((function(n){if(n)return r(n);var o=Array.prototype.slice.call(arguments,1);e.apply(null,o)?r():a.doUntil(t,e,r)}))},a.queue=function(t,e){function r(t,e,r,n){if(t.started||(t.started=!0),c(e)||(e=[e]),0==e.length)return a.setImmediate((function(){t.drain&&t.drain()}));f(e,(function(e){var o={data:e,callback:"function"==typeof n?n:null};r?t.tasks.unshift(o):t.tasks.push(o),t.saturated&&t.tasks.length===t.concurrency&&t.saturated(),a.setImmediate(t.process)}))}void 0===e&&(e=1);var n=0,o={tasks:[],concurrency:e,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(t,e){r(o,t,!1,e)},kill:function(){o.drain=null,o.tasks=[]},unshift:function(t,e){r(o,t,!0,e)},process:function(){if(!o.paused&&n<o.concurrency&&o.tasks.length){var e=o.tasks.shift();o.empty&&0===o.tasks.length&&o.empty(),n+=1;var r=u((function(){n-=1,e.callback&&e.callback.apply(e,arguments),o.drain&&o.tasks.length+n===0&&o.drain(),o.process()}));t(e.data,r)}},length:function(){return o.tasks.length},running:function(){return n},idle:function(){return o.tasks.length+n===0},pause:function(){!0!==o.paused&&(o.paused=!0)},resume:function(){if(!1!==o.paused){o.paused=!1;for(var t=1;t<=o.concurrency;t++)a.setImmediate(o.process)}}};return o},a.priorityQueue=function(t,e){function r(t,e){return t.priority-e.priority}var n=a.queue(t,e);return n.push=function(t,e,o){!function(t,e,n,o){if(t.started||(t.started=!0),c(e)||(e=[e]),0==e.length)return a.setImmediate((function(){t.drain&&t.drain()}));f(e,(function(e){var i={data:e,priority:n,callback:"function"==typeof o?o:null};t.tasks.splice(function(t,e,r){for(var n=-1,o=t.length-1;n<o;){var i=n+(o-n+1>>>1);r(e,t[i])>=0?n=i:o=i-1}return n}(t.tasks,i,r)+1,0,i),t.saturated&&t.tasks.length===t.concurrency&&t.saturated(),a.setImmediate(t.process)}))}(n,t,e,o)},delete n.unshift,n},a.cargo=function(t,e){var r=!1,n=[],o={tasks:n,payload:e,saturated:null,empty:null,drain:null,drained:!0,push:function(t,r){c(t)||(t=[t]),f(t,(function(t){n.push({data:t,callback:"function"==typeof r?r:null}),o.drained=!1,o.saturated&&n.length===e&&o.saturated()})),a.setImmediate(o.process)},process:function i(){if(!r){if(0===n.length)return o.drain&&!o.drained&&o.drain(),void(o.drained=!0);var a="number"==typeof e?n.splice(0,e):n.splice(0,n.length),u=l(a,(function(t){return t.data}));o.empty&&o.empty(),r=!0,t(u,(function(){r=!1;var t=arguments;f(a,(function(e){e.callback&&e.callback.apply(null,t)})),i()}))}},length:function(){return n.length},running:function(){return r}};return o};var E=function(t){return function(e){var r=Array.prototype.slice.call(arguments,1);e.apply(null,r.concat([function(e){var r=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(e?console.error&&console.error(e):console[t]&&f(r,(function(e){console[t](e)})))}]))}};a.log=E("log"),a.dir=E("dir"),a.memoize=function(t,e){var r={},n={};e=e||function(t){return t};var o=function(){var o=Array.prototype.slice.call(arguments),i=o.pop(),u=e.apply(null,o);u in r?a.nextTick((function(){i.apply(null,r[u])})):u in n?n[u].push(i):(n[u]=[i],t.apply(null,o.concat([function(){r[u]=arguments;var t=n[u];delete n[u];for(var e=0,o=t.length;e<o;e++)t[e].apply(null,arguments)}])))};return o.memo=r,o.unmemoized=t,o},a.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},a.times=function(t,e,r){for(var n=[],o=0;o<t;o++)n.push(o);return a.map(n,e,r)},a.timesSeries=function(t,e,r){for(var n=[],o=0;o<t;o++)n.push(o);return a.mapSeries(n,e,r)},a.seq=function(){var t=arguments;return function(){var e=this,r=Array.prototype.slice.call(arguments),n=r.pop();a.reduce(t,r,(function(t,r,n){r.apply(e,t.concat([function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);n(t,e)}]))}),(function(t,r){n.apply(e,[t].concat(r))}))}},a.compose=function(){return a.seq.apply(null,Array.prototype.reverse.call(arguments))};var A=function(t,e){var r=function(){var r=this,n=Array.prototype.slice.call(arguments),o=n.pop();return t(e,(function(t,e){t.apply(r,n.concat([e]))}),o)};if(arguments.length>2){var n=Array.prototype.slice.call(arguments,2);return r.apply(this,n)}return r};a.applyEach=d(A),a.applyEachSeries=y(A),a.forever=function(t,e){!function r(n){if(n){if(e)return e(n);throw n}t(r)}()},t.exports?t.exports=a:void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()},2830:(t,e,r)=>{t.exports=o;var n=r(7187).EventEmitter;function o(){n.call(this)}r(46)(o,n),o.Readable=r(6577),o.Writable=r(323),o.Duplex=r(8656),o.Transform=r(4473),o.PassThrough=r(2366),o.finished=r(1086),o.pipeline=r(6472),o.Stream=o,o.prototype.pipe=function(t,e){var r=this;function o(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",u),r.on("close",s));var a=!1;function u(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",o),t.removeListener("drain",i),r.removeListener("end",u),r.removeListener("close",s),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",c),t.on("error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},46:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},8106:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var o=function(t){var e,n;function o(e,n,o){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,o))||this}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o}(n);o.prototype.name=n.name,o.prototype.code=t,e[t]=o}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var o,i,a,u;if("string"==typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(o," ").concat(n(e,"type"));else{var s=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(s," ").concat(o," ").concat(n(e,"type"))}return u+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},8656:(t,e,r)=>{"use strict";var n=r(4155),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(6577),a=r(323);r(46)(f,i);for(var u=o(a.prototype),s=0;s<u.length;s++){var c=u[s];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(t){if(!(this instanceof f))return new f(t);i.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},2366:(t,e,r)=>{"use strict";t.exports=o;var n=r(4473);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(46)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},6577:(t,e,r)=>{"use strict";var n,o=r(4155);t.exports=x,x.ReadableState=A;r(7187).EventEmitter;var i=function(t,e){return t.listeners(e).length},a=r(3194),u=r(8764).Buffer,s=r.g.Uint8Array||function(){};var c,f=r(1758);c=f&&f.debuglog?f.debuglog("stream"):function(){};var l,p,h,d=r(9686),y=r(1029),g=r(94).getHighWaterMark,m=r(8106).q,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(46)(x,a);var S=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(t,e,o){n=n||r(8656),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",o),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(2553).s),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function x(t){if(n=n||r(8656),!(this instanceof x))return new x(t);var e=this instanceof n;this._readableState=new A(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function O(t,e,r,n,o){c("readableAddChunk",e);var i,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(c("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?k(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}(t,a);else if(o||(i=function(t,e){var r;n=e,u.isBuffer(n)||n instanceof s||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),i)S(t,i);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)a.endEmitted?S(t,new _):R(t,a,e,!0);else if(a.ended)S(t,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?R(t,a,e,!1):M(t,a)):R(t,a,e,!1)}else n||(a.reading=!1,M(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function R(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&k(t)),M(t,e)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),x.prototype.destroy=y.destroy,x.prototype._undestroy=y.undestroy,x.prototype._destroy=function(t,e){e(t)},x.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),O(this,t,e,!1,r)},x.prototype.unshift=function(t){return O(this,t,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(t){l||(l=r(2553).s);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var P=1073741824;function T(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=P?t=P:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,o.nextTick(I,t))}function I(t){var e=t._readableState;c("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(t)}function M(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(c("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function B(t){c("readable nexttick read 0"),t.read(0)}function L(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function U(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,o.nextTick(F,e,t))}function F(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function G(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}x.prototype.read=function(t){c("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):k(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,o=e.needReadable;return c("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&c("length less than watermark",o=!0),e.ended||e.reading?c("reading or ended",o=!1):o&&(c("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=T(r,e))),null===(n=t>0?U(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(t){S(this,new w("_read()"))},x.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,e);var a=(!e||!1!==e.end)&&t!==o.stdout&&t!==o.stderr?s:g;function u(e,o){c("onunpipe"),e===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,c("cleanup"),t.removeListener("close",d),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",h),t.removeListener("unpipe",u),r.removeListener("end",s),r.removeListener("end",g),r.removeListener("data",p),l=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function s(){c("onend"),t.end()}n.endEmitted?o.nextTick(a):r.once("end",a),t.on("unpipe",u);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,D(t))}}(r);t.on("drain",f);var l=!1;function p(e){c("ondata");var o=t.write(e);c("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==G(n.pipes,t))&&!l&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){c("onerror",e),g(),t.removeListener("error",h),0===i(t,"error")&&S(t,e)}function d(){t.removeListener("finish",y),g()}function y(){c("onfinish"),t.removeListener("close",d),g()}function g(){c("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",d),t.once("finish",y),t.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),t},x.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=G(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},x.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?k(this):n.reading||o.nextTick(B,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&o.nextTick(C,this),r},x.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||o.nextTick(C,this),e},x.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(L,t,e))}(this,t)),t.paused=!1,this},x.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(c("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var i=0;i<E.length;i++)t.on(E[i],this.emit.bind(this,E[i]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(828)),p(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),x._fromList=U,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(t,e){return void 0===h&&(h=r(1265)),h(x,t,e)})},4473:(t,e,r)=>{"use strict";t.exports=f;var n=r(8106).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=n.ERR_TRANSFORM_WITH_LENGTH_0,s=r(8656);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);s.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush((function(e,r){p(t,e,r)}))}function p(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new u;if(t._transformState.transforming)throw new a;return t.push(null)}r(46)(f,s),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new o("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},f.prototype._destroy=function(t,e){s.prototype._destroy.call(this,t,(function(t){e(t)}))}},323:(t,e,r)=>{"use strict";var n,o=r(4155);function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=x,x.WritableState=A;var a={deprecate:r(4927)},u=r(3194),s=r(8764).Buffer,c=r.g.Uint8Array||function(){};var f,l=r(1029),p=r(94).getHighWaterMark,h=r(8106).q,d=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function E(){}function A(t,e,a){n=n||r(8656),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=p(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(I,t,e),t._writableState.errorEmitted=!0,S(t,n)):(i(n),t._writableState.errorEmitted=!0,S(t,n),I(t,e))}(t,r,n,e,i);else{var a=T(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||P(t,r),n?o.nextTick(R,t,r,a,i):R(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(t){var e=this instanceof(n=n||r(8656));if(!e&&!f.call(x,this))return new x(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function O(t,e,r,n,o,i,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function R(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function P(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var u=0,s=!0;r;)o[u]=r,r.isBuf||(s=!1),r=r.next,u+=1;o.allBuffers=s,O(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(O(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function T(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function I(t,e){var r=T(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,o.nextTick(k,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(46)(x,u),A.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===x&&(t&&t._writableState instanceof A)}})):f=function(t){return t instanceof this},x.prototype.pipe=function(){S(this,new m)},x.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,u=!i.objectMode&&(n=t,s.isBuffer(n)||n instanceof c);return u&&!s.isBuffer(t)&&(t=function(t){return s.from(t)}(t)),"function"==typeof e&&(r=e,e=null),u?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=E),i.ending?function(t,e){var r=new w;S(t,r),o.nextTick(e,r)}(this,r):(u||function(t,e,r,n){var i;return null===r?i=new b:"string"==typeof r||e.objectMode||(i=new d("chunk",["string","Buffer"],r)),!i||(S(t,i),o.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,o,i){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=s.from(e,r));return e}(e,n,o);n!==a&&(r=!0,o="buffer",n=a)}var u=e.objectMode?1:n.length;e.length+=u;var c=e.length<e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else O(t,e,!1,u,n,o,i);return c}(this,i,u,t,e,r)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||P(this,t))},x.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(t,e,r){r(new y("_write()"))},x.prototype._writev=null,x.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(t,e){e(t)}},828:(t,e,r)=>{"use strict";var n,o=r(4155);function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(1086),u=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),p=Symbol("handlePromise"),h=Symbol("stream");function d(t,e){return{value:t,done:e}}function y(t){var e=t[u];if(null!==e){var r=t[h].read();null!==r&&(t[l]=null,t[u]=null,t[s]=null,e(d(r,!1)))}}function g(t){o.nextTick(y,t)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(e,r){o.nextTick((function(){t[c]?r(t[c]):e(d(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[f]?r(d(void 0,!0)):e[p](r,n)}),n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[p])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),m);t.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,c,{value:null,writable:!0}),i(e,f,{value:t._readableState.endEmitted,writable:!0}),i(e,p,{value:function(t,e){var n=r[h].read();n?(r[l]=null,r[u]=null,r[s]=null,t(d(n,!1))):(r[u]=t,r[s]=e)},writable:!0}),e));return r[l]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[l]=null,r[u]=null,r[s]=null,e(t)),void(r[c]=t)}var n=r[u];null!==n&&(r[l]=null,r[u]=null,r[s]=null,n(d(void 0,!0))),r[f]=!0})),t.on("readable",g.bind(null,r)),r}},9686:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(8764).Buffer,u=r(1758).inspect,s=u&&u.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,c;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,o=a.allocUnsafe(t>>>0),i=this.head,u=0;i;)e=i.data,r=o,n=u,a.prototype.copy.call(e,r,n),u+=i.data.length,i=i.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var o=e.data,i=t>o.length?o.length:t;if(i===o.length?n+=o:n+=o.slice(0,t),0==(t-=i)){i===o.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,i=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,i),0==(t-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,e}},{key:s,value:function(t,e){return u(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&i(e.prototype,r),c&&i(e,c),t}()},1029:(t,e,r)=>{"use strict";var n=r(4155);function o(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(i,r):(r._writableState.errorEmitted=!0,n.nextTick(o,r,t)):n.nextTick(o,r,t):e?(n.nextTick(i,r),e(t)):n.nextTick(i,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},1086:(t,e,r)=>{"use strict";var n=r(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(i||o);var a=r.readable||!1!==r.readable&&e.readable,u=r.writable||!1!==r.writable&&e.writable,s=function(){e.writable||f()},c=e._writableState&&e._writableState.finished,f=function(){u=!1,c=!0,a||i.call(e)},l=e._readableState&&e._readableState.endEmitted,p=function(){a=!1,l=!0,u||i.call(e)},h=function(t){i.call(e,t)},d=function(){var t;return a&&!l?(e._readableState&&e._readableState.ended||(t=new n),i.call(e,t)):u&&!c?(e._writableState&&e._writableState.ended||(t=new n),i.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?u&&!e._writableState&&(e.on("end",s),e.on("close",s)):(e.on("complete",f),e.on("abort",d),e.req?y():e.on("request",y)),e.on("end",p),e.on("finish",f),!1!==r.error&&e.on("error",h),e.on("close",d),function(){e.removeListener("complete",f),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",f),e.removeListener("end",p),e.removeListener("error",h),e.removeListener("close",d)}}},1265:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},6472:(t,e,r)=>{"use strict";var n;var o=r(8106).q,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function s(t,e,o,i){i=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(i);var u=!1;t.on("close",(function(){u=!0})),void 0===n&&(n=r(1086)),n(t,{readable:e,writable:o},(function(t){if(t)return i(t);u=!0,i()}));var s=!1;return function(e){if(!u&&!s)return s=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new a("pipe"))}}function c(t){t()}function f(t,e){return t.pipe(e)}function l(t){return t.length?"function"!=typeof t[t.length-1]?u:t.pop():u}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,o=l(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new i("streams");var a=e.map((function(t,r){var i=r<e.length-1;return s(t,i,r>0,(function(t){n||(n=t),t&&a.forEach(c),i||(a.forEach(c),o(n))}))}));return e.reduce(f)}},94:(t,e,r)=>{"use strict";var n=r(8106).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},3194:(t,e,r)=>{t.exports=r(7187).EventEmitter},2553:(t,e,r)=>{"use strict";var n=r(9509).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=s,this.end=c,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.s=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var o=a(e[n]);if(o>=0)return o>0&&(t.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if((o=a(e[n]))>=0)return o>0&&(t.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if((o=a(e[n]))>=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},4927:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},5955:(t,e,r)=>{"use strict";var n=r(2584),o=r(8662),i=r(6430),a=r(5692);function u(t){return t.call.bind(t)}var s="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,f=u(Object.prototype.toString),l=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),h=u(Boolean.prototype.valueOf);if(s)var d=u(BigInt.prototype.valueOf);if(c)var y=u(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===f(t)}function v(t){return"[object Set]"===f(t)}function b(t){return"[object WeakMap]"===f(t)}function w(t){return"[object WeakSet]"===f(t)}function _(t){return"[object ArrayBuffer]"===f(t)}function S(t){return"undefined"!=typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===f(t)}function A(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}function x(t){return"[object SharedArrayBuffer]"===f(t)}function O(t){return"undefined"!=typeof SharedArrayBuffer&&(x.working?x(t):t instanceof SharedArrayBuffer)}function R(t){return g(t,l)}function P(t){return g(t,p)}function T(t){return g(t,h)}function k(t){return s&&g(t,d)}function I(t){return c&&g(t,y)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||A(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=S,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=A,x.working="undefined"!=typeof SharedArrayBuffer&&x(new SharedArrayBuffer),e.isSharedArrayBuffer=O,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===f(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===f(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===f(t)},e.isGeneratorObject=function(t){return"[object Generator]"===f(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===f(t)},e.isNumberObject=R,e.isStringObject=P,e.isBooleanObject=T,e.isBigIntObject=k,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return R(t)||P(t)||T(t)||k(t)||I(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(S(t)||O(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9539:(t,e,r)=>{var n=r(4155),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),u=n[r];r<o;u=n[++r])m(u)||!S(u)?a+=" "+u:a+=" "+c(u);return a},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),o=!0}return t.apply(this,arguments)}};var a={},u=/^$/;if(n.env.NODE_DEBUG){var s=n.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+s+"$","i")}function c(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,t,n.depth)}function f(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function l(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return b(o)||(o=p(t,o,n)),o}var i=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(g(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,r);if(i)return i;var a=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(_(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(A(r))return h(r)}var c,f="",l=!1,S=["{","}"];(y(r)&&(l=!0,S=["[","]"]),x(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(f=" "+RegExp.prototype.toString.call(r)),E(r)&&(f=" "+Date.prototype.toUTCString.call(r)),A(r)&&(f=" "+h(r)),0!==a.length||l&&0!=r.length?n<0?_(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=l?function(t,e,r,n,o){for(var i=[],a=0,u=e.length;a<u;++a)k(e,String(a))?i.push(d(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(t,e,r,n,o,!0))})),i}(t,r,n,u,a):a.map((function(e){return d(t,r,n,u,e,l)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,f,S)):S[0]+f+S[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,r,n,o,i){var a,u,s;if((s=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),k(n,o)||(a="["+o+"]"),u||(t.seen.indexOf(s.value)<0?(u=m(r)?p(t,s.value,null):p(t,s.value,r-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function b(t){return"string"==typeof t}function w(t){return void 0===t}function _(t){return S(t)&&"[object RegExp]"===O(t)}function S(t){return"object"==typeof t&&null!==t}function E(t){return S(t)&&"[object Date]"===O(t)}function A(t){return S(t)&&("[object Error]"===O(t)||t instanceof Error)}function x(t){return"function"==typeof t}function O(t){return Object.prototype.toString.call(t)}function R(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(u.test(t)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(5955),e.isArray=y,e.isBoolean=g,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=w,e.isRegExp=_,e.types.isRegExp=_,e.isObject=S,e.isDate=E,e.types.isDate=E,e.isError=A,e.types.isNativeError=A,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var t=new Date,e=[R(t.getHours()),R(t.getMinutes()),R(t.getSeconds())].join(":");return[t.getDate(),P[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",T(),e.format.apply(e,arguments))},e.inherits=r(5717),e._extend=function(t,e){if(!e||!S(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(I&&t[I]){var e;if("function"!=typeof(e=t[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,I,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),I&&Object.defineProperty(e,I,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,o(t))},e.promisify.custom=I,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var o=e.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(M.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,o(t)),e}},6430:(t,e,r)=>{"use strict";var n=r(9804),o=r(6314),i=r(1924),a=i("Object.prototype.toString"),u=r(1405)()&&"symbol"==typeof Symbol.toStringTag,s=o(),c=i("String.prototype.slice"),f={},l=r(4079),p=Object.getPrototypeOf;u&&l&&p&&n(s,(function(t){if("function"==typeof r.g[t]){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=p(e),o=l(n,Symbol.toStringTag);if(!o){var i=p(n);o=l(i,Symbol.toStringTag)}f[t]=o.get}}));var h=r(5692);t.exports=function(t){return!!h(t)&&(u?function(t){var e=!1;return n(f,(function(r,n){if(!e)try{var o=r.call(t);o===n&&(e=o)}catch(t){}})),e}(t):c(a(t),8,-1))}},594:()=>{},6615:()=>{},1758:()=>{}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r(8860)})(); (function abc() { const UNO_CSS = document.createElement('style'); UNO_CSS.innerHTML = `.unojs-util-graph-view { width: 300px; display: block; font-family: Verdana, Geneva, Tahoma, sans-serif; margin: 20px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); user-select: none; outline: none; background-color: #222;}.unojs-util-graph-view > .graph-view-title { text-align: center; height: 40px; line-height: 40px; color: #FFF6; font-size: 12px; background-color: #1118; text-align: left; padding: 0px 0px 0px 15px;}.graph-view-inner { width: 300px; display: flex;}.graph-view-labels { width: 70px; font-size: 10px;}.graph-view-values { width: 60px; background-color: #1112; font-size: 8.5px;}.graph-view-labels > .label { height: 60px; line-height: 60px; text-align: center; color: #FFF5;}.graph-view-values > .value { height: 60px; line-height: 60px; text-align: center;}.unojs-util-serial-monitor { font-family: Verdana, Geneva, Tahoma, sans-serif; background-color: #222; width: calc(100% - 40px); height: 285px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); max-height: calc(100vh - 40px); overflow-y: hidden; overflow-x: hidden; cursor: default; font-size: 10px; margin: 20px; user-select: none; outline: none;}.serial-monitor-title { text-align: center; height: 40px; line-height: 40px; color: #FFF6; font-size: 12px; background-color: #1118; text-align: left; padding: 0px 0px 0px 15px;}.serial-monitor-item { height: 30px; white-space: nowrap; font-size: 10px; color: #FFF6; overflow: hidden; padding: 0px 10px 0px 10px;}.serial-monitor-item > div { width: 20px; text-align: center; line-height: 30px; display: inline-block; font-size: 8px;}.serial-monitor-title > select { float: right; height: 40px; border: none; padding: 0px 10px 0px 0px; margin: 0px 5px 0px 0px; width: 140px; text-align: right; outline: none; background-color: transparent; color: #FFF6;}.serial-monitor-title > select > option { background-color: #222; color: #FFF6;}.unojs-util, .unojs-util * { user-select: none; outline: none; -webkit-tap-highlight-color: transparent;}.unojs-util-start-button { font-family: Verdana, Geneva, Tahoma, sans-serif; height: 50px; background-color: #3366ff; border: none; cursor: pointer; font-size: 18px; line-height: 45px; color: #FFFE; background-position: 5px 5px; background-repeat: no-repeat; background-size: auto calc(100% - 10px); padding-right: 20px; padding-left: 50px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); opacity: 0.9; text-align: center; margin: 20px; display: block; user-select: none; outline: none;}.unojs-util-start-button:hover { opacity: 1;}.unojs-util-start-button.start { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 24 24" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M8 5v14l11-7z"></path></g></svg>');}.unojs-util-start-button.start::after { content: 'START';}.unojs-util-start-button.starting { width: 160px; background-image: url("data:image/svg+xml,%3Csvg width='80px' height='80px' xmlns='http://www.w3.org/2000/svg' viewBox='-10 0 100 100' preserveAspectRatio='xMidYMid' class='lds-bars' style=''%3E%3Crect ng-attr-x='%7B%7Bconfig.x1%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff44' x='14' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.6s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3Crect ng-attr-x='%7B%7Bconfig.x2%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff44' x='34' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.4s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3Crect ng-attr-x='%7B%7Bconfig.x3%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff44' x='54' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.2s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3C/svg%3E");}.unojs-util-start-button.starting::after { content: 'WAITING';}.unojs-util-start-button.running { width: 160px; background-image: url("data:image/svg+xml,%3Csvg width='80px' height='80px' xmlns='http://www.w3.org/2000/svg' viewBox='-10 0 100 100' preserveAspectRatio='xMidYMid' class='lds-bars' style=''%3E%3Crect ng-attr-x='%7B%7Bconfig.x1%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff' x='14' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.6s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3Crect ng-attr-x='%7B%7Bconfig.x2%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff' x='34' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.4s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3Crect ng-attr-x='%7B%7Bconfig.x3%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff' x='54' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.2s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3C/svg%3E");}.unojs-util-start-button.running:hover { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 16 16" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(1, 1);"><g><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"></path></g></svg>');}.unojs-util-start-button.running::after { content: 'RUNNING';}.unojs-util-start-button.running:hover::after { content: 'STOP';}.unojs-util-start-button.stopping { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 24 24" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M8 5v14l11-7z"></path></g></svg>');}.unojs-util-start-button.stopping::after { content: 'STOPPING';}.unojs-util-start-button.error { background-color: #ff3333; background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 16 16" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"></path></g></svg>');}.unojs-util-start-button.error::after { content: 'ERROR';}.unojs-error-tray { font-family: Verdana, Geneva, Tahoma, sans-serif; width: 100vw; height: 100vh; position: fixed; z-index: 99998; background-color: #111E; top: 0px; left: 0px; opacity: 0; transition: opacity 0.3s; user-select: none;}.unojs-error-inner { width: 400px; height: 175px; position: fixed; z-index: 99999; top: calc(50vh - 87.5px); left: calc(50vw - 200px); background-color: #222; box-shadow: 0px 3px 15px rgba(0,0,0,0.1);}.unojs-error-info { padding: 30px 30px 20px 30px; color: #AAA; font-size: 14px; height: 60px; overflow: hidden; text-align: left;}.unojs-error-button { height: 50px; width: 120px; background-color: #3366ff; float: right; cursor: pointer; font-size: 18px; line-height: 50px; color: #FFFE; text-align: center; margin-right: 15px; opacity: 0.85; transition: opacity 0.1s;}.unojs-error-button:hover { opacity: 1; }.unojs-error-button:active { opacity: 0.8; }.unojs-error-info > a { text-decoration: none; color: #3377ff;}.unojs-error-info > a:hover { text-decoration: underline;}.unojs-util-state-view { width: 300px; height: 240px; display: block; font-family: Verdana, Geneva, Tahoma, sans-serif; margin: 20px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); user-select: none; outline: none; background-color: #222;}.unojs-util-state-view > .state-view-title { text-align: center; height: 40px; line-height: 40px; color: #FFF6; font-size: 12px; background-color: #1118; text-align: left; padding: 0px 0px 0px 15px;}.unojs-util-state-view > .state-view-inner { height: 200px; text-align: center; line-height: 180px; font-weight: 500; font-size: 18px; color: #FFF;}.unojs-util-voltage-monitor { font-family: Verdana, Geneva, Tahoma, sans-serif; background-color: #222; width: 350px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); max-height: 500px; overflow-y: auto; overflow-x: hidden; cursor: default; margin: 20px; user-select: none; outline: none;}.unojs-util-voltage-monitor::-webkit-scrollbar { width: 3px; height: 3px;}.unojs-util-voltage-monitor::-webkit-scrollbar-thumb { background-color: #1111;}.unojs-util-voltage-monitor:hover::-webkit-scrollbar-thumb { background-color: #FFF5;}.unojs-util-voltage-monitor > .digital-panel,.unojs-util-voltage-monitor > .analog-panel { display: flex;}.digital-panel > .digital-values,.analog-panel > .analog-values { background-color: #1112; width: 40px;}.digital-panel > .digital-canvas,.analog-panel > .analog-canvas { width: 270px;}.digital-values > .value-label,.analog-values > .value-label { font-size: 10px; text-align: center; color: #FFF7; height: 30px; line-height: 30px;}.analog-index > .value-index,.analog-values > .value-label,.digital-index > .value-index,.digital-values > .value-label { font-size: 10px; text-align: center; color: #FFF5; height: 30px; line-height: 30px; width: 40px;}.unojs-util-voltage-monitor > .analog-panel-title, .unojs-util-voltage-monitor > .digital-panel-title { text-align: center; height: 40px; line-height: 40px; color: #FFF6; font-size: 12px; background-color: #1118;}.unojs-util-uploader * { font-family: Verdana, Geneva, Tahoma, sans-serif; outline: none; user-select: none;}.unojs-util-uploader { display: flex; opacity: 0.9; width: 336px; margin: 20px;}.unojs-util-uploader:hover { opacity: 1;}.unojs-util-uploader > select { text-align: right; height: 50px; padding: 0px 5px 0px 10px; font-size: 16px; border: 3px solid #00b386; background-color: #222; color: #FFF8;}.unojs-util-uploader > select > option { -webkit-appearance: none; border-radius: 0px;}.unojs-upload-button { background-color: #00b386; width: 120px; text-align: center; line-height: 50px; cursor: pointer; font-size: 18px; color: #FFFE; padding-right: 20px; padding-left: 50px; background-position: 5px 5px; background-repeat: no-repeat; background-size: auto calc(100% - 10px);}.unojs-util-uploader.unojs-upload > div::after { content: 'UPLOAD';}.unojs-util-uploader.unojs-upload > div { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 24 24" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M5,20h14v-2H5V20z M5,10h4v6h6v-6h4l-7-7L5,10z"></path></g></svg>');}.unojs-util-uploader.unojs-uploading > div::after { content: 'UPLOADING';}.unojs-util-uploader.unojs-uploading > div { background-image: url("data:image/svg+xml,%3Csvg width='80px' height='80px' xmlns='http://www.w3.org/2000/svg' viewBox='-10 0 100 100' preserveAspectRatio='xMidYMid' class='lds-bars' style=''%3E%3Crect ng-attr-x='%7B%7Bconfig.x1%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff88' x='14' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.6s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3Crect ng-attr-x='%7B%7Bconfig.x2%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff88' x='34' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.4s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3Crect ng-attr-x='%7B%7Bconfig.x3%7D%7D' y='30' ng-attr-width='%7B%7Bconfig.width%7D%7D' height='40' fill='%23ffffff88' x='54' width='12'%3E%3Canimate attributeName='opacity' calcMode='spline' values='1;0.2;1' keyTimes='0;0.5;1' dur='1' keySplines='0.5 0 0.5 1;0.5 0 0.5 1' begin='-0.2s' repeatCount='indefinite'%3E%3C/animate%3E%3C/rect%3E%3C/svg%3E");}.unojs-util-uploader.serial-error { width: 200px;}.unojs-util-uploader.serial-error > select { border: 3px solid #ff3333;}.unojs-util-uploader.serial-error > div::after { content: 'ERROR';}.unojs-util-uploader.serial-error > div { background-color: #ff3333; background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 16 16" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"></path></g></svg>');}.unojs-util-uploader.unojs-failed > select { border: 3px solid #ff3333;}.unojs-util-uploader.unojs-failed > div::after { content: 'FAILED';}.unojs-util-uploader.unojs-failed > div { background-color: #ff3333; background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 16 16" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"></path></g></svg>');}.unojs-util-uploader.unojs-uploaded > div::after { content: 'COMPLETED';}.unojs-util-uploader.unojs-uploaded > div { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 16 16" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(0.8, 0.8);"><g><path d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"></path></g></svg>');}.unjs-util-setup-view { width: 300px; display: block; font-family: Verdana, Geneva, Tahoma, sans-serif; margin: 20px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); user-select: none; outline: none; background-color: #222;}.unjs-util-setup-view > .setup-view-title { height: 40px; line-height: 40px; color: #FFF6; font-size: 12px; background-color: #1118; text-align: left; padding: 0px 0px 0px 15px;}.setup-view-list-item { height: 30px; line-height: 30px; text-overflow: ellipsis; white-space: nowrap; color: #FFF5; font-size: 11px; transition: all 0.1s;}.setup-view-list-item:hover { background-color: #FFFFFF08;}.setup-view-list-item-code { float: right; padding-right: 12px; color: #FFF3;}.setup-view-setup-item { display: flex; padding: 0px 20px; transition: all 0.1s;}.setup-view-setup-item:hover { background-color: #FFFFFF08;}.setup-view-setup-item > div { color: #FFF4; font-size: 11px; height: 30px; line-height: 30px; text-align: left; font-family: Verdana, Geneva, Tahoma, sans-serif;}.setup-view-setup-join { width: 30px !important; padding-right: 10px; background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 16 16" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 0.16; transform: rotate(0deg) scale(0.7, 0.7);"><g><path fill-rule="evenodd" d="M10.5 7.75a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm1.43.75a4.002 4.002 0 01-7.86 0H.75a.75.75 0 110-1.5h3.32a4.001 4.001 0 017.86 0h3.32a.75.75 0 110 1.5h-3.32z"></path></g></svg>'); background-position: center; background-size: auto 60%; background-repeat: no-repeat;}.setup-view-setup-pin { min-width: 60px;}[class^='unojs-icon-'] { line-height: 30px;}[class^='unojs-icon-']::before { background-size: auto 55%; background-position: center; background-repeat: no-repeat; display: inline-block; width: 30px; height: 30px; content: '.'; color: transparent; filter: invert(100%); opacity: 0.8;}.unojs-icon-ard::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAX0lEQVRIiWNgGGDwH4qJ5WMAJho4ir6AEYsYXi+TaibNg4huFhBMDSQCuHk09wGxkYxNHVFqR+OAIGCB0rjCmFwAN49uPoCFPympBR+Amzdo8gHZZg79wm7AwWidzAAA1RQbEwhbdtEAAAAASUVORK5CYII=);}.unojs-icon-lcd::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAABHElEQVRIie3WT0rDQBTH8U+sXQqCFxAXorhQb2HxBO48ggs3egM34lFcVgK6EFdW8AxNN4og6E7wzyITrTGt1DSFSn4wkPebeflmXh6TUOtLV7gcY/xNM0PAb3gfY1zrU9voSctTxUjQKgInFUKz0c1gUR94Uo0QMbyrK9XUgbNmeR7HQ+QbAQ4L/GsshvkG9gvyoIl1xAPmRwavYgW3OA7r4lzeLs6wiXk8lgXfB/8oxK/o4C6XdxCuT0N8ngeXecfD4rw/+9vN8jvekZYxxkvw17CMG5yEdW0/S92WlnoBT0Ysdb8egt/BUvAa2BuQ18QGLormy5xcibRx5kbMi8qC/6r6yNSbAC8pMluq/SZ3sVXRhqZc9X/1/9AH2xjNGMBBGPoAAAAASUVORK5CYII=);}.unojs-icon-smk::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAX0lEQVRIiWNgGAUEACMS+z8tzGaisqEYAJcFjAyoviOVT9ACqoGhHwfDF2QwQOKEFJxBigUaZFigQaovnpJg+HMGHPlg+ANYEBDLxwADVtgNHQtIBQTDHB0MOh8MPgAAAGAu3nrGT3YAAAAASUVORK5CYII=);}.unojs-icon-uss::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABfElEQVRIie2VOU4DQRBFn0diSMFEOOMADlhugAVYJIhVgsiJgZD1GGa7BBbXMCDMAbDBiFWCCDKQjMQQzG8NjNrjGRCZK2n9X69cVnd1D3TiDzH8TywOsA98ArkYfE7sjmrbxgHgAR9AIQZfEOupSWTMCWwCY/JSEbzJTajGA6Zbwd3Ag6BNeRngGMha+KxyGekt1d4Brq3BkoCa/pkLnMs7tPBl5apiU0Bd3oKtwZGSa9Kr0ldA2sKngYaYFXkb0mVbgxslB6VPpWekJ4FH/G3My5sVcyI9JH1ta/CuZI/0a0ib8/GAe3m90i8h/WZ+NM7cRk1R2/je4FnrgNaa1lGtRYItKsozF/EiVPtka2YOeV3aHHID+yH34e+1ByzLM4dsmzoWlawTjGk1osCM6ZlYB7iUN29r4OIfnod/acC/RBVaX7QK0C+9rdpboMvWAIKxawLj8uI8FXmC92gqggdgj98/dqUYPA6wS/LnukTCkR5JwCb64HTiR3wBnYJtcaM+zzsAAAAASUVORK5CYII=);}.unojs-icon-irs::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABCUlEQVRIidXVvUoEMRiF4UctBNHKxgFvwx/wEgTxRgRdBUu1cb0tkQXLxd5yb0CEtdGx2Axkh8lqsmPhgY9JwvCe5HwzhP+utR4Y7zjBBsb47IE5pzqqMXb7NtjEMV4ik/VS2G2oWBMMsY3XYHJWCm+iiE2atXuchvHzMvC2yVGYT7AVxm/Lwpt6yN1pCj7FOXZQ4SKsteMqgtcB3tZAd0+y4bXZzmGEpzCudPdkTqsJ+E1rbSU8vwKsWKmGDjrevZIZUQzfw0E0nwaTKtQlPkrhNfZxmDjNj7l36foXsHa1+5R9ilRcvX37qbiK4Y0WxZUdS45Jb/Auk2L4ojt5ZPYHP+Ku1ODP9Q0JpItVnyNj5QAAAABJRU5ErkJggg==);}.unojs-icon-srv::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAABVklEQVRIie2UsUrDUBiFvxS02KF5gb6BT9BVLBScO4hDQQdd9QG66iB9ALvpE7joAxQs6qabi1hBp67VoqUOnuhtNH+TYAQxBw7kPzn3P7k3lx9y/AHciL+OiZgKhQTeBaBpvG/KkxrzwBEw4nNXLgNE1S5HwCEwFyd4LaLJBOgZwT1j3Wqc4I7M26ovVe8CnhHsAXvSzqXtqD6IE3wtc1X1ULUf8t2KLnx5h6qrqq9mhfrAGHgGitKCHe9jX8YC0GZ6x0X1GgNlK7imhWeOtgy8Sr8ANoFFNSrrecv5wBdgyVkf/PuaFdySqR3SV4BHoi9PwAegHlobnELLCj6VqfHNuxKwARwDfeBJvJO2Lk8YDfU8sYIHMlUsU0JU1HPgil7IlHoExsRHXpKR+aPIg/9f8H2GWWbvOu/DYdaESso+Xydajil0SX+8Xatxlrc66/GbIx7eAFoMkrdH4RJtAAAAAElFTkSuQmCC);}.unojs-icon-jst::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAdklEQVRIie2SwQ2AIAxFnwZdTHcTp9DBvMoaehAuhMPHYDSGl/RAk/JKKVQK0QMz4IAdsD5XDAscUUwlBS4hcEphKwq6RM6UFKyJ3CLWShiuTw7jsYgvyCUIZNQR3eY1wQhsPoanm/g2TXTO2hDl3v9uURVUdE4L9RdtS5kTDgAAAABJRU5ErkJggg==);}.unojs-icon-pir::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABYUlEQVRIid2VPU7DQBBGH0aQgoQLAAcAjkCoqFAafsUFIDRJbgEUcAzEUVA6ByREpAAFDhyARKI0xc4oE8s2XkwDn2Rtdsb+XjwztuE/KjbHG3ABzJv8GOgDN8BRIucN0OM8J/8M7PtCVBtM7kS1AKwCLSA0oCtg9icQNUhTABwDnwZSGjAGukAHqEisbiB7ZQG2/j1gWeInEnvCs/FJQBVoAPcGUsGVqyexwzIAVQ03QTHQllhH9tdFjBvAMAUQAdvye0dyXdmvyb5fBBAxXW9VDLyau4iBj4w9QRFSjma+OyEP0MSVKKlIcgBbsj7IuiLre5F/p8pq8iLwIrmWxLyanAWo4Zqr5iFu7gPgjl8YU9v4EFiSeFNiA0o+aCPgFlcWNdpk8qrY9TFPA1gFwKkxv/Q1r8uFdpqqwDquoVpzNS/0uk774Jzl5Ad4lsVePBRz27QR8IgbxQNgzsf87+kLMwOJjJ+l4HkAAAAASUVORK5CYII=);}.unojs-icon-led::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAABGUlEQVRIie2VTYrCQBBGnyJudC5iGFypB9CF4t0mYzyOW2+gXiDJCWTAH2RmFqlICOmOnYogmA8KQld99TqdVAKN7PIAH9gDPxJ7WfOeAewCa+AG/BniBgRSWxt0I81PwDcwBnoSE2AFnKVmUxd8LQ1D4NNSNwQiqQ20UI/kCE8l0Cz8LJ6BBuyT3IHv4AnE86UBH6TJyMEzEc9OAz5Kk35ufQnEJM90kct9iOeoAaejkleUyYUOvrvaFTd0zVxfKvawyrTzGfArMXXwqcGaHFD9qNVqwKnSOU1V9Dd6JFc051Zl51QbRXNOywBWjcIjHNNRx4b1KopcihfUc9whMNfuvOyj4PS1erlxasC1q+NQu8X+8pTl31z/FDaAkpkWy9AAAAAASUVORK5CYII=);}.unojs-icon-lsr::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAA2ElEQVRIie3UPQ6CQBCG4TfeQe/gdWw4g17AhkRLj0Qt8QJ6BempNVELssmwCrI7w0/Bl0wBCTyb2Z2FOSPlAuRDQAvv+QW8h4AnmV7b7rdaZhJtT4ASSL33KyADnlSLdGXSqUT8+AGsBXrzQFdnC7gU6KYFPVpgMmkHtDe8S3t7w5fA9Q/q6jQGaobHoCZ4Fomq99y/HAbD5ccafBcLo8QLDazB76FwzvfdG4NvQ2E/bkT2AehBi0J9PrvgJqiD5Z634WboL7gJN0WbYKjmtKA6veqDNMcsH27p49Plcw9nAAAAAElFTkSuQmCC);}.unojs-icon-bps::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAB70lEQVRIie3Wz2oUQRAG8J9BHyCCB3WzKOJBH0HiRQMqasxzrCY+i3gKMUE9eosY9Am8rRpEjaJB/HMSD1m9SLJZD9PDdHZnZmc2QTzkg2amq7vrq6ruqm728Y9woMbcJm7gKk6gEeTf8BlPsIyve2XcccxjC70hrYtHwbBdYQa/CkjOYbJgrIPpUUlvSzzooY0pvIqUT+J81H8Z5ryQeT9Xl3QmIu1hIcgXFYc5b05XDc8bBsO7jbXwLSLexvsceQfHqhCnFq+G/zKyovYHD/CmLxqFaMpO74Ug+1CTdBmnw9qLQbYlS79czEYK2liq4fFryeFKcRbPo/GbZcRPa3rXww+0cDDoOIy72Oybt1JGnHc48tqKpLCcwnhYeyhE7GfBmrUy4o7hxaEXSGNcxtucebGeTrxgrMCAMfl1/B2u4Hska0q26EwNPQMoC/WCbB/HJWGewLOSNYWh7vd4vcSodKwlSbGP+IJLVTzCp7LBW5GFbUkRiNPpt2rebeN+0JHKWmXEE3ZfQOKwToX+piEFBO5FHi+NQJp6vCi7qeaHkZKkSppWe9E2cLQKMUnKVHlxDGtdXK9KmmLOzjt5FNLZuqQppo0W9g1cG5U0xRHcMVj0i7x8qMKe1nneNmTP25N2Pm/XJRfH49Dfx/+Dv9MEZ1JJHo2WAAAAAElFTkSuQmCC);}.unojs-icon-irr::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABOklEQVRIid3VvS5EYRAG4AexK8Ed0BOXQKG2hYSIXlD5uwmduAgJLkUoWAo/idVsoUcoKXZO9jiR3W/taZjkZPK+32TeOTPfmcN/tM94UqyCVZziHm9lCqzgKRefXFi3wCEc5uIusYVpjJYhkCX/wBoGUpKmCqzE2TtmgxvBLs71OYOKds/XgpvEjZJmsKrd88GoPEt+jRrGehEYLvAnwW8F3sslT0pcFNgv8A/BTwW+CFwLvIBmLwLF4Jfgs2pfC7jph9YOpij2Y50Ejgr4Ofxk+Nvw8+E39diibkPeCXyD8ZTERYGiZdf0SuvNq6gH18BiqlCnD60RZ+vBTeRESll2y9p7aC64KrZxpnWz+hKAg5zIhl/cxJR1fZCLq2sNfEZJ6zqzJTz63v9Sfjh5q2it8GPcSZzB37Ivdk57GqaMSfQAAAAASUVORK5CYII=);}.unojs-icon-mic::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAADAklEQVRoge2Zz2sTQRTHP5HapmBq1CL4I4K/0PbgX6B48mJ7EFQQD3rxIh4L/gGKFVEq4lG8aI9VC413kRZKvSpW0+rJqvjjYGtsDjUe5sXObjbJ7szsJrT5wLDL27x570tmZmfepnDPduAUMAgcAnaJ/RMwCzwHngHfYojthB5gGFgCyg3aEnADyDQl0zocBN7QWIC/vQP6m5BvIH3AT6KLqLQfqCHYVLYC85iLqLQCkE04dw/3ApIybSMJ5/6fPUApRIJhWwnYbZrMBlNH4CzQaeHvpxM4Y+psI2TAwrcWg6aONkL2W/g67zNlEXQZ6LLwD6IEpB33aUUXkKd6Qk/gXjxgN7QaEfRv24yAyMHCUnaWhRejnOL8R9YE7TniMlgQ94EO4LJmS2KO3JY4V6M41eOjXPdqtiSEBMUNxGZopeq0NOpI6ycvz+r5GrFm5kiHha/J0BpAbW3qsb7fI2GF/Ka64lFynEtQnxmJ3ZCwQr6izuf6zvRzSN8oLGj33cC2sHGiCEkBOzTbh5C+UZjX7ndqsRsSVsgruR7VbPmQvlGY0O6PyXXGZYB+1Co1ptlyuC0+LOMtPjwVe59LIQBzwCKwWbPddSjkjtZvFlVWLbgWAXBFAg5rti0SzFbEe7wFulti1/d2zugGvqCWQ30IHEaVPU1F+EumOaCIWq1iO7+fluCTeM8VB4DXBiJm8c6BjcALeXYuLhEVRiXQA589A1xHzaNGAhaBa8AmXx8P5floTLl76AGmWRXjrzb2ApeAceAtatIuyf24POv1+XSxKmJaYiRCFvVuKQMvsajZoubEpPQ1g3dVTIQe4LEkUARuEu3TQBa1OhWlj0c0+QvWedQeqYwaQmPABdSpTl910sA+4CLwhNVPdAvSR0uQRr1n5qie2N+l+e0F8WmpEqlOHzBE7RVriBi2HbEdPal9gowl5ro7IbY8bSFt2sTDSdS+yOVR9w8wBRxPSsQJ4K9DAf62grfIERtTMYqoNL2aEgqT2u8RA58V4FeE3+eiBvgHk0yImzh+OggAAAAASUVORK5CYII=);}.unojs-icon-bzr::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAABhElEQVRIie2WK08DQRSFv21SKIJQWkmQCDQJqlhCQ/kNYMDjQBAM4RHQWAyah+Rl2iAqmmrA8FIQAhgUpIg9k25gutmd3SBIT7K5OffOzLeP2ZmBrrr6rQJwCdT+EtoP1IGWrjBVgJ40oDngIgANA5eAL6AJDCeBZoHjH9Aw8DhwpTb3rvAMsG+BdgLnFPNAVe2axHztHrDbAWoDjwKPwIz8AO0nX40D3giB2sDbyn8CZeVKyr0DgzbItO42OGAY1Ab2gDXVXoGi8mfKLdjAD5YBo4KHgC38SegBJ6ovqz4rf2QD2waMCj6Q35GflK/Lj8jfpg023/FZvij/It8n/2E6ZGx34CAvboe0wIuKe4pjijeKZgF5snVOOrk2aU+uU9WXVJ+TP7SBywF4XLCRB6zT/p0Kyp8rN28D25RkAZlSbkK5N/xlNJJcl8yKfB7/O7eAlahQo7ibRG8AWlO7Bo57s8u2eK02d/iTz1kuB4FGUqhR3KNPNg2oUUHwapqDdvX/9A3X58W4j9lvTAAAAABJRU5ErkJggg==);}.unojs-icon-flm::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAABn0lEQVRIie3WP2gUQRTH8c+FCEETCQSJCfinsLZNICkCIXWKNLYpA1paWUg6a5vUFqKFKDZJEQsRLPKnFImFqCliFf+A8Q9I1mL3ZFlm9m7OuyskP3gsvHnzvvNmZt8uJ2qtl9jCcD+hZ5AV9rCf4OkSOMNKv8BrFfBXTPYaeg5HFXCG+70G3wtAmzbVK+gCjmvAT3oBHcWHGmiG3zjfbfCDFtCm3SjiG9jEcwx0Cl1sE5rhUTFntuRb6AQ6jI8J4LfFvI2Sr6MbfzsBmuEbViu+zziVAj0tbw4p4JjNhQCxw1/E2ZSV1mgmBbzUJSiJzeW9+NYdYLlmvGpvQoBYxeMR/6F86w4SipgIOQcjwT8wFPCv4h1GEsBJTWRXeNsuFOMNbEdiYu93W6tZj/g/Fc9Mfs5f2ijiVRsxf3UJP7X+/M3KG0ddxddTwHArkGQtEDcvvxMh6BHGUsGDeFpJ9AtXA7HXIuA7qdCmhvC4kmxP/htUVTXutbz1dqwGbuJ7KelWIG6uNL6Pi/8CLesy7sqbx4vIAp9hB1e6Bf1/9Ad6fNyi3cKAtgAAAABJRU5ErkJggg==);}.unojs-icon-acc::before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABZklEQVRIicXVv08UQRjG8Q8ChYkVBYE7CrSBhpwVtBTGzsSGUv4FK6Slozxp+AMIFZ2gsbCgtiAWVhoPGnsbo3dczFHsrJns7U+OhG/yJLMz7zzvvjM7szRjFjMN59TmGb7iG7YwdVfGq3iPUUafsTmJ8RwOMMwxj/UJnSbGs3iNXxXGsf7hBI+rzF/iRwPjrP5gH9Op4YNMgu/4EoKbMsIHHIeKxliO2h28a/Dmp3ha4PWfaxyiHfWto1di3MNGFN8OHtdFJY7wF13MoyVZ1z52sBj0BoMw1gqx3TA39SlMkOo3LkJ7Jyd+N4xdhNjs/MoEsRZy4hcq5mD8Kyoi71qYzukbo26CVzX7Sikrty/Z2FbQrmSTK5coLv02h6uMKeovUcpl0K14q/rmTCmLGQavXFbwcYIE51irU80LXDVI8BPbdYxjHmJP/vFPnweSn9KjpuYxSzjKSXCGJ5MYZ3le0L5fbgBFhb6nhwQkPwAAAABJRU5ErkJggg==);}.unojs-util-communicate-view { font-family: Verdana, Geneva, Tahoma, sans-serif; background-color: #222; width: calc(100% - 40px); height: 300px; box-shadow: 0px 3px 15px rgba(0,0,0,0.1); max-height: calc(100vh - 40px); overflow-y: hidden; overflow-x: hidden; cursor: default; font-size: 10px; margin: 20px; user-select: none; outline: none; color: #FFF6;}.communicate-view-title { text-align: center; height: 40px; line-height: 40px; color: #FFF6; font-size: 12px; background-color: #1118; text-align: left; padding: 0px 0px 0px 15px;}.communicate-view-tray { height: 220px; overflow-y: auto; overflow-x: hidden;}.communicate-view-tray::-webkit-scrollbar { width: 3px; height: 3px;}.communicate-view-tray::-webkit-scrollbar-thumb { background-color: #1111;}.communicate-view-tray:hover::-webkit-scrollbar-thumb { background-color: #FFF5;}.communicate-view-tray > div { white-space: nowrap; line-height: 20px; height: 20px; background-position: left; background-size: auto 100%; background-repeat: no-repeat; padding-left: 20px;}.communicate-view-sent { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 24 24" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 1; transform: rotate(0deg) scale(1, 1);"><g><path d="M11.828 12l2.829 2.828-1.414 1.415L9 12l4.243-4.243 1.414 1.415L11.828 12z"></path></g></svg>'); color: #FFFA;}.communicate-view-received { background-image: url('data:image/svg+xml,<svg version="1.1" viewBox="0 0 24 24" width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="fill: rgb(255, 255, 255); opacity: 0.7; transform: rotate(0deg) scale(1, 1);"><g><path d="M12.172 12L9.343 9.172l1.414-1.415L15 12l-4.243 4.243-1.414-1.415z"></path></g></svg>'); color: #FFF4;}.communicate-view-foot { height: 40px; display: flex; background-color: #1118;}.communicate-view-foot > input { height: 40px; border: none; padding: 0px 10px; margin: 0px 0px; width: 100%; background-color: transparent; color: #FFF9;}.communicate-view-label { width: 120px; text-align: center; line-height: 40px; font-size: 13px;}.communicate-view-foot > select { height: 40px; border: none; padding: 0px 10px; margin: 0px 0px; width: 100px; text-align: right; background-color: transparent; color: #FFF6; font-size: 13px;}.communicate-view-foot > select > option { background-color: #1118; color: #FFF9;}`; if(document.head) { document.head.appendChild(UNO_CSS) } else if(document.body) { document.body.appendChild(UNO_CSS) } else { document.documentElement.append(UNO_CSS) } }())