!function(t){function e(e){for(var n,i,o=e[0],u=e[1],s=0,c=[];s"),r}n.Namespace||(n.Namespace=Object.create(Object.prototype));var s={uninitialized:1,working:2,initialized:3};Object.defineProperties(n.Namespace,{defineWithParent:{value:u,writable:!0,enumerable:!0,configurable:!0},define:{value:function(t,n){return u(e,t,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(t){var e,n,i=s.uninitialized;return{setName:function(t){e=t},get:function(){switch(i){case s.initialized:return n;case s.uninitialized:i=s.working;try{r("WinJS.Namespace._lazy:"+e+",StartTM"),n=t()}finally{r("WinJS.Namespace._lazy:"+e+",StopTM"),i=s.uninitialized}return t=null,i=s.initialized,n;case s.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(t){switch(i){case s.working:throw"Illegal: reentrancy on initialization";default:i=s.initialized,n=t}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(t,n,r){var u=[t],s=null;return n&&(s=o(e,n),u.push(s)),i(u,r,n||""),s},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function e(t,e,r){return t=t||function(){},n.markSupportedForProcessing(t),e&&i(t.prototype,e),r&&i(t,r),t}t.Namespace.define("WinJS.Class",{define:e,derive:function(t,r,o,u){if(t){r=r||function(){};var s=t.prototype;return r.prototype=Object.create(s),n.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),o&&i(r.prototype,o),u&&i(r,u),r}return e(r,o,u)},mix:function(t){var e,n;for(t=t||function(){},e=1,n=arguments.length;e0;){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){Object(u.e)(n)}}}},t.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},t._noop=function(){},t}(),c=function(){function t(){var t=this;this.hasListeners=!1,this.events=[],this.emitter=new a({onFirstListenerAdd:function(){return t.onFirstListenerAdd()},onLastListenerRemove:function(){return t.onLastListenerRemove()}})}return Object.defineProperty(t.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=this,n={event:t,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return Object(i.g)(Object(o.a)(function(){e.hasListeners&&e.unhook(n);var t=e.events.indexOf(n);e.events.splice(t,1)}))},t.prototype.onFirstListenerAdd=function(){var t=this;this.hasListeners=!0,this.events.forEach(function(e){return t.hook(e)})},t.prototype.onLastListenerRemove=function(){var t=this;this.hasListeners=!1,this.events.forEach(function(e){return t.unhook(e)})},t.prototype.hook=function(t){var e=this;t.listener=t.event(function(t){return e.emitter.fire(t)})},t.prototype.unhook=function(t){t.listener.dispose(),t.listener=null},t.prototype.dispose=function(){this.emitter.dispose()},t}();function l(t){return function(e,n,r){void 0===n&&(n=null);var i=t(function(t){return i.dispose(),e.call(n,t)},null,r);return i}}function f(){for(var t=[],e=0;e1)&&c.fire(t),s=0},n)})},onLastListenerRemove:function(){i.dispose()}});return c.event}var d=function(){function t(){this.buffers=[]}return t.prototype.wrapEvent=function(t){var e=this;return function(n,r,i){return t(function(t){var i=e.buffers[e.buffers.length-1];i?i.push(function(){return n.call(r,t)}):n.call(r,t)},void 0,i)}},t.prototype.bufferEvents=function(t){var e=[];this.buffers.push(e),t(),this.buffers.pop(),e.forEach(function(t){return t()})},t}();function p(t,e){return function(n,r,i){return void 0===r&&(r=null),t(function(t){return n.call(r,e(t))},null,i)}}function m(t,e){return function(n,r,i){return void 0===r&&(r=null),t(function(t){return e(t)&&n.call(r,t)},null,i)}}var _=function(){function t(t){this._event=t}return Object.defineProperty(t.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),t.prototype.map=function(e){return new t(p(this._event,e))},t.prototype.forEach=function(e){return new t((n=this._event,r=e,function(t,e,i){return void 0===e&&(e=null),n(function(n){r(n),t.call(e,n)},null,i)}));var n,r},t.prototype.filter=function(e){return new t(m(this._event,e))},t.prototype.latch=function(){return new t((e=this._event,r=!0,m(e,function(t){var e=r||t!==n;return r=!1,n=t,e})));var e,n,r},t.prototype.on=function(t,e,n){return this._event(t,e,n)},t}();function g(t){return new _(t)}var v=function(){function t(){this.emitter=new a,this.event=this.emitter.event,this.disposable=i.e}return Object.defineProperty(t.prototype,"input",{set:function(t){this.disposable.dispose(),this.disposable=t(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(5),i=function(){function t(t,e,n,r){t>n||t===n&&e>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=t,this.endColumn=e):(this.startLineNumber=t,this.startColumn=e,this.endLineNumber=n,this.endColumn=r)}return t.prototype.isEmpty=function(){return t.isEmpty(this)},t.isEmpty=function(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn},t.prototype.containsPosition=function(e){return t.containsPosition(this,e)},t.containsPosition=function(t,e){return!(e.lineNumbert.endLineNumber)&&(!(e.lineNumber===t.startLineNumber&&e.columnt.endColumn))},t.prototype.containsRange=function(e){return t.containsRange(this,e)},t.containsRange=function(t,e){return!(e.startLineNumbert.endLineNumber||e.endLineNumber>t.endLineNumber)&&(!(e.startLineNumber===t.startLineNumber&&e.startColumnt.endColumn)))},t.prototype.plusRange=function(e){return t.plusRange(this,e)},t.plusRange=function(e,n){var r,i,o,u;return n.startLineNumbere.endLineNumber?(o=n.endLineNumber,u=n.endColumn):n.endLineNumber===e.endLineNumber?(o=n.endLineNumber,u=Math.max(n.endColumn,e.endColumn)):(o=e.endLineNumber,u=e.endColumn),new t(r,i,o,u)},t.prototype.intersectRanges=function(e){return t.intersectRanges(this,e)},t.intersectRanges=function(e,n){var r=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,u=e.endColumn,s=n.startLineNumber,a=n.startColumn,c=n.endLineNumber,l=n.endColumn;return rc?(o=c,u=l):o===c&&(u=Math.min(u,l)),r>o?null:r===o&&i>u?null:new t(r,i,o,u)},t.prototype.equalsRange=function(e){return t.equalsRange(this,e)},t.equalsRange=function(t,e){return!!t&&!!e&&t.startLineNumber===e.startLineNumber&&t.startColumn===e.startColumn&&t.endLineNumber===e.endLineNumber&&t.endColumn===e.endColumn},t.prototype.getEndPosition=function(){return new r.a(this.endLineNumber,this.endColumn)},t.prototype.getStartPosition=function(){return new r.a(this.startLineNumber,this.startColumn)},t.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},t.prototype.setEndPosition=function(e,n){return new t(this.startLineNumber,this.startColumn,e,n)},t.prototype.setStartPosition=function(e,n){return new t(e,n,this.endLineNumber,this.endColumn)},t.prototype.collapseToStart=function(){return t.collapseToStart(this)},t.collapseToStart=function(e){return new t(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.lift=function(e){return e?new t(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},t.isIRange=function(t){return t&&"number"==typeof t.startLineNumber&&"number"==typeof t.startColumn&&"number"==typeof t.endLineNumber&&"number"==typeof t.endColumn},t.areIntersectingOrTouching=function(t,e){return!(t.endLineNumbert.startLineNumber},t}()},function(t,e,n){"use strict";n.d(e,"e",function(){return i}),n.d(e,"f",function(){return o}),n.d(e,"d",function(){return u}),n.d(e,"c",function(){return s}),n.d(e,"g",function(){return a}),n.d(e,"a",function(){return c}),n.d(e,"b",function(){return l});var r=n(22),i=Object.freeze({dispose:function(){}});function o(t){return"function"==typeof t.dispose&&0===t.dispose.length}function u(t){for(var e=[],n=1;n=e.length?t:e[r]})}function c(t){return t.replace(/[<|>|&]/g,function(t){switch(t){case"<":return"<";case">":return">";case"&":return"&";default:return t}})}function l(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function f(t,e){return void 0===e&&(e=" "),d(h(t,e),e)}function h(t,e){if(!t||!e)return t;var n=e.length;if(0===n||0===t.length)return t;for(var r=0;t.indexOf(e,r)===r;)r+=n;return t.substring(r)}function d(t,e){if(!t||!e)return t;var n=e.length,r=t.length;if(0===n||0===r)return t;for(var i=r,o=-1;-1!==(o=t.lastIndexOf(e,i-1))&&o+n===i;){if(0===o)return"";i=o}return t.substring(0,i)}function p(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m(t){return t.replace(/\*/g,"")}function _(t,e){if(t.length0?t.indexOf(e,n)===n:0===n&&t===e}function v(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("Cannot create regex from empty string");e||(t=l(t)),n.wholeWord&&(/\B/.test(t.charAt(0))||(t="\\b"+t),/\B/.test(t.charAt(t.length-1))||(t+="\\b"));var r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),new RegExp(t,r)}function y(t){return"^"!==t.source&&"^$"!==t.source&&"$"!==t.source&&"^\\s*$"!==t.source&&(t.exec("")&&0===t.lastIndex)}function b(t){return!!t.match(/([^\\]|^)(\\\\)*\\\d+/)}var C="function"==typeof"".normalize,S=new r.a(1e4);function E(t){return A(t,"NFC",S)}var L=new r.a(1e4);function N(t){return A(t,"NFD",L)}var w=/[^\u0000-\u0080]/;function A(t,e,n){if(!C||!t)return t;var r,i=n.get(t);return i||(r=w.test(t)?t.normalize(e):t,n.set(t,r),r)}function P(t){for(var e=0,n=t.length;e=0;n--){var r=t.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}function k(t,e){return te?1:0}function M(t,e){for(var n=Math.min(t.length,e.length),r=0;re.length?1:0}function D(t){return t>=97&&t<=122}function I(t){return t>=65&&t<=90}function T(t){return D(t)||I(t)}function F(t,e){return(t?t.length:0)===(e?e.length:0)&&U(t,e)}function U(t,e,n){if(void 0===n&&(n=t.length),"string"!=typeof t||"string"!=typeof e)return!1;for(var r=0;rt.length)&&U(t,e,n)}function K(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n0;){if(q(t,i,n,e,0,r))return r;r-=1,i+=1}return 0}function V(t){return 55296<=t&&t<=56319}function B(t){return 56320<=t&&t<=57343}var Y=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(t){return Y.test(t)}var J=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;function z(t){return J.test(t)}var Q=/^[\t\n\r\x20-\x7E]*$/;function $(t){return Q.test(t)}function G(t){for(var e=0,n=t.length;e=11904&&t<=55215||t>=63744&&t<=64255||t>=65281&&t<=65374}function Z(t,e){if(t.length0&&65279===t.charCodeAt(0)}function ut(t){return ot(t)?t.substr(1):t}function st(t){return btoa(encodeURIComponent(t))}function at(t,e){for(var n="",r=0;r=0,u=d.indexOf("Macintosh")>=0,s=d.indexOf("Linux")>=0,c=!0,navigator.language}!function(t){t[t.Web=0]="Web",t[t.Mac=1]="Mac",t[t.Linux=2]="Linux",t[t.Windows=3]="Windows"}(i||(i={}));i.Web;a&&(u?i.Mac:o?i.Windows:s&&i.Linux);var p=o,m=u,_=s,g=a,v=c;var y="object"==typeof self?self:"object"==typeof r?r:{},b=null;function C(e){return null===b&&(b=y.setImmediate?y.setImmediate.bind(y):void 0!==t&&"function"==typeof t.nextTick?t.nextTick.bind(t):y.setTimeout.bind(y)),b(e)}var S=u?2:o?1:3}).call(this,n(25),n(28))},function(t,e,n){"use strict";n.d(e,"e",function(){return o}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return s}),n.d(e,"d",function(){return c}),n.d(e,"a",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"c",function(){return h});var r={};n(0).b.addEventListener("error",function(t){var e=t.detail,n=e.id;e.parent?e.handler&&r&&delete r[n]:(r[n]=e,1===Object.keys(r).length&&setTimeout(function(){var t=r;r={},Object.keys(t).forEach(function(e){var n=t[e];n.exception?o(n.exception):n.error&&o(n.error),console.log("WARNING: Promise with no error callback:"+n.id),console.log(n),n.exception&&console.log(n.exception.stack)})},0))});var i=new(function(){function t(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(function(){if(t.stack)throw new Error(t.message+"\n\n"+t.stack);throw t},0)}}return t.prototype.addListener=function(t){var e=this;return this.listeners.push(t),function(){e._removeListener(t)}},t.prototype.emit=function(t){this.listeners.forEach(function(e){e(t)})},t.prototype._removeListener=function(t){this.listeners.splice(this.listeners.indexOf(t),1)},t.prototype.setUnexpectedErrorHandler=function(t){this.unexpectedErrorHandler=t},t.prototype.getUnexpectedErrorHandler=function(){return this.unexpectedErrorHandler},t.prototype.onUnexpectedError=function(t){this.unexpectedErrorHandler(t),this.emit(t)},t.prototype.onUnexpectedExternalError=function(t){this.unexpectedErrorHandler(t)},t}());function o(t){c(t)||i.onUnexpectedError(t)}function u(t){c(t)||i.onUnexpectedExternalError(t)}function s(t){return t instanceof Error?{$isError:!0,name:t.name,message:t.message,stack:t.stacktrace||t.stack}:t}var a="Canceled";function c(t){return t instanceof Error&&t.name===a&&t.message===a}function l(){var t=new Error(a);return t.name=t.message,t}function f(t){return t?new Error("Illegal argument: "+t):new Error("Illegal argument")}function h(t){return t?new Error("Illegal state: "+t):new Error("Illegal state")}},function(t,e,n){"use strict";n.d(e,"j",function(){return f}),n.d(e,"g",function(){return h}),n.d(e,"k",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"a",function(){return m}),n.d(e,"d",function(){return _}),n.d(e,"h",function(){return v}),n.d(e,"i",function(){return b}),n.d(e,"f",function(){return C}),n.d(e,"b",function(){return S}),n.d(e,"c",function(){return E});var r,i=n(7),o=n(0),u=n(20),s=n(3),a=n(1),c=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function l(t){return t&&"function"==typeof t.then}function f(t){return l(t)?t:o.b.as(t)}function h(t){var e=new u.b;return new o.b(function(n,r,i){var u=t(e.token);u instanceof o.b?u.then(function(t){e.dispose(),n(t)},function(t){e.dispose(),r(t)},i):l(u)?u.then(function(t){e.dispose(),n(t)},function(t){e.dispose(),r(t)}):(e.dispose(),n(u))},function(){e.cancel()})}function d(t,e,n){var r=t.onCancellationRequested(function(){return e.cancel()});return n&&(e=e.then(void 0,function(t){if(!i.d(t))return o.b.wrapError(t)})),g(e,function(){return r.dispose()})}var p=function(){function t(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return t.prototype.queue=function(t){var e=this;if(this.activePromise){if(this.queuedPromiseFactory=t,!this.queuedPromise){var n=function(){e.queuedPromise=null;var t=e.queue(e.queuedPromiseFactory);return e.queuedPromiseFactory=null,t};this.queuedPromise=new o.b(function(t,r,i){e.activePromise.then(n,n,i).done(t)},function(){e.activePromise.cancel()})}return new o.b(function(t,n,r){e.queuedPromise.then(t,n,r)},function(){})}return this.activePromise=t(),new o.b(function(t,n,r){e.activePromise.done(function(n){e.activePromise=null,t(n)},function(t){e.activePromise=null,n(t)},r)},function(){e.activePromise.cancel()})},t}(),m=(function(){function t(){this.current=o.b.wrap(null)}t.prototype.queue=function(t){return this.current=this.current.then(function(){return t()})}}(),function(){function t(t){this.defaultDelay=t,this.timeout=null,this.completionPromise=null,this.onSuccess=null,this.task=null}return t.prototype.trigger=function(t,e){var n=this;return void 0===e&&(e=this.defaultDelay),this.task=t,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new o.b(function(t){n.onSuccess=t},function(){}).then(function(){n.completionPromise=null,n.onSuccess=null;var t=n.task;return n.task=null,t()})),this.timeout=setTimeout(function(){n.timeout=null,n.onSuccess(null)},e),this.completionPromise},t.prototype.isTriggered=function(){return null!==this.timeout},t.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.completionPromise.cancel(),this.completionPromise=null)},t.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t}()),_=(function(t){function e(e){var n=t.call(this,e)||this;return n.throttler=new p,n}c(e,t),e.prototype.trigger=function(e,n){var r=this;return t.prototype.trigger.call(this,function(){return r.throttler.queue(e)},n)}}(m),function(){function t(){var t=this;this._isOpen=!1,this._promise=new o.b(function(e,n,r){t._completePromise=e},function(){console.warn("You should really not try to cancel this ready promise!")})}t.prototype.isOpen=function(){return this._isOpen},t.prototype.open=function(){this._isOpen=!0,this._completePromise(!0)},t.prototype.wait=function(){return this._promise}}(),function(t){function e(e){var n,r,o,u;return n=t.call(this,function(t,e,n){r=t,o=e,u=n},function(){o(i.a())})||this,e.then(r,o,u),n}return c(e,t),e}(o.b));function g(t,e){return n=t,o.b.is(n)&&"function"==typeof n.done?new o.b(function(n,r,o){t.done(function(t){try{e(t)}catch(t){i.e(t)}n(t)},function(t){try{e(t)}catch(t){i.e(t)}r(t)},function(t){o(t)})},function(){t.cancel()}):(t.then(function(t){return e()},function(t){return e()}),t);var n}function v(t){var e=[];return t=t.reverse(),o.b.as(null).then(function n(r){void 0!==r&&null!==r&&e.push(r);var i=t.length?t.pop()():null;return i?i.then(n):o.b.as(e)})}var y=function(t){function e(){return t.call(this,1)||this}return c(e,t),e}(function(){function t(t){this.maxDegreeOfParalellism=t,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new a.a}return Object.defineProperty(t.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.runningPromises+this.outstandingPromises.length},enumerable:!0,configurable:!0}),t.prototype.queue=function(t){var e=this;return new o.b(function(n,r,i){e.outstandingPromises.push({factory:t,c:n,e:r,p:i}),e.consume()})},t.prototype.consume=function(){for(var t=this;this.outstandingPromises.length&&this.runningPromises0?this.consume():this._onFinished.fire()},t.prototype.dispose=function(){this._onFinished.dispose()},t}());!function(){function t(){this.queues=Object.create(null)}t.prototype.queueFor=function(t){var e=this,n=t.toString();if(!this.queues[n]){var r=new y;r.onFinished(function(){r.dispose(),delete e.queues[n]}),this.queues[n]=r}return this.queues[n]}}();function b(t,e){for(var n=[],r=2;r "+this.positionLineNumber+","+this.positionColumn+"]"},e.prototype.equalsSelection=function(t){return e.selectionsEqual(this,t)},e.selectionsEqual=function(t,e){return t.selectionStartLineNumber===e.selectionStartLineNumber&&t.selectionStartColumn===e.selectionStartColumn&&t.positionLineNumber===e.positionLineNumber&&t.positionColumn===e.positionColumn},e.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?i.LTR:i.RTL},e.prototype.setEndPosition=function(t,n){return this.getDirection()===i.LTR?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)},e.prototype.getPosition=function(){return new u.a(this.positionLineNumber,this.positionColumn)},e.prototype.setStartPosition=function(t,n){return this.getDirection()===i.LTR?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.liftSelection=function(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)},e.selectionsArrEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(!t&&!e)return!0;if(t.length!==e.length)return!1;for(var n=0,r=t.length;n255?255:0|t}function o(t){return t<0?0:t>4294967295?4294967295:0|t}function u(t){for(var e=t.length,n=new Uint32Array(e),r=0;r>>0)>>>0}function c(t,e){if(0===t)return null;var n=(65535&t)>>>0,r=(4294901760&t)>>>16;return 0!==r?new h(l(n,e),l(r,e)):l(n,e)}function l(t,e){var n=!!(2048&t),r=!!(256&t);return new f(2===e?r:n,!!(1024&t),!!(512&t),2===e?n:r,255&t)}!function(){function t(t,e,n,r){void 0===n&&(n=e),void 0===r&&(r=n),o.define(t,e),u.define(t,n),s.define(t,r)}t(0,"unknown"),t(1,"Backspace"),t(2,"Tab"),t(3,"Enter"),t(4,"Shift"),t(5,"Ctrl"),t(6,"Alt"),t(7,"PauseBreak"),t(8,"CapsLock"),t(9,"Escape"),t(10,"Space"),t(11,"PageUp"),t(12,"PageDown"),t(13,"End"),t(14,"Home"),t(15,"LeftArrow","Left"),t(16,"UpArrow","Up"),t(17,"RightArrow","Right"),t(18,"DownArrow","Down"),t(19,"Insert"),t(20,"Delete"),t(21,"0"),t(22,"1"),t(23,"2"),t(24,"3"),t(25,"4"),t(26,"5"),t(27,"6"),t(28,"7"),t(29,"8"),t(30,"9"),t(31,"A"),t(32,"B"),t(33,"C"),t(34,"D"),t(35,"E"),t(36,"F"),t(37,"G"),t(38,"H"),t(39,"I"),t(40,"J"),t(41,"K"),t(42,"L"),t(43,"M"),t(44,"N"),t(45,"O"),t(46,"P"),t(47,"Q"),t(48,"R"),t(49,"S"),t(50,"T"),t(51,"U"),t(52,"V"),t(53,"W"),t(54,"X"),t(55,"Y"),t(56,"Z"),t(57,"Meta"),t(58,"ContextMenu"),t(59,"F1"),t(60,"F2"),t(61,"F3"),t(62,"F4"),t(63,"F5"),t(64,"F6"),t(65,"F7"),t(66,"F8"),t(67,"F9"),t(68,"F10"),t(69,"F11"),t(70,"F12"),t(71,"F13"),t(72,"F14"),t(73,"F15"),t(74,"F16"),t(75,"F17"),t(76,"F18"),t(77,"F19"),t(78,"NumLock"),t(79,"ScrollLock"),t(80,";",";","OEM_1"),t(81,"=","=","OEM_PLUS"),t(82,",",",","OEM_COMMA"),t(83,"-","-","OEM_MINUS"),t(84,".",".","OEM_PERIOD"),t(85,"/","/","OEM_2"),t(86,"`","`","OEM_3"),t(110,"ABNT_C1"),t(111,"ABNT_C2"),t(87,"[","[","OEM_4"),t(88,"\\","\\","OEM_5"),t(89,"]","]","OEM_6"),t(90,"'","'","OEM_7"),t(91,"OEM_8"),t(92,"OEM_102"),t(93,"NumPad0"),t(94,"NumPad1"),t(95,"NumPad2"),t(96,"NumPad3"),t(97,"NumPad4"),t(98,"NumPad5"),t(99,"NumPad6"),t(100,"NumPad7"),t(101,"NumPad8"),t(102,"NumPad9"),t(103,"NumPad_Multiply"),t(104,"NumPad_Add"),t(105,"NumPad_Separator"),t(106,"NumPad_Subtract"),t(107,"NumPad_Decimal"),t(108,"NumPad_Divide")}(),function(t){t.toString=function(t){return o.keyCodeToStr(t)},t.fromString=function(t){return o.strToKeyCode(t)},t.toUserSettingsUS=function(t){return u.keyCodeToStr(t)},t.toUserSettingsGeneral=function(t){return s.keyCodeToStr(t)},t.fromUserSettings=function(t){return u.strToKeyCode(t)||s.strToKeyCode(t)}}(r||(r={}));var f=function(){function t(t,e,n,r,i){this.type=1,this.ctrlKey=t,this.shiftKey=e,this.altKey=n,this.metaKey=r,this.keyCode=i}return t.prototype.equals=function(t){return 1===t.type&&(this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode)},t.prototype.getHashCode=function(){return""+(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},t.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},t.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},t}(),h=function(){function t(t,e){this.type=2,this.firstPart=t,this.chordPart=e}return t.prototype.getHashCode=function(){return this.firstPart.getHashCode()+";"+this.chordPart.getHashCode()},t}(),d=function(){return function(t,e,n,r,i,o){this.ctrlKey=t,this.shiftKey=e,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=o}}(),p=function(){return function(){}}()},function(t,e,n){"use strict";n.d(e,"c",function(){return l}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return h});var r,i=n(11),o=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});var u,s=function(){function t(){this._value="",this._pos=0}return t.prototype.reset=function(t){return this._value=t,this._pos=0,this},t.prototype.next=function(){return this._pos+=1,this},t.prototype.join=function(t){return t.join("")},t.prototype.hasNext=function(){return this._pos0)n.left||(n.left=new c,n.left.str=r.value()),n=n.left;else if(i<0)n.right||(n.right=new c,n.right.str=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new c,n.mid.str=r.value()),n=n.mid}}var o=n.element;return n.element=e,o},t.prototype.get=function(t){for(var e=this._iter.reset(t),n=this._root;n;){var r=e.cmp(n.str);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!e.hasNext())break;e.next(),n=n.mid}}return n?n.element:void 0},t.prototype.delete=function(t){for(var e=this._iter.reset(t),n=[],r=this._root;r;){var i=e.cmp(r.str);if(i>0)n.push([1,r]),r=r.left;else if(i<0)n.push([-1,r]),r=r.right;else{if(!e.hasNext()){for(r.element=void 0;n.length>0&&r.isEmpty();){var o=n.pop(),u=o[0],s=o[1];switch(u){case 1:s.left=void 0;break;case 0:s.mid=void 0;break;case-1:s.right=void 0}r=s}break}e.next(),n.push([0,r]),r=r.mid}}},t.prototype.findSubstr=function(t){for(var e,n=this._iter.reset(t),r=this._root;r;){var i=n.cmp(r.str);if(i>0)r=r.left;else if(i<0)r=r.right;else{if(!n.hasNext())break;n.next(),e=r.element||e,r=r.mid}}return r&&r.element||e},t.prototype.findSuperstr=function(e){for(var n=this._iter.reset(e),r=this._root;r;){var i=n.cmp(r.str);if(i>0)r=r.left;else if(i<0)r=r.right;else{if(!n.hasNext()){if(!r.mid)return;var o=new t(this._iter);return o._root=r.mid,o}n.next(),r=r.mid}}},t.prototype.forEach=function(t){this._forEach(this._root,[],t)},t.prototype._forEach=function(t,e,n){t&&(this._forEach(t.left,e,n),e.push(t.str),t.element&&n(t.element,this._iter.join(e)),this._forEach(t.mid,e,n),e.pop(),this._forEach(t.right,e,n))},t}(),f=function(){function t(){this.map=new Map,this.ignoreCase=!1}return t.prototype.set=function(t,e){this.map.set(this.toKey(t),e)},t.prototype.get=function(t){return this.map.get(this.toKey(t))},t.prototype.has=function(t){return this.map.has(this.toKey(t))},Object.defineProperty(t.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.delete=function(t){return this.map.delete(this.toKey(t))},t.prototype.forEach=function(t){this.map.forEach(t)},t.prototype.values=function(){return t=this.map,e=[],t.forEach(function(t){return e.push(t)}),e;var t,e},t.prototype.toKey=function(t){var e=t.toString();return this.ignoreCase&&(e=e.toLowerCase()),e},t.prototype.keys=function(){return(t=this.map,e=[],t.forEach(function(t,n){return e.push(n)}),e).map(i.a.parse);var t,e},t}();!function(t){t[t.None=0]="None",t[t.AsOld=1]="AsOld",t[t.AsNew=2]="AsNew"}(u||(u={}));var h=function(t){function e(e,n){void 0===n&&(n=1);var r=t.call(this)||this;return r._limit=e,r._ratio=Math.min(Math.max(0,n),1),r}return o(e,t),Object.defineProperty(e.prototype,"limit",{get:function(){return this._limit},set:function(t){this._limit=t,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return t.prototype.get.call(this,e,u.AsNew)},e.prototype.peek=function(e){return t.prototype.get.call(this,e,u.None)},e.prototype.set=function(e,n){t.prototype.set.call(this,e,n,u.AsNew),this.checkTrim()},e.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},e}(function(){function t(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return t.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},t.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.get=function(t,e){void 0===e&&(e=u.None);var n=this._map.get(t);if(n)return e!==u.None&&this.touch(n,e),n.value},t.prototype.set=function(t,e,n){void 0===n&&(n=u.None);var r=this._map.get(t);if(r)r.value=e,n!==u.None&&this.touch(r,n);else{switch(r={key:t,value:e,next:void 0,previous:void 0},n){case u.None:this.addItemLast(r);break;case u.AsOld:this.addItemFirst(r);break;case u.AsNew:default:this.addItemLast(r)}this._map.set(t,r),this._size++}},t.prototype.delete=function(t){return!!this.remove(t)},t.prototype.remove=function(t){var e=this._map.get(t);if(e)return this._map.delete(t),this.removeItem(e),this._size--,e.value},t.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}},t.prototype.forEach=function(t,e){for(var n=this._head;n;)e?t.bind(e)(n.value,n.key,this):t(n.value,n.key,this),n=n.next},t.prototype.values=function(){for(var t=[],e=this._head;e;)t.push(e.value),e=e.next;return t},t.prototype.keys=function(){for(var t=[],e=this._head;e;)t.push(e.key),e=e.next;return t},t.prototype.trimOld=function(t){if(!(t>=this.size))if(0!==t){for(var e=this._head,n=this.size;e&&n>t;)this._map.delete(e.key),e=e.next,n--;this._head=e,this._size=n,e.previous=void 0}else this.clear()},t.prototype.addItemFirst=function(t){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");t.next=this._head,this._head.previous=t}else this._tail=t;this._head=t},t.prototype.addItemLast=function(t){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");t.previous=this._tail,this._tail.next=t}else this._head=t;this._tail=t},t.prototype.removeItem=function(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head)this._head=t.next;else if(t===this._tail)this._tail=t.previous;else{var e=t.next,n=t.previous;if(!e||!n)throw new Error("Invalid list");e.previous=n,n.next=e}},t.prototype.touch=function(t,e){if(!this._head||!this._tail)throw new Error("Invalid list");if(e===u.AsOld||e===u.AsNew)if(e===u.AsOld){if(t===this._head)return;var n=t.next,r=t.previous;t===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t}else if(e===u.AsNew){if(t===this._tail)return;n=t.next,r=t.previous;t===this._head?(n.previous=void 0,this._head=n):(n.previous=r,r.next=n),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t}},t.prototype.toJSON=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),t},t.prototype.fromJSON=function(t){this.clear();for(var e=0,n=t;e/?";var i=function(t){void 0===t&&(t="");for(var e="(-?\\d*\\.\\d\\w*)|([^",n=0;n=0||(e+="\\"+r[n]);return e+="\\s]+)",new RegExp(e,"g")}();function o(t){var e=i;if(t&&t instanceof RegExp)if(t.global)e=t;else{var n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}function u(t,e,n,r){e.lastIndex=0;var i=e.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(t,e,n,r){var i,o=t-1-r;for(e.lastIndex=0;i=e.exec(n);){if(i.index>o)return null;if(e.lastIndex>=o)return{word:i[0],startColumn:r+1+i.index,endColumn:r+1+e.lastIndex}}return null}(t,e,n,r):function(t,e,n,r){var i,o=t-1-r,u=n.lastIndexOf(" ",o-1)+1,s=n.indexOf(" ",o);for(-1===s&&(s=n.length),e.lastIndex=u;i=e.exec(n);)if(i.index<=o&&e.lastIndex>=o)return{word:i[0],startColumn:r+1+i.index,endColumn:r+1+e.lastIndex};return null}(t,e,n,r);return e.lastIndex=0,o}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o});var r=function(){function t(t,e,n){this.offset=0|t,this.type=e,this.language=n}return t.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},t}(),i=function(){return function(t,e){this.tokens=t,this.endState=e}}(),o=function(){return function(t,e){this.tokens=t,this.endState=e}}()},function(t,e,n){"use strict";var r=function(){function t(t,e,n,r){this.originalStart=t,this.originalLength=e,this.modifiedStart=n,this.modifiedLength=r}return t.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},t.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},t}();function i(t){return{getLength:function(){return t.length},getElementHash:function(e){return t[e]}}}function o(t,e,n){return new l(i(t),i(e)).ComputeDiff(n)}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return l});var u=function(){function t(){}return t.Assert=function(t,e){if(!t)throw new Error(e)},t}(),s=function(){function t(){}return t.Copy=function(t,e,n,r,i){for(var o=0;o0||this.m_modifiedCount>0)&&this.m_changes.push(new r(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},t.prototype.AddOriginalElement=function(t,e){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,e),this.m_originalCount++},t.prototype.AddModifiedElement=function(t,e){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,e),this.m_modifiedCount++},t.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},t.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},t}(),c=Object.prototype.hasOwnProperty,l=function(){function t(t,e,n){void 0===n&&(n=null),this.OriginalSequence=t,this.ModifiedSequence=e,this.ContinueProcessingPredicate=n,this.m_originalIds=[],this.m_modifiedIds=[],this.m_forwardHistory=[],this.m_reverseHistory=[],this.ComputeUniqueIdentifiers()}return t.prototype.ComputeUniqueIdentifiers=function(){var t=this.OriginalSequence.getLength(),e=this.ModifiedSequence.getLength();this.m_originalIds=new Array(t),this.m_modifiedIds=new Array(e);var n,r={},i=1;for(n=0;n=t&&i>=n&&this.ElementsAreEqual(e,i);)e--,i--;if(t>e||n>i){var s=void 0;return n<=i?(u.Assert(t===e+1,"originalStart should only be one more than originalEnd"),s=[new r(t,0,n,i-n+1)]):t<=e?(u.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(t,e-t+1,n,0)]):(u.Assert(t===e+1,"originalStart should only be one more than originalEnd"),u.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}var a=[0],c=[0],l=this.ComputeRecursionPoint(t,e,n,i,a,c,o),f=a[0],h=c[0];if(null!==l)return l;if(!o[0]){var d=this.ComputeDiffRecursive(t,f,n,h,o),p=[];return p=o[0]?[new r(f+1,e-(f+1)+1,h+1,i-(h+1)+1)]:this.ComputeDiffRecursive(f+1,e,h+1,i,o),this.ConcatenateChanges(d,p)}return[new r(t,e-t+1,n,i-n+1)]},t.prototype.WALKTRACE=function(t,e,n,i,o,u,s,c,l,f,h,d,p,m,_,g,v,y){var b,C,S=null,E=new a,L=e,N=n,w=p[0]-g[0]-i,A=Number.MIN_VALUE,P=this.m_forwardHistory.length-1;do{(C=w+t)===L||C=0&&(t=(l=this.m_forwardHistory[P])[0],L=1,N=l.length-1)}while(--P>=-1);if(b=E.getReverseChanges(),y[0]){var x=p[0]+1,O=g[0]+1;if(null!==b&&b.length>0){var k=b[b.length-1];x=Math.max(x,k.getOriginalEnd()),O=Math.max(O,k.getModifiedEnd())}S=[new r(x,d-x+1,O,_-O+1)]}else{E=new a,L=u,N=s,w=p[0]-g[0]-c,A=Number.MAX_VALUE,P=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(C=w+o)===L||C=f[C+1]?(m=(h=f[C+1]-1)-w-c,h>A&&E.MarkNextChange(),A=h+1,E.AddOriginalElement(h+1,m+1),w=C+1-o):(m=(h=f[C-1])-w-c,h>A&&E.MarkNextChange(),A=h,E.AddModifiedElement(h+1,m+1),w=C-1-o),P>=0&&(o=(f=this.m_reverseHistory[P])[0],L=1,N=f.length-1)}while(--P>=-1);S=E.getChanges()}return this.ConcatenateChanges(b,S)},t.prototype.ComputeRecursionPoint=function(t,e,n,i,o,u,a){var c,l,f,h=0,d=0,p=0,m=0;t--,n--,o[0]=0,u[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var _,g,v=e-t+(i-n),y=v+1,b=new Array(y),C=new Array(y),S=i-n,E=e-t,L=t-n,N=e-i,w=(E-S)%2==0;for(b[S]=t,C[E]=e,a[0]=!1,f=1;f<=v/2+1;f++){var A=0,P=0;for(h=this.ClipDiagonalBound(S-f,f,S,y),d=this.ClipDiagonalBound(S+f,f,S,y),_=h;_<=d;_+=2){for(l=(c=_===h||_A+P&&(A=c,P=l),!w&&Math.abs(_-E)<=f-1&&c>=C[_])return o[0]=c,u[0]=l,g<=C[_]&&f<=1448?this.WALKTRACE(S,h,d,L,E,p,m,N,b,C,c,e,o,l,i,u,w,a):null}var x=(A-t+(P-n)-f)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(A,this.OriginalSequence,x))return a[0]=!0,o[0]=A,u[0]=P,x>0&&f<=1448?this.WALKTRACE(S,h,d,L,E,p,m,N,b,C,c,e,o,l,i,u,w,a):[new r(++t,e-t+1,++n,i-n+1)];for(p=this.ClipDiagonalBound(E-f,f,E,y),m=this.ClipDiagonalBound(E+f,f,E,y),_=p;_<=m;_+=2){for(l=(c=_===p||_=C[_+1]?C[_+1]-1:C[_-1])-(_-E)-N,g=c;c>t&&l>n&&this.ElementsAreEqual(c,l);)c--,l--;if(C[_]=c,w&&Math.abs(_-S)<=f&&c<=b[_])return o[0]=c,u[0]=l,g>=b[_]&&f<=1448?this.WALKTRACE(S,h,d,L,E,p,m,N,b,C,c,e,o,l,i,u,w,a):null}if(f<=1447){var O=new Array(d-h+2);O[0]=S-h+1,s.Copy(b,h,O,1,d-h+1),this.m_forwardHistory.push(O),(O=new Array(m-p+2))[0]=E-p+1,s.Copy(C,p,O,1,m-p+1),this.m_reverseHistory.push(O)}}return this.WALKTRACE(S,h,d,L,E,p,m,N,b,C,c,e,o,l,i,u,w,a)},t.prototype.ShiftChanges=function(t){var e;do{e=!1;for(var n=0;n0,s=r.modifiedLength>0;r.originalStart+r.originalLength=0;n--){r=t[n],i=0,o=0;if(n>0){var l=t[n-1];l.originalLength>0&&(i=l.originalStart+l.originalLength),l.modifiedLength>0&&(o=l.modifiedStart+l.modifiedLength)}u=r.originalLength>0,s=r.modifiedLength>0;for(var f=0,h=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength),d=1;;d++){var p=r.originalStart-d,m=r.modifiedStart-d;if(ph&&(h=_,f=d)}r.originalStart-=f,r.modifiedStart-=f}return t},t.prototype._OriginalIsBoundary=function(t){return t<=0||t>=this.OriginalSequence.getLength()-1||/^\s*$/.test(this.OriginalSequence.getElementHash(t))},t.prototype._OriginalRegionIsBoundary=function(t,e){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(e>0){var n=t+e;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},t.prototype._ModifiedIsBoundary=function(t){return t<=0||t>=this.ModifiedSequence.getLength()-1||/^\s*$/.test(this.ModifiedSequence.getElementHash(t))},t.prototype._ModifiedRegionIsBoundary=function(t,e){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(e>0){var n=t+e;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},t.prototype._boundaryScore=function(t,e,n,r){return(this._OriginalRegionIsBoundary(t,e)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},t.prototype.ConcatenateChanges=function(t,e){var n=[],r=null;return 0===t.length||0===e.length?e.length>0?e:t:this.ChangesOverlap(t[t.length-1],e[0],n)?(r=new Array(t.length+e.length-1),s.Copy(t,0,r,0,t.length-1),r[t.length-1]=n[0],s.Copy(e,1,r,t.length,e.length-1),r):(r=new Array(t.length+e.length),s.Copy(t,0,r,0,t.length),s.Copy(e,0,r,t.length,e.length),r)},t.prototype.ChangesOverlap=function(t,e,n){if(u.Assert(t.originalStart<=e.originalStart,"Left change is not less than or equal to right change"),u.Assert(t.modifiedStart<=e.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=e.originalStart||t.modifiedStart+t.modifiedLength>=e.modifiedStart){var i=t.originalStart,o=t.originalLength,s=t.modifiedStart,a=t.modifiedLength;return t.originalStart+t.originalLength>=e.originalStart&&(o=e.originalStart+e.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=e.modifiedStart&&(a=e.modifiedStart+e.modifiedLength-t.modifiedStart),n[0]=new r(i,o,s,a),!0}return n[0]=null,!1},t.prototype.ClipDiagonalBound=function(t,e,n,r){if(t>=0&&t=0&&t<256?this._asciiMap[t]=n:this._map.set(t,n)},t.prototype.get=function(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue},t}(),o=function(){function t(){this._actual=new i(0)}return t.prototype.add=function(t){this._actual.set(t,1)},t.prototype.has=function(t){return 1===this._actual.get(t)},t}()},function(t,e,n){"use strict";function r(t){var e,n=this,r=!1;return function(){return r?e:(r=!0,e=t.apply(n,arguments))}}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return u});var r=n(14),i=function(){return function(t,e){this.index=t,this.remainder=e}}(),o=function(){function t(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return t.prototype.getCount=function(){return this.values.length},t.prototype.insertValues=function(t,e){t=Object(r.b)(t);var n=this.values,i=this.prefixSum,o=e.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+o),this.values.set(e,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},t.prototype.changeValue=function(t,e){return t=Object(r.b)(t),e=Object(r.b)(e),this.values[t]!==e&&(this.values[t]=e,t-1=n.length)return!1;var o=n.length-t;return e>=o&&(e=o),0!==e&&(this.values=new Uint32Array(n.length-e),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t+e),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},t.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},t.prototype.getAccumulatedValue=function(t){return t<0?0:(t=Object(r.b)(t),this._getAccumulatedValue(t))},t.prototype._getAccumulatedValue=function(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];var e=this.prefixSumValidIndex[0]+1;0===e&&(this.prefixSum[0]=this.values[0],e++),t>=this.values.length&&(t=this.values.length-1);for(var n=e;n<=t;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]},t.prototype.getIndexOf=function(t){t=Math.floor(t),this.getTotalValue();for(var e,n,r,o=0,u=this.values.length-1;o<=u;)if(e=o+(u-o)/2|0,t<(r=(n=this.prefixSum[e])-this.values[e]))u=e-1;else{if(!(t>=n))break;o=e+1}return new i(e,t-r)},t}(),u=function(){function t(t){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new o(t),this._bustCache()}return t.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},t.prototype.insertValues=function(t,e){this._actual.insertValues(t,e)&&this._bustCache()},t.prototype.changeValue=function(t,e){this._actual.changeValue(t,e)&&this._bustCache()},t.prototype.removeValues=function(t,e){this._actual.removeValues(t,e)&&this._bustCache()},t.prototype.getTotalValue=function(){return this._actual.getTotalValue()},t.prototype.getAccumulatedValue=function(t){return this._actual.getAccumulatedValue(t)},t.prototype.getIndexOf=function(t){if(t=Math.floor(t),null!==this._cache){var e=t-this._cacheAccumulatedValueStart;if(e>=0&&e1)for(var n=1;n1&&g>1;){if(f.charCodeAt(m-2)!==d.charCodeAt(g-2))break;m--,g--}(m>1||g>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,m,u+1,1,g);for(var v=p._getLastNonBlankColumn(f,1),y=p._getLastNonBlankColumn(d,1),b=f.length+1,C=d.length+1;ve&&(e=s),u>n&&(n=u),a>n&&(n=a)}e++,n++;var c=new S.a(n,e,0);for(r=0,i=t.length;r=this._maxCharCode?0:this._states.get(t,e)},t}(),L=null;var N=null;var w=function(){function t(){}return t._createLink=function(t,e,n,r,i){var o=i-1;do{var u=e.charCodeAt(o);if(2!==t.get(u))break;o--}while(o>r);if(r>0){var s=e.charCodeAt(r-1),a=e.charCodeAt(o);(40===s&&41===a||91===s&&93===a||123===s&&125===a)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:e.substring(r,o+1)}},t.computeLinks=function(e){for(var n=(null===L&&(L=new E([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),L),r=function(){if(null===N){N=new C.a(0);for(var t=0;t<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;t++)N.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(t),1);for(t=0;t<".,;".length;t++)N.set(".,;".charCodeAt(t),2)}return N}(),i=[],o=1,u=e.getLineCount();o<=u;o++){for(var s=e.getLineContent(o),a=s.length,c=0,l=0,f=0,h=1,d=!1,p=!1,m=!1;c=0?((r+=n?1:-1)<0?r=t.length-1:r%=t.length,t[r]):null},t.INSTANCE=new t,t}(),P=n(17),x=n(26),O=n(6);n.d(e,"a",function(){return D});var k=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k(e,t),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),e.prototype.getValue=function(){return this.getText()},e.prototype.getLinesContent=function(){return this._lines.slice(0)},e.prototype.getLineCount=function(){return this._lines.length},e.prototype.getLineContent=function(t){return this._lines[t-1]},e.prototype.getWordAtPosition=function(t,e){var n=Object(P.d)(t.column,Object(P.c)(e),this._lines[t.lineNumber-1],0);return n?new u.a(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):null},e.prototype.getWordUntilPosition=function(t,e){var n=this.getWordAtPosition(t,e);return n?{word:this._lines[t.lineNumber-1].substring(n.startColumn-1,t.column-1),startColumn:n.startColumn,endColumn:t.column}:{word:"",startColumn:t.column,endColumn:t.column}},e.prototype.createWordIterator=function(t){var e,n=this,r={done:!1,value:""},i=0,o=0,u=[],s=function(){if(o=n._lines.length))return e=n._lines[i],u=n._wordenize(e,t),o=0,i+=1,s();r.done=!0,r.value=void 0}return r};return{next:s}},e.prototype._wordenize=function(t,e){var n,r=[];for(e.lastIndex=0;(n=e.exec(t))&&0!==n[0].length;)r.push({start:n.index,end:n.index+n[0].length});return r},e.prototype.getValueInRange=function(t){if((t=this._validateRange(t)).startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);var e=this._eol,n=t.startLineNumber-1,r=t.endLineNumber-1,i=[];i.push(this._lines[n].substring(t.startColumn-1));for(var o=n+1;othis._lines.length)e=this._lines.length,n=this._lines[e-1].length+1,r=!0;else{var i=this._lines[e-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:e,column:n}:t},e}(b),D=function(t){function e(e){var n=t.call(this,e)||this;return n._models=Object.create(null),n}return k(e,t),e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(t){return this._models[t]},e.prototype._getModels=function(){var t=this,e=[];return Object.keys(this._models).forEach(function(n){return e.push(t._models[n])}),e},e.prototype.acceptNewModel=function(t){this._models[t.url]=new M(i.a.parse(t.url),t.lines,t.EOL,t.versionId)},e.prototype.acceptModelChanged=function(t,e){this._models[t]&&this._models[t].onEvents(e)},e.prototype.acceptRemovedModel=function(t){this._models[t]&&delete this._models[t]},e}(function(){function t(t){this._foreignModuleFactory=t,this._foreignModule=null}return t.prototype.computeDiff=function(t,e,n){var r=this._getModel(t),i=this._getModel(e);if(!r||!i)return null;var u=r.getLinesContent(),s=i.getLinesContent(),a=new g(u,s,{shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return o.b.as(a.computeDiff())},t.prototype.computeDirtyDiff=function(t,e,n){var r=this._getModel(t),i=this._getModel(e);if(!r||!i)return null;var u=r.getLinesContent(),s=i.getLinesContent(),a=new g(u,s,{shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return o.b.as(a.computeDiff())},t.prototype.computeMoreMinimalEdits=function(e,n){var r=this._getModel(e);if(!r)return o.b.as(n);for(var i,a=[],c=0,l=n;ct._diffLimit)a.push({range:h,text:d});else for(var _=Object(s.b)(m,d,!1),g=r.offsetAt(u.a.lift(h).getStartPosition()),v=0,y=_;v