UNPKG

coc-rainbow-fart

Version:

This extension will keep giving you compliment while you are coding.

1 lines 232 kB
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=79)}([function(e,t,r){"use strict";var n=r(10),i=r(62),s=r(24),o=r(131),a=r(17);function c(e){return e}function u(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}t.newBlob=function(e,r){t.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(e,t,r){var n=[],i=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;i<s;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,s)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,s)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var r=65536,n=t.getTypeOf(e),i=!0;if("uint8array"===n?i=h.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=h.applyCanBeUsed.nodebuffer),i)for(;r>1;)try{return h.stringifyByChunk(e,n,r)}catch(e){r=Math.floor(r/2)}return h.stringifyByChar(e)}function f(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}t.applyFromCharCode=l;var d={};d.string={string:c,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,s.allocBuffer(e.length))}},d.array={string:l,array:c,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}},d.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:c,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:l,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:c,nodebuffer:function(e){return s.newBufferFrom(e)}},d.nodebuffer={string:l,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:c},t.transformTo=function(e,r){if(r||(r=""),!e)return r;t.checkSupport(e);var n=t.getTypeOf(r);return d[n][e](r)},t.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&s.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},t.delay=function(e,t,r){o((function(){e.apply(r||null,t||[])}))},t.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r},t.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},t.prepareContent=function(e,r,s,o,c){return a.Promise.resolve(r).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(r){var h,l=t.getTypeOf(r);return l?("arraybuffer"===l?r=t.transformTo("uint8array",r):"string"===l&&(c?r=i.decode(r):s&&!0!==o&&(r=u(h=r,n.uint8array?new Uint8Array(h.length):new Array(h.length)))),r):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},function(e,t){e.exports=require("stream")},function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},e.exports=n},function(e,t){e.exports=require("coc.nvim")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("url")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"==typeof URL?r(5).URL:URL,i=Object.prototype.toString,s=e=>t=>typeof t===e,o=e=>!u.nullOrUndefined(e)&&!u.nullOrUndefined(e.constructor)&&u.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e),a=e=>{const t=i.call(e).slice(8,-1);return t||null},c=e=>t=>a(t)===e;function u(e){switch(e){case null:return"null";case!0:case!1:return"boolean"}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol"}if(u.function_(e))return"Function";if(u.observable(e))return"Observable";if(Array.isArray(e))return"Array";if(o(e))return"Buffer";const t=a(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}!function(e){const t=e=>"object"==typeof e;e.undefined=s("undefined"),e.string=s("string"),e.number=s("number"),e.function_=s("function"),e.null_=e=>null===e,e.class_=t=>e.function_(t)&&t.toString().startsWith("class "),e.boolean=e=>!0===e||!1===e,e.symbol=s("symbol"),e.numericString=t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)),e.array=Array.isArray,e.buffer=o,e.nullOrUndefined=t=>e.null_(t)||e.undefined(t),e.object=r=>!e.nullOrUndefined(r)&&(e.function_(r)||t(r)),e.iterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]),e.asyncIterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]),e.generator=t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw),e.nativePromise=e=>c("Promise")(e);e.promise=r=>e.nativePromise(r)||(r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch))(r),e.generatorFunction=c("GeneratorFunction"),e.asyncFunction=c("AsyncFunction"),e.boundFunction=t=>e.function_(t)&&!t.hasOwnProperty("prototype"),e.regExp=c("RegExp"),e.date=c("Date"),e.error=c("Error"),e.map=e=>c("Map")(e),e.set=e=>c("Set")(e),e.weakMap=e=>c("WeakMap")(e),e.weakSet=e=>c("WeakSet")(e),e.int8Array=c("Int8Array"),e.uint8Array=c("Uint8Array"),e.uint8ClampedArray=c("Uint8ClampedArray"),e.int16Array=c("Int16Array"),e.uint16Array=c("Uint16Array"),e.int32Array=c("Int32Array"),e.uint32Array=c("Uint32Array"),e.float32Array=c("Float32Array"),e.float64Array=c("Float64Array"),e.arrayBuffer=c("ArrayBuffer"),e.sharedArrayBuffer=c("SharedArrayBuffer"),e.dataView=c("DataView"),e.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,e.urlInstance=e=>c("URL")(e),e.urlString=t=>{if(!e.string(t))return!1;try{return new n(t),!0}catch(e){return!1}},e.truthy=e=>Boolean(e),e.falsy=e=>!e,e.nan=e=>Number.isNaN(e);const r=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=t=>e.null_(t)||r.has(typeof t),e.integer=e=>Number.isInteger(e),e.safeInteger=e=>Number.isSafeInteger(e),e.plainObject=e=>{let t;return"Object"===a(e)&&(t=Object.getPrototypeOf(e),null===t||t===Object.getPrototypeOf({}))};const i=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=e=>{const t=a(e);return null!==t&&i.has(t)};e.arrayLike=t=>!e.nullOrUndefined(t)&&!e.function_(t)&&(t=>e.safeInteger(t)&&t>-1)(t.length),e.inRange=(t,r)=>{if(e.number(r))return t>=Math.min(0,r)&&t<=Math.max(r,0);if(e.array(r)&&2===r.length)return t>=Math.min(...r)&&t<=Math.max(...r);throw new TypeError("Invalid range: "+JSON.stringify(r))};const u=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=t=>e.object(t)&&1===t.nodeType&&e.string(t.nodeName)&&!e.plainObject(t)&&u.every(e=>e in t),e.observable=e=>!!e&&(!(!e[Symbol.observable]||e!==e[Symbol.observable]())||!(!e["@@observable"]||e!==e["@@observable"]())),e.nodeStream=r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe)&&!e.observable(r),e.infinite=e=>e===1/0||e===-1/0;const h=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=h(0),e.odd=h(1);e.emptyArray=t=>e.array(t)&&0===t.length,e.nonEmptyArray=t=>e.array(t)&&t.length>0,e.emptyString=t=>e.string(t)&&0===t.length,e.nonEmptyString=t=>e.string(t)&&t.length>0,e.emptyStringOrWhitespace=t=>e.emptyString(t)||(t=>e.string(t)&&!1===/\S/.test(t))(t),e.emptyObject=t=>e.object(t)&&!e.map(t)&&!e.set(t)&&0===Object.keys(t).length,e.nonEmptyObject=t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0,e.emptySet=t=>e.set(t)&&0===t.size,e.nonEmptySet=t=>e.set(t)&&t.size>0,e.emptyMap=t=>e.map(t)&&0===t.size,e.nonEmptyMap=t=>e.map(t)&&t.size>0;const l=(t,r,n)=>{if(!1===e.function_(r))throw new TypeError("Invalid predicate: "+JSON.stringify(r));if(0===n.length)throw new TypeError("Invalid number of values");return t.call(n,r)};e.any=(e,...t)=>l(Array.prototype.some,e,t),e.all=(e,...t)=>l(Array.prototype.every,e,t)}(u||(u={})),Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),t.default=u,e.exports=u,e.exports.default=u},function(e,t){e.exports=require("path")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dispose=void 0;t.Dispose=class{constructor(){this.subscriptions=[]}push(...e){this.subscriptions.push(...e)}remove(e){this.subscriptions=this.subscriptions.filter(t=>e!==t||(t.dispose(),!1))}dispose(){this.subscriptions.length&&(this.subscriptions.forEach(e=>{e.dispose()}),this.subscriptions=[])}}},function(e,t){e.exports=require("fs")},function(e,t,r){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer="undefined"!=typeof Buffer,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var n=new ArrayBuffer(0);try{t.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),t.blob=0===i.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!r(55).Readable}catch(e){t.nodestream=!1}},function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(e[n]=r[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var s=0;s<n;s++)e[i+s]=t[r+s]},flattenChunks:function(e){var t,r,n,i,s,o;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)s=e[t],o.set(s,i),i+=s.length;return o}},o={arraySet:function(e,t,r,n,i){for(var s=0;s<n;s++)e[i+s]=t[r+s]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,s)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(n)},function(e,t){e.exports=require("events")},function(e,t,r){try{var n=r(4);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(84)}},function(e,t,r){"use strict";for(var n=r(0),i=r(10),s=r(24),o=r(2),a=new Array(256),c=0;c<256;c++)a[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;a[254]=a[254]=1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function h(){o.call(this,"utf-8 encode")}t.utf8encode=function(e){return i.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,r,n,s,o,a=e.length,c=0;for(s=0;s<a;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(c):new Array(c),o=0,s=0;o<c;s++)55296==(64512&(r=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(n=e.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|63&r):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|63&r):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|63&r);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,s,o=e.length,c=new Array(2*o);for(r=0,t=0;t<o;)if((i=e[t++])<128)c[r++]=i;else if((s=a[i])>4)c[r++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&t<o;)i=i<<6|63&e[t++],s--;s>1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),n.applyFromCharCode(c)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,o),u.prototype.processChunk=function(e){var r=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var s=r;(r=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),r.set(s,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}(r),c=r;o!==r.length&&(i.uint8array?(c=r.subarray(0,o),this.leftOver=r.subarray(o,r.length)):(c=r.slice(0,o),this.leftOver=r.slice(o,r.length))),this.push({data:t.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=u,n.inherits(h,o),h.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=h},function(e,t,r){"use strict";var n=r(22),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var s=Object.create(r(16));s.inherits=r(13);var o=r(56),a=r(59);s.inherits(l,o);for(var c=i(a.prototype),u=0;u<c.length;u++){var h=c[u];l.prototype[h]||(l.prototype[h]=a.prototype[h])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer},function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:r(132),e.exports={Promise:n}},function(e,t,r){var n=r(42);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(s),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=void 0;const n=r(3),i=r(8);class s extends i.Dispose{init(e){return this._traceServer=e,"off"!==this._traceServer&&(this._channel=n.workspace.createOutputChannel("rainbow-fart"),this.push(this._channel)),this}set channel(e){this._channel=e}get channel(){return this._channel}get traceServer(){return this._traceServer}getLog(e){return t=>{t&&this._channel&&this._channel.appendLine(`[${e}]: ${t}`)}}dispose(){super.dispose(),this._channel=void 0,this._traceServer=void 0}}t.logger=new s},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Assets=t.requiredProperties=void 0;const s=r(19),o=r(27),a=r(8),c=i(r(25)),u=r(3),h=s.logger.getLog("assets");t.requiredProperties=["name","version","contributes"];class l extends a.Dispose{constructor(){super(...arguments),this._voicePackages=[]}get voicePackages(){const e=u.workspace.getConfiguration("rainbow-fart").get("locale",["zh"]);return this._voicePackages.filter(r=>t.requiredProperties.every(e=>void 0!==r[e])&&-1!==e.indexOf(r.locale)&&!c.default.isVoicePackageDisabled(r.name))}get allVoicePackages(){return this._voicePackages.slice(0)}init(){return n(this,void 0,void 0,(function*(){this._voicePackages=[];const e=c.default.voicePackages;for(const t of e)yield this.loadPackage(t);return this}))}loadPackage(e){return n(this,void 0,void 0,(function*(){let r=[];try{r=yield o.glob("*.json",e)}catch(e){h(e)}let n={};for(const e of r)try{const t=yield o.readFile(e);n=Object.assign(n,JSON.parse(t.toString()))}catch(e){h(e)}t.requiredProperties.every(t=>!!n[t]||(h(`Voice package ${e} require include ${t} field`),!1)),this._voicePackages.push(Object.assign(Object.assign({},n),{path:e}))}))}dispose(){this._voicePackages=[]}}t.Assets=l,t.default=new l},function(e,t,r){"use strict";const n=r(5),i=r(32),s=r(46),o=r(6);class a extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,this.constructor),this.name="GotError",o.undefined(t.code)||(this.code=t.code),Object.assign(this,{host:r.host,hostname:r.hostname,method:r.method,path:r.path,socketPath:r.socketPath,protocol:r.protocol,url:r.href,gotOptions:r})}}e.exports.GotError=a,e.exports.CacheError=class extends a{constructor(e,t){super(e.message,e,t),this.name="CacheError"}},e.exports.RequestError=class extends a{constructor(e,t){super(e.message,e,t),this.name="RequestError"}},e.exports.ReadError=class extends a{constructor(e,t){super(e.message,e,t),this.name="ReadError"}},e.exports.ParseError=class extends a{constructor(e,t,r,s){super(`${e.message} in "${n.format(r)}": \n${s.slice(0,77)}...`,e,r),this.name="ParseError",this.statusCode=t,this.statusMessage=i.STATUS_CODES[this.statusCode]}},e.exports.HTTPError=class extends a{constructor(e,t){const{statusCode:r}=e;let{statusMessage:n}=e;n=n?n.replace(/\r?\n/g," ").trim():i.STATUS_CODES[r],super(`Response code ${r} (${n})`,{},t),this.name="HTTPError",this.statusCode=r,this.statusMessage=n,this.headers=e.headers,this.body=e.body}},e.exports.MaxRedirectsError=class extends a{constructor(e,t,r){super("Redirected 10 times. Aborting.",{},r),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=i.STATUS_CODES[this.statusCode],this.redirectUrls=t}},e.exports.UnsupportedProtocolError=class extends a{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}},e.exports.TimeoutError=class extends a{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t),this.name="TimeoutError",this.event=e.event}},e.exports.CancelError=s.CancelError},function(e,t,r){"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(o-1),s=0;s<i.length;)i[s++]=arguments[s];return process.nextTick((function(){e.apply(null,i)}))}}}:e.exports=process},function(e,t,r){var n=r(127),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o),s(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(r(7)),o=r(26),a=r(3),c=r(8),u=r(27),h=r(19).logger.getLog("settings");class l extends c.Dispose{constructor(){super(...arguments),this.builtInVoicePackages=[],this.disableVoicePackages={}}init(e){return n(this,void 0,void 0,(function*(){const t=s.default.resolve(e.extensionPath,"built-in-voice-packages");try{const e=yield u.glob("*",t);e&&this.builtInVoicePackages.push(...e)}catch(e){h(e)}return this.loadDisabledVoicePackages(),this.push(a.workspace.onDidChangeConfiguration(()=>{this.loadDisabledVoicePackages()})),this}))}loadDisabledVoicePackages(){this.disableVoicePackages={};a.workspace.getConfiguration("rainbow-fart").get("disable-voice-packages",[]).forEach(e=>{this.disableVoicePackages[e]=!0})}get voicePackages(){const e=a.workspace.getConfiguration("rainbow-fart").get("voice-packages",[]);return this.builtInVoicePackages.concat(e.map(e=>e.replace(/^\$HOME/,o.homedir())))}isVoicePackageDisabled(e){return this.disableVoicePackages[e]}dispose(){super.dispose(),this.builtInVoicePackages=[]}}t.default=new l},function(e,t){e.exports=require("os")},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.mkdirs=t.exists=t.readFile=void 0;const s=i(r(9)),o=i(r(39));t.readFile=e=>n(void 0,void 0,void 0,(function*(){return new Promise((t,r)=>{s.default.readFile(e,(e,n)=>{if(e)return r(e);t(n)})})})),t.exists=e=>n(void 0,void 0,void 0,(function*(){return new Promise(t=>{s.default.exists(e,e=>{t(e)})})})),t.mkdirs=e=>n(void 0,void 0,void 0,(function*(){return new Promise(t=>{s.default.mkdir(e,{recursive:!0},e=>{if(e)return t(!1);t(!0)})})})),t.glob=(e,t)=>n(void 0,void 0,void 0,(function*(){return new Promise((r,n)=>{o.default(e,{cwd:t,absolute:!0},(e,t)=>{if(e)return n(e);r(t)})})}))},function(e,t,r){e.exports=h,h.Minimatch=l;var n={sep:"/"};try{n=r(7)}catch(e){}var i=h.GLOBSTAR=l.GLOBSTAR={},s=r(81),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var c=/\/+/;function u(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function h(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new l(t,r).match(e))}function l(e,t){if(!(this instanceof l))return new l(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function f(e,t){if(t||(t=this instanceof l?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:s(e)}h.filter=function(e,t){return t=t||{},function(r,n,i){return h(r,e,t)}},h.defaults=function(e){if(!e||!Object.keys(e).length)return h;var t=h,r=function(r,n,i){return t.minimatch(r,n,u(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,u(e,n))},r},l.defaults=function(e){return e&&Object.keys(e).length?h.defaults(e).Minimatch:l},l.prototype.debug=function(){},l.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(c)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},l.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,s=e.length;i<s&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},h.braceExpand=function(e,t){return f(e,t)},l.prototype.braceExpand=f,l.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return i;if(""===e)return"";var n,s="",c=!!r.nocase,u=!1,h=[],l=[],f=!1,p=-1,m=-1,g="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function b(){if(n){switch(n){case"*":s+="[^/]*?",c=!0;break;case"?":s+="[^/]",c=!0;break;default:s+="\\"+n}y.debug("clearStateChar %j %j",n,s),n=!1}}for(var _,v=0,w=e.length;v<w&&(_=e.charAt(v));v++)if(this.debug("%s\t%s %s %j",e,v,s,_),u&&a[_])s+="\\"+_,u=!1;else switch(_){case"/":return!1;case"\\":b(),u=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,v,s,_),f){this.debug(" in class"),"!"===_&&v===m+1&&(_="^"),s+=_;continue}y.debug("call clearStateChar %j",n),b(),n=_,r.noext&&b();continue;case"(":if(f){s+="(";continue}if(!n){s+="\\(";continue}h.push({type:n,start:v-1,reStart:s.length,open:o[n].open,close:o[n].close}),s+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,s),n=!1;continue;case")":if(f||!h.length){s+="\\)";continue}b(),c=!0;var k=h.pop();s+=k.close,"!"===k.type&&l.push(k),k.reEnd=s.length;continue;case"|":if(f||!h.length||u){s+="\\|",u=!1;continue}b(),s+="|";continue;case"[":if(b(),f){s+="\\"+_;continue}f=!0,m=v,p=s.length,s+=_;continue;case"]":if(v===m+1||!f){s+="\\"+_,u=!1;continue}if(f){var x=e.substring(m+1,v);try{RegExp("["+x+"]")}catch(e){var E=this.parse(x,d);s=s.substr(0,p)+"\\["+E[0]+"\\]",c=c||E[1],f=!1;continue}}c=!0,f=!1,s+=_;continue;default:b(),u?u=!1:!a[_]||"^"===_&&f||(s+="\\"),s+=_}f&&(x=e.substr(m+1),E=this.parse(x,d),s=s.substr(0,p)+"\\["+E[0],c=c||E[1]);for(k=h.pop();k;k=h.pop()){var S=s.slice(k.reStart+k.open.length);this.debug("setting tail",s,k),S=S.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",S,S,k,s);var O="*"===k.type?"[^/]*?":"?"===k.type?"[^/]":"\\"+k.type;c=!0,s=s.slice(0,k.reStart)+O+"\\("+S}b(),u&&(s+="\\\\");var C=!1;switch(s.charAt(0)){case".":case"[":case"(":C=!0}for(var A=l.length-1;A>-1;A--){var T=l[A],R=s.slice(0,T.reStart),P=s.slice(T.reStart,T.reEnd-8),j=s.slice(T.reEnd-8,T.reEnd),I=s.slice(T.reEnd);j+=I;var D=R.split("(").length-1,B=I;for(v=0;v<D;v++)B=B.replace(/\)[+*?]?/,"");var z="";""===(I=B)&&t!==d&&(z="$"),s=R+P+I+z+j}""!==s&&c&&(s="(?=.)"+s);C&&(s=g+s);if(t===d)return[s,c];if(!c)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var M=r.nocase?"i":"";try{var N=new RegExp("^"+s+"$",M)}catch(e){return new RegExp("$.")}return N._glob=e,N._src=s,N};var d={};h.makeRe=function(e,t){return new l(e,t||{}).makeRe()},l.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",s=e.map((function(e){return e.map((function(e){return e===i?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=!1}return this.regexp},h.match=function(e,t,r){var n=new l(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},l.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/"));e=e.split(c),this.debug(this.pattern,"split",e);var i,s,o=this.set;for(this.debug(this.pattern,"set",o),s=e.length-1;s>=0&&!(i=e[s]);s--);for(s=0;s<o.length;s++){var a=o[s],u=e;if(r.matchBase&&1===a.length&&(u=[i]),this.matchOne(u,a,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},l.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u,h=t[o],l=e[s];if(this.debug(t,h,l),!1===h)return!1;if(h===i){this.debug("GLOBSTAR",[t,h,l]);var f=s,d=o+1;if(d===c){for(this.debug("** at the end");s<a;s++)if("."===e[s]||".."===e[s]||!n.dot&&"."===e[s].charAt(0))return!1;return!0}for(;f<a;){var p=e[f];if(this.debug("\nglobstar while",e,f,t,d,p),this.matchOne(e.slice(f),t.slice(d),r))return this.debug("globstar found match!",f,a,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,f,t,d);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!r||(this.debug("\n>>> no match, partial?",e,f,t,d),f!==a))}if("string"==typeof h?(u=n.nocase?l.toLowerCase()===h.toLowerCase():l===h,this.debug("string match",h,l,u)):(u=l.match(h),this.debug("pattern match",h,l,u)),!u)return!1}if(s===a&&o===c)return!0;if(s===a)return r;if(o===c)return s===a-1&&""===e[s];throw new Error("wtf?")}},function(e,t){e.exports=require("assert")},function(e,t,r){"use strict";function n(e){return"/"===e.charAt(0)}function i(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?i:n,e.exports.posix=n,e.exports.win32=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=r(3),c=s(r(26)),u=r(8),h=r(7),l=r(27),f=r(89),d=r(19),p=r(155),m=d.logger.getLog("play"),g={darwin:["https://github.com/vot/ffbinaries-prebuilt/releases/download/v3.2/ffplay-3.2-osx-64.zip","ffplay"],linux:["https://github.com/vot/ffbinaries-prebuilt/releases/download/v3.2/ffplay-3.2.2-linux-32.zip","ffplay"],win32:["https://github.com/vot/ffbinaries-prebuilt/releases/download/v3.2/ffplay-3.2-win-32.zip","ffplay.exe"]};class y extends u.Dispose{constructor(){super(...arguments),this.cmd="",this.isPlaying=!1}init(e){return o(this,void 0,void 0,(function*(){const t=a.workspace.getConfiguration("rainbow-fart").get("ffplay","");if(""!==t)this.cmd=t.replace(/^\$HOME/,c.homedir());else{const t=e.storagePath;let r=yield l.exists(t);const n=g[c.default.platform()];n||a.workspace.showMessage("Your platform is not supported by now!"),r||(yield l.mkdirs(t));const i=h.join(t,n[1]);if(r=yield l.exists(i),!r)try{m(`${i} ${n[0]} ${n[1]}`),yield f.download(i,n[0],n[1]),this.cmd=i}catch(e){m("download error "+e)}this.cmd=i}return this}))}play(e){m("play "+e),e&&this.cmd&&!this.isPlaying?(this.isPlaying=!0,p.spawn(this.cmd,["-vn","-v","error","-nodisp","-autoexit",e]).on("exit",()=>{this.isPlaying=!1})):this.cmd||m(this.cmd+" does not exists")}}t.default=new y},function(e,t){e.exports=require("http")},function(e,t,r){"use strict";const n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,t)=>{const r=new Set(Object.keys(e).concat(n));for(const n of r)n in t||(t[n]="function"==typeof e[n]?e[n].bind(e):e[n])}},function(e,t,r){"use strict";const{URL:n}=r(5),i=r(6),s=r(53),o=(e,...t)=>{for(const r of t)for(const[t,s]of Object.entries(r)){if(i.undefined(s))continue;const r=e[t];i.urlInstance(r)&&(i.urlInstance(s)||i.string(s))?e[t]=new n(s,r):i.plainObject(s)?i.plainObject(r)?e[t]=o({},r,s):e[t]=o({},s):i.array(s)?e[t]=o([],s):e[t]=s}return e},a=(...e)=>{e=e.map(e=>e||{});const t=o({},...e),r={};for(const e of s)r[e]=[];for(const t of e)if(t.hooks)for(const e of s)r[e]=r[e].concat(t.hooks[e]);return t.hooks=r,t};e.exports=o,e.exports.options=a,e.exports.instances=(e,t)=>{const r=e.map(e=>e.defaults.handler),n=e.length-1;return{methods:t,options:a(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let i=-1;const s=e=>r[++i](e,i===n?t:s);return s(e)}}}},function(e,t,r){"use strict";var n=r(17),i=r(65),s=r(66),o=r(67);s=r(66);function a(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},e.exports=a},function(e,t,r){"use strict";var n=r(0);var i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var s=i,o=n+r;e^=-1;for(var a=n;a<o;a++)e=e>>>8^s[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var s=i,o=n+r;e^=-1;for(var a=n;a<o;a++)e=e>>>8^s[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},function(e,t,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.App=void 0;const s=r(3),o=i(r(25)),a=i(r(20)),c=i(r(87)),u=i(r(88)),h=i(r(156)),l=r(8),f=i(r(31)),d=r(19),p=r(157);class m extends l.Dispose{constructor(){super(...arguments),this.isEnabled=!1}init(e){this.context=e;const t=s.workspace.getConfiguration("rainbow-fart"),r=t.get("enabled",!0);return this.push(d.logger.init(t.get("trace.server","off"))),r?(this.load(),this):this}load(){return n(this,void 0,void 0,(function*(){this.isEnabled||(this.isEnabled=!0,this.push(c.default.init()),this.push(yield f.default.init(this.context)),this.push(yield o.default.init(this.context)),this.push(yield a.default.init()),this.push(u.default.init()),this.push(h.default.init()),this.push(new p.Sources))}))}}t.App=m,t.default=new m},function(e,t,r){e.exports=_;var n=r(9),i=r(40),s=r(28),o=(s.Minimatch,r(13)),a=r(12).EventEmitter,c=r(7),u=r(29),h=r(30),l=r(85),f=r(41),d=(f.alphasort,f.alphasorti,f.setopts),p=f.ownProp,m=r(86),g=(r(4),f.childrenIgnored),y=f.isIgnored,b=r(18);function _(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return l(e,t)}return new w(e,t,r)}_.sync=l;var v=_.GlobSync=l.GlobSync;function w(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new v(e,t)}if(!(this instanceof w))return new w(e,t,r);d(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=b(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var s=0;s<n;s++)this._process(this.minimatch.set[s],s,!1,o);function o(){--i._processing,i._processing<=0&&i._finish()}}_.glob=_,_.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new w(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},_.Glob=w,o(w,a),w.prototype._finish=function(){if(u(this instanceof w),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();f.finish(this),this.emit("end",this.found)}},w.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},w.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),s=this,o=n.length;if(0===o)return t();var a=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r),i.realpath(r,s.realpathCache,(function(n,i){n?"stat"===n.syscall?a[r]=!0:s.emit("error",n):a[i]=!0,0==--o&&(s.matches[e]=a,t())}))}))},w.prototype._mark=function(e){return f.mark(this,e)},w.prototype._makeAbs=function(e){return f.makeAbs(this,e)},w.prototype.abort=function(){this.aborted=!0,this.emit("abort")},w.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},w.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},w.prototype._process=function(e,t,r,n){if(u(this instanceof w),u("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var i,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:i=null;break;default:i=e.slice(0,o).join("/")}var a,c=e.slice(o);null===i?a=".":h(i)||h(e.join("/"))?(i&&h(i)||(i="/"+i),a=i):a=i;var l=this._makeAbs(a);if(g(this,a))return n();c[0]===s.GLOBSTAR?this._processGlobStar(i,a,l,c,t,r,n):this._processReaddir(i,a,l,c,t,r,n)}},w.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,(function(c,u){return a._processReaddir2(e,t,r,n,i,s,u,o)}))},w.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();for(var u=n[0],h=!!this.minimatch.negate,l=u._glob,f=this.dot||"."===l.charAt(0),d=[],p=0;p<o.length;p++){if("."!==(g=o[p]).charAt(0)||f)(h&&!e?!g.match(u):g.match(u))&&d.push(g)}var m=d.length;if(0===m)return a();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<m;p++){var g=d[p];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=c.join(this.root,g)),this._emitMatch(i,g)}return a()}n.shift();for(p=0;p<m;p++){g=d[p];e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),i,s,a)}a()},w.prototype._emitMatch=function(e,t){if(!this.aborted&&!y(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=h(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},w.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,i=m("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var s=i&&i.isSymbolicLink();r.symlinks[e]=s,s||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));i&&n.lstat(e,i)}},w.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=m("readdir\0"+e+"\0"+t,r))){if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e,r);if(p(this.cache,e)){var i=this.cache[e];if(!i||"FILE"===i)return r();if(Array.isArray(i))return r(null,i)}n.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},w.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},w.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},w.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,(function(c,u){a._processGlobStar2(e,t,r,n,i,s,u,o)}))},w.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var c=n.slice(1),u=e?[e]:[],h=u.concat(c);this._process(h,i,!1,a);var l=this.symlinks[r],f=o.length;if(l&&s)return a();for(var d=0;d<f;d++){if("."!==o[d].charAt(0)||this.dot){var p=u.concat(o[d],c);this._process(p,i,!0,a);var m=u.concat(o[d],n);this._process(m,i,!0,a)}}a()},w.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,s){n._processSimple2(e,t,i,s,r)}))},w.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&h(e)&&!this.nomount){var s=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=c.join(this.root,e):(e=c.resolve(this.root,e),s&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},w.prototype._stat=function(e,t){var r=this._makeAbs(e),i="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&p(this.cache,r)){var s=this.cache[r];if(Array.isArray(s)&&(s="DIR"),!i||"DIR"===s)return t(null,s);if(i&&"FILE"===s)return t()}var o=this.statCache[r];if(void