diff --git a/CHANGELOG.md b/CHANGELOG.md index 75d5eda..2ff1498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.12.3](https://github.com/atom-ide-community/atom-ide-datatip/compare/v0.12.2...v0.12.3) (2020-07-21) + + +### Bug Fixes + +* increase default wait time to 200 ([86e4a7d](https://github.com/atom-ide-community/atom-ide-datatip/commit/86e4a7df43667dcd469920ab6ec44ecddcfdfad2)) + ## [0.12.2](https://github.com/atom-ide-community/atom-ide-datatip/compare/v0.12.1...v0.12.2) (2020-07-05) ### Bug Fixes diff --git a/dist/index-41163023.js b/dist/index-18d0da9a.js similarity index 96% rename from dist/index-41163023.js rename to dist/index-18d0da9a.js index 0b3bd9a..8382f78 100644 --- a/dist/index-41163023.js +++ b/dist/index-18d0da9a.js @@ -1,2 +1,2 @@ -"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t,r=e(require("atom")),s=require("./main-a718d403.js"),i=e(require("assert")),n=e(require("fs")),o=e(require("util")),a=e(require("path")),l=(t=a)&&"object"==typeof t&&"default"in t?t.default:t;let c=!1;var p={promptUser:async function(e,t){const r=l.join(atom.getConfigDirPath(),"package-deps-state.json");let s=atom.config.get("atom-package-deps.ignored")||[];if(await I.fs.exists(r)){const e=JSON.parse(await I.fs.readFile(r,"utf8"));atom.config.set("atom-package-deps.ignored",s=e.ignored),await I.fs.unlink(r)}return s.includes(e)?"No":(atom.packages.isPackageDisabled("notifications"),new Promise((function(r){const i=atom.notifications.addInfo(e+" needs to install dependencies",{dismissable:!0,icon:"cloud-download",detail:t.map(e=>e.name).join(", "),description:`Install dependenc${1===t.length?"y":"ies"}?`,buttons:[{text:"Yes",onDidClick:()=>{r("Yes"),i.dismiss()}},{text:"No Thanks",onDidClick:()=>{r("No"),i.dismiss()}},{text:"Never",onDidClick:()=>{s=atom.config.get("atom-package-deps.ignored")||[],s.push(e),atom.config.set("atom-package-deps.ignored",s),c||(c=!0,atom.notifications.addInfo("How to reset package-deps memory",{dismissable:!0,description:"To modify the list of ignored files invoke 'Application: Open Your Config' and change the 'atom-package-deps' section"})),r("Never"),i.dismiss()}}]});i.onDidDismiss(()=>r("No"))})))}},E=r;class h{constructor(e,t){this.name=e,this.dependencies=t;const r=atom.notifications.addInfo(`Installing ${e} dependencies`,{detail:"Installing "+t.map(e=>e.name).join(", "),dismissable:!0}),s=document.createElement("progress");this.dispose=function(){r.dismiss()},this.advance=function(){s.value+=1},s.max=t.length,s.style.width="100%";try{let e=atom.views.getView(r);null!=e&&null!=e.element&&(e=e.element);const t=e.querySelector(".detail-content")||e.querySelector(".content");t&&t.appendChild(s)}catch(e){}}complete(e){if(this.dispose(),!e.size)return void atom.notifications.addSuccess(`Installed ${this.name} dependencies`,{detail:"Installed "+this.dependencies.map(e=>e.name).join(", ")});const t=[];e.forEach((e,r)=>{t.push(" • "+r)}),atom.notifications.addWarning(`Failed to install ${this.name} dependencies`,{detail:"These packages were not installed, check your console\nfor more info.\n"+t.join("\n"),dismissable:!0})}}const u=new Set(["✓","done"]),d=/(?:Installing|Moving) (.*?) to .* (.*)/;function f(e,t){const r=new Map;return Promise.all(e.map((function(e){return(s=atom.packages.getApmPath(),i=["install",e.url||e.name,"--production","--color","false"],new Promise((function(e){const t={stdout:[],stderr:[]};new E.BufferedProcess({command:s,args:i,stdout(e){t.stdout.push(e)},stderr(e){t.stderr.push(e)},exit(){e({stdout:t.stdout.join(""),stderr:t.stderr.join("")})},autoStart:!1}).start()}))).then((function(r){let s=d.test(r.stdout);if(s){const e=d.exec(r.stdout);s=e&&u.has(e[2])}if(t(e.name,!!s),!s){const t=new Error("Error installing dependency: "+e.name);throw t.stack=r.stderr,t}})).catch((function(t){r.set(e.name,t)}));var s,i}))).then((function(){return r}))}var m={performInstall:async function(e,t){const r=new h(e,t),s=await f(t,(function(){r.advance()}));return r.complete(s),Promise.all(t.map(e=>s.has(e.name)?null:atom.packages.activatePackage(e.name)))}},I=s.createCommonjsModule((function(e,t){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var s=r(i),l=r(n),c=r(o),E=r(a);function h(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var u=h((function(e,t){e.exports=function(e){for(var t=0;t{if(!Buffer.isBuffer(e))throw new TypeError("Expected a Buffer, got "+typeof e);return 239===e[0]&&187===e[1]&&191===e[2]&&u(e)?e.slice(3):e},f=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(h((function(e){var t=s(l),r=s(d);function s(e){return e&&e.__esModule?e:{default:e}}const i={},n=["Stats","_toUnixTimestamp","watch","watchFile","unwatchFile"];Object.keys(t.default).forEach((function(e){const r=t.default[e];"function"!=typeof r||e.includes("Sync")||e.includes("Stream")||n.includes(e)?i[e]=r:i[e]=(0,c.promisify)(r)})),i.exists=function(e){return new Promise((function(r){t.default.access(e,t.default.R_OK,(function(e){r(null===e)}))}))},i.readFile=function(e,s){return new Promise((function(i,n){t.default.readFile(e,(function(e,t){if(e)return void n(e);let o=(0,r.default)(t);s&&(o=o.toString(s)),i(o)}))}))},e.exports=i}))),I={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},$="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>{}:()=>{},R=h((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=I,s=(t=e.exports={}).re=[],i=t.src=[],n=t.t={};let o=0;const a=(e,t,r)=>{const a=o++;n[e]=a,i[a]=t,s[a]=new RegExp(t,r?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION",`(${i[n.NUMERICIDENTIFIER]})\\.(${i[n.NUMERICIDENTIFIER]})\\.(${i[n.NUMERICIDENTIFIER]})`),a("MAINVERSIONLOOSE",`(${i[n.NUMERICIDENTIFIERLOOSE]})\\.(${i[n.NUMERICIDENTIFIERLOOSE]})\\.(${i[n.NUMERICIDENTIFIERLOOSE]})`),a("PRERELEASEIDENTIFIER",`(?:${i[n.NUMERICIDENTIFIER]}|${i[n.NONNUMERICIDENTIFIER]})`),a("PRERELEASEIDENTIFIERLOOSE",`(?:${i[n.NUMERICIDENTIFIERLOOSE]}|${i[n.NONNUMERICIDENTIFIER]})`),a("PRERELEASE",`(?:-(${i[n.PRERELEASEIDENTIFIER]}(?:\\.${i[n.PRERELEASEIDENTIFIER]})*))`),a("PRERELEASELOOSE",`(?:-?(${i[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[n.PRERELEASEIDENTIFIERLOOSE]})*))`),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD",`(?:\\+(${i[n.BUILDIDENTIFIER]}(?:\\.${i[n.BUILDIDENTIFIER]})*))`),a("FULLPLAIN",`v?${i[n.MAINVERSION]}${i[n.PRERELEASE]}?${i[n.BUILD]}?`),a("FULL",`^${i[n.FULLPLAIN]}$`),a("LOOSEPLAIN",`[v=\\s]*${i[n.MAINVERSIONLOOSE]}${i[n.PRERELEASELOOSE]}?${i[n.BUILD]}?`),a("LOOSE",`^${i[n.LOOSEPLAIN]}$`),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE",i[n.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),a("XRANGEIDENTIFIER",i[n.NUMERICIDENTIFIER]+"|x|X|\\*"),a("XRANGEPLAIN",`[v=\\s]*(${i[n.XRANGEIDENTIFIER]})(?:\\.(${i[n.XRANGEIDENTIFIER]})(?:\\.(${i[n.XRANGEIDENTIFIER]})(?:${i[n.PRERELEASE]})?${i[n.BUILD]}?)?)?`),a("XRANGEPLAINLOOSE",`[v=\\s]*(${i[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[n.XRANGEIDENTIFIERLOOSE]})(?:${i[n.PRERELEASELOOSE]})?${i[n.BUILD]}?)?)?`),a("XRANGE",`^${i[n.GTLT]}\\s*${i[n.XRANGEPLAIN]}$`),a("XRANGELOOSE",`^${i[n.GTLT]}\\s*${i[n.XRANGEPLAINLOOSE]}$`),a("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),a("COERCERTL",i[n.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM",`(\\s*)${i[n.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",a("TILDE",`^${i[n.LONETILDE]}${i[n.XRANGEPLAIN]}$`),a("TILDELOOSE",`^${i[n.LONETILDE]}${i[n.XRANGEPLAINLOOSE]}$`),a("LONECARET","(?:\\^)"),a("CARETTRIM",`(\\s*)${i[n.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",a("CARET",`^${i[n.LONECARET]}${i[n.XRANGEPLAIN]}$`),a("CARETLOOSE",`^${i[n.LONECARET]}${i[n.XRANGEPLAINLOOSE]}$`),a("COMPARATORLOOSE",`^${i[n.GTLT]}\\s*(${i[n.LOOSEPLAIN]})$|^$`),a("COMPARATOR",`^${i[n.GTLT]}\\s*(${i[n.FULLPLAIN]})$|^$`),a("COMPARATORTRIM",`(\\s*)${i[n.GTLT]}\\s*(${i[n.LOOSEPLAIN]}|${i[n.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE",`^\\s*(${i[n.XRANGEPLAIN]})\\s+-\\s+(${i[n.XRANGEPLAIN]})\\s*$`),a("HYPHENRANGELOOSE",`^\\s*(${i[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[n.XRANGEPLAINLOOSE]})\\s*$`),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const N=/^[0-9]+$/,O=(e,t)=>{const r=N.test(e),s=N.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:eO(t,e)};const{MAX_LENGTH:T,MAX_SAFE_INTEGER:A}=I,{re:v,t:g}=R,{compareIdentifiers:P}=L;class w{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>T)throw new TypeError(`version is longer than ${T} characters`);this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?v[g.LOOSE]:v[g.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>A||this.major<0)throw new TypeError("Invalid major version");if(this.minor>A||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>A||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var S=w,y=(e,t,r)=>new S(e,r).compare(new S(t,r)),D=(e,t,r,s)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return((e,t,r)=>0===y(e,t,r))(e,r,s);case"!=":return((e,t,r)=>0!==y(e,t,r))(e,r,s);case">":return((e,t,r)=>y(e,t,r)>0)(e,r,s);case">=":return((e,t,r)=>y(e,t,r)>=0)(e,r,s);case"<":return((e,t,r)=>y(e,t,r)<0)(e,r,s);case"<=":return((e,t,r)=>y(e,t,r)<=0)(e,r,s);default:throw new TypeError("Invalid operator: "+t)}};const C=Symbol("SemVer ANY");class M{static get ANY(){return C}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof M){if(e.loose===!!t.loose)return e;e=e.value}this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,$("comp",this)}parse(e){const t=this.options.loose?F[G.COMPARATORLOOSE]:F[G.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new S(r[2],this.options.loose):this.semver=C}toString(){return this.value}test(e){if($("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new S(e,this.options)}catch(e){return!1}return D(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof M))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new _(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new _(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,n=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=D(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),a=D(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||i&&n||o||a}}var j=M;const{re:F,t:G}=R;class b{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof b)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new b(e.raw,t);if(e instanceof j)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?k[X.HYPHENRANGELOOSE]:k[X.HYPHENRANGE];e=(e=e.replace(r,te(this.options.includePrerelease))).replace(k[X.COMPARATORTRIM],U),$("comparator trim",e,k[X.COMPARATORTRIM]),e=(e=(e=e.replace(k[X.TILDETRIM],x)).replace(k[X.CARETTRIM],B)).split(/\s+/).join(" ");const s=t?k[X.COMPARATORLOOSE]:k[X.COMPARATOR];return e.split(" ").map(e=>H(e,this.options)).join(" ").split(/\s+/).map(e=>ee(e,this.options)).filter(this.options.loose?e=>!!e.match(s):()=>!0).map(e=>new j(e,this.options))}intersects(e,t){if(!(e instanceof b))throw new TypeError("a Range is required");return this.set.some(r=>q(r,t)&&e.set.some(e=>q(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new S(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0;const s=e.slice();let i=s.pop();for(;r&&s.length;)r=s.every(e=>i.intersects(e,t)),i=s.pop();return r},H=(e,t)=>(e=Z(e,t),e=Y(e,t),e=K(e,t),e=Q(e)),V=e=>!e||"x"===e.toLowerCase()||"*"===e,Y=(e,t)=>e.trim().split(/\s+/).map(e=>z(e,t)).join(" "),z=(e,t)=>{const r=t.loose?k[X.TILDELOOSE]:k[X.TILDE];return e.replace(r,(e,t,r,s,i)=>{let n;return n=V(t)?"":V(r)?`>=${t}.0.0 <${+t+1}.0.0-0`:V(s)?`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:i?`>=${t}.${r}.${s}-${i} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${s} <${t}.${+r+1}.0-0`,n})},Z=(e,t)=>e.trim().split(/\s+/).map(e=>J(e,t)).join(" "),J=(e,t)=>{const r=t.loose?k[X.CARETLOOSE]:k[X.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(e,t,r,i,n)=>{let o;return o=V(t)?"":V(r)?`>=${t}.0.0${s} <${+t+1}.0.0-0`:V(i)?"0"===t?`>=${t}.${r}.0${s} <${t}.${+r+1}.0-0`:`>=${t}.${r}.0${s} <${+t+1}.0.0-0`:n?"0"===t?"0"===r?`>=${t}.${r}.${i}-${n} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}-${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i}-${n} <${+t+1}.0.0-0`:"0"===t?"0"===r?`>=${t}.${r}.${i}${s} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}${s} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i} <${+t+1}.0.0-0`,o})},K=(e,t)=>e.split(/\s+/).map(e=>W(e,t)).join(" "),W=(e,t)=>{e=e.trim();const r=t.loose?k[X.XRANGELOOSE]:k[X.XRANGE];return e.replace(r,(e,r,s,i,n,o)=>{const a=V(s),l=a||V(i),c=l||V(n),p=c;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",a?e=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(l&&(i=0),n=0,">"===r?(r=">=",l?(s=+s+1,i=0,n=0):(i=+i+1,n=0)):"<="===r&&(r="<",l?s=+s+1:i=+i+1),"<"===r&&(o="-0"),e=`${r+s}.${i}.${n}${o}`):l?e=`>=${s}.0.0${o} <${+s+1}.0.0-0`:c&&(e=`>=${s}.${i}.0${o} <${s}.${+i+1}.0-0`),e})},Q=(e,t)=>e.trim().replace(k[X.STAR],""),ee=(e,t)=>e.trim().replace(k[t.includePrerelease?X.GTE0PRE:X.GTE0],""),te=e=>(t,r,s,i,n,o,a,l,c,p,E,h,u)=>`${r=V(s)?"":V(i)?`>=${s}.0.0${e?"-0":""}`:V(n)?`>=${s}.${i}.0${e?"-0":""}`:o?">="+r:`>=${r}${e?"-0":""}`} ${l=V(c)?"":V(p)?`<${+c+1}.0.0-0`:V(E)?`<${c}.${+p+1}.0-0`:h?`<=${c}.${p}.${E}-${h}`:e?`<${c}.${p}.${+E+1}-0`:"<="+l}`.trim(),re=(e,t,r)=>{for(let r=0;r0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0};const se=/(.*?):.*/,ie=/(.*?)#.*/;void 0===window.__steelbrain_package_deps&&(window.__steelbrain_package_deps=new Set),t.fs=f,t.installDependencies=async function(e,t=!0){s(e,"[Package-Deps] Package name is required");const r=await async function(e){const t=atom.packages.getLoadedPackage(e),r=t&&t.metadata["package-deps"];return Array.isArray(r)?(await Promise.all(r.map((async function(e){let t=null,r=e,s=null;const i=se.exec(e),n=ie.exec(e);if(i?[,r,s]=i:n?[,r,t]=n:r=e,__steelbrain_package_deps.has(r))return null;const o=atom.packages.resolvePackagePath(r);if(o){if(!s)return null;const e=JSON.parse(await f.readFile(E.join(o,"package.json")));if(null!=e&&null!=e.version&&((e,t,r)=>{try{t=new _(t,r)}catch(e){return!1}return t.test(e)})(e.version,">="+s))return null}return __steelbrain_package_deps.add(r),{name:r,url:t}})))).filter(Boolean):[]}(e);if(r.length){if(t){let t="Yes";if(await Promise.resolve().then((function(){return p})).then(async({promptUser:s})=>{t=await s(e,r)}),"Yes"!==t)return}await Promise.resolve().then((function(){return m})).then(async({performInstall:t})=>t(e,r))}}})),$=s.createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.install=I.installDependencies})),R=Object.freeze(Object.assign(Object.create(null),$,{default:$,__moduleExports:$}));exports.index=R; -//# sourceMappingURL=index-41163023.js.map +"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t,r=e(require("atom")),s=require("./main-99cbbe62.js"),i=e(require("assert")),n=e(require("fs")),o=e(require("util")),a=e(require("path")),l=(t=a)&&"object"==typeof t&&"default"in t?t.default:t;let c=!1;var p={promptUser:async function(e,t){const r=l.join(atom.getConfigDirPath(),"package-deps-state.json");let s=atom.config.get("atom-package-deps.ignored")||[];if(await I.fs.exists(r)){const e=JSON.parse(await I.fs.readFile(r,"utf8"));atom.config.set("atom-package-deps.ignored",s=e.ignored),await I.fs.unlink(r)}return s.includes(e)?"No":(atom.packages.isPackageDisabled("notifications"),new Promise((function(r){const i=atom.notifications.addInfo(e+" needs to install dependencies",{dismissable:!0,icon:"cloud-download",detail:t.map(e=>e.name).join(", "),description:`Install dependenc${1===t.length?"y":"ies"}?`,buttons:[{text:"Yes",onDidClick:()=>{r("Yes"),i.dismiss()}},{text:"No Thanks",onDidClick:()=>{r("No"),i.dismiss()}},{text:"Never",onDidClick:()=>{s=atom.config.get("atom-package-deps.ignored")||[],s.push(e),atom.config.set("atom-package-deps.ignored",s),c||(c=!0,atom.notifications.addInfo("How to reset package-deps memory",{dismissable:!0,description:"To modify the list of ignored files invoke 'Application: Open Your Config' and change the 'atom-package-deps' section"})),r("Never"),i.dismiss()}}]});i.onDidDismiss(()=>r("No"))})))}},E=r;class h{constructor(e,t){this.name=e,this.dependencies=t;const r=atom.notifications.addInfo(`Installing ${e} dependencies`,{detail:"Installing "+t.map(e=>e.name).join(", "),dismissable:!0}),s=document.createElement("progress");this.dispose=function(){r.dismiss()},this.advance=function(){s.value+=1},s.max=t.length,s.style.width="100%";try{let e=atom.views.getView(r);null!=e&&null!=e.element&&(e=e.element);const t=e.querySelector(".detail-content")||e.querySelector(".content");t&&t.appendChild(s)}catch(e){}}complete(e){if(this.dispose(),!e.size)return void atom.notifications.addSuccess(`Installed ${this.name} dependencies`,{detail:"Installed "+this.dependencies.map(e=>e.name).join(", ")});const t=[];e.forEach((e,r)=>{t.push(" • "+r)}),atom.notifications.addWarning(`Failed to install ${this.name} dependencies`,{detail:"These packages were not installed, check your console\nfor more info.\n"+t.join("\n"),dismissable:!0})}}const u=new Set(["✓","done"]),f=/(?:Installing|Moving) (.*?) to .* (.*)/;function d(e,t){const r=new Map;return Promise.all(e.map((function(e){return(s=atom.packages.getApmPath(),i=["install",e.url||e.name,"--production","--color","false"],new Promise((function(e){const t={stdout:[],stderr:[]};new E.BufferedProcess({command:s,args:i,stdout(e){t.stdout.push(e)},stderr(e){t.stderr.push(e)},exit(){e({stdout:t.stdout.join(""),stderr:t.stderr.join("")})},autoStart:!1}).start()}))).then((function(r){let s=f.test(r.stdout);if(s){const e=f.exec(r.stdout);s=e&&u.has(e[2])}if(t(e.name,!!s),!s){const t=new Error("Error installing dependency: "+e.name);throw t.stack=r.stderr,t}})).catch((function(t){r.set(e.name,t)}));var s,i}))).then((function(){return r}))}var m={performInstall:async function(e,t){const r=new h(e,t),s=await d(t,(function(){r.advance()}));return r.complete(s),Promise.all(t.map(e=>s.has(e.name)?null:atom.packages.activatePackage(e.name)))}},I=s.createCommonjsModule((function(e,t){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var s=r(i),l=r(n),c=r(o),E=r(a);function h(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var u=h((function(e,t){e.exports=function(e){for(var t=0;t{if(!Buffer.isBuffer(e))throw new TypeError("Expected a Buffer, got "+typeof e);return 239===e[0]&&187===e[1]&&191===e[2]&&u(e)?e.slice(3):e},d=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(h((function(e){var t=s(l),r=s(f);function s(e){return e&&e.__esModule?e:{default:e}}const i={},n=["Stats","_toUnixTimestamp","watch","watchFile","unwatchFile"];Object.keys(t.default).forEach((function(e){const r=t.default[e];"function"!=typeof r||e.includes("Sync")||e.includes("Stream")||n.includes(e)?i[e]=r:i[e]=(0,c.promisify)(r)})),i.exists=function(e){return new Promise((function(r){t.default.access(e,t.default.R_OK,(function(e){r(null===e)}))}))},i.readFile=function(e,s){return new Promise((function(i,n){t.default.readFile(e,(function(e,t){if(e)return void n(e);let o=(0,r.default)(t);s&&(o=o.toString(s)),i(o)}))}))},e.exports=i}))),I={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},$="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>{}:()=>{},R=h((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=I,s=(t=e.exports={}).re=[],i=t.src=[],n=t.t={};let o=0;const a=(e,t,r)=>{const a=o++;n[e]=a,i[a]=t,s[a]=new RegExp(t,r?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION",`(${i[n.NUMERICIDENTIFIER]})\\.(${i[n.NUMERICIDENTIFIER]})\\.(${i[n.NUMERICIDENTIFIER]})`),a("MAINVERSIONLOOSE",`(${i[n.NUMERICIDENTIFIERLOOSE]})\\.(${i[n.NUMERICIDENTIFIERLOOSE]})\\.(${i[n.NUMERICIDENTIFIERLOOSE]})`),a("PRERELEASEIDENTIFIER",`(?:${i[n.NUMERICIDENTIFIER]}|${i[n.NONNUMERICIDENTIFIER]})`),a("PRERELEASEIDENTIFIERLOOSE",`(?:${i[n.NUMERICIDENTIFIERLOOSE]}|${i[n.NONNUMERICIDENTIFIER]})`),a("PRERELEASE",`(?:-(${i[n.PRERELEASEIDENTIFIER]}(?:\\.${i[n.PRERELEASEIDENTIFIER]})*))`),a("PRERELEASELOOSE",`(?:-?(${i[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[n.PRERELEASEIDENTIFIERLOOSE]})*))`),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD",`(?:\\+(${i[n.BUILDIDENTIFIER]}(?:\\.${i[n.BUILDIDENTIFIER]})*))`),a("FULLPLAIN",`v?${i[n.MAINVERSION]}${i[n.PRERELEASE]}?${i[n.BUILD]}?`),a("FULL",`^${i[n.FULLPLAIN]}$`),a("LOOSEPLAIN",`[v=\\s]*${i[n.MAINVERSIONLOOSE]}${i[n.PRERELEASELOOSE]}?${i[n.BUILD]}?`),a("LOOSE",`^${i[n.LOOSEPLAIN]}$`),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE",i[n.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),a("XRANGEIDENTIFIER",i[n.NUMERICIDENTIFIER]+"|x|X|\\*"),a("XRANGEPLAIN",`[v=\\s]*(${i[n.XRANGEIDENTIFIER]})(?:\\.(${i[n.XRANGEIDENTIFIER]})(?:\\.(${i[n.XRANGEIDENTIFIER]})(?:${i[n.PRERELEASE]})?${i[n.BUILD]}?)?)?`),a("XRANGEPLAINLOOSE",`[v=\\s]*(${i[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[n.XRANGEIDENTIFIERLOOSE]})(?:${i[n.PRERELEASELOOSE]})?${i[n.BUILD]}?)?)?`),a("XRANGE",`^${i[n.GTLT]}\\s*${i[n.XRANGEPLAIN]}$`),a("XRANGELOOSE",`^${i[n.GTLT]}\\s*${i[n.XRANGEPLAINLOOSE]}$`),a("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),a("COERCERTL",i[n.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM",`(\\s*)${i[n.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",a("TILDE",`^${i[n.LONETILDE]}${i[n.XRANGEPLAIN]}$`),a("TILDELOOSE",`^${i[n.LONETILDE]}${i[n.XRANGEPLAINLOOSE]}$`),a("LONECARET","(?:\\^)"),a("CARETTRIM",`(\\s*)${i[n.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",a("CARET",`^${i[n.LONECARET]}${i[n.XRANGEPLAIN]}$`),a("CARETLOOSE",`^${i[n.LONECARET]}${i[n.XRANGEPLAINLOOSE]}$`),a("COMPARATORLOOSE",`^${i[n.GTLT]}\\s*(${i[n.LOOSEPLAIN]})$|^$`),a("COMPARATOR",`^${i[n.GTLT]}\\s*(${i[n.FULLPLAIN]})$|^$`),a("COMPARATORTRIM",`(\\s*)${i[n.GTLT]}\\s*(${i[n.LOOSEPLAIN]}|${i[n.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE",`^\\s*(${i[n.XRANGEPLAIN]})\\s+-\\s+(${i[n.XRANGEPLAIN]})\\s*$`),a("HYPHENRANGELOOSE",`^\\s*(${i[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[n.XRANGEPLAINLOOSE]})\\s*$`),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const N=/^[0-9]+$/,O=(e,t)=>{const r=N.test(e),s=N.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:eO(t,e)};const{MAX_LENGTH:T,MAX_SAFE_INTEGER:A}=I,{re:v,t:g}=R,{compareIdentifiers:P}=L;class w{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>T)throw new TypeError(`version is longer than ${T} characters`);this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?v[g.LOOSE]:v[g.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>A||this.major<0)throw new TypeError("Invalid major version");if(this.minor>A||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>A||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var S=w,y=(e,t,r)=>new S(e,r).compare(new S(t,r)),D=(e,t,r,s)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return((e,t,r)=>0===y(e,t,r))(e,r,s);case"!=":return((e,t,r)=>0!==y(e,t,r))(e,r,s);case">":return((e,t,r)=>y(e,t,r)>0)(e,r,s);case">=":return((e,t,r)=>y(e,t,r)>=0)(e,r,s);case"<":return((e,t,r)=>y(e,t,r)<0)(e,r,s);case"<=":return((e,t,r)=>y(e,t,r)<=0)(e,r,s);default:throw new TypeError("Invalid operator: "+t)}};const C=Symbol("SemVer ANY");class M{static get ANY(){return C}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof M){if(e.loose===!!t.loose)return e;e=e.value}this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,$("comp",this)}parse(e){const t=this.options.loose?F[G.COMPARATORLOOSE]:F[G.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new S(r[2],this.options.loose):this.semver=C}toString(){return this.value}test(e){if($("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new S(e,this.options)}catch(e){return!1}return D(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof M))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new _(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new _(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,n=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=D(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),a=D(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||i&&n||o||a}}var j=M;const{re:F,t:G}=R;class b{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof b)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new b(e.raw,t);if(e instanceof j)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?k[X.HYPHENRANGELOOSE]:k[X.HYPHENRANGE];e=(e=e.replace(r,te(this.options.includePrerelease))).replace(k[X.COMPARATORTRIM],U),$("comparator trim",e,k[X.COMPARATORTRIM]),e=(e=(e=e.replace(k[X.TILDETRIM],x)).replace(k[X.CARETTRIM],B)).split(/\s+/).join(" ");const s=t?k[X.COMPARATORLOOSE]:k[X.COMPARATOR];return e.split(" ").map(e=>H(e,this.options)).join(" ").split(/\s+/).map(e=>ee(e,this.options)).filter(this.options.loose?e=>!!e.match(s):()=>!0).map(e=>new j(e,this.options))}intersects(e,t){if(!(e instanceof b))throw new TypeError("a Range is required");return this.set.some(r=>q(r,t)&&e.set.some(e=>q(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new S(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0;const s=e.slice();let i=s.pop();for(;r&&s.length;)r=s.every(e=>i.intersects(e,t)),i=s.pop();return r},H=(e,t)=>(e=Z(e,t),e=Y(e,t),e=K(e,t),e=Q(e)),V=e=>!e||"x"===e.toLowerCase()||"*"===e,Y=(e,t)=>e.trim().split(/\s+/).map(e=>z(e,t)).join(" "),z=(e,t)=>{const r=t.loose?k[X.TILDELOOSE]:k[X.TILDE];return e.replace(r,(e,t,r,s,i)=>{let n;return n=V(t)?"":V(r)?`>=${t}.0.0 <${+t+1}.0.0-0`:V(s)?`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:i?`>=${t}.${r}.${s}-${i} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${s} <${t}.${+r+1}.0-0`,n})},Z=(e,t)=>e.trim().split(/\s+/).map(e=>J(e,t)).join(" "),J=(e,t)=>{const r=t.loose?k[X.CARETLOOSE]:k[X.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(e,t,r,i,n)=>{let o;return o=V(t)?"":V(r)?`>=${t}.0.0${s} <${+t+1}.0.0-0`:V(i)?"0"===t?`>=${t}.${r}.0${s} <${t}.${+r+1}.0-0`:`>=${t}.${r}.0${s} <${+t+1}.0.0-0`:n?"0"===t?"0"===r?`>=${t}.${r}.${i}-${n} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}-${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i}-${n} <${+t+1}.0.0-0`:"0"===t?"0"===r?`>=${t}.${r}.${i}${s} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}${s} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i} <${+t+1}.0.0-0`,o})},K=(e,t)=>e.split(/\s+/).map(e=>W(e,t)).join(" "),W=(e,t)=>{e=e.trim();const r=t.loose?k[X.XRANGELOOSE]:k[X.XRANGE];return e.replace(r,(e,r,s,i,n,o)=>{const a=V(s),l=a||V(i),c=l||V(n),p=c;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",a?e=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(l&&(i=0),n=0,">"===r?(r=">=",l?(s=+s+1,i=0,n=0):(i=+i+1,n=0)):"<="===r&&(r="<",l?s=+s+1:i=+i+1),"<"===r&&(o="-0"),e=`${r+s}.${i}.${n}${o}`):l?e=`>=${s}.0.0${o} <${+s+1}.0.0-0`:c&&(e=`>=${s}.${i}.0${o} <${s}.${+i+1}.0-0`),e})},Q=(e,t)=>e.trim().replace(k[X.STAR],""),ee=(e,t)=>e.trim().replace(k[t.includePrerelease?X.GTE0PRE:X.GTE0],""),te=e=>(t,r,s,i,n,o,a,l,c,p,E,h,u)=>`${r=V(s)?"":V(i)?`>=${s}.0.0${e?"-0":""}`:V(n)?`>=${s}.${i}.0${e?"-0":""}`:o?">="+r:`>=${r}${e?"-0":""}`} ${l=V(c)?"":V(p)?`<${+c+1}.0.0-0`:V(E)?`<${c}.${+p+1}.0-0`:h?`<=${c}.${p}.${E}-${h}`:e?`<${c}.${p}.${+E+1}-0`:"<="+l}`.trim(),re=(e,t,r)=>{for(let r=0;r0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0};const se=/(.*?):.*/,ie=/(.*?)#.*/;void 0===window.__steelbrain_package_deps&&(window.__steelbrain_package_deps=new Set),t.fs=d,t.installDependencies=async function(e,t=!0){s(e,"[Package-Deps] Package name is required");const r=await async function(e){const t=atom.packages.getLoadedPackage(e),r=t&&t.metadata["package-deps"];return Array.isArray(r)?(await Promise.all(r.map((async function(e){let t=null,r=e,s=null;const i=se.exec(e),n=ie.exec(e);if(i?[,r,s]=i:n?[,r,t]=n:r=e,__steelbrain_package_deps.has(r))return null;const o=atom.packages.resolvePackagePath(r);if(o){if(!s)return null;const e=JSON.parse(await d.readFile(E.join(o,"package.json")));if(null!=e&&null!=e.version&&((e,t,r)=>{try{t=new _(t,r)}catch(e){return!1}return t.test(e)})(e.version,">="+s))return null}return __steelbrain_package_deps.add(r),{name:r,url:t}})))).filter(Boolean):[]}(e);if(r.length){if(t){let t="Yes";if(await Promise.resolve().then((function(){return p})).then(async({promptUser:s})=>{t=await s(e,r)}),"Yes"!==t)return}await Promise.resolve().then((function(){return m})).then(async({performInstall:t})=>t(e,r))}}})),$=s.createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.install=I.installDependencies})),R=Object.freeze(Object.assign(Object.create(null),$,{default:$,__moduleExports:$}));exports.index=R; +//# sourceMappingURL=index-18d0da9a.js.map diff --git a/dist/index-41163023.js.map b/dist/index-18d0da9a.js.map similarity index 99% rename from dist/index-41163023.js.map rename to dist/index-18d0da9a.js.map index 06af1ca..69c886b 100644 --- a/dist/index-41163023.js.map +++ b/dist/index-18d0da9a.js.map @@ -1 +1 @@ -{"version":3,"file":"index-41163023.js","sources":["../node_modules/atom-package-deps/lib/prompt-afef23e0.js","../node_modules/atom-package-deps/lib/install-03586186.js","../node_modules/atom-package-deps/lib/index-6660c169.js"],"sourcesContent":["\"use strict\";require(\"assert\");var e=require(\"./index-6660c169.js\");require(\"fs\"),require(\"util\");var i,t=(i=require(\"path\"))&&\"object\"==typeof i&&\"default\"in i?i.default:i;let o=!1;exports.promptUser=async function(i,s){const a=t.join(atom.getConfigDirPath(),\"package-deps-state.json\");let n=atom.config.get(\"atom-package-deps.ignored\")||[];if(await e.fs.exists(a)){const i=JSON.parse(await e.fs.readFile(a,\"utf8\"));atom.config.set(\"atom-package-deps.ignored\",n=i.ignored),await e.fs.unlink(a)}return n.includes(i)?\"No\":(atom.packages.isPackageDisabled(\"notifications\"),new Promise((function(e){const t=atom.notifications.addInfo(i+\" needs to install dependencies\",{dismissable:!0,icon:\"cloud-download\",detail:s.map(e=>e.name).join(\", \"),description:`Install dependenc${1===s.length?\"y\":\"ies\"}?`,buttons:[{text:\"Yes\",onDidClick:()=>{e(\"Yes\"),t.dismiss()}},{text:\"No Thanks\",onDidClick:()=>{e(\"No\"),t.dismiss()}},{text:\"Never\",onDidClick:()=>{n=atom.config.get(\"atom-package-deps.ignored\")||[],n.push(i),atom.config.set(\"atom-package-deps.ignored\",n),o||(o=!0,atom.notifications.addInfo(\"How to reset package-deps memory\",{dismissable:!0,description:\"To modify the list of ignored files invoke 'Application: Open Your Config' and change the 'atom-package-deps' section\"})),e(\"Never\"),t.dismiss()}}]});t.onDidDismiss(()=>e(\"No\"))})))};\n//# sourceMappingURL=prompt-afef23e0.js.map\n","\"use strict\";var e=require(\"atom\");class t{constructor(e,t){this.name=e,this.dependencies=t;const n=atom.notifications.addInfo(`Installing ${e} dependencies`,{detail:\"Installing \"+t.map(e=>e.name).join(\", \"),dismissable:!0}),s=document.createElement(\"progress\");this.dispose=function(){n.dismiss()},this.advance=function(){s.value+=1},s.max=t.length,s.style.width=\"100%\";try{let e=atom.views.getView(n);null!=e&&null!=e.element&&(e=e.element);const t=e.querySelector(\".detail-content\")||e.querySelector(\".content\");t&&t.appendChild(s)}catch(e){}}complete(e){if(this.dispose(),!e.size)return void atom.notifications.addSuccess(`Installed ${this.name} dependencies`,{detail:\"Installed \"+this.dependencies.map(e=>e.name).join(\", \")});const t=[];e.forEach((e,n)=>{t.push(\" • \"+n)}),atom.notifications.addWarning(`Failed to install ${this.name} dependencies`,{detail:\"These packages were not installed, check your console\\nfor more info.\\n\"+t.join(\"\\n\"),dismissable:!0})}}const n=new Set([\"✓\",\"done\"]),s=/(?:Installing|Moving) (.*?) to .* (.*)/;function a(t,a){const o=new Map;return Promise.all(t.map((function(t){return(i=atom.packages.getApmPath(),c=[\"install\",t.url||t.name,\"--production\",\"--color\",\"false\"],new Promise((function(t){const n={stdout:[],stderr:[]};new e.BufferedProcess({command:i,args:c,stdout(e){n.stdout.push(e)},stderr(e){n.stderr.push(e)},exit(){t({stdout:n.stdout.join(\"\"),stderr:n.stderr.join(\"\")})},autoStart:!1}).start()}))).then((function(e){let o=s.test(e.stdout);if(o){const t=s.exec(e.stdout);o=t&&n.has(t[2])}if(a(t.name,!!o),!o){const n=new Error(\"Error installing dependency: \"+t.name);throw n.stack=e.stderr,n}})).catch((function(e){o.set(t.name,e)}));var i,c}))).then((function(){return o}))}exports.performInstall=async function(e,n){const s=new t(e,n),o=await a(n,(function(){s.advance()}));return s.complete(o),Promise.all(n.map(e=>o.has(e.name)?null:atom.packages.activatePackage(e.name)))};\n//# sourceMappingURL=install-03586186.js.map\n","\"use strict\";function e(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var r=e(require(\"assert\")),t=e(require(\"fs\")),s=e(require(\"util\")),i=e(require(\"path\"));function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function n(e,r,t){return e(t={path:r,exports:{},require:function(e,r){return function(){throw new Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(null==r&&t.path)}},t.exports),t.exports}var a=n((function(e,r){e.exports=function(e){for(var r=0;r{if(!Buffer.isBuffer(e))throw new TypeError(\"Expected a Buffer, got \"+typeof e);return 239===e[0]&&187===e[1]&&191===e[2]&&a(e)?e.slice(3):e},l=o(n((function(e){var r=o(t),i=o(E);function o(e){return e&&e.__esModule?e:{default:e}}const n={},a=[\"Stats\",\"_toUnixTimestamp\",\"watch\",\"watchFile\",\"unwatchFile\"];Object.keys(r.default).forEach((function(e){const t=r.default[e];\"function\"!=typeof t||e.includes(\"Sync\")||e.includes(\"Stream\")||a.includes(e)?n[e]=t:n[e]=(0,s.promisify)(t)})),n.exists=function(e){return new Promise((function(t){r.default.access(e,r.default.R_OK,(function(e){t(null===e)}))}))},n.readFile=function(e,t){return new Promise((function(s,o){r.default.readFile(e,(function(e,r){if(e)return void o(e);let n=(0,i.default)(r);t&&(n=n.toString(t)),s(n)}))}))},e.exports=n})));var p={SEMVER_SPEC_VERSION:\"2.0.0\",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var c=\"object\"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\\bsemver\\b/i.test(process.env.NODE_DEBUG)?(...e)=>{}:()=>{},h=n((function(e,r){const{MAX_SAFE_COMPONENT_LENGTH:t}=p,s=(r=e.exports={}).re=[],i=r.src=[],o=r.t={};let n=0;const a=(e,r,t)=>{const a=n++;c(a,r),o[e]=a,i[a]=r,s[a]=new RegExp(r,t?\"g\":void 0)};a(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\d*\"),a(\"NUMERICIDENTIFIERLOOSE\",\"[0-9]+\"),a(\"NONNUMERICIDENTIFIER\",\"\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\"),a(\"MAINVERSION\",`(${i[o.NUMERICIDENTIFIER]})\\\\.(${i[o.NUMERICIDENTIFIER]})\\\\.(${i[o.NUMERICIDENTIFIER]})`),a(\"MAINVERSIONLOOSE\",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),a(\"PRERELEASEIDENTIFIER\",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),a(\"PRERELEASEIDENTIFIERLOOSE\",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),a(\"PRERELEASE\",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\\\.${i[o.PRERELEASEIDENTIFIER]})*))`),a(\"PRERELEASELOOSE\",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),a(\"BUILDIDENTIFIER\",\"[0-9A-Za-z-]+\"),a(\"BUILD\",`(?:\\\\+(${i[o.BUILDIDENTIFIER]}(?:\\\\.${i[o.BUILDIDENTIFIER]})*))`),a(\"FULLPLAIN\",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),a(\"FULL\",`^${i[o.FULLPLAIN]}$`),a(\"LOOSEPLAIN\",`[v=\\\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),a(\"LOOSE\",`^${i[o.LOOSEPLAIN]}$`),a(\"GTLT\",\"((?:<|>)?=?)\"),a(\"XRANGEIDENTIFIERLOOSE\",i[o.NUMERICIDENTIFIERLOOSE]+\"|x|X|\\\\*\"),a(\"XRANGEIDENTIFIER\",i[o.NUMERICIDENTIFIER]+\"|x|X|\\\\*\"),a(\"XRANGEPLAIN\",`[v=\\\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\\\.(${i[o.XRANGEIDENTIFIER]})(?:\\\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),a(\"XRANGEPLAINLOOSE\",`[v=\\\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),a(\"XRANGE\",`^${i[o.GTLT]}\\\\s*${i[o.XRANGEPLAIN]}$`),a(\"XRANGELOOSE\",`^${i[o.GTLT]}\\\\s*${i[o.XRANGEPLAINLOOSE]}$`),a(\"COERCE\",`(^|[^\\\\d])(\\\\d{1,${t}})(?:\\\\.(\\\\d{1,${t}}))?(?:\\\\.(\\\\d{1,${t}}))?(?:$|[^\\\\d])`),a(\"COERCERTL\",i[o.COERCE],!0),a(\"LONETILDE\",\"(?:~>?)\"),a(\"TILDETRIM\",`(\\\\s*)${i[o.LONETILDE]}\\\\s+`,!0),r.tildeTrimReplace=\"$1~\",a(\"TILDE\",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),a(\"TILDELOOSE\",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),a(\"LONECARET\",\"(?:\\\\^)\"),a(\"CARETTRIM\",`(\\\\s*)${i[o.LONECARET]}\\\\s+`,!0),r.caretTrimReplace=\"$1^\",a(\"CARET\",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),a(\"CARETLOOSE\",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),a(\"COMPARATORLOOSE\",`^${i[o.GTLT]}\\\\s*(${i[o.LOOSEPLAIN]})$|^$`),a(\"COMPARATOR\",`^${i[o.GTLT]}\\\\s*(${i[o.FULLPLAIN]})$|^$`),a(\"COMPARATORTRIM\",`(\\\\s*)${i[o.GTLT]}\\\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace=\"$1$2$3\",a(\"HYPHENRANGE\",`^\\\\s*(${i[o.XRANGEPLAIN]})\\\\s+-\\\\s+(${i[o.XRANGEPLAIN]})\\\\s*$`),a(\"HYPHENRANGELOOSE\",`^\\\\s*(${i[o.XRANGEPLAINLOOSE]})\\\\s+-\\\\s+(${i[o.XRANGEPLAINLOOSE]})\\\\s*$`),a(\"STAR\",\"(<|>)?=?\\\\s*\\\\*\"),a(\"GTE0\",\"^\\\\s*>=\\\\s*0.0.0\\\\s*$\"),a(\"GTE0PRE\",\"^\\\\s*>=\\\\s*0.0.0-0\\\\s*$\")}));const u=/^[0-9]+$/,$=(e,r)=>{const t=u.test(e),s=u.test(r);return t&&s&&(e=+e,r=+r),e===r?0:t&&!s?-1:s&&!t?1:e$(r,e)};const{MAX_LENGTH:R,MAX_SAFE_INTEGER:f}=p,{re:N,t:m}=h,{compareIdentifiers:O}=I;class L{constructor(e,r){if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),e instanceof L){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(\"string\"!=typeof e)throw new TypeError(\"Invalid Version: \"+e);if(e.length>R)throw new TypeError(`version is longer than ${R} characters`);c(\"SemVer\",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const t=e.trim().match(r.loose?N[m.LOOSE]:N[m.FULL]);if(!t)throw new TypeError(\"Invalid Version: \"+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>f||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>f||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>f||this.patch<0)throw new TypeError(\"Invalid patch version\");t[4]?this.prerelease=t[4].split(\".\").map(e=>{if(/^[0-9]+$/.test(e)){const r=+e;if(r>=0&&r=0;)\"number\"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(\"invalid increment argument: \"+e)}return this.format(),this.raw=this.version,this}}var T=L;var A=(e,r,t)=>new T(e,t).compare(new T(r,t));var v=(e,r,t)=>0===A(e,r,t);var d=(e,r,t)=>0!==A(e,r,t);var S=(e,r,t)=>A(e,r,t)>0;var P=(e,r,t)=>A(e,r,t)>=0;var w=(e,r,t)=>A(e,r,t)<0;var g=(e,r,t)=>A(e,r,t)<=0;var D=(e,r,t,s)=>{switch(r){case\"===\":return\"object\"==typeof e&&(e=e.version),\"object\"==typeof t&&(t=t.version),e===t;case\"!==\":return\"object\"==typeof e&&(e=e.version),\"object\"==typeof t&&(t=t.version),e!==t;case\"\":case\"=\":case\"==\":return v(e,t,s);case\"!=\":return d(e,t,s);case\">\":return S(e,t,s);case\">=\":return P(e,t,s);case\"<\":return w(e,t,s);case\"<=\":return g(e,t,s);default:throw new TypeError(\"Invalid operator: \"+r)}};const y=Symbol(\"SemVer ANY\");class G{static get ANY(){return y}constructor(e,r){if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),e instanceof G){if(e.loose===!!r.loose)return e;e=e.value}c(\"comparator\",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===y?this.value=\"\":this.value=this.operator+this.semver.version,c(\"comp\",this)}parse(e){const r=this.options.loose?C[F.COMPARATORLOOSE]:C[F.COMPARATOR],t=e.match(r);if(!t)throw new TypeError(\"Invalid comparator: \"+e);this.operator=void 0!==t[1]?t[1]:\"\",\"=\"===this.operator&&(this.operator=\"\"),t[2]?this.semver=new T(t[2],this.options.loose):this.semver=y}toString(){return this.value}test(e){if(c(\"Comparator.test\",e,this.options.loose),this.semver===y||e===y)return!0;if(\"string\"==typeof e)try{e=new T(e,this.options)}catch(e){return!1}return D(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof G))throw new TypeError(\"a Comparator is required\");if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),\"\"===this.operator)return\"\"===this.value||new j(e.value,r).test(this.value);if(\"\"===e.operator)return\"\"===e.value||new j(this.value,r).test(e.semver);const t=!(\">=\"!==this.operator&&\">\"!==this.operator||\">=\"!==e.operator&&\">\"!==e.operator),s=!(\"<=\"!==this.operator&&\"<\"!==this.operator||\"<=\"!==e.operator&&\"<\"!==e.operator),i=this.semver.version===e.semver.version,o=!(\">=\"!==this.operator&&\"<=\"!==this.operator||\">=\"!==e.operator&&\"<=\"!==e.operator),n=D(this.semver,\"<\",e.semver,r)&&(\">=\"===this.operator||\">\"===this.operator)&&(\"<=\"===e.operator||\"<\"===e.operator),a=D(this.semver,\">\",e.semver,r)&&(\"<=\"===this.operator||\"<\"===this.operator)&&(\">=\"===e.operator||\">\"===e.operator);return t||s||i&&o||n||a}}var M=G;const{re:C,t:F}=h;class _{constructor(e,r){if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),e instanceof _)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new _(e.raw,r);if(e instanceof M)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split(/\\s*\\|\\|\\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(\"Invalid SemVer Range: \"+e);this.format()}format(){return this.range=this.set.map(e=>e.join(\" \").trim()).join(\"||\").trim(),this.range}toString(){return this.range}parseRange(e){const r=this.options.loose;e=e.trim();const t=r?X[b.HYPHENRANGELOOSE]:X[b.HYPHENRANGE];e=e.replace(t,ee(this.options.includePrerelease)),c(\"hyphen replace\",e),e=e.replace(X[b.COMPARATORTRIM],U),c(\"comparator trim\",e,X[b.COMPARATORTRIM]),e=(e=(e=e.replace(X[b.TILDETRIM],k)).replace(X[b.CARETTRIM],x)).split(/\\s+/).join(\" \");const s=r?X[b.COMPARATORLOOSE]:X[b.COMPARATOR];return e.split(\" \").map(e=>H(e,this.options)).join(\" \").split(/\\s+/).map(e=>W(e,this.options)).filter(this.options.loose?e=>!!e.match(s):()=>!0).map(e=>new M(e,this.options))}intersects(e,r){if(!(e instanceof _))throw new TypeError(\"a Range is required\");return this.set.some(t=>B(t,r)&&e.set.some(e=>B(e,r)&&t.every(t=>e.every(e=>t.intersects(e,r)))))}test(e){if(!e)return!1;if(\"string\"==typeof e)try{e=new T(e,this.options)}catch(e){return!1}for(let r=0;r{let t=!0;const s=e.slice();let i=s.pop();for(;t&&s.length;)t=s.every(e=>i.intersects(e,r)),i=s.pop();return t},H=(e,r)=>(c(\"comp\",e,r),e=z(e,r),c(\"caret\",e),e=q(e,r),c(\"tildes\",e),e=J(e,r),c(\"xrange\",e),e=Q(e,r),c(\"stars\",e),e),V=e=>!e||\"x\"===e.toLowerCase()||\"*\"===e,q=(e,r)=>e.trim().split(/\\s+/).map(e=>Y(e,r)).join(\" \"),Y=(e,r)=>{const t=r.loose?X[b.TILDELOOSE]:X[b.TILDE];return e.replace(t,(r,t,s,i,o)=>{let n;return c(\"tilde\",e,r,t,s,i,o),V(t)?n=\"\":V(s)?n=`>=${t}.0.0 <${+t+1}.0.0-0`:V(i)?n=`>=${t}.${s}.0 <${t}.${+s+1}.0-0`:o?(c(\"replaceTilde pr\",o),n=`>=${t}.${s}.${i}-${o} <${t}.${+s+1}.0-0`):n=`>=${t}.${s}.${i} <${t}.${+s+1}.0-0`,c(\"tilde return\",n),n})},z=(e,r)=>e.trim().split(/\\s+/).map(e=>Z(e,r)).join(\" \"),Z=(e,r)=>{c(\"caret\",e,r);const t=r.loose?X[b.CARETLOOSE]:X[b.CARET],s=r.includePrerelease?\"-0\":\"\";return e.replace(t,(r,t,i,o,n)=>{let a;return c(\"caret\",e,r,t,i,o,n),V(t)?a=\"\":V(i)?a=`>=${t}.0.0${s} <${+t+1}.0.0-0`:V(o)?a=\"0\"===t?`>=${t}.${i}.0${s} <${t}.${+i+1}.0-0`:`>=${t}.${i}.0${s} <${+t+1}.0.0-0`:n?(c(\"replaceCaret pr\",n),a=\"0\"===t?\"0\"===i?`>=${t}.${i}.${o}-${n} <${t}.${i}.${+o+1}-0`:`>=${t}.${i}.${o}-${n} <${t}.${+i+1}.0-0`:`>=${t}.${i}.${o}-${n} <${+t+1}.0.0-0`):(c(\"no pr\"),a=\"0\"===t?\"0\"===i?`>=${t}.${i}.${o}${s} <${t}.${i}.${+o+1}-0`:`>=${t}.${i}.${o}${s} <${t}.${+i+1}.0-0`:`>=${t}.${i}.${o} <${+t+1}.0.0-0`),c(\"caret return\",a),a})},J=(e,r)=>(c(\"replaceXRanges\",e,r),e.split(/\\s+/).map(e=>K(e,r)).join(\" \")),K=(e,r)=>{e=e.trim();const t=r.loose?X[b.XRANGELOOSE]:X[b.XRANGE];return e.replace(t,(t,s,i,o,n,a)=>{c(\"xRange\",e,t,s,i,o,n,a);const E=V(i),l=E||V(o),p=l||V(n),h=p;return\"=\"===s&&h&&(s=\"\"),a=r.includePrerelease?\"-0\":\"\",E?t=\">\"===s||\"<\"===s?\"<0.0.0-0\":\"*\":s&&h?(l&&(o=0),n=0,\">\"===s?(s=\">=\",l?(i=+i+1,o=0,n=0):(o=+o+1,n=0)):\"<=\"===s&&(s=\"<\",l?i=+i+1:o=+o+1),\"<\"===s&&(a=\"-0\"),t=`${s+i}.${o}.${n}${a}`):l?t=`>=${i}.0.0${a} <${+i+1}.0.0-0`:p&&(t=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),c(\"xRange return\",t),t})},Q=(e,r)=>(c(\"replaceStars\",e,r),e.trim().replace(X[b.STAR],\"\")),W=(e,r)=>(c(\"replaceGTE0\",e,r),e.trim().replace(X[r.includePrerelease?b.GTE0PRE:b.GTE0],\"\")),ee=e=>(r,t,s,i,o,n,a,E,l,p,c,h,u)=>`${t=V(s)?\"\":V(i)?`>=${s}.0.0${e?\"-0\":\"\"}`:V(o)?`>=${s}.${i}.0${e?\"-0\":\"\"}`:n?\">=\"+t:`>=${t}${e?\"-0\":\"\"}`} ${E=V(l)?\"\":V(p)?`<${+l+1}.0.0-0`:V(c)?`<${l}.${+p+1}.0-0`:h?`<=${l}.${p}.${c}-${h}`:e?`<${l}.${p}.${+c+1}-0`:\"<=\"+E}`.trim(),re=(e,r,t)=>{for(let t=0;t0){const s=e[t].semver;if(s.major===r.major&&s.minor===r.minor&&s.patch===r.patch)return!0}return!1}return!0};var te=(e,r,t)=>{try{r=new j(r,t)}catch(e){return!1}return r.test(e)};const se=/(.*?):.*/,ie=/(.*?)#.*/;void 0===window.__steelbrain_package_deps&&(window.__steelbrain_package_deps=new Set),exports.fs=l,exports.installDependencies=async function(e,t=!0){r(e,\"[Package-Deps] Package name is required\");const s=await async function(e){const r=atom.packages.getLoadedPackage(e),t=r&&r.metadata[\"package-deps\"];return Array.isArray(t)?(await Promise.all(t.map((async function(e){let r=null,t=e,s=null;const o=se.exec(e),n=ie.exec(e);if(o?[,t,s]=o:n?[,t,r]=n:t=e,__steelbrain_package_deps.has(t))return null;const a=atom.packages.resolvePackagePath(t);if(a){if(!s)return null;const e=JSON.parse(await l.readFile(i.join(a,\"package.json\")));if(null!=e&&null!=e.version&&te(e.version,\">=\"+s))return null}return __steelbrain_package_deps.add(t),{name:t,url:r}})))).filter(Boolean):[]}(e);if(s.length){if(t){let r=\"Yes\";if(await Promise.resolve().then((function(){return require(\"./prompt-afef23e0.js\")})).then(async({promptUser:t})=>{r=await t(e,s)}),\"Yes\"!==r)return}await Promise.resolve().then((function(){return require(\"./install-03586186.js\")})).then(async({performInstall:r})=>r(e,s))}};\n//# sourceMappingURL=index-6660c169.js.map\n"],"names":["shownStorageInfo","async","packageName","dependencies","oldConfigPath","Path","join","atom","getConfigDirPath","ignoredPackages","config","get","fs","exists","oldConfig","JSON","parse","readFile","set","ignored","unlink","includes","packages","isPackageDisabled","Promise","resolve","notification","notifications","addInfo","dismissable","icon","detail","map","e","name","description","length","buttons","text","onDidClick","dismiss","push","onDidDismiss","View","constructor","item","progress","document","createElement","dispose","advance","value","max","style","width","notificationView","views","getView","element","notificationContent","querySelector","appendChild","_","complete","errors","size","addSuccess","this","forEach","error","addWarning","module","bytes","i","E"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index-18d0da9a.js","sources":["../node_modules/atom-package-deps/lib/prompt-afef23e0.js","../node_modules/atom-package-deps/lib/install-03586186.js","../node_modules/atom-package-deps/lib/index-6660c169.js"],"sourcesContent":["\"use strict\";require(\"assert\");var e=require(\"./index-6660c169.js\");require(\"fs\"),require(\"util\");var i,t=(i=require(\"path\"))&&\"object\"==typeof i&&\"default\"in i?i.default:i;let o=!1;exports.promptUser=async function(i,s){const a=t.join(atom.getConfigDirPath(),\"package-deps-state.json\");let n=atom.config.get(\"atom-package-deps.ignored\")||[];if(await e.fs.exists(a)){const i=JSON.parse(await e.fs.readFile(a,\"utf8\"));atom.config.set(\"atom-package-deps.ignored\",n=i.ignored),await e.fs.unlink(a)}return n.includes(i)?\"No\":(atom.packages.isPackageDisabled(\"notifications\"),new Promise((function(e){const t=atom.notifications.addInfo(i+\" needs to install dependencies\",{dismissable:!0,icon:\"cloud-download\",detail:s.map(e=>e.name).join(\", \"),description:`Install dependenc${1===s.length?\"y\":\"ies\"}?`,buttons:[{text:\"Yes\",onDidClick:()=>{e(\"Yes\"),t.dismiss()}},{text:\"No Thanks\",onDidClick:()=>{e(\"No\"),t.dismiss()}},{text:\"Never\",onDidClick:()=>{n=atom.config.get(\"atom-package-deps.ignored\")||[],n.push(i),atom.config.set(\"atom-package-deps.ignored\",n),o||(o=!0,atom.notifications.addInfo(\"How to reset package-deps memory\",{dismissable:!0,description:\"To modify the list of ignored files invoke 'Application: Open Your Config' and change the 'atom-package-deps' section\"})),e(\"Never\"),t.dismiss()}}]});t.onDidDismiss(()=>e(\"No\"))})))};\n//# sourceMappingURL=prompt-afef23e0.js.map\n","\"use strict\";var e=require(\"atom\");class t{constructor(e,t){this.name=e,this.dependencies=t;const n=atom.notifications.addInfo(`Installing ${e} dependencies`,{detail:\"Installing \"+t.map(e=>e.name).join(\", \"),dismissable:!0}),s=document.createElement(\"progress\");this.dispose=function(){n.dismiss()},this.advance=function(){s.value+=1},s.max=t.length,s.style.width=\"100%\";try{let e=atom.views.getView(n);null!=e&&null!=e.element&&(e=e.element);const t=e.querySelector(\".detail-content\")||e.querySelector(\".content\");t&&t.appendChild(s)}catch(e){}}complete(e){if(this.dispose(),!e.size)return void atom.notifications.addSuccess(`Installed ${this.name} dependencies`,{detail:\"Installed \"+this.dependencies.map(e=>e.name).join(\", \")});const t=[];e.forEach((e,n)=>{t.push(\" • \"+n)}),atom.notifications.addWarning(`Failed to install ${this.name} dependencies`,{detail:\"These packages were not installed, check your console\\nfor more info.\\n\"+t.join(\"\\n\"),dismissable:!0})}}const n=new Set([\"✓\",\"done\"]),s=/(?:Installing|Moving) (.*?) to .* (.*)/;function a(t,a){const o=new Map;return Promise.all(t.map((function(t){return(i=atom.packages.getApmPath(),c=[\"install\",t.url||t.name,\"--production\",\"--color\",\"false\"],new Promise((function(t){const n={stdout:[],stderr:[]};new e.BufferedProcess({command:i,args:c,stdout(e){n.stdout.push(e)},stderr(e){n.stderr.push(e)},exit(){t({stdout:n.stdout.join(\"\"),stderr:n.stderr.join(\"\")})},autoStart:!1}).start()}))).then((function(e){let o=s.test(e.stdout);if(o){const t=s.exec(e.stdout);o=t&&n.has(t[2])}if(a(t.name,!!o),!o){const n=new Error(\"Error installing dependency: \"+t.name);throw n.stack=e.stderr,n}})).catch((function(e){o.set(t.name,e)}));var i,c}))).then((function(){return o}))}exports.performInstall=async function(e,n){const s=new t(e,n),o=await a(n,(function(){s.advance()}));return s.complete(o),Promise.all(n.map(e=>o.has(e.name)?null:atom.packages.activatePackage(e.name)))};\n//# sourceMappingURL=install-03586186.js.map\n","\"use strict\";function e(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var r=e(require(\"assert\")),t=e(require(\"fs\")),s=e(require(\"util\")),i=e(require(\"path\"));function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}function n(e,r,t){return e(t={path:r,exports:{},require:function(e,r){return function(){throw new Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(null==r&&t.path)}},t.exports),t.exports}var a=n((function(e,r){e.exports=function(e){for(var r=0;r{if(!Buffer.isBuffer(e))throw new TypeError(\"Expected a Buffer, got \"+typeof e);return 239===e[0]&&187===e[1]&&191===e[2]&&a(e)?e.slice(3):e},l=o(n((function(e){var r=o(t),i=o(E);function o(e){return e&&e.__esModule?e:{default:e}}const n={},a=[\"Stats\",\"_toUnixTimestamp\",\"watch\",\"watchFile\",\"unwatchFile\"];Object.keys(r.default).forEach((function(e){const t=r.default[e];\"function\"!=typeof t||e.includes(\"Sync\")||e.includes(\"Stream\")||a.includes(e)?n[e]=t:n[e]=(0,s.promisify)(t)})),n.exists=function(e){return new Promise((function(t){r.default.access(e,r.default.R_OK,(function(e){t(null===e)}))}))},n.readFile=function(e,t){return new Promise((function(s,o){r.default.readFile(e,(function(e,r){if(e)return void o(e);let n=(0,i.default)(r);t&&(n=n.toString(t)),s(n)}))}))},e.exports=n})));var p={SEMVER_SPEC_VERSION:\"2.0.0\",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var c=\"object\"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\\bsemver\\b/i.test(process.env.NODE_DEBUG)?(...e)=>{}:()=>{},h=n((function(e,r){const{MAX_SAFE_COMPONENT_LENGTH:t}=p,s=(r=e.exports={}).re=[],i=r.src=[],o=r.t={};let n=0;const a=(e,r,t)=>{const a=n++;c(a,r),o[e]=a,i[a]=r,s[a]=new RegExp(r,t?\"g\":void 0)};a(\"NUMERICIDENTIFIER\",\"0|[1-9]\\\\d*\"),a(\"NUMERICIDENTIFIERLOOSE\",\"[0-9]+\"),a(\"NONNUMERICIDENTIFIER\",\"\\\\d*[a-zA-Z-][a-zA-Z0-9-]*\"),a(\"MAINVERSION\",`(${i[o.NUMERICIDENTIFIER]})\\\\.(${i[o.NUMERICIDENTIFIER]})\\\\.(${i[o.NUMERICIDENTIFIER]})`),a(\"MAINVERSIONLOOSE\",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),a(\"PRERELEASEIDENTIFIER\",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),a(\"PRERELEASEIDENTIFIERLOOSE\",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),a(\"PRERELEASE\",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\\\.${i[o.PRERELEASEIDENTIFIER]})*))`),a(\"PRERELEASELOOSE\",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),a(\"BUILDIDENTIFIER\",\"[0-9A-Za-z-]+\"),a(\"BUILD\",`(?:\\\\+(${i[o.BUILDIDENTIFIER]}(?:\\\\.${i[o.BUILDIDENTIFIER]})*))`),a(\"FULLPLAIN\",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),a(\"FULL\",`^${i[o.FULLPLAIN]}$`),a(\"LOOSEPLAIN\",`[v=\\\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),a(\"LOOSE\",`^${i[o.LOOSEPLAIN]}$`),a(\"GTLT\",\"((?:<|>)?=?)\"),a(\"XRANGEIDENTIFIERLOOSE\",i[o.NUMERICIDENTIFIERLOOSE]+\"|x|X|\\\\*\"),a(\"XRANGEIDENTIFIER\",i[o.NUMERICIDENTIFIER]+\"|x|X|\\\\*\"),a(\"XRANGEPLAIN\",`[v=\\\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\\\.(${i[o.XRANGEIDENTIFIER]})(?:\\\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),a(\"XRANGEPLAINLOOSE\",`[v=\\\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),a(\"XRANGE\",`^${i[o.GTLT]}\\\\s*${i[o.XRANGEPLAIN]}$`),a(\"XRANGELOOSE\",`^${i[o.GTLT]}\\\\s*${i[o.XRANGEPLAINLOOSE]}$`),a(\"COERCE\",`(^|[^\\\\d])(\\\\d{1,${t}})(?:\\\\.(\\\\d{1,${t}}))?(?:\\\\.(\\\\d{1,${t}}))?(?:$|[^\\\\d])`),a(\"COERCERTL\",i[o.COERCE],!0),a(\"LONETILDE\",\"(?:~>?)\"),a(\"TILDETRIM\",`(\\\\s*)${i[o.LONETILDE]}\\\\s+`,!0),r.tildeTrimReplace=\"$1~\",a(\"TILDE\",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),a(\"TILDELOOSE\",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),a(\"LONECARET\",\"(?:\\\\^)\"),a(\"CARETTRIM\",`(\\\\s*)${i[o.LONECARET]}\\\\s+`,!0),r.caretTrimReplace=\"$1^\",a(\"CARET\",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),a(\"CARETLOOSE\",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),a(\"COMPARATORLOOSE\",`^${i[o.GTLT]}\\\\s*(${i[o.LOOSEPLAIN]})$|^$`),a(\"COMPARATOR\",`^${i[o.GTLT]}\\\\s*(${i[o.FULLPLAIN]})$|^$`),a(\"COMPARATORTRIM\",`(\\\\s*)${i[o.GTLT]}\\\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace=\"$1$2$3\",a(\"HYPHENRANGE\",`^\\\\s*(${i[o.XRANGEPLAIN]})\\\\s+-\\\\s+(${i[o.XRANGEPLAIN]})\\\\s*$`),a(\"HYPHENRANGELOOSE\",`^\\\\s*(${i[o.XRANGEPLAINLOOSE]})\\\\s+-\\\\s+(${i[o.XRANGEPLAINLOOSE]})\\\\s*$`),a(\"STAR\",\"(<|>)?=?\\\\s*\\\\*\"),a(\"GTE0\",\"^\\\\s*>=\\\\s*0.0.0\\\\s*$\"),a(\"GTE0PRE\",\"^\\\\s*>=\\\\s*0.0.0-0\\\\s*$\")}));const u=/^[0-9]+$/,$=(e,r)=>{const t=u.test(e),s=u.test(r);return t&&s&&(e=+e,r=+r),e===r?0:t&&!s?-1:s&&!t?1:e$(r,e)};const{MAX_LENGTH:R,MAX_SAFE_INTEGER:f}=p,{re:N,t:m}=h,{compareIdentifiers:O}=I;class L{constructor(e,r){if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),e instanceof L){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(\"string\"!=typeof e)throw new TypeError(\"Invalid Version: \"+e);if(e.length>R)throw new TypeError(`version is longer than ${R} characters`);c(\"SemVer\",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const t=e.trim().match(r.loose?N[m.LOOSE]:N[m.FULL]);if(!t)throw new TypeError(\"Invalid Version: \"+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>f||this.major<0)throw new TypeError(\"Invalid major version\");if(this.minor>f||this.minor<0)throw new TypeError(\"Invalid minor version\");if(this.patch>f||this.patch<0)throw new TypeError(\"Invalid patch version\");t[4]?this.prerelease=t[4].split(\".\").map(e=>{if(/^[0-9]+$/.test(e)){const r=+e;if(r>=0&&r=0;)\"number\"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(\"invalid increment argument: \"+e)}return this.format(),this.raw=this.version,this}}var T=L;var A=(e,r,t)=>new T(e,t).compare(new T(r,t));var v=(e,r,t)=>0===A(e,r,t);var d=(e,r,t)=>0!==A(e,r,t);var S=(e,r,t)=>A(e,r,t)>0;var P=(e,r,t)=>A(e,r,t)>=0;var w=(e,r,t)=>A(e,r,t)<0;var g=(e,r,t)=>A(e,r,t)<=0;var D=(e,r,t,s)=>{switch(r){case\"===\":return\"object\"==typeof e&&(e=e.version),\"object\"==typeof t&&(t=t.version),e===t;case\"!==\":return\"object\"==typeof e&&(e=e.version),\"object\"==typeof t&&(t=t.version),e!==t;case\"\":case\"=\":case\"==\":return v(e,t,s);case\"!=\":return d(e,t,s);case\">\":return S(e,t,s);case\">=\":return P(e,t,s);case\"<\":return w(e,t,s);case\"<=\":return g(e,t,s);default:throw new TypeError(\"Invalid operator: \"+r)}};const y=Symbol(\"SemVer ANY\");class G{static get ANY(){return y}constructor(e,r){if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),e instanceof G){if(e.loose===!!r.loose)return e;e=e.value}c(\"comparator\",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===y?this.value=\"\":this.value=this.operator+this.semver.version,c(\"comp\",this)}parse(e){const r=this.options.loose?C[F.COMPARATORLOOSE]:C[F.COMPARATOR],t=e.match(r);if(!t)throw new TypeError(\"Invalid comparator: \"+e);this.operator=void 0!==t[1]?t[1]:\"\",\"=\"===this.operator&&(this.operator=\"\"),t[2]?this.semver=new T(t[2],this.options.loose):this.semver=y}toString(){return this.value}test(e){if(c(\"Comparator.test\",e,this.options.loose),this.semver===y||e===y)return!0;if(\"string\"==typeof e)try{e=new T(e,this.options)}catch(e){return!1}return D(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof G))throw new TypeError(\"a Comparator is required\");if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),\"\"===this.operator)return\"\"===this.value||new j(e.value,r).test(this.value);if(\"\"===e.operator)return\"\"===e.value||new j(this.value,r).test(e.semver);const t=!(\">=\"!==this.operator&&\">\"!==this.operator||\">=\"!==e.operator&&\">\"!==e.operator),s=!(\"<=\"!==this.operator&&\"<\"!==this.operator||\"<=\"!==e.operator&&\"<\"!==e.operator),i=this.semver.version===e.semver.version,o=!(\">=\"!==this.operator&&\"<=\"!==this.operator||\">=\"!==e.operator&&\"<=\"!==e.operator),n=D(this.semver,\"<\",e.semver,r)&&(\">=\"===this.operator||\">\"===this.operator)&&(\"<=\"===e.operator||\"<\"===e.operator),a=D(this.semver,\">\",e.semver,r)&&(\"<=\"===this.operator||\"<\"===this.operator)&&(\">=\"===e.operator||\">\"===e.operator);return t||s||i&&o||n||a}}var M=G;const{re:C,t:F}=h;class _{constructor(e,r){if(r&&\"object\"==typeof r||(r={loose:!!r,includePrerelease:!1}),e instanceof _)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new _(e.raw,r);if(e instanceof M)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split(/\\s*\\|\\|\\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(\"Invalid SemVer Range: \"+e);this.format()}format(){return this.range=this.set.map(e=>e.join(\" \").trim()).join(\"||\").trim(),this.range}toString(){return this.range}parseRange(e){const r=this.options.loose;e=e.trim();const t=r?X[b.HYPHENRANGELOOSE]:X[b.HYPHENRANGE];e=e.replace(t,ee(this.options.includePrerelease)),c(\"hyphen replace\",e),e=e.replace(X[b.COMPARATORTRIM],U),c(\"comparator trim\",e,X[b.COMPARATORTRIM]),e=(e=(e=e.replace(X[b.TILDETRIM],k)).replace(X[b.CARETTRIM],x)).split(/\\s+/).join(\" \");const s=r?X[b.COMPARATORLOOSE]:X[b.COMPARATOR];return e.split(\" \").map(e=>H(e,this.options)).join(\" \").split(/\\s+/).map(e=>W(e,this.options)).filter(this.options.loose?e=>!!e.match(s):()=>!0).map(e=>new M(e,this.options))}intersects(e,r){if(!(e instanceof _))throw new TypeError(\"a Range is required\");return this.set.some(t=>B(t,r)&&e.set.some(e=>B(e,r)&&t.every(t=>e.every(e=>t.intersects(e,r)))))}test(e){if(!e)return!1;if(\"string\"==typeof e)try{e=new T(e,this.options)}catch(e){return!1}for(let r=0;r{let t=!0;const s=e.slice();let i=s.pop();for(;t&&s.length;)t=s.every(e=>i.intersects(e,r)),i=s.pop();return t},H=(e,r)=>(c(\"comp\",e,r),e=z(e,r),c(\"caret\",e),e=q(e,r),c(\"tildes\",e),e=J(e,r),c(\"xrange\",e),e=Q(e,r),c(\"stars\",e),e),V=e=>!e||\"x\"===e.toLowerCase()||\"*\"===e,q=(e,r)=>e.trim().split(/\\s+/).map(e=>Y(e,r)).join(\" \"),Y=(e,r)=>{const t=r.loose?X[b.TILDELOOSE]:X[b.TILDE];return e.replace(t,(r,t,s,i,o)=>{let n;return c(\"tilde\",e,r,t,s,i,o),V(t)?n=\"\":V(s)?n=`>=${t}.0.0 <${+t+1}.0.0-0`:V(i)?n=`>=${t}.${s}.0 <${t}.${+s+1}.0-0`:o?(c(\"replaceTilde pr\",o),n=`>=${t}.${s}.${i}-${o} <${t}.${+s+1}.0-0`):n=`>=${t}.${s}.${i} <${t}.${+s+1}.0-0`,c(\"tilde return\",n),n})},z=(e,r)=>e.trim().split(/\\s+/).map(e=>Z(e,r)).join(\" \"),Z=(e,r)=>{c(\"caret\",e,r);const t=r.loose?X[b.CARETLOOSE]:X[b.CARET],s=r.includePrerelease?\"-0\":\"\";return e.replace(t,(r,t,i,o,n)=>{let a;return c(\"caret\",e,r,t,i,o,n),V(t)?a=\"\":V(i)?a=`>=${t}.0.0${s} <${+t+1}.0.0-0`:V(o)?a=\"0\"===t?`>=${t}.${i}.0${s} <${t}.${+i+1}.0-0`:`>=${t}.${i}.0${s} <${+t+1}.0.0-0`:n?(c(\"replaceCaret pr\",n),a=\"0\"===t?\"0\"===i?`>=${t}.${i}.${o}-${n} <${t}.${i}.${+o+1}-0`:`>=${t}.${i}.${o}-${n} <${t}.${+i+1}.0-0`:`>=${t}.${i}.${o}-${n} <${+t+1}.0.0-0`):(c(\"no pr\"),a=\"0\"===t?\"0\"===i?`>=${t}.${i}.${o}${s} <${t}.${i}.${+o+1}-0`:`>=${t}.${i}.${o}${s} <${t}.${+i+1}.0-0`:`>=${t}.${i}.${o} <${+t+1}.0.0-0`),c(\"caret return\",a),a})},J=(e,r)=>(c(\"replaceXRanges\",e,r),e.split(/\\s+/).map(e=>K(e,r)).join(\" \")),K=(e,r)=>{e=e.trim();const t=r.loose?X[b.XRANGELOOSE]:X[b.XRANGE];return e.replace(t,(t,s,i,o,n,a)=>{c(\"xRange\",e,t,s,i,o,n,a);const E=V(i),l=E||V(o),p=l||V(n),h=p;return\"=\"===s&&h&&(s=\"\"),a=r.includePrerelease?\"-0\":\"\",E?t=\">\"===s||\"<\"===s?\"<0.0.0-0\":\"*\":s&&h?(l&&(o=0),n=0,\">\"===s?(s=\">=\",l?(i=+i+1,o=0,n=0):(o=+o+1,n=0)):\"<=\"===s&&(s=\"<\",l?i=+i+1:o=+o+1),\"<\"===s&&(a=\"-0\"),t=`${s+i}.${o}.${n}${a}`):l?t=`>=${i}.0.0${a} <${+i+1}.0.0-0`:p&&(t=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),c(\"xRange return\",t),t})},Q=(e,r)=>(c(\"replaceStars\",e,r),e.trim().replace(X[b.STAR],\"\")),W=(e,r)=>(c(\"replaceGTE0\",e,r),e.trim().replace(X[r.includePrerelease?b.GTE0PRE:b.GTE0],\"\")),ee=e=>(r,t,s,i,o,n,a,E,l,p,c,h,u)=>`${t=V(s)?\"\":V(i)?`>=${s}.0.0${e?\"-0\":\"\"}`:V(o)?`>=${s}.${i}.0${e?\"-0\":\"\"}`:n?\">=\"+t:`>=${t}${e?\"-0\":\"\"}`} ${E=V(l)?\"\":V(p)?`<${+l+1}.0.0-0`:V(c)?`<${l}.${+p+1}.0-0`:h?`<=${l}.${p}.${c}-${h}`:e?`<${l}.${p}.${+c+1}-0`:\"<=\"+E}`.trim(),re=(e,r,t)=>{for(let t=0;t0){const s=e[t].semver;if(s.major===r.major&&s.minor===r.minor&&s.patch===r.patch)return!0}return!1}return!0};var te=(e,r,t)=>{try{r=new j(r,t)}catch(e){return!1}return r.test(e)};const se=/(.*?):.*/,ie=/(.*?)#.*/;void 0===window.__steelbrain_package_deps&&(window.__steelbrain_package_deps=new Set),exports.fs=l,exports.installDependencies=async function(e,t=!0){r(e,\"[Package-Deps] Package name is required\");const s=await async function(e){const r=atom.packages.getLoadedPackage(e),t=r&&r.metadata[\"package-deps\"];return Array.isArray(t)?(await Promise.all(t.map((async function(e){let r=null,t=e,s=null;const o=se.exec(e),n=ie.exec(e);if(o?[,t,s]=o:n?[,t,r]=n:t=e,__steelbrain_package_deps.has(t))return null;const a=atom.packages.resolvePackagePath(t);if(a){if(!s)return null;const e=JSON.parse(await l.readFile(i.join(a,\"package.json\")));if(null!=e&&null!=e.version&&te(e.version,\">=\"+s))return null}return __steelbrain_package_deps.add(t),{name:t,url:r}})))).filter(Boolean):[]}(e);if(s.length){if(t){let r=\"Yes\";if(await Promise.resolve().then((function(){return require(\"./prompt-afef23e0.js\")})).then(async({promptUser:t})=>{r=await t(e,s)}),\"Yes\"!==r)return}await Promise.resolve().then((function(){return require(\"./install-03586186.js\")})).then(async({performInstall:r})=>r(e,s))}};\n//# sourceMappingURL=index-6660c169.js.map\n"],"names":["shownStorageInfo","async","packageName","dependencies","oldConfigPath","Path","join","atom","getConfigDirPath","ignoredPackages","config","get","fs","exists","oldConfig","JSON","parse","readFile","set","ignored","unlink","includes","packages","isPackageDisabled","Promise","resolve","notification","notifications","addInfo","dismissable","icon","detail","map","e","name","description","length","buttons","text","onDidClick","dismiss","push","onDidDismiss","View","constructor","item","progress","document","createElement","dispose","advance","value","max","style","width","notificationView","views","getView","element","notificationContent","querySelector","appendChild","_","complete","errors","size","addSuccess","this","forEach","error","addWarning","module","bytes","i","E"],"mappings":"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"} \ No newline at end of file diff --git a/dist/main-a718d403.js b/dist/main-99cbbe62.js similarity index 99% rename from dist/main-a718d403.js rename to dist/main-99cbbe62.js index bee61e9..35f73b3 100644 --- a/dist/main-a718d403.js +++ b/dist/main-99cbbe62.js @@ -4,5 +4,5 @@ object-assign (c) Sindre Sorhus @license MIT */(null==t&&r.path)}},r.exports),r.exports}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function l(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var u=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=l(e),u=1;uF.length&&F.push(e)}function z(e,t,r){return null==e?0:function e(t,r,n,o){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case p:case d:a=!0}}if(a)return n(o,t,""===r?"."+U(t,0):r),1;if(a=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s1?t-1:0),n=1;n1?t-1:0),n=1;n0&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in"))){var n=_.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]))}var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o);try{var i=0,a="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));throw new Error(a)}catch(e){}}e(_,{ReactDebugCurrentFrame:D,ReactComponentTreeHook:{}});var I={};function F(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;I[o]||(A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),I[o]=!0)}var L={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){F(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){F(e,"replaceState")},enqueueSetState:function(e,t,r,n){F(e,"setState")}},j={};function z(e,t,r){this.props=e,this.context=t,this.refs=j,this.updater=r||L}Object.freeze(j),z.prototype.isReactComponent={},z.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var U={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},H=function(e,t){Object.defineProperty(z.prototype,e,{get:function(){P("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var $ in U)U.hasOwnProperty($)&&H($,U[$]);function V(){}function W(e,t,r){this.props=e,this.context=t,this.refs=j,this.updater=r||L}V.prototype=z.prototype;var q=W.prototype=new V;q.constructor=W,e(q,z.prototype),q.isPureReactComponent=!0;var B,Y,G,X=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0};function K(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Q(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function ee(e,t){var r=function(){B||(B=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function te(e,t){var r=function(){Y||(Y=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function re(e){if("string"==typeof e.ref&&C.current&&e.__self&&C.current.stateNode!==e.__self){var t=R(C.current.type);G[t]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',R(C.current.type),e.ref),G[t]=!0)}}G={};var ne=function(e,t,r,n,i,a,s){var l={$$typeof:o,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function oe(e,t,r){var n,o={},i=null,a=null,s=null,l=null;if(null!=t)for(n in K(t)&&(a=t.ref,re(t)),Q(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)X.call(t,n)&&!Z.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(u>1){for(var c=Array(u),p=0;p1){for(var f=Array(d),h=0;h.")}return t}(t);if(!Se[r]){Se[r]=!0;var n="";e&&e._owner&&e._owner!==C.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),M(e),A('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',r,n),M(null)}}}function Ce(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r",i=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,i)}var u=oe.apply(this,arguments);if(null==u)return u;if(n)for(var c=2;c is not supported and will be removed in a future major release. Did you mean to render instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,A("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),r.Consumer}}}),r.Consumer=i,r._currentRenderer=null,r._currentRenderer2=null,r},t.createElement=Ae,t.createFactory=Ie,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){return null!=e&&e.$$typeof===y?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?A("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&A("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:f,render:e}},t.isValidElement=ae,t.lazy=function(e){var t,r,n={$$typeof:v,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){A("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){A("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){return be(e)||A("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:y,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return we().useCallback(e,t)},t.useContext=function(e,t){var r=we();if(void 0!==t&&A("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?A("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},t.useDebugValue=function(e,t){return we().useDebugValue(e,t)},t.useEffect=function(e,t){return we().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return we().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return we().useLayoutEffect(e,t)},t.useMemo=function(e,t){return we().useMemo(e,t)},t.useReducer=function(e,t,r){return we().useReducer(e,t,r)},t.useRef=function(e){return we().useRef(e)},t.useState=function(e){return we().useState(e)},t.version="16.13.1"}()})),ee=o((function(e){"production"===process.env.NODE_ENV?e.exports=B:e.exports=Q}));function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rSe;Se++)xe[Se]=Se+1;xe[15]=0;var Ee=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ce=Object.prototype.hasOwnProperty,Te={},Re={};function De(e){return!!Ce.call(Re,e)||!Ce.call(Te,e)&&(Ee.test(e)?Re[e]=!0:(Te[e]=!0,!1))}function Oe(e,t,r,n,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Me[e]=new Oe(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Me[t]=new Oe(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Me[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Me[e]=new Oe(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Me[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Me[e]=new Oe(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Me[e]=new Oe(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Me[e]=new Oe(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Me[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1)}));var _e=/[\-:]([a-z])/g;function Pe(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(_e,Pe);Me[t]=new Oe(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_e,Pe);Me[t]=new Oe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_e,Pe);Me[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Me[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1)})),Me.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Me[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0)}));var Ae=/["'&<>]/;function Ne(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=Ae.exec(e);if(t){var r,n="",o=0;for(r=t.index;rt}return!1}(e,t,n,!1)?"":null!==n?(e=n.attributeName,3===(r=n.type)||4===r&&!0===t?e+'=""':(n.sanitizeURL&&(t=""+t),e+'="'+Ne(t)+'"')):De(e)?e+'="'+Ne(t)+'"':""}var Fe="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Le=null,je=null,ze=null,Ue=!1,He=!1,$e=null,Ve=0;function We(){if(null===Le)throw Error(te(321));return Le}function qe(){if(0Ve))throw Error(te(301));if(e===Le)if(He=!0,e={action:r,next:null},null===$e&&($e=new Map),void 0===(r=$e.get(t)))$e.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Ke(){}var Je=0,Qe={readContext:function(e){var t=Je;return ke(e,t),e[t]},useContext:function(e){We();var t=Je;return ke(e,t),e[t]},useMemo:function(e,t){if(Le=We(),t=void 0===t?null:t,null!==(ze=Be())){var r=ze.memoizedState;if(null!==r&&null!==t){e:{var n=r[1];if(null===n)n=!1;else{for(var o=0;o=o))throw Error(te(304));var i=new Uint16Array(o);for(i.set(n),(xe=i)[0]=r+1,n=r;n=a.children.length){var s=a.footer;if(""!==s&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===a.type)this.currentSelectValue=null;else if(null!=a.type&&null!=a.type.type&&a.type.type.$$typeof===se)this.popProvider(a.type);else if(a.type===pe){this.suspenseDepth--;var l=n.pop();if(o){o=!1;var u=a.fallbackFrame;if(!u)throw Error(te(303));this.stack.push(u),n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=s}else{var c=a.children[a.childIndex++],p="";try{p+=this.render(c,a.context,a.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(te(294));throw e}n.length<=this.suspenseDepth&&n.push(""),n[this.suspenseDepth]+=p}}return n[0]}finally{lt.current=r,Je=t}},t.render=function(e,t,r){if("string"==typeof e||"number"==typeof e)return""===(r=""+e)?"":this.makeStaticMarkup?Ne(r):this.previousWasTextNode?"\x3c!-- --\x3e"+Ne(r):(this.previousWasTextNode=!0,Ne(r));if(e=(t=yt(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!ee.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((r=e.$$typeof)===ne)throw Error(te(257));throw Error(te(258,r.toString()))}return e=st(e),this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),""}var n=e.type;if("string"==typeof n)return this.renderDOM(e,t,r);switch(n){case ie:case ue:case ae:case de:case oe:return e=st(e.props.children),this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case pe:throw Error(te(294))}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ce:Le={};var o=n.render(e.props,e.ref);return o=Ye(n.render,e.props,o,e.ref),o=st(o),this.stack.push({type:null,domNamespace:r,children:o,childIndex:0,context:t,footer:""}),"";case fe:return e=[ee.createElement(n.type,u({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case se:return r={type:e,domNamespace:r,children:n=st(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(r),"";case le:n=e.type,o=e.props;var i=this.threadID;return ke(n,i),n=st(o.children(n[i])),this.stack.push({type:e,domNamespace:r,children:n,childIndex:0,context:t,footer:""}),"";case ye:throw Error(te(338));case he:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(n=e.type),n._status){case 1:return e=[ee.createElement(n._result,u({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:r,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw n._result;default:throw Error(te(295))}case ve:throw Error(te(343))}throw Error(te(130,null==n?n:typeof n,""))},t.renderDOM=function(e,t,r){var n=e.type.toLowerCase();if(!pt.hasOwnProperty(n)){if(!ct.test(n))throw Error(te(65,n));pt[n]=!0}var o=e.props;if("input"===n)o=u({type:void 0},o,{defaultChecked:void 0,defaultValue:void 0,value:null!=o.value?o.value:o.defaultValue,checked:null!=o.checked?o.checked:o.defaultChecked});else if("textarea"===n){var i=o.value;if(null==i){i=o.defaultValue;var a=o.children;if(null!=a){if(null!=i)throw Error(te(92));if(Array.isArray(a)){if(!(1>=a.length))throw Error(te(93));a=a[0]}i=""+a}null==i&&(i="")}o=u({},o,{value:void 0,children:""+i})}else if("select"===n)this.currentSelectValue=null!=o.value?o.value:o.defaultValue,o=u({},o,{value:void 0});else if("option"===n){a=this.currentSelectValue;var s=function(e){if(null==e)return e;var t="";return ee.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(o.children);if(null!=a){var l=null!=o.value?o.value+"":s;if(i=!1,Array.isArray(a)){for(var c=0;c":(g+=">",i="");e:{if(null!=(a=o.dangerouslySetInnerHTML)){if(null!=a.__html){a=a.__html;break e}}else if("string"==typeof(a=o.children)||"number"==typeof a){a=Ne(a);break e}a=null}return null!=a?(o=[],ut.hasOwnProperty(n)&&"\n"===a.charAt(0)&&(g+="\n"),g+=a):o=st(o.children),e=e.type,r=null==r||"http://www.w3.org/1999/xhtml"===r?function(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}(e):"http://www.w3.org/2000/svg"===r&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":r,this.stack.push({domNamespace:r,type:n,children:o,childIndex:0,context:t,footer:i}),this.previousWasTextNode=!1,g},e}();var gt=function(e){function t(t,r){var n=e.call(this,{})||this;return n.partialRenderer=new vt(t,r),n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r._destroy=function(e,t){this.partialRenderer.destroy(),t(e)},r._read=function(e){try{this.push(this.partialRenderer.read(e))}catch(e){this.destroy(e)}},t}(r.Readable),bt={renderToString:function(e){e=new vt(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new vt(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(e){return new gt(e,!1)},renderToStaticNodeStream:function(e){return new gt(e,!0)},version:"16.13.1"},wt=bt.default||bt,kt=o((function(e){"production"!==process.env.NODE_ENV&&function(){var t=ee,n=u,o=J,i=r;var a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function s(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in"))){var n=a.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]))}var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o);try{var i=0,s="Warning: "+t.replace(/%s/g,(function(){return r[i++]}));throw new Error(s)}catch(e){}}a.hasOwnProperty("ReactCurrentDispatcher")||(a.ReactCurrentDispatcher={current:null}),a.hasOwnProperty("ReactCurrentBatchConfig")||(a.ReactCurrentBatchConfig={suspense:null});var c="function"==typeof Symbol&&Symbol.for,p=c?Symbol.for("react.portal"):60106,d=c?Symbol.for("react.fragment"):60107,f=c?Symbol.for("react.strict_mode"):60108,h=c?Symbol.for("react.profiler"):60114,m=c?Symbol.for("react.provider"):60109,y=c?Symbol.for("react.context"):60110,v=c?Symbol.for("react.concurrent_mode"):60111,g=c?Symbol.for("react.forward_ref"):60112,b=c?Symbol.for("react.suspense"):60113,w=c?Symbol.for("react.suspense_list"):60120,k=c?Symbol.for("react.memo"):60115,x=c?Symbol.for("react.lazy"):60116,S=c?Symbol.for("react.block"):60121,E=c?Symbol.for("react.fundamental"):60117,C=c?Symbol.for("react.scope"):60119;function T(e){if(null==e)return null;if("number"==typeof e.tag&&s("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"Fragment";case p:return"Portal";case h:return"Profiler";case f:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case y:return"Context.Consumer";case m:return"Context.Provider";case g:return n=e,o=e.render,i="ForwardRef",a=o.displayName||o.name||"",n.displayName||(""!==a?i+"("+a+")":i);case k:return T(e.type);case S:return T(e.render);case x:var t=1===(r=e)._status?r._result:null;if(t)return T(t)}var r,n,o,i,a;return null}var R=/^(.*)[\\\/]/;var D,O;D=a.ReactDebugCurrentFrame,O=new Set;var M={};function _(e,t){var r=e.contextTypes;if(!r)return M;var n={};for(var o in r)n[o]=t[o];return n}function P(e,t,r){o(e,t,r,"Component",D.getCurrentStack)}function A(e,t){for(var r=0|e._threadCount;r<=t;r++)e[r]=e._currentValue2,e._threadCount=r+1}Object.freeze(M);for(var N=new Uint16Array(16),I=0;I<15;I++)N[I]=I+1;function F(){var e=N[0];return 0===e?function(){var e=N,t=e.length,r=2*t;if(!(r<=65536))throw Error("Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic.");var n=new Uint16Array(r);n.set(e),(N=n)[0]=t+1;for(var o=t;o]/;function re(e){return"boolean"==typeof e||"number"==typeof e?""+e:function(e){var t,r=""+e,n=te.exec(r);if(!n)return r;var o,i="",a=0;for(o=n.index;o2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))}(e,n,!1))return"";if(function(e,t,r,n){if(null==t)return!0;if(q(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}(e,t,n,!1))return"";if(null!==n){var o=n.attributeName,i=n.type;return 3===i||4===i&&!0===t?o+'=""':(n.sanitizeURL&&(r=t=""+t,!Q&&K.test(r)&&(Q=!0,s("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(r)))),o+"="+ne(t))}return W(e)?e+"="+ne(t):""}var ie,ae="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},se=null,le=null,ue=null,ce=!1,pe=!1,de=null,fe=0,he=!1;function me(){if(null===se)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return he&&s("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://fb.me/rules-of-hooks"),se}function ye(){if(fe>0)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function ve(){return null===ue?null===le?(ce=!1,le=ue=ye()):(ce=!0,ue=le):null===ue.next?(ce=!1,ue=ue.next=ye()):(ce=!0,ue=ue.next),ue}function ge(e){se=e,he=!1}function be(e,t,r,n){for(;pe;)pe=!1,fe+=1,ue=null,r=e(t,n);return se=null,le=null,fe=0,de=null,ue=null,he=!1,r}function we(e,t){return"function"==typeof t?t(e):t}function ke(e,t,r){if(e!==we&&(ie="useReducer"),se=me(),ue=ve(),ce){var n=ue.queue,o=n.dispatch;if(null!==de){var i=de.get(n);if(void 0!==i){de.delete(n);var a=ue.memoizedState,s=i;do{var l=s.action;he=!0,a=e(a,l),he=!1,s=s.next}while(null!==s);return ue.memoizedState=a,[a,o]}}return[ue.memoizedState,o]}var u;he=!0,u=e===we?"function"==typeof t?t():t:void 0!==r?r(t):t,he=!1,ue.memoizedState=u;var c=ue.queue={last:null,dispatch:null},p=c.dispatch=xe.bind(null,se,c);return[ue.memoizedState,p]}function xe(e,t,r){if(!(fe<25))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(e===se){pe=!0;var n={action:r,next:null};null===de&&(de=new Map);var o=de.get(t);if(void 0===o)de.set(t,n);else{for(var i=o;null!==i.next;)i=i.next;i.next=n}}}function Se(){}var Ee=0;function Ce(e){Ee=e}var Te={readContext:function(e,t){var r=Ee;return A(e,r),he&&s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),e[r]},useContext:function(e,t){ie="useContext",me();var r=Ee;return A(e,r),e[r]},useMemo:function(e,t){se=me();var r=void 0===t?null:t;if(null!==(ue=ve())){var n=ue.memoizedState;if(null!==n)if(null!==r)if(function(e,t){if(null===t)return s("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ie),!1;e.length!==t.length&&s("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",ie,"["+e.join(", ")+"]","["+t.join(", ")+"]");for(var r=0;r-1?Qe(e):qe.test(e)?function(e){Xe.hasOwnProperty(e)&&Xe[e]||(Xe[e]=!0,s("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):Ge.test(t)&&function(e,t){Ze.hasOwnProperty(t)&&Ze[t]||(Ze[t]=!0,s('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(Ge,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e,t){Ke||(Ke=!0,s("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e,t){Je||(Je=!0,s("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))},tt={"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},rt={},nt=new RegExp("^(aria)-["+z+"]*$"),ot=new RegExp("^(aria)[A-Z]["+z+"]*$"),it=Object.prototype.hasOwnProperty;function at(e,t){if(it.call(rt,t)&&rt[t])return!0;if(ot.test(t)){var r="aria-"+t.slice(4).toLowerCase(),n=tt.hasOwnProperty(r)?r:null;if(null==n)return s("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),rt[t]=!0,!0;if(t!==n)return s("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,n),rt[t]=!0,!0}if(nt.test(t)){var o=t.toLowerCase(),i=tt.hasOwnProperty(o)?o:null;if(null==i)return rt[t]=!0,!1;if(t!==i)return s("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),rt[t]=!0,!0}return!0}function st(e,t){We(e,t)||function(e,t){var r=[];for(var n in t){at(0,n)||r.push(n)}var o=r.map((function(e){return"`"+e+"`"})).join(", ");1===r.length?s("Invalid aria prop %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop",o,e):r.length>1&&s("Invalid aria props %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop",o,e)}(e,t)}var lt=!1;var ut,ct={},pt={},dt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",download:"download",draggable:"draggable",enctype:"encType",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ft={},ht=Object.prototype.hasOwnProperty,mt=/^on./,yt=/^on[^A-Z]/,vt=new RegExp("^(aria)-["+z+"]*$"),gt=new RegExp("^(aria)[A-Z]["+z+"]*$");ut=function(e,t,r,n){if(ht.call(ft,t)&&ft[t])return!0;var o=t.toLowerCase();if("onfocusin"===o||"onfocusout"===o)return s("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ft[t]=!0,!0;if(n){if(ct.hasOwnProperty(t))return!0;var i=pt.hasOwnProperty(o)?pt[o]:null;if(null!=i)return s("Invalid event handler property `%s`. Did you mean `%s`?",t,i),ft[t]=!0,!0;if(mt.test(t))return s("Unknown event handler property `%s`. It will be ignored.",t),ft[t]=!0,!0}else if(mt.test(t))return yt.test(t)&&s("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ft[t]=!0,!0;if(vt.test(t)||gt.test(t))return!0;if("innerhtml"===o)return s("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ft[t]=!0,!0;if("aria"===o)return s("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ft[t]=!0,!0;if("is"===o&&null!=r&&"string"!=typeof r)return s("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),ft[t]=!0,!0;if("number"==typeof r&&isNaN(r))return s("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ft[t]=!0,!0;var a=B(t),l=null!==a&&0===a.type;if(dt.hasOwnProperty(o)){var u=dt[o];if(u!==t)return s("Invalid DOM property `%s`. Did you mean `%s`?",t,u),ft[t]=!0,!0}else if(!l&&t!==o)return s("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,o),ft[t]=!0,!0;return"boolean"==typeof r&&q(t,r,a,!1)?(r?s('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):s('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),ft[t]=!0,!0):!!l||(q(t,r,a,!1)?(ft[t]=!0,!1):("false"!==r&&"true"!==r||null===a||3!==a.type||(s("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,"false"===r?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),ft[t]=!0),!0))};function bt(e,t,r){We(e,t)||function(e,t,r){var n=[];for(var o in t){ut(0,o,t[o],r)||n.push(o)}var i=n.map((function(e){return"`"+e+"`"})).join(", ");1===n.length?s("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://fb.me/react-attribute-behavior",i,e):n.length>1&&s("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://fb.me/react-attribute-behavior",i,e)}(e,t,r)}var wt,kt,xt,St,Et,Ct,Tt=t.Children.toArray,Rt=[],Dt=a.ReactCurrentDispatcher,Ot=null,Mt=function(){return""},_t=!1;wt=a.ReactDebugCurrentFrame,xt=function(e,t){st(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||lt||(lt=!0,"select"===e&&t.multiple?s("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):s("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),bt(e,t,!1)},kt=function(e){var t=e._source;return function(e,t,r){var n="";if(t){var o=t.fileName,i=o.replace(R,"");if(/^index\./.test(i)){var a=o.match(R);if(a){var s=a[1];if(s)i=s.replace(R,"")+"/"+i}}n=" (at "+i+":"+t.lineNumber+")"}else r&&(n=" (created by "+r+")");return"\n in "+(e||"Unknown")+n}(T(e.type),t,null)},St=function(e){Rt.push(e),1===Rt.length&&(Ot=wt.getCurrentStack,wt.getCurrentStack=Mt)},Et=function(e){var t=Rt[Rt.length-1];t[t.length-1].debugElementStack.push(e)},Ct=function(){Rt.pop(),0===Rt.length&&(wt.getCurrentStack=Ot,Ot=null)},Mt=function(){if(0===Rt.length)return"";for(var e=Rt[Rt.length-1],t="",r=e.length-1;r>=0;r--)for(var n=e[r].debugElementStack,o=n.length-1;o>=0;o--)t+=kt(n[o]);return t};var Pt=!1,At=!1,Nt=!1,It=!1,Ft=!1,Lt={},jt={},zt={},Ut={},Ht={},$t={},Vt=["value","defaultValue"],Wt={listing:!0,pre:!0,textarea:!0},qt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Bt={};var Yt={},Gt=function(e){if(Yt.hasOwnProperty(e))return Yt[e];var t=e.replace($e,"-$1").toLowerCase().replace(Ve,"-ms-");return Yt[e]=t,t};function Xt(e){var t="",r="";for(var n in e)if(e.hasOwnProperty(n)){var o=0===n.indexOf("--"),i=e[n];o||et(n,i),null!=i&&(t+=r+(o?n:Gt(n))+":",t+=He(n,i,o),r=";")}return t||null}function Zt(e,t){var r=e.constructor,n=r&&T(r)||"ReactClass",o=n+"."+t;Lt[o]||(s("%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.",t,t,n),Lt[o]=!0)}var Kt=Object.prototype.hasOwnProperty,Jt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Qt(e,t){if(void 0===e)throw Error((T(t)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}function er(e,r,o){for(;t.isValidElement(e);){var i=e,a=i.type;if(Et(i),"function"!=typeof a)break;u(i,a)}function u(t,i){var a,u=function(e){return e.prototype&&e.prototype.isReactComponent}(i),c=function(e,t,r,n){if(n){var o=e.contextType;if("contextType"in e)if(!(null===o||void 0!==o&&o.$$typeof===y&&void 0===o._context)&&!O.has(e)){O.add(e);var i="";i=void 0===o?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof o?" However, it is set to a "+typeof o+".":o.$$typeof===m?" Did you accidentally pass the Context.Provider instead?":void 0!==o._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",s("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",T(e)||"Component",i)}if("object"==typeof o&&null!==o)return A(o,r),o[r];var a=_(e,t);return e.contextTypes&&P(e.contextTypes,a,"context"),a}var l=_(e,t);return e.contextTypes&&P(e.contextTypes,l,"context"),l}(i,r,o,u),p=[],d=!1,f={isMounted:function(e){return!1},enqueueForceUpdate:function(e){if(null===p)return Zt(e,"forceUpdate"),null},enqueueReplaceState:function(e,t){d=!0,p=[t]},enqueueSetState:function(e,t){if(null===p)return Zt(e,"setState"),null;p.push(t)}};if(u){if(a=new i(t.props,c,f),"function"==typeof i.getDerivedStateFromProps){if(null===a.state||void 0===a.state){var h=T(i)||"Unknown";$t[h]||(s("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",h,null===a.state?"null":"undefined",h),$t[h]=!0)}var v=i.getDerivedStateFromProps.call(null,t.props,a.state);if(void 0===v){var g=T(i)||"Unknown";Ht[g]||(s("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",g),Ht[g]=!0)}null!=v&&(a.state=n({},a.state,v))}}else{if(i.prototype&&"function"==typeof i.prototype.render){var b=T(i)||"Unknown";jt[b]||(s("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",b,b),jt[b]=!0)}if(ge({}),a=i(t.props,c,f),null==(a=be(i,t.props,a,c))||null==a.render)return void Qt(e=a,i);var w=T(i)||"Unknown";zt[w]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",w,w,w),zt[w]=!0)}a.props=t.props,a.context=c,a.updater=f;var k,x=a.state;if(void 0===x&&(a.state=x=null),"function"==typeof a.UNSAFE_componentWillMount||"function"==typeof a.componentWillMount){if("function"==typeof a.componentWillMount){if(!0!==a.componentWillMount.__suppressDeprecationWarning){var S=T(i)||"Unknown";Ut[S]||(!function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0;e--){var t=this.contextStack[e],r=this.contextValueStack[e];t[this.threadID]=r}},r.read=function(e){if(this.exhausted)return null;var t=Ee;Ce(this.threadID);var r=Dt.current;Dt.current=Te;try{for(var n=[""],o=!1;n[0].length=i.children.length){var a=i.footer;if(""!==a&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===i.type)this.currentSelectValue=null;else if(null!=i.type&&null!=i.type.type&&i.type.type.$$typeof===m){var s=i.type;this.popProvider(s)}else if(i.type===b){this.suspenseDepth--;var l=n.pop();if(o){o=!1;var u=i.fallbackFrame;if(!u)throw Error("ReactDOMServer did not find an internal fallback frame for Suspense. This is a bug in React. Please file an issue.");this.stack.push(u),n[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}n[this.suspenseDepth]+=l}n[this.suspenseDepth]+=a}else{var c=i.children[i.childIndex++],p="";St(this.stack),i.debugElementStack.length=0;try{p+=this.render(c,i.context,i.domNamespace)}catch(e){throw null!=e&&"function"==typeof e.then?Error("ReactDOMServer does not yet support Suspense."):e}finally{Ct()}n.length<=this.suspenseDepth&&n.push(""),n[this.suspenseDepth]+=p}}return n[0]}finally{Dt.current=r,Ce(t)}},r.render=function(e,r,o){if("string"==typeof e||"number"==typeof e){var i=""+e;return""===i?"":this.makeStaticMarkup?re(i):this.previousWasTextNode?"\x3c!-- --\x3e"+re(i):(this.previousWasTextNode=!0,re(i))}var a,l=er(e,r,this.threadID);if(a=l.child,r=l.context,null===a||!1===a)return"";if(!t.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var u=a.$$typeof;if(u===p)throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");throw Error("Unknown element-like object type: "+u.toString()+". This is likely a bug in React. Please file an issue.")}var c={type:null,domNamespace:o,children:Tt(a),childIndex:0,context:r,footer:"",debugElementStack:[]};return this.stack.push(c),""}var S=a,R=S.type;if("string"==typeof R)return this.renderDOM(S,r,o);switch(R){case f:case v:case h:case w:case d:var D={type:null,domNamespace:o,children:Tt(a.props.children),childIndex:0,context:r,footer:"",debugElementStack:[]};return this.stack.push(D),"";case b:throw Error("ReactDOMServer does not yet support Suspense.")}if("object"==typeof R&&null!==R)switch(R.$$typeof){case g:var O,M=a;ge({}),O=R.render(M.props,M.ref),O=be(R.render,M.props,O,M.ref);var _={type:null,domNamespace:o,children:O=Tt(O),childIndex:0,context:r,footer:"",debugElementStack:[]};return this.stack.push(_),"";case k:var P=a,N={type:null,domNamespace:o,children:[t.createElement(R.type,n({ref:P.ref},P.props))],childIndex:0,context:r,footer:"",debugElementStack:[]};return this.stack.push(N),"";case m:var I=a,F=I.props,L={type:I,domNamespace:o,children:Tt(F.children),childIndex:0,context:r,footer:"",debugElementStack:[]};return this.pushProvider(I),this.stack.push(L),"";case y:var j=a.type;void 0===j._context?j!==j.Consumer&&(_t||(_t=!0,s("Rendering directly is not supported and will be removed in a future major release. Did you mean to render instead?"))):j=j._context;var z=a.props,U=this.threadID;A(j,U);var H=j[U],$={type:a,domNamespace:o,children:Tt(z.children(H)),childIndex:0,context:r,footer:"",debugElementStack:[]};return this.stack.push($),"";case E:throw Error("ReactDOMServer does not yet support the fundamental API.");case x:var V=a,W=a.type;switch(function(e){if(-1===e._status){e._status=0;var t=(0,e._ctor)();e._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&s("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),e._status=1,e._result=r}}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(W),W._status){case 1:var q={type:null,domNamespace:o,children:[t.createElement(W._result,n({ref:V.ref},V.props))],childIndex:0,context:r,footer:"",debugElementStack:[]};return this.stack.push(q),"";case 2:throw W._result;case 0:default:throw Error("ReactDOMServer does not yet support lazy-loaded components.")}case C:throw Error("ReactDOMServer does not yet support scope components.")}var B="",Y=S._owner;(void 0===R||"object"==typeof R&&null!==R&&0===Object.keys(R).length)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var G=Y?T(Y):null;throw G&&(B+="\n\nCheck the render method of `"+G+"`."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==R?R:typeof R)+"."+B)},r.renderDOM=function(e,r,o){var i=e.type.toLowerCase(),a=o;o===Oe&&(a=Me(i)),a===Oe&&i!==e.type&&s("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e.type),function(e){if(!Bt.hasOwnProperty(e)){if(!qt.test(e))throw Error("Invalid tag: "+e);Bt[e]=!0}}(i);var l=e.props;if("input"===i)Ae.checkPropTypes("input",l),void 0===l.checked||void 0===l.defaultChecked||At||(s("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components","A component",l.type),At=!0),void 0===l.value||void 0===l.defaultValue||Pt||(s("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components","A component",l.type),Pt=!0),l=n({type:void 0},l,{defaultChecked:void 0,defaultValue:void 0,value:null!=l.value?l.value:l.defaultValue,checked:null!=l.checked?l.checked:l.defaultChecked});else if("textarea"===i){Ae.checkPropTypes("textarea",l),void 0===l.value||void 0===l.defaultValue||It||(s("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/react-controlled-components"),It=!0);var u=l.value;if(null==u){var c=l.defaultValue,p=l.children;if(null!=p){if(s("Use the `defaultValue` or `value` props instead of setting children on