ethereum-lite-explorer
Version:
Ethereum Lite Explorer
1 lines • 116 kB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};e[r].call(i.exports,i,i.exports,n);i.l=!0;return i.exports}n.m=e;n.c=t;n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})};n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};n.t=function(e,t){1&t&&(e=n(e));if(8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);n.r(r);Object.defineProperty(r,"default",{enumerable:!0,value:e});if(2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r};n.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};n.d(t,"a",t);return t};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};n.p="";n(n.s="A4fm")}({"5IsQ":function(e,t){var n=e.exports={};var r;var i;function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:u}catch(e){i=u}}();function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function s(e){if(i===clearTimeout)return clearTimeout(e);if((i===u||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(e)}try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}var l=[];var c=!1;var f;var h=-1;function d(){if(!c||!f)return;c=!1;f.length?l=f.concat(l):h=-1;l.length&&m()}function m(){if(c)return;var e=a(d);c=!0;var t=l.length;for(;t;){f=l;l=[];for(;++h<t;)f&&f[h].run();h=-1;t=l.length}f=null;c=!1;s(e)}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t));1!==l.length||c||a(m)};function p(e,t){this.fun=e;this.array=t}p.prototype.run=function(){this.fun.apply(null,this.array)};n.title="browser";n.browser=!0;n.env={};n.argv=[];n.version="";n.versions={};function v(){}n.on=v;n.addListener=v;n.once=v;n.off=v;n.removeListener=v;n.removeAllListeners=v;n.emit=v;n.prependListener=v;n.prependOnceListener=v;n.listeners=function(e){return[]};n.binding=function(e){throw new Error("process.binding is not supported")};n.cwd=function(){return"/"};n.chdir=function(e){throw new Error("process.chdir is not supported")};n.umask=function(){return 0}},"9X2a":function(e,t,n){"use strict";(function(e,r){n.d(t,"c",function(){return y});n.d(t,"b",function(){return S});n.d(t,"a",function(){return L});n.d(t,"d",function(){return w});var i=!1;var o=!1;var u=!1;var a=!1;var s=!1;var l=void 0;var c=void 0;var f=void 0;var h="en";var d=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||d){if("object"==typeof e){i="win32"===e.platform;o="darwin"===e.platform;u="linux"===e.platform;l="en";c="en";var m=e.env["VSCODE_NLS_CONFIG"];if(m)try{var p=JSON.parse(m);var v=p.availableLanguages["*"];l=p.locale;c=v||"en";f=p._translationsConfigFile}catch(e){}a=!0}}else{var g=navigator.userAgent;i=g.indexOf("Windows")>=0;o=g.indexOf("Macintosh")>=0;u=g.indexOf("Linux")>=0;s=!0;c=l=navigator.language}var _=0;a&&(o?_=1:i?_=3:u&&(_=2));var y=i;var C=o;var b=u;var E=a;var S=s;var N;var L="object"==typeof self?self:"object"==typeof r?r:{};var A=null;function w(t){null===A&&(A=L.setImmediate?L.setImmediate.bind(L):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):L.setTimeout.bind(L));return A(t)}var P=o?2:i?1:3}).call(this,n("5IsQ"),n("pCvA"))},A4fm:function(e,t,n){"use strict";n.r(t);var r=n("eu5a");var i={};function o(e){var t=e.detail;var n=t.id;if(t.parent){t.handler&&i&&delete i[n];return}i[n]=t;1===Object.keys(i).length&&setTimeout(function(){var e=i;i={};Object.keys(e).forEach(function(t){var n=e[t];n.exception?s(n.exception):n.error&&s(n.error);console.log("WARNING: Promise with no error callback:"+n.id);console.log(n);n.exception&&console.log(n.exception.stack)})},0)}r["b"].addEventListener("error",o);var u;var a=new(function(){function e(){this.listeners=[];this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})};e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e);this.emit(e)};e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)};return e}());function s(e){h(e)||a.onUnexpectedError(e);return}function l(e){h(e)||a.onUnexpectedExternalError(e);return}function c(e){if(e instanceof Error){var t,n;var r;return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}}return e}var f="Canceled";function h(e){return e instanceof Error&&e.name===f&&e.message===f}function d(){var e=new Error(f);e.name=e.message;return e}function m(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function p(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}function v(e){return"function"==typeof e.dispose&&0===e.dispose.length}function g(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(e)){e.forEach(function(e){return e&&e.dispose()});return[]}if(0===t.length){if(e){e.dispose();return e}return}g(e);g(t);return[]}function _(e){return{dispose:function(){return g(e)}}}function y(e){return{dispose:function(){e()}}}var C=function(){function e(){this._toDispose=[]}e.prototype.dispose=function(){this._toDispose=g(this._toDispose)};e.prototype._register=function(e){this._toDispose.push(e);return e};e.None=Object.freeze({dispose:function(){}});return e}();var b=function(){function e(e){this.object=e}e.prototype.dispose=function(){};return e}();var E=n("9X2a");function S(e){var t=this;var n=!1;var r;return function(){if(n)return r;n=!0;return r=e.apply(t,arguments)}}var N=(L=function(e,t){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){L(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var L;var A={done:!0,value:void 0};var w;!function(e){var t={next:function(){return A}};function n(){return t}e.empty=n;function r(e,t,n){void 0===t&&(t=0);void 0===n&&(n=e.length);return{next:function(){if(t>=n)return A;return{done:!1,value:e[t++]}}}}e.fromArray=r;function i(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}e.from=i;function o(e,t){return{next:function(){var n=e.next();return n.done?A:{done:!1,value:t(n.value)}}}}e.map=o;function u(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return A;if(t(n.value))return{done:!1,value:n.value}}}}}e.filter=u;function a(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}e.forEach=a;function s(e){var t=[];a(e,function(e){return t.push(e)});return t}e.collect=s}(w||(w={}));var P;var O=function(e){N(t,e);function t(t,n,r,i){void 0===n&&(n=0);void 0===r&&(r=t.length);void 0===i&&(i=n-1);return e.call(this,t,n,r,i)||this}t.prototype.current=function(){return e.prototype.current.call(this)};t.prototype.previous=function(){this.index=Math.max(this.index-1,this.start-1);return this.current()};t.prototype.first=function(){this.index=this.start;return this.current()};t.prototype.last=function(){this.index=this.end-1;return this.current()};t.prototype.parent=function(){return null};return t}(function(){function e(e,t,n,r){void 0===t&&(t=0);void 0===n&&(n=e.length);void 0===r&&(r=t-1);this.items=e;this.start=t;this.end=n;this.index=r}e.prototype.next=function(){this.index=Math.min(this.index+1,this.end);return this.current()};e.prototype.current=function(){if(this.index===this.start-1||this.index===this.end)return null;return this.items[this.index]};return e}());var T=function(){function e(e,t){this.iterator=e;this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())};return e}();var x=function(){function e(e){this.element=e}return e}();var M=function(){function e(){}e.prototype.isEmpty=function(){return!this._first};e.prototype.unshift=function(e){return this.insert(e,!1)};e.prototype.push=function(e){return this.insert(e,!0)};e.prototype.insert=function(e,t){var n=this;var r=new x(e);if(this._first)if(t){var i=this._last;this._last=r;r.prev=i;i.next=r}else{var o=this._first;this._first=r;r.next=o;o.prev=r}else{this._first=r;this._last=r}return function(){var e=n._first;for(;e instanceof x;){if(e!==r){e=e.next;continue}if(e.prev&&e.next){var t=e.prev;t.next=e.next;e.next.prev=t}else if(e.prev||e.next)if(e.next){if(!e.prev){n._first=n._first.next;n._first.prev=void 0}}else{n._last=n._last.prev;n._last.next=void 0}else{n._first=void 0;n._last=void 0}break}}};e.prototype.iterator=function(){var e;var t=this._first;return{next:function(){if(!t)return A;e?e.value=t.element:e={done:!1,value:t.element};t=t.next;return e}}};return e}();var k;!function(e){var t={dispose:function(){}};e.None=function(){return t}}(k||(k={}));var I=function(){function e(e){void 0===e&&(e=null);this._options=e;this._event=null;this._disposed=!1;this._deliveryQueue=null;this._listeners=null}Object.defineProperty(e.prototype,"event",{get:function(){var t=this;this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new M);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var u=t._listeners.push(r?[n,r]:n);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t);t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r);var a;a={dispose:function(){a.dispose=e._noop;if(!t._disposed){u();if(t._options&&t._options.onLastListenerRemove){var n;t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)}}}};Array.isArray(i)&&i.push(a);return a});return this._event},enumerable:!0,configurable:!0});e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var r=this._deliveryQueue.shift(),i=r[0],o=r[1];try{"function"==typeof i?i.call(void 0,o):i[0].call(i[1],o)}catch(n){s(n)}}}};e.prototype.dispose=function(){this._listeners&&(this._listeners=null);this._deliveryQueue&&(this._deliveryQueue.length=0);this._disposed=!0};e._noop=function(){};return e}();var D=function(){function e(){var e=this;this.hasListeners=!1;this.events=[];this.emitter=new I({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0});e.prototype.add=function(e){var t=this;var n={event:e,listener:null};this.events.push(n);this.hasListeners&&this.hook(n);var r;return y(S(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))};e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0;this.events.forEach(function(t){return e.hook(t)})};e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1;this.events.forEach(function(t){return e.unhook(t)})};e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})};e.prototype.unhook=function(e){e.listener&&e.listener.dispose();e.listener=null};e.prototype.dispose=function(){this.emitter.dispose()};return e}();function R(e){return function(t,n,r){void 0===n&&(n=null);var i=!1;var o=e(function(e){if(i)return;o?o.dispose():i=!0;return t.call(n,e)},null,r);i&&o.dispose();return o}}function F(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){void 0===n&&(n=null);return _(e.map(function(e){return e(function(e){return t.call(n,e)},null,r)}))}}function U(e,t,n,r){void 0===n&&(n=100);void 0===r&&(r=!1);var i;var o=void 0;var u=void 0;var a=0;var s=new I({onFirstListenerAdd:function(){i=e(function(e){a++;o=t(o,e);r&&!u&&s.fire(o);clearTimeout(u);u=setTimeout(function(){var e=o;o=void 0;u=void 0;(!r||a>1)&&s.fire(e);a=0},n)})},onLastListenerRemove:function(){i.dispose()}});return s.event}var K=function(){function e(){this.buffers=[]}e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}};e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();this.buffers.pop();t.forEach(function(e){return e()});return n};return e}();function V(e,t){return function(n,r,i){void 0===r&&(r=null);return e(function(e){return n.call(r,t(e))},null,i)}}function W(e,t){return function(n,r,i){void 0===r&&(r=null);return e(function(e){return t(e)&&n.call(r,e)},null,i)}}var B=function(){function e(e){this._event=e}Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0});e.prototype.map=function(t){return new e(V(this._event,t))};e.prototype.filter=function(t){return new e(W(this._event,t))};e.prototype.on=function(e,t,n){return this._event(e,t,n)};return e}();function q(e){return new B(e)}var j=function(){function e(){var e=this;this.listening=!1;this.inputEvent=k.None;this.inputEventListener=C.None;this.emitter=new I({onFirstListenerDidAdd:function(){e.listening=!0;e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1;e.inputEventListener.dispose()}});this.event=this.emitter.event}Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e;if(this.listening){this.inputEventListener.dispose();this.inputEventListener=e(this.emitter.fire,this.emitter)}},enumerable:!0,configurable:!0});e.prototype.dispose=function(){this.inputEventListener.dispose();this.emitter.dispose()};return e}();var Y=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});var H;!function(e){function t(t){if(t===e.None||t===e.Cancelled)return!0;if(t instanceof J)return!0;if(!t||"object"!=typeof t)return!1;return"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested}e.isCancellationToken=t;e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:k.None});e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Y})}(H||(H={}));var J=function(){function e(){this._isCancelled=!1;this._emitter=null}e.prototype.cancel=function(){if(!this._isCancelled){this._isCancelled=!0;if(this._emitter){this._emitter.fire(void 0);this.dispose()}}};Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){if(this._isCancelled)return Y;this._emitter||(this._emitter=new I);return this._emitter.event},enumerable:!0,configurable:!0});e.prototype.dispose=function(){if(this._emitter){this._emitter.dispose();this._emitter=null}};return e}();var G=function(){function e(){}Object.defineProperty(e.prototype,"token",{get:function(){this._token||(this._token=new J);return this._token},enumerable:!0,configurable:!0});e.prototype.cancel=function(){this._token?this._token instanceof J&&this._token.cancel():this._token=H.Cancelled};e.prototype.dispose=function(){this._token?this._token instanceof J&&this._token.dispose():this._token=H.None};return e}();var z=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Q(e){return e&&"function"==typeof e.then}function X(e){var t=new G;var n=e(t.token);var r=new Promise(function(e,r){t.token.onCancellationRequested(function(){r(d())});Promise.resolve(n).then(function(n){t.dispose();e(n)},function(e){t.dispose();r(e)})});return new(function(){function e(){}e.prototype.cancel=function(){t.cancel()};e.prototype.then=function(e,t){return r.then(e,t)};e.prototype.catch=function(e){return this.then(void 0,e)};return e}())}var $=function(){function e(e){this.defaultDelay=e;this.timeout=null;this.completionPromise=null;this.doResolve=null;this.task=null}e.prototype.trigger=function(e,t){var n=this;void 0===t&&(t=this.defaultDelay);this.task=e;this.cancelTimeout();this.completionPromise||(this.completionPromise=new r["b"](function(e,t){n.doResolve=e;n.doReject=t}).then(function(){n.completionPromise=null;n.doResolve=null;var e=n.task;n.task=null;return e()}));this.timeout=setTimeout(function(){n.timeout=null;n.doResolve(null)},t);return this.completionPromise};e.prototype.cancel=function(){this.cancelTimeout();if(this.completionPromise){this.doReject(d());this.completionPromise=null}};e.prototype.cancelTimeout=function(){if(null!==this.timeout){clearTimeout(this.timeout);this.timeout=null}};e.prototype.dispose=function(){this.cancelTimeout()};return e}();function Z(e,t){if(!t)return X(function(t){return Z(e,t)});return new Promise(function(n,r){var i=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(i);r(d())})})}function ee(e,t){function n(){try{t()}catch(e){s(e)}}e.then(function(e){return n()},function(e){return n()});return Promise.resolve(e)}function te(e,t,n){void 0===t&&(t=function(e){return!!e});void 0===n&&(n=null);var r=0;var i=e.length;var o=function(){if(r>=i)return Promise.resolve(n);var u=e[r++];var a;return Promise.resolve(u()).then(function(e){if(t(e))return Promise.resolve(e);return o()})};return o()}var ne=function(e){z(t,e);function t(t,n){var r=e.call(this)||this;r._token=-1;"function"==typeof t&&"number"==typeof n&&r.setIfNotSet(t,n);return r}t.prototype.dispose=function(){this.cancel();e.prototype.dispose.call(this)};t.prototype.cancel=function(){if(-1!==this._token){clearTimeout(this._token);this._token=-1}};t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel();this._token=setTimeout(function(){n._token=-1;e()},t)};t.prototype.setIfNotSet=function(e,t){var n=this;if(-1!==this._token)return;this._token=setTimeout(function(){n._token=-1;e()},t)};return t}(C);var re=function(e){z(t,e);function t(){var t=e.call(this)||this;t._token=-1;return t}t.prototype.dispose=function(){this.cancel();e.prototype.dispose.call(this)};t.prototype.cancel=function(){if(-1!==this._token){clearInterval(this._token);this._token=-1}};t.prototype.cancelAndSet=function(e,t){this.cancel();this._token=setInterval(function(){e()},t)};return t}(C);var ie=function(){function e(e,t){this.timeoutToken=-1;this.runner=e;this.timeout=t;this.timeoutHandler=this.onTimeout.bind(this)}e.prototype.dispose=function(){this.cancel();this.runner=null};e.prototype.cancel=function(){if(this.isScheduled()){clearTimeout(this.timeoutToken);this.timeoutToken=-1}};e.prototype.schedule=function(e){void 0===e&&(e=this.timeout);this.cancel();this.timeoutToken=setTimeout(this.timeoutHandler,e)};e.prototype.isScheduled=function(){return-1!==this.timeoutToken};e.prototype.onTimeout=function(){this.timeoutToken=-1;this.runner&&this.doRun()};e.prototype.doRun=function(){this.runner&&this.runner()};return e}();var oe;!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});oe=function(t,n){void 0===n&&(n=0);var r=setTimeout(function(){return t(e)},n);var i=!1;return{dispose:function(){if(i)return;i=!0;clearTimeout(r)}}}}else oe=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);var r=!1;return{dispose:function(){if(r)return;r=!0;cancelIdleCallback(n)}}}}();var ue=function(){function e(e){var t=this;this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}};this._handle=oe(function(){return t._executor()})}e.prototype.dispose=function(){this._handle.dispose()};e.prototype.getValue=function(){if(!this._didRun){this._handle.dispose();this._executor()}if(this._error)throw this._error;return this._value};return e}();function ae(e){return Q(e)&&"function"==typeof e.done}var se=function(){function e(e){ae(e)?this._winjsPromise=e:this._winjsPromise=new r["a"](function(t,n){var r=!0;e(function(e){r?E["d"](function(){return t(e)}):t(e)},function(e){r?E["d"](function(){return n(e)}):n(e)});r=!1})}e.all=function(t){return new e(r["a"].join(t).then(null,function(e){for(var t in e)if(e.hasOwnProperty(t))return e[t]}))};e.race=function(t){return new e(r["a"].any(t).then(function(e){return e.value},function(e){return e.value}))};e.resolve=function(t){return new e(r["a"].wrap(t))};e.reject=function(t){return new e(r["a"].wrapError(t))};e.prototype.then=function(t,n){var i=!0;var o=new e(this._winjsPromise.then(t&&function(e){return i?new r["a"](function(n,r){E["d"](function(){var i;try{i=t(e)}catch(e){r(e);return}n(i)})}):t(e)},n&&function(e){return i?new r["a"](function(t,r){E["d"](function(){var i;try{i=n(e)}catch(e){r(e);return}t(i)})}):n(e)}));i=!1;return o};e.prototype.catch=function(e){return this.then(null,e)};return e}();var le=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ce=self;void 0===ce.Promise&&(ce.Promise=se);var fe="$initialize";var he=!1;function de(e){if(!E["b"])return;if(!he){he=!0;console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")}console.warn(e.message)}var me=function(){function e(e){this._workerId=-1;this._handler=e;this._lastSentReq=0;this._pendingReplies=Object.create(null)}e.prototype.setWorkerId=function(e){this._workerId=e};e.prototype.sendMessage=function(e,t){var n=this;var r=String(++this._lastSentReq);return new Promise(function(i,o){n._pendingReplies[r]={resolve:i,reject:o};n._send({vsWorker:n._workerId,req:r,method:e,args:t})})};e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){return}if(!t||!t.vsWorker)return;if(-1!==this._workerId&&t.vsWorker!==this._workerId)return;this._handleMessage(t)};e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq]){console.warn("Got reply to unknown seq");return}var r=this._pendingReplies[n.seq];delete this._pendingReplies[n.seq];if(n.err){var i=n.err;if(n.err.$isError){(i=new Error).name=n.err.name;i.message=n.err.message;i.stack=n.err.stack}r.reject(i);return}r.resolve(n.res);return}var o=e;var u=o.req;var a;this._handler.handleMessage(o.method,o.args).then(function(e){t._send({vsWorker:t._workerId,seq:u,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=c(e.detail));t._send({vsWorker:t._workerId,seq:u,res:void 0,err:c(e)})})};e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)};return e}();var pe=function(e){le(t,e);function t(t,n){var r=e.call(this)||this;var i=null;r._worker=r._register(t.create("vs/base/common/worker/simpleWorker",function(e){r._protocol.handleMessage(e)},function(e){i&&i(e)}));r._protocol=new me({sendMessage:function(e){r._worker.postMessage(e)},handleMessage:function(e,t){return Promise.resolve(null)}});r._protocol.setWorkerId(r._worker.getId());var o=null;void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config);r._onModuleLoaded=r._protocol.sendMessage(fe,[r._worker.getId(),n,o]);r._lazyProxy=new Promise(function(e,t){i=t;r._onModuleLoaded.then(function(t){var n={};for(var r=0;r<t.length;r++)n[t[r]]=a(t[r],u);e(n)},function(e){t(e);r._onError("Worker failed to load "+n,e)})});var u=function(e,t){return r._request(e,t)};var a=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}};return r}t.prototype.getProxyObject=function(){return this._lazyProxy};t.prototype._request=function(e,t){var n=this;return new Promise(function(r,i){n._onModuleLoaded.then(function(){n._protocol.sendMessage(e,t).then(r,i)},i)})};t.prototype._onError=function(e,t){console.error(e);console.info(t)};return t}(C);var ve=function(){function e(e,t){var n=this;this._requestHandler=t;this._protocol=new me({sendMessage:function(t){e(t)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)};e.prototype._handleMessage=function(e,t){if(e===fe)return this.initialize(t[0],t[1],t[2]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}};e.prototype.initialize=function(e,t,n){var r=this;this._protocol.setWorkerId(e);if(this._requestHandler){var i=[];for(var o in this._requestHandler)"function"==typeof this._requestHandler[o]&&i.push(o);return Promise.resolve(i)}if(n){void 0!==n.baseUrl&&delete n["baseUrl"];void 0!==n.paths&&void 0!==n.paths.vs&&delete n.paths["vs"];n.catchError=!0;self.require.config(n)}return new Promise(function(e,n){self.require([t],function(){var t=[];for(var i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[0];r._requestHandler=o.create();if(!r._requestHandler){n(new Error("No RequestHandler!"));return}var u=[];for(var a in r._requestHandler)"function"==typeof r._requestHandler[a]&&u.push(a);e(u)},n)})};return e}();function ge(e){return new ve(e,null)}function _e(e,t){void 0===t&&(t=0);return e[e.length-(1+t)]}function ye(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function Ce(e,t,n){void 0===n&&(n=function(e,t){return e===t});if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function be(e,t,n){var r=0,i=e.length-1;for(;r<=i;){var o=(r+i)/2|0;var u=n(e[o],t);if(u<0)r=o+1;else{if(!(u>0))return o;i=o-1}}return-(r+1)}function Ee(e,t){var n=0,r=e.length;if(0===r)return 0;for(;n<r;){var i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function Se(e,t){Le(e,t,0,e.length-1,[]);return e}function Ne(e,t,n,r,i,o){var u=n,a=r+1;for(var s=n;s<=i;s++)o[s]=e[s];for(var s=n;s<=i;s++)u>r?e[s]=o[a++]:a>i?e[s]=o[u++]:t(o[a],o[u])<0?e[s]=o[a++]:e[s]=o[u++]}function Le(e,t,n,r,i){if(r<=n)return;var o=n+(r-n)/2|0;Le(e,t,n,o,i);Le(e,t,o+1,r,i);if(t(e[o],e[o+1])<=0)return;Ne(e,t,n,o,r,i)}function Ae(e,t){var n=[];var r=void 0;for(var i=0,o=Se(e.slice(0),t);i<o.length;i++){var u=o[i];if(r&&0===t(r[0],u))r.push(u);else{r=[u];n.push(r)}}return n}function we(e){if(!e)return e;return e.filter(function(e){return!!e})}function Pe(e){return!Array.isArray(e)||0===e.length}function Oe(e,t){if(!t)return e.filter(function(t,n){return e.indexOf(t)===n});var n=Object.create(null);return e.filter(function(e){var r=t(e);if(n[r])return!1;n[r]=!0;return!0})}function Te(e,t){for(var n=0;n<e.length;n++){var r;if(t(e[n]))return n}return-1}function xe(e,t,n){void 0===n&&(n=null);var r=Te(e,t);return r<0?n:e[r]}function Me(e){var t;return(t=[]).concat.apply(t,e)}function ke(e,t){var n="number"==typeof t?e:0;if("number"==typeof t)n=e;else{n=0;t=e}var r=[];if(n<=t)for(var i=n;i<t;i++)r.push(i);else for(var i=n;i>t;i--)r.push(i);return r}function Ie(e,t,n){var r=e.slice(0,t);var i=e.slice(t);return r.concat(n,i)}var De=function(){function e(e,t,n,r){this.originalStart=e;this.originalLength=t;this.modifiedStart=n;this.modifiedLength=r}e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength};e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength};return e}();function Re(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function Fe(e,t,n){return new Be(Re(e),Re(t)).ComputeDiff(n)}var Ue=function(){function e(){}e.Assert=function(e,t){if(!e)throw new Error(t)};return e}();var Ke=function(){function e(){}e.Copy=function(e,t,n,r,i){for(var o=0;o<i;o++)n[r+o]=e[t+o]};return e}();var Ve=1447;var We=function(){function e(){this.m_changes=[];this.m_originalStart=Number.MAX_VALUE;this.m_modifiedStart=Number.MAX_VALUE;this.m_originalCount=0;this.m_modifiedCount=0}e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new De(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount));this.m_originalCount=0;this.m_modifiedCount=0;this.m_originalStart=Number.MAX_VALUE;this.m_modifiedStart=Number.MAX_VALUE};e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e);this.m_modifiedStart=Math.min(this.m_modifiedStart,t);this.m_originalCount++};e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e);this.m_modifiedStart=Math.min(this.m_modifiedStart,t);this.m_modifiedCount++};e.prototype.getChanges=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange();return this.m_changes};e.prototype.getReverseChanges=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange();this.m_changes.reverse();return this.m_changes};return e}();var Be=function(){function e(e,t,n){void 0===n&&(n=null);this.OriginalSequence=e;this.ModifiedSequence=t;this.ContinueProcessingPredicate=n;this.m_forwardHistory=[];this.m_reverseHistory=[]}e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)};e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)};e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)};e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)};e.prototype._ComputeDiff=function(e,t,n,r,i){var o=[!1];var u=this.ComputeDiffRecursive(e,t,n,r,o);if(i)return this.PrettifyChanges(u);return u};e.prototype.ComputeDiffRecursive=function(e,t,n,r,i){i[0]=!1;for(;e<=t&&n<=r&&this.ElementsAreEqual(e,n);){e++;n++}for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);){t--;r--}if(e>t||n>r){var o=void 0;if(n<=r){Ue.Assert(e===t+1,"originalStart should only be one more than originalEnd");o=[new De(e,0,n,r-n+1)]}else if(e<=t){Ue.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd");o=[new De(e,t-e+1,n,0)]}else{Ue.Assert(e===t+1,"originalStart should only be one more than originalEnd");Ue.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd");o=[]}return o}var u=[0],a=[0];var s=this.ComputeRecursionPoint(e,t,n,r,u,a,i);var l=u[0];var c=a[0];if(null!==s)return s;if(!i[0]){var f=this.ComputeDiffRecursive(e,l,n,c,i);var h=[];h=i[0]?[new De(l+1,t-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,r,i);return this.ConcatenateChanges(f,h)}return[new De(e,t-e+1,n,r-n+1)]};e.prototype.WALKTRACE=function(e,t,n,r,i,o,u,a,s,l,c,f,h,d,m,p,v,g){var _=null,y=null;var C=new We;var b=t;var E=n;var S=h[0]-p[0]-r;var N=Number.MIN_VALUE;var L=this.m_forwardHistory.length-1;var A;do{if((A=S+e)===b||A<E&&s[A-1]<s[A+1]){d=(c=s[A+1])-S-r;c<N&&C.MarkNextChange();N=c;C.AddModifiedElement(c+1,d);S=A+1-e}else{d=(c=s[A-1]+1)-S-r;c<N&&C.MarkNextChange();N=c-1;C.AddOriginalElement(c,d+1);S=A-1-e}if(L>=0){e=(s=this.m_forwardHistory[L])[0];b=1;E=s.length-1}}while(--L>=-1);_=C.getReverseChanges();if(g[0]){var w=h[0]+1;var P=p[0]+1;if(null!==_&&_.length>0){var O=_[_.length-1];w=Math.max(w,O.getOriginalEnd());P=Math.max(P,O.getModifiedEnd())}y=[new De(w,f-w+1,P,m-P+1)]}else{C=new We;b=o;E=u;S=h[0]-p[0]-a;N=Number.MAX_VALUE;L=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{if((A=S+i)===b||A<E&&l[A-1]>=l[A+1]){d=(c=l[A+1]-1)-S-a;c>N&&C.MarkNextChange();N=c+1;C.AddOriginalElement(c+1,d+1);S=A+1-i}else{d=(c=l[A-1])-S-a;c>N&&C.MarkNextChange();N=c;C.AddModifiedElement(c+1,d+1);S=A-1-i}if(L>=0){i=(l=this.m_reverseHistory[L])[0];b=1;E=l.length-1}}while(--L>=-1);y=C.getChanges()}return this.ConcatenateChanges(_,y)};e.prototype.ComputeRecursionPoint=function(e,t,n,r,i,o,u){var a=0,s=0;var l=0,c=0;var f=0,h=0;var d;e--;n--;i[0]=0;o[0]=0;this.m_forwardHistory=[];this.m_reverseHistory=[];var m=t-e+(r-n);var p=m+1;var v=new Array(p);var g=new Array(p);var _=r-n;var y=t-e;var C=e-n;var b=t-r;var E;var S=(y-_)%2==0;v[_]=e;g[y]=t;u[0]=!1;var N,L;for(d=1;d<=m/2+1;d++){var A=0;var w=0;l=this.ClipDiagonalBound(_-d,d,_,p);c=this.ClipDiagonalBound(_+d,d,_,p);for(N=l;N<=c;N+=2){s=(a=N===l||N<c&&v[N-1]<v[N+1]?v[N+1]:v[N-1]+1)-(N-_)-C;L=a;for(;a<t&&s<r&&this.ElementsAreEqual(a+1,s+1);){a++;s++}v[N]=a;if(a+s>A+w){A=a;w=s}if(!S&&Math.abs(N-y)<=d-1&&a>=g[N]){i[0]=a;o[0]=s;return L<=g[N]&&d<=1448?this.WALKTRACE(_,l,c,C,y,f,h,b,v,g,a,t,i,s,r,o,S,u):null}}var P=(A-e+(w-n)-d)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(A,this.OriginalSequence,P)){u[0]=!0;i[0]=A;o[0]=w;return P>0&&d<=1448?this.WALKTRACE(_,l,c,C,y,f,h,b,v,g,a,t,i,s,r,o,S,u):[new De(++e,t-e+1,++n,r-n+1)]}f=this.ClipDiagonalBound(y-d,d,y,p);h=this.ClipDiagonalBound(y+d,d,y,p);for(N=f;N<=h;N+=2){s=(a=N===f||N<h&&g[N-1]>=g[N+1]?g[N+1]-1:g[N-1])-(N-y)-b;L=a;for(;a>e&&s>n&&this.ElementsAreEqual(a,s);){a--;s--}g[N]=a;if(S&&Math.abs(N-_)<=d&&a<=v[N]){i[0]=a;o[0]=s;return L>=v[N]&&d<=1448?this.WALKTRACE(_,l,c,C,y,f,h,b,v,g,a,t,i,s,r,o,S,u):null}}if(d<=1447){var O=new Array(c-l+2);O[0]=_-l+1;Ke.Copy(v,l,O,1,c-l+1);this.m_forwardHistory.push(O);(O=new Array(h-f+2))[0]=y-f+1;Ke.Copy(g,f,O,1,h-f+1);this.m_reverseHistory.push(O)}}return this.WALKTRACE(_,l,c,C,y,f,h,b,v,g,a,t,i,s,r,o,S,u)};e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){var n=e[t];var r=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength();var i=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength();var o=n.originalLength>0;var u=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!u||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){n.originalStart++;n.modifiedStart++}var a=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)){e[t]=a[0];e.splice(t+1,1);t--;continue}}for(var t=e.length-1;t>=0;t--){var n=e[t];var r=0;var i=0;if(t>0){var s=e[t-1];s.originalLength>0&&(r=s.originalStart+s.originalLength);s.modifiedLength>0&&(i=s.modifiedStart+s.modifiedLength)}var o=n.originalLength>0;var u=n.modifiedLength>0;var l=0;var c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(var f=1;;f++){var h=n.originalStart-f;var d=n.modifiedStart-f;if(h<r||d<i)break;if(o&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(u&&!this.ModifiedElementsAreEqual(d,d+n.modifiedLength))break;var m=this._boundaryScore(h,n.originalLength,d,n.modifiedLength);if(m>c){c=m;l=f}}n.originalStart-=l;n.modifiedStart-=l}return e};e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)};e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1};e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)};e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1};e.prototype._boundaryScore=function(e,t,n,r){var i;var o;return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)};e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);Ke.Copy(e,0,r,0,e.length-1);r[e.length-1]=n[0];Ke.Copy(t,1,r,e.length,t.length-1);return r}var r=new Array(e.length+t.length);Ke.Copy(e,0,r,0,e.length);Ke.Copy(t,0,r,e.length,t.length);return r};e.prototype.ChangesOverlap=function(e,t,n){Ue.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change");Ue.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change");if(e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart;var i=e.originalLength;var o=e.modifiedStart;var u=e.modifiedLength;e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart);e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(u=t.modifiedStart+t.modifiedLength-e.modifiedStart);n[0]=new De(r,i,o,u);return!0}n[0]=null;return!1};e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e<r)return e;var i;var o=r-n-1;var u=t%2==0;if(e<0){var a;return u===(n%2==0)?0:1}var s;return u===(o%2==0)?r-1:r-2};return e}();var qe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var je;var Ye=/^\w[\w\d+.-]*$/;var He=/^\//;var Je=/^\/\//;var Ge=!0;function ze(e){if(!e.scheme){if(Ge)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!Ye.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!He.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Je.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function Qe(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==$e&&(t=$e+t):t=$e}return t}var Xe="";var $e="/";var Ze=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var et=function(){function e(e,t,n,r,i){if("object"==typeof e){this.scheme=e.scheme||Xe;this.authority=e.authority||Xe;this.path=e.path||Xe;this.query=e.query||Xe;this.fragment=e.fragment||Xe}else{this.scheme=e||Xe;this.authority=t||Xe;this.path=Qe(this.scheme,n||Xe);this.query=r||Xe;this.fragment=i||Xe;ze(this)}}e.isUri=function(t){if(t instanceof e)return!0;if(!t)return!1;return"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme};Object.defineProperty(e.prototype,"fsPath",{get:function(){return ot(this)},enumerable:!0,configurable:!0});e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;void 0===t?t=this.scheme:null===t&&(t=Xe);void 0===n?n=this.authority:null===n&&(n=Xe);void 0===r?r=this.path:null===r&&(r=Xe);void 0===i?i=this.query:null===i&&(i=Xe);void 0===o?o=this.fragment:null===o&&(o=Xe);if(t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment)return this;return new tt(t,n,r,i,o)};e.parse=function(e){var t=Ze.exec(e);if(!t)return new tt(Xe,Xe,Xe,Xe,Xe);return new tt(t[2]||Xe,decodeURIComponent(t[4]||Xe),decodeURIComponent(t[5]||Xe),decodeURIComponent(t[7]||Xe),decodeURIComponent(t[9]||Xe))};e.file=function(e){var t=Xe;E["c"]&&(e=e.replace(/\\/g,$e));if(e[0]===$e&&e[1]===$e){var n=e.indexOf($e,2);if(-1===n){t=e.substring(2);e=$e}else{t=e.substring(2,n);e=e.substring(n)||$e}}return new tt("file",t,e,Xe,Xe)};e.from=function(e){return new tt(e.scheme,e.authority,e.path,e.query,e.fragment)};e.prototype.toString=function(e){void 0===e&&(e=!1);return ut(this,e)};e.prototype.toJSON=function(){return this};e.revive=function(t){if(t){if(t instanceof e)return t;var n=new tt(t);n._fsPath=t.fsPath;n._formatted=t.external;return n}return t};return e}();var tt=function(e){qe(t,e);function t(){var t=null!==e&&e.apply(this,arguments)||this;t._formatted=null;t._fsPath=null;return t}Object.defineProperty(t.prototype,"fsPath",{get:function(){this._fsPath||(this._fsPath=ot(this));return this._fsPath},enumerable:!0,configurable:!0});t.prototype.toString=function(e){void 0===e&&(e=!1);if(e)return ut(this,!0);this._formatted||(this._formatted=ut(this,!1));return this._formatted};t.prototype.toJSON=function(){var e={$mid:1};this._fsPath&&(e.fsPath=this._fsPath);this._formatted&&(e.external=this._formatted);this.path&&(e.path=this.path);this.scheme&&(e.scheme=this.scheme);this.authority&&(e.authority=this.authority);this.query&&(e.query=this.query);this.fragment&&(e.fragment=this.fragment);return e};return t}(et);var nt=((je={})[58]="%3A",je[47]="%2F",je[63]="%3F",je[35]="%23",je[91]="%5B",je[93]="%5D",je[64]="%40",je[33]="%21",je[36]="%24",je[38]="%26",je[39]="%27",je[40]="%28",je[41]="%29",je[42]="%2A",je[43]="%2B",je[44]="%2C",je[59]="%3B",je[61]="%3D",je[32]="%20",je);function rt(e,t){var n=void 0;var r=-1;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o){if(-1!==r){n+=encodeURIComponent(e.substring(r,i));r=-1}void 0!==n&&(n+=e.charAt(i))}else{void 0===n&&(n=e.substr(0,i));var u=nt[o];if(void 0!==u){if(-1!==r){n+=encodeURIComponent(e.substring(r,i));r=-1}n+=u}else-1===r&&(r=i)}}-1!==r&&(n+=encodeURIComponent(e.substring(r)));return void 0!==n?n:e}function it(e){var t=void 0;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(35===r||63===r){void 0===t&&(t=e.substr(0,n));t+=nt[r]}else void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function ot(e){var t;t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path;E["c"]&&(t=t.replace(/\//g,"\\"));return t}function ut(e,t){var n=t?it:rt;var r="";var i=e.scheme,o=e.authority,u=e.path,a=e.query,s=e.fragment;if(i){r+=i;r+=":"}if(o||"file"===i){r+=$e;r+=$e}if(o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1);if(-1===(l=c.indexOf(":")))r+=n(c,!1);else{r+=n(c.substr(0,l),!1);r+=":";r+=n(c.substr(l+1),!1)}r+="@"}if(-1===(l=(o=o.toLowerCase()).indexOf(":")))r+=n(o,!1);else{r+=n(o.substr(0,l),!1);r+=o.substr(l)}}if(u){if(u.length>=3&&47===u.charCodeAt(0)&&58===u.charCodeAt(2)){var f;(f=u.charCodeAt(1))>=65&&f<=90&&(u="/"+String.fromCharCode(f+32)+":"+u.substr(3))}else if(u.length>=2&&58===u.charCodeAt(1)){var f;(f=u.charCodeAt(0))>=65&&f<=90&&(u=String.fromCharCode(f+32)+":"+u.substr(2))}r+=n(u,!0)}if(a){r+="?";r+=n(a,!1)}if(s){r+="#";r+=t?s:rt(s,!1)}return r}var at=function(){function e(e,t){this.lineNumber=e;this.column=t}e.prototype.with=function(t,n){void 0===t&&(t=this.lineNumber);void 0===n&&(n=this.column);return t===this.lineNumber&&n===this.column?this:new e(t,n)};e.prototype.delta=function(e,t){void 0===e&&(e=0);void 0===t&&(t=0);return this.with(this.lineNumber+e,this.column+t)};e.prototype.equals=function(t){return e.equals(this,t)};e.equals=function(e,t){if(!e&&!t)return!0;return!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column};e.prototype.isBefore=function(t){return e.isBefore(this,t)};e.isBefore=function(e,t){if(e.lineNumber<t.lineNumber)return!0;if(t.lineNumber<e.lineNumber)return!1;return e.column<t.column};e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)};e.isBeforeOrEqual=function(e,t){if(e.lineNumber<t.lineNumber)return!0;if(t.lineNumber<e.lineNumber)return!1;return e.column<=t.column};e.compare=function(e,t){var n=0|e.lineNumber;var r=0|t.lineNumber;if(n===r){var i;var o;return(0|e.column)-(0|t.column)}return n-r};e.prototype.clone=function(){return new e(this.lineNumber,this.column)};e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"};e.lift=function(t){return new e(t.lineNumber,t.column)};e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column};return e}();var st=function(){function e(e,t,n,r){if(e>n||e===n&&t>r){this.startLineNumber=n;this.startColumn=r;this.endLineNumber=e;this.endColumn=t}else{this.startLineNumber=e;this.startColumn=t;this.endLineNumber=n;this.endColumn=r}}e.prototype.isEmpty=function(){return e.isEmpty(this)};e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn};e.prototype.containsPosition=function(t){return e.containsPosition(this,t)};e.containsPosition=function(e,t){if(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)return!1;if(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)return!1;if(t.lineNumber===e.endLineNumber&&t.column>e.endColumn)return!1;return!0};e.prototype.containsRange=function(t){return e.containsRange(this,t)};e.containsRange=function(e,t){if(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)return!1;if(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)return!1;if(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)return!1;if(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)return!1;return!0};e.prototype.plusRange=function(t){return e.plusRange(this,t)};e.plusRange=function(t,n){var r;var i;var o;var u;if(n.startLineNumber<t.startLineNumber){r=n.startLineNumber;i=n.startColumn}else if(n.startLineNumber===t.startLineNumber){r=n.startLineNumber;i=Math.min(n.startColumn,t.startColumn)}else{r=t.startLineNumber;i=t.startColumn}if(n.endLineNumber>t.endLineNumber){o=n.endLineNumber;u=n.endColumn}else if(n.endLineNumber===t.endLineNumber){o=n.endLineNumber;u=Math.max(n.endColumn,t.endColumn)}else{o=t.endLineNumber;u=t.endColumn}return new e(r,i,o,u)};e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)};e.intersectRanges=function(t,n){var r=t.startLineNumber;var i=t.startColumn;var o=t.endLineNumber;var u=t.endColumn;var a=n.startLineNumber;var s=n.startColumn;var l=n.endLineNumber;var c=n.endColumn;if(r<a){r=a;i=s}else r===a&&(i=Math.max(i,s));if(o>l){o=l;u=c}else o===l&&(u=Math.min(u,c));if(r>o)return null;if(r===o&&i>u)return null;return new e(r,i,o,u)};e.prototype.equalsRange=function(t){return e.equalsRange(this,t)};e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn};e.prototype.getEndPosition=function(){return new at(this.endLineNumber,this.endColumn)};e.prototype.getStartPosition=function(){return new at(this.startLineNumber,this.startColumn)};e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"};e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)};e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)};e.prototype.collapseToStart=function(){return e.collapseToStart(this)};e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)};e.fromPositions=function(t,n){void 0===n&&(n=t);return new e(t.lineNumber,t.column,n.lineNumber,n.column)};e.lift=function(t){if(!t)return null;return new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn)};e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn};e.areIntersectingOrTouching=function(e,t){if(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)return!1;if(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)return!1;return!0};e.areIntersecting=function(e,t){if(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)return!1;if(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)return!1;return!0};e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber;var r=0|t.startLineNumber;if(n===r){var i=0|e.startColumn;var o=0|t.startColumn;if(i===o){var u=0|e.endLineNumber;var a=0|t.endLineNumber;if(u===a){var s;var l;return(0|e.endColumn)-(0|t.endColumn)}return u-a}return i-o}return n-r}var c;var f;return(e?1:0)-(t?1:0)};e.compareRangesUsingEnds=function(e,t){if(e.endLineNumber===t.endLineNumber){if(e.endColumn===t.endColumn){if(e.startLineNumber===t.startLineNumber)return e.startColumn-t.startColumn;return e.startLineNumber-t.startLineNumber}return e.endColumn-t.