cloudcmd 16.2.0 → 16.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,r){"use strict";const n=(t,...e)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),e.length>=t.length)return t(...e);const r=(...r)=>n(t,...e,...r),o=t.length-e.length-1;return(t=>[function(e){return t(...arguments)},function(e,r){return t(...arguments)},function(e,r,n){return t(...arguments)},function(e,r,n,o){return t(...arguments)},function(e,r,n,o,i){return t(...arguments)}])(r)[o]||r};t.exports=n},function(t,e,r){"use strict";const n=r(2),o=t.exports;function i(){return function(){const t=document.createElementNS;if(!t)return!1;const e=t.bind(document),r=e("http://www.w3.org/2000/svg","animate").toString();return/SVGAnimate/.test(r)}()?"-svg":"-gif"}function s(){return n("span",{id:"js-status-image",className:"icon",dataName:"progress",notAppend:!0})}function a(t,e){const r=o.loading(),n=r.parentElement,i=DOM.getRefreshButton(e);let s;return"top"===t?s=i.parentElement:(s=DOM.getCurrentFile(),s=s?DOM.getByDataName("js-name",s):i.parentElement),(!n||n&&n!==s)&&s.appendChild(r),DOM.show(r),r}t.exports.get=s,t.exports.loading=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("loading",r),e.remove("error","hidden"),t},t.exports.error=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("error"),e.remove("hidden","loading",r),t},t.exports.show=a,t.exports.show.load=a,t.exports.show.error=function(t){const e=o.error();return DOM.show(e),e.title=t,e},t.exports.hide=()=>{const t=o.get();return DOM.hide(t),o},t.exports.setProgress=(t,e)=>{const r=o.get();return r?(r.setAttribute("data-progress",t+"%"),e&&(r.title=e),o):o},t.exports.clearProgress=()=>{const t=o.get();return t?(t.setAttribute("data-progress",""),t.title="",o):o}},function(t,e,r){"use strict";const n=r(0),o=n((t,e,r)=>t.setAttribute(r,e[r])),i=n((t,e,r)=>t[r]=e[r]),s=n((t,e)=>!t(e)),a=t=>t!=t.toLowerCase();function u(t){var e;if(t)return e=t,document.querySelector(`[data-name="${e}"]`)}t.exports=(t,e={})=>{const{dataName:r,notAppend:n,parent:c=document.body,uniq:l=!0,...f}=e,h=u(r);if(l&&h)return h;const p=document.createElement(t);return r&&(p.dataset.name=r),Object.keys(f).filter(a).map(i(p,e)),Object.keys(f).filter(s(a)).map(o(p,e)),n||c.appendChild(p),p},t.exports.isElementPresent=u},function(t,e,r){"use strict";t.exports=async(t,...e)=>{!function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t);try{return[null,await t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const{promisify:n}=r(42),o=r(2),i=()=>{},s=(t,e,r)=>{t.addEventListener(e,n=>{r(n),t.removeEventListener(e,r)})},a=async t=>{switch(function(t){let e,r="";"string"==typeof t&&(e=t.lastIndexOf("."),~e&&(r=t.substr(e)));return r}(t)){case".js":return await a.js(t);case".css":return await a.css(t);case".json":return await a.json(t);default:return await a.ajax(t)}};function u(t){if(!("string"==typeof t))return"";~t.indexOf(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")}a.onerror=i,a.onload=i,a.addLoadListener=t=>{a.onload=t},a.addErrorListener=t=>{a.onerror=t},t.exports=a,a.js=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("script",{id:r,src:t}),s(n,"load",t=>{e(null,t),a.onload()}),s(n,"error",r=>{e(r),document.body.removeChild(n),a.onerror(r,t)})}),a.css=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("link",{id:u(t),rel:"stylesheet",href:t,parent:document.head}),n.addEventListener("load",t=>{e(null,t),a.onload()}),n.addEventListener("error",r=>{e(r),document.head.removeChild(n),a.onerror(r,t)})}),a.ajax=n((t,e)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.addEventListener("load",()=>{if(r.status>=200&&r.status<400){const t=r.responseText;e(null,t),a.onload()}}),r.addEventListener("error",t=>{a.onerror(t),e(t)}),r.send()}),a.json=n((t,e)=>{a.ajax(t,(t,r)=>{let n;t||(n=JSON.parse(r)),e(t,n)})}),a.series=async t=>{const e=t.shift();e&&(await a(e),await a.series(t))},a.parallel=async t=>{const e=t.map(a);return await Promise.all(e)},a.getIdBySrc=u},function(t,e,r){!function(e){"use strict";function r(){var t=Array.prototype.slice,e=function(e){var r,n="function"==typeof e,o=t.call(arguments,1);return n&&(r=e.apply(null,o)),r};return e.with=function(t){var e=Array.prototype.slice,r=e.call(arguments,1);return function(){var n=e.call(arguments),o=r.concat(n);return t.apply(null,o)}},e.ret=function(){var r=t.call(arguments);return r.unshift(e),e.with.apply(null,r)},e.if=function(t,r,n){t?e(r):e(n,r)},e.ifExist=function(t,e,r){var n=t&&t[e];n&&(n=n.apply(t,r))},e.parallel=function(r,n){var o,i,s="could not be empty!",a=[],u=!1,c=[],l=0,f=0,h=(o=r,i=new RegExp("\\s([a-zA-Z]+)"),{}.toString.call(o).match(i)[1].toLowerCase());if(!r)throw Error("funcs "+s);if(!n)throw Error("callback "+s);switch(h){case"array":f=r.length,r.forEach((function(t,r){e(t,(function(){p(r,arguments)}))}));break;case"object":a=Object.keys(r),f=a.length,a.forEach((function(t){var n=r[t];e(n,(function(){p(t,arguments)}))}))}function p(e,r){var o,i=t.call(r,1),s=r[0],a=i.length;o=++l===f,s||(c[e]=a>=2?i:i[0]),u||!s&&!o||(u=!0,"array"===h?n.apply(null,[s].concat(c)):n(s,c))}},e.series=function(t,r){var n,o=t.length;if(!Array.isArray(t))throw Error("funcs should be array!");n=t.shift(),e(n,(function(n){(function(t){var n;return--o&&!t||(n=!0,e(r,t)),n})(n)||e.series(t,r)}))},e.each=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));o.length?e.parallel(o,n):n()},e.eachSeries=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));if("function"!=typeof n)throw Error("callback should be function");o.length?e.series(o,n):n()},e.try=function(t){var e;try{e=t()}catch(t){e=t}return e},e}t.exports?t.exports=new r:e.exec=new r}(this)},function(t,e,r){"use strict";const n=r(12),o=r(0),i=r(7),{encode:s}=r(17),{btoa:a}=r(26),u=o((function(t,e,r){const n="asc"===e?"↑":"↓";return t!==r||"name"===t&&"asc"===e?r:`${r}${n}`})),c="/fs",l=i();function f(t,e,r){if(!t)throw Error("url could not be empty!");if(!r)throw Error("template could not be empty!");const o=["/",...t.split("/").slice(1,-1)],i=[],s=o.length;let a="/";for(let t=0;t<s;t++){const u=o[t],c=t===s-1;if(t&&(a+=u+"/"),t&&c){i.push(u+"/");continue}const l=t?"/":"";i.push(n(r,{path:a,name:u,slash:l,prefix:e}))}return i.join("")}l("/"),t.exports.FS=c,t.exports.apiURL="/api/v1",t.exports.MAX_FILE_SIZE=512e3,t.exports.getHeaderField=u,t.exports.getPathLink=f,t.exports.getDotDot=m,t.exports.formatMsg=(t,e,r)=>((e=e||"")&&(e='("'+e+'")'),t+": "+(r=r||"ok")+e),t.exports.getTitle=t=>{t=t||{};const{path:e=l(),name:r}=t;return[r||"Cloud Commander",e].filter(Boolean).join(" - ")};const h=t=>`data-name="js-file-${a(encodeURI(t))}" `;function p(t){return{...t,date:t.date||"--.--.----",owner:t.owner||"root",size:g(t)}}function d(t){return"directory"===t?"":'target="_blank" '}function g(t){let{size:e,type:r}=t;return"directory"===r?"&lt;dir&gt;":/link/.test(r)?"&lt;link&gt;":e}function m(t){const e=t.substr(t,t.lastIndexOf("/")),r=e.substr(e,e.lastIndexOf("/"));return r||"/"}t.exports.buildFromJSON=t=>{const{prefix:e,template:r,sort:o="name",order:i="asc"}=t,a=r.file,g=r.link,y=t.data,w=s(y.path),{files:v}=y,b=f(w,e,r.pathLink);let x=n(r.path,{link:e+c+w,fullPath:w,path:b});const C=u(o,i),E=C("name"),A=C("size"),P=C("date"),k=n(a,{tag:"div",attribute:'data-name="js-fm-header" ',className:"fm-header",type:"",name:E,size:A,date:P,owner:"owner",mode:"mode"});if(l(w),x+=k+'<ul data-name="js-files" class="files">',"/"!==w){const t=m(w),o=e+c+t,i=n(r.link,{link:o,title:"..",name:".."}),s='draggable="true" '+h("..");x+=n(r.file,{tag:"li",attribute:s,className:"",type:"directory",name:i,size:"&lt;dir&gt;",date:"--.--.----",owner:".",mode:"--- --- ---"})}return x+=v.map(p).map(t=>{const r=s(t.name),o=e+c+w+r,{type:i,mode:u,date:l,owner:f,size:p}=t,m=n(g,{link:o,title:r,name:r,attribute:d(t.type)}),y=h(t.name);return n(a,{tag:"li",attribute:'draggable="true" '+y,className:"",type:i,name:m,size:p,date:l,owner:f,mode:u})}).join(""),x+="</ul>",x},t.exports._getSize=g},function(t,e,r){"use strict";t.exports=t=>{const e={value:t};return(...t)=>{const[r]=t;return t.length?(e.value=r,r):e.value}}},function(t,e,r){"use strict";const n=t=>(...e)=>(...r)=>t(...e,...r);t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t),e.length?n(t)(...e):n(t))},function(t,e,r){"use strict";const n=r(5);t.exports.escapeRegExp=t=>("string"==typeof t&&(t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),t),t.exports.getRegExp=t=>{const e="^"+t.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?")+"$";return RegExp(e)},t.exports.exec=n,t.exports.getExt=t=>{if(!("string"==typeof t))return"";const e=t.lastIndexOf(".");return~e?t.substr(e):""},t.exports.findObjByNameInArr=(t,e)=>{let r;if(!Array.isArray(t))throw Error("array should be array!");if("string"!=typeof e)throw Error("name should be string!");return t.some(t=>{const n=t.name===e,o=Array.isArray(t);return n?(r=t,n):o?t.some(t=>{const n=t.name===e;return n&&(r=t.data),n}):n}),r},t.exports.time=t=>{n.ifExist(console,"time",[t])},t.exports.timeEnd=t=>{n.ifExist(console,"timeEnd",[t])}},function(t,e,r){"use strict";const n=r(9),o=r(1),i=r(18),s=r(21),a=r(51),u=r(29),c=r(53),l=t.exports,f={...c,...u,...l},h={};f.Images=o,f.load=r(14),f.Files=r(15),f.RESTful=i,f.IO=r(27),f.Storage=s,f.Dialog=r(11),f.CurrentInfo=h,t.exports=f,f.uploadDirectory=r(54),f.Buffer=r(31),f.Events=r(16);const p=r(65),d=r(66),g={"js-left":null,"js-right":null};async function m(t){const{Dialog:e}=f,r=f.getCurrentDirPath(),n="New "+t||!1,o=(()=>{const t=f.getCurrentName();return".."===t?"":t})(),[s,a]=await e.prompt(n,o);if(s)return;const u=`${r}${a}`;"directory"===t?await i.createDirectory(u):await i.write(u),await CloudCmd.refresh({currentName:a})}t.exports.loadRemote=(t,e,r)=>(p(t,e,r),f),t.exports.loadSocket=t=>(f.loadRemote("socket",{name:"io"},t),f),t.exports.promptNewDir=async function(){await m("directory")},t.exports.promptNewFile=async()=>{await m("file")},t.exports.getCurrentDirName=()=>{const t=f.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=f.getCurrentDirPath(t),r=f.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"!==e?e.slice(0,n):e},t.exports.getNotCurrentDirPath=()=>{const t=f.getPanel({active:!1});return f.getCurrentDirPath(t)},t.exports.getSelectedFiles=()=>{const t=f.getPanel(),e=f.getByClassAll("selected-file",t);return Array.from(e)},t.exports.unselectFiles=t=>{t=t||f.getSelectedFiles(),Array.from(t).forEach(f.toggleSelectedFile)},t.exports.getActiveFiles=()=>{const t=f.getCurrentFile(),e=f.getSelectedFiles(),r=f.getCurrentName(t);return e.length||".."===r?e:[t]},t.exports.getCurrentDate=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-date",e).textContent},t.exports.getCurrentSize=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-size",e).textContent.replace(/^<|>$/g,"")},t.exports.loadCurrentSize=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e);if(o.show.load(),".."===name)return;const[,n]=await i.read(r+"?size");return f.setCurrentSize(n,e),o.hide(),e},t.exports.loadCurrentHash=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e),[,n]=await i.read(r+"?hash");return n},t.exports.setCurrentSize=(t,e)=>{const r=e||f.getCurrentFile();f.getByDataName("js-size",r).textContent=t},t.exports.getCurrentMode=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-mode",e).textContent},t.exports.getCurrentOwner=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-owner",e).textContent},t.exports.getCurrentData=async t=>{const{Dialog:e}=f,r=f.CurrentInfo,n=t||f.getCurrentFile(),o=f.getCurrentPath(n),a=f.isCurrentIsDir(n);if(".."===r.name)return e.alert.noFiles(),[Error("No Files")];if(a)return await i.read(o);const[u,c]=await f.checkStorageHash(o);if(!u)return[Error("Can't get hash of a file")];if(c===u)return[null,await s.get(o+"-data")];const[l,h]=await i.read(o);if(l)return[l,null];const{length:p}=h;return c&&p<1073741824&&await f.saveDataToStorage(o,h,u),[null,h]},t.exports.getRefreshButton=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.getPanel();return f.getByDataName("js-refresh",t)},t.exports.selectFile=t=>((t||f.getCurrentFile()).classList.add("selected-file"),l),t.exports.unselectFile=t=>((t||f.getCurrentFile()).classList.remove("selected-file"),l),t.exports.toggleSelectedFile=t=>{const e=t||f.getCurrentFile();return".."===f.getCurrentName(e)||e.classList.toggle("selected-file"),l},t.exports.toggleAllSelectedFiles=()=>(f.getAllFiles().map(f.toggleSelectedFile),l),t.exports.selectAllFiles=()=>(f.getAllFiles().map(f.selectFile),l),t.exports.getAllFiles=()=>{const t=f.getPanel(),e=f.getFiles(t),r=f.getCurrentName(e[0]),n=".."===r?1:0;return Array.from(e).slice(n)},t.exports.expandSelection=()=>{const{files:t}=h;d("expand",t)},t.exports.shrinkSelection=()=>{const{files:t}=h;d("shrink",t)},t.exports.setHistory=(t,e,r)=>{const n=window.history,{prefix:o}=CloudCmd;return r=o+r,n&&history.pushState(t,e,r),n},t.exports.isSelected=t=>!!t&&f.isContainClass(t,"selected-file"),t.exports.getCurrentLink=t=>{const e=t||f.getCurrentFile();return f.getByTag("a",e)[0]},t.exports.getFilenames=t=>{if(!t)throw Error("AllFiles could not be empty");const e=t[0]||f.getCurrentFile(),r=f.getCurrentName(e),n=Array.from(t);".."===r&&n.shift();return n.map(t=>f.getCurrentName(t))},t.exports.checkStorageHash=async t=>{const e=t+"-hash";if("string"!=typeof t)throw Error("name should be a string!");const[r,n]=await Promise.all([f.loadCurrentHash(),s.get(e)]);return[r,n]},t.exports.saveDataToStorage=async(t,e,r)=>{if(f.isCurrentIsDir())return;r=r||await f.loadCurrentHash();const n=t+"-hash",o=t+"-data";return await s.set(n,r),await s.set(o,e),r},t.exports.getFM=()=>f.getPanel().parentElement,t.exports.getPanelPosition=t=>(t=t||f.getPanel()).dataset.name.replace("js-",""),t.exports.getPanel=t=>{let e,r,n,o="js-";const i=f.getCurrentFile();if(i?(e=i.parentElement,r=e.parentElement,n="js-left"===r.getAttribute("data-name")):r=f.getByDataName("js-left"),t&&!t.active&&(o+=n?"right":"left",r=f.getByDataName(o)),window.innerWidth<CloudCmd.MIN_ONE_PANEL_WIDTH&&(r=f.getByDataName("js-left")),!r)throw Error("can not find Active Panel!");return r},t.exports.getFiles=t=>f.getByDataName("js-files",t).children||[],t.exports.showPanel=t=>{const e=f.getPanel({active:t});return!!e&&(f.show(e),!0)},t.exports.hidePanel=t=>{const e=f.getPanel({active:t});return!!e&&f.hide(e)},t.exports.remove=(t,e)=>((e||document.body).removeChild(t),f),t.exports.deleteCurrent=t=>{t||f.getCurrentFile();const e=null==t?void 0:t.parentElement,r=f.getCurrentName(t);if(t&&".."!==r){const r=t.nextSibling,n=t.previousSibling;f.setCurrentFile(r||n),e.removeChild(t)}},t.exports.deleteSelected=t=>{(t=t||f.getSelectedFiles())&&t.map(f.deleteCurrent)},t.exports.renameCurrent=a,t.exports.scrollIntoViewIfNeeded=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&t.scrollIntoViewIfNeeded&&t.scrollIntoViewIfNeeded(e)},t.exports.scrollByPages=(t,e)=>{const r=(null==t?void 0:t.scrollByPages)&&e;return r&&t.scrollByPages(e),r},t.exports.changePanel=()=>{const t=h;let e=f.getPanel();CloudCmd.emit("passive-dir",t.dirPath);const r=f.getPanel({active:!1});let n=f.getCurrentName();const o=f.getFiles(r);let i,s,a=e.getAttribute("data-name");return g[a]=n,e=r,a=e.getAttribute("data-name"),n=g[a],n&&(s=f.getCurrentByName(n,e),s&&(i=s.parentElement)),i&&i.parentElement||(s=f.getCurrentByName(n,e),s||([s]=o)),f.setCurrentFile(s,{history:!0}),CloudCmd.emit("active-dir",t.dirPath),f},t.exports.getPackerExt=t=>"zip"===t?".zip":".tar.gz",t.exports.goToDirectory=async()=>{const{Dialog:t}=f,{dirPath:e}=h,[r,n=e]=await t.prompt("Go to directory:",e);r||await CloudCmd.loadDir({path:n})},t.exports.duplicatePanel=async()=>{const t=h,{isDir:e}=t,r=t.panelPassive,n=!t.isOnePanel,o=(e=>e?t.path:t.dirPath)(e);await CloudCmd.loadDir({path:o,panel:r,noCurrent:n})},t.exports.swapPanels=async()=>{const t=h,{panel:e,files:r,element:n,panelPassive:o}=t,i=f.getCurrentDirPath(),s=f.getNotCurrentDirPath();let a=r.indexOf(n);await CloudCmd.loadDir({path:i,panel:o,noCurrent:!0}),await CloudCmd.loadDir({path:s,panel:e});const u=t.files.length-1;a>u&&(a=u);const c=t.files[a];f.setCurrentFile(c)},t.exports.CurrentInfo=h,t.exports.updateCurrentInfo=t=>{const e=f.CurrentInfo,r=t||f.getCurrentFile(),o=r.parentElement,i=f.getPanel({active:!1}),s=f.getFiles(i),a=f.getCurrentName(r);e.dir=f.getCurrentDirName(),e.dirPath=f.getCurrentDirPath(),e.parentDirPath=f.getParentDirPath(),e.element=r,e.ext=n.getExt(a),e.files=Array.from(o.children),e.filesPassive=Array.from(s),e.first=o.firstChild,e.getData=f.getCurrentData,e.last=o.lastChild,e.link=f.getCurrentLink(r),e.mode=f.getCurrentMode(r),e.name=a,e.path=f.getCurrentPath(r),e.panel=o.parentElement||f.getPanel(),e.panelPassive=i,e.size=f.getCurrentSize(r),e.isDir=f.isCurrentIsDir(),e.isSelected=f.isSelected(r),e.panelPosition=f.getPanel().dataset.name.replace("js-",""),e.isOnePanel=e.panel.getAttribute("data-name")===e.panelPassive.getAttribute("data-name")}},function(t,e,r){"use strict";const n=r(3),{alert:o,prompt:i,confirm:s,progress:a}=r(50),u="Cloud Commander";t.exports.alert=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return o(u,...e,{cancel:!1})},t.exports.prompt=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n(i,u,...e)},t.exports.confirm=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n(s,u,...e)},t.exports.progress=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return a(u,...e)},t.exports.alert.noFiles=()=>o(u,"No files selected!",{cancel:!1})},function(t,e,r){"use strict";t.exports=(t,e)=>{!function(t,e){if("string"!=typeof t)throw Error("template should be a string!");if("object"!=typeof e)throw Error("data should be an object!")}(t,e);let r=t;return Object.keys(e).forEach(t=>{const n="{{ "+t+" }}",o=(i=e[t],()=>i);for(var i;r.includes(n);)r=r.replace(n,o)}),r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r}},function(t,e,r){"use strict";r.r(e),r.d(e,"promisify",(function(){return n}));function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return new r((r,n)=>{o.push((function(t){if(t)return n(t);for(var o=arguments.length,i=Array(1<o?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((t,r)=>{var n=e[r];n&&(a[n]=t)}),r(a)})),t.apply(this,o)})}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";const n=r(19),o=r(49),i=r(20),s=r(5),a=r(1);t.exports.getIdBySrc=function(t){if(!n.string(t))return;t.includes(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")},t.exports.ajax=t=>{const e=t,r=n.object(e.data),i=n.array(e.data),u="arraybuffer"===n(e.data),c=e.type||e.method||"GET",{headers:l={}}=e,f=new XMLHttpRequest;f.open(c,e.url,!0);for(const t of Object.keys(l)){const e=l[t];f.setRequestHeader(t,e)}let h;e.responseType&&(f.responseType=e.responseType),h=!u&&r||i?o.stringify(e.data):e.data,f.onreadystatechange=t=>{const r=t.target;if(r.readyState!==r.DONE)return;a.clearProgress();const n=r.getResponseHeader("content-type");if(200!==r.status)return s(e.error,r);const i="text"!==e.dataType,u=n.includes("application/json");let c=r.response;n&&u&&i&&(c=o.parse(r.response)||r.response),s(e.success,c,r.statusText,r)},f.send(h)},t.exports.put=(t,e)=>{const r=i(),n=new XMLHttpRequest;return t=encodeURI(t).replace(/#/g,"%23"),n.open("put",t,!0),n.upload.onprogress=t=>{if(!t.lengthComputable)return;const e=t.loaded/t.total*100,n=Math.round(e);r.emit("progress",n)},n.onreadystatechange=()=>{if(!(n.readyState===n.DONE))return;if(200===n.status)return r.emit("progress",100),r.emit("end");const t=Error(n.responseText);r.emit("error",t)},n.send(e),r}},function(t,e,r){"use strict";const n=r(19),{promisify:o}=r(13),i=r(14),s=r(18),a={},u=function(t){let e;return r=>{e||(e=!0,setTimeout(()=>{e=!1,r()},t))}}(2e3);t.exports.get=function t(e){const r=n(e);if(function(t){if(!t)throw Error("name could not be empty!")}(e),"string"===r)return function(t){const e=RegExp("file|path|link|pathLink|media|view/media-tmpl|config-tmpl|upload"),r=RegExp("config|modules"),n=e.test(t),o=r.test(t);if(!n&&!o)return function(t){throw Error("Wrong file name: "+t)}(t);if("config"===t)return l();const i=function(t,e,r){let n;const o=RegExp("view/media-tmpl|config-tmpl|upload").test(t);e?(n=o?"/tmpl/"+t.replace("-tmpl",""):"/tmpl/fs/"+t,n+=".hbs"):r&&(n="/json/"+t+".json");return n}(t,n,o);return c(i)}(e);if("array"===r)return Promise.all(e.map(t))};const c=o((t,e)=>{const{prefix:r}=CloudCmd;a[t]||(a[t]=new Promise((e,n)=>{const o=r+t;i.ajax({url:o,success:e,error:n})})),a[t].then(t=>{e(null,t)},r=>{a[t]=null,e(r)})}),l=async()=>{let t;a.config||(a.config=()=>(t=!0,s.Config.read()));const[,e]=await a.config();return e&&(t=!1),u(()=>{t||(a.config=null)}),e}},function(t,e,r){"use strict";const n=r(19),o=r(64);t.exports=new function(){const t=this,e=t=>"touchstart"===t&&{passive:!0};function r(t,o,i,s){let a;const u=[t,o,i,s],c=n(t);switch(c){default:if(!c.endsWith("element"))throw Error("unknown eventName: "+c);r(u[1],u[0],i,s);break;case"string":a=n.function(o),a&&(i=o,o=null),o||(o=window),s(o,[t,i,e(t)]);break;case"array":for(const e of t)r(e,o,i,s);break;case"object":for(const e of Object.keys(t)){r(e,o,t[e],s)}}}function i(t){if(!t)throw Error("type could not be empty!")}this.add=(e,n,s)=>(i(e),r(e,n,s,(t,e)=>{const[r,n,i]=e;t.addEventListener(r,n,i),o.add(t,r,n)}),t),this.addOnce=(e,r,n)=>{const o=i=>{t.remove(e,r,o),n(i)};return n||(n=r,r=null),this.add(e,r,o),t},this.remove=(e,n,o)=>(i(e),r(e,n,o,(t,e)=>{t.removeEventListener(...e)}),t),this.removeAll=()=>{const t=o.get();for(const[e,r,n]of t)e.removeEventListener(r,n);o.clear()},this.addKey=function(){const e="keydown";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.rmKey=function(){const e="keydown";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.remove(...i)},this.addClick=function(){const e="click";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.rmClick=function(){const e="click";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.remove(...i)},this.addContextMenu=function(){const e="contextmenu";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.addError=function(){const e="error";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.addLoad=function(){const e="load";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)}}},function(t,e,r){"use strict";const n={"&lt;":"<","&gt;":">","&quot;":'"'},o=Object.keys(n);t.exports.encode=t=>{for(const e of o){const r=RegExp(n[e],"g");t=t.replace(r,e)}return t},t.exports.decode=t=>{for(const e of o){const r=n[e],o=RegExp(e,"g");t=t.replace(o,r)}return t}},function(t,e,r){"use strict";const n=r(3),{encode:o}=r(17),i=r(1),s=r(27),a=r(11),u=t=>async function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];const[u,c]=await n(t,...r);if(!u)return[u,c];const l=o(u.message);return i.show.error(l),a.alert(l),[u,c]};t.exports.delete=u(s.delete),t.exports.patch=u(s.patch),t.exports.write=u(s.write),t.exports.createDirectory=u(s.createDirectory),t.exports.read=u(s.read),t.exports.copy=u(s.copy),t.exports.pack=u(s.pack),t.exports.extract=u(s.extract),t.exports.move=u(s.move),t.exports.rename=u(s.rename),t.exports.Config={read:u(s.Config.read),write:u(s.Config.write)},t.exports.Markdown={read:u(s.Markdown.read),render:u(s.Markdown.render)}},function(t,e,r){"use strict";t.exports=n;for(const t of["null","arrayBuffer","file","array","object"])n[t]=o.bind(null,t);for(const t of["string","undefined","boolean","number","function"])n[t]=i.bind(null,t);function n(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t,e){return n(e)===t}function i(t,e){return typeof e===t}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){const r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){const r=this;return i(t,e),this.on(t,(function n(...o){e(...o),r.off(t,n)})),this},n.prototype.off=function(t,e){const r=this._all[t]||[];let n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t,...e){const r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];if(!r)return this;for(const t of r)t(...e);return this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){"use strict";const{parse:n,stringify:o}=JSON;t.exports.set=async(t,e)=>{localStorage.setItem(t,e)},t.exports.setJson=async(t,e)=>{localStorage.setItem(t,o(e))},t.exports.get=async t=>localStorage.getItem(t),t.exports.getJson=async t=>{const e=localStorage.getItem(t);return n(e)},t.exports.clear=()=>{localStorage.clear()},t.exports.remove=t=>{localStorage.removeItem(t)}},function(t,e,r){"use strict";r(173);const n=r(2),o=r(85),i=r(87),s=(t,...e)=>(t=>"function"==typeof t)(t)&&t(...e);t.exports=function t(e,r,a){if(!(this instanceof t))return new t(e,r,a);const u=new i;let c,l,f,h,p={};a?(c=h=e,p=r):r?(c=h=e,a=r):(c=document.body,h=window,a=e);const d={},g=function(t){const e=o(t,d,p);return n("ul",{dataName:"js-menu",className:"menu menu-hidden",innerHTML:e,parent:c,uniq:!1})}(a);function m(t,e){let r=u.getItem(t),n=u.isName(r),o=u.isItem(r),i=u.isSubMenu(r);return n&&o||(r=document.elementFromPoint(e.x,e.y),i=u.isSubMenu(r),n=u.isName(r),o=u.isItem(r)),{name:n,item:o,sub:i}}function y(t,e){t.stopPropagation();const{afterClick:r,beforeClick:n,beforeHide:o,afterHide:i,name:a}=p,c=t.target,l=e||m(c,{x:t.clientX,y:t.clientY}),f=s(n,a);if(l.sub)return t.preventDefault();if(s(o),x(),s(i),!f&&(l.name||l.item)){const t=function(t){const e=u.getName(t);if(!e)return null;const r=e.getAttribute("data-menu-path");return d[r]}(c);s(t),s(r)}}function w(t){t.preventDefault();const e=t.target,r=t.clientX,n=t.clientY,o=m(e,{x:r,y:n});if(o.name||o.item||o.sub)return y(t,o);x(),b(r,n)}function v(t,e){const r="number"==typeof t,n="number"==typeof e,o=function(){if(!l){const{height:t}=getComputedStyle(g);l=parseInt(t,10)}return l}(),i=function(){if(!f){const{width:t}=getComputedStyle(g);f=parseInt(t,10)}return f}(),s=window.innerHeight;window.innerWidth<i+t&&(t-=i)<0&&(t=0),s<o+e&&(e-=o)<0&&(e=0),r&&(g.style.left=t+"px"),n&&(g.style.top=e-14+"px")}function b(t,e){const{name:r,beforeShow:n,afterShow:o}=p,i={x:t,y:e,name:r},a=s(n,i);(a||!1!==a)&&(g.classList.remove("menu-hidden"),v(i.x,i.y),s(o,i))}function x(){s(p.beforeClose)||g.classList.add("menu-hidden")}h.addEventListener("click",y),this.show=b,this.hide=x,this.addContextMenuListener=()=>{h.addEventListener("contextmenu",w)},this.removeContextMenuListener=()=>{h.addEventListener("contextmenu",w)},this.remove=function(){h.removeEventListener("click",y),h.removeEventListener("contextmenu",w),c.removeChild(g)}}},function(t,e,r){"use strict";t.exports=t=>document.querySelector(`[data-name="modal-${t}"]`)},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}o.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];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(t,e,r){"use strict";(function(e){t.exports.btoa=t=>"function"==typeof btoa?btoa(t):e.from(t).toString("base64"),t.exports.atob=t=>"function"==typeof atob?atob(t):e.from(t,"base64").toString("binary")}).call(this,r(43).Buffer)},function(t,e,r){"use strict";const{FS:n}=r(6),o=r(48),i={top:!0};t.exports.delete=async(t,e)=>await o({method:"DELETE",url:n+t,data:e,imgPosition:{top:Boolean(e)}}),t.exports.patch=async(t,e)=>await o({method:"PATCH",url:n+t,data:e,imgPosition:i}),t.exports.write=async(t,e)=>await o({method:"PUT",url:n+t,data:e,imgPosition:i}),t.exports.createDirectory=async t=>await o({method:"PUT",url:`${n}${t}?dir`,imgPosition:i}),t.exports.read=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";const r=!t.includes("?");return await o({method:"GET",url:n+t,notLog:r,dataType:e})},t.exports.copy=async(t,e,r)=>await o({method:"PUT",url:"/copy",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.pack=async t=>await o({method:"PUT",url:"/pack",data:t}),t.exports.extract=async t=>await o({method:"PUT",url:"/extract",data:t}),t.exports.move=async(t,e,r)=>await o({method:"PUT",url:"/move",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.rename=async(t,e)=>await o({method:"PUT",url:"/rename",data:{from:t,to:e},imgPosition:i}),t.exports.Config={read:async()=>await o({method:"GET",url:"/config",imgPosition:i,notLog:!0}),write:async t=>await o({method:"PATCH",url:"/config",data:t,imgPosition:i})},t.exports.Markdown={read:async t=>await o({method:"GET",url:"/markdown"+t,imgPosition:i,notLog:!0}),render:async t=>await o({method:"PUT",url:"/markdown",data:t,imgPosition:i,notLog:!0})}},function(t,e,r){"use strict";t.exports=(t,...e)=>{try{return[null,t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const{atob:n,btoa:o}=r(26),i=r(2),{encode:s,decode:a}=r(17),{getTitle:u,FS:c}=r(6);let l;const f=t=>null==t?void 0:t.replace(" ","&nbsp;"),h=t=>null==t?void 0:t.replace("&nbsp;"," ");t.exports._CURRENT_FILE="current-file",t.exports.setCurrentName=(t,e)=>{const r=DOM.CurrentInfo,{link:n}=r,{prefix:o}=CloudCmd,i=o+c+r.dirPath,a=s(t);return n.title=a,n.href=i+a,n.innerHTML=a,e.setAttribute("data-name",p(t)),CloudCmd.emit("current-file",e),n},t.exports.getCurrentName=t=>{const e=t||DOM.getCurrentFile();return e?d(e.getAttribute("data-name")):""};const p=t=>"js-file-"+o(encodeURI(t)),d=t=>(t=t.replace("js-file-",""),h(decodeURI(n(t))));t.exports._parseNameAttribute=d;const g=(t,e)=>(e=e.replace(RegExp("^"+t+c),""),a(h(e)));t.exports._parseHrefAttribute=g,t.exports.getCurrentDirPath=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DOM.getPanel();const e=DOM.getByDataName("js-path",t);return e.textContent},t.exports.getCurrentPath=t=>{const e=t||DOM.getCurrentFile(),[r]=DOM.getByTag("a",e),{prefix:n}=CloudCmd;return g(n,r.getAttribute("href"))},t.exports.getCurrentDirName=()=>{const t=DOM.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=DOM.getCurrentDirPath(t),r=DOM.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"===e?e:e.slice(0,n)},t.exports.getNotCurrentDirPath=()=>{const t=DOM.getPanel({active:!1});return DOM.getCurrentDirPath(t)},t.exports.getCurrentFile=()=>DOM.getByClass("current-file"),t.exports.getCurrentByName=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DOM.CurrentInfo.panel;const r="js-file-"+o(encodeURI(f(t)));return DOM.getByDataName(r,e)},t.exports.setCurrentFile=(t,e)=>{const r=e,n=DOM.getCurrentFile();if(!t)return DOM;let o="";n&&(o=DOM.getCurrentDirPath(),function(t){DOM.isCurrentFile(t)&&t.classList.remove("current-file")}(n)),t.classList.add("current-file");const i=DOM.getCurrentDirPath(),s=CloudCmd.config("name");if(i!==o&&(DOM.setTitle(u({name:s,path:i})),!r||r.history)){const t="/"===i?i:c+i;DOM.setHistory(t,null,t)}return DOM.scrollIntoViewIfNeeded(t,!0),CloudCmd.emit("current-file",t),CloudCmd.emit("current-path",i),CloudCmd.emit("current-name",DOM.getCurrentName(t)),DOM},this.setCurrentByName=t=>{const e=DOM.getCurrentByName(t);return DOM.setCurrentFile(e)},t.exports.getCurrentByPosition=t=>{let{x:e,y:r}=t;const n=(t=>{const{tagName:e}=t;return/A|SPAN|LI/.test(e)?"A"===e?t.parentElement.parentElement:"SPAN"===e?t.parentElement:t:null})(document.elementFromPoint(e,r));return n&&"LI"!==n.tagName?null:n},t.exports.isCurrentFile=t=>!!t&&DOM.isContainClass(t,"current-file"),t.exports.setTitle=t=>(l||(l=DOM.getByTag("title")[0]||i("title",{innerHTML:t,parent:document.head})),l.textContent=t,DOM),t.exports.isCurrentIsDir=t=>{const e=t||DOM.getCurrentFile(),r=DOM.getCurrentPath(e),n=DOM.getCurrentType(e),o=/\.zip$/.test(r);return/^directory(-link)?/.test(n)||o},t.exports.getCurrentType=t=>{const e=t||DOM.getCurrentFile();return DOM.getByDataName("js-type",e).className.split(" ").pop()}},function(t,e){"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}}},function(t,e,r){"use strict";const n=r(63),o=r(21),i=r(10);t.exports=new function(){const t=i.CurrentInfo;function e(t){i.Dialog.alert(t)}function r(){const t=i.getActiveFiles();return i.getFilenames(t)}function s(t){if(CloudCmd.config("buffer"))return t();e("Buffer disabled in config!")}async function a(){await o.remove("copy"),await o.remove("cut"),function(){const t=i.getByClassAll("cut-file");for(const e of t)e.classList.remove("cut-file")}()}return{cut:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(!function(){const t=i.getActiveFiles();for(const e of t)e.classList.add("cut-file")}(),await o.setJson("cut",{from:n,names:e}))})),copy:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(await o.remove("cut"),await o.setJson("copy",{from:n,names:e}))})),clear:s.bind(null,a),paste:s.bind(null,(async function(){const[r,i,s]=await async function(){const[t,e,r]=await n([o.getJson("copy"),o.getJson("cut")]);return[t,e,r]}();if(r||!i&&!s)return e(r||"Buffer is empty!");const u=i?"copy":"move",c=i||s,{Operation:l}=CloudCmd,f=t.dirPath;if(c.from===f)return e("Path is same!");l.show(u,{...c,to:f}),await a()}))}}},function(t,e,r){"use strict";t.exports.addSlashToEnd=t=>{if(!t)throw Error("path could not be empty!");return"/"===t[t.length-1]?t:t+"/"},t.exports.size=t=>{const e=1073741824,r=1024*e,n=1024*r;return"number"==typeof t?t<1024?t+"b":t<1048576?(t/1024).toFixed(2)+"kb":t<e?(t/1048576).toFixed(2)+"mb":t<r?(t/e).toFixed(2)+"gb":t<n?(t/r).toFixed(2)+"tb":(t/n).toFixed(2)+"pb":t},t.exports.permissions=r(68)},function(t,e){t.exports=function(t){for(var e=t.split(r),n=e.length,o=new Array(n),i=0;i<n;i++){var s=e[i];""!==s&&(o[i]=s[0].toUpperCase()+s.slice(1))}return o.join("")};var r=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/},,function(t,e,r){"use strict";t.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();const r=document.execCommand("copy");if(document.body.removeChild(e),r)return;return Promise.reject()}}},function(t,e,r){"use strict";t.exports={BACKSPACE:8,TAB:9,ENTER:13,CAPSLOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,ZERO:48,SEMICOLON:52,COLON:54,A:65,C:67,D:68,G:71,J:74,K:75,M:77,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,X:88,Z:90,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,EQUAL:187,HYPHEN:189,DOT:190,SLASH:191,TRA:192,BACKSLASH:220,BRACKET_CLOSE:221}},function(t,e,r){"use strict";const n=[()=>()=>{},t=>(...e)=>t(...e),(t,e)=>(...r)=>t(e(...r)),(t,e,r)=>(...n)=>t(e(r(...n))),(t,e,r,n)=>(...o)=>t(e(r(n(...o)))),(t,e,r,n,o)=>(...i)=>t(e(r(n(o(...i))))),(t,e,r,n,o,i)=>(...s)=>t(e(r(n(o(i(...s)))))),(t,e,r,n,o,i,s)=>(...a)=>t(e(r(n(o(i(s(...a)))))))];t.exports=(...t)=>t.length<n.length?n[t.length](...t):function(t){return(...e)=>{let r=t.length-1,n=t[r](...e);for(;--r;)n=t[r](n);return n}}(t)},function(t,e,r){"use strict";const{eachSeries:n}=r(5),o=r(8),i=r(14),s=r(1),{alert:a}=r(11),{FS:u}=r(6),{getCurrentDirPath:c}=r(10),l=o((function(t,e,r,n){const{name:o}=r,a=t+o,{prefixURL:c}=CloudCmd,l=c+u;i.put(l+a,r).on("error",h).on("end",n).on("progress",t=>{const r=(t=>100/t)(e),n=0*r+function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.round(t*r/e)}(t,100,r);s.show.load("top"),s.setProgress(Math.round(n))})})),f=o((function(t){CloudCmd.refresh({currentName:t})}));function h(t){let{message:e}=t;a(e)}t.exports=(t,e)=>{e||(e=t,t=c());const r=e.length;if(!r)return;const o=Array.from(e),{name:i}=e[0];n(o,l(t,r),f(i))}},function(t,e,r){"use strict";const n=r(2),o=r(23);t.exports=(t,e)=>{if(o("title"))return void(o("title-text").textContent=t);const r=n("div",{className:"modal-title",dataName:"modal-title",parent:e});n("span",{parent:r,textContent:t,className:"modal-title-text",dataName:"modal-title-text"})}},function(t,e,r){var n=r(129),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var s=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var u=s[a].channels,c=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:u}),Object.defineProperty(s[a],"labels",{value:c})}s.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,s=Math.min(n,o,i),a=Math.max(n,o,i),u=a-s;return a===s?e=0:n===a?e=(o-i)/u:o===a?e=2+(i-n)/u:i===a&&(e=4+(n-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),r=(s+a)/2,[e,100*(a===s?0:r<=.5?u/(a+s):u/(2-a-s)),100*r]},s.rgb.hsv=function(t){var e,r,n,o,i,s=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(s),r=f(a),n=f(u),s===c?o=n-r:a===c?o=1/3+e-n:u===c&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},s.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[s.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(r,n))),100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},s.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},s.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,s,a=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=n[u],l=(i=t,s=c,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));l<a&&(a=l,r=u)}return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){var e=s.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(t){var e,r,n,o,i,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return[i=255*u,i,i];e=2*u-(r=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(n=s+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[c]=255*i;return o},s.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}},s.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-i)*s,r=i*a,[o,100*(r=(r/=(e=(2-i)*a)<=1?e:2-e)||0),100*(n/=2)]},s.hwb.rgb=function(t){var e,r,n,o,i,s,a,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(n=1-n),o=c+n*((r=1-l)-c),e){default:case 6:case 0:i=r,s=o,a=c;break;case 1:i=o,s=r,a=c;break;case 2:i=c,s=r,a=o;break;case 3:i=c,s=o,a=r;break;case 4:i=o,s=c,a=r;break;case 5:i=r,s=c,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},s.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,s=t[2]/100;return r=-.9689*o+1.8758*i+.0415*s,n=.0557*o+-.204*i+1.057*s,e=(e=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},s.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),s=Math.pow(e,3),a=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},s.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},s.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},s.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:s.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),s=Math.min(Math.min(r,n),o),a=i-s;return e=a<=0?0:i===r?(n-o)/a%6:i===n?2+(o-r)/a:4+(r-n)/a+4,e/=6,[360*(e%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,o=0;return(n=r<.5?2*e*r:2*e*(1-r))<1&&(o=(r-.5*n)/(1-n)),[t[0],100*n,100*o]},s.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},s.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],s=e%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},s.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.promisify=n;function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return new r((function(r,o){i.push((function(t){if(t)return o(t);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((function(t,r){var n=e[r];n&&(a[n]=t)})),r(a)})),t.apply(n,i)}))}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";(function(t){
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,r){"use strict";const n=(t,...e)=>{if(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),e.length>=t.length)return t(...e);const r=(...r)=>n(t,...e,...r),o=t.length-e.length-1;return(t=>[function(e){return t(...arguments)},function(e,r){return t(...arguments)},function(e,r,n){return t(...arguments)},function(e,r,n,o){return t(...arguments)},function(e,r,n,o,i){return t(...arguments)}])(r)[o]||r};t.exports=n},function(t,e,r){"use strict";const n=r(2),o=t.exports;function i(){return function(){const t=document.createElementNS;if(!t)return!1;const e=t.bind(document),r=e("http://www.w3.org/2000/svg","animate").toString();return/SVGAnimate/.test(r)}()?"-svg":"-gif"}function s(){return n("span",{id:"js-status-image",className:"icon",dataName:"progress",notAppend:!0})}function a(t,e){const r=o.loading(),n=r.parentElement,i=DOM.getRefreshButton(e);let s;return"top"===t?s=i.parentElement:(s=DOM.getCurrentFile(),s=s?DOM.getByDataName("js-name",s):i.parentElement),(!n||n&&n!==s)&&s.appendChild(r),DOM.show(r),r}t.exports.get=s,t.exports.loading=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("loading",r),e.remove("error","hidden"),t},t.exports.error=()=>{const t=s(),{classList:e}=t,r="loading"+i();return e.add("error"),e.remove("hidden","loading",r),t},t.exports.show=a,t.exports.show.load=a,t.exports.show.error=function(t){const e=o.error();return DOM.show(e),e.title=t,e},t.exports.hide=()=>{const t=o.get();return DOM.hide(t),o},t.exports.setProgress=(t,e)=>{const r=o.get();return r?(r.setAttribute("data-progress",t+"%"),e&&(r.title=e),o):o},t.exports.clearProgress=()=>{const t=o.get();return t?(t.setAttribute("data-progress",""),t.title="",o):o}},function(t,e,r){"use strict";const n=r(0),o=n((t,e,r)=>t.setAttribute(r,e[r])),i=n((t,e,r)=>t[r]=e[r]),s=n((t,e)=>!t(e)),a=t=>t!=t.toLowerCase();function u(t){var e;if(t)return e=t,document.querySelector(`[data-name="${e}"]`)}t.exports=(t,e={})=>{const{dataName:r,notAppend:n,parent:c=document.body,uniq:l=!0,...f}=e,h=u(r);if(l&&h)return h;const p=document.createElement(t);return r&&(p.dataset.name=r),Object.keys(f).filter(a).map(i(p,e)),Object.keys(f).filter(s(a)).map(o(p,e)),n||c.appendChild(p),p},t.exports.isElementPresent=u},function(t,e,r){"use strict";t.exports=async(t,...e)=>{!function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t);try{return[null,await t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";const{promisify:n}=r(42),o=r(2),i=()=>{},s=(t,e,r)=>{t.addEventListener(e,n=>{r(n),t.removeEventListener(e,r)})},a=async t=>{switch(function(t){let e,r="";"string"==typeof t&&(e=t.lastIndexOf("."),~e&&(r=t.substr(e)));return r}(t)){case".js":return await a.js(t);case".css":return await a.css(t);case".json":return await a.json(t);default:return await a.ajax(t)}};function u(t){if(!("string"==typeof t))return"";~t.indexOf(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")}a.onerror=i,a.onload=i,a.addLoadListener=t=>{a.onload=t},a.addErrorListener=t=>{a.onerror=t},t.exports=a,a.js=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("script",{id:r,src:t}),s(n,"load",t=>{e(null,t),a.onload()}),s(n,"error",r=>{e(r),document.body.removeChild(n),a.onerror(r,t)})}),a.css=n((t,e)=>{const r=u(t);let n=document.getElementById(r);if(n)return e();n=o("link",{id:u(t),rel:"stylesheet",href:t,parent:document.head}),n.addEventListener("load",t=>{e(null,t),a.onload()}),n.addEventListener("error",r=>{e(r),document.head.removeChild(n),a.onerror(r,t)})}),a.ajax=n((t,e)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.addEventListener("load",()=>{if(r.status>=200&&r.status<400){const t=r.responseText;e(null,t),a.onload()}}),r.addEventListener("error",t=>{a.onerror(t),e(t)}),r.send()}),a.json=n((t,e)=>{a.ajax(t,(t,r)=>{let n;t||(n=JSON.parse(r)),e(t,n)})}),a.series=async t=>{const e=t.shift();e&&(await a(e),await a.series(t))},a.parallel=async t=>{const e=t.map(a);return await Promise.all(e)},a.getIdBySrc=u},function(t,e,r){!function(e){"use strict";function r(){var t=Array.prototype.slice,e=function(e){var r,n="function"==typeof e,o=t.call(arguments,1);return n&&(r=e.apply(null,o)),r};return e.with=function(t){var e=Array.prototype.slice,r=e.call(arguments,1);return function(){var n=e.call(arguments),o=r.concat(n);return t.apply(null,o)}},e.ret=function(){var r=t.call(arguments);return r.unshift(e),e.with.apply(null,r)},e.if=function(t,r,n){t?e(r):e(n,r)},e.ifExist=function(t,e,r){var n=t&&t[e];n&&(n=n.apply(t,r))},e.parallel=function(r,n){var o,i,s="could not be empty!",a=[],u=!1,c=[],l=0,f=0,h=(o=r,i=new RegExp("\\s([a-zA-Z]+)"),{}.toString.call(o).match(i)[1].toLowerCase());if(!r)throw Error("funcs "+s);if(!n)throw Error("callback "+s);switch(h){case"array":f=r.length,r.forEach((function(t,r){e(t,(function(){p(r,arguments)}))}));break;case"object":a=Object.keys(r),f=a.length,a.forEach((function(t){var n=r[t];e(n,(function(){p(t,arguments)}))}))}function p(e,r){var o,i=t.call(r,1),s=r[0],a=i.length;o=++l===f,s||(c[e]=a>=2?i:i[0]),u||!s&&!o||(u=!0,"array"===h?n.apply(null,[s].concat(c)):n(s,c))}},e.series=function(t,r){var n,o=t.length;if(!Array.isArray(t))throw Error("funcs should be array!");n=t.shift(),e(n,(function(n){(function(t){var n;return--o&&!t||(n=!0,e(r,t)),n})(n)||e.series(t,r)}))},e.each=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));o.length?e.parallel(o,n):n()},e.eachSeries=function(t,r,n){var o=t.map((function(t){return r.bind(null,t)}));if("function"!=typeof n)throw Error("callback should be function");o.length?e.series(o,n):n()},e.try=function(t){var e;try{e=t()}catch(t){e=t}return e},e}t.exports?t.exports=new r:e.exec=new r}(this)},function(t,e,r){"use strict";const n=r(12),o=r(0),i=r(7),{encode:s}=r(17),{btoa:a}=r(25),u=o((function(t,e,r){const n="asc"===e?"↑":"↓";return t!==r||"name"===t&&"asc"===e?r:`${r}${n}`})),c="/fs",l=i();function f(t,e,r){if(!t)throw Error("url could not be empty!");if(!r)throw Error("template could not be empty!");const o=["/",...t.split("/").slice(1,-1)],i=[],s=o.length;let a="/";for(let t=0;t<s;t++){const u=o[t],c=t===s-1;if(t&&(a+=u+"/"),t&&c){i.push(u+"/");continue}const l=t?"/":"";i.push(n(r,{path:a,name:u,slash:l,prefix:e}))}return i.join("")}l("/"),t.exports.FS=c,t.exports.apiURL="/api/v1",t.exports.MAX_FILE_SIZE=512e3,t.exports.getHeaderField=u,t.exports.getPathLink=f,t.exports.getDotDot=m,t.exports.formatMsg=(t,e,r)=>((e=e||"")&&(e='("'+e+'")'),t+": "+(r=r||"ok")+e),t.exports.getTitle=t=>{t=t||{};const{path:e=l(),name:r}=t;return[r||"Cloud Commander",e].filter(Boolean).join(" - ")};const h=t=>`data-name="js-file-${a(encodeURI(t))}" `;function p(t){return{...t,date:t.date||"--.--.----",owner:t.owner||"root",size:g(t)}}function d(t){return"directory"===t?"":'target="_blank" '}function g(t){let{size:e,type:r}=t;return"directory"===r?"&lt;dir&gt;":/link/.test(r)?"&lt;link&gt;":e}function m(t){const e=t.substr(t,t.lastIndexOf("/")),r=e.substr(e,e.lastIndexOf("/"));return r||"/"}t.exports.buildFromJSON=t=>{const{prefix:e,template:r,sort:o="name",order:i="asc"}=t,a=r.file,g=r.link,y=t.data,w=s(y.path),{files:v}=y,b=f(w,e,r.pathLink);let x=n(r.path,{link:e+c+w,fullPath:w,path:b});const C=u(o,i),E=C("name"),A=C("size"),P=C("date"),k=n(a,{tag:"div",attribute:'data-name="js-fm-header" ',className:"fm-header",type:"",name:E,size:A,date:P,owner:"owner",mode:"mode"});if(l(w),x+=k+'<ul data-name="js-files" class="files">',"/"!==w){const t=m(w),o=e+c+t,i=n(r.link,{link:o,title:"..",name:".."}),s='draggable="true" '+h("..");x+=n(r.file,{tag:"li",attribute:s,className:"",type:"directory",name:i,size:"&lt;dir&gt;",date:"--.--.----",owner:".",mode:"--- --- ---"})}return x+=v.map(p).map(t=>{const r=s(t.name),o=e+c+w+r,{type:i,mode:u,date:l,owner:f,size:p}=t,m=n(g,{link:o,title:r,name:r,attribute:d(t.type)}),y=h(t.name);return n(a,{tag:"li",attribute:'draggable="true" '+y,className:"",type:i,name:m,size:p,date:l,owner:f,mode:u})}).join(""),x+="</ul>",x},t.exports._getSize=g},function(t,e,r){"use strict";t.exports=t=>{const e={value:t};return(...t)=>{const[r]=t;return t.length?(e.value=r,r):e.value}}},function(t,e,r){"use strict";const n=t=>(...e)=>(...r)=>t(...e,...r);t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be a function!")}(t),e.length?n(t)(...e):n(t))},function(t,e,r){"use strict";const n=r(5);t.exports.escapeRegExp=t=>("string"==typeof t&&(t=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),t),t.exports.getRegExp=t=>{const e="^"+t.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?")+"$";return RegExp(e)},t.exports.exec=n,t.exports.getExt=t=>{if(!("string"==typeof t))return"";const e=t.lastIndexOf(".");return~e?t.substr(e):""},t.exports.findObjByNameInArr=(t,e)=>{let r;if(!Array.isArray(t))throw Error("array should be array!");if("string"!=typeof e)throw Error("name should be string!");return t.some(t=>{const n=t.name===e,o=Array.isArray(t);return n?(r=t,n):o?t.some(t=>{const n=t.name===e;return n&&(r=t.data),n}):n}),r},t.exports.time=t=>{n.ifExist(console,"time",[t])},t.exports.timeEnd=t=>{n.ifExist(console,"timeEnd",[t])}},function(t,e,r){"use strict";const n=r(9),o=r(1),i=r(18),s=r(20),a=r(51),u=r(29),c=r(53),l=t.exports,f={...c,...u,...l},h={};f.Images=o,f.load=r(14),f.Files=r(15),f.RESTful=i,f.IO=r(26),f.Storage=s,f.Dialog=r(11),f.CurrentInfo=h,t.exports=f,f.uploadDirectory=r(54),f.Buffer=r(31),f.Events=r(16);const p=r(65),d=r(66),g={"js-left":null,"js-right":null};async function m(t){const{Dialog:e}=f,r=f.getCurrentDirPath(),n="New "+t||!1,o=(()=>{const t=f.getCurrentName();return".."===t?"":t})(),[s,a]=await e.prompt(n,o);if(s)return;const u=`${r}${a}`;"directory"===t?await i.createDirectory(u):await i.write(u),await CloudCmd.refresh({currentName:a})}t.exports.loadRemote=(t,e,r)=>(p(t,e,r),f),t.exports.loadSocket=t=>(f.loadRemote("socket",{name:"io"},t),f),t.exports.promptNewDir=async function(){await m("directory")},t.exports.promptNewFile=async()=>{await m("file")},t.exports.getCurrentDirName=()=>{const t=f.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=f.getCurrentDirPath(t),r=f.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"!==e?e.slice(0,n):e},t.exports.getNotCurrentDirPath=()=>{const t=f.getPanel({active:!1});return f.getCurrentDirPath(t)},t.exports.getSelectedFiles=()=>{const t=f.getPanel(),e=f.getByClassAll("selected-file",t);return Array.from(e)},t.exports.unselectFiles=t=>{t=t||f.getSelectedFiles(),Array.from(t).forEach(f.toggleSelectedFile)},t.exports.getActiveFiles=()=>{const t=f.getCurrentFile(),e=f.getSelectedFiles(),r=f.getCurrentName(t);return e.length||".."===r?e:[t]},t.exports.getCurrentDate=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-date",e).textContent},t.exports.getCurrentSize=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-size",e).textContent.replace(/^<|>$/g,"")},t.exports.loadCurrentSize=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e);if(o.show.load(),".."===name)return;const[,n]=await i.read(r+"?size");return f.setCurrentSize(n,e),o.hide(),e},t.exports.loadCurrentHash=async t=>{const e=t||f.getCurrentFile(),r=f.getCurrentPath(e),[,n]=await i.read(r+"?hash");return n},t.exports.setCurrentSize=(t,e)=>{const r=e||f.getCurrentFile();f.getByDataName("js-size",r).textContent=t},t.exports.getCurrentMode=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-mode",e).textContent},t.exports.getCurrentOwner=t=>{const e=t||f.getCurrentFile();return f.getByDataName("js-owner",e).textContent},t.exports.getCurrentData=async t=>{const{Dialog:e}=f,r=f.CurrentInfo,n=t||f.getCurrentFile(),o=f.getCurrentPath(n),a=f.isCurrentIsDir(n);if(".."===r.name)return e.alert.noFiles(),[Error("No Files")];if(a)return await i.read(o);const[u,c]=await f.checkStorageHash(o);if(!u)return[Error("Can't get hash of a file")];if(c===u)return[null,await s.get(o+"-data")];const[l,h]=await i.read(o);if(l)return[l,null];const{length:p}=h;return c&&p<1073741824&&await f.saveDataToStorage(o,h,u),[null,h]},t.exports.getRefreshButton=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.getPanel();return f.getByDataName("js-refresh",t)},t.exports.selectFile=t=>((t||f.getCurrentFile()).classList.add("selected-file"),l),t.exports.unselectFile=t=>((t||f.getCurrentFile()).classList.remove("selected-file"),l),t.exports.toggleSelectedFile=t=>{const e=t||f.getCurrentFile();return".."===f.getCurrentName(e)||e.classList.toggle("selected-file"),l},t.exports.toggleAllSelectedFiles=()=>(f.getAllFiles().map(f.toggleSelectedFile),l),t.exports.selectAllFiles=()=>(f.getAllFiles().map(f.selectFile),l),t.exports.getAllFiles=()=>{const t=f.getPanel(),e=f.getFiles(t),r=f.getCurrentName(e[0]),n=".."===r?1:0;return Array.from(e).slice(n)},t.exports.expandSelection=()=>{const{files:t}=h;d("expand",t)},t.exports.shrinkSelection=()=>{const{files:t}=h;d("shrink",t)},t.exports.setHistory=(t,e,r)=>{const n=window.history,{prefix:o}=CloudCmd;return r=o+r,n&&history.pushState(t,e,r),n},t.exports.isSelected=t=>!!t&&f.isContainClass(t,"selected-file"),t.exports.getCurrentLink=t=>{const e=t||f.getCurrentFile();return f.getByTag("a",e)[0]},t.exports.getFilenames=t=>{if(!t)throw Error("AllFiles could not be empty");const e=t[0]||f.getCurrentFile(),r=f.getCurrentName(e),n=Array.from(t);".."===r&&n.shift();return n.map(t=>f.getCurrentName(t))},t.exports.checkStorageHash=async t=>{const e=t+"-hash";if("string"!=typeof t)throw Error("name should be a string!");const[r,n]=await Promise.all([f.loadCurrentHash(),s.get(e)]);return[r,n]},t.exports.saveDataToStorage=async(t,e,r)=>{if(f.isCurrentIsDir())return;r=r||await f.loadCurrentHash();const n=t+"-hash",o=t+"-data";return await s.set(n,r),await s.set(o,e),r},t.exports.getFM=()=>f.getPanel().parentElement,t.exports.getPanelPosition=t=>(t=t||f.getPanel()).dataset.name.replace("js-",""),t.exports.getPanel=t=>{let e,r,n,o="js-";const i=f.getCurrentFile();if(i?(e=i.parentElement,r=e.parentElement,n="js-left"===r.getAttribute("data-name")):r=f.getByDataName("js-left"),t&&!t.active&&(o+=n?"right":"left",r=f.getByDataName(o)),window.innerWidth<CloudCmd.MIN_ONE_PANEL_WIDTH&&(r=f.getByDataName("js-left")),!r)throw Error("can not find Active Panel!");return r},t.exports.getFiles=t=>f.getByDataName("js-files",t).children||[],t.exports.showPanel=t=>{const e=f.getPanel({active:t});return!!e&&(f.show(e),!0)},t.exports.hidePanel=t=>{const e=f.getPanel({active:t});return!!e&&f.hide(e)},t.exports.remove=(t,e)=>((e||document.body).removeChild(t),f),t.exports.deleteCurrent=t=>{t||f.getCurrentFile();const e=null==t?void 0:t.parentElement,r=f.getCurrentName(t);if(t&&".."!==r){const r=t.nextSibling,n=t.previousSibling;f.setCurrentFile(r||n),e.removeChild(t)}},t.exports.deleteSelected=t=>{(t=t||f.getSelectedFiles())&&t.map(f.deleteCurrent)},t.exports.renameCurrent=a,t.exports.scrollIntoViewIfNeeded=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&t.scrollIntoViewIfNeeded&&t.scrollIntoViewIfNeeded(e)},t.exports.scrollByPages=(t,e)=>{const r=(null==t?void 0:t.scrollByPages)&&e;return r&&t.scrollByPages(e),r},t.exports.changePanel=()=>{const t=h;let e=f.getPanel();CloudCmd.emit("passive-dir",t.dirPath);const r=f.getPanel({active:!1});let n=f.getCurrentName();const o=f.getFiles(r);let i,s,a=e.getAttribute("data-name");return g[a]=n,e=r,a=e.getAttribute("data-name"),n=g[a],n&&(s=f.getCurrentByName(n,e),s&&(i=s.parentElement)),i&&i.parentElement||(s=f.getCurrentByName(n,e),s||([s]=o)),f.setCurrentFile(s,{history:!0}),CloudCmd.emit("active-dir",t.dirPath),f},t.exports.getPackerExt=t=>"zip"===t?".zip":".tar.gz",t.exports.goToDirectory=async()=>{const{Dialog:t}=f,{dirPath:e}=h,[r,n=e]=await t.prompt("Go to directory:",e);r||await CloudCmd.loadDir({path:n})},t.exports.duplicatePanel=async()=>{const t=h,{isDir:e}=t,r=t.panelPassive,n=!t.isOnePanel,o=(e=>e?t.path:t.dirPath)(e);await CloudCmd.loadDir({path:o,panel:r,noCurrent:n})},t.exports.swapPanels=async()=>{const t=h,{panel:e,files:r,element:n,panelPassive:o}=t,i=f.getCurrentDirPath(),s=f.getNotCurrentDirPath();let a=r.indexOf(n);await CloudCmd.loadDir({path:i,panel:o,noCurrent:!0}),await CloudCmd.loadDir({path:s,panel:e});const u=t.files.length-1;a>u&&(a=u);const c=t.files[a];f.setCurrentFile(c)},t.exports.CurrentInfo=h,t.exports.updateCurrentInfo=t=>{const e=f.CurrentInfo,r=t||f.getCurrentFile(),o=r.parentElement,i=f.getPanel({active:!1}),s=f.getFiles(i),a=f.getCurrentName(r);e.dir=f.getCurrentDirName(),e.dirPath=f.getCurrentDirPath(),e.parentDirPath=f.getParentDirPath(),e.element=r,e.ext=n.getExt(a),e.files=Array.from(o.children),e.filesPassive=Array.from(s),e.first=o.firstChild,e.getData=f.getCurrentData,e.last=o.lastChild,e.link=f.getCurrentLink(r),e.mode=f.getCurrentMode(r),e.name=a,e.path=f.getCurrentPath(r),e.panel=o.parentElement||f.getPanel(),e.panelPassive=i,e.size=f.getCurrentSize(r),e.isDir=f.isCurrentIsDir(),e.isSelected=f.isSelected(r),e.panelPosition=f.getPanel().dataset.name.replace("js-",""),e.isOnePanel=e.panel.getAttribute("data-name")===e.panelPassive.getAttribute("data-name")}},function(t,e,r){"use strict";const n=r(3),{alert:o,prompt:i,confirm:s,progress:a}=r(50),u="Cloud Commander";t.exports.alert=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return o(u,...e,{cancel:!1})},t.exports.prompt=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n(i,u,...e)},t.exports.confirm=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n(s,u,...e)},t.exports.progress=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return a(u,...e)},t.exports.alert.noFiles=()=>o(u,"No files selected!",{cancel:!1})},function(t,e,r){"use strict";t.exports=(t,e)=>{!function(t,e){if("string"!=typeof t)throw Error("template should be a string!");if("object"!=typeof e)throw Error("data should be an object!")}(t,e);let r=t;return Object.keys(e).forEach(t=>{const n="{{ "+t+" }}",o=(i=e[t],()=>i);for(var i;r.includes(n);)r=r.replace(n,o)}),r.includes("{{")&&(r=r.replace(/{{.*?}}/g,"")),r}},function(t,e,r){"use strict";r.r(e),r.d(e,"promisify",(function(){return n}));function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return new r((r,n)=>{o.push((function(t){if(t)return n(t);for(var o=arguments.length,i=Array(1<o?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((t,r)=>{var n=e[r];n&&(a[n]=t)}),r(a)})),t.apply(this,o)})}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";const n=r(19),o=r(49),i=r(28),s=r(5),a=r(1);t.exports.getIdBySrc=function(t){if(!n.string(t))return;t.includes(":")&&(t+="-join");const e=t.lastIndexOf("/")+1,r=t.substr(t,e);return t.replace(r,"").replace(/\./g,"-")},t.exports.ajax=t=>{const e=t,r=n.object(e.data),i=n.array(e.data),u="arraybuffer"===n(e.data),c=e.type||e.method||"GET",{headers:l={}}=e,f=new XMLHttpRequest;f.open(c,e.url,!0);for(const t of Object.keys(l)){const e=l[t];f.setRequestHeader(t,e)}let h;e.responseType&&(f.responseType=e.responseType),h=!u&&r||i?o.stringify(e.data):e.data,f.onreadystatechange=t=>{const r=t.target;if(r.readyState!==r.DONE)return;a.clearProgress();const n=r.getResponseHeader("content-type");if(200!==r.status)return s(e.error,r);const i="text"!==e.dataType,u=n.includes("application/json");let c=r.response;n&&u&&i&&(c=o.parse(r.response)||r.response),s(e.success,c,r.statusText,r)},f.send(h)},t.exports.put=(t,e)=>{const r=i(),n=new XMLHttpRequest;return t=encodeURI(t).replace(/#/g,"%23"),n.open("put",t,!0),n.upload.onprogress=t=>{if(!t.lengthComputable)return;const e=t.loaded/t.total*100,n=Math.round(e);r.emit("progress",n)},n.onreadystatechange=()=>{if(!(n.readyState===n.DONE))return;if(200===n.status)return r.emit("progress",100),r.emit("end");const t=Error(n.responseText);r.emit("error",t)},n.send(e),r}},function(t,e,r){"use strict";const n=r(19),{promisify:o}=r(13),i=r(14),s=r(18),a={},u=function(t){let e;return r=>{e||(e=!0,setTimeout(()=>{e=!1,r()},t))}}(2e3);t.exports.get=function t(e){const r=n(e);if(function(t){if(!t)throw Error("name could not be empty!")}(e),"string"===r)return function(t){const e=RegExp("file|path|link|pathLink|media|view/media-tmpl|config-tmpl|upload"),r=RegExp("config|modules"),n=e.test(t),o=r.test(t);if(!n&&!o)return function(t){throw Error("Wrong file name: "+t)}(t);if("config"===t)return l();const i=function(t,e,r){let n;const o=RegExp("view/media-tmpl|config-tmpl|upload").test(t);e?(n=o?"/tmpl/"+t.replace("-tmpl",""):"/tmpl/fs/"+t,n+=".hbs"):r&&(n="/json/"+t+".json");return n}(t,n,o);return c(i)}(e);if("array"===r)return Promise.all(e.map(t))};const c=o((t,e)=>{const{prefix:r}=CloudCmd;a[t]||(a[t]=new Promise((e,n)=>{const o=r+t;i.ajax({url:o,success:e,error:n})})),a[t].then(t=>{e(null,t)},r=>{a[t]=null,e(r)})}),l=async()=>{let t;a.config||(a.config=()=>(t=!0,s.Config.read()));const[,e]=await a.config();return e&&(t=!1),u(()=>{t||(a.config=null)}),e}},function(t,e,r){"use strict";const n=r(19),o=r(64);t.exports=new function(){const t=this,e=t=>"touchstart"===t&&{passive:!0};function r(t,o,i,s){let a;const u=[t,o,i,s],c=n(t);switch(c){default:if(!c.endsWith("element"))throw Error("unknown eventName: "+c);r(u[1],u[0],i,s);break;case"string":a=n.function(o),a&&(i=o,o=null),o||(o=window),s(o,[t,i,e(t)]);break;case"array":for(const e of t)r(e,o,i,s);break;case"object":for(const e of Object.keys(t)){r(e,o,t[e],s)}}}function i(t){if(!t)throw Error("type could not be empty!")}this.add=(e,n,s)=>(i(e),r(e,n,s,(t,e)=>{const[r,n,i]=e;t.addEventListener(r,n,i),o.add(t,r,n)}),t),this.addOnce=(e,r,n)=>{const o=i=>{t.remove(e,r,o),n(i)};return n||(n=r,r=null),this.add(e,r,o),t},this.remove=(e,n,o)=>(i(e),r(e,n,o,(t,e)=>{t.removeEventListener(...e)}),t),this.removeAll=()=>{const t=o.get();for(const[e,r,n]of t)e.removeEventListener(r,n);o.clear()},this.addKey=function(){const e="keydown";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.rmKey=function(){const e="keydown";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.remove(...i)},this.addClick=function(){const e="click";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.rmClick=function(){const e="click";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.remove(...i)},this.addContextMenu=function(){const e="contextmenu";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.addError=function(){const e="error";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)},this.addLoad=function(){const e="load";for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=[e,...n];return t.add(...i)}}},function(t,e,r){"use strict";const n={"&lt;":"<","&gt;":">","&quot;":'"'},o=Object.keys(n);t.exports.encode=t=>{for(const e of o){const r=RegExp(n[e],"g");t=t.replace(r,e)}return t},t.exports.decode=t=>{for(const e of o){const r=n[e],o=RegExp(e,"g");t=t.replace(o,r)}return t}},function(t,e,r){"use strict";const n=r(3),{encode:o}=r(17),i=r(1),s=r(26),a=r(11),u=t=>async function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];const[u,c]=await n(t,...r);if(!u)return[u,c];const l=o(u.message);return i.show.error(l),a.alert(l),[u,c]};t.exports.delete=u(s.delete),t.exports.patch=u(s.patch),t.exports.write=u(s.write),t.exports.createDirectory=u(s.createDirectory),t.exports.read=u(s.read),t.exports.copy=u(s.copy),t.exports.pack=u(s.pack),t.exports.extract=u(s.extract),t.exports.move=u(s.move),t.exports.rename=u(s.rename),t.exports.Config={read:u(s.Config.read),write:u(s.Config.write)},t.exports.Markdown={read:u(s.Markdown.read),render:u(s.Markdown.render)}},function(t,e,r){"use strict";t.exports=n;for(const t of["null","arrayBuffer","file","array","object"])n[t]=o.bind(null,t);for(const t of["string","undefined","boolean","number","function"])n[t]=i.bind(null,t);function n(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t,e){return n(e)===t}function i(t,e){return typeof e===t}},function(t,e,r){"use strict";const{parse:n,stringify:o}=JSON;t.exports.set=async(t,e)=>{localStorage.setItem(t,e)},t.exports.setJson=async(t,e)=>{localStorage.setItem(t,o(e))},t.exports.get=async t=>localStorage.getItem(t),t.exports.getJson=async t=>{const e=localStorage.getItem(t);return n(e)},t.exports.clear=()=>{localStorage.clear()},t.exports.remove=t=>{localStorage.removeItem(t)}},function(t,e,r){"use strict";r(173);const n=r(2),o=r(85),i=r(87),s=(t,...e)=>(t=>"function"==typeof t)(t)&&t(...e);t.exports=function t(e,r,a){if(!(this instanceof t))return new t(e,r,a);const u=new i;let c,l,f,h,p={};a?(c=h=e,p=r):r?(c=h=e,a=r):(c=document.body,h=window,a=e);const d={},g=function(t){const e=o(t,d,p);return n("ul",{dataName:"js-menu",className:"menu menu-hidden",innerHTML:e,parent:c,uniq:!1})}(a);function m(t,e){let r=u.getItem(t),n=u.isName(r),o=u.isItem(r),i=u.isSubMenu(r);return n&&o||(r=document.elementFromPoint(e.x,e.y),i=u.isSubMenu(r),n=u.isName(r),o=u.isItem(r)),{name:n,item:o,sub:i}}function y(t,e){t.stopPropagation();const{afterClick:r,beforeClick:n,beforeHide:o,afterHide:i,name:a}=p,c=t.target,l=e||m(c,{x:t.clientX,y:t.clientY}),f=s(n,a);if(l.sub)return t.preventDefault();if(s(o),x(),s(i),!f&&(l.name||l.item)){const t=function(t){const e=u.getName(t);if(!e)return null;const r=e.getAttribute("data-menu-path");return d[r]}(c);s(t),s(r)}}function w(t){t.preventDefault();const e=t.target,r=t.clientX,n=t.clientY,o=m(e,{x:r,y:n});if(o.name||o.item||o.sub)return y(t,o);x(),b(r,n)}function v(t,e){const r="number"==typeof t,n="number"==typeof e,o=function(){if(!l){const{height:t}=getComputedStyle(g);l=parseInt(t,10)}return l}(),i=function(){if(!f){const{width:t}=getComputedStyle(g);f=parseInt(t,10)}return f}(),s=window.innerHeight;window.innerWidth<i+t&&(t-=i)<0&&(t=0),s<o+e&&(e-=o)<0&&(e=0),r&&(g.style.left=t+"px"),n&&(g.style.top=e-14+"px")}function b(t,e){const{name:r,beforeShow:n,afterShow:o}=p,i={x:t,y:e,name:r},a=s(n,i);(a||!1!==a)&&(g.classList.remove("menu-hidden"),v(i.x,i.y),s(o,i))}function x(){s(p.beforeClose)||g.classList.add("menu-hidden")}h.addEventListener("click",y),this.show=b,this.hide=x,this.addContextMenuListener=()=>{h.addEventListener("contextmenu",w)},this.removeContextMenuListener=()=>{h.addEventListener("contextmenu",w)},this.remove=function(){h.removeEventListener("click",y),h.removeEventListener("contextmenu",w),c.removeChild(g)}}},function(t,e,r){"use strict";t.exports=t=>document.querySelector(`[data-name="modal-${t}"]`)},function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}o.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];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(t,e,r){"use strict";(function(e){t.exports.btoa=t=>"function"==typeof btoa?btoa(t):e.from(t).toString("base64"),t.exports.atob=t=>"function"==typeof atob?atob(t):e.from(t,"base64").toString("binary")}).call(this,r(43).Buffer)},function(t,e,r){"use strict";const{FS:n}=r(6),o=r(48),i={top:!0};t.exports.delete=async(t,e)=>await o({method:"DELETE",url:n+t,data:e,imgPosition:{top:Boolean(e)}}),t.exports.patch=async(t,e)=>await o({method:"PATCH",url:n+t,data:e,imgPosition:i}),t.exports.write=async(t,e)=>await o({method:"PUT",url:n+t,data:e,imgPosition:i}),t.exports.createDirectory=async t=>await o({method:"PUT",url:`${n}${t}?dir`,imgPosition:i}),t.exports.read=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";const r=!t.includes("?");return await o({method:"GET",url:n+t,notLog:r,dataType:e})},t.exports.copy=async(t,e,r)=>await o({method:"PUT",url:"/copy",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.pack=async t=>await o({method:"PUT",url:"/pack",data:t}),t.exports.extract=async t=>await o({method:"PUT",url:"/extract",data:t}),t.exports.move=async(t,e,r)=>await o({method:"PUT",url:"/move",data:{from:t,to:e,names:r},imgPosition:i}),t.exports.rename=async(t,e)=>await o({method:"PUT",url:"/rename",data:{from:t,to:e},imgPosition:i}),t.exports.Config={read:async()=>await o({method:"GET",url:"/config",imgPosition:i,notLog:!0}),write:async t=>await o({method:"PATCH",url:"/config",data:t,imgPosition:i})},t.exports.Markdown={read:async t=>await o({method:"GET",url:"/markdown"+t,imgPosition:i,notLog:!0}),render:async t=>await o({method:"PUT",url:"/markdown",data:t,imgPosition:i,notLog:!0})}},function(t,e,r){"use strict";t.exports=(t,...e)=>{try{return[null,t(...e)]}catch(t){return[t]}}},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){const r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){const r=this;return i(t,e),this.on(t,(function n(...o){e(...o),r.off(t,n)})),this},n.prototype.off=function(t,e){const r=this._all[t]||[];let n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t,...e){const r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];if(!r)return this;for(const t of r)t(...e);return this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){"use strict";const{atob:n,btoa:o}=r(25),i=r(2),{encode:s,decode:a}=r(17),{getTitle:u,FS:c}=r(6);let l;const f=t=>null==t?void 0:t.replace(" ","&nbsp;"),h=t=>null==t?void 0:t.replace("&nbsp;"," ");t.exports._CURRENT_FILE="current-file",t.exports.setCurrentName=(t,e)=>{const r=DOM.CurrentInfo,{link:n}=r,{prefix:o}=CloudCmd,i=o+c+r.dirPath,a=s(t);return n.title=a,n.href=i+a,n.innerHTML=a,e.setAttribute("data-name",p(t)),CloudCmd.emit("current-file",e),n},t.exports.getCurrentName=t=>{const e=t||DOM.getCurrentFile();return e?d(e.getAttribute("data-name")):""};const p=t=>"js-file-"+o(encodeURI(t)),d=t=>(t=t.replace("js-file-",""),h(decodeURI(n(t))));t.exports._parseNameAttribute=d;const g=(t,e)=>(e=e.replace(RegExp("^"+t+c),""),a(h(e)));t.exports._parseHrefAttribute=g,t.exports.getCurrentDirPath=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DOM.getPanel();const e=DOM.getByDataName("js-path",t);return e.textContent},t.exports.getCurrentPath=t=>{const e=t||DOM.getCurrentFile(),[r]=DOM.getByTag("a",e),{prefix:n}=CloudCmd;return g(n,r.getAttribute("href"))},t.exports.getCurrentDirName=()=>{const t=DOM.getCurrentDirPath().replace(/\/$/,""),e=t.substr(t,t.lastIndexOf("/"));return t.replace(e+"/","")||"/"},t.exports.getParentDirPath=t=>{const e=DOM.getCurrentDirPath(t),r=DOM.getCurrentDirName()+"/",n=e.lastIndexOf(r);return"/"===e?e:e.slice(0,n)},t.exports.getNotCurrentDirPath=()=>{const t=DOM.getPanel({active:!1});return DOM.getCurrentDirPath(t)},t.exports.getCurrentFile=()=>DOM.getByClass("current-file"),t.exports.getCurrentByName=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DOM.CurrentInfo.panel;const r="js-file-"+o(encodeURI(f(t)));return DOM.getByDataName(r,e)},t.exports.setCurrentFile=(t,e)=>{const r=e,n=DOM.getCurrentFile();if(!t)return DOM;let o="";n&&(o=DOM.getCurrentDirPath(),function(t){DOM.isCurrentFile(t)&&t.classList.remove("current-file")}(n)),t.classList.add("current-file");const i=DOM.getCurrentDirPath(),s=CloudCmd.config("name");if(i!==o&&(DOM.setTitle(u({name:s,path:i})),!r||r.history)){const t="/"===i?i:c+i;DOM.setHistory(t,null,t)}return DOM.scrollIntoViewIfNeeded(t,!0),CloudCmd.emit("current-file",t),CloudCmd.emit("current-path",i),CloudCmd.emit("current-name",DOM.getCurrentName(t)),DOM},this.setCurrentByName=t=>{const e=DOM.getCurrentByName(t);return DOM.setCurrentFile(e)},t.exports.getCurrentByPosition=t=>{let{x:e,y:r}=t;const n=(t=>{const{tagName:e}=t;return/A|SPAN|LI/.test(e)?"A"===e?t.parentElement.parentElement:"SPAN"===e?t.parentElement:t:null})(document.elementFromPoint(e,r));return n&&"LI"!==n.tagName?null:n},t.exports.isCurrentFile=t=>!!t&&DOM.isContainClass(t,"current-file"),t.exports.setTitle=t=>(l||(l=DOM.getByTag("title")[0]||i("title",{innerHTML:t,parent:document.head})),l.textContent=t,DOM),t.exports.isCurrentIsDir=t=>{const e=t||DOM.getCurrentFile(),r=DOM.getCurrentPath(e),n=DOM.getCurrentType(e),o=/\.zip$/.test(r);return/^directory(-link)?/.test(n)||o},t.exports.getCurrentType=t=>{const e=t||DOM.getCurrentFile();return DOM.getByDataName("js-type",e).className.split(" ").pop()}},function(t,e){"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}}},function(t,e,r){"use strict";const n=r(63),o=r(20),i=r(10);t.exports=new function(){const t=i.CurrentInfo;function e(t){i.Dialog.alert(t)}function r(){const t=i.getActiveFiles();return i.getFilenames(t)}function s(t){if(CloudCmd.config("buffer"))return t();e("Buffer disabled in config!")}async function a(){await o.remove("copy"),await o.remove("cut"),function(){const t=i.getByClassAll("cut-file");for(const e of t)e.classList.remove("cut-file")}()}return{cut:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(!function(){const t=i.getActiveFiles();for(const e of t)e.classList.add("cut-file")}(),await o.setJson("cut",{from:n,names:e}))})),copy:s.bind(null,(async function(){const e=r(),n=t.dirPath;await a(),e.length&&(await o.remove("cut"),await o.setJson("copy",{from:n,names:e}))})),clear:s.bind(null,a),paste:s.bind(null,(async function(){const[r,i,s]=await async function(){const[t,e,r]=await n([o.getJson("copy"),o.getJson("cut")]);return[t,e,r]}();if(r||!i&&!s)return e(r||"Buffer is empty!");const u=i?"copy":"move",c=i||s,{Operation:l}=CloudCmd,f=t.dirPath;if(c.from===f)return e("Path is same!");l.show(u,{...c,to:f}),await a()}))}}},function(t,e,r){"use strict";t.exports.addSlashToEnd=t=>{if(!t)throw Error("path could not be empty!");return"/"===t[t.length-1]?t:t+"/"},t.exports.size=t=>{const e=1073741824,r=1024*e,n=1024*r;return"number"==typeof t?t<1024?t+"b":t<1048576?(t/1024).toFixed(2)+"kb":t<e?(t/1048576).toFixed(2)+"mb":t<r?(t/e).toFixed(2)+"gb":t<n?(t/r).toFixed(2)+"tb":(t/n).toFixed(2)+"pb":t},t.exports.permissions=r(68)},function(t,e){t.exports=function(t){for(var e=t.split(r),n=e.length,o=new Array(n),i=0;i<n;i++){var s=e[i];""!==s&&(o[i]=s[0].toUpperCase()+s.slice(1))}return o.join("")};var r=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/},,function(t,e,r){"use strict";t.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(t){const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();const r=document.execCommand("copy");if(document.body.removeChild(e),r)return;return Promise.reject()}}},function(t,e,r){"use strict";t.exports={BACKSPACE:8,TAB:9,ENTER:13,CAPSLOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46,ZERO:48,SEMICOLON:52,COLON:54,A:65,C:67,D:68,G:71,J:74,K:75,M:77,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,X:88,Z:90,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,EQUAL:187,HYPHEN:189,DOT:190,SLASH:191,TRA:192,BACKSLASH:220,BRACKET_CLOSE:221}},function(t,e,r){"use strict";const n=[()=>()=>{},t=>(...e)=>t(...e),(t,e)=>(...r)=>t(e(...r)),(t,e,r)=>(...n)=>t(e(r(...n))),(t,e,r,n)=>(...o)=>t(e(r(n(...o)))),(t,e,r,n,o)=>(...i)=>t(e(r(n(o(...i))))),(t,e,r,n,o,i)=>(...s)=>t(e(r(n(o(i(...s)))))),(t,e,r,n,o,i,s)=>(...a)=>t(e(r(n(o(i(s(...a)))))))];t.exports=(...t)=>t.length<n.length?n[t.length](...t):function(t){return(...e)=>{let r=t.length-1,n=t[r](...e);for(;--r;)n=t[r](n);return n}}(t)},function(t,e,r){"use strict";const{eachSeries:n}=r(5),o=r(8),i=r(14),s=r(1),{alert:a}=r(11),{FS:u}=r(6),{getCurrentDirPath:c}=r(10),l=o((function(t,e,r,n){const{name:o}=r,a=t+o,{prefixURL:c}=CloudCmd,l=c+u;i.put(l+a,r).on("error",h).on("end",n).on("progress",t=>{const r=(t=>100/t)(e),n=0*r+function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.round(t*r/e)}(t,100,r);s.show.load("top"),s.setProgress(Math.round(n))})})),f=o((function(t){CloudCmd.refresh({currentName:t})}));function h(t){let{message:e}=t;a(e)}t.exports=(t,e)=>{e||(e=t,t=c());const r=e.length;if(!r)return;const o=Array.from(e),{name:i}=e[0];n(o,l(t,r),f(i))}},function(t,e,r){"use strict";const n=r(2),o=r(22);t.exports=(t,e)=>{if(o("title"))return void(o("title-text").textContent=t);const r=n("div",{className:"modal-title",dataName:"modal-title",parent:e});n("span",{parent:r,textContent:t,className:"modal-title-text",dataName:"modal-title-text"})}},function(t,e,r){var n=r(129),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var s=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in s)if(s.hasOwnProperty(a)){if(!("channels"in s[a]))throw new Error("missing channels property: "+a);if(!("labels"in s[a]))throw new Error("missing channel labels property: "+a);if(s[a].labels.length!==s[a].channels)throw new Error("channel and label counts mismatch: "+a);var u=s[a].channels,c=s[a].labels;delete s[a].channels,delete s[a].labels,Object.defineProperty(s[a],"channels",{value:u}),Object.defineProperty(s[a],"labels",{value:c})}s.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,s=Math.min(n,o,i),a=Math.max(n,o,i),u=a-s;return a===s?e=0:n===a?e=(o-i)/u:o===a?e=2+(i-n)/u:i===a&&(e=4+(n-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),r=(s+a)/2,[e,100*(a===s?0:r<=.5?u/(a+s):u/(2-a-s)),100*r]},s.rgb.hsv=function(t){var e,r,n,o,i,s=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(s),r=f(a),n=f(u),s===c?o=n-r:a===c?o=1/3+e-n:u===c&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},s.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[s.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(r,n))),100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},s.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},s.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,s,a=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=n[u],l=(i=t,s=c,Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)+Math.pow(i[2]-s[2],2));l<a&&(a=l,r=u)}return r},s.keyword.rgb=function(t){return n[t]},s.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},s.rgb.lab=function(t){var e=s.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},s.hsl.rgb=function(t){var e,r,n,o,i,s=t[0]/360,a=t[1]/100,u=t[2]/100;if(0===a)return[i=255*u,i,i];e=2*u-(r=u<.5?u*(1+a):u+a-u*a),o=[0,0,0];for(var c=0;c<3;c++)(n=s+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[c]=255*i;return o},s.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},s.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}},s.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,s=t[2]/100,a=Math.max(s,.01);return n=(2-i)*s,r=i*a,[o,100*(r=(r/=(e=(2-i)*a)<=1?e:2-e)||0),100*(n/=2)]},s.hwb.rgb=function(t){var e,r,n,o,i,s,a,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(n=1-n),o=c+n*((r=1-l)-c),e){default:case 6:case 0:i=r,s=o,a=c;break;case 1:i=o,s=r,a=c;break;case 2:i=c,s=r,a=o;break;case 3:i=c,s=o,a=r;break;case 4:i=o,s=c,a=r;break;case 5:i=r,s=c,a=o}return[255*i,255*s,255*a]},s.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},s.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,s=t[2]/100;return r=-.9689*o+1.8758*i+.0415*s,n=.0557*o+-.204*i+1.057*s,e=(e=3.2406*o+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},s.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),s=Math.pow(e,3),a=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=s>.008856?s:(e-16/116)/7.787,n=a>.008856?a:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},s.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},s.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},s.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:s.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])},s.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},s.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},s.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},s.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},s.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},s.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),s=Math.min(Math.min(r,n),o),a=i-s;return e=a<=0?0:i===r?(n-o)/a%6:i===n?2+(o-r)/a:4+(r-n)/a+4,e/=6,[360*(e%=1),100*a,100*(a<1?s/(1-a):0)]},s.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,o=0;return(n=r<.5?2*e*r:2*e*(1-r))<1&&(o=(r-.5*n)/(1-n)),[t[0],100*n,100*o]},s.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},s.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],s=e%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},s.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},s.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},s.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},s.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},s.gray.hsl=s.gray.hsv=function(t){return[0,0,t[0]]},s.gray.hwb=function(t){return[0,100,t[0]]},s.gray.cmyk=function(t){return[0,0,0,t[0]]},s.gray.lab=function(t){return[t[0],0,0]},s.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},s.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.promisify=n;function n(t){if("function"!=typeof t)throw new TypeError("Argument to promisify must be a function");var e=t["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return new r((function(r,o){i.push((function(t){if(t)return o(t);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(1===i.length||!e)return r(i[0]);var a={};i.forEach((function(t,r){var n=e[r];n&&(a[n]=t)})),r(a)})),t.apply(n,i)}))}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0},function(t,e,r){"use strict";(function(t){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -7,5 +7,5 @@
7
7
  */
8
8
  var n=r(45),o=r(46),i=r(47);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),o=(t=a(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=a(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?a(t,0):h(t,e);if("Buffer"===e.type&&i(e.data))return h(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(n)return U(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var 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 O(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return _(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(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),r=+r,isNaN(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){var i,s=1,a=t.length,u=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;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var l=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){f=!1;break}if(f)return i}return-1}function v(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function b(t,e,r,n){return Y(U(e,t.length-r),t,r,n)}function x(t,e,r,n){return Y(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function C(t,e,r,n){return x(t,e,r,n)}function E(t,e,r,n){return Y($(e),t,r,n)}function A(t,e,r,n){return Y(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function k(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,c=t[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return l(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,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},u.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}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var 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},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");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;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),c=this.slice(n,o),l=t.slice(e,r),f=0;f<a;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.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)}var 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");for(var i=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return C(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}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function M(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=F(t[i]);return o}function S(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(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(!u.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 R(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function D(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function N(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 L(t,e,r,n,i){return i||N(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,i){return i||N(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var o=e-t;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||j(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||j(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);j(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);j(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},u.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),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){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("sourceStart out of bounds");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);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},u.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),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=u.isBuffer(t)?t:U(new u(t,n).toString()),a=s.length;for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+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 $(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(44))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),s=n[0],a=n[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===a&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,u[l++]=255&e);1===a&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=0,a=r-o;s<a;s+=16383)i.push(l(t,s,s+16383>a?a:s+16383));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function c(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 l(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){
9
9
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
- e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";const{promisify:n}=r(13),o=r(1),i=r(14);function s(t){return t.replace(/#/g,"%23")}t.exports=n((t,e)=>{const r=t,{prefixURL:n}=CloudCmd;r.url=n+r.url,r.url=encodeURI(r.url),r.url=s(r.url),i.ajax({method:r.method,url:r.url,data:r.data,dataType:r.dataType,error:t=>{const r=t.responseText,{statusText:n,status:o}=t;e(Error(404===o?r:n))},success:t=>{o.hide(),r.notLog||CloudCmd.log(t),e(null,t)}})}),t.exports._replaceHash=s},function(t,e,r){"use strict";const n=r(28),{parse:o,stringify:i}=JSON;t.exports.parse=(...t)=>{const[,e]=n(o,...t);return e},t.exports.stringify=(...t)=>{const[,e]=n(i,...t);return e}},function(t,e,r){"use strict";r(170);const n=r(0),o=r(7),i=r(2),s=n((function(t,e,r,n){const o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:i}=n,s=n.target,a=y(t,["ok","cancel","input"]).map(p);switch(i){case o.ENTER:g(s,t,e,r),n.preventDefault();break;case o.ESC:w(t),r();break;case o.TAB:n.shiftKey&&d(t,a),d(t,a),n.preventDefault();break;default:["left","right","up","down"].filter(t=>i===o[t.toUpperCase()]).forEach(()=>{!function(t,e){const r=p(document.activeElement),n=/ok|cancel/.test(r),o=e.length-1;if("input"===r||!o||!n)return;const i=(t=>"cancel"===t?"ok":"cancel")(r);for(const e of y(t,[i]))e.focus()}(t,a)})}n.stopPropagation()})),a={ok:"OK"},u={ok:"OK",cancel:"Cancel"},c=o(100);function l(t={}){const{buttons:e}=t;return e||null}function f(t,e,r,o){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${t}</header>\n <div class="content-area">${e.replace(/\n/g,"<br>")}${r}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(t){const e=Object.keys(t),r=n((t,e,r)=>`<button\n tabindex=${r}\n data-name="js-${e.toLowerCase()}">\n ${t[e]}\n </button>`);return e.map(r(t)).join("")}(o)}\n </div>\n </div>\n </div>`}function h(t,e,r,n,a){const u=o(),l=o(),h=new Promise((t,e)=>{const r=a&&!1===a.cancel;u(t),l(r?()=>{}:()=>e(Error()))}),p=f(t,e,r,n),d=i("div",{innerHTML:p,className:"smalltalk",style:"z-index: "+c(c()+1)});for(const t of y(d,["ok","input"]))t.focus();for(const t of y(d,["input"]))t.setSelectionRange(0,r.length);!function(t,e,r,n){for(const o of y(e,r))o.addEventListener(t,n)}("click",d,["cancel","close","ok"],t=>{g(t.target,d,u(),l())});for(const t of["click","contextmenu"])d.addEventListener(t,t=>{t.stopPropagation();for(const t of y(d,["ok","input"]))t.focus()});return d.addEventListener("keydown",s(d,u(),l())),Object.assign(h,{dialog:d,ok:u})}function p(t){return t.getAttribute("data-name").replace("js-","")}e.alert=(t,e,r)=>h(t,e,"",l(r)||a,r),e.prompt=(t,e,r="",n)=>h(t,e,`<input type="${function(t={}){const{type:e}=t;return"password"===e?"password":"text"}(n)}" value="${String(r).replace(/"/g,"&quot;")}" data-name="js-input">`,l(n)||u,n),e.confirm=(t,e,r)=>h(t,e,"",l(r)||u,r),e.progress=(t,e,r)=>{const n=h(t,e,'\n <progress value="0" data-name="js-progress" class="progress" max="100"></progress>\n <span data-name="js-counter">0%</span>\n ',{cancel:"Abort"},r),{ok:o,dialog:i}=n,s=o();return y(i,["cancel"]).map(t=>{t.focus()}),Object.assign(n,{setProgress(t){const[e]=y(i,["progress"]),[r]=y(i,["counter"]);e.value=t,r.textContent=t+"%",100===t&&(w(i),s())},remove(){w(i)}}),n};function d(t,e){const r=p(document.activeElement),n=e.length-1,o=e.indexOf(r),i=e[((t,e)=>e===t?0:e+1)(n,o)];for(const e of y(t,[i]))e.focus()}function g(t,e,r,n){const o=t.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(o))return n(),void w(e);r(y(e,["input"]).reduce((t,e)=>e.value,null)),w(e)}const m=n((t,e)=>t.querySelector(`[data-name="js-${e}"]`));function y(t,e){return e.map(m(t)).filter(Boolean)}function w(t){const{parentElement:e}=t;e&&e.removeChild(t)}},function(t,e,r){"use strict";const n=r(52),o=r(11),i=r(21),s=r(18),{isCurrentFile:a,getCurrentName:u,getCurrentFile:c,getCurrentByName:l,getCurrentType:f,getCurrentDirPath:h,setCurrentName:p}=r(29);t.exports=async t=>{a(t)||(t=c());const e=u(t);if(".."===e)return o.alert.noFiles();const[r,d]=await o.prompt("Rename",e);if(r)return;const g=l(d);if(g){const t=f(g),e=`${n(t)} "${d}" already exists. Proceed?`,[r]=await o.confirm(e);if(r)return}if(e===d)return;const m=h(),y=`${m}${e}`,w=`${m}${d}`,[v]=await s.rename(y,w);v||(p(d,t),i.remove(m),CloudCmd.refresh())}},function(t,e){t.exports=function(t){if("string"!=typeof t)throw Error("just-capitalize expects a string argument");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}},function(t,e,r){"use strict";const n=r(0),o=t.exports,i=(t,e)=>{if(!t)throw Error("element could not be empty!");if(!e)throw Error("className could not be empty!");if(Array.isArray(e))return e.some(n(i,t));const{classList:r}=t;return r.contains(e)};t.exports.isContainClass=i,t.exports.getByTag=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.getElementsByTagName(t)},t.exports.getById=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelector("#"+t)},t.exports.getByClass=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return o.getByClassAll(t,e)[0]},t.exports.getByDataName=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const r='[data-name="'+t+'"]';return e.querySelector(r)},t.exports.getByClassAll=(t,e)=>(e||document).getElementsByClassName(t),t.exports.hide=t=>(t.classList.add("hidden"),o),t.exports.show=t=>(t.classList.remove("hidden"),o)},function(t,e,r){"use strict";const n=r(55),o=r(1),{FS:i}=r(6),s=r(10),a=r(11),{getCurrentDirPath:u}=s;function c(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.round(t*r/e)}t.exports=t=>{t.length&&o.show("top");const e=Array.from(t).map(t=>t.webkitGetAsEntry()),r=u().replace(/\/$/,""),l=a.progress("Uploading...");l.catch(()=>{a.alert("Upload aborted"),f.abort()});const f=n(e,(t,e,n,o,a,u)=>{const{prefixURL:f}=CloudCmd,h=f+i+r+e;let p;switch(t){case"file":p=function(t,e){return s.load.put(t,e)}(h,n);break;case"directory":d=h,p=s.load.put(d+"?dir")}var d;p.on("end",u),p.on("progress",t=>{const e=c(o,a),r=c(o+1,a),n=e+c(t,100,r-e);l.setProgress(n)})});f.on("error",t=>{a.alert(t),f.abort()}),f.on("end",CloudCmd.refresh)}},function(t,e,r){"use strict";var n=r(56),o=r(59),i=r(61),s=r(30);function a(t,e){var r=this;if(!(this instanceof a))return new a(t,e);if("function"!=typeof e)throw Error("processingFn should be function!");o.call(this);var n=Array.isArray(t)?t:[t];this._i=0,this._n=0,this._processingFn=e,this._pause=!1,this._prev=0,this._find(n,(function(t,e){r._files=t,r._dirs=e,r._n=t.length+e.length,r._data={},r._getFiles(t,r._data,(function(){r._process()}))}))}t.exports=a,s(a,o),a.prototype._process=function(){var t=this,e=this._processingFn.length,r=void 0,n=this._dirs.shift(),o="directory";if(!n){o="file";var i=this._files.shift();i&&(n=i.fullPath,r=this._data[n])}if(!n)return this.emit("end");var s=void 0;if(!this._pause){switch(e){default:s=[o,n,r];break;case 6:s=[o,n,r,this._i,this._n]}s.push((function(e){++t._i,e&&(t.emit("error",e),t.pause()),t._process(),t._progress()})),this._processingFn.apply(this,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(s))}},a.prototype.pause=function(){this._pause=!0},a.prototype.continue=function(){this._pause&&(this._pause=!1,this._process())},a.prototype.abort=function(){this._files=[],this._dirs=[],this._process()},a.prototype._progress=function(){var t=Math.round(100*this._i/this._n);t!==this._prev&&(this._prev=t,this.emit("progress",t))},a.prototype._getFiles=function(t,e,r){var n=this,o=t.slice(),i=o.shift();if(!i)return r(null,e);i.file((function(t){var s=i.fullPath;e[s]=t,n._getFiles(o,e,r)}))},a.prototype._find=function(t,e){var r=[],o=[];i(t,(function(t,e){var i=n(t);i.on("directory",(function(t){o.push(t)})),i.on("file",(function(t,e){r.push(e)})),i.on("end",(function(){e()}))}),(function(){e(r,o)}))}},function(t,e,r){"use strict";var n=r(57);function o(t,e){if(!(this instanceof o))return new o(t,e);this._dirs=0,this._first=!0,this._find(t,e)}t.exports=function(t){var e=n();return setTimeout((function(){o(e,t)}),0),e},o.prototype._find=function(t,e){var r=this;if(e.isFile)return t.emit("file",e.fullPath,e),void(this._first&&t.emit("end"));this._first&&(this._first=!1),t.emit("directory",e.fullPath,e),++this._dirs,e.createReader().readEntries((function(e){[].forEach.call(e,(function(e){r._find(t,e)})),--r._dirs,r._dirs||t.emit("end")}))}},function(t,e,r){t.exports=r(58)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){var r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){var r=this;return i(t,e),r.on(t,(function n(){e.apply(null,arguments),r.off(t,n)})),this},n.prototype.off=function(t,e){var r=this._all[t]||[],n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t){var e=[].slice.call(arguments,1),r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];return r?(r.forEach((function(t){t.apply(null,e)})),this):this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){t.exports=r(60)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){var r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){var r=this;return i(t,e),r.on(t,(function n(){e.apply(null,arguments),r.off(t,n)})),this},n.prototype.off=function(t,e){var r=this._all[t]||[],n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t){var e=[].slice.call(arguments,1),r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];return r?(r.forEach((function(t){t.apply(null,e)})),this):this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){t.exports=r(62)},function(t,e,r){"use strict";t.exports=function(t,e,r){!function(t,e,r){if(!Array.isArray(t))throw Error("array should be an array!");if("function"!=typeof e)throw Error("iterator should be a function!");if("function"!=typeof r)throw Error("done should be a function!")}(t,e,r);var n=-1,o=t.length,i=function(s){if(++n,s||n===o)return r(s);e(t[n],i)};i()}},function(t,e,r){"use strict";const n=r(3),o=Promise.all.bind(Promise);t.exports=async t=>{const[e,r=[]]=await n(o,t);return[e,...r]}},function(t,e,r){"use strict";let n=[];t.exports.add=(t,e,r)=>{n.push([t,e,r])},t.exports.clear=()=>{n=[]},t.exports.get=()=>n},function(t,e,r){"use strict";const n=r(12),o=r(19),i=r(4),s=r(3),{findObjByNameInArr:a}=r(9),u=r(15);t.exports=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const{prefix:c,config:l}=CloudCmd,f=e;if(f.name&&window[f.name])return r();u.get("modules").then(async e=>{const u=l("online")&&navigator.onLine,f=a(e.remote,t),h=o.array(f.local),{version:p}=f;let d,g;h?(d=f.remote,g=f.local):(d=[f.remote],g=[f.local]);const m=g.map(t=>c+t),y=d.map(t=>n(t,{version:p}));if(u){const[t]=await s(i.parallel,y);if(!t)return r()}const[w]=await s(i.parallel,m);r(w)})}},function(t,e,r){"use strict";let n="*.*";const{getRegExp:o}=r(9),{alert:i,prompt:s}=r(11),a=r(10);t.exports=async(t,e)=>{if(!e)return;const r=`Specify file type for ${t} selection`,[u,c]=await s(r,n);if(u)return;n=c;const l=o(c);let f=0;for(const r of e){const e=a.getCurrentName(r);if(".."===e||!l.test(e))continue;++f;let n=a.isSelected(r);"expand"===t&&(n=!n),n&&a.toggleSelectedFile(r)}f||i("No matches found!")}},,function(t,e,r){"use strict";const n=r(0),o={name:"r",value:4},i={name:"w",value:2},s={name:"x",value:1},a=n((t,e)=>t&e.value?e.name:"-"),u=n((t,e)=>[o,i,s].map(t(e)).join(""));t.exports.symbolic=t=>{if(!(void 0!==t))return"";const e=t.slice(-3);return[Number(e[0]).toString(2),Number(e[1]).toString(2),Number(e[2]).toString(2)].map(u(a)).join(" ")},t.exports.numeric=t=>{if(!(t&&11===t.length))throw Error('permissions should be in format "xxx xxx xxx"');return"00"+(("r"===t[0]?4:0)+("w"===t[1]?2:0)+("x"===t[2]?1:0))+(("r"===t[4]?4:0)+("w"===t[5]?2:0)+("x"===t[6]?1:0))+(("r"===t[8]?4:0)+("w"===t[9]?2:0)+("x"===t[10]?1:0))}},,,,,function(t,e,r){"use strict";const n=r(74),o=r(0)((t,e)=>e.includes(t)),i=n(t=>t&&t.length,[function(t,e){const r=t.split("").join(".*")+".*",n=RegExp(`^${r}$`,"i"),o=n.test.bind(n);return e.filter(o)},function(t,e){return e.filter(o(t))}]);t.exports=(t,e)=>(function(t,e){if("string"!=typeof t)throw Error("pattern should be string!");if(!Array.isArray(e))throw Error("list should be an array!")}(t,e),i(t,e)||[])},function(t,e,r){"use strict";const n=r(0),o=r(37),i=r(75),s=n((t,e)=>t(e)),a=t=>t,u=n((t,e)=>e(...t));t.exports=function(t,e){e||(e=t,t=a);!function(t,e){if("function"!=typeof t)throw Error("condition should be function!");if(!Array.isArray(e))throw Error("filters should be an array!");!function(t,e){const r=i(t=>{throw Error(`fn should be ${t}!`)},t),n=i((t,e)=>t!==e,t);if(!e.length)return r(t);e.map(t=>typeof t).filter(n).forEach(r)}("function",e)}(t,e);const r=function(t){let e;return r=>{let n;return t(r)?e=n=r:(n=e,e=null),n}}(t),n=i(o,t,r),c=e.map(s(n)).reverse();return(...t)=>(c.some(u(t)),r())}},function(t,e,r){"use strict";t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),(...r)=>{const n=[...e,...r];return t(...n)})},,,,,,,,,,function(t,e,r){"use strict";const n=r(12),o=r(86),{entries:i}=Object;t.exports=function t(e,r,s,a=""){let u="";a&&(a+=".");for(const[c,l]of i(e)){let e,i="",f="",h="";const p=a+c;"object"!=typeof l?r[p]=l:(i=n(o.MAIN,{items:t(l,r,s,p)}),f=" menu-submenu",h=' data-menu="js-submenu"'),s.icon&&(e=c.replace(/\(|\)/g,"").replace(/\s/g,"-").toLowerCase(),f+=" icon icon-"+e),u+=n(o.ITEM,{name:c,subitems:i,className:f,attribute:h,path:p})}return u}},function(t,e,r){"use strict";t.exports.MAIN='<ul data-name="js-menu" class="menu menu-hidden">{{ items }}</ul>',t.exports.ITEM='<li data-name="js-menu-item" class="menu-item{{ className }}"{{ attribute }}><label data-menu-path="{{ path }}">{{ name }}</label>{{ subitems }}</li>'},function(t,e,r){"use strict";t.exports=class{getItem(t){return this.isName(t)?t.parentElement:t}getName(t){return t?this.isName(t)?t:t.querySelector("[data-menu-path]"):null}isName(t){return!!t&&t.hasAttribute("data-menu-path")}isItem(t){return this.checkElementsName(t,"js-menu-item")}isMenu(t){return this.checkElementsName(t,"js-menu")}checkElementsName(t,e,r){if(r||(r="data-name"),t){if(t.getAttribute(r)===e)return!0}return!1}isSubMenu(t){const e=this.getItem(t);return this.checkElementsName(e,"js-submenu","data-menu")}}},,,function(t,e,r){"use strict";const n=r(91);t.exports=(t,e)=>(function(t,e){if(!t)throw Error("pattern could not be empty!");if(!Array.isArray(e))throw Error("names should be an array!")}(t,e),e.map(o(t)));const o=t=>(e,r)=>{const[o,i]=function(t){const e=t.lastIndexOf(".");return~e?[t.substr(0,e),t.substr(e)]:[t,""]}(e),s=n(new Date,{sep:"-"});return t.replace("[n]",o).replace("[e]",i).replace("[c]",r+1).replace("[ymd]",s)}},function(t,e,r){"use strict";t.exports=(t,e)=>{(function(t,e){const r={}.toString.call(t);if(t&&"[object Date]"!==r)throw Error("date should be Date!");if(e&&"object"!=typeof e)throw Error("options should be object!")})(t=t||new Date,e),e||(e={});const{sep:r=".",order:n="big"}=e;let o=t.getDate(),i=t.getMonth()+1;const s=t.getFullYear();switch(i<=9&&(i="0"+i),o<=9&&(o="0"+o),n){case"big":return[s,i,o].join(r);case"middle":return[i,o,s].join(r);case"little":return[o,i,s].join(r);default:throw Error('order could be "big", "middle" and "little" only!')}}},,,,function(t,e,r){"use strict";const n=r(7),o=r(0),i=r(2);r(175);const s=r(96),a=r(39),u=r(23),c=r(97),l=()=>{},f=n({}),h=o((t,e,r)=>u(t).addEventListener(r,e)),{isArray:p}=Array;t.exports.open=(t,e={})=>{if(function(t){if(!t)throw Error("inner should be DOM-element!")}(t),u("main"))return;const{beforeShow:r=l,beforeClose:n=l,afterShow:o=l,afterClose:m=l,onOverlayClick:y=l,autoSize:w=!1,index:v=0,helpers:b={},title:x=""}=e;f({beforeClose:n,afterClose:m}),r();const C=p(t),E=b.title&&x||C,A=c({autoSize:w,isTitle:E}),P=i("div",{innerHTML:'\n <div class="modal-child" data-name="modal-child">\n <div class="modal-close" data-name="modal-close"></div>\n </div>\n',className:A,dataName:"modal-main"});((t,e,r)=>{r.map(h(t,e))})("main",d(y),["click","contextmenu"]),u("close").addEventListener("click",g);const k=u("child");return C?s(k,t,{index:v,afterShow:o,helpers:b}):(k.appendChild(t),E&&a(x,k),o(),P)};const d=o((t,e)=>{e.target===u("main")&&(g(),t(e))}),g=()=>{const t=u("main"),{beforeClose:e=l,afterClose:r=l}=f();t&&(e(),document.body.removeChild(t),r())};t.exports.close=g,t.exports._optionsStore=f,t.exports._onMainClick=d},function(t,e,r){"use strict";const n=r(8),o=r(7),i=r(2),s=r(39),a=r(23),u=o(),c=o(),l=n((t,e)=>d(u()+1,t,e)),f=n((t,e)=>d(u()-1,t,e)),h=n((t,e)=>{t.hidden=!1,e()}),p=(t,e)=>function r(n){let o=u();const{keyCode:i}=n;if(37===i)--o;else{if(39!==i)return 27===i?document.body.removeEventListener("keydown",r):void 0;++o}d(o,t,e)};function d(t,e,r){const n=r.length-1;if(t<0||t>n)return;u(t),a("nav-left").hidden=!t,a("nav-right").hidden=t===n;const{href:o,title:i}=r[t];e.src=o,e.title=i,e.href=i,e.alt=i,c().title&&s(i,a("child"))}function g(t,e,r){return function n(o){r(o),t.removeEventListener(e,n)}}function m(t,e,r){t.addEventListener(e,g(t,e,r))}t.exports=function(t,e,{afterShow:r,helpers:n,index:o}){u(o),c(n);const s=function(){const t=document.createElement("img");return t.className="modal-image",t}();t.appendChild(s),t.hidden=!0,t.appendChild(i("div",{className:"modal-nav modal-nav-left",dataName:"modal-nav-left",innerHTML:"<span></span>"})),t.appendChild(i("div",{className:"modal-nav modal-nav-right",dataName:"modal-nav-right",innerHTML:'<span data-name="modal-next"></span>'})),d(o,s,e),m(s,"load",h(t,r)),a("nav-left").addEventListener("click",f(s,e)),a("nav-right").addEventListener("click",l(s,e)),document.body.addEventListener("keydown",p(s,e))},t.exports._rmListener=g,t.exports._addListenerOnce=m,t.exports._onKeydown=p,t.exports._indexStore=u,t.exports._helpersStore=c,t.exports._onload=h},function(t,e,r){"use strict";t.exports=({autoSize:t,isTitle:e})=>{const r=["modal-main"];return t&&r.push("modal-autosize"),e&&r.push("modal-is-title"),r.join(" ")}},,function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,o="/"===s.charAt(0))}return(o?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!o).join("/"))||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===o(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!i).join("/"))||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,o=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!o){r=e+1;break}}else-1===n&&(o=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,o=!0,i=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===n&&(o=!1,n=s+1),46===a?-1===e?e=s:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===i||1===i&&e===n-1&&e===r+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(24))},,,,,,function(t,e,r){"use strict";if(!window.olark){const t=document.createElement("script"),[e]=document.getElementsByTagName("script");t.async=1,t.src="//static.olark.com/jsclient/loader.js",e.parentNode.insertBefore(t,e);const r=window.olark=(...t)=>{n.s.push(t),n.t.push(Number(new Date))};r.extend=(t,e)=>{r("extend",t,e)},r.identify=t=>{r("identify",n.i=t)},r.configure=(t,e)=>{r("configure",t,e),n.c[t]=e};const n=r._={s:[],t:[Number(new Date)],c:{},l:"static.olark.com/jsclient/loader.js"}}t.exports=window.olark},,,,,function(t,e,r){"use strict";t.exports=(t,e)=>{Object.keys(e).forEach(((t,e)=>r=>t(r,e[r]))(t,e))}},,,,,,,,function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=s,e.default=function(e,r,n,i={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(t.emitWarning)t.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}n=Math.max(n,0);return s(e,{start:{column:n,line:r}},i)};var n=r(119);let o=!1;const i=/\r\n|[\n\r\u2028\u2029]/;function s(t,e,r={}){const o=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),s=(0,n.getChalk)(r),a=function(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}(s),u=(t,e)=>o?t(e):e,c=t.split(i),{start:l,end:f,markerLines:h}=function(t,e,r){const n=Object.assign({column:0,line:-1},t.start),o=Object.assign({},n,t.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,u=n.column,c=o.line,l=o.column;let f=Math.max(a-(i+1),0),h=Math.min(e.length,c+s);-1===a&&(f=0),-1===c&&(h=e.length);const p=c-a,d={};if(p)for(let t=0;t<=p;t++){const r=t+a;if(u)if(0===t){const t=e[r-1].length;d[r]=[u,t-u+1]}else if(t===p)d[r]=[0,l];else{const n=e[r-t].length;d[r]=[0,n]}else d[r]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:f,end:h,markerLines:d}}(e,c,r),p=e.start&&"number"==typeof e.start.column,d=String(f).length;let g=(o?(0,n.default)(t,r):t).split(i,f).slice(l,f).map((t,e)=>{const n=l+1+e,o=` ${(" "+n).slice(-d)} |`,i=h[n],s=!h[n+1];if(i){let e="";if(Array.isArray(i)){const n=t.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),c=i[1]||1;e=["\n ",u(a.gutter,o.replace(/\d/g," "))," ",n,u(a.marker,"^").repeat(c)].join(""),s&&r.message&&(e+=" "+u(a.message,r.message))}return[u(a.marker,">"),u(a.gutter,o),t.length>0?" "+t:"",e].join("")}return` ${u(a.gutter,o)}${t.length>0?" "+t:""}`}).join("\n");return r.message&&!p&&(g=`${" ".repeat(d+1)}${r.message}\n${g}`),o?s.reset(g):g}}).call(this,r(24))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e={}){if(""!==t&&l(e)){const r=f(e);return function(t,e){let r="";for(const{type:n,value:o}of c(e)){const e=t[n];r+=e?o.split(a).map(t=>e(t)).join("\n"):o}return r}(function(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.grey,invalid:t.white.bgRed.bold}}(r),t)}return t},e.getChalk=f,e.shouldHighlight=l;var n=r(120),o=r(121),i=r(124);const s=new Set(["as","async","from","get","of","set"]);const a=/\r\n|[\n\r\u2028\u2029]/,u=/^[()[\]{}]$/;let c;{const t=/^[a-z][\w-]*$/i,e=function(e,r,n){if("name"===e.type){if((0,o.isKeyword)(e.value)||(0,o.isStrictReservedWord)(e.value,!0)||s.has(e.value))return"keyword";if(t.test(e.value)&&("<"===n[r-1]||"</"==n.slice(r-2,r)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&u.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};c=function*(t){let r;for(;r=n.default.exec(t);){const o=n.matchToToken(r);yield{type:e(o,r.index,t),value:o.value}}}}function l(t){return!!i.supportsColor||t.forceColor}function f(t){return t.forceColor?new i.constructor({enabled:!0,level:1}):i}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!(!t[3]&&!t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return o.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var n=r(122),o=r(123)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=f,e.isIdentifierName=function(t){let e=!0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(55296==(64512&n)&&r+1<t.length){const e=t.charCodeAt(++r);56320==(64512&e)&&(n=65536+((1023&n)<<10)+(1023&e))}if(e){if(e=!1,!l(n))return!1}else if(!f(n))return!1}return!e},e.isIdentifierStart=l;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const i=new RegExp("["+n+"]"),s=new RegExp("["+n+o+"]");n=o=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function c(t,e){let r=65536;for(let n=0,o=e.length;n<o;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function l(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&i.test(String.fromCharCode(t)):c(t,a)))}function f(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&s.test(String.fromCharCode(t)):c(t,a)||c(t,u))))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=function(t){return i.has(t)},e.isReservedWord=u,e.isStrictBindOnlyReservedWord=l,e.isStrictBindReservedWord=function(t,e){return c(t,e)||l(t)},e.isStrictReservedWord=c;const n=["implements","interface","let","package","private","protected","public","static","yield"],o=["eval","arguments"],i=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),s=new Set(n),a=new Set(o);function u(t,e){return e&&"await"===t||"enum"===t}function c(t,e){return u(t,e)||s.has(t)}function l(t){return a.has(t)}},function(t,e,r){"use strict";(function(e){const n=r(125),o=r(126),i=r(131).stdout,s=r(132),a="win32"===e.platform&&!(e.env.TERM||"").toLowerCase().startsWith("xterm"),u=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),l=Object.create(null);function f(t,e){e=e||{};const r=i?i.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function h(t){if(!this||!(this instanceof h)||this.template){const e={};return f(e,t),e.template=function(){const t=[].slice.call(arguments);return m.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,h.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=h,e.template}f(this,t)}a&&(o.blue.open="");for(const t of Object.keys(o))o[t].closeRe=new RegExp(n(o[t].close),"g"),l[t]={get(){const e=o[t];return d.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};l.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const t of Object.keys(o.color.ansi))c.has(t)||(l[t]={get(){const e=this.level;return function(){const r=o.color[u[e]][t].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const t of Object.keys(o.bgColor.ansi)){if(c.has(t))continue;l["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r=o.bgColor[u[e]][t].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}}}const p=Object.defineProperties(()=>{},l);function d(t,e,r){const n=function(){return g.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function g(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return o.dim.open=n,r}function m(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(h.prototype,l),t.exports=h(),t.exports.supportsColor=i,t.exports.default=t.exports}).call(this,r(24))},function(t,e,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(n,"\\$&")}},function(t,e,r){"use strict";(function(t){const e=r(128),n=(t,r)=>function(){const n=t.apply(e,arguments);return`[${n+r}m`},o=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};5;${n}m`},i=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{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],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const e of Object.keys(r)){const n=r[e];for(const e of Object.keys(n)){const o=n[e];r[e]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[e]=r[e],t.set(o[0],o[1])}Object.defineProperty(r,e,{value:n,enumerable:!1}),Object.defineProperty(r,"codes",{value:t,enumerable:!1})}const s=t=>t,a=(t,e,r)=>[t,e,r];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:n(s,0)},r.color.ansi256={ansi256:o(s,0)},r.color.ansi16m={rgb:i(a,0)},r.bgColor.ansi={ansi:n(s,10)},r.bgColor.ansi256={ansi256:o(s,10)},r.bgColor.ansi16m={rgb:i(a,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const s=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in s&&(r.color.ansi[t]=n(s.ansi16,0),r.bgColor.ansi[t]=n(s.ansi16,10)),"ansi256"in s&&(r.color.ansi256[t]=o(s.ansi256,0),r.bgColor.ansi256[t]=o(s.ansi256,10)),"rgb"in s&&(r.color.ansi16m[t]=i(s.rgb,0),r.bgColor.ansi16m[t]=i(s.rgb,10))}return r}})}).call(this,r(127)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(40),o=r(130),i={};Object.keys(n).forEach((function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var e=o(t);Object.keys(e).forEach((function(r){var n=e[r];i[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){var n=r(40);function o(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),s=i.length,a=0;a<s;a++){var u=i[a],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,r.unshift(u))}return e}function i(t,e){return function(r){return e(t(r))}}function s(t,e){for(var r=[e[t].parent,t],o=n[e[t].parent][t],s=e[t].parent;e[s].parent;)r.unshift(e[s].parent),o=i(n[e[s].parent][s],o),s=e[s].parent;return o.conversion=r,o}t.exports=function(t){for(var e=o(t),r={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var u=n[a];null!==e[u].parent&&(r[u]=s(u,e))}return r}},function(t,e,r){"use strict";t.exports={stdout:!1,stderr:!1}},function(t,e,r){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function u(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):a.get(t)||t}function c(t,e){const r=[],n=e.trim().split(/\s*,\s*/g);let o;for(const e of n)if(isNaN(e)){if(!(o=e.match(i)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(o[2].replace(s,(t,e,r)=>e?u(e):r))}else r.push(Number(e));return r}function l(t){o.lastIndex=0;const e=[];let r;for(;null!==(r=o.exec(t));){const t=r[1];if(r[2]){const n=c(t,r[2]);e.push([t].concat(n))}else e.push([t])}return e}function f(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error("Unknown Chalk style: "+t);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,e)=>{const r=[],o=[];let i=[];if(e.replace(n,(e,n,s,a,c,h)=>{if(n)i.push(u(n));else if(a){const e=i.join("");i=[],o.push(0===r.length?e:f(t,r)(e)),r.push({inverse:s,styles:l(a)})}else if(c){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(t,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),o.push(i.join("")),r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},,,,,,,function(t,e){"undefined"!=typeof window&&function(t){"use strict";if(t.DOMTokenList){var e=document.createElement("a").classList,r=DOMTokenList.prototype,n=r.add,o=r.remove,i=r.toggle;e.add("c1","c2");var s=function(t){return function(){var e,r=arguments;for(e=0;e<r.length;e+=1)t.call(this,r[e])}};e.contains("c2")||(r.add=s(n),r.remove=s(o)),e.toggle("c1",!0)||(r.toggle=function(t,e){return void 0===e?i.call(this,t):((e?n:o).call(this,t),!!e)})}}(window),"undefined"!=typeof window&&function(t){"use strict";var e=[],r=function(t,r){var n;if(e.indexOf)return e.indexOf.call(t,r);for(n=0;n<t.length;n++)if(t[n]===r)return n;return-1},n=function(t){if(""===t||/[\u0009\u000A\u000C\u000D\u0020]/.test(t))throw new Error("Token must not be empty or contain whitespace.")},o=function(t,e){var r,n=[];if(t&&e&&(this.element=t,this.prop=e,t[e]))for(n=t[e].replace(/^\s+|\s+$/g,"").split(/\s+/),r=0;r<n.length;r++)this[r]=n[r];this.length=n.length};o.prototype={add:function(){var t,r=this,o=arguments;for(t=0;t<o.length;t++)n(o[t]),r.contains(o[t])||e.push.call(r,o[t]);r.element&&(r.element[r.prop]=r)},contains:function(t){return n(t),-1!==r(this,t)},item:function(t){return this[t]||null},remove:function(){var t,o,i=arguments,s=this;for(o=0;o<i.length;o++)n(i[o]),-1!==(t=r(s,i[o]))&&e.splice.call(s,t,1);s.element&&(s.element[s.prop]=s)},toggle:function(t,e){return this.contains(t)?!!e||(this.remove(t),!1):!1!==e&&(this.add(t),!0)},toString:function(){return e.join.call(this," ")}},t.DOMTokenList=o}(window),"undefined"!=typeof window&&function(){"use strict";"classList"in document.createElement("a")||Object.defineProperty(Element.prototype,"classList",{get:function(){return new DOMTokenList(this,"className")}})}(),"undefined"!=typeof window&&function(){"use strict";if(!("relList"in document.createElement("a"))){var t,e=[HTMLAnchorElement,HTMLAreaElement,HTMLLinkElement],r=function(){return new DOMTokenList(this,"rel")};for(t=0;t<e.length;t++)Object.defineProperty(e[t].prototype,"relList",{get:r})}}(),"undefined"!=typeof window&&function(){"use strict";"undefined"!=typeof SVGElement&&("classList"in document.createElementNS("http://www.w3.org/2000/svg","svg")&&!window.QUnit||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){return"string"==typeof this.className?new DOMTokenList(this,"className"):"string"==typeof this.className.baseVal?new DOMTokenList(this.className,"baseVal"):void 0}}))}()},function(t,e,r){"use strict";function n(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function o(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function i(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return o(r.overflowY,e)||o(r.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function s(t,e,r,n,o,i,s,a){return i<t&&s>e||i>t&&s<e?0:i<=t&&a<=r||s>=e&&a>=r?i-t-n:s>e&&a<r||i<t&&a>r?s-e+o:0}r.r(e);var a=function(t,e){var r=window,o=e.scrollMode,a=e.block,u=e.inline,c=e.boundary,l=e.skipOverflowHiddenElements,f="function"==typeof c?c:function(t){return t!==c};if(!n(t))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,p=[],d=t;n(d)&&f(d);){if((d=d.parentElement)===h){p.push(d);break}null!=d&&d===document.body&&i(d)&&!i(document.documentElement)||null!=d&&i(d,l)&&p.push(d)}for(var g=r.visualViewport?r.visualViewport.width:innerWidth,m=r.visualViewport?r.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),b=v.height,x=v.width,C=v.top,E=v.right,A=v.bottom,P=v.left,k="start"===a||"nearest"===a?C:"end"===a?A:C+b/2,_="center"===u?P+x/2:"end"===u?E:P,M=[],O=0;O<p.length;O++){var S=p[O],T=S.getBoundingClientRect(),j=T.height,R=T.width,D=T.top,N=T.right,L=T.bottom,B=T.left;if("if-needed"===o&&C>=0&&P>=0&&A<=m&&E<=g&&C>=D&&A<=L&&P>=B&&E<=N)return M;var I=getComputedStyle(S),F=parseInt(I.borderLeftWidth,10),U=parseInt(I.borderTopWidth,10),$=parseInt(I.borderRightWidth,10),Y=parseInt(I.borderBottomWidth,10),z=0,H=0,W="offsetWidth"in S?S.offsetWidth-S.clientWidth-F-$:0,q="offsetHeight"in S?S.offsetHeight-S.clientHeight-U-Y:0;if(h===S)z="start"===a?k:"end"===a?k-m:"nearest"===a?s(w,w+m,m,U,Y,w+k,w+k+b,b):k-m/2,H="start"===u?_:"center"===u?_-g/2:"end"===u?_-g:s(y,y+g,g,F,$,y+_,y+_+x,x),z=Math.max(0,z+w),H=Math.max(0,H+y);else{z="start"===a?k-D-U:"end"===a?k-L+Y+q:"nearest"===a?s(D,L,j,U,Y+q,k,k+b,b):k-(D+j/2)+q/2,H="start"===u?_-B-F:"center"===u?_-(B+R/2)+W/2:"end"===u?_-N+$+W:s(B,N,R,F,$+W,_,_+x,x);var G=S.scrollLeft,V=S.scrollTop;k+=V-(z=Math.max(0,Math.min(V+z,S.scrollHeight-j+q))),_+=G-(H=Math.max(0,Math.min(G+H,S.scrollWidth-R+W)))}M.push({el:S,top:z,left:H})}return M};function u(t){return t===Object(t)&&0!==Object.keys(t).length}e.default=function(t,e){var r=t.isConnected||t.ownerDocument.documentElement.contains(t);if(u(e)&&"function"==typeof e.behavior)return e.behavior(r?a(t,e):[]);if(r){var n=function(t){return!1===t?{block:"end",inline:"nearest"}:u(t)?t:{block:"start",inline:"nearest"}}(e);return function(t,e){void 0===e&&(e="auto");var r="scrollBehavior"in document.body.style;t.forEach((function(t){var n=t.el,o=t.top,i=t.left;n.scroll&&r?n.scroll({top:o,left:i,behavior:e}):(n.scrollTop=o,n.scrollLeft=i)}))}(a(t,n),n.behavior)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},,,function(t,e){},,function(t,e){},,,,,function(t,e){}]]);
10
+ e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";const{promisify:n}=r(13),o=r(1),i=r(14);function s(t){return t.replace(/#/g,"%23")}t.exports=n((t,e)=>{const r=t,{prefixURL:n}=CloudCmd;r.url=n+r.url,r.url=encodeURI(r.url),r.url=s(r.url),i.ajax({method:r.method,url:r.url,data:r.data,dataType:r.dataType,error:t=>{const r=t.responseText,{statusText:n,status:o}=t;e(Error(404===o?r:n))},success:t=>{o.hide(),r.notLog||CloudCmd.log(t),e(null,t)}})}),t.exports._replaceHash=s},function(t,e,r){"use strict";const n=r(27),{parse:o,stringify:i}=JSON;t.exports.parse=(...t)=>{const[,e]=n(o,...t);return e},t.exports.stringify=(...t)=>{const[,e]=n(i,...t);return e}},function(t,e,r){"use strict";r(170);const n=r(0),o=r(7),i=r(2),s=n((function(t,e,r,n){const o={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:i}=n,s=n.target,a=y(t,["ok","cancel","input"]).map(p);switch(i){case o.ENTER:g(s,t,e,r),n.preventDefault();break;case o.ESC:w(t),r();break;case o.TAB:n.shiftKey&&d(t,a),d(t,a),n.preventDefault();break;default:["left","right","up","down"].filter(t=>i===o[t.toUpperCase()]).forEach(()=>{!function(t,e){const r=p(document.activeElement),n=/ok|cancel/.test(r),o=e.length-1;if("input"===r||!o||!n)return;const i=(t=>"cancel"===t?"ok":"cancel")(r);for(const e of y(t,[i]))e.focus()}(t,a)})}n.stopPropagation()})),a={ok:"OK"},u={ok:"OK",cancel:"Cancel"},c=o(100);function l(t={}){const{buttons:e}=t;return e||null}function f(t,e,r,o){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${t}</header>\n <div class="content-area">${e.replace(/\n/g,"<br>")}${r}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(t){const e=Object.keys(t),r=n((t,e,r)=>`<button\n tabindex=${r}\n data-name="js-${e.toLowerCase()}">\n ${t[e]}\n </button>`);return e.map(r(t)).join("")}(o)}\n </div>\n </div>\n </div>`}function h(t,e,r,n,a){const u=o(),l=o(),h=new Promise((t,e)=>{const r=a&&!1===a.cancel;u(t),l(r?()=>{}:()=>e(Error()))}),p=f(t,e,r,n),d=i("div",{innerHTML:p,className:"smalltalk",style:"z-index: "+c(c()+1)});for(const t of y(d,["ok","input"]))t.focus();for(const t of y(d,["input"]))t.setSelectionRange(0,r.length);!function(t,e,r,n){for(const o of y(e,r))o.addEventListener(t,n)}("click",d,["cancel","close","ok"],t=>{g(t.target,d,u(),l())});for(const t of["click","contextmenu"])d.addEventListener(t,t=>{t.stopPropagation();for(const t of y(d,["ok","input"]))t.focus()});return d.addEventListener("keydown",s(d,u(),l())),Object.assign(h,{dialog:d,ok:u})}function p(t){return t.getAttribute("data-name").replace("js-","")}e.alert=(t,e,r)=>h(t,e,"",l(r)||a,r),e.prompt=(t,e,r="",n)=>h(t,e,`<input type="${function(t={}){const{type:e}=t;return"password"===e?"password":"text"}(n)}" value="${String(r).replace(/"/g,"&quot;")}" data-name="js-input">`,l(n)||u,n),e.confirm=(t,e,r)=>h(t,e,"",l(r)||u,r),e.progress=(t,e,r)=>{const n=h(t,e,'\n <progress value="0" data-name="js-progress" class="progress" max="100"></progress>\n <span data-name="js-counter">0%</span>\n ',{cancel:"Abort"},r),{ok:o,dialog:i}=n,s=o();return y(i,["cancel"]).map(t=>{t.focus()}),Object.assign(n,{setProgress(t){const[e]=y(i,["progress"]),[r]=y(i,["counter"]);e.value=t,r.textContent=t+"%",100===t&&(w(i),s())},remove(){w(i)}}),n};function d(t,e){const r=p(document.activeElement),n=e.length-1,o=e.indexOf(r),i=e[((t,e)=>e===t?0:e+1)(n,o)];for(const e of y(t,[i]))e.focus()}function g(t,e,r,n){const o=t.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(o))return n(),void w(e);r(y(e,["input"]).reduce((t,e)=>e.value,null)),w(e)}const m=n((t,e)=>t.querySelector(`[data-name="js-${e}"]`));function y(t,e){return e.map(m(t)).filter(Boolean)}function w(t){const{parentElement:e}=t;e&&e.removeChild(t)}},function(t,e,r){"use strict";const n=r(52),o=r(11),i=r(20),s=r(18),{isCurrentFile:a,getCurrentName:u,getCurrentFile:c,getCurrentByName:l,getCurrentType:f,getCurrentDirPath:h,setCurrentName:p}=r(29);t.exports=async t=>{a(t)||(t=c());const e=u(t);if(".."===e)return o.alert.noFiles();const[r,d]=await o.prompt("Rename",e);if(r)return;const g=l(d);if(g){const t=f(g),e=`${n(t)} "${d}" already exists. Proceed?`,[r]=await o.confirm(e);if(r)return}if(e===d)return;const m=h(),y=`${m}${e}`,w=`${m}${d}`,[v]=await s.rename(y,w);v||(p(d,t),i.remove(m),CloudCmd.refresh())}},function(t,e){t.exports=function(t){if("string"!=typeof t)throw Error("just-capitalize expects a string argument");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}},function(t,e,r){"use strict";const n=r(0),o=t.exports,i=(t,e)=>{if(!t)throw Error("element could not be empty!");if(!e)throw Error("className could not be empty!");if(Array.isArray(e))return e.some(n(i,t));const{classList:r}=t;return r.contains(e)};t.exports.isContainClass=i,t.exports.getByTag=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.getElementsByTagName(t)},t.exports.getById=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelector("#"+t)},t.exports.getByClass=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return o.getByClassAll(t,e)[0]},t.exports.getByDataName=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const r='[data-name="'+t+'"]';return e.querySelector(r)},t.exports.getByClassAll=(t,e)=>(e||document).getElementsByClassName(t),t.exports.hide=t=>(t.classList.add("hidden"),o),t.exports.show=t=>(t.classList.remove("hidden"),o)},function(t,e,r){"use strict";const n=r(55),o=r(1),{FS:i}=r(6),s=r(10),a=r(11),{getCurrentDirPath:u}=s;function c(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.round(t*r/e)}t.exports=t=>{t.length&&o.show("top");const e=Array.from(t).map(t=>t.webkitGetAsEntry()),r=u().replace(/\/$/,""),l=a.progress("Uploading...");l.catch(()=>{a.alert("Upload aborted"),f.abort()});const f=n(e,(t,e,n,o,a,u)=>{const{prefixURL:f}=CloudCmd,h=f+i+r+e;let p;switch(t){case"file":p=function(t,e){return s.load.put(t,e)}(h,n);break;case"directory":d=h,p=s.load.put(d+"?dir")}var d;p.on("end",u),p.on("progress",t=>{const e=c(o,a),r=c(o+1,a),n=e+c(t,100,r-e);l.setProgress(n)})});f.on("error",t=>{a.alert(t),f.abort()}),f.on("end",CloudCmd.refresh)}},function(t,e,r){"use strict";var n=r(56),o=r(59),i=r(61),s=r(30);function a(t,e){var r=this;if(!(this instanceof a))return new a(t,e);if("function"!=typeof e)throw Error("processingFn should be function!");o.call(this);var n=Array.isArray(t)?t:[t];this._i=0,this._n=0,this._processingFn=e,this._pause=!1,this._prev=0,this._find(n,(function(t,e){r._files=t,r._dirs=e,r._n=t.length+e.length,r._data={},r._getFiles(t,r._data,(function(){r._process()}))}))}t.exports=a,s(a,o),a.prototype._process=function(){var t=this,e=this._processingFn.length,r=void 0,n=this._dirs.shift(),o="directory";if(!n){o="file";var i=this._files.shift();i&&(n=i.fullPath,r=this._data[n])}if(!n)return this.emit("end");var s=void 0;if(!this._pause){switch(e){default:s=[o,n,r];break;case 6:s=[o,n,r,this._i,this._n]}s.push((function(e){++t._i,e&&(t.emit("error",e),t.pause()),t._process(),t._progress()})),this._processingFn.apply(this,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(s))}},a.prototype.pause=function(){this._pause=!0},a.prototype.continue=function(){this._pause&&(this._pause=!1,this._process())},a.prototype.abort=function(){this._files=[],this._dirs=[],this._process()},a.prototype._progress=function(){var t=Math.round(100*this._i/this._n);t!==this._prev&&(this._prev=t,this.emit("progress",t))},a.prototype._getFiles=function(t,e,r){var n=this,o=t.slice(),i=o.shift();if(!i)return r(null,e);i.file((function(t){var s=i.fullPath;e[s]=t,n._getFiles(o,e,r)}))},a.prototype._find=function(t,e){var r=[],o=[];i(t,(function(t,e){var i=n(t);i.on("directory",(function(t){o.push(t)})),i.on("file",(function(t,e){r.push(e)})),i.on("end",(function(){e()}))}),(function(){e(r,o)}))}},function(t,e,r){"use strict";var n=r(57);function o(t,e){if(!(this instanceof o))return new o(t,e);this._dirs=0,this._first=!0,this._find(t,e)}t.exports=function(t){var e=n();return setTimeout((function(){o(e,t)}),0),e},o.prototype._find=function(t,e){var r=this;if(e.isFile)return t.emit("file",e.fullPath,e),void(this._first&&t.emit("end"));this._first&&(this._first=!1),t.emit("directory",e.fullPath,e),++this._dirs,e.createReader().readEntries((function(e){[].forEach.call(e,(function(e){r._find(t,e)})),--r._dirs,r._dirs||t.emit("end")}))}},function(t,e,r){t.exports=r(58)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){var r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){var r=this;return i(t,e),r.on(t,(function n(){e.apply(null,arguments),r.off(t,n)})),this},n.prototype.off=function(t,e){var r=this._all[t]||[],n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t){var e=[].slice.call(arguments,1),r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];return r?(r.forEach((function(t){t.apply(null,e)})),this):this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){t.exports=r(60)},function(t,e,r){"use strict";function n(){if(!(this instanceof n))return new n;this._all={}}function o(t){if("string"!=typeof t)throw Error("event should be string!")}function i(t,e){o(t),function(t){if("function"!=typeof t)throw Error("callback should be function!")}(e)}t.exports=n,n.prototype.on=function(t,e){var r=this._all[t];return i(t,e),r?r.push(e):this._all[t]=[e],this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){var r=this;return i(t,e),r.on(t,(function n(){e.apply(null,arguments),r.off(t,n)})),this},n.prototype.off=function(t,e){var r=this._all[t]||[],n=r.indexOf(e);for(i(t,e);~n;)r.splice(n,1),n=r.indexOf(e);return this},n.prototype.removeListener=n.prototype.off,n.prototype.emit=function(t){var e=[].slice.call(arguments,1),r=this._all[t];if(o(t),!r&&"error"===t)throw e[0];return r?(r.forEach((function(t){t.apply(null,e)})),this):this},n.prototype.removeAllListeners=function(t){return o(t),this._all[t]=[],this}},function(t,e,r){t.exports=r(62)},function(t,e,r){"use strict";t.exports=function(t,e,r){!function(t,e,r){if(!Array.isArray(t))throw Error("array should be an array!");if("function"!=typeof e)throw Error("iterator should be a function!");if("function"!=typeof r)throw Error("done should be a function!")}(t,e,r);var n=-1,o=t.length,i=function(s){if(++n,s||n===o)return r(s);e(t[n],i)};i()}},function(t,e,r){"use strict";const n=r(3),o=Promise.all.bind(Promise);t.exports=async t=>{const[e,r=[]]=await n(o,t);return[e,...r]}},function(t,e,r){"use strict";let n=[];t.exports.add=(t,e,r)=>{n.push([t,e,r])},t.exports.clear=()=>{n=[]},t.exports.get=()=>n},function(t,e,r){"use strict";const n=r(12),o=r(19),i=r(4),s=r(3),{findObjByNameInArr:a}=r(9),u=r(15);t.exports=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const{prefix:c,config:l}=CloudCmd,f=e;if(f.name&&window[f.name])return r();u.get("modules").then(async e=>{const u=l("online")&&navigator.onLine,f=a(e.remote,t),h=o.array(f.local),{version:p}=f;let d,g;h?(d=f.remote,g=f.local):(d=[f.remote],g=[f.local]);const m=g.map(t=>c+t),y=d.map(t=>n(t,{version:p}));if(u){const[t]=await s(i.parallel,y);if(!t)return r()}const[w]=await s(i.parallel,m);r(w)})}},function(t,e,r){"use strict";let n="*.*";const{getRegExp:o}=r(9),{alert:i,prompt:s}=r(11),a=r(10);t.exports=async(t,e)=>{if(!e)return;const r=`Specify file type for ${t} selection`,[u,c]=await s(r,n);if(u)return;n=c;const l=o(c);let f=0;for(const r of e){const e=a.getCurrentName(r);if(".."===e||!l.test(e))continue;++f;let n=a.isSelected(r);"expand"===t&&(n=!n),n&&a.toggleSelectedFile(r)}f||i("No matches found!")}},,function(t,e,r){"use strict";const n=r(0),o={name:"r",value:4},i={name:"w",value:2},s={name:"x",value:1},a=n((t,e)=>t&e.value?e.name:"-"),u=n((t,e)=>[o,i,s].map(t(e)).join(""));t.exports.symbolic=t=>{if(!(void 0!==t))return"";const e=t.slice(-3);return[Number(e[0]).toString(2),Number(e[1]).toString(2),Number(e[2]).toString(2)].map(u(a)).join(" ")},t.exports.numeric=t=>{if(!(t&&11===t.length))throw Error('permissions should be in format "xxx xxx xxx"');return"00"+(("r"===t[0]?4:0)+("w"===t[1]?2:0)+("x"===t[2]?1:0))+(("r"===t[4]?4:0)+("w"===t[5]?2:0)+("x"===t[6]?1:0))+(("r"===t[8]?4:0)+("w"===t[9]?2:0)+("x"===t[10]?1:0))}},,,,,function(t,e,r){"use strict";const n=r(74),o=r(0)((t,e)=>e.includes(t)),i=n(t=>t&&t.length,[function(t,e){const r=t.split("").join(".*")+".*",n=RegExp(`^${r}$`,"i"),o=n.test.bind(n);return e.filter(o)},function(t,e){return e.filter(o(t))}]);t.exports=(t,e)=>(function(t,e){if("string"!=typeof t)throw Error("pattern should be string!");if(!Array.isArray(e))throw Error("list should be an array!")}(t,e),i(t,e)||[])},function(t,e,r){"use strict";const n=r(0),o=r(37),i=r(75),s=n((t,e)=>t(e)),a=t=>t,u=n((t,e)=>e(...t));t.exports=function(t,e){e||(e=t,t=a);!function(t,e){if("function"!=typeof t)throw Error("condition should be function!");if(!Array.isArray(e))throw Error("filters should be an array!");!function(t,e){const r=i(t=>{throw Error(`fn should be ${t}!`)},t),n=i((t,e)=>t!==e,t);if(!e.length)return r(t);e.map(t=>typeof t).filter(n).forEach(r)}("function",e)}(t,e);const r=function(t){let e;return r=>{let n;return t(r)?e=n=r:(n=e,e=null),n}}(t),n=i(o,t,r),c=e.map(s(n)).reverse();return(...t)=>(c.some(u(t)),r())}},function(t,e,r){"use strict";t.exports=(t,...e)=>(function(t){if("function"!=typeof t)throw Error("fn should be function!")}(t),(...r)=>{const n=[...e,...r];return t(...n)})},,,,,,,,,,function(t,e,r){"use strict";const n=r(12),o=r(86),{entries:i}=Object;t.exports=function t(e,r,s,a=""){let u="";a&&(a+=".");for(const[c,l]of i(e)){let e,i="",f="",h="";const p=a+c;"object"!=typeof l?r[p]=l:(i=n(o.MAIN,{items:t(l,r,s,p)}),f=" menu-submenu",h=' data-menu="js-submenu"'),s.icon&&(e=c.replace(/\(|\)/g,"").replace(/\s/g,"-").toLowerCase(),f+=" icon icon-"+e),u+=n(o.ITEM,{name:c,subitems:i,className:f,attribute:h,path:p})}return u}},function(t,e,r){"use strict";t.exports.MAIN='<ul data-name="js-menu" class="menu menu-hidden">{{ items }}</ul>',t.exports.ITEM='<li data-name="js-menu-item" class="menu-item{{ className }}"{{ attribute }}><label data-menu-path="{{ path }}">{{ name }}</label>{{ subitems }}</li>'},function(t,e,r){"use strict";t.exports=class{getItem(t){return this.isName(t)?t.parentElement:t}getName(t){return t?this.isName(t)?t:t.querySelector("[data-menu-path]"):null}isName(t){return!!t&&t.hasAttribute("data-menu-path")}isItem(t){return this.checkElementsName(t,"js-menu-item")}isMenu(t){return this.checkElementsName(t,"js-menu")}checkElementsName(t,e,r){if(r||(r="data-name"),t){if(t.getAttribute(r)===e)return!0}return!1}isSubMenu(t){const e=this.getItem(t);return this.checkElementsName(e,"js-submenu","data-menu")}}},,,function(t,e,r){"use strict";const n=r(91);t.exports=(t,e)=>(function(t,e){if(!t)throw Error("pattern could not be empty!");if(!Array.isArray(e))throw Error("names should be an array!")}(t,e),e.map(o(t)));const o=t=>(e,r)=>{const[o,i]=function(t){const e=t.lastIndexOf(".");return~e?[t.substr(0,e),t.substr(e)]:[t,""]}(e),s=n(new Date,{sep:"-"});return t.replace("[n]",o).replace("[e]",i).replace("[c]",r+1).replace("[ymd]",s)}},function(t,e,r){"use strict";t.exports=(t,e)=>{(function(t,e){const r={}.toString.call(t);if(t&&"[object Date]"!==r)throw Error("date should be Date!");if(e&&"object"!=typeof e)throw Error("options should be object!")})(t=t||new Date,e),e||(e={});const{sep:r=".",order:n="big"}=e;let o=t.getDate(),i=t.getMonth()+1;const s=t.getFullYear();switch(i<=9&&(i="0"+i),o<=9&&(o="0"+o),n){case"big":return[s,i,o].join(r);case"middle":return[i,o,s].join(r);case"little":return[o,i,s].join(r);default:throw Error('order could be "big", "middle" and "little" only!')}}},,,,function(t,e,r){"use strict";const n=r(7),o=r(0),i=r(2);r(175);const s=r(96),a=r(39),u=r(22),c=r(97),l=()=>{},f=n({}),h=o((t,e,r)=>u(t).addEventListener(r,e)),{isArray:p}=Array;t.exports.open=(t,e={})=>{if(function(t){if(!t)throw Error("inner should be DOM-element!")}(t),u("main"))return;const{beforeShow:r=l,beforeClose:n=l,afterShow:o=l,afterClose:m=l,onOverlayClick:y=l,autoSize:w=!1,index:v=0,helpers:b={},title:x=""}=e;f({beforeClose:n,afterClose:m}),r();const C=p(t),E=b.title&&x||C,A=c({autoSize:w,isTitle:E}),P=i("div",{innerHTML:'\n <div class="modal-child" data-name="modal-child">\n <div class="modal-close" data-name="modal-close"></div>\n </div>\n',className:A,dataName:"modal-main"});((t,e,r)=>{r.map(h(t,e))})("main",d(y),["click","contextmenu"]),u("close").addEventListener("click",g);const k=u("child");return C?s(k,t,{index:v,afterShow:o,helpers:b}):(k.appendChild(t),E&&a(x,k),o(),P)};const d=o((t,e)=>{e.target===u("main")&&(g(),t(e))}),g=()=>{const t=u("main"),{beforeClose:e=l,afterClose:r=l}=f();t&&(e(),document.body.removeChild(t),r())};t.exports.close=g,t.exports._optionsStore=f,t.exports._onMainClick=d},function(t,e,r){"use strict";const n=r(8),o=r(7),i=r(2),s=r(39),a=r(22),u=o(),c=o(),l=n((t,e)=>d(u()+1,t,e)),f=n((t,e)=>d(u()-1,t,e)),h=n((t,e)=>{t.hidden=!1,e()}),p=(t,e)=>function r(n){let o=u();const{keyCode:i}=n;if(37===i)--o;else{if(39!==i)return 27===i?document.body.removeEventListener("keydown",r):void 0;++o}d(o,t,e)};function d(t,e,r){const n=r.length-1;if(t<0||t>n)return;u(t),a("nav-left").hidden=!t,a("nav-right").hidden=t===n;const{href:o,title:i}=r[t];e.src=o,e.title=i,e.href=i,e.alt=i,c().title&&s(i,a("child"))}function g(t,e,r){return function n(o){r(o),t.removeEventListener(e,n)}}function m(t,e,r){t.addEventListener(e,g(t,e,r))}t.exports=function(t,e,{afterShow:r,helpers:n,index:o}){u(o),c(n);const s=function(){const t=document.createElement("img");return t.className="modal-image",t}();t.appendChild(s),t.hidden=!0,t.appendChild(i("div",{className:"modal-nav modal-nav-left",dataName:"modal-nav-left",innerHTML:"<span></span>"})),t.appendChild(i("div",{className:"modal-nav modal-nav-right",dataName:"modal-nav-right",innerHTML:'<span data-name="modal-next"></span>'})),d(o,s,e),m(s,"load",h(t,r)),a("nav-left").addEventListener("click",f(s,e)),a("nav-right").addEventListener("click",l(s,e)),document.body.addEventListener("keydown",p(s,e))},t.exports._rmListener=g,t.exports._addListenerOnce=m,t.exports._onKeydown=p,t.exports._indexStore=u,t.exports._helpersStore=c,t.exports._onload=h},function(t,e,r){"use strict";t.exports=({autoSize:t,isTitle:e})=>{const r=["modal-main"];return t&&r.push("modal-autosize"),e&&r.push("modal-is-title"),r.join(" ")}},,function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,o="/"===s.charAt(0))}return(o?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!o).join("/"))||"."},e.normalize=function(t){var i=e.isAbsolute(t),s="/"===o(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!i).join("/"))||i||(t="."),t&&s&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),a=s,u=0;u<s;u++)if(o[u]!==i[u]){a=u;break}var c=[];for(u=a;u<o.length;u++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,o=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!o){r=e+1;break}}else-1===n&&(o=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,o=!0,i=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===n&&(o=!1,n=s+1),46===a?-1===e?e=s:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===i||1===i&&e===n-1&&e===r+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(23))},,,,,,function(t,e,r){"use strict";if(!window.olark){const t=document.createElement("script"),[e]=document.getElementsByTagName("script");t.async=1,t.src="//static.olark.com/jsclient/loader.js",e.parentNode.insertBefore(t,e);const r=window.olark=(...t)=>{n.s.push(t),n.t.push(Number(new Date))};r.extend=(t,e)=>{r("extend",t,e)},r.identify=t=>{r("identify",n.i=t)},r.configure=(t,e)=>{r("configure",t,e),n.c[t]=e};const n=r._={s:[],t:[Number(new Date)],c:{},l:"static.olark.com/jsclient/loader.js"}}t.exports=window.olark},,,,,function(t,e,r){"use strict";t.exports=(t,e)=>{Object.keys(e).forEach(((t,e)=>r=>t(r,e[r]))(t,e))}},,,,,,,,function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=s,e.default=function(e,r,n,i={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(t.emitWarning)t.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}n=Math.max(n,0);return s(e,{start:{column:n,line:r}},i)};var n=r(119);let o=!1;const i=/\r\n|[\n\r\u2028\u2029]/;function s(t,e,r={}){const o=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r),s=(0,n.getChalk)(r),a=function(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}(s),u=(t,e)=>o?t(e):e,c=t.split(i),{start:l,end:f,markerLines:h}=function(t,e,r){const n=Object.assign({column:0,line:-1},t.start),o=Object.assign({},n,t.end),{linesAbove:i=2,linesBelow:s=3}=r||{},a=n.line,u=n.column,c=o.line,l=o.column;let f=Math.max(a-(i+1),0),h=Math.min(e.length,c+s);-1===a&&(f=0),-1===c&&(h=e.length);const p=c-a,d={};if(p)for(let t=0;t<=p;t++){const r=t+a;if(u)if(0===t){const t=e[r-1].length;d[r]=[u,t-u+1]}else if(t===p)d[r]=[0,l];else{const n=e[r-t].length;d[r]=[0,n]}else d[r]=!0}else d[a]=u===l?!u||[u,0]:[u,l-u];return{start:f,end:h,markerLines:d}}(e,c,r),p=e.start&&"number"==typeof e.start.column,d=String(f).length;let g=(o?(0,n.default)(t,r):t).split(i,f).slice(l,f).map((t,e)=>{const n=l+1+e,o=` ${(" "+n).slice(-d)} |`,i=h[n],s=!h[n+1];if(i){let e="";if(Array.isArray(i)){const n=t.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),c=i[1]||1;e=["\n ",u(a.gutter,o.replace(/\d/g," "))," ",n,u(a.marker,"^").repeat(c)].join(""),s&&r.message&&(e+=" "+u(a.message,r.message))}return[u(a.marker,">"),u(a.gutter,o),t.length>0?" "+t:"",e].join("")}return` ${u(a.gutter,o)}${t.length>0?" "+t:""}`}).join("\n");return r.message&&!p&&(g=`${" ".repeat(d+1)}${r.message}\n${g}`),o?s.reset(g):g}}).call(this,r(23))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e={}){if(""!==t&&l(e)){const r=f(e);return function(t,e){let r="";for(const{type:n,value:o}of c(e)){const e=t[n];r+=e?o.split(a).map(t=>e(t)).join("\n"):o}return r}(function(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.grey,invalid:t.white.bgRed.bold}}(r),t)}return t},e.getChalk=f,e.shouldHighlight=l;var n=r(120),o=r(121),i=r(124);const s=new Set(["as","async","from","get","of","set"]);const a=/\r\n|[\n\r\u2028\u2029]/,u=/^[()[\]{}]$/;let c;{const t=/^[a-z][\w-]*$/i,e=function(e,r,n){if("name"===e.type){if((0,o.isKeyword)(e.value)||(0,o.isStrictReservedWord)(e.value,!0)||s.has(e.value))return"keyword";if(t.test(e.value)&&("<"===n[r-1]||"</"==n.slice(r-2,r)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&u.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};c=function*(t){let r;for(;r=n.default.exec(t);){const o=n.matchToToken(r);yield{type:e(o,r.index,t),value:o.value}}}}function l(t){return!!i.supportsColor||t.forceColor}function f(t){return t.forceColor?new i.constructor({enabled:!0,level:1}):i}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var e={type:"invalid",value:t[0],closed:void 0};return t[1]?(e.type="string",e.closed=!(!t[3]&&!t[4])):t[5]?e.type="comment":t[6]?(e.type="comment",e.closed=!!t[7]):t[8]?e.type="regex":t[9]?e.type="number":t[10]?e.type="name":t[11]?e.type="punctuator":t[12]&&(e.type="whitespace"),e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return n.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return n.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return n.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return o.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return o.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return o.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return o.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return o.isStrictReservedWord}});var n=r(122),o=r(123)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=f,e.isIdentifierName=function(t){let e=!0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(55296==(64512&n)&&r+1<t.length){const e=t.charCodeAt(++r);56320==(64512&e)&&(n=65536+((1023&n)<<10)+(1023&e))}if(e){if(e=!1,!l(n))return!1}else if(!f(n))return!1}return!e},e.isIdentifierStart=l;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const i=new RegExp("["+n+"]"),s=new RegExp("["+n+o+"]");n=o=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function c(t,e){let r=65536;for(let n=0,o=e.length;n<o;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function l(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&i.test(String.fromCharCode(t)):c(t,a)))}function f(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&s.test(String.fromCharCode(t)):c(t,a)||c(t,u))))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=function(t){return i.has(t)},e.isReservedWord=u,e.isStrictBindOnlyReservedWord=l,e.isStrictBindReservedWord=function(t,e){return c(t,e)||l(t)},e.isStrictReservedWord=c;const n=["implements","interface","let","package","private","protected","public","static","yield"],o=["eval","arguments"],i=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),s=new Set(n),a=new Set(o);function u(t,e){return e&&"await"===t||"enum"===t}function c(t,e){return u(t,e)||s.has(t)}function l(t){return a.has(t)}},function(t,e,r){"use strict";(function(e){const n=r(125),o=r(126),i=r(131).stdout,s=r(132),a="win32"===e.platform&&!(e.env.TERM||"").toLowerCase().startsWith("xterm"),u=["ansi","ansi","ansi256","ansi16m"],c=new Set(["gray"]),l=Object.create(null);function f(t,e){e=e||{};const r=i?i.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function h(t){if(!this||!(this instanceof h)||this.template){const e={};return f(e,t),e.template=function(){const t=[].slice.call(arguments);return m.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,h.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=h,e.template}f(this,t)}a&&(o.blue.open="");for(const t of Object.keys(o))o[t].closeRe=new RegExp(n(o[t].close),"g"),l[t]={get(){const e=o[t];return d.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};l.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const t of Object.keys(o.color.ansi))c.has(t)||(l[t]={get(){const e=this.level;return function(){const r=o.color[u[e]][t].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const t of Object.keys(o.bgColor.ansi)){if(c.has(t))continue;l["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r=o.bgColor[u[e]][t].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}}}const p=Object.defineProperties(()=>{},l);function d(t,e,r){const n=function(){return g.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function g(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=o.dim.open;a&&this.hasGrey&&(o.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return o.dim.open=n,r}function m(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(h.prototype,l),t.exports=h(),t.exports.supportsColor=i,t.exports.default=t.exports}).call(this,r(23))},function(t,e,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(n,"\\$&")}},function(t,e,r){"use strict";(function(t){const e=r(128),n=(t,r)=>function(){const n=t.apply(e,arguments);return`[${n+r}m`},o=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};5;${n}m`},i=(t,r)=>function(){const n=t.apply(e,arguments);return`[${38+r};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{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],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.grey=r.color.gray;for(const e of Object.keys(r)){const n=r[e];for(const e of Object.keys(n)){const o=n[e];r[e]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[e]=r[e],t.set(o[0],o[1])}Object.defineProperty(r,e,{value:n,enumerable:!1}),Object.defineProperty(r,"codes",{value:t,enumerable:!1})}const s=t=>t,a=(t,e,r)=>[t,e,r];r.color.close="",r.bgColor.close="",r.color.ansi={ansi:n(s,0)},r.color.ansi256={ansi256:o(s,0)},r.color.ansi16m={rgb:i(a,0)},r.bgColor.ansi={ansi:n(s,10)},r.bgColor.ansi256={ansi256:o(s,10)},r.bgColor.ansi16m={rgb:i(a,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const s=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in s&&(r.color.ansi[t]=n(s.ansi16,0),r.bgColor.ansi[t]=n(s.ansi16,10)),"ansi256"in s&&(r.color.ansi256[t]=o(s.ansi256,0),r.bgColor.ansi256[t]=o(s.ansi256,10)),"rgb"in s&&(r.color.ansi16m[t]=i(s.rgb,0),r.bgColor.ansi16m[t]=i(s.rgb,10))}return r}})}).call(this,r(127)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(40),o=r(130),i={};Object.keys(n).forEach((function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var e=o(t);Object.keys(e).forEach((function(r){var n=e[r];i[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){var n=r(40);function o(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),s=i.length,a=0;a<s;a++){var u=i[a],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,r.unshift(u))}return e}function i(t,e){return function(r){return e(t(r))}}function s(t,e){for(var r=[e[t].parent,t],o=n[e[t].parent][t],s=e[t].parent;e[s].parent;)r.unshift(e[s].parent),o=i(n[e[s].parent][s],o),s=e[s].parent;return o.conversion=r,o}t.exports=function(t){for(var e=o(t),r={},n=Object.keys(e),i=n.length,a=0;a<i;a++){var u=n[a];null!==e[u].parent&&(r[u]=s(u,e))}return r}},function(t,e,r){"use strict";t.exports={stdout:!1,stderr:!1}},function(t,e,r){"use strict";const n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function u(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):a.get(t)||t}function c(t,e){const r=[],n=e.trim().split(/\s*,\s*/g);let o;for(const e of n)if(isNaN(e)){if(!(o=e.match(i)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(o[2].replace(s,(t,e,r)=>e?u(e):r))}else r.push(Number(e));return r}function l(t){o.lastIndex=0;const e=[];let r;for(;null!==(r=o.exec(t));){const t=r[1];if(r[2]){const n=c(t,r[2]);e.push([t].concat(n))}else e.push([t])}return e}function f(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error("Unknown Chalk style: "+t);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,e)=>{const r=[],o=[];let i=[];if(e.replace(n,(e,n,s,a,c,h)=>{if(n)i.push(u(n));else if(a){const e=i.join("");i=[],o.push(0===r.length?e:f(t,r)(e)),r.push({inverse:s,styles:l(a)})}else if(c){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(f(t,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),o.push(i.join("")),r.length>0){const t=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},,,,,,,function(t,e){"undefined"!=typeof window&&function(t){"use strict";if(t.DOMTokenList){var e=document.createElement("a").classList,r=DOMTokenList.prototype,n=r.add,o=r.remove,i=r.toggle;e.add("c1","c2");var s=function(t){return function(){var e,r=arguments;for(e=0;e<r.length;e+=1)t.call(this,r[e])}};e.contains("c2")||(r.add=s(n),r.remove=s(o)),e.toggle("c1",!0)||(r.toggle=function(t,e){return void 0===e?i.call(this,t):((e?n:o).call(this,t),!!e)})}}(window),"undefined"!=typeof window&&function(t){"use strict";var e=[],r=function(t,r){var n;if(e.indexOf)return e.indexOf.call(t,r);for(n=0;n<t.length;n++)if(t[n]===r)return n;return-1},n=function(t){if(""===t||/[\u0009\u000A\u000C\u000D\u0020]/.test(t))throw new Error("Token must not be empty or contain whitespace.")},o=function(t,e){var r,n=[];if(t&&e&&(this.element=t,this.prop=e,t[e]))for(n=t[e].replace(/^\s+|\s+$/g,"").split(/\s+/),r=0;r<n.length;r++)this[r]=n[r];this.length=n.length};o.prototype={add:function(){var t,r=this,o=arguments;for(t=0;t<o.length;t++)n(o[t]),r.contains(o[t])||e.push.call(r,o[t]);r.element&&(r.element[r.prop]=r)},contains:function(t){return n(t),-1!==r(this,t)},item:function(t){return this[t]||null},remove:function(){var t,o,i=arguments,s=this;for(o=0;o<i.length;o++)n(i[o]),-1!==(t=r(s,i[o]))&&e.splice.call(s,t,1);s.element&&(s.element[s.prop]=s)},toggle:function(t,e){return this.contains(t)?!!e||(this.remove(t),!1):!1!==e&&(this.add(t),!0)},toString:function(){return e.join.call(this," ")}},t.DOMTokenList=o}(window),"undefined"!=typeof window&&function(){"use strict";"classList"in document.createElement("a")||Object.defineProperty(Element.prototype,"classList",{get:function(){return new DOMTokenList(this,"className")}})}(),"undefined"!=typeof window&&function(){"use strict";if(!("relList"in document.createElement("a"))){var t,e=[HTMLAnchorElement,HTMLAreaElement,HTMLLinkElement],r=function(){return new DOMTokenList(this,"rel")};for(t=0;t<e.length;t++)Object.defineProperty(e[t].prototype,"relList",{get:r})}}(),"undefined"!=typeof window&&function(){"use strict";"undefined"!=typeof SVGElement&&("classList"in document.createElementNS("http://www.w3.org/2000/svg","svg")&&!window.QUnit||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){return"string"==typeof this.className?new DOMTokenList(this,"className"):"string"==typeof this.className.baseVal?new DOMTokenList(this.className,"baseVal"):void 0}}))}()},function(t,e,r){"use strict";function n(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function o(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function i(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return o(r.overflowY,e)||o(r.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function s(t,e,r,n,o,i,s,a){return i<t&&s>e||i>t&&s<e?0:i<=t&&a<=r||s>=e&&a>=r?i-t-n:s>e&&a<r||i<t&&a>r?s-e+o:0}r.r(e);var a=function(t,e){var r=window,o=e.scrollMode,a=e.block,u=e.inline,c=e.boundary,l=e.skipOverflowHiddenElements,f="function"==typeof c?c:function(t){return t!==c};if(!n(t))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,p=[],d=t;n(d)&&f(d);){if((d=d.parentElement)===h){p.push(d);break}null!=d&&d===document.body&&i(d)&&!i(document.documentElement)||null!=d&&i(d,l)&&p.push(d)}for(var g=r.visualViewport?r.visualViewport.width:innerWidth,m=r.visualViewport?r.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),b=v.height,x=v.width,C=v.top,E=v.right,A=v.bottom,P=v.left,k="start"===a||"nearest"===a?C:"end"===a?A:C+b/2,_="center"===u?P+x/2:"end"===u?E:P,M=[],O=0;O<p.length;O++){var S=p[O],T=S.getBoundingClientRect(),j=T.height,R=T.width,D=T.top,N=T.right,L=T.bottom,B=T.left;if("if-needed"===o&&C>=0&&P>=0&&A<=m&&E<=g&&C>=D&&A<=L&&P>=B&&E<=N)return M;var I=getComputedStyle(S),F=parseInt(I.borderLeftWidth,10),U=parseInt(I.borderTopWidth,10),$=parseInt(I.borderRightWidth,10),Y=parseInt(I.borderBottomWidth,10),z=0,H=0,W="offsetWidth"in S?S.offsetWidth-S.clientWidth-F-$:0,q="offsetHeight"in S?S.offsetHeight-S.clientHeight-U-Y:0;if(h===S)z="start"===a?k:"end"===a?k-m:"nearest"===a?s(w,w+m,m,U,Y,w+k,w+k+b,b):k-m/2,H="start"===u?_:"center"===u?_-g/2:"end"===u?_-g:s(y,y+g,g,F,$,y+_,y+_+x,x),z=Math.max(0,z+w),H=Math.max(0,H+y);else{z="start"===a?k-D-U:"end"===a?k-L+Y+q:"nearest"===a?s(D,L,j,U,Y+q,k,k+b,b):k-(D+j/2)+q/2,H="start"===u?_-B-F:"center"===u?_-(B+R/2)+W/2:"end"===u?_-N+$+W:s(B,N,R,F,$+W,_,_+x,x);var G=S.scrollLeft,V=S.scrollTop;k+=V-(z=Math.max(0,Math.min(V+z,S.scrollHeight-j+q))),_+=G-(H=Math.max(0,Math.min(G+H,S.scrollWidth-R+W)))}M.push({el:S,top:z,left:H})}return M};function u(t){return t===Object(t)&&0!==Object.keys(t).length}e.default=function(t,e){var r=t.isConnected||t.ownerDocument.documentElement.contains(t);if(u(e)&&"function"==typeof e.behavior)return e.behavior(r?a(t,e):[]);if(r){var n=function(t){return!1===t?{block:"end",inline:"nearest"}:u(t)?t:{block:"start",inline:"nearest"}}(e);return function(t,e){void 0===e&&(e="auto");var r="scrollBehavior"in document.body.style;t.forEach((function(t){var n=t.el,o=t.top,i=t.left;n.scroll&&r?n.scroll({top:o,left:i,behavior:e}):(n.scrollTop=o,n.scrollLeft=i)}))}(a(t,n),n.behavior)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},,,function(t,e){},,function(t,e){},,,,,function(t,e){}]]);
11
11
  //# sourceMappingURL=cloudcmd.common.js.map